/* Pricing 页面样式 — 浅色主题，与首页风格一致 */
* { box-sizing: border-box; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
  margin: 0;
  padding: 8px 24px 24px;
}

/* Main */
.pricing-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

/* Hero */
.pricing-hero {
  text-align: center;
  margin-bottom: 36px;
}
.pricing-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.pricing-subtitle {
  font-size: 17px;
  color: #64748b;
  margin-bottom: 16px;
}
.promo-banner {
  display: inline-block;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.06));
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #92700c;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 20px;
}

/* ====== 标题行：Free 只有标题，Pro 有标题+toggle ====== */
.card-row-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 36px;
  margin-bottom: 6px;
}

/* 月/年切换 */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(120, 90, 30, 0.08);
  border-radius: 20px;
  padding: 3px;
}
.billing-tab {
  padding: 6px 18px;
  border: none;
  border-radius: 17px;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.billing-tab:hover { color: #64748b; }
.billing-tab.active {
  background: #fff;
  color: #78550a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Cards 容器 */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* Card 基础 — 浅色 */
.pricing-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Pro 卡片 — 金色边框 + 微暖底色 */
.card-pro {
  border-color: #d4af37;
  border-width: 2px;
  background: linear-gradient(160deg, #fffefb 0%, #fefcf4 60%, #fdf8e8 100%);
  box-shadow: 0 2px 16px rgba(212, 175, 55, 0.1);
}

/* Save badge — 价格行内，紧跟 /yr 后面 */
.price-save-badge {
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 12px;
  letter-spacing: 0.03em;
  margin-left: 10px;
  align-self: center;
}

/* Card header */
.card-plan-name {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.card-pro .card-plan-name { color: #78550a; }
.card-tagline {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.4;
}
.card-pro .card-tagline { color: #8b7340; }

/* 价格 — 两列固定高度确保对齐 */
.card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 52px;
  margin-bottom: 4px;
}
.price-amount {
  font-size: 44px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}
.card-pro .price-amount { color: #78550a; }
.price-period {
  font-size: 16px;
  color: #94a3b8;
  font-weight: 500;
}
.price-original {
  font-size: 20px;
  color: #cbd5e1;
  text-decoration: line-through;
  font-weight: 500;
}

/* 价格注释 — 固定高度确保对齐 */
.price-note {
  font-size: 13px;
  color: #94a3b8;
  min-height: 20px;
  margin-bottom: 20px;
}

/* CTA 按钮 */
.card-cta {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 28px;
  transition: all 0.15s;
}
.card-cta-outline {
  border: 1px solid #d1d5db;
  background: transparent;
  color: #374151;
}
.card-cta-outline:hover { border-color: #9ca3af; background: #f9fafb; }
.card-cta-gold {
  border: 1px solid #d4af37;
  background: linear-gradient(135deg, #d4af37, #f0d060);
  color: #1e2026;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.25);
}
.card-cta-gold:hover { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4); }

/* Feature list */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}
.feature-item.excluded {
  color: #c0c7d0;
}
.feature-item.highlight { color: #1e293b; }
.feature-item strong { font-weight: 700; }
.feature-item.highlight strong { color: #78550a; }

/* Feature 图标 */
.feature-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
}
.feature-item.included .feature-icon {
  background: #16a34a;
  color: #fff;
}
.feature-item.included .feature-icon.pro {
  background: #16a34a;
  color: #fff;
}
.feature-item.excluded .feature-icon {
  background: #f1f5f9;
  color: #d1d5db;
}
/* 2026-05-01 redesign: Free 端受限 quota 项用空心绿 ✓ — 视觉传达"有但受限" vs Pro 实心 */
.feature-item.included-limited {
  color: #475569;
}
.feature-item.included-limited .feature-icon {
  background: #fff;
  color: #16a34a;
  border: 1.5px solid #16a34a;
  line-height: 17px;
}
/* Pro 端 quota 数字加金色色块（"100" / "Unlimited"），强调 Pro 数字飞跃 */
.feature-item.pro-emphasis strong {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(245, 208, 96, 0.10));
  color: #78550a;
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.30);
}
/* NEW badge — Spend Progress tracking 等新功能标记 */
.feature-item .new-badge {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
  vertical-align: 2px;
}

/* Footer note */
.pricing-footer-note {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 8px;
}

/* 响应式 */
@media (max-width: 720px) {
  body {
    padding: 4px 12px 16px;
  }
  .pricing-main {
    padding: 16px 0 40px;
  }

  /* Hero */
  .pricing-hero {
    margin-bottom: 24px;
  }
  .pricing-hero h1 {
    font-size: 26px;
  }
  .pricing-subtitle {
    font-size: 15px;
  }
  .promo-banner {
    font-size: 12px;
    padding: 5px 16px;
  }

  /* Cards 单列，Pro 在前 */
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card-pro {
    order: -1;
  }

  /* Card 内边距收窄 */
  .pricing-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  /* 标题行 */
  .card-row-title {
    flex-wrap: wrap;
    gap: 10px;
  }
  .card-plan-name {
    font-size: 20px;
  }

  /* Toggle 紧凑 */
  .billing-tab {
    padding: 5px 14px;
    font-size: 12px;
  }

  /* 价格 */
  .price-amount {
    font-size: 36px;
  }
  .price-original {
    font-size: 17px;
  }
  .price-period {
    font-size: 14px;
  }
  .price-save-badge {
    font-size: 12px;
    padding: 4px 10px;
  }

  /* 副标题 */
  .card-tagline {
    font-size: 13px;
    margin-bottom: 16px;
  }

  /* CTA */
  .card-cta {
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    margin-bottom: 22px;
  }

  /* Feature list */
  .feature-list {
    gap: 10px;
  }
  .feature-item {
    font-size: 13px;
  }
  .feature-icon {
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 11px;
  }

  /* Footer note */
  .pricing-footer-note {
    font-size: 12px;
  }
}
