/* home.css — 首页视觉 + 会员充值页占位。
   两套首页按容器 id 隔离：
     · #tab-home —— PC 首页（index.html），沿用旧站最终可见的浅色版式：
       使用教程条、居中 typographic hero、术语胶囊、公告条、写作框、
       圆形功能按钮、columns 瀑布流案例、页脚。
     · #homePage —— 手机壳首页（mobile.html），仍是矩形功能卡 + 等比例案例格，规则原样保留。
   变量来自 tokens.css；不叠 !important 补丁。 */

/* =========================================================
   A. #tab-home —— PC 首页（旧站最终壳版式）
   ========================================================= */

/* ---------- 使用教程条（可关闭） ---------- */
#tab-home .botd-tutorial {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 10px 14px;
  border: 1px solid #e6e7ff; border-radius: 999px; background: #f7f8ff;
}
#tab-home .botd-tutorial[hidden] { display: none; }
#tab-home .botd-tutorial-title { flex: none; color: #3a3f8f; font-size: 13px; font-weight: 800; }
#tab-home .botd-tutorial-text { min-width: 0; margin: 0; color: #5a6478; font-size: 12.5px; line-height: 1.6; }
#tab-home .botd-tutorial-close {
  flex: none; width: 26px; height: 26px; margin-left: auto; padding: 0;
  border: 0; border-radius: 50%; background: rgba(90, 100, 120, .1);
  color: #6b7686; font-size: 14px; line-height: 1; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}
#tab-home .botd-tutorial-close:hover { background: rgba(90, 100, 120, .18); color: #3a4150; }
#tab-home .botd-tutorial-close:active { background: rgba(90, 100, 120, .26); transform: scale(.94); }
#tab-home .botd-tutorial-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
#tab-home .botd-tutorial-close:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Hero（浅色，居中） ---------- */
#tab-home .home-hero-ad { padding: 36px 16px 20px; text-align: center; }
#tab-home .home-hero-ad-badge {
  display: inline-block; margin: 0 0 12px; padding: 6px 14px;
  border-radius: 999px; background: #eef0ff; color: #5b53e8;
  font-size: 12px; font-weight: 650;
}
#tab-home .home-hero-ad h1 {
  margin: 0 0 10px; color: #1c2430; font-size: clamp(26px, 4vw, 34px);
  font-weight: 800; line-height: 1.25; letter-spacing: -.01em;
}
#tab-home .home-hero-ad-sub {
  max-width: 40em; margin: 0 auto; color: #6b7686;
  font-size: 15px; line-height: 1.6;
}
/* 注册赠礼文案（#signup-bonus 由 home-config.js 写入，空则 hidden） */
#tab-home .home-bonus { margin: 12px 0 0; color: #c9a227; font-size: 13px; font-weight: 600; line-height: 1.5; }

/* ---------- 广告术语胶囊 ---------- */
#tab-home .home-ad-terms {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 900px; margin: 14px auto 0; padding: 0 16px;
}
#tab-home .home-ad-terms span {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border: 1px solid #e6e7ff; border-radius: 999px; background: #f3f4ff;
  color: #5b53e8; font-size: 12px; font-weight: 650; white-space: nowrap;
}

/* ---------- 系统公告条（静态，不依赖 app.js） ---------- */
#tab-home .home-notice {
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 900px; margin: 16px auto 0; padding: 14px 18px;
  border: 1px solid #e6e7ff; border-radius: 16px;
  background: linear-gradient(100deg, #eef1ff, #f7f1ff 70%);
  box-shadow: 0 6px 18px rgba(99, 91, 255, .08);
}
#tab-home .home-notice-icon { flex: none; font-size: 16px; line-height: 1.5; }
#tab-home .home-notice-body { min-width: 0; }
#tab-home .home-notice-body strong { display: block; font-size: 13px; font-weight: 800; color: #3a3f8f; }
#tab-home .home-notice-body span { font-size: 13px; line-height: 1.65; color: #4a5470; }
#tab-home .home-notice[hidden] { display: none; }
#tab-home .home-notice-close {
  flex: none; width: 26px; height: 26px; margin-left: auto; padding: 0;
  border: 0; border-radius: 50%; background: rgba(90, 100, 120, .1);
  color: #6b7686; font-size: 14px; line-height: 1; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}
