/**
 * design-system-v1.css — 全站 UI/颜色统一层（2026-11-15）
 *
 * 设计原则：
 *  1. 品牌色唯一：主站绿 #0f8a5f；促销强调色唯一：橙红 #e2482a（仅用于价格/角标/倒计时等小面积）
 *  2. 本文件在所有模块 CSS 之后加载，做"收口"——不删各模块样式，只覆盖关键令牌与组件规格
 *  3. 圆角阶梯收敛：4 / 8 / 12 / 16 / 24 / 999(胶囊)
 *  4. H1 阶梯：普通页 28px，列表页 32px，首页 Hero 例外
 */

:root {
  /* ===== 品牌色（唯一来源）===== */
  --brand: #0f8a5f;
  --brand-d: #0b6b49;
  --brand-lite: #28c08a;
  --brand-grad: linear-gradient(135deg, #0f8a5f, #0b6b49);

  /* ===== 促销强调色（唯一，橙红）===== */
  --promo: #e2482a;
  --promo-d: #c23a1f;
  --promo-lite: #ff7a45;
  --promo-grad: linear-gradient(135deg, #e2482a, #ff7a45);
  --promo-soft: rgba(226, 72, 42, .09);

  /* ===== 中性色对齐 ===== */
  --ink: #14251a;
  --gray-2: #47586c;
  --gray-3: #7b8a9e;
  --gray-line: #e3e9ef;

  /* ===== 圆角阶梯 ===== */
  --r-xs: 4px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* ===== 统一阴影 ===== */
  --sh-card: 0 10px 28px rgba(23, 58, 42, .10);
  --sh-pop: 0 22px 56px rgba(15, 40, 28, .22);
}

/* ================= H1 字号收敛 ================= */
/* 编辑型横幅（资讯频道 / 促销页）统一上限 38px；首页 Hero 例外保留 */
.nova-hero h1, .gb-hero h1, .cp-hero h1, .sk-hero h1, .nw-channel h1 {
  font-size: clamp(26px, 3.4vw, 38px) !important;
  line-height: 1.3;
}
/* 其余 h1 压平过大取值（60px 级）；不抬升刻意做小的（如用户中心 22px 组件标题） */
body h1 { font-size: clamp(24px, 3vw, 36px); }

/* ================= 横幅统一规格 ================= */
/* 促销页大横幅：统一品牌绿渐变 + 相同内边距/圆角/装饰光斑 */
.cp-hero, .sk-hero, .gb-hero {
  background: linear-gradient(135deg, #0d7a54 0%, #0f8a5f 55%, #16a97a 100%) !important;
  color: #fff !important;
  border-radius: var(--r-xl) !important;
  position: relative;
  overflow: hidden;
}
.cp-hero::after, .sk-hero::after, .gb-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  pointer-events: none;
}
.cp-hero::before, .sk-hero::before, .gb-hero::before {
  content: '';
  position: absolute;
  right: 90px;
  bottom: -80px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  pointer-events: none;
}
/* 横幅内文字统一为白色 */
.cp-hero *, .sk-hero *, .gb-hero * { color: #fff; }
.cp-hero b, .sk-hero b, .gb-hero b { color: #ffd9a8; }

/* ================= 促销按钮统一 ================= */
/* 抢购/领取/开团等促销主按钮：统一橙红渐变 + 相同圆角与字重 */
.sk-btn, .cp-btn, .gb-btn, .btn-promo {
  background: var(--promo-grad) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  border-radius: var(--r-pill) !important;
  box-shadow: 0 6px 16px rgba(226, 72, 42, .28) !important;
}
.sk-btn:hover, .cp-btn:hover, .gb-btn:hover, .btn-promo:hover { filter: brightness(1.06); }

/* ================= 导航胶囊统一 ================= */
/* 三个促销入口统一为同形状浅色胶囊；当前页时变品牌绿实底 */
.menu a.nav-deals, .menu a.nav-coupon, .menu a.nav-seckill {
  display: inline-flex;
  align-items: center;
  gap: 5px !important;
  padding: 5px 12px !important;
  border-radius: var(--r-pill) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  color: var(--brand-d) !important;
  background: rgba(15, 138, 95, .08) !important;
  border: 1px solid rgba(15, 138, 95, .22) !important;
  transition: background .18s, color .18s;
}
.menu a.nav-deals:hover, .menu a.nav-coupon:hover, .menu a.nav-seckill:hover {
  background: rgba(15, 138, 95, .14) !important;
}
.menu a.nav-deals.on, .menu a.nav-coupon.on, .menu a.nav-seckill.on {
  color: #fff !important;
  background: var(--brand-grad) !important;
  border-color: transparent !important;
}

/* ================= 客服浮窗统一为品牌绿 ================= */
.cs-btn, .support-float, .support-widget [class*="float"] {
  background: var(--brand-grad) !important;
  box-shadow: 0 8px 22px rgba(15, 138, 95, .35) !important;
}

/* ================= 弹窗（拼团询问 / 全站促销）统一品牌绿 ================= */
#groupAsk .ga-hero, #promoPopup .pp-hero,
.ga-head, .pp-head {
  background: linear-gradient(135deg, #0d7a54, #0f8a5f 55%, #16a97a) !important;
}
#groupAsk .ga-icon, #promoPopup .pp-icon,
.ga-badge, .pp-badge {
  background: rgba(255, 255, 255, .16) !important;
}
/* 弹窗主按钮：品牌绿（促销弹窗的"去拼团"也用绿，保持一致性） */
#groupAsk [data-ask-pick], #promoPopup .pp-cta, .ga-pick, .pp-go {
  background: var(--brand-grad) !important;
  color: #fff !important;
  border: none !important;
}

/* ================= 徽章 / 角标统一 ================= */
.badge, .tag, .corner-mark, .gb-hero-tags span, .sk-meta span {
  border-radius: var(--r-sm);
}

/* ================= 价格强调统一 ================= */
/* 促销价/优惠金额统一橙红；普通金额保持正文色 */
.price-promo, .flash-price, .coupon-face, .save-badge,
.gprice, .promo-price {
  color: var(--promo) !important;
}

/* ================= 表单与卡片微调 ================= */
.card, .panel { box-shadow: var(--sh-card); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], select, textarea {
  border-radius: var(--r-sm);
}

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .cp-hero, .sk-hero, .gb-hero { border-radius: var(--r-lg) !important; }
}
