/* ==========================================================================
   花云机场 (FlowerCloud) - Light Theme & Clean Layout CSS
   Style: Light Glassmorphism, Soft Mesh Gradient, Side-by-Side Hero
   ========================================================================== */

:root {
  --bg-light: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --bg-card-featured: rgba(255, 255, 255, 0.95);
  
  --border-light: rgba(255, 255, 255, 0.9);
  --border-subtle: rgba(226, 232, 240, 0.8);
  --border-glow: rgba(236, 72, 153, 0.35);
  
  --primary-pink: #db2777;
  --primary-pink-light: #fce7f3;
  --primary-violet: #7c3aed;
  --primary-violet-light: #ede9fe;
  --primary-blue: #2563eb;
  --accent-cyan: #0891b2;
  
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max-width: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 32px -8px rgba(139, 92, 246, 0.12), 0 4px 12px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 24px 48px -12px rgba(139, 92, 246, 0.18), 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-featured: 0 20px 40px -10px rgba(236, 72, 153, 0.25), 0 0 20px rgba(124, 58, 237, 0.15);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 10% 15%, rgba(252, 231, 243, 0.8) 0%, transparent 45%),
    radial-gradient(circle at 90% 25%, rgba(237, 233, 254, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 50% 65%, rgba(224, 242, 254, 0.6) 0%, transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(243, 232, 255, 0.7) 0%, transparent 40%),
    #f8fafc;
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography & Helpers */
.text-gradient {
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-pink { color: var(--primary-pink); }
.text-violet { color: var(--primary-violet); }
.text-muted { color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

/* Glassmorphism Panel - Light Mode */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: rgba(236, 72, 153, 0.25);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(219, 39, 119, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(219, 39, 119, 0.45);
  filter: brightness(1.05);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: #ffffff;
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 16px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #db2777, #7c3aed);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.4);
}

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

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-sub);
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-pink);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero Section - Side-by-Side (左右布局) */
.hero-section {
  padding: 80px 0 90px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--primary-pink-light);
  border: 1px solid rgba(219, 39, 119, 0.2);
  color: var(--primary-pink);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-feature-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sub);
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.hero-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -15px rgba(124, 58, 237, 0.22);
}

.hero-visual-card img {
  border-radius: var(--radius-md);
  width: 100%;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  text-align: left;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-violet-light);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-violet);
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pricing Grid - Clean Light Design */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: rgba(219, 39, 119, 0.3);
  box-shadow: var(--shadow-md);
}

/* Featured Pricing Card (Plus) */
.pricing-card.featured {
  background: #ffffff;
  border: 2px solid transparent;
  background-image: linear-gradient(#ffffff, #ffffff), 
                    linear-gradient(135deg, #db2777, #7c3aed, #2563eb);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--shadow-featured);
}

.pricing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #db2777, #7c3aed);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.35);
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price span.currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-pink);
}

.plan-price span.period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: "✓";
  color: var(--primary-pink);
  font-weight: bold;
}

.btn-subscribe {
  width: 100%;
  padding: 14px 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: var(--transition);
}

.btn-subscribe:hover {
  background: var(--primary-pink-light);
  color: var(--primary-pink);
  border-color: rgba(219, 39, 119, 0.4);
}

.pricing-card.featured .btn-subscribe {
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 18px rgba(219, 39, 119, 0.4);
}

.pricing-card.featured .btn-subscribe:hover {
  box-shadow: 0 8px 24px rgba(219, 39, 119, 0.55);
  transform: translateY(-2px);
}

/* Suitable Audience Grid */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.audience-card {
  padding: 28px 20px;
  text-align: center;
}

.audience-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.audience-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.audience-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Tutorials Showcase Tabs */
.tutorial-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-pink);
  border-color: var(--primary-pink);
  color: #fff;
  box-shadow: 0 4px 16px rgba(219, 39, 119, 0.3);
}

.tab-content {
  display: none;
  padding: 36px;
}

.tab-content.active {
  display: block;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #db2777, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 30px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #db2777, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.rating {
  color: #f59e0b;
  font-size: 0.9rem;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-main);
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary-pink);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--primary-pink);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  background: rgba(255, 255, 255, 0.6);
  padding: 0 24px;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
}

/* Article Cards Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

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

.article-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-violet-light);
  color: var(--primary-violet);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;

  width: fit-content;
}

.article-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.4;
  transition: var(--transition);
}

.article-card:hover .article-title {
  color: var(--primary-pink);
}

.article-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* Single Article Layout - Light Mode */
.article-container {
  max-width: 900px;
  margin: 40px auto 80px auto;
  padding: 0 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.breadcrumb a:hover {
  color: var(--primary-pink);
}

.article-header {
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 20px;
}

.article-header-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.75rem;
  color: var(--text-main);
  margin: 40px 0 20px 0;
  padding-left: 14px;
  border-left: 4px solid var(--primary-pink);
}

.article-body h3 {
  font-size: 1.35rem;
  color: var(--text-main);
  margin: 30px 0 16px 0;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body code {
  background: var(--primary-pink-light);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--primary-pink);
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9em;
}

.article-body pre {
  background: #1e293b;
  color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.article-body pre code {
  background: none;
  padding: 0;
  color: #a7f3d0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-body th, .article-body td {
  padding: 14px 18px;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.article-body th {
  background: #f1f5f9;
  color: var(--text-main);
  font-weight: 700;
}

.callout-box {
  background: var(--primary-violet-light);
  border-left: 4px solid var(--primary-violet);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
}

.callout-box strong {
  color: var(--primary-violet);
  display: block;
  margin-bottom: 6px;
}

.article-cta-box {
  margin: 50px 0;
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, #fce7f3 0%, #ede9fe 100%);
  border: 1px solid rgba(219, 39, 119, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.article-cta-box h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.article-cta-box p {
  color: var(--text-sub);
  margin-bottom: 24px;
}

/* Related Links */
.related-articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.related-articles h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px 0;
  margin-top: 80px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-pink);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content {
    text-align: center;
  }

  .hero-feature-chips, .hero-actions {
    justify-content: center;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-header h1 {
    font-size: 1.8rem;
  }
}
