/* ==========================================================================
   仙路湾 (XianLu WAN) - 极简奶油风 (Cream Minimalist Design System)
   ========================================================================== */

:root {
  /* Cream Palette */
  --bg-cream: #faf7f2;
  --bg-cream-soft: #f4efe6;
  --bg-card: #ffffff;
  --bg-card-alt: #fdfbf7;
  --border-cream: #ebe4d8;
  --border-warm: rgba(217, 119, 87, 0.15);
  
  /* Text Colors */
  --text-dark: #2c2623;
  --text-body: #4a433e;
  --text-muted: #7e756d;
  --text-light: #a39990;
  
  /* Accent Warm Colors */
  --accent-terracotta: #d97757;
  --accent-terracotta-hover: #c46243;
  --accent-caramel: #c97a40;
  --accent-sage: #7a9a8b;
  --accent-shadow: rgba(217, 119, 87, 0.18);
  
  /* Fonts */
  --font-heading: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  
  /* Transitions & Shadows */
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 10px 30px rgba(74, 67, 62, 0.05);
  --shadow-hover: 0 16px 36px rgba(217, 119, 87, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-cream);
  color: var(--text-dark);
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  background-color: var(--bg-cream);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.3;
}

a {
  color: var(--accent-terracotta);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-terracotta-hover);
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent-terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.btn-primary {
  background-color: var(--accent-terracotta);
  color: #ffffff !important;
  box-shadow: 0 8px 20px var(--accent-shadow);
}

.btn-primary:hover {
  background-color: var(--accent-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(217, 119, 87, 0.25);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-dark) !important;
  border: 1px solid var(--border-cream);
}

.btn-secondary:hover {
  background-color: var(--bg-cream-soft);
  border-color: var(--accent-terracotta);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-cream);
  padding: 16px 0;
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-cream);
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--accent-terracotta);
  font-weight: 700;
  letter-spacing: 1px;
}

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

.nav-link {
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-terracotta);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-terracotta);
  border-radius: 2px;
}

/* HERO SECTION */
.hero-section {
  padding: 80px 0 60px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: rgba(217, 119, 87, 0.08);
  border: 1px solid rgba(217, 119, 87, 0.2);
  border-radius: 20px;
  color: var(--accent-terracotta);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 32px;
  max-width: 580px;
}

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

.hero-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.hero-visual-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* SECTION COMMON STYLES */
.section-padding {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--bg-cream-soft);
  color: var(--accent-terracotta);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border-cream);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

/* CARDS & ADVANTAGES */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.advantage-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-terracotta);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--bg-cream-soft);
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border: 1px solid var(--border-cream);
}

.advantage-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

/* STREAMING & AI SUPPORT */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  background: #ffffff;
  border-color: var(--accent-terracotta);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 2.2rem;
  color: var(--accent-terracotta);
  margin-bottom: 12px;
}

.service-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.service-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.disclaimer-box {
  margin-top: 32px;
  padding: 16px 20px;
  background-color: var(--bg-cream-soft);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-cream);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* PRICING SECTION */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: var(--transition);
}

.plan-card.featured {
  border: 2px solid var(--accent-terracotta);
  background: var(--bg-card-alt);
  transform: scale(1.03);
}

.plan-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-terracotta);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 38px;
  margin-bottom: 20px;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1;
}

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

.plan-features {
  list-style: none;
  margin-bottom: 30px;
}

.plan-features li {
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent-terracotta);
  font-weight: 800;
}

/* FAQ SECTION */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-title {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-content {
  padding: 0 24px 20px 24px;
  font-size: 0.95rem;
  color: var(--text-body);
  display: none;
}

.faq-item.active .faq-content {
  display: block;
}

.faq-icon {
  transition: transform 0.28s ease;
}

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

/* RIGHT SECTION NAVIGATION ARROWS (右侧章节切换箭头) */
.section-nav-arrows {
  position: fixed;
  right: 24px;
  bottom: 40px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-cream);
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.nav-arrow-btn:hover:not(:disabled) {
  background: var(--accent-terracotta);
  color: #ffffff;
  border-color: var(--accent-terracotta);
  transform: scale(1.08);
}

.nav-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* FOOTER */
.site-footer {
  background: var(--bg-cream-soft);
  border-top: 1px solid var(--border-cream);
  padding: 60px 0 40px 0;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

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

.footer-nav a {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--accent-terracotta);
}

.copyright-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ARTICLE / CONTENT PAGE STYLES */
.page-container {
  max-width: 860px;
  margin: 60px auto;
  padding: 0 24px;
}

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

.article-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.article-content {
  background: #ffffff;
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-soft);
}

.article-content h2 {
  font-size: 1.6rem;
  margin: 36px 0 16px 0;
}

.article-content h3 {
  font-size: 1.3rem;
  margin: 28px 0 14px 0;
}

.article-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

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

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

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .cards-grid-3, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards-grid-3, .pricing-grid, .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .main-nav {
    display: none; /* Mobile menu collapsed or simplified */
  }
  .section-nav-arrows {
    right: 12px;
    bottom: 24px;
  }
  .nav-arrow-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
  .article-content {
    padding: 24px 20px;
  }
}
