/* 海蛇传奇合集站 · 全站样式（对应 Ardot 设计稿） */
:root {
  --bg: #0F0E0E;
  --bg-alt: #131211;
  --card: #1A1917;
  --card-line: rgba(255, 255, 255, 0.1);
  --gold: #E8C268;
  --gold-deep: #3A2A14;
  --gold-soft: #26241F;
  --text: #F2F2F2;
  --text-sub: #A8A8A8;
  --text-dim: #6E6C68;
  --text-faint: #4A4845;
  --green: #7DD9A6;
  --red: #E07866;
  --radius-card: 16px;
  --radius-btn: 12px;
  --kai: "LXGW WenKai Screen", "LXGW WenKai TC", "Kaiti SC", "STKaiti", "KaiTi", serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text-sub); font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
/* height:auto 必须显式声明。HTML 的 width/height 属性属于「呈现性提示」，优先级低于任何作者样式，
   但高于 UA 默认 —— 只覆盖 width 时高度仍由属性值决定，CSS 的 aspect-ratio 会彻底失效。
   实测（2026-10-14，Playwright 1440px）：首页主视觉被撑成 520x1024、详情页截图被撑成 243x1350
   （比例 0.18 的细长条），而 CSS 里明明写着 aspect-ratio: 3/4。
   显式写了 height 的规则（.logo img / .qr-row img / 图标）特异性更高，不受影响。 */
img { display: block; max-width: 100%; height: auto; }
/* <picture> 仅为格式协商外壳：display:contents 让它不生成盒子，内部 img 的定位与布局等同于直接书写 */
picture { display: contents; }
/* ⚠ display:contents 会把 picture 的【所有】子元素都提升为 grid/flex 子项 —— <source> 也算一个。
   不关掉它，5 张截图会被挤成「列2、列4 在第一行，列1、3、5 在第二行」的错位排布
   （2026-10-14 实测确认：grid item 落位 2/4/1/3/5，正是每个 picture 多贡献一个隐形格子的特征）。 */
picture > source { display: none; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 80px; } }

