/* ==========================================================================
   大象网络 (elephantvip.cyou) - Official Brand Native CSS
   Palette: Deep Marine-Teal Navy (#031b29), Optical Pure White (#ffffff),
   Royal Indigo-Violet (#5d5fef), Warm Gold (#facc15), Matte Charcoal (#222222)
   ========================================================================== */

:root {
  /* Light Mode (Default - Optical Pure White) */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-soft: #f8f9fc;
  --bg-header: rgba(255, 255, 255, 0.94);

  /* Brand Signature Sections */
  --bg-marine: #031b29;
  --bg-marine-elevated: #06283b;
  --bg-footer: #222222;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-on-marine: #ffffff;
  --text-on-marine-soft: rgba(255, 255, 255, 0.84);

  --border-subtle: #e5e7eb;
  --border-strong: #d1d5db;

  --accent: #5d5fef;
  --accent-hover: #4b4de0;
  --accent-soft: rgba(93, 95, 239, 0.08);
  --accent-border: rgba(93, 95, 239, 0.25);
  --accent-glow: rgba(93, 95, 239, 0.30);

  --elephant-blue: #38bdf8;
  --gold: #facc15;
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);

  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 10px 28px -8px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 44px -14px rgba(17, 24, 39, 0.12);

  /* Refined Translucent Day/Night Toggle */
  --toggle-bg: rgba(255, 255, 255, 0.65);
  --toggle-bg-hover: rgba(93, 95, 239, 0.08);
  --toggle-border: rgba(17, 24, 39, 0.12);
  --toggle-icon: #374151;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container-max: 1180px;
  --header-height: 72px;
  --transition-theme: 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg-page: #0b111b;
  --bg-surface: #111927;
  --bg-surface-soft: #162032;
  --bg-header: rgba(11, 17, 27, 0.88);

  --bg-marine: #02131d;
  --bg-marine-elevated: #052030;
  --bg-footer: #18181b;

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --border-subtle: rgba(156, 163, 175, 0.16);
  --border-strong: rgba(156, 163, 175, 0.28);

  --accent: #6c6ef5;
  --accent-hover: #7e80f8;
  --accent-soft: rgba(108, 110, 245, 0.14);
  --accent-border: rgba(108, 110, 245, 0.35);
  --accent-glow: rgba(108, 110, 245, 0.38);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 48px -14px rgba(0, 0, 0, 0.60);

  --toggle-bg: rgba(17, 25, 39, 0.62);
  --toggle-bg-hover: rgba(108, 110, 245, 0.18);
  --toggle-border: rgba(156, 163, 175, 0.24);
  --toggle-icon: #e5e7eb;
}

