/* 风寒修改器 · 统一官网样式（与工单页同系：暗底 / 绿主调 / 金色赞助层） */
:root {
  --bg: #0d1117;
  --bg-soft: #10161d;
  --panel: #161b22;
  --panel-2: #1c2330;
  --border: #232b38;
  --border-strong: #2d5a2d;
  --text: #e6edf3;
  --muted: #9aa7b6;
  --green: #4ade80;
  --green-deep: #2d5a2d;
  --gold: #e3b341;
  --gold-soft: #f0d089;
  --blue: #58a6ff;
  --red: #f85149;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶部通栏：高级赞助入口 ===== */
.vip-bar {
  background: linear-gradient(90deg, #2a2208 0%, #3a2f0a 55%, #2a2208 100%);
  border-bottom: 1px solid #55430f;
}
.vip-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap;
  padding: 9px 16px;
  color: var(--gold-soft);
  font-size: 0.92rem;
  text-align: center;
}
.vip-bar b { color: #ffe9ad; }
.vip-bar .go {
  background: #7a5c10; color: #fff2cc;
  border-radius: 999px; padding: 1px 12px; font-size: 0.82rem;
}

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 1.06rem; color: var(--text); white-space: nowrap; }
@media (max-width: 480px) {
  .brand { font-size: 0.98rem; }
  .brand small { display: none; }
  .nav-links a { padding: 5px 7px; font-size: 0.86rem; }
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--green); }
.brand small { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; padding: 5px 10px; border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav-links a.on { color: var(--green); background: rgba(74, 222, 128, 0.08); }

/* ===== 首页 hero ===== */
.hero { padding: 30px 0 8px; }
.hero h1 { margin: 0 0 6px; font-size: 1.7rem; letter-spacing: 0.5px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ===== 卡片墙 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding: 18px 0 30px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--green-deep); text-decoration: none; }
.card .cover { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--bg-soft); }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 1.04rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card .tagline { color: var(--muted); font-size: 0.86rem; flex: 1; }
.card .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.card .more { color: var(--green); font-size: 0.86rem; }
.card.paused .cover, .card.upcoming .cover { filter: grayscale(0.7) brightness(0.7); }
.card.paused .more { color: var(--muted); }