/* ===== Header ===== */
.site-header { height: 72px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.06); position: sticky; top: 0; background: rgba(15,14,14,0.92); backdrop-filter: blur(8px); z-index: 50; }
.header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 40px; height: 40px; border-radius: 9px; }
.logo .logo-text { font-family: var(--kai); font-weight: 700; font-size: 25px; color: var(--gold); letter-spacing: 1px; }
.logo .logo-badge { font-size: 11px; color: var(--text-sub); background: var(--card); border-radius: 6px; padding: 3px 8px; margin-left: 2px; }
.main-nav { display: none; gap: 36px; align-items: center; }
@media (min-width: 900px) { .main-nav { display: flex; } }
.main-nav a { font-size: 14px; color: var(--text-sub); transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius-btn); padding: 12px 28px; font-weight: 700; font-size: 15px; cursor: pointer; border: 0; white-space: nowrap; transition: transform .15s, box-shadow .15s, opacity .15s; }
.btn-gold { background: var(--gold); color: #0F0E0E; box-shadow: 0 8px 28px rgba(232,194,104,.25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232,194,104,.35); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid rgba(255,255,255,.16); }
.btn-ghost:hover { border-color: rgba(232,194,104,.5); }
.btn-sm { padding: 8px 20px; font-size: 13px; border-radius: 9px; }
.btn-disabled { background: var(--gold-soft); color: var(--text-dim); cursor: not-allowed; box-shadow: none; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* ===== Hero ===== */
.hero { background: linear-gradient(180deg, #171408 0%, #0F0E0E 100%); padding: 56px 0 64px; }
.hero-inner { display: flex; flex-direction: column; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-inner { flex-direction: row; gap: 56px; } }
.hero-left { flex: 1; min-width: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid rgba(232,194,104,.35); border-radius: 100px; padding: 6px 14px; font-size: 13px; color: var(--gold); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { font-family: var(--kai); font-weight: 700; font-size: 44px; line-height: 1.25; color: var(--text); margin: 22px 0 16px; }
@media (min-width: 1024px) { .hero h1 { font-size: 62px; } }
.hero .hero-sub { font-size: 16px; line-height: 1.85; max-width: 560px; }
.hero-cta { display: flex; gap: 16px; margin: 26px 0 22px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.hero-art { width: 100%; max-width: 520px; aspect-ratio: 520/420; border-radius: 20px; object-fit: cover; border: 1px solid rgba(232,194,104,.28); box-shadow: 0 16px 48px rgba(0,0,0,.5); }

/* ===== 区块通用 ===== */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 28px; }
.section-head h1, .section-head h2 { font-size: 29px; color: var(--text); font-weight: 700; margin-bottom: 8px; }
.section-head p { font-size: 14px; }

/* ===== 版本卡网格 ===== */
/* 一行固定 2 个（首页 / 版本合集），窄屏回落单列 */
.version-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .version-grid { grid-template-columns: 1fr; } }
/* 横向卡：封面在左，右侧信息整块背景铺满全高（内部禁止 <a> 嵌 <a>，否则浏览器会拆碎节点） */
.version-card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: row; transition: transform .2s, border-color .2s, box-shadow .2s; }
.version-card:hover { transform: translateY(-4px); border-color: rgba(232,194,104,.4); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.version-card.offline { opacity: .72; }
.version-card.offline:hover { transform: none; border-color: var(--card-line); box-shadow: none; }
.version-card .cover { position: relative; width: 45%; flex-shrink: 0; min-height: 190px; overflow: hidden; background: linear-gradient(135deg, #4a3819, #1a140d); }
.version-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.version-card .cover .cover-tag { position: absolute; top: 10px; left: 10px; background: rgba(232,194,104,.95); color: #0F0E0E; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; background: #161514; }
.card-body h3 { font-size: 18px; color: var(--text); font-weight: 600; }
.version-card.offline .card-body h3 { color: var(--text-sub); }
.card-body .desc { font-size: 13px; line-height: 1.6; color: var(--text-sub); flex: 1; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 4px 10px; border-radius: 100px; background: var(--gold-soft); color: var(--gold); }
.tag.hot { background: var(--gold-deep); font-weight: 700; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; flex-shrink: 0; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.status.off .dot { background: var(--red); }
.status.off { color: var(--red); }
.status.on { color: var(--green); }
@media (max-width: 600px) {
  .version-card { flex-direction: column; }
  .version-card .cover { width: 100%; aspect-ratio: 4/3; min-height: 0; }
  .version-card .cover img { position: static; }
  .card-body { background: none; }
}

/* ===== 福利 4 卡 ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.feature-card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-card); padding: 24px; }
.feature-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.feature-card p { font-size: 13px; }

/* ===== 对比表 ===== */
.compare-wrap { overflow-x: auto; border: 1px solid var(--card-line); border-radius: var(--radius-card); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; }
table.compare th, table.compare td { padding: 14px 16px; font-size: 13px; text-align: left; white-space: nowrap; }
table.compare thead th { background: var(--gold-soft); color: var(--gold); font-weight: 700; }
table.compare tbody tr:nth-child(odd) { background: #161514; }
table.compare tbody tr:nth-child(even) { background: var(--card); }
table.compare tbody th { color: var(--text-sub); font-weight: 500; white-space: nowrap; }
table.compare td { color: var(--text); }

/* ===== 开服条 ===== */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.server-chip { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 18px; }
.server-chip .name { font-size: 16px; color: var(--text); font-weight: 600; }
.server-chip .time { font-size: 12px; margin-top: 6px; }
.server-chip .time.today { color: var(--gold); font-weight: 500; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 24px; font-size: 15px; color: var(--text); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--gold); flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 18px; font-size: 14px; line-height: 1.8; }

/* ===== 详情页 ===== */
.breadcrumb { padding: 20px 0; font-size: 13px; color: var(--text-dim); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb .cur { color: var(--gold); }
.detail-hero { display: flex; flex-direction: column; gap: 32px; padding: 24px 0 56px; background: linear-gradient(180deg, #171408 0%, #0F0E0E 100%); }
@media (min-width: 1024px) { .detail-hero { flex-direction: row; gap: 48px; } }
.detail-cover { width: 100%; max-width: 560px; }
.detail-cover .cover-img { border-radius: 20px; border: 1px solid rgba(232,194,104,.28); box-shadow: 0 16px 48px rgba(0,0,0,.5); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.qr-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.qr-row img { width: 88px; height: 88px; border-radius: 10px; }
.qr-row .t1 { font-size: 14px; color: var(--text); font-weight: 500; }
.qr-row .t2 { font-size: 12px; color: var(--text-dim); }
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 { font-family: var(--kai); font-weight: 700; font-size: 34px; color: var(--text); line-height: 1.3; margin: 14px 0; }
.detail-info .desc { font-size: 15px; line-height: 1.8; }
.benefit-list { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.benefit-list li { font-size: 14px; color: var(--text); padding-left: 26px; position: relative; }
.benefit-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.offline-banner { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-soft); color: var(--red); border-radius: 10px; padding: 12px 20px; font-size: 14px; font-weight: 500; }

/* 礼包表 */
.gift-table-wrap { overflow-x: auto; border: 1px solid var(--card-line); border-radius: 14px; background: var(--card); }
table.gift { width: 100%; border-collapse: collapse; min-width: 640px; }
table.gift th, table.gift td { padding: 12px 16px; font-size: 13px; text-align: left; }
table.gift thead th { background: var(--gold-soft); color: var(--text-sub); font-weight: 500; }
table.gift tbody tr:nth-child(odd) { background: var(--card); }
table.gift tbody tr:nth-child(even) { background: #161514; }
table.gift td { color: var(--text); }
table.gift td.reward { color: var(--text-sub); }
.code-chip { font-family: "Sarasa Gothic SC", "JetBrains Mono", Consolas, monospace; font-weight: 700; color: var(--gold); background: var(--gold-soft); border-radius: 8px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 8px; }
.copy-btn { background: none; border: 1px solid rgba(232,194,104,.4); color: var(--gold); font-size: 11px; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.copy-btn:hover { background: rgba(232,194,104,.12); }

/* 截图 */
.shot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .shot-grid { grid-template-columns: repeat(2, 1fr); } }
.shot-grid img { border-radius: 12px; aspect-ratio: 3/4; object-fit: cover; width: 100%; border: 1px solid var(--card-line); }

/* ===== 礼包中心页 ===== */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 20px; }
@media (max-width: 520px) { .gift-grid { grid-template-columns: 1fr; } }
.gift-card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-card); padding: 24px; }
.gift-card.main { border-color: rgba(232,194,104,.35); }
.gift-card .icon-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gift-card .icon-row img { width: 44px; height: 44px; border-radius: 10px; }
.gift-card .icon-row h3 { font-size: 18px; color: var(--text); font-weight: 600; }
.gift-card .icon-row .vtag { font-size: 11px; color: var(--gold); background: var(--gold-deep); border-radius: 100px; padding: 2px 10px; }
.code-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.code-row .reward { font-size: 13px; color: var(--text-sub); flex: 1; min-width: 180px; }

/* ===== 相关推荐 / Footer ===== */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.related-card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius-card); padding: 22px; transition: border-color .2s; }
.related-card:hover { border-color: rgba(232,194,104,.4); }
.related-card h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.related-card p { font-size: 13px; margin-bottom: 10px; }
.related-card .link { font-size: 13px; color: var(--gold); font-weight: 500; }
.final-cta { background: var(--bg-alt); padding: 56px 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (min-width: 900px) { .final-cta { flex-direction: row; justify-content: space-between; align-items: center; } }
.final-cta h2 { font-family: var(--kai); font-weight: 700; font-size: 30px; color: var(--text); margin-bottom: 8px; }
.site-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 44px 0 32px; }
.footer-top { display: flex; flex-direction: column; gap: 32px; margin-bottom: 28px; }
@media (min-width: 900px) { .footer-top { flex-direction: row; gap: 80px; } }
.footer-brand { max-width: 380px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-dim); }
.footer-col h4 { font-size: 14px; color: var(--text); font-weight: 500; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.footer-col a:hover { color: var(--gold); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.05); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-faint); }

/* ---- 新区开服时间（tab 切换） ---- */
.srv-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.srv-tab { background: var(--card); border: 1px solid var(--card-line); color: var(--text-sub); border-radius: 100px; padding: 9px 20px; font-size: 14px; cursor: pointer; font-family: inherit; transition: color .2s, border-color .2s, background .2s; }
.srv-tab:hover { color: var(--text); border-color: rgba(232,194,104,.4); }
.srv-tab.active { background: var(--gold); border-color: var(--gold); color: #0F0E0E; font-weight: 700; }
.srv-tab .n { font-size: 12px; opacity: .7; margin-left: 6px; font-weight: 400; }
.srv-panel { display: none; }
.srv-panel.active { display: block; }
.srv-panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.srv-panel-foot .cnt { font-size: 13px; color: var(--text-faint); }
.srv-table { width: 100%; }
.srv-table th, .srv-table td { padding: 12px 16px; text-align: left; font-size: 13px; }
.srv-table thead th { color: var(--text-dim); font-weight: 500; background: var(--card-soft, rgba(255,255,255,.03)); }
.srv-table tbody tr + tr { border-top: 1px solid var(--card-line); }
.srv-table td.t { color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.srv-table td { color: var(--text); }
.tag-open, .tag-soon, .tag-today { display: inline-block; }
.tag-soon { background: rgba(125,217,166,.12); color: #7DD9A6; }
.tag-today { background: var(--gold-soft); color: var(--gold); font-weight: 600; }
.tag-open { background: rgba(255,255,255,.06); color: var(--text-dim); }
