/* ===================================================================
   一只红杏 (1zhxvpn.mom) - 北欧极光冰晶与玻璃拟态设计系统 (Glacial Aurora Frost)
   视觉基调：深邃极夜靛蓝 + 极光天青 + 冰晶浅翠 + 磨砂玻璃质感 + 柔和流光微动效
   =================================================================== */

:root {
  --bg-canvas: #041226;
  --bg-surface: #081d36;
  --bg-glass: rgba(10, 31, 58, 0.72);
  --bg-glass-card: rgba(14, 42, 78, 0.6);
  --bg-glass-hover: rgba(18, 54, 98, 0.75);

  --brand-cyan: #06b6d4;
  --brand-cyan-hover: #0891b2;
  --brand-cyan-glow: rgba(6, 182, 212, 0.35);
  --brand-mint: #10b981;
  --brand-jade: #34d399;
  --brand-sky: #38bdf8;
  --brand-ice: #f0fdfa;

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --text-inverse: #041226;

  --border-frost: rgba(6, 182, 212, 0.22);
  --border-frost-hover: rgba(52, 211, 153, 0.55);

  --font-system: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-aurora: 0 10px 30px -5px rgba(6, 182, 212, 0.15), 0 0 20px rgba(16, 185, 129, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-system);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  background-image: 
    radial-gradient(ellipse at 20% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 18, 38, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-frost);
}

.header-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-title-grad {
  background: linear-gradient(135deg, #f0fdfa 0%, #34d399 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand-jade);
}

.nav-btn {
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  color: #041226;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px var(--brand-cyan-glow);
  transition: all 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.45);
}

/* Hero Section */
.hero-section {
  padding: 76px 24px 64px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius-full);
  color: var(--brand-jade);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
  font-family: var(--font-mono);
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 22px;
}

.hero-title-accent {
  background: linear-gradient(135deg, #34d399, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  color: #041226;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 25px var(--brand-cyan-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-frost);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.btn-secondary:hover {
  border-color: var(--brand-jade);
  color: var(--brand-jade);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-frost);
  padding-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand-jade);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Calculator Glass Card */
.calc-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-aurora);
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-frost);
  padding-bottom: 12px;
}

.calc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-ice);
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-group {
  margin-bottom: 18px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calc-slider {
  width: 100%;
  accent-color: var(--brand-cyan);
  cursor: pointer;
}

.calc-result-box {
  background: rgba(4, 18, 38, 0.6);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-top: 14px;
}

.calc-result-val {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--brand-jade);
}

/* Sections */
.section {
  padding: 80px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  color: var(--brand-jade);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.feature-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-frost-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-aurora);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 18px;
  display: inline-block;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Cases Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.case-pill {
  align-self: flex-start;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--brand-cyan);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.case-device {
  font-size: 0.84rem;
  color: var(--brand-jade);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.case-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.case-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--brand-jade);
  box-shadow: 0 0 35px rgba(52, 211, 153, 0.2);
  background: linear-gradient(180deg, rgba(14, 42, 78, 0.8) 0%, rgba(6, 26, 50, 0.9) 100%);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, #06b6d4, #10b981);
  color: #041226;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.plan-price {
  margin-bottom: 24px;
}

.price-num {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--brand-ice);
  font-family: var(--font-mono);
}

.price-unit {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: "✦";
  color: var(--brand-jade);
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  color: var(--brand-cyan);
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--brand-jade);
}

/* Final CTA */
.final-cta-section {
  padding: 80px 24px;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  text-align: center;
  border-top: 1px solid var(--border-frost);
}

.final-cta-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-glass);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  backdrop-filter: blur(16px);
}

.final-cta-title {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.final-cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background: #020a17;
  border-top: 1px solid var(--border-frost);
  padding: 50px 24px 30px;
  color: var(--text-dim);
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand-jade);
}

.disclaimer-text {
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
  max-width: 950px;
  margin: 0 auto 20px;
  color: #64748b;
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
}

/* Legal Pages & Articles */
.legal-container, .article-container {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.legal-card, .article-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(16px);
}

.page-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--brand-ice);
}

.update-time {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-frost);
  padding-bottom: 14px;
  font-family: var(--font-mono);
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2, .article-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--brand-ice);
  border-left: 3px solid var(--brand-jade);
  padding-left: 12px;
}

.legal-section p, .article-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-section ul, .article-card ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.legal-section li, .article-card li {
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Article specific */
.article-meta {
  display: flex;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 26px;
  font-family: var(--font-mono);
}

.article-lead {
  font-size: 1.08rem !important;
  color: var(--text-main) !important;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--border-frost);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

.article-cta {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(16, 185, 129, 0.1));
  border: 1px solid var(--brand-jade);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
}

.article-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--brand-ice);
}

.article-crosslinks {
  border-top: 1px solid var(--border-frost);
  padding-top: 24px;
  margin-top: 36px;
}

.article-crosslinks h4 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--text-main);
}

.crosslink-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crosslink-list a {
  color: var(--brand-cyan);
  font-size: 0.95rem;
}

.crosslink-list a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .features-grid, .cases-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .legal-card, .article-card {
    padding: 28px 20px;
  }
}
