/* ===================================================================
   Candy Tally (糖果云) - 薄荷云朵风格原生设计系统
   色彩系统:
   --mint: #2FBF9B (主色)
   --pine: #0F3D33 (文字/强调)
   --cloud: #F3FAF7 (页面背景)
   --frost: #E3F2EC (卡片背景)
   --coral: #FF8A70 (点缀色)
   --sky: #BFE8DC (描边与图表填充)
   全站禁止渐变，使用纯色填充与平滑动效
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,400;0,500;0,700;1,400&family=Sora:wght@600;700;800&display=swap');

:root {
  --mint: #2FBF9B;
  --mint-hover: #28A486;
  --pine: #0F3D33;
  --cloud: #F3FAF7;
  --frost: #E3F2EC;
  --coral: #FF8A70;
  --sky: #BFE8DC;
  --white: #FFFFFF;
  --muted: #4A6E65;
  --card-radius: 20px;
  --btn-radius: 12px;
  --card-shadow: 0 8px 24px rgba(15, 61, 51, 0.07);
  --card-shadow-hover: 0 12px 32px rgba(15, 61, 51, 0.12);
  --section-spacing: 96px;
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--cloud);
  color: var(--pine);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  background-color: var(--cloud);
  color: var(--pine);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pine);
  line-height: 1.25;
}

p {
  color: var(--pine);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, transform 200ms ease-out;
}

/* 布局与栅格 */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  background-color: var(--frost);
  border: 1px solid var(--sky);
  color: var(--pine);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

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

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--btn-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out, transform 200ms ease-out;
  text-decoration: none;
  min-height: 48px;
}

.btn-mint {
  background-color: var(--mint);
  color: var(--pine);
  border-color: var(--mint);
}

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

.btn-secondary {
  background-color: var(--frost);
  color: var(--pine);
  border-color: var(--sky);
}

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

.btn-coral {
  background-color: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.btn-coral:hover {
  background-color: #f0775d;
  border-color: #f0775d;
  transform: translateY(-2px);
}

.btn-pill {
  border-radius: 30px;
}

/* 卡片规范: 雾白卡片 20px 圆角、1px 天青描边、微投影、200ms 动效自下 8px 浮入 */
.card {
  background-color: var(--frost);
  border: 1px solid var(--sky);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--mint);
}

/* 顶部导航栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(243, 250, 247, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sky);
  padding: 16px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--pine);
  letter-spacing: -0.01em;
}

.brand-text .tally-text {
  letter-spacing: 0.08em;
  font-weight: 700;
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pine);
  padding: 6px 4px;
  position: relative;
}

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

.nav-links .badge-news {
  background-color: var(--coral);
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 主视觉区 (Hero Section) */
.hero {
  padding-top: 72px;
  padding-bottom: 96px;
}

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

.hero-content h1 {
  font-size: 3.1rem;
  line-height: 1.18;
  margin-bottom: 20px;
  color: var(--pine);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 20px;
}

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

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--sky);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* Hero 右侧互动与状态仪表盘展示 (纯色填充、禁止渐变) */
.hero-dashboard {
  background-color: var(--frost);
  border: 1px solid var(--sky);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sky);
}

.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pine);
  background-color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--sky);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--mint);
}

.metric-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background-color: var(--white);
  border: 1px solid var(--sky);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pine);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* 进度条与指标: 圆头端点，纯色薄荷/天青填充，禁止渐变 */
.progress-block {
  margin-bottom: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background-color: var(--sky);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  background-color: var(--mint);
}

/* 细线图表展示 (2px细线，小圆点标记) */
.chart-box {
  background-color: var(--white);
  border: 1px solid var(--sky);
  border-radius: 16px;
  padding: 16px;
  margin-top: 20px;
}

.chart-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.chart-svg {
  width: 100%;
  height: 70px;
  display: block;
}

/* 核心优势介绍 (3个图文卡片) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--white);
  border: 1px solid var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* 流媒体与 AI 支持图卡 */
.support-section {
  background-color: var(--white);
  border-top: 1px solid var(--sky);
  border-bottom: 1px solid var(--sky);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.support-card {
  background-color: var(--frost);
  border: 1px solid var(--sky);
  border-radius: var(--card-radius);
  padding: 24px;
  transition: transform 200ms ease-out, border-color 200ms ease-out;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-card:hover {
  transform: translateY(-8px);
  border-color: var(--mint);
}

.support-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.support-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: var(--mint);
  color: var(--pine);
  font-weight: 700;
}

.support-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

/* 套餐价格对比表 (真实参考) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--frost);
  border: 1px solid var(--sky);
  border-radius: var(--card-radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}

.pricing-card.featured {
  background-color: var(--white);
  border: 2px solid var(--mint);
  box-shadow: 0 12px 36px rgba(47, 191, 155, 0.15);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--coral);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
}

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

.plan-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sky);
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pine);
}

.price-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--pine);
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--pine);
}

.plan-features li svg {
  color: var(--mint);
  flex-shrink: 0;
}

/* 用户评价 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.review-card {
  background-color: var(--frost);
  border: 1px solid var(--sky);
  border-radius: var(--card-radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--card-shadow);
}

.stars {
  display: flex;
  gap: 4px;
  color: #FFB800;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--pine);
  flex-grow: 1;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--sky);
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--pine);
  font-size: 1rem;
}

.reviewer-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.reviewer-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* 常见问题 (FAQ) 原生 details / summary 纯净交互 */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--frost);
  border: 1px solid var(--sky);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 200ms ease-out;
}

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

.faq-summary {
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pine);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

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

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 200ms ease-out;
}

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

.faq-body {
  padding: 0 24px 24px 24px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* CTA 转换引导条 */
.cta-banner {
  background-color: var(--pine);
  color: var(--white);
  border-radius: var(--card-radius);
  padding: 64px 48px;
  text-align: center;
  margin-bottom: 64px;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--sky);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

/* 页脚规范: 严格只保留四个标题，在新页面打开 */
.site-footer {
  background-color: var(--frost);
  border-top: 1px solid var(--sky);
  padding: 48px 0;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin-bottom: 24px;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pine);
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

/* 资讯页与文章内页通用样式 */
.article-header {
  padding: 64px 0 32px 0;
  text-align: center;
}

.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 20px;
}

.article-content {
  max-width: 820px;
  margin: 0 auto 80px auto;
  background-color: var(--white);
  border: 1px solid var(--sky);
  border-radius: var(--card-radius);
  padding: 48px;
  box-shadow: var(--card-shadow);
}

.article-content h2 {
  font-size: 1.7rem;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sky);
}

.article-content h3 {
  font-size: 1.3rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

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

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

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

.article-content blockquote {
  border-left: 4px solid var(--mint);
  background-color: var(--frost);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--pine);
}

.article-content a {
  color: #0f766e;
  text-decoration: underline;
  font-weight: 600;
}

.article-content a:hover {
  color: var(--mint);
}

/* 推荐资讯卡片网格 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.article-card {
  background-color: var(--white);
  border: 1px solid var(--sky);
  border-radius: var(--card-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: var(--mint);
  box-shadow: var(--card-shadow-hover);
}

.article-card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background-color: var(--frost);
  color: var(--pine);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.article-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.article-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--sky);
  padding-top: 14px;
}

/* 响应式媒体查询 @media */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none; /* 移动端精简显示 */
  }
}

@media (max-width: 640px) {
  :root {
    --section-spacing: 64px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
  .article-content {
    padding: 24px;
  }
}
