/* apptk.com P0 前台样式：扁平化、响应式、无第三方依赖 */
:root {
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --line: #E3E8F0;
  --line-2: #EEF2F8;
  --ink: #22293A;
  --ink-2: #5A6478;
  --ink-3: #8A94A8;
  --blue: #2F5BEA;
  --blue-dark: #1B2A5E;
  --blue-bg: #EAF0FE;
  --green: #0FA37C;
  --green-bg: #E6F6F1;
  --amber: #F0A500;
  --amber-bg: #FDF4DC;
  --red: #D64545;
  --red-bg: #FCEBEB;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 42, 94, .04), 0 8px 24px rgba(27, 42, 94, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------- 头部 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.2px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--blue);
  display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 800;
}
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .4px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav a { padding: 8px 12px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); }
.nav a:hover { background: var(--blue-bg); color: var(--blue); }
.nav a.on { color: var(--blue); font-weight: 600; background: var(--blue-bg); }
.header-search { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-search input {
  width: 210px; height: 38px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #F8FAFD; outline: none;
}
.header-search input:focus { border-color: var(--blue); background: #fff; }
.header-search button {
  height: 38px; padding: 0 16px; border: none; border-radius: 10px;
  background: var(--blue); color: #fff; cursor: pointer; font-size: 14px;
}
.header-search button:hover { background: #2549c4; }
.nav-toggle {
  display: none; width: 40px; height: 38px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------------- 通用块 ---------------- */
main { flex: 1; }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.section-head p { font-size: 13px; color: var(--ink-3); }
.section-head .more { margin-left: auto; font-size: 13px; color: var(--blue); }
.crumbs { font-size: 13px; color: var(--ink-3); padding: 16px 0 0; }
.crumbs a { color: var(--ink-2); }
.crumbs span { margin: 0 6px; }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(160deg, #1B2A5E 0%, #2B4FD1 62%, #2F5BEA 100%);
  color: #fff; border-radius: 0 0 24px 24px; padding: 40px 0 34px;
}
.hero h1 { font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: -.5px; }
.hero p.sub { margin-top: 10px; color: #D8E2FF; font-size: 15px; max-width: 640px; }
.hero-search { margin-top: 22px; display: flex; gap: 10px; max-width: 640px; }
.hero-search input {
  flex: 1; height: 48px; border: none; border-radius: 12px; padding: 0 16px;
  background: #fff; outline: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.hero-search button {
  height: 48px; padding: 0 24px; border: none; border-radius: 12px; cursor: pointer;
  background: #FFD166; color: #3A2A00; font-weight: 700;
}
.hero-search button:hover { background: #FFC53D; }
.hero-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #C7D4FF; }
.hero-tags a {
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28);
  color: #EAF0FF; font-size: 13px;
}
.hero-tags a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hero-stats { display: flex; gap: 26px; margin-top: 24px; flex-wrap: wrap; }
.hero-stats div { font-size: 13px; color: #C7D4FF; }
.hero-stats b { display: block; font-size: 22px; color: #fff; font-weight: 800; }

/* ---------------- 分类入口 ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: .16s;
}
.cat-tile:hover { border-color: #C9D6F9; box-shadow: var(--shadow); transform: translateY(-1px); }
.cat-tile .ico { font-size: 20px; }
.cat-tile b { font-size: 15px; font-weight: 700; }
.cat-tile small { color: var(--ink-3); font-size: 12px; }

/* ---------------- 榜单 ---------------- */
.rank-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.rank-item:hover { border-color: #C9D6F9; }
.rank-no { width: 22px; text-align: center; font-weight: 800; color: var(--ink-3); font-size: 14px; }
.rank-item:nth-child(1) .rank-no, .rank-item:nth-child(2) .rank-no, .rank-item:nth-child(3) .rank-no { color: var(--amber); }
.rank-item img { width: 40px; height: 40px; border-radius: 10px; }
.rank-main { min-width: 0; flex: 1; }
.rank-main b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-main small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-score { font-size: 13px; color: var(--amber); font-weight: 700; }

/* ---------------- APP 卡片 ---------------- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.app-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: .16s; position: relative;
}
.app-card:hover { border-color: #C9D6F9; box-shadow: var(--shadow); transform: translateY(-2px); }
.app-card-top { display: flex; gap: 12px; align-items: center; }
.app-card-top img { width: 52px; height: 52px; border-radius: 13px; flex: none; background: #F2F5FB; }
.app-card-title { min-width: 0; }
.app-card-title b { display: block; font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card-title small { color: var(--ink-3); font-size: 12px; }
.app-card p.desc {
  font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 44px;
}
.app-card-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  background: var(--blue-bg); color: var(--blue); font-weight: 600;
}
.chip.gray { background: #F1F4F9; color: var(--ink-2); font-weight: 500; }
.chip.amber { background: var(--amber-bg); color: #96650A; }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.red { background: var(--red-bg); color: var(--red); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; cursor: pointer; background: var(--blue); color: #fff; font-weight: 600;
}
.btn:hover { background: #2549c4; color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 500; }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { background: #D8DEEA; color: #fff; cursor: not-allowed; }
.app-card .btn { margin-left: auto; }

/* ---------------- 列表页 ---------------- */
.page-head { padding: 26px 0 6px; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.page-head p { color: var(--ink-2); font-size: 14px; margin-top: 8px; max-width: 820px; }
.filter-bar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-top: 18px; display: flex; flex-direction: column; gap: 10px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.filter-row > .label { color: var(--ink-3); width: 52px; flex: none; }
.filter-row a {
  padding: 5px 12px; border-radius: 8px; color: var(--ink-2); border: 1px solid transparent;
}
.filter-row a:hover { background: var(--blue-bg); color: var(--blue); }
.filter-row a.on { background: var(--blue); color: #fff; font-weight: 600; }
/* 「游戏」是跨频道入口，与分类做视觉区分 */
.filter-row a.cat-game { color: var(--blue); font-weight: 600; }
.filter-row a.cat-game::before { content: ""; display: inline-block; width: 1px; height: 11px; margin-right: 9px; vertical-align: -1px; background: var(--line); }
/* 子级（系统）与其余筛选项左对齐，只用字号/字色轻区分层级，不加缩进，避免左侧多出一块 */
.filter-row.sub > .label { color: var(--ink-3); }
.filter-row.sub a { padding: 4px 10px; font-size: 12.5px; border-radius: 7px; }
.result-bar { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; font-size: 13px; color: var(--ink-3); }
.result-bar b { color: var(--ink); }
.result-bar .sort { margin-left: auto; display: flex; gap: 6px; }
.result-bar .sort a { padding: 4px 10px; border-radius: 8px; }
.result-bar .sort a.on { background: var(--blue-bg); color: var(--blue); font-weight: 600; }

.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.side-card + .side-card { margin-top: 14px; }
.side-card h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 10px; }
.side-card ul li { padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; display: flex; gap: 8px; }
.side-card ul li:last-child { border-bottom: none; }
.side-card ul li .idx { color: var(--ink-3); width: 16px; flex: none; }
.side-card ul li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.side-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0 6px; }
.pager .pg {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13.5px; color: var(--ink-2);
}
.pager .pg:hover { border-color: var(--blue); color: var(--blue); }
.pager .pg.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pager .pg.gap { border: none; background: transparent; color: var(--ink-3); }

/* ---------------- 详情页 ---------------- */
.detail-head {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; margin-top: 16px; display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap;
}
.detail-head .icon { width: 96px; height: 96px; border-radius: 22px; background: #F2F5FB; }
.detail-info { flex: 1; min-width: 240px; }
.detail-info h1 { font-size: 25px; font-weight: 800; letter-spacing: -.4px; }
.detail-info .summary { color: var(--ink-2); margin-top: 6px; font-size: 14.5px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.detail-cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.btn-download { height: 46px; padding: 0 30px; font-size: 16px; border-radius: 12px; }
.platform-hint { font-size: 12.5px; color: var(--ink-3); }
.detail-body { margin-top: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.panel h2 small { font-weight: 500; color: var(--ink-3); font-size: 12.5px; margin-left: 8px; }
.note-lines p { font-size: 14.5px; color: var(--ink-2); padding: 7px 0 7px 16px; position: relative; }
.note-lines p::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 6px; height: 6px; border-radius: 2px; background: var(--blue);
}
.link-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.link-table th, .link-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.link-table th { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.link-table td.url { color: var(--ink-2); font-size: 12.5px; word-break: break-all; }
.link-table tr.link-group td {
  background: #F7F9FD; color: var(--ink); font-size: 13px; font-weight: 700;
  padding: 8px; border-bottom: 1px solid var(--line);
}
.link-table tr.link-group td small { color: var(--ink-3); font-weight: 400; margin-left: 8px; font-size: 12px; }
.score-stars { color: var(--amber); letter-spacing: 1px; font-size: 14px; }
.score-stars .off { color: #DCE2EC; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 5px 12px; border-radius: 8px; background: #F4F7FC; color: var(--ink-2); font-size: 13px; }
.tag-list a:hover { background: var(--blue-bg); color: var(--blue); }

/* ---------------- 内容页 / 表单 ---------------- */
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.prose h2 { font-size: 18px; margin: 22px 0 10px; font-weight: 800; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); margin: 8px 0; }
.prose ul { list-style: disc; padding-left: 20px; color: var(--ink-2); }
.prose ul li { margin: 6px 0; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-row label span { color: var(--red); }
.form-row input[type=text], .form-row input[type=email], .form-row select, .form-row textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: #FBFCFE; outline: none; font-size: 14px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--blue); background: #fff; }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row .hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; }
.alert.error { background: var(--red-bg); color: #9B2C2C; border: 1px solid #F5C2C2; }
.alert.success { background: var(--green-bg); color: #0A7A5C; border: 1px solid #B9E7D9; }
.alert.info { background: var(--blue-bg); color: #1E40AF; border: 1px solid #C8D8FB; }
.alert ul { margin-top: 4px; padding-left: 18px; list-style: disc; }
.hp { position: absolute !important; left: -9999px; opacity: 0; }

/* ---------------- 失效链接兜底 ---------------- */
.fallback { max-width: 720px; margin: 40px auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.fallback h1 { font-size: 21px; font-weight: 800; }
.fallback .app-line { display: flex; gap: 14px; align-items: center; margin: 18px 0; }
.fallback .app-line img { width: 64px; height: 64px; border-radius: 16px; }
.fallback .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------------- 下载中转页（/download/{id}） ---------------- */
.bare-page { min-height: 100vh; display: flex; flex-direction: column; }
.bare-header { background: #fff; border-bottom: 1px solid var(--line); }
.bare-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.bare-back { font-size: 14px; color: var(--ink-2); }
.bare-back:hover { color: var(--blue); }
.bare-main { flex: 1 0 auto; }
.bare-foot { text-align: center; font-size: 12.5px; color: var(--ink-3); padding: 20px 20px 28px; }

.jump { width: 100%; max-width: 460px; margin: 0 auto; padding: 38px 20px 0; }
.jump-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px 24px; box-shadow: var(--shadow); text-align: center;
}
.jump-kicker {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--blue); background: var(--blue-bg); border-radius: 999px; padding: 5px 12px;
}
.jump-kicker.warn { color: var(--red); background: var(--red-bg); }
.jump-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: jumpPulse 1.1s ease-in-out infinite; }
@keyframes jumpPulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

.jump-app { display: flex; align-items: center; gap: 14px; margin: 20px 0 14px; text-align: left; }
.jump-app img { width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.jump-app-info b { display: block; font-size: 18px; font-weight: 800; }
.jump-app-info small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }
.jump-channel { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.jump-tip { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin-bottom: 14px; }
.jump-tip b { color: var(--ink); font-weight: 600; }
.jump-cd { font-size: 19px; font-weight: 800; color: var(--blue); padding: 0 2px; }
.jump-progress { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-bottom: 18px; }
.jump-progress i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width 1s linear; }
.btn.jump-btn { display: flex; width: 100%; height: 46px; font-size: 16px; font-weight: 700; border-radius: 12px; }
.jump-return { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.jump-return:hover { color: var(--blue); }
.jump-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.jump-noscript { margin-top: 12px; font-size: 12.5px; color: #96650A; }
.jump-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; text-align: center; }

@media (max-width: 768px) {
  .jump { padding: 22px 14px 0; }
  .jump-card { padding: 22px 18px; }
  .jump-app img { width: 62px; height: 62px; }
}

/* ---------------- 页脚 ---------------- */
.site-footer { margin-top: 46px; border-top: 1px solid var(--line); background: #fff; padding: 26px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--ink-2); }
.footer-note { max-width: 620px; line-height: 1.8; }
.footer-note b { color: var(--ink-2); }
.footer-beian { color: var(--ink-3); text-decoration: none; border-bottom: 1px dashed transparent; transition: color .15s, border-color .15s; }
a.footer-beian:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .layout-2col { grid-template-columns: 1fr; }
  .header-search input { width: 160px; }
}

@media (max-width: 768px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 14px; }
  .header-inner { height: 58px; }
  .nav {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 8px 14px 14px; gap: 2px; box-shadow: 0 12px 24px rgba(27, 42, 94, .08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .header-search { margin-left: auto; }
  .header-search input { display: none; }
  .header-search button { height: 38px; padding: 0 12px; }
  .nav-toggle { display: inline-flex; order: 3; margin-left: 6px; }
  .hero { padding: 28px 0 24px; border-radius: 0 0 18px 18px; }
  .hero h1 { font-size: 22px; }
  .hero p.sub { font-size: 13.5px; }
  .hero-search { flex-direction: column; }
  .hero-search button { width: 100%; }
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 19px; }
  .section { margin-top: 24px; }
  .section-head h2 { font-size: 17px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-tile { padding: 13px; }
  .app-grid { grid-template-columns: 1fr; gap: 10px; }
  .app-card { padding: 14px; }
  .app-card p.desc { min-height: 0; }
  .rank-list { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 21px; }
  .filter-row > .label { width: 100%; }
  .result-bar { flex-wrap: wrap; }
  .result-bar .sort { margin-left: 0; }
  .detail-head { padding: 16px; gap: 14px; border-radius: 14px; }
  .detail-head .icon { width: 72px; height: 72px; border-radius: 18px; }
  .detail-info h1 { font-size: 20px; }
  .btn-download { width: 100%; }
  .panel { padding: 16px; }
  .prose { padding: 18px; }
  .footer-inner { flex-direction: column; gap: 10px; }
  .link-table th:nth-child(3), .link-table td:nth-child(3) { display: none; }
}

/* 两栏布局下的卡片列数 */
.app-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .app-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .app-grid.cols-3 { grid-template-columns: 1fr; } }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 30px 20px; text-align: center; color: var(--ink-2); }
.empty b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 6px; }

/* ============================================================
   首页 / 游戏 / 排行榜 / 攻略（应用市场风格组件）
   ============================================================ */

/* ---------------- 首页 Hero ---------------- */
.hw-hero {
  background: linear-gradient(165deg, #F1F6FF 0%, #E8F0FE 48%, #F7F9FE 100%);
  border-bottom: 1px solid var(--line);
  padding: 36px 0 32px;
}
.hw-hero-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 34px; align-items: center; }
.hw-eyebrow {
  display: inline-block; font-size: 11.5px; letter-spacing: 1.8px; font-weight: 700;
  color: var(--blue); background: #fff; border: 1px solid #D6E2FF; border-radius: 999px; padding: 5px 12px;
}
.hw-copy h1 { font-size: 38px; line-height: 1.26; font-weight: 800; letter-spacing: -.9px; margin: 16px 0 10px; }
.hw-sub { color: var(--ink-2); font-size: 14.5px; max-width: 540px; }
.hw-search {
  margin-top: 20px; display: flex; align-items: center; gap: 8px; max-width: 560px;
  background: #fff; border: 1px solid #D8E3F6; border-radius: 16px; padding: 7px 7px 7px 14px;
  box-shadow: 0 6px 18px rgba(27, 42, 94, .07);
}
.hw-search-ico { color: var(--ink-3); font-size: 17px; line-height: 1; }
.hw-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 14.5px; min-width: 0; }
.hw-search button {
  border: none; cursor: pointer; background: var(--blue); color: #fff; font-weight: 600;
  height: 40px; padding: 0 22px; border-radius: 12px; transition: .16s;
}
.hw-search button:hover { background: #2450DA; }
.hw-hotwords { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.hw-hotwords a { color: var(--ink-2); background: rgba(255, 255, 255, .72); border: 1px solid #E1E9F8; border-radius: 999px; padding: 3px 11px; }
.hw-hotwords a:hover { color: var(--blue); border-color: #C6D7FA; background: #fff; }
.hw-stats { display: flex; gap: 28px; margin-top: 22px; }
.hw-stats b { display: block; font-size: 22px; font-weight: 800; color: var(--blue-dark); letter-spacing: -.4px; }
.hw-stats span { font-size: 12.5px; color: var(--ink-3); }

.hw-showcase { display: grid; gap: 10px; }
.hw-show-card {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 14px; box-shadow: 0 4px 14px rgba(27, 42, 94, .05); transition: .16s;
}
.hw-show-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(27, 42, 94, .10); border-color: #C9D8F8; }
.hw-show-card img { width: 52px; height: 52px; border-radius: 14px; }
.hw-show-copy { flex: 1; min-width: 0; }
.hw-show-copy b { display: block; font-size: 15px; font-weight: 700; }
.hw-show-copy small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.hw-show-copy em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-show-go { font-size: 12.5px; color: var(--blue); background: var(--blue-bg); border-radius: 999px; padding: 4px 12px; flex: none; }
.hw-show-more { text-align: center; font-size: 13px; color: var(--ink-3); padding: 6px 0; }
.hw-show-more:hover { color: var(--blue); }

/* ---------------- 分类金刚区 ---------------- */
.icon-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.icon-tile {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: .16s;
}
.icon-tile:hover { border-color: #C9D8F8; transform: translateY(-2px); box-shadow: var(--shadow); }
.icon-tile.on { border-color: var(--blue); background: #F5F8FF; }
.it-ico {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: var(--blue-bg); color: var(--blue); font-size: 18px; font-weight: 800;
}
.icon-tile:nth-child(6n+2) .it-ico { background: #EAF7F1; color: #0FA37C; }
.icon-tile:nth-child(6n+3) .it-ico { background: #FDF1E4; color: #C97A16; }
.icon-tile:nth-child(6n+4) .it-ico { background: #F1EDFE; color: #6C5CE7; }
.icon-tile:nth-child(6n+5) .it-ico { background: #FCEBEF; color: #D6456A; }
.icon-tile:nth-child(6n+6) .it-ico { background: #E8F4FD; color: #1E7CB8; }
.icon-tile b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.icon-tile small { font-size: 11px; color: var(--ink-3); }

/* ---------------- 编辑精选 ---------------- */
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pick-card {
  display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; transition: .16s;
}
.pick-card:hover { border-color: #C9D8F8; box-shadow: var(--shadow); transform: translateY(-2px); }
.pick-card img { width: 60px; height: 60px; border-radius: 16px; }
.pick-copy { flex: 1; min-width: 0; }
.pick-copy b { display: block; font-size: 15.5px; font-weight: 700; }
.pick-copy small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.pick-copy em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-2); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 首页三榜 ---------------- */
.rank-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rank-col { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 8px; }
.rc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rc-head b { font-size: 14.5px; font-weight: 800; }
.rc-head a { font-size: 12.5px; color: var(--ink-3); }
.rc-head a:hover { color: var(--blue); }
.rank-col ol li a { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-radius: 10px; }
.rank-col ol li a:hover { background: #F7F9FD; }
.rc-no {
  width: 20px; height: 20px; flex: none; border-radius: 6px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; color: var(--ink-3); background: #F2F5FA;
}
.rc-no.top { color: #fff; background: var(--blue); }
.rank-col ol li:nth-child(1) .rc-no.top { background: #F0763B; }
.rank-col ol li:nth-child(2) .rc-no.top { background: #8E9BB3; }
.rank-col ol li:nth-child(3) .rc-no.top { background: #C08A4E; }
.rank-col img { width: 32px; height: 32px; border-radius: 9px; }
.rc-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-name small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.rc-val { font-size: 12px; color: var(--amber); font-weight: 700; flex: none; }

/* ---------------- 游戏专区条 ---------------- */
.game-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  background: linear-gradient(140deg, #16224A 0%, #1E2F63 62%, #243A78 100%);
  border-radius: 20px; padding: 18px;
}
.game-strip-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center;
  padding: 14px 8px; border-radius: 14px; background: rgba(255, 255, 255, .06); transition: .16s;
}
.game-strip-card:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.game-strip-card img { width: 50px; height: 50px; border-radius: 14px; }
.game-strip-card b { font-size: 13px; font-weight: 700; color: #fff; }
.game-strip-card small { font-size: 11.5px; color: rgba(255, 255, 255, .62); }

.cta-panel { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-panel > div { flex: 1; min-width: 240px; }
.cta-panel h2 { margin-bottom: 6px; }
.cta-panel p { color: var(--ink-2); font-size: 14px; }

/* ---------------- 游戏频道 ---------------- */
.game-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 22px;
  background: linear-gradient(135deg, #15224A 0%, #1F3168 55%, #2B4CA0 100%);
  border-radius: 22px; padding: 30px 30px 28px; margin-top: 16px; color: #fff;
}
.gh-badge { display: inline-block; font-size: 11px; letter-spacing: 2px; font-weight: 700; color: #9DC0FF; border: 1px solid rgba(157, 192, 255, .38); border-radius: 999px; padding: 4px 11px; }
.game-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -.6px; margin: 14px 0 8px; color: #fff; }
.game-hero p { font-size: 14px; color: rgba(255, 255, 255, .78); max-width: 560px; }
.gh-stats { display: flex; gap: 26px; margin-top: 18px; }
.gh-stats b { display: block; font-size: 21px; font-weight: 800; color: #fff; }
.gh-stats span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.gh-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn.light { background: #fff; color: #16224A; border-color: #fff; font-weight: 700; }
.btn.light:hover { background: #EAF0FE; color: #16224A; }
.btn.ghost.on-dark, .game-hero .btn.ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; }
.game-hero .btn.ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.game-hero-side { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.gh-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); transition: .16s;
}
.gh-card:hover { background: rgba(255, 255, 255, .16); }
.gh-card img { width: 48px; height: 48px; border-radius: 13px; }
.gh-card span { flex: 1; min-width: 0; }
.gh-card b { display: block; font-size: 14.5px; color: #fff; }
.gh-card small { display: block; font-size: 12px; color: rgba(255, 255, 255, .62); margin-top: 2px; }
.gh-card em { font-style: normal; font-size: 12px; color: #9DC0FF; }

.game-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.game-feature {
  display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; transition: .16s;
}
.game-feature:hover { border-color: #C9D8F8; box-shadow: var(--shadow); }
.game-feature > img { width: 62px; height: 62px; border-radius: 17px; flex: none; }
.gf-body { min-width: 0; }
.gf-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gf-title b { font-size: 15.5px; font-weight: 700; }
.gf-body > small { display: block; font-size: 12px; color: var(--ink-3); margin: 3px 0 6px; }
.gf-body p { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.filter-bar.compact { margin-top: 12px; padding: 12px 14px; gap: 8px; }

.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.board-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 12px; }
.board-head b { font-size: 15px; font-weight: 800; }
.board-head small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.board-list { margin: 10px 0 8px; }
.board-list li a { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.board-list li a:hover .nm { color: var(--blue); }
.board-list img { width: 30px; height: 30px; border-radius: 9px; }
.board-list .no {
  width: 19px; height: 19px; flex: none; border-radius: 6px; background: #F2F5FA; color: var(--ink-3);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.board-list .no.top { background: var(--blue-bg); color: var(--blue); }
.board-list .nm { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-list .nm small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.board-list .val { font-size: 12px; color: var(--ink-3); flex: none; }
.board-more { display: block; text-align: center; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line-2); padding-top: 10px; }
.board-more:hover { color: var(--blue); }

/* ---------------- 排行榜页 ---------------- */
.rank-tabs {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 16px;
}
.rt-group { display: flex; gap: 6px; flex-wrap: wrap; }
.rt-group a { font-size: 13.5px; padding: 7px 15px; border-radius: 10px; color: var(--ink-2); }
.rt-group a:hover { background: var(--blue-bg); color: var(--blue); }
.rt-group a.on { background: var(--blue); color: #fff; font-weight: 600; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.podium-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 18px 18px; text-align: center;
}
.podium-card.gold { border-color: #F3D28E; background: linear-gradient(180deg, #FFFBF1 0%, #fff 46%); }
.podium-card.silver { border-color: #DDE3EC; background: linear-gradient(180deg, #F8FAFD 0%, #fff 46%); }
.podium-card.bronze { border-color: #E8CDB2; background: linear-gradient(180deg, #FDF7F1 0%, #fff 46%); }
.podium-no {
  position: absolute; top: 14px; left: 16px; width: 26px; height: 26px; border-radius: 9px;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff;
}
.podium-card.gold .podium-no { background: #E8A33D; }
.podium-card.silver .podium-no { background: #93A1B5; }
.podium-card.bronze .podium-no { background: #C08A4E; }
.podium-card img { width: 72px; height: 72px; border-radius: 19px; margin: 6px auto 10px; }
.podium-card b { display: block; font-size: 17px; font-weight: 800; }
.podium-card small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.podium-card p { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 10px; min-height: 38px; }
.podium-meta { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }

.rank-panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 10px; margin-top: 16px; }
.rank-panel-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.rank-panel-head h2 { font-size: 17px; font-weight: 800; }
.rank-panel-head span { font-size: 12.5px; color: var(--ink-3); }
.rank-table li + li { border-top: 1px solid var(--line-2); }
.rt-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-radius: 10px; }
.rt-row:hover { background: #F8FAFE; }
.rt-no { width: 26px; flex: none; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.rt-no.top { color: var(--blue); }
.rt-row img { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.rt-name { flex: 1; min-width: 0; }
.rt-name b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; }
.rt-name small { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-game { font-style: normal; font-size: 10.5px; font-weight: 600; color: #6C5CE7; background: #F1EDFE; border-radius: 5px; padding: 1px 6px; }
.rt-cat { width: 76px; flex: none; font-size: 12.5px; color: var(--ink-3); }
.rt-score { width: 58px; flex: none; font-size: 12.5px; color: var(--amber); font-weight: 600; }
.rt-click { width: 64px; flex: none; font-size: 12.5px; color: var(--ink-3); text-align: right; }
.rt-go { flex: none; font-size: 12.5px; color: var(--blue); background: var(--blue-bg); border-radius: 8px; padding: 4px 11px; }
.rank-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.9; }

/* ---------------- 攻略栏目 ---------------- */
.guide-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-top: 16px; }
.guide-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.guide-tabs a { font-size: 13.5px; padding: 8px 16px; border-radius: 11px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); }
.guide-tabs a span { font-size: 11.5px; color: var(--ink-3); margin-left: 5px; }
.guide-tabs a.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.guide-tabs a.on span { color: rgba(255, 255, 255, .72); }
.guide-search { display: flex; gap: 6px; }
.guide-search input {
  border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px; background: #fff; outline: none; font-size: 13.5px; width: 210px;
}
.guide-search input:focus { border-color: var(--blue); }
.guide-search button { border: none; background: var(--blue); color: #fff; border-radius: 11px; padding: 0 16px; cursor: pointer; font-size: 13.5px; }

.guide-hero {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 14px;
}
.gh-cover { display: block; min-height: 210px; }
.gh-cover img { width: 100%; height: 100%; object-fit: cover; }
.gh-body { padding: 20px 20px 20px 0; display: flex; flex-direction: column; gap: 9px; }
.gh-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gh-hot { font-size: 11px; font-weight: 700; color: #C2410C; background: #FFEDD5; border-radius: 6px; padding: 2px 8px; }
.gh-body h2 { font-size: 21px; font-weight: 800; line-height: 1.45; letter-spacing: -.3px; }
.gh-body p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.gh-body .btn { align-self: flex-start; margin-top: 4px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: .16s;
}
.guide-card:hover { border-color: #C9D8F8; box-shadow: var(--shadow); transform: translateY(-2px); }
.gc-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: #EDF1F8; }
.gc-cover img { width: 100%; height: 100%; object-fit: cover; }
.gc-tag {
  position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 600; color: #fff;
  background: rgba(15, 23, 42, .62); backdrop-filter: blur(4px); border-radius: 7px; padding: 3px 9px;
}
.gc-tag.solid { position: static; background: var(--blue); color: #fff; }
.gc-tag.ghost { position: static; background: var(--blue-bg); color: var(--blue); }
.gc-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.gc-body b { font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.gc-body b a:hover { color: var(--blue); }
.gc-body p { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); margin-top: auto; padding-top: 4px; }
.gc-app { color: var(--blue); background: var(--blue-bg); border-radius: 6px; padding: 2px 7px; font-weight: 600; }

.side-articles li { display: flex; gap: 9px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.side-articles li:last-child { border-bottom: none; }
.side-articles .idx { width: 18px; height: 18px; flex: none; border-radius: 5px; background: #F2F5FA; color: var(--ink-3); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.side-articles .idx.hot { background: var(--blue); color: #fff; }
.side-articles a { line-height: 1.55; }
.side-articles small { color: var(--ink-3); font-size: 11px; margin-left: auto; flex: none; }
.side-games li { padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.side-games li:last-child { border-bottom: none; }
.side-games li a { display: flex; align-items: center; gap: 10px; }
.side-games img { width: 34px; height: 34px; border-radius: 10px; }
.side-games b { display: block; font-size: 13.5px; font-weight: 600; }
.side-games small { display: block; font-size: 11.5px; color: var(--ink-3); }

/* ---------------- 攻略详情 ---------------- */
.article-layout { margin-top: 16px; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px 24px; }
.ar-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.article-head h1 { font-size: 27px; font-weight: 800; line-height: 1.45; letter-spacing: -.5px; }
.ar-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }
.article-cover { margin: 18px 0 0; border-radius: 16px; overflow: hidden; background: #EDF1F8; }
.article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }
.article-lead {
  margin-top: 18px; padding: 13px 16px; background: #F6F9FF; border-left: 3px solid var(--blue);
  border-radius: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.8;
}
.ar-content { margin-top: 18px; font-size: 15.5px; line-height: 1.95; color: var(--ink); }
.ar-content h2 { font-size: 19px; font-weight: 800; margin: 26px 0 10px; letter-spacing: -.2px; }
.ar-content h3 { font-size: 16.5px; font-weight: 700; margin: 20px 0 8px; }
.ar-content p { margin: 10px 0; color: #333B4D; }
.ar-content ul, .ar-content ol { margin: 10px 0 10px 4px; padding-left: 20px; }
.ar-content ul { list-style: disc; }
.ar-content ol { list-style: decimal; }
.ar-content li { margin: 6px 0; color: #333B4D; }
.ar-content b, .ar-content strong { font-weight: 700; color: var(--ink); }
.ar-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ar-content blockquote { margin: 14px 0; padding: 10px 16px; background: #F7F9FD; border-radius: 10px; color: var(--ink-2); }
.ar-content img { border-radius: 12px; margin: 12px 0; }
.ar-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.ar-content th, .ar-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.ar-content th { background: #F7F9FD; }

.ar-apps { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.ar-apps-head h2 { font-size: 18px; font-weight: 800; }
.ar-apps-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.app-feature-card {
  display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 16px;
  border: 1px solid #D9E4FA; background: linear-gradient(135deg, #F7FAFF 0%, #FFF 70%); border-radius: 18px;
}
.app-feature-card img { width: 68px; height: 68px; border-radius: 18px; flex: none; }
.af-body { flex: 1; min-width: 0; }
.af-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.af-title b { font-size: 17px; font-weight: 800; }
.af-body small { display: block; font-size: 12px; color: var(--ink-3); margin: 3px 0 5px; }
.af-body p { font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.af-actions { display: flex; flex-direction: column; gap: 8px; flex: none; }
.app-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.app-mini {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #FAFBFE;
  border: 1px solid var(--line); border-radius: 14px;
}
.app-mini:hover { border-color: #C9D8F8; background: #fff; }
.app-mini img { width: 38px; height: 38px; border-radius: 11px; }
.app-mini span { flex: 1; min-width: 0; }
.app-mini b { display: block; font-size: 13.5px; font-weight: 700; }
.app-mini small { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-mini em { font-style: normal; font-size: 12px; color: var(--ink-3); }

.ar-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.ar-nav a, .ar-nav .disabled {
  display: block; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 13px; color: var(--ink-2); line-height: 1.6;
}
.ar-nav a:hover { border-color: #C9D8F8; background: #FAFCFF; color: var(--blue); }
.ar-nav small { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 2px; }
.ar-nav .disabled { color: var(--ink-3); background: #FAFBFD; }
.ar-nav .ar-next { text-align: right; }

/* ---------------- 响应式（新增组件） ---------------- */
@media (max-width: 1024px) {
  .hw-hero-inner { grid-template-columns: 1fr; gap: 22px; }
  .hw-copy h1 { font-size: 30px; }
  .hw-showcase { grid-template-columns: repeat(3, 1fr); }
  .hw-show-more { display: none; }
  .icon-grid { grid-template-columns: repeat(5, 1fr); }
  .rank-cols { grid-template-columns: 1fr; }
  .game-strip { grid-template-columns: repeat(3, 1fr); }
  .game-hero { grid-template-columns: 1fr; padding: 24px; }
  .game-hero h1 { font-size: 26px; }
  .game-hero-side { flex-direction: row; }
  .gh-card { flex: 1; }
  .game-feature-grid, .board-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .podium { grid-template-columns: 1fr; }
  .guide-hero { grid-template-columns: 1fr; }
  .gh-body { padding: 0 20px 20px; }
  .gh-cover { min-height: 0; aspect-ratio: 16 / 7; }
  .article { padding: 22px; }
}

@media (max-width: 768px) {
  .hw-hero { padding: 24px 0 22px; }
  .hw-copy h1 { font-size: 25px; }
  .hw-sub { font-size: 13.5px; }
  .hw-search { padding: 5px 5px 5px 12px; }
  .hw-search button { height: 38px; padding: 0 16px; font-size: 13.5px; }
  .hw-stats { gap: 20px; }
  .hw-stats b { font-size: 19px; }
  .hw-showcase { grid-template-columns: 1fr; }
  .hw-show-card:nth-child(3) { display: none; }
  .icon-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .icon-tile { padding: 10px 4px; border-radius: 13px; }
  .it-ico { width: 38px; height: 38px; border-radius: 12px; font-size: 15px; }
  .icon-tile b { font-size: 11.5px; }
  .icon-tile small { display: none; }
  .pick-grid, .game-feature-grid, .board-grid, .guide-grid, .app-mini-grid { grid-template-columns: 1fr; }
  .game-strip { grid-template-columns: repeat(2, 1fr); padding: 12px; }
  .game-hero { padding: 20px; border-radius: 18px; }
  .game-hero h1 { font-size: 22px; }
  .gh-stats { gap: 18px; }
  .game-hero-side { flex-direction: column; }
  .rank-tabs { flex-direction: column; align-items: stretch; gap: 8px; }
  .rt-group a { padding: 6px 12px; font-size: 13px; }
  .rt-cat, .rt-click { display: none; }
  .rt-row { gap: 9px; }
  .rt-name small { max-width: 52vw; }
  .podium-card { padding: 18px 14px 16px; }
  .guide-bar { align-items: stretch; }
  .guide-search input { width: 100%; }
  .guide-search { flex: 1; }
  .guide-hero { border-radius: 16px; }
  .gh-body h2 { font-size: 18px; }
  .article { padding: 18px 16px; border-radius: 16px; }
  .article-head h1 { font-size: 21px; }
  .ar-content { font-size: 15px; line-height: 1.9; }
  .ar-content h2 { font-size: 17px; margin-top: 22px; }
  .app-feature-card { flex-wrap: wrap; }
  .af-actions { flex-direction: row; width: 100%; }
  .af-actions .btn { flex: 1; }
  .ar-nav { grid-template-columns: 1fr; }
  .ar-nav .ar-next { text-align: left; }
}

/* ---------------- 首页友情链接 ---------------- */
.flinks-sec .section-head { margin-bottom: 12px; }
.flinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.flink {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px; transition: .16s;
}
.flink:hover { border-color: #C9D8F8; box-shadow: var(--shadow); transform: translateY(-2px); }
.flink img { width: 34px; height: 34px; border-radius: 9px; flex: none; object-fit: cover; background: #F2F5FB; }
.fl-ico {
  width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: var(--blue-bg); color: var(--blue); font-size: 15px; font-weight: 700;
}
.flink:nth-child(6n+2) .fl-ico { background: #EAF7F1; color: #0FA37C; }
.flink:nth-child(6n+3) .fl-ico { background: #FDF1E4; color: #C97A16; }
.flink:nth-child(6n+4) .fl-ico { background: #F1EDFE; color: #6C5CE7; }
.fl-body { min-width: 0; }
.fl-body b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-body small { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }

@media (max-width: 768px) {
  .flinks { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .flink { padding: 9px 10px; }
  .fl-body small { display: none; }
}