#tab-home .home-notice-close:hover { background: rgba(90, 100, 120, .18); color: #3a4150; }
#tab-home .home-notice-close:active { background: rgba(90, 100, 120, .26); transform: scale(.94); }
#tab-home .home-notice-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
#tab-home .home-notice-close:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- 写作框（shell-composer） ---------- */
#tab-home .shell-composer { margin: 18px 0 0; padding: 0 2px; }
#tab-home .shell-composer-card {
  padding: 14px 18px 12px;
  border: 1px solid #e9edf3; border-radius: 28px; background: #fff;
  box-shadow: 0 1px 2px rgba(20, 28, 48, .04), 0 18px 40px -24px rgba(20, 28, 48, .35);
}
#tab-home .shell-composer-main { display: flex; align-items: flex-start; gap: 12px; }
#tab-home .shell-plus {
  flex: none; width: 56px; height: 56px; padding: 0;
  border: 0; border-radius: 16px; background: #e8eef8; color: #4a5470;
  font-size: 26px; font-weight: 400; line-height: 1; cursor: pointer;
  transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
}
#tab-home .shell-plus:hover:not(:disabled):not([aria-disabled="true"]) { background: #dfe7f4; }
#tab-home .shell-plus:active:not(:disabled):not([aria-disabled="true"]) {
  background: #d5dfef; transform: scale(.96);
}
#tab-home .shell-plus:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
#tab-home .shell-plus:disabled,
#tab-home .shell-plus[disabled],
#tab-home .shell-plus[aria-disabled="true"] {
  background: #e8eef8; box-shadow: none; opacity: .5;
  cursor: not-allowed; transform: none;
}
#tab-home #shellPrompt {
  flex: 1 1 auto; min-width: 0; min-height: 56px; padding: 8px 2px;
  border: 0; outline: none; resize: none; background: transparent;
  color: #1c2430; font: inherit; font-size: 15px; line-height: 1.6;
}
#tab-home .shell-composer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 4px; padding-left: 68px;
}
#tab-home .shell-composer-mode { color: #6b7686; font-size: 12.5px; font-weight: 650; }
#tab-home .shell-composer-send {
  flex: none; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: var(--action); color: #fff;
  font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
}
#tab-home .shell-composer-send:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--action-hover); box-shadow: 0 2px 8px -2px rgba(20, 28, 48, .35);
}
#tab-home .shell-composer-send:active:not(:disabled):not([aria-disabled="true"]) {
  background: var(--action-press); transform: scale(.92);
  box-shadow: 0 1px 3px rgba(20, 28, 48, .28);
}
#tab-home .shell-composer-send:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
#tab-home .shell-composer-send:disabled,
#tab-home .shell-composer-send[disabled],
#tab-home .shell-composer-send[aria-disabled="true"] {
  background: var(--action); box-shadow: none; opacity: .4;
  cursor: not-allowed; transform: none;
}

