/* war3.vip 门户样式 —— 版式参考九游：白底、橙色主色、模块化卡片 */
:root {
  --brand: #ff5b21;
  --brand-2: #ff8a08;
  --brand-soft: #fff2ec;
  --ink: #1b1e24;
  --ink-2: #3c424c;
  --muted: #7c828d;
  --line: #e9ecf1;
  --bg: #f5f6f8;
  --dark: #14171d;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(20, 23, 29, .05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

.wrap { width: 1200px; max-width: calc(100% - 32px); margin: 0 auto; }
.main { padding-bottom: 40px; }

/* ---------- 顶部条 ---------- */
.topbar { background: var(--dark); color: #a7adb9; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-left .dot { width: 3px; height: 3px; border-radius: 50%; background: #4b5260; }
.topbar-right { display: flex; gap: 18px; }
.topbar-right a:hover { color: #fff; }

/* ---------- 头部 ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 82px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 91, 33, .28);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 21px; letter-spacing: -.4px; }
.logo-text em { font-style: normal; font-size: 11px; color: var(--muted); margin-top: 3px; }

.search { flex: 1; max-width: 470px; display: flex; height: 40px; }
.search input {
  flex: 1; min-width: 0; border: 2px solid var(--brand); border-right: 0;
  border-radius: 8px 0 0 8px; padding: 0 14px; font-size: 13px; color: var(--ink);
  outline: none; background: #fff;
}
.search input::placeholder { color: #a3a9b3; }
.search button {
  border: 0; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
  padding: 0 24px; border-radius: 0 8px 8px 0;
}
.search button:hover { background: #ea4a12; }

.header-links { display: flex; gap: 20px; font-size: 13px; color: var(--ink-2); margin-left: auto; }
.header-links .hl-hot { color: var(--brand); font-weight: 600; }

.mainnav { border-top: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 6px; height: 46px; }
.nav-inner > a {
  padding: 0 16px; height: 46px; display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 600; color: var(--ink-2); position: relative;
}
.nav-inner > a:hover { color: var(--brand); }
.nav-inner > a.active { color: var(--brand); }
.nav-inner > a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px;
  background: var(--brand); border-radius: 3px 3px 0 0;
}
.nav-spacer { flex: 1; }
.nav-inner > a.nav-sub { font-size: 12px; font-weight: 400; color: var(--muted); padding: 0 8px; height: auto; }
.nav-inner > a.nav-sub:hover { color: var(--brand); }

/* ---------- 首屏 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr) 264px; gap: 16px; margin-top: 16px; }

.carousel { position: relative; border-radius: var(--radius); overflow: hidden; background: #0e1117; aspect-ratio: 16 / 9; }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; }
.carousel .slide.on { opacity: 1; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,0) 30%, rgba(10,12,16,.86) 100%);
}
.slide-text { position: absolute; left: 26px; right: 26px; bottom: 24px; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.slide-tag {
  font-style: normal; font-size: 11px; letter-spacing: .5px; color: #ffd8c6;
  background: rgba(255, 91, 33, .22); border: 1px solid rgba(255, 131, 90, .5);
  padding: 2px 9px; border-radius: 20px; align-self: flex-start;
}
.slide-text strong { font-size: 27px; letter-spacing: .5px; }
.slide-text small { color: #c8ccd4; font-size: 13px; max-width: 78%; }
.slide-cta { font-size: 12px; color: var(--brand-2); margin-top: 4px; }
.carousel-dots { position: absolute; right: 20px; bottom: 22px; display: flex; gap: 6px; }
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.42);
}
.carousel-dots button.on { background: var(--brand); width: 20px; border-radius: 4px; }

.hero-news, .hero-rank, .side-box, .block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-news { padding: 16px 18px; display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h2, .panel-head h3 { font-size: 16px; font-weight: 700; position: relative; padding-left: 11px; }
.panel-head h2::before, .panel-head h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 2px; background: var(--brand);
}
.more { font-size: 12px; color: var(--muted); }
.more:hover { color: var(--brand); }
.tiny { font-size: 11px; color: var(--muted); }

.headline { display: block; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.headline strong { font-size: 17px; line-height: 1.45; display: block; }
.headline p { color: var(--muted); font-size: 12.5px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: 11.5px; color: #9aa0aa; }
.headline .meta { display: block; margin-top: 8px; }

.news-lines { margin-top: 6px; flex: 1; }
.news-lines li { padding: 6px 0; border-bottom: 1px dashed #f1f3f6; }
.news-lines li:last-child { border-bottom: 0; }
.news-lines a { display: block; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat {
  display: inline-block; font-size: 10.5px; color: var(--brand); background: var(--brand-soft);
  padding: 0 5px; border-radius: 3px; margin-right: 6px; line-height: 16px; vertical-align: 1px;
}

.hero-rank { padding: 16px 16px 12px; }
.rank-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #f1f3f6; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .no {
  width: 18px; height: 18px; border-radius: 4px; background: #f0f2f5; color: #9aa0aa;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rank-list .no.top { background: var(--brand); color: #fff; }
.rank-list a { font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list em { font-style: normal; font-size: 11px; color: #a3a9b3; }
.rank-more { display: block; text-align: center; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }

/* ---------- 通用模块 ---------- */
.block { padding: 18px; margin-top: 16px; }
.block-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.block-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; position: relative; padding-left: 12px; flex-shrink: 0; }
.block-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--brand-2), var(--brand));
}
.block-head .more { margin-left: auto; flex-shrink: 0; }