.badge {
  font-size: 0.72rem; font-weight: 600; border-radius: 999px; padding: 1px 9px;
  border: 1px solid transparent; white-space: nowrap;
}
.badge.free  { color: var(--green); border-color: var(--green-deep); background: rgba(74,222,128,.08); }
.badge.sponsor { color: var(--gold); border-color: #55430f; background: rgba(227,179,65,.08); }
.badge.soon  { color: var(--blue); border-color: #1e3a5a; background: rgba(88,166,255,.1); }
.badge.pause { color: var(--red); border-color: #5a1e1e; background: rgba(248,81,73,.1); }
.chip {
  font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 0 8px; white-space: nowrap;
}

/* ===== 通用段落卡 ===== */
.section { padding: 10px 0 26px; }
.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
}
.panel h2 { margin: 0 0 10px; font-size: 1.15rem; }
.panel h3 { margin: 16px 0 8px; font-size: 1rem; }
.panel p { color: var(--muted); font-size: 0.93rem; }
.panel p.strong { color: var(--text); }

/* 详情页头 */
.game-head { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 18px 0 6px; }
@media (min-width: 760px) {
  .game-head { grid-template-columns: 380px 1fr; align-items: start; }
}
.game-head img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }
.game-head h1 { margin: 4px 0 8px; font-size: 1.5rem; }
.game-head .tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.game-head .tagline { color: var(--muted); margin: 0 0 8px; }
.game-note {
  color: #ffb86b; font-size: 0.86rem; background: rgba(255, 184, 107, 0.07);
  border: 1px solid #5a4520; border-radius: 10px; padding: 8px 12px; margin-top: 8px;
}

/* 功能三层 */
.tier { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-bottom: 16px; }
.tier-head {
  padding: 12px 16px; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tier-head small { font-weight: 400; opacity: 0.85; font-size: 0.8rem; }
.tier-free .tier-head { background: linear-gradient(90deg, rgba(74,222,128,.16), rgba(74,222,128,.04)); color: var(--green); border-bottom: 1px solid var(--green-deep); }
.tier-sponsor .tier-head { background: linear-gradient(90deg, rgba(227,179,65,.16), rgba(227,179,65,.04)); color: var(--gold); border-bottom: 1px solid #55430f; }
.tier-custom .tier-head { background: linear-gradient(90deg, rgba(88,166,255,.14), rgba(88,166,255,.03)); color: var(--blue); border-bottom: 1px solid #1e3a5a; }
.tier ul { margin: 0; padding: 12px 16px 14px 34px; }
.tier li { margin: 3px 0; font-size: 0.93rem; }
.tier .tier-tip { padding: 0 16px 12px; color: var(--muted); font-size: 0.85rem; }
.tier-sponsor ul { border-left: none; }
.tier li::marker { color: var(--muted); }

/* 定制层折叠 */
.custom-toggle {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 12px 16px; color: var(--blue); font-size: 0.95rem;
}
.custom-toggle:hover { background: rgba(88,166,255,.05); }
.custom-body { display: none; padding: 0 16px 16px; }
.custom-body.open { display: block; }
.custom-body .group { margin-top: 10px; }
.custom-body .group b { color: var(--text); font-size: 0.93rem; }
.custom-body .group p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

/* 步骤 */
.steps { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.step .num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--green-deep);
  color: var(--green); font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; margin-bottom: 8px;
}
.step b { display: block; margin-bottom: 3px; font-size: 0.95rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.86rem; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 10px 18px; font-size: 0.95rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  cursor: pointer;
}
.btn:hover { border-color: var(--muted); text-decoration: none; }
.btn-primary { background: #1f6f37; border-color: #2d8a47; color: #eafff1; }
.btn-primary:hover { background: #258342; border-color: #38a45a; }
.btn-gold { background: #7a5c10; border-color: #9a7615; color: #fff3d6; }
.btn-gold:hover { background: #8f6d13; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }

/* VIP 页 */
.vip-hero {
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(227,179,65,.12), transparent),
    linear-gradient(180deg, #171307 0%, var(--bg) 100%);
  border-bottom: 1px solid #55430f;
  padding: 30px 0 24px;
}
.vip-hero .price { font-size: 2.4rem; font-weight: 800; color: #ffe9ad; line-height: 1.1; }
.vip-hero .price small { font-size: 1rem; font-weight: 400; color: var(--gold-soft); }
.vip-hero h1 { margin: 0 0 4px; font-size: 1.6rem; color: #ffe9ad; }
.vip-hero .sub { color: var(--gold-soft); margin: 0 0 12px; font-size: 1rem; }
.bound {
  border: 1px solid #55430f; background: rgba(227,179,65,.05);
  border-radius: 12px; padding: 12px 16px; margin: 14px 0;
}
.bound b { color: var(--gold); display: block; margin-bottom: 4px; font-size: 0.95rem; }
.bound li { color: #e8d9ae; font-size: 0.9rem; margin: 4px 0; }
.bound ul { margin: 0; padding-left: 20px; }
.vip-list { list-style: none; margin: 0; padding: 0; }
.vip-list li { padding: 7px 0 7px 26px; position: relative; font-size: 0.94rem; border-bottom: 1px dashed var(--border); }
.vip-list li:last-child { border-bottom: 0; }
.vip-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.vip-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vip-games .g {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; text-align: center; font-size: 0.82rem; color: var(--text);
}
.vip-games .g img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.vip-games .g span { display: block; padding: 6px 4px; }

/* 定制页 */
.flow { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .flow { grid-template-columns: repeat(3, 1fr); } }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  max-width: 430px; width: 100%; padding: 20px;
}
.modal h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--blue); }
.modal p { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }
.modal .btn-row { margin: 0; }

/* 页脚 */
footer {
  border-top: 1px solid var(--border);
  margin-top: 30px; padding: 20px 0 30px;
  color: var(--muted); font-size: 0.82rem;
}
footer .disc {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; line-height: 1.8;
}
footer .links { display: flex; gap: 14px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

.center { text-align: center; }
.muted { color: var(--muted); }
.mt0 { margin-top: 0; }
.hidden { display: none !important; }

/* VIP 促销价样式 */
.price .list-price { font-size: 1.15rem; color: var(--muted); margin-right: 10px; }
.promo-badge { display: inline-block; background: #7a5c10; color: #fff2cc; font-size: 0.85rem; font-weight: 700; border-radius: 999px; padding: 2px 12px; margin-right: 10px; vertical-align: middle; }
.promo-note { color: var(--gold-soft); font-size: 0.85rem; margin: 8px 0 0; }