/* Smooth Theme Switching */
html.theme-transition,
html.theme-transition body,
html.theme-transition .site-header,
html.theme-transition .card,
html.theme-transition .showcase-card,
html.theme-transition .pricing-table-wrap,
html.theme-transition .pricing-m-card,
html.theme-transition .review-card,
html.theme-transition .faq-item,
html.theme-transition .doc-card,
html.theme-transition .article-card,
html.theme-transition .theme-toggle {
  transition:
    background-color var(--transition-theme),
    color var(--transition-theme),
    border-color var(--transition-theme),
    box-shadow var(--transition-theme);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

svg, img {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

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

/* ==========================================================================
   White Official Top Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-emblem {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
}

[data-theme="dark"] .brand-emblem {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(93, 95, 239, 0.22));
  color: #7dd3fc;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 2px;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.nav-news {
  color: var(--accent);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Refined Translucent Day/Night Toggle Button */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--toggle-icon);
  cursor: pointer;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--toggle-bg-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-75deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(75deg) scale(0.6);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   Buttons (Royal Indigo-Violet #5d5fef + Crisp 2px Lift)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  min-height: 44px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

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

.btn-lg {
  padding: 13px 28px;
  min-height: 50px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px -4px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: #031b29;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Deep Marine-Teal Navy Hero (#031b29)
   ========================================================================== */
.hero {
  background: var(--bg-marine);
  color: var(--text-on-marine);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

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

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-title strong {
  font-weight: 700;
}

.hero-intro {
  font-size: 1.02rem;
  color: var(--text-on-marine-soft);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-bullets {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-bullets li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(93, 95, 239, 0.28);
  flex-shrink: 0;
}

/* 4 OS Download Buttons */
.os-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 190px));
  gap: 12px;
}

.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 12px 18px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.os-btn:hover {
  background: var(--accent-hover);
  border-color: #a5b4fc;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -6px rgba(93, 95, 239, 0.55);
}

/* Right Hero: White Organic Cloud Framing Dark-Violet World Map */
.hero-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cloud-stage {
  width: 100%;
  max-width: 520px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.map-arc {
  stroke-dasharray: 6 6;
  animation: arcFlow 4.5s linear infinite;
}

.map-arc.arc-fast {
  animation-duration: 2.2s;
}

@keyframes arcFlow {
  from {
    stroke-dashoffset: 48;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.node-ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 2.6s ease-out infinite;
}

@keyframes nodePulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* ==========================================================================
   Common Section Styling (Optical Pure White Body Canvas)
   ========================================================================== */
.section {
  padding: 80px 0;
  background: var(--bg-page);
}

.section-soft {
  background: var(--bg-surface-soft);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Core Advantages (3 Flat Editorial Illustration Cards)
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.editorial-illus {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   Why Choose Us (Alternating Feature Rows) & Streaming/AI Showcase Cards
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.showcase-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.showcase-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.showcase-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.showcase-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.showcase-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.72;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.platform-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

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

/* Alternating Official Rows */
.alt-features {
  margin-top: 56px;
  display: grid;
  gap: 36px;
}

.alt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.alt-row.reverse .alt-visual {
  order: -1;
}

.alt-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.alt-text p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.text-link:hover {
  text-decoration: underline;
}

.alt-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-soft);
  border-radius: 14px;
  padding: 24px;
  min-height: 190px;
}

/* ==========================================================================
   Pricing Comparison Table (Realistic Market Pricing)
   ========================================================================== */
.pricing-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pricing-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 780px;
}

.pricing-table th,
.pricing-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.pricing-table thead th {
  background: var(--bg-surface-soft);
  padding: 24px 18px;
  vertical-align: top;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table th.col-feature,
.pricing-table td.col-feature {
  width: 20%;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-table th.col-popular,
.pricing-table td.col-popular {
  background: var(--accent-soft);
}

.plan-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.plan-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
}

.plan-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

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

.plan-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.check-yes {
  color: var(--accent);
  font-weight: 700;
}

/* Mobile Stacked Pricing Cards */
.pricing-mobile-cards {
  display: none;
  gap: 18px;
}

.pricing-m-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.pricing-m-card.popular {
  border-color: var(--accent);
  box-shadow: 0 10px 26px -10px var(--accent-glow);
}

.pricing-m-list {
  margin: 16px 0 20px;
  display: grid;
  gap: 10px;
}

.pricing-m-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.93rem;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-subtle);
}

.pricing-m-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pricing-m-list span:first-child {
  color: var(--text-secondary);
}

.pricing-m-list span:last-child {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* ==========================================================================
   User Reviews (Official 2x2 Grid with Circular Avatars & Warm Gold Stars)
   ========================================================================== */
.reviews-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.review-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--accent-soft);
}

.author-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.review-stars {
  display: inline-flex;
  gap: 3px;
  color: var(--gold);
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   FAQ Accordion (6 Clean 1px #e5e7eb Bordered Rows + 2px Lift & #5d5fef Highlight)
   ========================================================================== */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq-item:hover .faq-chevron,
.faq-item[open] .faq-chevron {
  color: var(--accent);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 14px 24px 22px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.75;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Bottom Full-Width #031b29 Marine-Navy CTA Banner
   ========================================================================== */
.bottom-cta-band {
  background: var(--bg-marine);
  color: #ffffff;
  padding: 68px 0;
}

.bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.bottom-cta-copy {
  max-width: 580px;
}

.bottom-cta-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.bottom-cta-copy p {
  font-size: 1rem;
  color: var(--text-on-marine-soft);
  margin-bottom: 26px;
  line-height: 1.7;
}

.bottom-cta-art {
  flex-shrink: 0;
}

/* ==========================================================================
   Matte Charcoal Footer (#222222) - Strictly 4 Required Titles
   ========================================================================== */
.site-footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.82);
  padding: 40px 0 36px;
}

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

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 34px;
}

.footer-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  padding: 6px 4px;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: #a5b4fc;
}