/* ---------- 功能按钮：圆形图标（6 个，默认 4 列 → 4+2） ---------- */
/* 默认与 <600：4 列，无白面板、圆 58、无 hover 位移 */
#tab-home .shell-skills {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 0; margin: 18px 0 6px; padding: 0 4px;
}
#tab-home .shell-skill {
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  min-height: 0; height: auto; margin: 0; padding: 4px 2px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: #5a6478; font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s cubic-bezier(.34, 1.2, .64, 1), color .22s ease,
              opacity .18s ease;
}
#tab-home .shell-skill:active:not(:disabled) { transform: scale(.96); }
#tab-home .shell-skill:focus-visible { outline: none; }
#tab-home .shell-skill:focus-visible > i {
  outline: 2px solid var(--brand); outline-offset: 3px;
}
#tab-home .shell-skill:disabled,
#tab-home .shell-skill[disabled],
#tab-home .shell-skill[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; transform: none;
}
#tab-home .shell-skill > i {
  position: relative; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%; font-style: normal;
  background: linear-gradient(158deg, var(--tile-a), var(--tile-b));
  color: var(--tile-ink);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1px 2px rgba(20, 28, 48, .04), 0 10px 20px -9px var(--tile-glow),
              inset 0 1px 1px rgba(255, 255, 255, .95);
  transition: box-shadow .26s ease, border-color .26s ease;
}
#tab-home .shell-skill > i svg { display: block; width: 25px; height: 25px; }
#tab-home .shell-skill > span {
  color: #5a6478; font-size: 12.5px; font-weight: 600; line-height: 1.25;
  letter-spacing: .01em; text-align: center; transition: color .22s ease;
}
/* 各功能淡色系（无小红书 / 翻译 / 视频） */
#tab-home .shell-skill.sk-main { --tile-a: #f0f2ff; --tile-b: #dde3ff; --tile-ink: #4b5ad3; --tile-glow: rgba(75, 90, 211, .34); }
#tab-home .shell-skill.sk-detail { --tile-a: #edf6ff; --tile-b: #d7e9fb; --tile-ink: #2b7dba; --tile-glow: rgba(43, 125, 186, .30); }
#tab-home .shell-skill.sk-wb { --tile-a: #f5f1ff; --tile-b: #e5dcfa; --tile-ink: #7256c4; --tile-glow: rgba(114, 86, 196, .30); }
#tab-home .shell-skill.sk-clone { --tile-a: #fff1f2; --tile-b: #fbdde1; --tile-ink: #c14f5c; --tile-glow: rgba(193, 79, 92, .28); }
#tab-home .shell-skill.sk-free { --tile-a: #ecf9f2; --tile-b: #d5eddf; --tile-ink: #3b9771; --tile-glow: rgba(59, 151, 113, .28); }
#tab-home .shell-skill.sk-tryon { --tile-a: #fdf0f8; --tile-b: #f7dcea; --tile-ink: #b04c89; --tile-glow: rgba(176, 76, 137, .28); }

/* ---------- 首页视频三分类 ---------- */
#tab-home .home-video-modes {
  --video-panel: #f7f7fb;
  margin: 28px 0 8px;
  padding: 22px;
  border: 1px solid #e9e8f3;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(103, 92, 255, .12), transparent 26%),
    linear-gradient(150deg, #fbfaff, #f6f7fb);
}
#tab-home .home-video-modes__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
#tab-home .home-video-modes__head span {
  color: var(--brand, #5b53e8);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
#tab-home .home-video-modes__head h2 {
  margin: 4px 0 0;
  color: #1c2430;
  font-size: 20px;
}
#tab-home .home-video-modes__head > button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #625bff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
#tab-home .home-video-modes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#tab-home .home-video-mode {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(226, 225, 240, .95);
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  color: #1c2430;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
#tab-home .home-video-mode:hover {
  transform: translateY(-3px);
  border-color: #c9c3ff;
  box-shadow: 0 16px 32px -20px rgba(68, 55, 190, .42);
}
#tab-home .home-video-mode > i {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #eeecff;
  color: #5d54e8;
  font-style: normal;
  font-size: 18px;
}
#tab-home .home-video-mode > span { min-width: 0; }
#tab-home .home-video-mode b,
#tab-home .home-video-mode small { display: block; }
#tab-home .home-video-mode b { font-size: 14px; }
#tab-home .home-video-mode small {
  margin-top: 5px;
  color: #7b8495;
  font-size: 11px;
  line-height: 1.55;
}
#tab-home .home-video-mode > em {
  grid-column: 2;
  color: #625bff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
#tab-home .home-video-mode.is-replicate > i { background: #e8f7ff; color: #247eae; }
#tab-home .home-video-mode.is-generate > i { background: #fff2e2; color: #c07016; }

