﻿/* CSS Design System for 好鸭云 (niceduck.cfd) */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --font-title: 'Comfortaa', cursive;
  --font-body: 'Outfit', sans-serif;
  
  /* Color Palette */
  --primary-grad: linear-gradient(135deg, #FF9100 0%, #FFAE00 50%, #FFD600 100%);
  --duck-yellow: #FFC000;
  --duck-orange: #FF6600;
  --sky-blue-grad: linear-gradient(180deg, #0A0F24 0%, #1A244D 100%);
  --cloud-white: rgba(255, 255, 255, 0.85);
  
  /* Dark Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.2);
  
  /* Text colors */
  --text-light: #F8FAFC;
  --text-gray: #94A3B8;
  --text-dark: #0F172A;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--sky-blue-grad);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Gradient Fonts */
.gradient-text {
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sky-gradient-text {
  background: linear-gradient(90deg, #E0F2FE 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom Duck Buttons */
.duck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--primary-grad);
  color: var(--text-dark) !important;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.8rem 2.2rem 0.8rem 3.3rem;
  border: none;
  border-radius: 50px 30px 30px 50px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 145, 0, 0.4);
  transition: var(--transition-smooth);
  text-decoration: none;
  overflow: visible;
  user-select: none;
}

/* Duck Head on the Button */
.duck-btn::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  width: 1.8rem;
  height: 1.8rem;
  background: #FFE600;
  border-radius: 50%;
  border: 2px solid var(--text-dark);
  box-shadow: inset -2px -2px 0px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

/* Duck Beak */
.duck-btn::after {
  content: '';
  position: absolute;
  left: 0rem;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 10px solid var(--duck-orange);
  transform: rotate(10deg);
  transition: var(--transition-smooth);
  transform-origin: right center;
}

/* Duck Eye inside Head */
.duck-btn-eye {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--text-dark);
  border-radius: 50%;
  z-index: 2;
  transition: var(--transition-smooth);
}

/* Button Hover State */
.duck-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 145, 0, 0.6);
}

.duck-btn:hover::before {
  transform: scale(1.1) rotate(-10deg);
}

.duck-btn:hover::after {
  transform: rotate(-15deg) scaleX(1.3);
  left: -2px;
}

.duck-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Duck Outline Button */
.duck-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  color: var(--duck-yellow) !important;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.8rem 2.2rem 0.8rem 3.3rem;
  border: 2px solid var(--duck-yellow);
  border-radius: 50px 30px 30px 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  overflow: visible;
}

.duck-btn-outline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  width: 1.8rem;
  height: 1.8rem;
  background: transparent;
  border-radius: 50%;
  border: 2px solid var(--duck-yellow);
  transition: var(--transition-smooth);
}

.duck-btn-outline::after {
  content: '';
  position: absolute;
  left: 0rem;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 10px solid var(--duck-yellow);
  transform: rotate(10deg);
  transition: var(--transition-smooth);
}

.duck-btn-outline-eye {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--duck-yellow);
  border-radius: 50%;
  z-index: 2;
}

.duck-btn-outline:hover {
  background: rgba(255, 192, 0, 0.1);
  transform: translateY(-3px);
}

/* Floating Cloud Animations */
.cloud-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  filter: blur(20px);
}

.cloud-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  left: -100px;
  animation: floatCloud 25s infinite linear alternate;
}

.cloud-2 {
  width: 500px;
  height: 500px;
  top: 40%;
  right: -150px;
  animation: floatCloudReverse 35s infinite linear alternate;
}

.cloud-3 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: 15%;
  animation: floatCloud 20s infinite linear alternate;
}

@keyframes floatCloud {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 40px) scale(1.1); }
}

@keyframes floatCloudReverse {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, -50px) scale(1.15); }
}

/* Glassmorphism Cards */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--glass-highlight);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 36, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 0.8rem 2rem;
  background: rgba(10, 15, 36, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-light);
  text-decoration: none;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--duck-yellow);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--duck-yellow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-light);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(180deg, rgba(10, 15, 36, 0.85) 0%, rgba(10, 15, 36, 0.95) 100%), url('../images/duck-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 192, 0, 0.1);
  border: 1px solid rgba(255, 192, 0, 0.3);
  border-radius: 30px;
  color: var(--duck-yellow);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Clouds organic divider SVG */
.clouds-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 3;
}

.clouds-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.clouds-divider .shape-fill {
  fill: #111827; /* Dark grayish-blue section background */
}

/* Features Section */
.features {
  background: #111827;
  padding: 6rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-gray);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(255, 145, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--duck-yellow);
  font-size: 1.8rem;
  border: 1px solid rgba(255, 145, 0, 0.2);
}

.feature-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Pricing Section */
.pricing {
  padding: 6rem 2rem;
  position: relative;
  background: #0F172A;
}

.pricing-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card.popular {
  border: 2px solid var(--duck-yellow);
  background: rgba(255, 192, 0, 0.03);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-grad);
  color: var(--text-dark);
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.price-header h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin: 1rem 0;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-gray);
}

.price-features {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: left;
}

.price-features li {
  font-size: 0.95rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-features li::before {
  content: '✓';
  color: var(--duck-yellow);
  font-weight: bold;
}

/* User Reviews Section */
.reviews {
  background: #111827;
  padding: 6rem 2rem;
}

.reviews-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  position: relative;
}

.review-stars {
  color: var(--duck-yellow);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.review-content {
  color: var(--text-gray);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--glass-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--duck-yellow);
  border: 1px solid rgba(255, 192, 0, 0.3);
}

.user-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.user-info p {
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* FAQ Accordion Section */
.faq {
  padding: 6rem 2rem;
  background: #0F172A;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-answer p {
  padding-bottom: 1.5rem;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--duck-yellow);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Articles Section */
.articles-section {
  background: #111827;
  padding: 6rem 2rem;
}

.articles-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-tag {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  color: #38BDF8;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.article-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.article-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--duck-yellow);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.read-more:hover {
  gap: 0.8rem;
}

/* Single Article Layout */
.article-page {
  padding-top: 8rem;
  padding-bottom: 6rem;
  min-height: 100vh;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-header h1 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #E2E8F0;
  margin-top: 2rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin: 2.5rem 0 1.2rem;
  color: var(--duck-yellow);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.8rem 0 1rem;
  color: #38BDF8;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--duck-yellow);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.article-content a {
  color: var(--duck-yellow);
  text-decoration: underline;
  transition: var(--transition-smooth);
}

.article-content a:hover {
  color: #FFF;
}

.back-to-home {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.back-to-home:hover {
  color: var(--duck-yellow);
  transform: translateX(-5px);
}

/* Footer styling */
footer {
  background: #070B19;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.footer-links h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-light);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--duck-yellow);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-gray);
}

.footer-bottom a {
  color: var(--text-gray);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--duck-yellow);
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    flex-direction: column;
    background: rgba(10, 15, 36, 0.98);
    gap: 1.5rem;
    padding: 0;
    transition: var(--transition-smooth);
    border-bottom: 0px solid rgba(255, 255, 255, 0.05);
    z-index: 99;
  }
  
  .nav-links.active {
    height: calc(100vh - 60px);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero {
    padding-top: 7rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.05rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}