.footer-meta {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.52);
}

.footer-meta a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Sub-Pages & 推荐资讯 (Articles)
   ========================================================================== */
.doc-hero {
  background: var(--bg-marine);
  color: #ffffff;
  padding: 56px 0 48px;
}

.doc-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.doc-hero p {
  color: var(--text-on-marine-soft);
  font-size: 0.98rem;
  max-width: 680px;
}

.doc-content {
  padding: 48px 0 72px;
}

.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.doc-section {
  margin-bottom: 34px;
}

.doc-section:last-child {
  margin-bottom: 0;
}

.doc-section h2 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-section h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent);
  flex-shrink: 0;
}

.doc-section p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.8;
}

.doc-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.doc-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.node-box {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
}

.node-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.node-box span {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sitemap-group {
  padding: 22px;
  border-radius: 14px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
}

.sitemap-group h3 {
  font-size: 1.06rem;
  margin-bottom: 12px;
}

.sitemap-group ul {
  display: grid;
  gap: 9px;
}

.sitemap-group a {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.94rem;
}

.sitemap-group a:hover {
  text-decoration: underline;
}

.highlight-box {
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
  margin: 16px 0;
}

/* Articles Grid for 推荐资讯 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.article-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   Responsive Media Queries (Tablet & Mobile Single-Column)
   ========================================================================== */
@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 24px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 0.98rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: var(--bg-surface-soft);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .grid-2,
  .alt-row,
  .reviews-grid-2x2,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .alt-row.reverse .alt-visual {
    order: 0;
  }

  .bottom-cta-inner {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 48px 0 54px;
  }

  .os-btn-grid {
    grid-template-columns: 1fr;
  }

  .os-btn {
    width: 100%;
    min-height: 48px;
  }

  .section {
    padding: 54px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  /* Strict Single-Column Mobile Layout */
  .grid-3,
  .grid-2,
  .reviews-grid-2x2,
  .node-grid,
  .sitemap-grid,
  .article-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .card,
  .showcase-card,
  .review-card,
  .doc-card,
  .alt-row,
  .article-card {
    padding: 22px 18px;
  }

  .showcase-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-footer .btn {
    width: 100%;
  }

  .pricing-table-wrap {
    display: none;
  }

  .pricing-mobile-cards {
    display: grid;
  }

  .btn {
    min-height: 48px;
  }

  .bottom-cta-band {
    padding: 48px 0;
  }

  .bottom-cta-band .btn {
    width: 100%;
  }

  .faq-item summary {
    padding: 18px;
    font-size: 0.96rem;
  }

  .faq-answer {
    padding: 14px 18px 18px;
  }

  .footer-nav {
    gap: 10px 22px;
  }
}

/* ==========================================================================
   Long-Form SEO Article Styles (Breadcrumb, TOC, Prose, Related Reading)
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.76);
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.article-toc-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-toc ol {
  display: grid;
  gap: 8px;
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
}

.article-toc a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.article-toc a::before {
  content: counter(toc) ". ";
  color: var(--accent);
  font-weight: 700;
}

.article-toc a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.article-body {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 40px;
  box-shadow: var(--shadow-sm);
}

.article-body h2 {
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h2::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: var(--accent);
  flex-shrink: 0;
}

.article-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.article-body p {
  color: var(--text-secondary);
  line-height: 1.88;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.article-body p a,
.article-body li a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body ul,
.article-body ol.prose-ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.article-body ul li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.article-table-wrap {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}

.article-table th,
.article-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.article-table th {
  background: var(--bg-surface-soft);
  font-weight: 700;
  color: var(--text-primary);
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-cta-box {
  margin: 28px 0;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: var(--bg-marine);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-cta-box h3 {
  color: #ffffff;
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.article-cta-box p {
  color: var(--text-on-marine-soft);
  margin: 0;
  font-size: 0.92rem;
}

.article-faq {
  margin-top: 34px;
}

.related-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  border-radius: 12px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.related-card strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.related-card span {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }

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

@media (max-width: 640px) {
  .article-body {
    padding: 22px 18px;
  }

  .article-cta-box {
    flex-direction: column;
    align-items: stretch;
  }

  .article-cta-box .btn {
    width: 100%;
  }
}