/* ---------- 案例：CSS columns 瀑布流 ---------- */
#tab-home > .home-cases { position: relative; margin: 34px 2px 6px; }
#tab-home > .home-cases::before {
  content: "图片示例 · GALLERY";
  display: inline-flex; align-items: center; height: 26px;
  margin: 0 2px 12px; padding: 0 12px;
  border-radius: 999px; background: #f1f3f6; color: #6b7686;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
}
#tab-home .home-cases-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 0 2px 16px;
}
#tab-home .home-cases-head h2 {
  margin: 0; color: #161d29; font-size: 22px; font-weight: 800; letter-spacing: -.02em;
}
#tab-home .home-cases-head span { display: block; margin-top: 6px; color: #98a2b3; font-size: 12.5px; }
#tab-home .home-cases-more {
  flex: none; height: 34px; padding: 0 16px;
  border: 1px solid #e9edf3; border-radius: 999px; background: #fff;
  color: #1c2430; font-size: 12.5px; font-weight: 650; cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, transform .12s ease;
}
#tab-home .home-cases-more:hover:not(:disabled):not([aria-disabled="true"]) { background: #f7f8fa; box-shadow: 0 6px 16px -8px rgba(20, 28, 48, .3); }
#tab-home .home-cases-more:active:not(:disabled):not([aria-disabled="true"]) {
  background: #f0f2f6; transform: translateY(1px);
  box-shadow: 0 2px 6px -4px rgba(20, 28, 48, .28);
}
#tab-home .home-cases-more:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
#tab-home .home-cases-more:disabled,
#tab-home .home-cases-more[disabled],
#tab-home .home-cases-more[aria-disabled="true"] {
  background: #fff; box-shadow: none; opacity: .45;
  cursor: not-allowed; transform: none;
}
/* 默认（≤480）：1 列 */
#tab-home .home-cases-grid { columns: 1; column-gap: 10px; }
#tab-home .home-case-card {
  break-inside: avoid; margin: 0 0 14px; padding: 0;
  border: 0; border-radius: 20px; background: #f3f5f8; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 28, 48, .05);
  transition: transform .26s cubic-bezier(.2, .7, .3, 1), box-shadow .26s ease;
}
#tab-home .home-case-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(20, 28, 48, .35); }
#tab-home .home-case-media { display: block; position: relative; }
#tab-home .home-case-media img { display: block; width: 100%; height: auto; }
#tab-home .home-case-card:hover .home-case-media img {
  transform: scale(1.035); transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
#tab-home .home-case-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 38px 14px 13px; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 14, 22, .72), rgba(10, 14, 22, .34) 55%, transparent);
}
#tab-home .home-case-cap b {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #fff; font-size: 13.5px; font-weight: 700;
}
#tab-home .home-case-placeholder {
  column-span: all; display: grid; place-items: center; min-height: 120px;
  border: 1px dashed var(--line, #e6e9f0); border-radius: 16px; background: #f8f9fc;
  color: #98a2b3; font-size: 13px;
}

/* ---------- 页脚 ---------- */
#tab-home .site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
  margin-top: 32px; padding-top: 16px; border-top: 1px solid #eef1f6;
}
#tab-home .site-footer-brand { display: flex; flex-direction: column; gap: 2px; }
#tab-home .site-footer-brand strong { color: #3a4150; font-size: 13px; font-weight: 800; }
#tab-home .site-footer-brand span { color: #98a2b3; font-size: 12px; line-height: 1.6; }
#tab-home .site-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
#tab-home .site-footer-links button {
  padding: 0; border: 0; background: transparent;
  color: #7b8698; font-size: 12.5px; line-height: 1.6;
  transition: color .18s ease;
}
#tab-home .site-footer-links button:hover { color: #5148d8; }

/* ---------- 窄屏 ---------- */
@media (max-width: 599px) {
  #tab-home .botd-tutorial { gap: 8px; padding: 9px 12px; border-radius: 16px; align-items: flex-start; }
  #tab-home .botd-tutorial-text { font-size: 12px; }
  #tab-home .home-hero-ad { padding: 24px 12px 16px; }
  #tab-home .home-hero-ad-sub { font-size: 14px; }
  #tab-home .home-ad-terms span { height: 26px; padding: 0 10px; font-size: 11px; }
  #tab-home .home-notice { padding: 12px 14px; border-radius: 14px; }
  #tab-home .home-notice-body span { font-size: 12px; }
  #tab-home .shell-composer { margin-top: 14px; }
  #tab-home .shell-composer-card { padding: 12px 14px 10px; border-radius: 24px; }
  #tab-home .shell-composer-bar { padding-left: 0; }
  #tab-home .shell-skill > span { font-size: 12px; }
  #tab-home > .home-cases { margin: 22px 0 4px; }
  #tab-home .home-cases-head h2 { font-size: 17px; }
  #tab-home .home-cases-head span { font-size: 12px; }
  #tab-home .home-case-card { border-radius: 14px; margin-bottom: 12px; }
  #tab-home .site-footer { margin-top: 22px; }
  #tab-home .home-video-modes { margin-top: 20px; padding: 14px; border-radius: 18px; }
  #tab-home .home-video-modes__head { align-items: flex-start; }
  #tab-home .home-video-modes__head h2 { font-size: 17px; }
  #tab-home .home-video-modes__grid { grid-template-columns: 1fr; gap: 9px; }
  #tab-home .home-video-mode { grid-template-columns: 40px minmax(0, 1fr); padding: 12px; }
  #tab-home .home-video-mode > i { width: 40px; height: 40px; border-radius: 11px; }
}

