/* ============================================================
   游习社 · 前端设计系统 V3（鲜活大胆版）
   风格：游戏能量渐变 × 亲子温暖 × 管理专业
   手法：能量渐变配色、玻璃导航、多彩卡片封面、强阴影与悬浮动效
   保持既有类名兼容，全局收口于本文件
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  /* 品牌暖阳色板（方案A：明亮·活力·温暖） */
  --brand-1: #F79440;   /* 主橙 */
  --brand-2: #FFA257;   /* 杏橙 */
  --brand-3: #FF9F68;   /* 蜜桃橙 */
  --brand-4: #FFD166;   /* 金黄 */
  --brand-5: #34B3A0;   /* 青绿点缀 */

  --primary: #F79440;
  --primary-2: #FFA257;
  --primary-3: #34B3A0;
  --primary-dark: #D46B28;
  --primary-deep: #D46B28;
  --primary-soft: #fff3e8;
  --primary-light: #ffe9d6;

  --accent: #FFD166;
  --accent-dark: #e0b13e;
  --accent-soft: #fff8e6;

  --success: #10b981;
  --success-soft: #ecfdf5;

  --bg: #FFF4E8;
  --bg-top: #fff1df;
  --card: #fff;
  --text: #4A3F35;
  --text-sub: #8A7A6B;
  --text-faint: #A99A8C;
  --border: #f0e6d6;
  --danger: #e11d48;
  --warn: #FFD166;

  /* 主渐变 */
  --grad-brand: linear-gradient(135deg, #F79440 0%, #FFA257 45%, #FF9F68 100%);
  --grad-hero: linear-gradient(120deg, #D46B28 0%, #F79440 55%, #FFA257 100%);
  --grad-cover-1: linear-gradient(135deg, #F79440, #FFA257);
  --grad-cover-2: linear-gradient(135deg, #FF9F68, #FFD166);
  --grad-cover-3: linear-gradient(135deg, #34B3A0, #2FA08F);
  --grad-cover-4: linear-gradient(135deg, #FFA257, #F79440);

  /* 圆角 / 阴影 / 动效 */
  --radius: 24px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-sm: 0 2px 6px rgba(247, 148, 64, .06), 0 1px 3px rgba(247, 148, 64, .05);
  --shadow-md: 0 12px 32px rgba(247, 148, 64, .14);
  --shadow-lg: 0 20px 48px rgba(247, 148, 64, .20);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --dur: .22s;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 320px, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text); line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; transition: color var(--dur); }
a:hover { color: var(--primary-3); }

/* ---------------- 顶栏（暖奶油轻量） ---------------- */
.navbar {
  background: rgba(255, 244, 232, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(247, 148, 64, .12);
  position: sticky; top: 0; z-index: 100;
}
.navbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 60px;
  display: flex; align-items: center; gap: 26px;
}
.brand {
  font-size: 22px; font-weight: 800; color: #D46B28;
  letter-spacing: .5px; white-space: nowrap; background: none;
}
.brand small {
  font-size: 11px; font-weight: 700; color: #8A7A6B;
  margin-left: 6px; letter-spacing: 1px;
  display: inline-block; transform: translateY(-2px);
}
.nav-links { display: flex; gap: 6px; flex: 1; }
.nav-links a {
  color: #66594C; font-size: 15px; padding: 7px 14px; border-radius: 12px;
  position: relative; transition: color var(--dur), background var(--dur), box-shadow var(--dur);
}
.nav-links a:hover { color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.nav-links a.active {
  color: #fff; font-weight: 700;
  background: var(--grad-brand);
  box-shadow: 0 6px 16px rgba(247, 148, 64, .28);
}
.nav-new {
  position: absolute; top: 2px; right: 2px;
  background: var(--primary); color: #fff; font-size: 10px; line-height: 1;
  padding: 2px 5px; border-radius: 8px; font-weight: 700;
}
.nav-right { display: flex; gap: 10px; align-items: center; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-block; padding: 10px 22px; border: none; border-radius: 999px;
  cursor: pointer; font-size: 14px; font-weight: 600;
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 6px 18px rgba(247, 148, 64, .28);
  transition: transform var(--dur), box-shadow var(--dur), filter var(--dur);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(247, 148, 64, .36); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-outline { background: #fff; color: #D46B28; border: 1.5px solid var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--primary-soft); filter: none; }
.btn-danger { background: linear-gradient(135deg, #e11d48, #be123c); box-shadow: 0 6px 18px rgba(225, 29, 72, .28); }
.btn-danger:hover { filter: brightness(1.06); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; filter: none; }

/* ---------------- 布局 ---------------- */
.container { max-width: 1120px; margin: 0 auto; padding: 24px 20px 52px; }
.page-title { font-size: 24px; font-weight: 800; margin-bottom: 18px; color: var(--text); }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(247, 148, 64, .06);
  padding: 20px; transition: box-shadow var(--dur), transform var(--dur), border-color var(--dur);
}
.card:hover { border-color: rgba(247, 148, 64, .16); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 游戏卡 */
.game-card { cursor: pointer; overflow: hidden; border-radius: var(--radius); }
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.game-cover {
  height: 156px; border-radius: 0; margin: -20px -20px 16px;
  background: var(--grad-cover-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: #fff; position: relative; overflow: hidden;
}
.game-card:nth-child(4n+2) .game-cover { background: var(--grad-cover-2); }
.game-card:nth-child(4n+3) .game-cover { background: var(--grad-cover-3); }
.game-card:nth-child(4n+4) .game-cover { background: var(--grad-cover-4); }
.game-cover::before {
  content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.30), transparent 70%);
  top: -60px; right: -40px;
}
.game-cover::after {
  content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.20), transparent 70%);
  bottom: -50px; left: -30px;
}
.game-cover > * { position: relative; z-index: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.game-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; line-height: 1.4; }
.game-meta { font-size: 13px; color: var(--text-sub); }

/* 标签（多彩） */
.tag {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px;
  background: #FBE4D4; color: #C2704E; margin-right: 6px; font-weight: 700;
}
.tag-dim { background: #f4efe9; color: var(--text-sub); }
.tag-warm { background: #fef3c7; color: #b45309; }
.tag-cool { background: #cffafe; color: #0e7490; }
.point {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #FFF0CB; color: #B17F23; font-weight: 800; font-size: 12px;
}
.free {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #D9EAD3; color: #357249; font-weight: 800; font-size: 12px;
}
.new-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #4299E1; color: #fff; font-weight: 700; font-size: 12px;
}

/* ---------------- 首页 Hero（能量渐变） ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero);
  color: #fff; border-radius: 28px; padding: 52px 32px; margin-bottom: 30px;
  text-align: center; box-shadow: 0 24px 56px rgba(247, 148, 64, .28);
}
.hero::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  top: -150px; right: -90px;
}
.hero::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
  bottom: -140px; left: -80px;
}
.hero .spark { position: absolute; border-radius: 50%; opacity: .5; filter: blur(2px); z-index: 0; }
.hero h1 {
  font-size: 32px; font-weight: 800; margin-bottom: 12px; position: relative; z-index: 1;
  letter-spacing: .5px; text-shadow: 0 2px 16px rgba(0,0,0,.16);
}
.hero p { opacity: .95; font-size: 15px; margin-bottom: 24px; position: relative; z-index: 1; }
.hero .search { display: flex; gap: 10px; max-width: 540px; margin: 0 auto; position: relative; z-index: 1; }
.hero .search input {
  flex: 1; padding: 14px 20px; border: none; border-radius: 999px;
  font-size: 15px; outline: none; box-shadow: 0 4px 18px rgba(0,0,0,.16);
}
.hero .search input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.40), 0 4px 18px rgba(0,0,0,.16); }
.hero .search button {
  padding: 14px 30px; border: none; border-radius: 999px;
  background: #fff; color: #D46B28; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: transform var(--dur), box-shadow var(--dur), background var(--dur);
}
.hero .search button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.20); background: var(--primary-soft); }

/* 分类入口（彩色图标） */
.cat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-chip {
  flex: 1; min-width: 190px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 16px; text-align: center; cursor: pointer;
  transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur);
  position: relative;
}
.cat-chip .new-tag { position: absolute; top: 12px; right: 12px; }
.cat-chip:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-chip .ic {
  font-size: 32px; display: block; margin-bottom: 12px;
  width: 60px; height: 60px; line-height: 60px; border-radius: 18px;
  color: #fff; margin-left: auto; margin-right: auto;
  box-shadow: 0 6px 16px rgba(247, 148, 64, .24);
  transition: transform var(--dur), box-shadow var(--dur);
}
.cat-chip:nth-child(1) .ic { background: var(--grad-cover-1); }
.cat-chip:nth-child(2) .ic { background: var(--grad-cover-2); }
.cat-chip:nth-child(3) .ic { background: var(--grad-cover-3); }
.cat-chip:nth-child(4) .ic { background: var(--grad-cover-4); }
.cat-chip:hover .ic { transform: scale(1.1) rotate(-4deg); box-shadow: 0 10px 24px rgba(247, 148, 64, .34); }
.cat-chip b { font-size: 15px; color: var(--text); }

/* ---------------- 区块标题 ---------------- */
.section-title {
  font-size: 21px; font-weight: 800; margin: 30px 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.section-title::before {
  content: ""; width: 6px; height: 22px; border-radius: 4px;
  background: var(--grad-brand); margin-right: 10px;
}
.section-title a { font-size: 13px; color: #D46B28; font-weight: 600; }
.section-title a:hover { color: var(--primary); }

/* 留资表单 */
.lead-form {
  background: linear-gradient(135deg, #fff3e8, #fff);
  border: 1px solid rgba(247, 148, 64, .14); border-radius: var(--radius);
  padding: 28px; margin-top: 34px; box-shadow: var(--shadow-md);
}
.lead-form h3 { margin-bottom: 12px; font-size: 18px; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text-sub); font-weight: 600; }
.mode-box { border: 1.5px dashed #f0dcc8; border-radius: var(--radius-sm); padding: 14px; background: #fff8f1; margin-bottom: 12px; }
.mode-option { font-size: 13px; color: #333; margin-bottom: 8px; }
.input, .textarea, select.input {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; background: #fff; color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.input:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(247, 148, 64, .12); }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.textarea { min-height: 96px; resize: vertical; }
.row { display: flex; gap: 10px; align-items: center; }
.row .input { flex: 1; }
.code-btn { flex: 0 0 auto; white-space: nowrap; }

/* ---------------- 提示 ---------------- */
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%) translateY(-10px);
  background: linear-gradient(135deg, #F79440, #FFA257); color: #fff; padding: 12px 24px;
  border-radius: 999px; font-size: 14px; z-index: 1000; opacity: 0;
  transition: opacity var(--dur), transform var(--dur);
  pointer-events: none; box-shadow: 0 12px 32px rgba(247, 148, 64, .30);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: linear-gradient(135deg, #e11d48, #be123c); }
.toast.ok { background: linear-gradient(135deg, #10b981, #0d9488); }

/* ---------------- 列表 ---------------- */
.list-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 10px;
  border-bottom: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: background var(--dur);
}
.list-item:hover { background: var(--primary-soft); }
.list-item:last-child { border-bottom: none; }
.list-title { font-size: 16px; font-weight: 700; }
.list-sub { font-size: 13px; color: var(--text-sub); margin-top: 2px; }
.list-right { margin-left: auto; flex-shrink: 0; }

.empty { text-align: center; color: var(--text-sub); padding: 48px 0; font-size: 14px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 24px; align-items: center; }
.pager button {
  padding: 8px 16px; border: 1.5px solid var(--border); background: #fff; border-radius: 999px;
  cursor: pointer; font-size: 13px; transition: border-color var(--dur), color var(--dur), box-shadow var(--dur);
}
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager span { font-size: 13px; color: var(--text-sub); }

/* ---------------- 徽标 / 其他 ---------------- */
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-pending { background: #fef3c7; color: #b45309; }
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-no { background: #ffe4e6; color: var(--danger); }
.btn-primary { background: var(--grad-brand); color: #fff; }
.progress { background: var(--border); border-radius: 6px; height: 8px; overflow: hidden; margin: 8px 0; }
.progress-bar { background: var(--grad-brand); height: 100%; border-radius: 6px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab {
  padding: 10px 20px; cursor: pointer; background: none; border: none; white-space: nowrap;
  border-bottom: 3px solid transparent; font-size: 15px; color: var(--text-sub);
  transition: color var(--dur), border-color var(--dur);
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.noti-unread { background: var(--primary-soft); }
.hint { font-size: 12px; color: var(--text-sub); margin-top: 6px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }

  .navbar-inner { height: 54px; gap: 10px; padding: 0 12px; }
  .brand { font-size: 18px; }
  .brand small { display: none; }
  .nav-links { gap: 4px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 13px; padding: 6px 10px; }
  .nav-right { gap: 6px; flex-shrink: 0; }

  .container { padding: 16px 14px 40px; }
  .page-title { font-size: 21px; margin-bottom: 14px; }

  .hero { padding: 32px 18px; margin-bottom: 22px; border-radius: 18px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .hero .search { flex-wrap: wrap; }
  .hero .search button { flex: 1 1 100%; }
  .cat-chip { min-width: 150px; padding: 18px 12px; }
  .cat-chip .ic { width: 52px; height: 52px; line-height: 52px; font-size: 28px; }

  .row { flex-wrap: wrap; }
  .row .input { flex: 1 1 100%; }
  .row select.input { flex: 1 1 auto; min-width: 0; }
  .field { margin-bottom: 12px; }
  /* 手机 16px 字号防 iOS 聚焦自动放大 */
  .input, .textarea { padding: 12px; font-size: 16px; }
  select.input { font-size: 15px; }

  .btn { padding: 11px 18px; }
  .btn-sm { padding: 7px 13px; font-size: 13px; }
  .tag { font-size: 11px; }

  .game-cover { height: 104px; font-size: 36px; }
  .game-title { font-size: 14px; }
  .game-meta { font-size: 12px; }
  .card { padding: 16px; }

  .pager { flex-wrap: wrap; gap: 6px; }
  .pager span { font-size: 12px; }
  .list-title { font-size: 15px; }
  .list-sub { font-size: 12px; }
  .section-title { font-size: 18px; }
  .section-title { margin: 24px 0 12px; }
}

/* 统一页脚 */
.footer { background: var(--bg-top); border-top: 1px solid var(--border); padding: 22px 0 26px; margin-top: 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; }
.foot-links a { color: var(--text-sub); text-decoration: none; margin: 0 10px; font-size: 14px; }
.foot-links a:hover { color: var(--primary); }
.foot-links .sep { color: var(--border); margin: 0 4px; }
.foot-copy { color: var(--text-faint); font-size: 13px; margin-top: 10px; }

/* 帮助 / FAQ 页 */
.help-sec { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; margin-bottom: 22px; }
.help-sec h2 { font-size: 20px; margin-bottom: 12px; color: var(--text); }
.help-sec h3 { font-size: 16px; margin: 16px 0 6px; color: var(--text); }
.help-sec p { font-size: 15px; line-height: 1.7; color: var(--text-sub); margin-bottom: 6px; }
.help-list { list-style: none; }
.help-list li { font-size: 15px; line-height: 1.8; color: var(--text-sub); padding-left: 18px; position: relative; margin-bottom: 8px; }
.help-list li::before { content: '·'; position: absolute; left: 2px; color: var(--primary); font-weight: 800; }

/* 定制服务：hero 入口条 */
.custom-entry { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--primary); border-radius: 16px; padding: 12px 18px; margin-top: 16px; cursor: pointer; box-shadow: 0 6px 18px rgba(247, 148, 64, .10); }
.custom-entry:hover { border-color: var(--primary-dark); box-shadow: 0 8px 22px rgba(247, 148, 64, .2); }
.ce-ico { font-size: 24px; }
.ce-text { flex: 1; font-size: 14px; color: var(--text); }
.ce-go { font-weight: 700; color: var(--primary-dark); white-space: nowrap; }

/* 定制服务：底部完整模块 */
.custom-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; background: var(--grad-hero); color: #fff; border-radius: var(--radius); padding: 30px 32px; margin-top: 36px; box-shadow: 0 16px 40px rgba(247, 148, 64, .22); }
.ch-left h3 { font-size: 24px; margin-bottom: 4px; }
.ch-sub { font-size: 16px; opacity: .96; margin-bottom: 10px; }
.ch-desc { font-size: 14px; opacity: .9; margin-bottom: 16px; }
.ch-scenes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ch-scenes span { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45); border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 600; }
.ch-steps .step { font-size: 14px; margin-bottom: 8px; opacity: .95; }
.ch-steps .step b { color: var(--accent); margin-right: 4px; }
.ch-effect { font-size: 12.5px; opacity: .85; margin-top: 6px; }
.ch-right { background: #fff; color: var(--text); border-radius: 18px; padding: 22px; box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.ch-right h4 { font-size: 18px; margin-bottom: 14px; color: var(--primary-dark); }
.ch-right .input, .ch-right .textarea { margin-bottom: 10px; }
.ch-agree { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-sub); margin: 6px 0 12px; }
.ch-agree a { color: var(--primary); }
.ch-hint { font-size: 12px; color: var(--text-faint); margin-top: 10px; }
.ch-qr { margin-top: 12px; border: 1px dashed var(--border); border-radius: 12px; padding: 10px; text-align: center; font-size: 12px; color: var(--text-faint); min-height: 110px; display: flex; align-items: center; justify-content: center; }
.ch-qr img { width: 110px; height: 110px; object-fit: contain; display: block; margin: 0 auto; }
.ch-qr-tip { font-size: 11px; color: var(--text-faint); margin-top: 4px; }

@media (max-width: 760px) {
  .custom-hero { grid-template-columns: 1fr; padding: 22px 18px; }
  .custom-entry { flex-wrap: wrap; }
  .ce-go { width: 100%; }
}

/* ===== 首页优化：真实封面 + 大分类卡 + 自留地系列 ===== */
.game-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.game-cover-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.game-cover .ph-backup { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 52px; z-index: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 28px; }
.cat-card { background: linear-gradient(135deg, #fffdf8, #fff7ec); border: 1px solid var(--border); border-radius: 16px; padding: 26px 14px; text-align: center; cursor: pointer; box-shadow: 0 4px 14px rgba(247, 148, 64, .08); transition: transform .22s, box-shadow .22s, border-color .22s; position: relative; overflow: hidden; }
.cat-card::before { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 148, 64, .14), transparent 70%); top: -40px; right: -30px; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 10px 24px rgba(247, 148, 64, .2); }
.cat-card .cc-ico { font-size: 34px; margin-bottom: 6px; }
.cat-card .cc-name { font-size: 16px; font-weight: 800; color: var(--primary-dark); position: relative; }
.cat-card .cc-sub { font-size: 12.5px; color: var(--text-sub); margin-top: 6px; position: relative; }

/* 游戏卡：浏览/收藏数据行 */
.game-pop { font-size: 12px; color: var(--text-faint); margin-top: 7px; letter-spacing: .2px; }
.game-pop::before { content: "👁"; margin-right: 3px; font-size: 11px; }

.series-card { border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: 0 4px 14px rgba(247, 148, 64, .08); transition: transform .22s, box-shadow .22s; }
.series-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(247, 148, 64, .2); }
.series-cover { height: 110px; position: relative; overflow: hidden; background: linear-gradient(135deg, #F79440, #FF9F68); }
.series-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.series-cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.series-cover .badge { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.94); color: var(--primary-dark); font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 16px; z-index: 2; }
.series-body { padding: 12px 14px 14px; }
.series-body h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; line-height: 1.4; }
.series-desc { font-size: 12.5px; color: var(--text-sub); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.series-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-faint); }
.series-meta .go { color: var(--primary-dark); font-weight: 700; }

@media (max-width: 760px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 自留地页 ===== */
.series-hero { background: var(--grad-hero); border-radius: var(--radius); padding: 34px 32px; color: #fff; box-shadow: 0 12px 32px rgba(247, 148, 64, .14); margin-bottom: 24px; position: relative; overflow: hidden; }
.series-hero::after { content: "★"; position: absolute; right: -12px; bottom: -28px; font-size: 150px; opacity: .14; color: #fff; }
.series-hero .crumb { font-size: 13px; opacity: .85; margin-bottom: 10px; }
.series-hero .crumb a { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, .5); }
.series-hero h1 { font-size: 28px; margin-bottom: 6px; }
.series-hero p { font-size: 14px; opacity: .95; max-width: 640px; }

.series-detail-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-sub); margin-bottom: 18px; }
.series-detail-meta .back { margin-left: auto; }
.series-detail-meta .back a { color: var(--primary-dark); text-decoration: none; font-weight: 600; }

.item-list { display: flex; flex-direction: column; gap: 14px; }
.item-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; display: flex; gap: 14px; box-shadow: 0 4px 14px rgba(247, 148, 64, .06); }
.it-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-cover-1); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.it-body { flex: 1; }
.it-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.it-intro { font-size: 13.5px; color: var(--text-sub); margin-bottom: 6px; line-height: 1.6; }
.it-meta { font-size: 12px; color: var(--text-faint); margin-bottom: 10px; }
.it-game { display: flex; align-items: center; gap: 12px; background: var(--primary-soft); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; cursor: pointer; margin-top: 6px; }
.it-game:hover { border-color: var(--primary); }
.ig-cover { width: 56px; height: 40px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #F79440, #FF9F68); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.ig-cover img { width: 100%; height: 100%; object-fit: cover; }
.ig-info { flex: 1; }
.ig-title { font-size: 14px; font-weight: 700; }
.ig-go { font-size: 12px; color: var(--primary-dark); font-weight: 600; }

/* ============================================================
   视觉升级 V4：温暖 · 质感 · 值得信赖（全局设计系统收口）
   主橙 #F28C28 仅用于按钮/强调/hover；米白 #FAF6F0 与纯白交替分区
   线性图标；H2 板块标题=主标题+灰副标；板块间距统一；卡片浅投影少描边
   ============================================================ */
:root{
  --primary:#F28C28; --primary-dark:#D96C16; --primary-deep:#C25A17;
  --primary-2:#F79B45; --primary-3:#3E7A5E; --accent:#F28C28; --accent-dark:#D96C16;
  --primary-soft:#FEF3E7; --primary-light:#FFE8D2; --accent-soft:#FFF4E8;
  --bg:#FAF6F0; --bg-top:#FAF6F0; --card:#fff;
  --text:#2B2118; --text-sub:#6B5D52; --text-faint:#9A8B7D; --border:#EFE7DD;
  --radius:16px; --radius-sm:12px; --radius-xs:8px;
  --shadow-sm:0 2px 12px rgba(0,0,0,.06);
  --shadow-md:0 6px 20px rgba(0,0,0,.08);
  --shadow-lg:0 10px 30px rgba(0,0,0,.10);
  --grad-brand:linear-gradient(135deg,#F28C28,#F79B45);
  --grad-hero:linear-gradient(120deg,#FFF4E5 0%,#FFEBD6 55%,#FFE3C2 100%);
  --grad-cover-1:linear-gradient(135deg,#FFD9B8,#FFC58A);
  --grad-cover-2:linear-gradient(135deg,#F79B45,#F28C28);
  --grad-cover-3:linear-gradient(135deg,#3E7A5E,#5B9A7C);
  --grad-cover-4:linear-gradient(135deg,#FFC58A,#F79B45);
}
body{ background:var(--bg); background-attachment:fixed; }
.navbar{ background:rgba(250,246,240,.9); backdrop-filter:blur(12px); border-bottom:1px solid rgba(0,0,0,.05); }
.navbar-inner{ max-width:1200px; }
.brand{ color:var(--primary-dark); }
.nav-links a{ color:#4A3F35; }
.nav-links a.active{ background:var(--grad-brand); color:#fff; }

/* 通用内容宽度 1200 居中 */
.container{ max-width:1200px; padding:32px 24px 80px; }
.footer-inner{ max-width:1200px; }

/* 板块容器：间距统一（上下各 48px，相邻板块合计 96px） */
.home-section{ padding:48px 0; }

/* 板块标题：主标题 + 灰副标（H2 24-28px） */
.section-title{ margin:0 0 26px; font-size:24px; font-weight:800; display:flex; align-items:baseline; gap:12px; }
.section-title::before{ content:""; width:5px; height:20px; border-radius:3px; background:var(--grad-brand); margin-right:4px; }
.section-title small{ font-size:13px; color:var(--text-sub); font-weight:500; }
.section-title a{ font-size:13px; color:var(--text-sub); font-weight:600; margin-left:auto; }
.section-title a:hover{ color:var(--primary-dark); }

/* 卡片：浅投影、少描边、靠留白与底色分层 */
.card{ border:1px solid #F3ECE4; box-shadow:var(--shadow-sm); border-radius:var(--radius); }
.game-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }

/* ------- Hero：浅橙渐变、留白增多、搜索弱化 ------- */
.hero{
  background:var(--grad-hero); color:var(--text);
  border-radius:20px; padding:64px 40px 56px; margin-bottom:0;
  text-align:center; box-shadow:none; border:1px solid #F6E8D8;
}
.hero::before,.hero::after{ opacity:.5; }
.hero h1{ font-size:36px; color:var(--text); text-shadow:none; letter-spacing:-.01em; }
.hero p{ color:var(--text-sub); font-size:16px; }
.hero .search{ max-width:480px; }
.hero .search input{
  flex:1; padding:11px 18px; border:1px solid #E9DCCB; border-radius:10px;
  font-size:14px; background:#fff; box-shadow:none; color:var(--text);
}
.hero .search input:focus{ border-color:var(--primary); box-shadow:0 0 0 3px rgba(242,140,40,.14); }
.hero .search button{
  padding:11px 24px; border:none; border-radius:10px; background:var(--grad-brand); color:#fff;
  font-size:14px; font-weight:700; box-shadow:0 6px 16px rgba(242,140,40,.28);
}
.hero .search button:hover{ transform:translateY(-1px); }

/* 定制入口条：弱化为轻量白条 */
.custom-entry{ background:#fff; border:1px solid #F6E8D8; border-radius:14px; box-shadow:0 2px 10px rgba(0,0,0,.05); padding:12px 18px; }
.custom-entry:hover{ border-color:var(--primary); box-shadow:0 6px 18px rgba(242,140,40,.12); }
.ce-ico{ font-size:20px; color:var(--primary); }

/* ------- 自留地：浅橙底色分区，与普通板块区分 ------- */
.series-zone{
  background:linear-gradient(180deg,#FFF6EC,#FFF0DF);
  border:1px solid #F8E7D5; border-radius:24px; padding:40px 32px;
}
.series-card{ background:#fff; border:1px solid transparent; box-shadow:var(--shadow-sm); border-radius:16px; }
.series-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.series-cover{ height:120px; border-radius:0; }
.series-cover img{ object-fit:cover; }
.series-body h3{ font-size:16px; }
.series-desc{ font-size:13px; min-height:36px; }
.series-meta{ font-size:12px; }
.series-meta .go{ color:var(--primary-dark); }

/* ------- 杂志式游戏卡（featured 大卡 + 小卡） ------- */
.game-cover{ height:150px; margin:-20px -20px 14px; border-radius:0; }
.mag-featured{ display:grid; grid-template-columns:1.55fr 1fr; gap:24px; }
.mag-main{ position:relative; border-radius:16px; overflow:hidden; cursor:pointer; box-shadow:var(--shadow-sm); border:1px solid #F3ECE4; background:#fff; }
.mag-main .game-cover{ height:100%; min-height:300px; margin:0; border-radius:0; }
.mag-main .mg-body{ padding:22px 24px; }
.mag-main .game-title{ font-size:22px; margin-bottom:6px; }
.mag-main .mg-sub{ font-size:14px; color:var(--text-sub); margin-bottom:14px; }
.mag-side{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; align-content:start; }

/* 游戏卡精简信息：封面、名、1 标签、难度点；人数时长收底部小字 */
.mg-ctag{ display:inline-block; background:var(--primary-soft); color:var(--primary-dark); font-size:12px; font-weight:700; padding:3px 12px; border-radius:999px; margin-bottom:8px; }
.diff{ font-size:12px; letter-spacing:2px; color:var(--primary); }
.diff.on{ color:var(--primary); } .diff.off{ color:#E4D9CC; }
.game-foot{ font-size:12px; color:var(--text-faint); margin-top:8px; }
.game-pop{ color:var(--text-faint); margin-top:4px; }
.game-pop::before{ content:""; }

/* 游戏卡网格（最新上架保留小卡） */
.grid-4{ gap:24px; }

/* 分类卡：轻描边 + 渐变底 */
.cat-card{ background:linear-gradient(180deg,#fff,#FFF7EF); border:1px solid #F3ECE4; border-radius:14px; padding:28px 14px; box-shadow:var(--shadow-sm); }
.cat-card::before{ opacity:.5; }
.cat-card .cc-name{ font-size:16px; color:var(--text); }
.cat-card .cc-sub{ color:var(--text-sub); }

/* ------- 页尾定制模块：横向三步 + 二维码缩小 ------- */
.custom-hero{ background:var(--grad-hero); color:var(--text); border:1px solid #F6E8D8; border-radius:20px; padding:40px 40px; box-shadow:none; grid-template-columns:1.15fr 1fr; gap:40px; margin-top:0; }
.ch-left h3{ font-size:26px; color:var(--text); }
.ch-sub{ color:var(--text-sub); font-size:15px; }
.ch-desc{ color:var(--text-sub); font-size:14px; }
.ch-scenes span{ background:#fff; border:1px solid #F3E2D0; color:var(--primary-dark); padding:5px 14px; font-size:13px; }
.ch-steps{ display:flex; gap:0; margin-top:18px; align-items:center; }
.ch-steps .step{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-sub); }
.ch-steps .step b{ color:var(--primary-dark); }
.ch-steps .step i{ width:24px; height:24px; border-radius:50%; background:#fff; color:var(--primary-dark); font-style:normal; font-weight:700; font-size:12.5px; display:flex; align-items:center; justify-content:center; flex:none; box-shadow:0 2px 6px rgba(0,0,0,.06); }
.ch-steps .conn{ width:26px; height:1px; background:#E6D6C2; margin:0 10px; flex:none; }
.ch-effect{ color:var(--text-faint); font-size:13px; border-top:1px dashed #E6D6C2; padding-top:16px; margin-top:20px; }
.ch-right{ border-radius:16px; padding:24px; box-shadow:var(--shadow-md); }
.ch-right h4{ font-size:17px; }
.ch-qr{ min-height:auto; flex-direction:row; gap:10px; justify-content:flex-start; padding:10px; border:1px dashed var(--border); margin-top:10px; }
.ch-qr img{ width:56px; height:56px; margin:0; }
.ch-qr-tip{ font-size:11px; color:var(--text-faint); }

/* ------- 响应式：移动端单列 + 游戏卡横滑 ------- */
@media (max-width:768px){
  .home-section{ padding:36px 0; }
  .hero{ padding:40px 20px 34px; }
  .hero h1{ font-size:28px; }
  .hero p{ font-size:14px; }
  .mag-featured{ grid-template-columns:1fr; }
  .mag-main .game-cover{ min-height:200px; }
  .mag-side{ grid-template-columns:repeat(2,1fr); }
  .series-zone{ padding:26px 18px; }
  .custom-hero{ grid-template-columns:1fr; padding:26px 20px; }
  .ch-steps{ flex-wrap:wrap; gap:8px 0; }
  .ch-steps .conn{ display:none; }
}
/* 游戏卡横向滑动（小卡），仅小屏游戏网格横滑 */
@media (max-width:560px){
  .grid-4{ grid-template-columns:repeat(4,1fr); gap:14px; overflow-x:auto; }
  .grid-4 > *{ min-width:70%; scroll-snap-align:start; }
  .grid-4{ -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .grid-4::-webkit-scrollbar{ display:none; }
  .cat-grid{ grid-template-columns:repeat(2,1fr); }
}

/* ============================================================
   视觉升级 V5：组件统一 + 移动端修复（2026-10-11）
   依据交接说明 V2 · 4.8 组件规范；只追加，不改前面已有规则
   ============================================================ */

/* ---- 图标尺寸体系（4.2 补充：线性 SVG 统一 16/20/24，线宽 2） ---- */
:root{ --ico-sm:16px; --ico-md:20px; --ico-lg:24px; }
svg[width="16"], svg[width="18"]{ width:var(--ico-sm); height:var(--ico-sm); }
svg[width="20"], svg[width="22"]{ width:var(--ico-md); height:var(--ico-md); }
svg[width="24"], svg[width="26"]{ width:var(--ico-lg); height:var(--ico-lg); }

/* ---- 按钮状态收口（4.8：禁用态灰底） ---- */
.btn[disabled], .btn:disabled{
  background:#D8CFC5; color:#fff; box-shadow:none; transform:none; filter:none; cursor:not-allowed;
}
.btn-outline[disabled], .btn-outline:disabled{ background:#F1EFE8; color:#B4B2A9; border-color:#E4D9CC; }

/* ---- 表单错误态（4.8：统一错误提示样式） ---- */
.input.err, .textarea.err, select.input.err{
  border-color:var(--danger); box-shadow:0 0 0 3px rgba(225,29,72,.10);
}
.field-err{ font-size:12px; color:var(--danger); margin-top:4px; }

/* ---- 空态统一（4.8：图标 + 主文案 + 辅助文案 + CTA） ---- */
.empty{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:56px 20px; text-align:center; }
.empty .empty-ico{ width:52px; height:52px; border-radius:14px; background:var(--primary-soft); color:var(--primary-dark); display:flex; align-items:center; justify-content:center; margin-bottom:4px; }
.empty b{ font-size:15px; color:var(--text); font-weight:700; }
.empty small{ font-size:13px; color:var(--text-faint); }
.empty .btn{ margin-top:10px; }

/* ---- 骨架屏（4.8：列表加载占位；节点由页面 JS 后续按需插入，本层只提供样式） ---- */
.skeleton{
  background:#F3ECE4; border-radius:10px; position:relative; overflow:hidden;
}
.skeleton::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.75) 50%, transparent 100%);
  transform:translateX(-100%);
  animation:skeleton-sweep 1.2s infinite;
}
@keyframes skeleton-sweep{ to{ transform:translateX(100%); } }
@media (prefers-reduced-motion: reduce){ .skeleton::after{ animation:none; } }

/* ---- 板块标题：移动端改为纵向堆叠，修复竖排挤压 ---- */
@media (max-width:768px){
  .section-title{ display:block; font-size:20px; }
  .section-title::before{ display:inline-block; vertical-align:-3px; margin-right:8px; }
  .section-title small{ display:block; margin:6px 0 0; }
  .section-title a{ display:inline-block; margin:10px 0 0; }
}

/* ---- 首页网格移动端横滑修复：flex 替代 grid + 百分比 min-width ----
   （原 V4 写法 grid 轨道内 min-width 百分比按 auto 处理，导致 4 列挤压缩成竖条） */
@media (max-width:768px){
  .home-section .grid-4{
    display:flex; overflow-x:auto; gap:14px; padding-bottom:4px;
    scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none;
  }
  .home-section .grid-4::-webkit-scrollbar{ display:none; }
  .home-section .grid-4 > *{ flex:0 0 76%; min-width:0; scroll-snap-align:start; }
}

/* ============================================================
   视觉升级 V6：按定稿示例收口（2026-10-11 用户拍板）
   首页 hero=暖橙渐变白字；入口条=渐变图标块+两段文字；
   页尾定制模块=eyebrow+em 大标题+两列表单+底部一行；移动端汉堡导航
   ============================================================ */

/* ---- 移动端汉堡导航（4.8：折叠导航） ---- */
.nav-burger{ display:none; }
.nav-drawer{ display:none; }
@media (max-width:768px){
  .nav-burger{
    display:flex; align-items:center; justify-content:center;
    width:38px; height:38px; flex:none; color:var(--text);
    background:#fff; border:1px solid var(--border); border-radius:10px; cursor:pointer;
  }
  .nav-burger svg{ display:block; }
  .nav-links{ display:none !important; }   /* 桌面横排 → 移动端收进抽屉 */
  .nav-drawer{
    display:none; position:absolute; top:100%; left:0; right:0; z-index:99;
    background:#fff; border-bottom:1px solid var(--border);
    box-shadow:0 16px 32px rgba(0,0,0,.10); padding:6px 16px 12px;
  }
  .nav-drawer.open{ display:block; }
  .nav-drawer a{
    display:block; padding:13px 8px; font-size:15px; color:var(--text);
    border-bottom:1px solid #F3ECE4; position:relative;
  }
  .nav-drawer a:last-child{ border-bottom:none; }
  .nav-drawer a.active{ color:var(--primary-dark); font-weight:700; }
}

/* ---- 首页 Hero：暖橙渐变卡（定稿示例） ---- */
.hero{
  background:linear-gradient(120deg,#FFB35C 0%,#F98A2B 55%,#F2711C 100%);
  color:#fff; border:none; border-radius:20px;
  padding:48px 48px 44px; box-shadow:0 18px 40px rgba(242,113,28,.24);
}
.hero h1{ color:#fff; font-size:30px; }
.hero p{ color:rgba(255,255,255,.95); }
.hero .search{ max-width:520px; }
.hero .search input{
  border:none; border-radius:999px; padding:13px 20px; font-size:14.5px;
  box-shadow:0 4px 14px rgba(0,0,0,.12); background:#fff; color:var(--text);
}
.hero .search input:focus{ box-shadow:0 0 0 3px rgba(255,255,255,.40), 0 4px 14px rgba(0,0,0,.12); }
.hero .search button{
  background:#fff; color:var(--primary-dark); border-radius:999px;
  padding:13px 26px; font-weight:800; box-shadow:0 4px 14px rgba(0,0,0,.10);
}
.hero .search button:hover{ background:#FFF4E5; }
@media (max-width:768px){
  .hero{ padding:34px 22px 30px; }
  .hero h1{ font-size:24px; }
}

/* ---- 定制入口条：渐变图标块 + 两段文字（定稿示例） ---- */
.custom-entry{
  margin-top:18px; padding:13px 20px; gap:14px;
  border:1px solid #FFE3C7; border-radius:14px;
  justify-content:space-between;
}
.custom-entry:hover{ border-color:#FFC98F; box-shadow:0 8px 20px rgba(242,113,28,.10); }
.ce-ico{
  width:30px; height:30px; border-radius:9px; flex:none;
  background:linear-gradient(135deg,#FFB35C,#F97316);
  display:flex; align-items:center; justify-content:center;
}
.ce-ico svg{ width:15px; height:15px; }
.ce-text{ flex:1; font-size:14.5px; line-height:1.5; }
.ce-text b{ display:block; font-weight:700; color:var(--text); }
.ce-text span{ display:block; font-size:13.5px; color:var(--text-faint); margin-top:1px; }
.ce-go{ font-size:13.5px; color:var(--primary-dark); font-weight:600; }

/* ---- 页尾定制模块：eyebrow + em 大标题（定稿示例） ---- */
.custom-hero{
  background:
    radial-gradient(900px 400px at 88% -10%, #FFE3CC 0%, rgba(255,227,204,0) 62%),
    linear-gradient(180deg,#FFF8F2 0%,#FFF1E4 100%);
  border:1px solid #F6E3D2; border-radius:20px;
  padding:56px 48px; gap:52px; grid-template-columns:1.05fr 1fr;
}
.ch-eyebrow{
  display:inline-flex; align-items:center; gap:7px; width:fit-content;
  font-size:12px; font-weight:600; letter-spacing:.13em; color:var(--primary-dark);
  background:rgba(255,255,255,.8); border:1px solid #F2E3D4;
  padding:6px 13px; border-radius:999px; margin-bottom:18px;
}
.ch-eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--primary); }
.ch-left h3{ font-size:34px; letter-spacing:-.02em; margin-bottom:6px; }
.ch-left h3 em{ font-style:normal; color:var(--primary-dark); }
.ch-sub{ font-size:17px; font-weight:700; color:var(--text); margin-bottom:8px; }
.ch-right{ position:relative; border-radius:16px; padding:26px 26px 22px; overflow:hidden; }
.ch-right::before{
  content:""; position:absolute; inset:0 0 auto 0; height:4px;
  background:linear-gradient(90deg,#FFA94D,#F97316);
}
.ch-right h4{ font-size:17px; margin-bottom:2px; }
.ch-form-hint{ font-size:12.5px; color:var(--text-faint); margin-bottom:16px; }
.ch-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ch-row .input{ margin-bottom:12px; }
.ch-foot{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin-top:14px; padding-top:14px; border-top:1px dashed #F2E3D4;
}
.ch-foot .ch-hint{ margin-top:0; }
.ch-foot .ch-qr{ border:none; padding:0; margin-top:0; min-height:0; }
.ch-foot .ch-qr img{ width:44px; height:44px; margin:0; }
@media (max-width:768px){
  /* 覆盖 V8 层 .custom-hero 两列（源顺序在后，须在此重申单列） */
  .custom-hero{ grid-template-columns:1fr; padding:32px 22px; gap:32px; }
  .ch-left h3{ font-size:28px; }
  .ch-right{ padding:22px 18px; }
}
@media (max-width:560px){
  .custom-hero{ padding:26px 18px; }
  .ch-row{ grid-template-columns:1fr; }
  .ch-foot{ flex-direction:column; align-items:flex-start; }
}

/* ============================================================
   视觉升级 V7：自留地页重做（2026-10-11 晚）
   修复：V4 把 --grad-hero 改浅后 series-hero 白字失读 → 换首页同款暖橙渐变
   系列卡：超宽横条 → 2 列大卡（封面压深色渐变 + 白标题浮层）
   ============================================================ */

/* ---- Banner：与首页 hero 同款暖橙渐变，白字可读 ---- */
.series-hero{
  background:linear-gradient(120deg,#FFB35C 0%,#F98A2B 55%,#F2711C 100%);
  color:#fff; border-radius:20px; padding:44px 44px 40px;
  box-shadow:0 18px 40px rgba(242,113,28,.24); margin-bottom:36px;
}
.series-hero h1{ font-size:30px; letter-spacing:-.01em; }
.series-hero p{ font-size:15px; max-width:640px; }
.series-hero::after{ opacity:.16; }
@media (max-width:768px){
  .series-hero{ padding:32px 22px 30px; }
  .series-hero h1{ font-size:24px; }
  .series-hero p{ font-size:14px; }
}

/* ---- 系列卡：2 列大卡 ---- */
.sz-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.sz-card{
  background:#fff; border:1px solid #F3ECE4; border-radius:16px; overflow:hidden;
  cursor:pointer; box-shadow:var(--shadow-sm);
  transition:transform .22s, box-shadow .22s;
}
.sz-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.sz-cover{
  position:relative; height:190px; overflow:hidden;
  background:linear-gradient(135deg,#FFD9B8,#FFC58A);
}
.sz-cover img{ width:100%; height:100%; object-fit:cover; display:block; }
.sz-cover.has-img::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(43,33,24,0) 32%, rgba(43,33,24,.72) 100%);
}
/* 品牌渐变封面（按系列类型分色，定稿示例同款） */
.sz-cover.g-series{ background:linear-gradient(135deg,#FBBF6B,#F0791F); }
.sz-cover.g-workshop{ background:linear-gradient(135deg,#F99C4A,#E05E12); }
.sz-cover.g-challenge{ background:linear-gradient(135deg,#F7AE55,#DE6A1B); }
.sz-cover.g-default{ background:linear-gradient(135deg,#FFC178,#F5822A); }
.sz-cover .sz-tag{
  position:absolute; top:12px; left:12px; z-index:2;
  font-size:11px; font-weight:700; color:#fff; letter-spacing:.06em;
  background:rgba(43,33,24,.45); backdrop-filter:blur(4px);
  padding:3px 10px; border-radius:6px;
}
.sz-cover h3{
  position:absolute; left:16px; right:16px; bottom:12px; z-index:2; margin:0;
  color:#fff; font-size:19px; font-weight:800; letter-spacing:-.01em;
  line-height:1.3; text-shadow:0 1px 6px rgba(60,30,0,.35);
}
.sz-cover-ph::before{
  content:"★"; position:absolute; right:14px; bottom:-18px; z-index:1;
  font-size:110px; color:rgba(255,255,255,.35);
}
.sz-body{ padding:16px 18px 14px; }
.sz-body p{
  font-size:13.5px; color:var(--text-sub); line-height:1.65; margin:0 0 12px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  min-height:44px;
}
.sz-meta{ display:flex; align-items:center; justify-content:space-between; font-size:12.5px; color:var(--text-faint); }
.sz-meta .go{ color:var(--primary-dark); font-weight:700; }
@media (max-width:768px){
  .sz-grid{ grid-template-columns:1fr; gap:16px; }
  .sz-cover{ height:170px; }
  .sz-cover h3{ font-size:17px; }
}

/* ==== V8：首页自留地卡改为品牌渐变封面（与自留地页统一） ==== */
.series-cover.has-img::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(43,33,24,0) 34%, rgba(43,33,24,.66) 100%);
}
.series-cover.g-series{ background:linear-gradient(135deg,#FBBF6B,#F0791F); }
.series-cover.g-workshop{ background:linear-gradient(135deg,#F99C4A,#E05E12); }
.series-cover.g-challenge{ background:linear-gradient(135deg,#F7AE55,#DE6A1B); }
.series-cover.g-default{ background:linear-gradient(135deg,#FFC178,#F5822A); }
/* 星形水印（右下角，替代原居中 emoji 占位） */
.series-cover .ph{
  position:absolute; inset:auto; right:8px; bottom:-26px; z-index:1;
  display:block; font-size:86px; line-height:1; color:rgba(255,255,255,.34);
  pointer-events:none;
}
.series-cover .badge{ z-index:2; }

/* ---- V8.1：隐私同意行排版修复 ----
   原因：.ch-agree 用 flex 排版，裸文本节点各成 flex item、内部各自断行，
   导致"同/意""《隐私政/策》"被拆碎。现文本统一包进 <span> 整体换行。 */
.ch-agree{
  display:flex; align-items:flex-start; gap:8px;
  font-size:12.5px; line-height:1.7; color:var(--text-sub);
  margin:10px 0 14px;
}
.ch-agree input{
  flex:none; width:15px; height:15px; margin-top:3px;
  accent-color:var(--primary); cursor:pointer;
}
.ch-agree span{ flex:1; }
.ch-agree a{
  color:var(--primary-dark); font-weight:600;
  text-decoration:underline; text-underline-offset:2px;
}

/* ---- V8.2：微信二维码移至左栏"扫码加微信"卡 ---- */
.ch-wx{
  margin-top:28px; display:flex; align-items:center; gap:14px;
  background:rgba(255,255,255,.78); border:1px solid #F2E3D4; border-radius:14px;
  padding:14px 18px 14px 14px; width:fit-content; max-width:100%;
}
.ch-wx .ch-qr{
  width:86px; height:86px; min-height:0; flex:none; box-sizing:border-box; margin-top:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  padding:6px; font-size:10.5px; color:var(--text-faint); text-align:center; line-height:1.5;
  border:1px dashed #E8CFAF; border-radius:10px; background:#fff;
}
.ch-wx .ch-qr img{ width:72px; height:72px; object-fit:contain; margin:0; }
.ch-wx .ch-qr-tip{ font-size:10px; color:var(--text-faint); }
.ch-wx .wx-text b{ display:block; font-size:14px; color:var(--text); margin-bottom:4px; }
.ch-wx .wx-text span{ display:block; font-size:12px; color:var(--text-faint); line-height:1.6; }
.ch-wx .wx-text{ flex:1; min-width:0; }
@media (max-width:560px){
  .ch-wx{ width:100%; }
}
