/* ==========================================================================
   GPT108 · Components
   可复用组件:按钮、卡片、套餐卡、时间线、特性卡、FAQ 折叠、
   微信对话框、滚动入场动画、移动端悬浮按钮等。
   ========================================================================== */

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
              background 180ms ease,
              border-color 180ms ease,
              box-shadow 180ms ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-sm { padding: 7px 16px; font-size: 0.86rem; }

/* 亮蓝主按钮 — 柔和单色过渡，无明显分界
   关键：background-clip: padding-box 防止渐变穿透 1.5px transparent border 形成"线" */
.btn-primary {
  background: linear-gradient(180deg, #14826B 0%, var(--blue-600) 100%);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  color: #fff;
  border: 0;
  box-shadow:
    0 10px 24px -6px rgba(15, 107, 86, 0.42),
    0 2px 5px rgba(15, 107, 86, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #15917A 0%, var(--blue-700) 100%);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px -6px rgba(15, 107, 86, 0.52),
    0 3px 8px rgba(15, 107, 86, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:focus-visible,
.btn-accent:focus-visible,
.btn-dark:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg-base), 0 0 0 6px rgba(201, 138, 43, 0.55);
}

/* 深黑药丸 — 来自 redeemgpt 的"卡密批量查询"按钮 */
.btn-dark {
  background: var(--dark-pill);
  color: #fff;
}

.btn-dark:hover {
  background: var(--dark-pill-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(20, 28, 24, 0.3);
}

/* 描边按钮 */
.btn-outline {
  background: #fff;
  color: var(--ink-1);
  border-color: var(--line-3);
}

.btn-outline:hover {
  background: var(--bg-tint);
  border-color: var(--ink-3);
}

/* 透明 ghost */
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(20, 28, 24, 0.04);
  color: var(--ink-1);
}

/* 着色强调按钮(第三梯队但更醒目,如「图文教程」)— 紫罗兰渐变,区别于蓝色主按钮 */
.btn-accent {
  background: linear-gradient(180deg, #D89A3A 0%, var(--accent-600) 100%);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  color: #fff;
  border: 0;
  box-shadow:
    0 10px 24px -6px rgba(201, 138, 43, 0.42),
    0 2px 5px rgba(201, 138, 43, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-accent:hover {
  background: linear-gradient(180deg, #E0A84C 0%, var(--accent-700) 100%);
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px -6px rgba(201, 138, 43, 0.52),
    0 3px 8px rgba(201, 138, 43, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.btn-accent:active { transform: translateY(0); }

.btn-block { width: 100%; }

/* ---------- 10. Plan cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1.5px solid var(--line-1);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms ease,
    border-color 280ms ease,
    background 320ms ease;
}

/* 卡片右上角的品牌色斜角光晕（始终可见，hover/选中时增强） */
.plan-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 65%);
  opacity: 0.10;
  z-index: -1;
  transition: opacity 320ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.plan-card:hover::before { opacity: 0.18; transform: scale(1.1); }
.plan-card.is-selected::before { opacity: 0.28; transform: scale(1.15); }

/* 各品牌的色调 — 给卡片整体染一抹品牌色 */
.plan-card[data-brand="chatgpt"] { color: #10A37F; }
.plan-card[data-brand="claude"]  { color: #D97757; }
.plan-card[data-brand="gemini"]  { color: #4285F4; }
.plan-card[data-brand="grok"]    { color: #475569; }
.plan-card[data-brand="kiro"]    { color: #F59E0B; }
.plan-card[data-brand="cursor"]  { color: #6366F1; }

.plan-card:hover {
  transform: translateY(-6px);
}

.plan-card-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), #C2730E);
  z-index: 1;
}

.plan-card[data-brand="chatgpt"] .plan-card-stripe { background: linear-gradient(90deg, #10A37F, #1FBA8E); }
.plan-card[data-brand="claude"]  .plan-card-stripe { background: linear-gradient(90deg, #D97757, #F2A47B); }
.plan-card[data-brand="gemini"]  .plan-card-stripe { background: linear-gradient(90deg, #4285F4, #9168C0, #EA4335); }
.plan-card[data-brand="grok"]    .plan-card-stripe { background: linear-gradient(90deg, #475569, #94A3B8); }
.plan-card[data-brand="kiro"]    .plan-card-stripe { background: linear-gradient(90deg, #FF9900, #FFB347); }
.plan-card[data-brand="cursor"]  .plan-card-stripe { background: linear-gradient(90deg, #6366F1, #A78BFA); }

/* 选中态（默认在 ChatGPT 上，跟随鼠标移动到悬浮卡片上）
   配色：浅薰衣草底（呼应背景渐变） + 深色边框 + 深色阴影
   不用蓝色调，与整体黑药丸+暖色背景体系统一 */
.plan-card.is-selected {
  background: linear-gradient(180deg, #EAF5F0 0%, #fff 65%);
  border-color: var(--ink-1);
  box-shadow:
    0 28px 60px -16px rgba(20, 28, 24, 0.30),
    0 0 0 4px rgba(20, 28, 24, 0.06),
    0 12px 24px -6px rgba(20, 28, 24, 0.10);
  transform: translateY(-8px);
}

.plan-card.is-selected .plan-card-stripe {
  height: 5px;
}

/* 选中态时，购买按钮自动变成黑色药丸，跟整体黑色高亮体系一致 */
.plan-card.is-selected .btn-outline {
  background: var(--ink-1);
  color: #fff;
  border-color: var(--ink-1);
}

.plan-card.is-selected .btn-outline:hover {
  background: #26302B;
  border-color: #26302B;
}

/* 鼠标悬浮态优先级最低，被 is-selected 覆盖即可 */
.plan-card:not(.is-selected):hover {
  box-shadow:
    0 18px 38px -12px rgba(20, 28, 24, 0.18),
    0 0 0 2px rgba(15, 107, 86, 0.25),
    0 4px 10px rgba(20, 28, 24, 0.05);
  border-color: rgba(15, 107, 86, 0.40);
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink-1) 0%, #26302B 100%);
  color: #fff;
  z-index: 3;
  box-shadow:
    0 6px 14px -2px rgba(20, 28, 24, 0.40),
    0 0 0 2px rgba(255, 255, 255, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.plan-badge::before {
  content: "★";
  margin-right: 4px;
  font-size: 0.65rem;
  color: #FCD34D;
}

.plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.plan-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* AI 品牌图标方块 — 未选中：品牌色淡底 + 品牌色描绘 */
.plan-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-1);
  background: var(--bg-tint);
  color: var(--ink-2);
  transition:
    background 260ms ease,
    color 260ms ease,
    border-color 260ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-logo svg {
  width: 20px;
  height: 20px;
}

/* 各品牌的图标淡底色 + 主色 */
.plan-card[data-brand="chatgpt"] .plan-logo { background: #ECFDF5; color: #10A37F; border-color: rgba(16, 163, 127, 0.15); }
.plan-card[data-brand="claude"]  .plan-logo { background: #FFF7ED; color: #D97757; border-color: rgba(217, 119, 87, 0.18); }
.plan-card[data-brand="gemini"]  .plan-logo { background: #EFF6FF; color: #4285F4; border-color: rgba(66, 133, 244, 0.18); }
.plan-card[data-brand="grok"]    .plan-logo { background: #F1F5F9; color: #475569; border-color: rgba(71, 85, 105, 0.18); }
.plan-card[data-brand="kiro"]    .plan-logo { background: #FFFBEB; color: #F59E0B; border-color: rgba(245, 158, 11, 0.20); }
.plan-card[data-brand="cursor"]  .plan-logo { background: #EEF2FF; color: #6366F1; border-color: rgba(99, 102, 241, 0.18); }

/* 选中态：图标方块跟卡片一起变黑 + 放大 + 阴影更深
   保留与品牌色的关联感 → 通过 box-shadow ring 留一圈品牌色光晕 */
.plan-card.is-selected .plan-logo {
  background: var(--ink-1);
  color: #fff;
  border-color: var(--ink-1);
  transform: scale(1.06);
  box-shadow:
    0 8px 20px -4px rgba(20, 28, 24, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.9);
}

/* 选中卡片图标外环 — 各品牌专属光晕 */
.plan-card.is-selected[data-brand="chatgpt"] .plan-logo {
  box-shadow: 0 8px 20px -4px rgba(16, 163, 127, 0.45),
              0 0 0 3px rgba(255, 255, 255, 0.9),
              0 0 0 5px rgba(16, 163, 127, 0.25);
}
.plan-card.is-selected[data-brand="claude"] .plan-logo {
  box-shadow: 0 8px 20px -4px rgba(217, 119, 87, 0.45),
              0 0 0 3px rgba(255, 255, 255, 0.9),
              0 0 0 5px rgba(217, 119, 87, 0.25);
}
.plan-card.is-selected[data-brand="gemini"] .plan-logo {
  box-shadow: 0 8px 20px -4px rgba(66, 133, 244, 0.45),
              0 0 0 3px rgba(255, 255, 255, 0.9),
              0 0 0 5px rgba(66, 133, 244, 0.25);
}
.plan-card.is-selected[data-brand="grok"] .plan-logo {
  box-shadow: 0 8px 20px -4px rgba(71, 85, 105, 0.45),
              0 0 0 3px rgba(255, 255, 255, 0.9),
              0 0 0 5px rgba(71, 85, 105, 0.3);
}
.plan-card.is-selected[data-brand="kiro"] .plan-logo {
  box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.45),
              0 0 0 3px rgba(255, 255, 255, 0.9),
              0 0 0 5px rgba(245, 158, 11, 0.28);
}
.plan-card.is-selected[data-brand="cursor"] .plan-logo {
  box-shadow: 0 8px 20px -4px rgba(201, 138, 43, 0.45),
              0 0 0 3px rgba(255, 255, 255, 0.9),
              0 0 0 5px rgba(201, 138, 43, 0.25);
}

/* 文字标签 — 不再用药丸，改用清晰的文字 */
.plan-tag {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}

.plan-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-4);
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--ink-1);
  line-height: 1.25;
}

.plan-sub {
  font-size: 0.88rem;
  color: var(--ink-3);
  margin-top: -8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 14px 0 18px;
  border-bottom: 1px dashed var(--line-2);
  font-feature-settings: "tnum" 1;
  position: relative;
}

.plan-price-currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-3);
  align-self: flex-end;
  transform: translateY(-8px);
  margin-right: 2px;
}

.plan-price-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink-1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  background: linear-gradient(180deg, var(--ink-1) 0%, #26302B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan-price-unit {
  font-size: 0.85rem;
  color: var(--ink-4);
  margin-left: 6px;
  font-weight: 500;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.plan-features li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.plan-card .btn { margin-top: 4px; }

/* ---------- 11. Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

/* 贯穿连接线：覆盖在 step-num 方块的垂直中心高度，端点带圆点
   z-index 0 让卡片白底盖在其上，露出的部分形成"卡片被串起来"的效果 */
.timeline::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(15, 107, 86, 0) 0%,
    #138A75 12%,
    #0E715F 50%,
    #C2730E 88%,
    rgba(201, 138, 43, 0) 100%);
  z-index: 0;
  pointer-events: none;
  border-radius: 2px;
}

/* 平板降到 2x2 */
@media (max-width: 1024px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
}

/* 手机端单列 — 在另一个 @media 里已经处理 */

.step {
  position: relative;
  padding: 30px 28px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-sm);
  z-index: 1;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 280ms ease,
              border-color 240ms ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 107, 86, 0.25);
}

/* step-num 数字方块 — 蓝紫渐变，跟连接线呼应，作为流程模块的视觉锚点 */
.step-num {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #138A75 0%, #0E715F 60%, #C2730E 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 22px;
  box-shadow:
    0 8px 20px -4px rgba(201, 138, 43, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-1);
  margin-bottom: 8px;
}

.step-text {
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------- 12. Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 280ms ease,
              border-color 240ms ease;
}

/* 右上角的彩色 blob 装饰 */
.feature::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 65%);
  opacity: 0.08;
  z-index: -1;
  transition: opacity 320ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature:hover::before {
  opacity: 0.16;
  transform: scale(1.1);
}

.feature-accent {
  background: linear-gradient(180deg, #ECFDF5, #fff 70%);
  border-color: rgba(16, 185, 129, 0.18);
}

.feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  box-shadow:
    0 4px 12px -2px rgba(15, 107, 86, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.feature-icon svg { width: 24px; height: 24px; }

/* 4 张卡片各自配一种品牌淡底 + 主色 icon */
.feature:nth-child(1) { color: #0E715F; }
.feature:nth-child(1) .feature-icon {
  background: linear-gradient(135deg, #E9F4EF, #C8E6D9);
  color: #0E715F;
  box-shadow: 0 6px 14px -3px rgba(37, 99, 235, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.feature:nth-child(2) { color: #059669; }
.feature:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  color: #059669;
  box-shadow: 0 6px 14px -3px rgba(5, 150, 105, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.feature:nth-child(3) { color: #7C3AED; }
.feature:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, #FBEFD8, #F6DCAE);
  color: #7C3AED;
  box-shadow: 0 6px 14px -3px rgba(124, 58, 237, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.feature:nth-child(4) { color: #EA580C; }
.feature:nth-child(4) .feature-icon {
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
  color: #EA580C;
  box-shadow: 0 6px 14px -3px rgba(234, 88, 12, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.feature-body { flex: 1; min-width: 0; }

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin-bottom: 6px;
}

.feature-text {
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------- 13. FAQ ---------- */
.faq {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 240ms ease, border-color 240ms ease, transform 240ms ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--line-2);
  transform: translateX(2px);
}

.faq-item.open {
  box-shadow:
    0 12px 28px -10px rgba(15, 107, 86, 0.15),
    0 0 0 1.5px rgba(15, 107, 86, 0.25);
  border-color: transparent;
  transform: none;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  text-align: left;
  cursor: pointer;
}

.faq-q {
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  line-height: 1.45;
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-tint);
  position: relative;
  transition: background 200ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink-2);
  border-radius: 1px;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease;
}

.faq-icon::before { width: 11px; height: 1.6px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.6px; height: 11px; transform: translate(-50%, -50%); }

.faq-item.open .faq-icon {
  background: var(--blue-600);
  transform: rotate(180deg);
}

.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: #fff; }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-body > p {
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ---------- 15. WeChat 对话框 ---------- */
.section-wechat {
  padding: 96px 0;
}

.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 680px;
}

.section-head-center .section-num {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  margin-bottom: 36px; /* 为下方英文标签预留空间 */
}

/* 居中布局的 section，英文小标签放数字方块下方，保持对称 */
.section-head-center .section-num::after {
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  padding-left: 0;
  border-left: none;
}

/* 居中布局下隐藏旁边的连接小线 */
.section-head-center .section-num::before {
  display: none;
}

.section-head-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* 整个聊天面板 — 模拟微信窗口 */
.wechat {
  max-width: 540px;
  margin: 0 auto;
  background: #EDEDED;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(20, 28, 24, 0.04),
    0 30px 60px -20px rgba(20, 28, 24, 0.22),
    0 12px 24px -12px rgba(20, 28, 24, 0.10);
  border: 1px solid rgba(20, 28, 24, 0.08);
  position: relative;
}

/* 微信顶部条 */
.wechat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #F7F7F7;
  border-bottom: 1px solid rgba(20, 28, 24, 0.06);
  font-weight: 600;
  color: var(--ink-1);
}

.wechat-bar-back,
.wechat-bar-dot {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-3);
  user-select: none;
  width: 24px;
  text-align: center;
  line-height: 1;
}

.wechat-bar-title {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

/* 聊天滚动容器 */
.wechat-scroll {
  height: 560px;
  overflow: hidden;
  position: relative;
  background: #EDEDED;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
}

.wechat-track {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* 由 JS 控制 translate3d 做缓慢自动向上滚动 */
  will-change: transform;
}

/* 时间戳 */
.wechat-time {
  align-self: center;
  font-size: 0.72rem;
  color: #B0B0B0;
  background: rgba(180, 180, 180, 0.15);
  padding: 3px 10px;
  border-radius: 4px;
  margin: 8px 0 4px;
}

.wechat-end {
  align-self: center;
  font-size: 0.72rem;
  color: #B0B0B0;
  padding: 14px 0 4px;
}

/* 消息行 */
.msg {
  display: flex;
  gap: 8px;
  max-width: 100%;
}

.msg-left  { justify-content: flex-start; }
.msg-right { justify-content: flex-end; }

.msg-avatar {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(20, 28, 24, 0.08);
}

/* 左侧客户头像右下角的"在线"绿点 — 营造微信真实感 */
.msg-left .msg-avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #EDEDED;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* 9 种用户头像颜色（沿用上版的渐变） */
.msg-avatar[data-color="0"] { background: linear-gradient(135deg, #FF8FA3, #FF6B8A); }
.msg-avatar[data-color="1"] { background: linear-gradient(135deg, #FFB088, #FF8859); }
.msg-avatar[data-color="2"] { background: linear-gradient(135deg, #A78BFA, #7C5CFF); }
.msg-avatar[data-color="3"] { background: linear-gradient(135deg, #5EEAD4, #14B8A6); }
.msg-avatar[data-color="4"] { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.msg-avatar[data-color="5"] { background: linear-gradient(135deg, #6BCEFA, #3B82F6); }
.msg-avatar[data-color="6"] { background: linear-gradient(135deg, #FB7185, #E11D48); }
.msg-avatar[data-color="7"] { background: linear-gradient(135deg, #93C5FD, #60A5FA); }
.msg-avatar[data-color="8"] { background: linear-gradient(135deg, #C4B5FD, #8B5CF6); }

/* 自家客服头像 — ChatGPT/OpenAI 经典深绿 */
.msg-avatar-self {
  background: #10A37F;
  color: #fff;
}

.msg-avatar-self svg {
  width: 22px;
  height: 22px;
}

.msg-body {
  max-width: calc(100% - 56px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-left  .msg-body { align-items: flex-start; }
.msg-right .msg-body { align-items: flex-end; }

.msg-name {
  font-size: 0.7rem;
  color: #888;
  padding: 0 2px;
}

/* 气泡 */
.msg-bubble {
  position: relative;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  word-break: break-word;
  max-width: 100%;
  box-shadow: 0 1px 2px rgba(20, 28, 24, 0.04);
}

/* 客户消息 — 白色气泡，左侧三角 */
.msg-left .msg-bubble {
  background: #FFFFFF;
  color: var(--ink-1);
  border-top-left-radius: 4px;
}

.msg-left .msg-bubble::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 6px 6px 0;
  border-color: transparent #FFFFFF transparent transparent;
}

/* 我方回复 — 微信经典浅绿色气泡 */
.msg-right .msg-bubble {
  background: #95EC69;
  color: var(--ink-1);
  border-top-right-radius: 4px;
}

.msg-right .msg-bubble::after {
  content: "";
  position: absolute;
  top: 10px;
  right: -6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 6px;
  border-color: transparent transparent transparent #95EC69;
}

/* 底部输入栏（装饰） */
.wechat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #F7F7F7;
  border-top: 1px solid rgba(20, 28, 24, 0.06);
}

.wechat-input-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  background: #fff;
  border-radius: 6px;
  border: 1px solid rgba(20, 28, 24, 0.08);
  font-size: 1.1rem;
  user-select: none;
}

.wechat-input-box {
  flex: 1;
  padding: 7px 12px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid rgba(20, 28, 24, 0.08);
  font-size: 0.85rem;
  color: var(--ink-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 减弱动画偏好下，禁用滚动 */
@media (prefers-reduced-motion: reduce) {
  .wechat-track { transform: none !important; }
}

/* 移动端 */
@media (max-width: 768px) {
  .section-wechat { padding: 64px 0; }
  .wechat { max-width: 100%; border-radius: 22px; }
  .wechat-scroll { height: 480px; }
  .msg-bubble { font-size: 0.88rem; padding: 9px 12px; }
  .wechat-bar-title { font-size: 0.88rem; }
  .msg-avatar { width: 34px; height: 34px; font-size: 0.92rem; }
}

/* ---------- 16. Reveal animations ---------- */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease-out, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 网卡逐张入场 */
.cards-grid .plan-card.reveal-init,
.timeline .step.reveal-init,
.features .feature.reveal-init {
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 20. 移动端右下角悬浮咨询客服按钮 ---------- */
.fab-contact {
  display: none; /* 默认隐藏，桌面端不需要 */
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600) 0%, #0E715F 100%);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 28px -6px rgba(15, 107, 86, 0.45),
    0 6px 14px -2px rgba(20, 28, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 220ms ease;
}

.fab-contact:active {
  transform: scale(0.94);
}

.fab-contact svg {
  width: 22px;
  height: 22px;
}

/* 右上角小绿点 — 显示"在线"状态 */
.fab-contact-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #fff;
  animation: pulseLive 1.6s ease-in-out infinite;
}

/* 移动端展示 — 已替换为底部固定操作栏 mobile-bar，此规则保留以防 HTML 中残留 */
@media (max-width: 768px) {
  .fab-contact { display: none; }
}


/* ==========================================================================
   21. SCENARIOS — 「适合谁使用」场景卡片
   保持与原 features 模块同一视觉系列：白底卡 + 柔和阴影 + hover 上浮
   ========================================================================== */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.scenario-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 220ms ease,
              border-color 220ms ease;
}

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

.scenario-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-50) 0%, #E0EFE8 100%);
  font-size: 22px;
  line-height: 1;
  margin-bottom: 14px;
}

.scenario-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.scenario-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.scenario-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--blue-50);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue-700);
}

.scenario-rec a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.scenario-rec-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-500);
  text-transform: uppercase;
}

.scenario-card-ghost {
  background: linear-gradient(135deg, rgba(201, 184, 255, 0.18), rgba(168, 200, 255, 0.18));
  border-style: dashed;
  border-color: var(--line-2);
}

@media (max-width: 1024px) {
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .scenarios-grid { grid-template-columns: 1fr; gap: 12px; }
  .scenario-card { padding: 20px; }
}


/* ==========================================================================
   22. CTA 区客服场景示例列表
   ========================================================================== */
.cta-list {
  margin: 8px 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-list li {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.cta-qr .qr-cap small {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--ink-4);
}


/* ==========================================================================
   23. 移动端底部固定操作栏
   替代原 fab-contact 圆形按钮，提供 3 个明确入口
   ========================================================================== */
.mobile-bar {
  display: none; /* 桌面端隐藏，移动端通过断点显示 */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -4px 20px -4px rgba(20, 28, 24, 0.08);
  gap: 8px;
  align-items: center;
  /* 兜底：不支持 backdrop-filter 也可正常显示 */
}

@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .mobile-bar {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
  }
}

.mobile-bar-item {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 48px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 12px;
  transition: background 180ms ease, color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bar-item svg {
  width: 20px;
  height: 20px;
}

.mobile-bar-item:active {
  background: var(--bg-tint);
  color: var(--ink-1);
}

.mobile-bar-cta {
  flex: 1.4;
  background: linear-gradient(135deg, var(--blue-500) 0%, #0E715F 100%);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  height: 48px;
  box-shadow: 0 4px 12px -2px rgba(15, 107, 86, 0.4);
}

.mobile-bar-cta:active {
  background: linear-gradient(135deg, var(--blue-600) 0%, #0A574A 100%);
}

@media (max-width: 768px) {
  .mobile-bar { display: flex; }
  /* 给 mobile-bar 留出底部空间，避免遮挡正文 */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}


/* ==========================================================================
   25. 套餐区通用提示徽章 — 让 "独享成品号 + 直充" 信息独立突出
   ========================================================================== */
.plans-tip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 28px;
  max-width: 760px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(15, 107, 86, 0.08) 0%, rgba(201, 138, 43, 0.08) 100%);
  border: 1px solid rgba(201, 138, 43, 0.18);
  border-radius: 14px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.plans-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #138A75 0%, #0E715F 60%, #C2730E 100%);
  color: #fff;
  box-shadow: 0 4px 10px -2px rgba(201, 138, 43, 0.45);
}

.plans-tip-icon svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px;
  max-height: 16px;
  flex-shrink: 0;
}

.plans-tip-text {
  flex: 1;
  min-width: 0;
  line-height: 1.55;
}

.plans-tip-text strong {
  font-weight: 700;
  background: linear-gradient(90deg, #138A75 0%, #C2730E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0 2px;
  padding: 0 1px;
}

.plans-tip-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid rgba(201, 138, 43, 0.25);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue-700);
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.plans-tip-link:hover {
  background: var(--blue-50);
  border-color: var(--blue-500);
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .plans-tip {
    padding: 12px 16px;
    font-size: 0.88rem;
    gap: 10px;
  }
  .plans-tip-link {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   26. 套餐横向对比表 — 移动端可横向滚动，桌面端完整展示
   ========================================================================== */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-1);
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

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

.compare-table thead th {
  text-align: left;
  padding: 16px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(201, 138, 43, 0.06), rgba(201, 138, 43, 0.02));
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}

.compare-table tbody th {
  text-align: left;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--ink-1);
  white-space: nowrap;
}

.compare-table tbody td {
  padding: 16px 18px;
  color: var(--ink-2);
  vertical-align: middle;
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--line-1);
  transition: background 160ms ease;
}

.compare-table tbody tr:last-child { border-bottom: 0; }

.compare-table tbody tr:hover {
  background: rgba(201, 138, 43, 0.035);
}

.compare-table td strong {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink-1);
}

.compare-table td small {
  font-size: 0.78rem;
  color: var(--ink-4);
  margin-left: 2px;
}

.compare-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.compare-dot[data-brand="chatgpt"] { background: #10A37F; }
.compare-dot[data-brand="claude"]  { background: #D97757; }
.compare-dot[data-brand="gemini"]  { background: #4285F4; }
.compare-dot[data-brand="grok"]    { background: #475569; }
.compare-dot[data-brand="kiro"]    { background: #F59E0B; }
.compare-dot[data-brand="cursor"]  { background: #6366F1; }

.compare-cta-col { text-align: center; }

.compare-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #15937C 0%, var(--blue-600) 100%);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 8px -1px rgba(15, 107, 86, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.compare-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -2px rgba(15, 107, 86, 0.45);
}

.compare-hint {
  display: none;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-4);
  margin-top: 12px;
}

@media (max-width: 768px) {
  .compare-hint { display: block; }
}


/* ==========================================================================
   27. 售后承诺信任区
   ========================================================================== */
.section-guarantee {
  padding-top: 0;
}

.guarantee-panel {
  background: linear-gradient(135deg, rgba(15, 107, 86, 0.06) 0%, rgba(201, 138, 43, 0.06) 100%);
  border: 1px solid rgba(201, 138, 43, 0.15);
  border-radius: 24px;
  padding: 40px;
}

.guarantee-head {
  text-align: center;
  margin-bottom: 32px;
}

.guarantee-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin-bottom: 8px;
}

.guarantee-sub {
  font-size: 0.95rem;
  color: var(--ink-3);
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.guarantee-item {
  text-align: center;
  padding: 0 8px;
}

.guarantee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  color: var(--blue-600);
  box-shadow: 0 6px 16px -4px rgba(201, 138, 43, 0.25);
  margin-bottom: 14px;
}

.guarantee-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 6px;
}

.guarantee-item-text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-3);
}

.guarantee-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-2);
}

.guarantee-pay-label {
  font-size: 0.86rem;
  color: var(--ink-3);
  margin-right: 4px;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
}
.pay-alipay { color: #1677FF; }
.pay-wechat { color: #07C160; }

@media (max-width: 1024px) {
  .guarantee-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .guarantee-panel { padding: 28px 20px; }
  .guarantee-grid { gap: 20px; }
  .guarantee-pay { gap: 8px; }
}

/* ===================================================================
   套餐栅格自适应(品牌 hub:1 居中 / 2 对半 / 3+ 每排最多 3)v5.16
   =================================================================== */
.cards-grid-1 {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}
.cards-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 800px;
  margin-inline: auto;
}
@media (max-width: 768px) {
  .cards-grid-1,
  .cards-grid-2 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
  }
}

/* ===================================================================
   全站公共页脚 .site-footer(v5.20:自有固定宽度容器 + 规整等分栅格)
   不用 .shell → 所有页面页脚宽度/布局完全一致。核心 CSS,全站加载。
   =================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  padding: 48px 0 28px;
  border-top: 1px solid var(--line-1);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
/* 与首页内容同宽公式,保证页脚在任何页面都一致、且与首页主体对齐 */
.site-footer-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* 规整等分栅格:品牌列(略宽)+ 3 个等宽链接列 */
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer-brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-footer-logo svg { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.site-footer-name { font-size: 1.05rem; font-weight: 800; color: var(--ink-1); letter-spacing: -0.01em; }
.site-footer-name em { font-style: normal; color: var(--blue-500); }
.site-footer-tagline { margin: 0; font-size: 0.86rem; line-height: 1.65; color: var(--ink-3); max-width: 300px; }
.site-footer-qr { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.site-footer-qr-frame {
  width: 88px; height: 88px; padding: 6px; flex-shrink: 0;
  background: #fff; border: 1px solid var(--line-1); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.site-footer-qr-frame img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.site-footer-qr-cap { margin: 0; font-size: 0.82rem; color: var(--ink-2); line-height: 1.55; }
.site-footer-qr-cap small { display: block; margin-top: 2px; color: var(--ink-4); font-size: 0.75rem; }

.site-footer-col-title { margin: 0 0 14px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-1); }
.site-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer-col a { font-size: 0.87rem; color: var(--ink-3); text-decoration: none; transition: color 0.2s ease; }
.site-footer-col a:hover { color: var(--blue-600); }

.site-footer-bottom {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line-1);
}
.site-footer-copyright { margin: 0; font-size: 0.84rem; color: var(--ink-3); }
.site-footer-disclaimer { margin: 0; font-size: 0.77rem; color: var(--ink-4); line-height: 1.7; }
.site-footer-disclaimer strong { color: var(--ink-2); margin-right: 6px; }

@media (max-width: 768px) {
  .site-footer { margin-top: 48px; padding: 36px 0 24px; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .site-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .site-footer-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   品牌 hub:自助兑换次要链接 + 紧凑相关文章(长方形小框)v5.18
   =================================================================== */
.hub-redeem { margin-top: 20px; display: flex; justify-content: center; }

.hub-kb {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 800px;
  margin-inline: auto;
}
.hub-kb-card {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hub-kb-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: 0 6px 18px rgba(20, 28, 24, 0.08);
}
.hub-kb-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 2px 9px;
  border-radius: 999px;
}
.hub-kb-card h3 {
  margin: 9px 0 5px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.4;
}
.hub-kb-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-3);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 600px) {
  .hub-kb { grid-template-columns: 1fr; }
}