/* 481–599：案例 2 列 */
@media (min-width: 481px) {
  #tab-home .home-cases-grid { columns: 2; column-gap: 10px; }
  #tab-home .home-case-card { margin-bottom: 10px; }
}

/* ---------- 平板（600–1023）：4 列 + 白面板 ---------- */
@media (min-width: 600px) {
  #tab-home .home-hero-ad { padding: 34px 20px 20px; }
  #tab-home .home-cases-grid { columns: 2; column-gap: 14px; }
  #tab-home .home-case-card { margin-bottom: 14px; }

  #tab-home .shell-skills {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 620px; padding: 22px 10px;
    background: #fff; border: 1px solid rgba(20, 28, 48, .055); border-radius: 24px;
    box-shadow: 0 1px 2px rgba(20, 28, 48, .03), 0 14px 36px -14px rgba(20, 28, 48, .14);
  }
  #tab-home .shell-skill { padding: 6px 2px; }
  #tab-home .shell-skill > i { width: 62px; height: 62px; }
  #tab-home .shell-skill > i svg { width: 27px; height: 27px; }
  #tab-home .shell-skill > span { font-size: 13px; }
  #tab-home .shell-skill:hover { transform: translateY(-4px); color: #1b2330; }
  #tab-home .shell-skill:hover > i {
    border-color: #fff;
    box-shadow: 0 3px 6px rgba(20, 28, 48, .05), 0 18px 30px -12px var(--tile-glow),
                inset 0 1px 1px rgba(255, 255, 255, 1);
  }
  #tab-home .shell-skill:hover > span { color: #1b2330; }
  #tab-home .shell-skill:active { transform: translateY(-1px) scale(.97); }
}

/* ---------- PC（≥1024）：6 个一排 ---------- */
@media (min-width: 1024px) {
  #tab-home { width: 100%; max-width: 1680px; margin-inline: auto; }

  #tab-home .botd-tutorial,
  #tab-home .shell-composer,
  #tab-home .shell-skills,
  #tab-home .home-video-modes,
  #tab-home .home-notice,
  #tab-home .home-ad-terms {
    max-width: 1480px;
    margin-inline: auto;
  }

  #tab-home .shell-skills {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-block: 16px 30px; border-radius: 24px;
  }
}

/* ---------- 宽屏（≥1200）：案例 3 列 ---------- */
@media (min-width: 1200px) {
  #tab-home .home-cases-grid { columns: 3; column-gap: 18px; }
  #tab-home .home-case-card { margin-bottom: 18px; }
}

/* =========================================================
   B. #homePage —— 手机壳首页（mobile.html，矩形卡版式，规则保持原样）
   ========================================================= */

/* ---------- 主视觉 ---------- */
#homePage .home-hero {
  display: grid; gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-5);
  background: var(--hero-bg); color: #fff;
  border-radius: var(--r-lg);
}
#homePage .home-hero__eyebrow { margin: 0 0 var(--sp-2); color: #a7a3ff; font-size: var(--fs-sm); font-weight: 600; }
#homePage .home-hero h1 { margin: 0 0 var(--sp-3); color: #fff; font-size: var(--fs-display); font-weight: 800; line-height: 1.2; }
#homePage .home-hero__desc { max-width: 40em; margin: 0 0 var(--sp-5); color: #c8c5dc; font-size: var(--fs-sm); line-height: 1.6; }
#homePage .home-bonus { margin: calc(var(--sp-4) * -1) 0 var(--sp-5); color: var(--vip); font-size: var(--fs-sm); font-weight: 600; line-height: 1.5; }
#homePage .home-hero__acts { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
#homePage .home-hero__acts .btn { width: 100%; }
#homePage .home-hero .btn.home-hero__ghost { border-color: rgba(255, 255, 255, .34); background: transparent; color: #fff; }
#homePage .home-hero .btn.home-hero__ghost:hover:not(:disabled):not([aria-busy="true"]) { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); }
#homePage .home-hero .btn.home-hero__ghost:active:not(:disabled):not([aria-busy="true"]) { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .55); }