.tabs, .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button, .chips a {
  border: 1px solid transparent; background: #f4f5f7; color: var(--ink-2);
  border-radius: 20px; padding: 3px 13px; font-size: 12.5px;
}
.tabs button:hover, .chips a:hover { color: var(--brand); background: var(--brand-soft); }
.tabs button.on, .chips a.on { background: var(--brand-soft); color: var(--brand); border-color: #ffd6c5; font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.split.wide { grid-template-columns: minmax(0, 1fr) 320px; }

/* 开测表 */
.test-date {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted); padding: 0 2px 8px;
}
.test-table table th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--muted);
  background: #fafbfc; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.test-table table td { padding: 9px 10px; border-bottom: 1px solid #f2f4f7; font-size: 13px; }
.test-table table tr:last-child td { border-bottom: 0; }
.test-table .tname { font-weight: 600; }
.status { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.s-open { color: #c2410c; background: #fff1e8; }
.s-live { color: #0f7b53; background: #e9f8f1; }
.s-wait { color: #4b5563; background: #f2f4f7; }
.mini-btn {
  display: inline-block; font-size: 12px; color: var(--brand); border: 1px solid #ffd0bd;
  padding: 2px 12px; border-radius: 20px;
}
.mini-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.tabpane { display: none; }
.tabpane.on { display: block; }

.reserve-rank { background: #fbfbfc; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.reserve-rank ul li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #eef0f4; }
.reserve-rank ul li:last-child { border-bottom: 0; }
.rr-main { flex: 1; min-width: 0; }
.rr-main a { font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 4px; background: #eceef2; border-radius: 3px; margin-top: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.reserve-rank em { font-style: normal; font-size: 11px; color: var(--muted); }

/* 礼包 */
.gift-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gift-card { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: linear-gradient(180deg, #fff, #fcfcfd); }
.gift-card:hover { border-color: #ffd6c5; }
.gift-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.gift-tag { font-size: 10.5px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); padding: 1px 8px; border-radius: 3px; }
.gift-left { font-size: 11px; color: var(--muted); }
.gift-name { font-weight: 700; font-size: 14.5px; display: block; margin-bottom: 6px; }
.gift-rewards { font-size: 12px; color: var(--ink-2); background: #fafbfc; border-radius: 6px; padding: 7px 9px; min-height: 46px; }
.gift-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.gift-valid { font-size: 11px; color: #a3a9b3; }
.claim {
  border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 5px 18px; border-radius: 20px;
}
.claim:hover { filter: brightness(1.05); }
.claim.out { background: #e6e8ec; color: #9aa0aa; cursor: not-allowed; }
.claim.sm { padding: 3px 12px; font-size: 11.5px; }

.latest-gifts { background: #fbfbfc; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.latest-gifts li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed #eef0f4; }
.latest-gifts li:last-child { border-bottom: 0; }
.latest-gifts li a { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-game { font-size: 11px; color: #a3a9b3; flex-shrink: 0; }

/* 攻略卡片 */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 7px; }
.gc-img { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: #eef0f3; }
.gc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.guide-card:hover .gc-img img { transform: scale(1.04); }
.gc-cat { position: absolute; left: 8px; top: 8px; font-size: 10.5px; color: #fff; background: rgba(20, 23, 29, .62); backdrop-filter: blur(4px); padding: 1px 7px; border-radius: 3px; }
.guide-card strong { font-size: 14.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card p { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-meta { font-size: 11px; color: #a3a9b3; }

/* 资讯流 */
.news-feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #eef0f4; }
.feed-item:first-child { padding-top: 0; }
.feed-item:last-child { border-bottom: 0; }
.feed-item img { width: 168px; height: 100px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.feed-item div { min-width: 0; }
.feed-item strong { font-size: 14.5px; line-height: 1.5; display: block; }
.feed-item.lead strong { font-size: 17px; }
.feed-item p { font-size: 12.5px; color: var(--muted); margin: 5px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-item .meta { display: block; margin-top: 4px; }

.side-col { display: flex; flex-direction: column; gap: 16px; }
.side-box { padding: 14px 16px; }
.hot-gifts li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #f1f3f6; font-size: 13px; }
.hot-gifts li:last-child { border-bottom: 0; }
.hot-gifts li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-gifts em { font-style: normal; font-size: 11px; color: #a3a9b3; }

/* ---------- 列表页 ---------- */
.page-head { margin: 20px 0 14px; display: flex; align-items: flex-end; gap: 14px; }
.page-head h1 { font-size: 24px; letter-spacing: -.3px; }
.page-head p { color: var(--muted); font-size: 13px; padding-bottom: 3px; }
.crumb { font-size: 12px; color: var(--muted); margin-top: 14px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }

.filterbar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; display: flex; flex-direction: column; gap: 8px;
}
.filterrow { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.filterrow > span { color: var(--muted); font-size: 12px; flex-shrink: 0; width: 40px; }
.filterrow .chips a { padding: 2px 11px; font-size: 12px; }

.card-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.game-row {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: flex; gap: 16px; box-shadow: var(--shadow);
}
.game-row:hover { border-color: #ffd6c5; }
.game-row .gr-img { width: 132px; height: 132px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #eef0f3; }
.game-row .gr-img img { width: 100%; height: 100%; object-fit: cover; }
.gr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gr-title { display: flex; align-items: center; gap: 9px; }
.gr-title strong { font-size: 17px; }
.score { color: var(--brand); font-weight: 700; font-size: 15px; }
.gr-tags { display: flex; gap: 6px; margin: 7px 0; flex-wrap: wrap; }
.tag { font-size: 11px; color: var(--ink-2); background: #f4f5f7; padding: 1px 8px; border-radius: 3px; }
.gr-intro { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gr-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--muted); }
.gr-foot .btn-line { margin-left: auto; }

.btn-line {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--brand); color: var(--brand);
  background: #fff; padding: 5px 18px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
}
.btn-line:hover { background: var(--brand); color: #fff; }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  border: 0; padding: 9px 26px; border-radius: 24px; font-size: 14px; font-weight: 600;
}
.btn-solid:disabled { background: #e6e8ec; color: #9aa0aa; cursor: not-allowed; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--ink-2); background: #fff;
  padding: 8px 20px; border-radius: 24px; font-size: 13px;
}

/* 礼包列表 */
.gift-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.gift-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
}
.gift-item:hover { border-color: #ffd6c5; }
.gift-item .gi-head { display: flex; align-items: center; gap: 8px; }
.gift-item .gi-name { font-weight: 700; font-size: 15px; }
.gift-item .gi-rewards { font-size: 12.5px; color: var(--ink-2); background: #fafbfc; border-radius: 6px; padding: 9px 10px; flex: 1; }
.progress { height: 5px; background: #f0f2f5; border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }

/* 文章 / 详情 */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-top: 16px; align-items: start; }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px 30px; box-shadow: var(--shadow); }
.article h1 { font-size: 26px; line-height: 1.4; letter-spacing: -.3px; }
.article .art-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 12px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article .lead { font-size: 14px; color: var(--ink-2); background: #fafbfc; border-left: 3px solid var(--brand); padding: 12px 14px; border-radius: 0 6px 6px 0; margin-bottom: 18px; }
.article h2 { font-size: 19px; margin: 24px 0 10px; padding-left: 11px; position: relative; }
.article h2::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: var(--brand); }
.article p { font-size: 15px; line-height: 1.9; color: #2c3138; margin-bottom: 14px; }
.article img.art-cover { width: 100%; border-radius: 8px; margin: 6px 0 18px; }
.art-end { border-top: 1px dashed var(--line); margin-top: 20px; padding-top: 14px; font-size: 12px; color: var(--muted); }
.feature-list { margin: 0 0 8px; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 3px 0 3px 18px; font-size: 14px; color: var(--ink-2); }
.feature-list li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); }

.detail-side { display: flex; flex-direction: column; gap: 16px; }
.side-title { font-size: 15px; font-weight: 700; padding-left: 11px; position: relative; margin-bottom: 10px; }
.side-title::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; border-radius: 2px; background: var(--brand); }
.mini-list li { padding: 8px 0; border-bottom: 1px dashed #f1f3f6; font-size: 13px; line-height: 1.5; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list .meta { display: block; margin-top: 3px; }

/* 礼包详情 */
.gift-hero { display: flex; gap: 22px; align-items: flex-start; }
.gift-hero .gh-cover { width: 220px; height: 220px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #eef0f3; }
.gift-hero .gh-cover img { width: 100%; height: 100%; object-fit: cover; }
.gift-hero .gh-body { flex: 1; min-width: 0; }
.gift-hero h1 { font-size: 24px; line-height: 1.4; }
.gh-badges { display: flex; gap: 8px; margin: 10px 0 12px; }
.gh-rewards { background: #fff8f4; border: 1px dashed #ffcbb4; border-radius: 8px; padding: 12px 14px; font-size: 13.5px; color: #7a3a1c; }
.gh-rows { margin: 12px 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.gh-rows b { color: var(--ink-2); font-weight: 500; }
.gh-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.code-note { font-size: 11.5px; color: #a3a9b3; }

/* 搜索结果 */
.search-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 16px; }
.search-summary strong { color: var(--brand); }
.result-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 14px; }
.result-block h2 { font-size: 16px; margin-bottom: 10px; }
.result-block h2 span { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.result-item { display: block; padding: 9px 0; border-bottom: 1px dashed #f1f3f6; }
.result-item:last-child { border-bottom: 0; }
.result-item strong { font-size: 14px; }
.result-item p { font-size: 12px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 13px; }

/* 空状态 / 404 */
.notfound { text-align: center; padding: 90px 0; }
.notfound h1 { font-size: 54px; color: var(--brand); letter-spacing: 2px; }
.notfound p { color: var(--muted); margin: 10px 0 22px; }

/* ---------- 弹层 / Toast ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 18, 24, .55); backdrop-filter: blur(2px); }
.modal-box {
  position: relative; width: 420px; max-width: calc(100% - 32px); background: #fff;
  border-radius: 14px; padding: 24px; box-shadow: 0 18px 50px rgba(10, 12, 16, .28);
  animation: pop .18s ease;
}
@keyframes pop { from { transform: translateY(8px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-box h3 { font-size: 17px; padding-right: 26px; }
.modal-close { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 22px; color: #a3a9b3; line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-body { margin: 14px 0 18px; font-size: 13.5px; color: var(--ink-2); }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; }
.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff8f4; border: 1px dashed #ffcbb4; border-radius: 10px; padding: 14px 16px; margin: 12px 0 6px;
}
.code-box code { font-size: 19px; font-weight: 700; letter-spacing: 1.5px; color: var(--brand); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-btn { border: 1px solid var(--brand); color: var(--brand); background: #fff; border-radius: 6px; padding: 4px 12px; font-size: 12px; }
.copy-btn:hover { background: var(--brand); color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field label { font-size: 12px; color: var(--muted); }
.field input { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; outline: none; font-size: 13px; }
.field input:focus { border-color: var(--brand); }
.form-error { color: #d92d20; font-size: 12px; min-height: 18px; }

.toast {
  position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%);
  background: rgba(20, 23, 29, .9); color: #fff; font-size: 13px;
  padding: 9px 20px; border-radius: 22px; z-index: 100;
}
.toast[hidden] { display: none; }

/* ---------- 页脚 ---------- */
.site-footer { background: #14171d; color: #9aa1ad; margin-top: 8px; }
.footer-top { display: grid; grid-template-columns: 1.6fr .7fr .7fr .7fr; gap: 30px; padding: 38px 0 26px; max-width: 1200px; }
.footer-brand p { font-size: 12px; line-height: 1.8; color: #7d848f; margin-top: 12px; max-width: 420px; }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text em { color: #7d848f; }
.footer-col h4 { color: #fff; font-size: 13px; margin-bottom: 12px; font-weight: 600; }
.footer-col a { display: block; font-size: 12.5px; padding: 4px 0; color: #9aa1ad; }
.footer-col a:hover { color: var(--brand-2); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid #23262e; padding: 16px 0 22px; font-size: 11.5px; color: #6b7280; max-width: 1200px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .hero-rank { display: none; }
  .split, .split.wide { grid-template-columns: minmax(0, 1fr); }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .header-links { display: none; }
  .nav-inner { overflow-x: auto; }
  .nav-inner > a { padding: 0 11px; font-size: 14px; }
  .nav-sub { display: none !important; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-news { display: none; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-grid, .gift-list { grid-template-columns: minmax(0, 1fr); }
  .game-row .gr-img { width: 96px; height: 96px; }
  .feed-item img { width: 120px; height: 78px; }
  .article { padding: 20px 16px; }
  .article h1 { font-size: 21px; }
  .gift-hero { flex-direction: column; }
  .gift-hero .gh-cover { width: 100%; height: 180px; }
  .footer-top { grid-template-columns: 1fr; gap: 18px; }
}