/* ---------- 数据卡 ---------- */
#homePage .home-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-4); }
#homePage .home-stat {
  padding: var(--sp-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
#homePage .home-stat small { display: block; color: var(--text-3); font-size: var(--fs-xs); font-weight: 500; }
#homePage .home-stat b {
  display: block; margin-top: var(--sp-1);
  color: var(--text); font-size: var(--fs-h1); font-weight: 700; line-height: 1.25;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}

/* ---------- 功能卡（矩形） ---------- */
#homePage .home-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
#homePage .home-feature {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1);
  padding: var(--sp-3); text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
#homePage .home-feature:hover { border-color: #c8c5ff; box-shadow: var(--shadow-1); }
#homePage .home-feature__ico {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: var(--sp-1);
  border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-hover);
}
#homePage .home-feature__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#homePage .home-feature b { color: var(--text); font-size: var(--fs-h3); font-weight: 600; }
#homePage .home-feature small { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.5; }
#homePage .home-feature__arrow { align-self: flex-end; margin-top: auto; color: var(--text-3); font-size: var(--fs-body); }
#homePage .home-feature--wide { grid-column: span 2; }

/* ---------- 精选案例（等比例格） ---------- */
#homePage .home-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
#homePage .home-case {
  display: grid; place-items: center; aspect-ratio: 1 / 1; padding: var(--sp-2); margin: 0;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface-2);
  color: var(--text-3); font-size: var(--fs-xs); line-height: 1.5; text-align: center;
}
#homePage .home-case--placeholder { grid-column: 1 / -1; aspect-ratio: auto; min-height: 120px; }
#homePage .home-case--media { display: block; padding: 0; overflow: hidden; border-style: solid; border-color: var(--line); background: var(--surface); }
#homePage .home-case__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
#homePage .home-case__title {
  display: block; padding: var(--sp-2) var(--sp-3);
  color: var(--text-2); font-size: var(--fs-sm); line-height: 1.4; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#homePage .home-cases__more { display: flex; justify-content: center; margin-top: var(--sp-4); }
/* home-config.js 新版瀑布流卡（figure.home-case-card）在手机壳里保持等规格 */
#homePage .home-cases .home-case-card {
  margin: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
#homePage .home-cases .home-case-media { display: block; position: relative; }
#homePage .home-cases .home-case-media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
#homePage .home-cases .home-case-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px;
  background: linear-gradient(to top, rgba(10, 14, 22, .68), transparent);
}
#homePage .home-cases .home-case-cap b {
  display: block; color: #fff; font-size: var(--fs-sm); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#homePage .home-cases .home-case-placeholder {
  grid-column: 1 / -1; display: grid; place-items: center; min-height: 120px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface-2); color: var(--text-3); font-size: var(--fs-xs); text-align: center;
}

/* ---------- 页脚 ---------- */
#homePage .home-footer {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  margin-top: var(--sp-8); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
#homePage .home-footer button { padding: 0; border: 0; background: transparent; color: var(--text-3); font-size: var(--fs-sm); }
#homePage .home-footer button:hover { color: var(--brand-hover); }

/* 手机壳固定窄屏版式：大屏打开时也不切成 PC 分栏 */
@media (min-width: 768px) {
  #homePage .home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0; padding: var(--sp-6) var(--sp-5);
    border-radius: var(--r-lg);
  }
  #homePage .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--sp-4); }
  #homePage .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #homePage .home-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   C. 顶栏充值胶囊 + 会员充值页（其它页面也依赖，保持原规则）
   ========================================================= */
.btn.recharge-btn { border-color: var(--brand); background: var(--surface); color: var(--brand-hover); border-radius: var(--r-full); }
.btn.recharge-btn:hover:not(:disabled):not([aria-busy="true"]) { background: var(--brand-soft); border-color: var(--brand); }
.btn.recharge-btn:active:not(:disabled):not([aria-busy="true"]) { background: #e2dfff; border-color: var(--brand); }

.recharge-intro { margin-top: var(--sp-4); }
.recharge-intro h3 { margin-bottom: var(--sp-2); }
.recharge-intro .btn { margin-top: var(--sp-2); }
