/* iOSGame — 前台样式（Apple 官方风：亮色底、大留白、大圆角、蓝色渐变 CTA）
   契约：本文件只做视觉层，不改 class 名、不改 DOM 结构。
   .hero-carousel / .hero-video / .hero-slide / .hero-content 与 wwwroot/js/site.js
   的轮播逻辑一一对应，改名或删除即导致首页 banner 视频轮播失效。 */

:root {
    /* 亮色底：页面白、区块浅灰，卡片一律纯白浮起 */
    --bg: #ffffff;
    --bg-soft: #f5f5f7;
    --panel: #ffffff;
    --panel-2: #f5f5f7;
    --line: #d2d2d7;
    --line-soft: #ececf0;
    --text: #1d1d1f;
    --muted: #6e6e73;
    /* Apple 蓝：链接与次要强调用 --accent-2，按钮用 --accent */
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-soft: #e8f1fd;
    --accent-2: #0066cc;
    --success: #1d7d34;
    --danger: #d70015;
    --warn-bg: #fff8e5;
    --warn-line: #f0d9a0;
    --warn-text: #8a5a00;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-sm: 12px;
    --radius-pill: 980px;
    --shadow: 0 12px 32px rgba(0, 0, 0, .10);
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, .06);
    --max-width: 1120px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.15; letter-spacing: -.015em; font-weight: 600; }
h1 { font-size: 40px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== 顶部导航：半透明毛玻璃，滚动时仍可读 ===== */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.site-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 22px;
    display: flex; align-items: center; gap: 22px;
}

.site-logo {
    font-weight: 600; font-size: 19px; letter-spacing: -.01em;
    color: var(--text);
}
.site-logo:hover { color: var(--text); opacity: .75; }

.nav-links { display: flex; gap: 20px; flex: 1; }
.nav-links a { color: var(--text); font-weight: 400; font-size: 14px; opacity: .82; }
.nav-links a:hover { color: var(--accent); opacity: 1; }

.nav-toggle {
    display: none; background: transparent; color: var(--text);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 18px; padding: 2px 10px; cursor: pointer;
}

.account-links { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.account-links a { color: var(--accent-2); }
.account-links a:hover { color: var(--accent); }
.account-links form { display: inline; margin: 0; }
.account-member-link { font-weight: 500; }

.link-button {
    background: none; border: 0; color: inherit;
    font: inherit; cursor: pointer; padding: 0;
}
.link-button:hover { color: var(--accent); }

.lang-switch {
    display: inline-flex; background: var(--bg-soft);
    border-radius: var(--radius-pill); padding: 2px; gap: 2px;
}
.lang-switch a { padding: 3px 10px; font-size: 12px; color: var(--muted); border-radius: var(--radius-pill); }
.lang-switch a.is-current { background: var(--panel); color: var(--text); box-shadow: var(--shadow-soft); }

/* ===== 通用容器 ===== */
.site-main { max-width: var(--max-width); margin: 0 auto; padding: 0 22px 72px; }
.home-content { display: flex; flex-direction: column; gap: 56px; }
.section { padding: 40px 0; }
.section-heading {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 22px;
}
.section-kicker {
    margin: 0 0 6px; font-size: 12px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--accent);
    font-weight: 600;
}
.section-subtitle { color: var(--muted); margin: 0; font-size: 15px; }
.result-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.more-link { color: var(--accent-2); font-size: 14px; white-space: nowrap; }
.more-link:hover { color: var(--accent); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--radius-pill); border: 1px solid transparent;
    font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #0060c7); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-hover), #006ce0); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.empty-state {
    padding: 56px 20px; text-align: center; color: var(--muted);
    background: var(--bg-soft); border-radius: var(--radius-lg);
}
.empty-state p { margin-bottom: 16px; }

/* ===== 首屏 banner：视频轮播（JS 只切换 .is-active，这里不做任何动画依赖） ===== */
.hero {
    position: relative; margin: 28px 0 10px;
    border-radius: var(--radius-lg); overflow: hidden;
    background: #000; min-height: 420px; display: flex; align-items: flex-end;
}
.hero-carousel { background: #000; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .38) 55%, rgba(0, 0, 0, .12) 100%);
}
.hero-content {
    position: relative; z-index: 2; padding: 48px 44px;
    max-width: 640px; color: #fff;
    display: flex; flex-direction: column; gap: 12px;
}
.hero-content h1 { font-size: 48px; color: #fff; margin: 0; }
.hero-description { color: rgba(255, 255, 255, .86); margin: 0; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero-content .btn-primary { background: linear-gradient(135deg, #0a84ff, #0060c7); }
.hero-content .btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.hero-content .btn-ghost:hover { border-color: #fff; color: #fff; }

/* 文字位置：data-position 由后台轮播设置决定，JS 会把值同步到 .hero-content */
.hero-content[data-position="top-left"] { align-self: flex-start; text-align: left; }
.hero-content[data-position="top-right"] { align-self: flex-start; text-align: right; margin-left: auto; }
.hero-content[data-position="bottom-left"] { align-self: flex-end; text-align: left; }
.hero-content[data-position="bottom-right"] { align-self: flex-end; text-align: right; margin-left: auto; }

/* ===== 搜索 ===== */
.search-section { margin: 30px 0 8px; }
.search-box { display: flex; gap: 10px; }
.search-box input {
    flex: 1; padding: 14px 18px; border-radius: var(--radius-pill);
    border: 1px solid var(--line); background: var(--bg-soft);
    color: var(--text); font: inherit; font-size: 15px;
}
.search-box input:focus { outline: none; border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 4px var(--accent-soft); }
/* ===== 游戏卡片：方形 App 图标为主视觉 ===== */
.game-grid {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
}
.game-card {
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg); overflow: hidden;
    display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card.is-limited-free { border-color: #b7e0bf; }

.game-card-icon {
    position: relative; display: block; aspect-ratio: 1 / 1;
    background: var(--bg-soft); overflow: hidden;
}
.game-card-icon-img { width: 100%; height: 100%; object-fit: cover; }
.game-card-icon-fallback {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #e9eefb, #f5f5f7);
    color: var(--muted); font-size: 42px; font-weight: 600;
}
.game-card-badge {
    position: absolute; left: 10px; bottom: 10px;
    background: rgba(0, 0, 0, .72); color: #fff;
    border-radius: var(--radius-pill); padding: 3px 11px;
    font-size: 12px; font-weight: 500; letter-spacing: .01em;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.game-card.is-limited-free .game-card-badge { background: linear-gradient(135deg, #34c759, #1d9d4a); }

.game-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-card-title { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.game-card-title a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-card-meta {
    margin: 0; font-size: 13px; color: var(--muted);
    display: flex; gap: 8px; flex-wrap: wrap;
}
.game-card-foot {
    margin-top: auto; padding-top: 8px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.game-card-price {
    font-size: 13px; font-weight: 500; color: var(--text);
    background: var(--bg-soft); border-radius: var(--radius-pill); padding: 3px 11px;
    white-space: nowrap;
}
.game-card-price.is-free { background: rgba(52, 199, 89, .12); color: var(--success); }
.game-card-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.game-card-stars { color: #ff9500; }
.game-card-rating-count { color: var(--muted); }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    font-size: 12px; color: var(--muted);
    background: var(--bg-soft); border: 1px solid transparent;
    border-radius: var(--radius-pill); padding: 3px 11px; white-space: nowrap;
}
.chip-link:hover { border-color: var(--accent); color: var(--accent); }
.chip-link.is-current { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* ===== 筛选 ===== */
.filter-bar {
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 26px;
    display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-soft);
}
.filter-search input {
    width: 100%; padding: 12px 18px; border-radius: var(--radius-pill);
    border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font: inherit;
}
.filter-search input:focus { outline: none; border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 4px var(--accent-soft); }
.filter-row { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-title { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.filter-options { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-option {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    padding: 4px 13px; font-size: 13px; color: var(--text);
    cursor: pointer; transition: .15s; background: var(--panel);
}
.filter-option:hover { border-color: var(--text); }
.filter-option input { display: none; }
.filter-option.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.filter-actions { display: flex; gap: 10px; margin-left: auto; }
.sort-select {
    padding: 9px 14px; border-radius: var(--radius-sm); font: inherit; font-size: 14px;
    border: 1px solid var(--line); background: var(--panel); color: var(--text);
}
.sort-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ===== 分段切换（榜单口径等）：Apple 风格 segmented control ===== */
.tabs {
    display: inline-flex; gap: 2px; margin-bottom: 24px; flex-wrap: wrap;
    background: var(--bg-soft); border-radius: var(--radius-pill); padding: 3px;
}
.tab {
    padding: 7px 18px; border-radius: var(--radius-pill);
    color: var(--muted); font-size: 14px; transition: .15s;
}
.tab:hover { color: var(--text); }
.tab.is-current { background: var(--panel); color: var(--text); font-weight: 500; box-shadow: var(--shadow-soft); }

.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 34px 0 0; }
.pager-link {
    padding: 8px 18px; border-radius: var(--radius-pill);
    border: 1px solid var(--line); background: var(--panel); font-size: 14px;
}
.pager-link:hover { border-color: var(--accent); color: var(--accent); }
.pager-link.is-current { border-color: var(--accent); color: var(--accent); }
.pager-current { color: var(--muted); font-size: 13px; }

/* ===== 榜单名次 ===== */
.rank-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
}
.rank-item { position: relative; }
.rank-no {
    position: absolute; top: -10px; left: -10px; z-index: 2;
    min-width: 30px; height: 30px; padding: 0 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--panel); color: var(--accent);
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 600; box-shadow: var(--shadow-soft);
}

/* ===== 开发者目录 ===== */
.company-list {
    list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.company-item a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: var(--panel);
    border: 1px solid var(--line-soft); border-radius: var(--radius);
    transition: .18s;
}
.company-item a:hover { border-color: var(--accent); box-shadow: var(--shadow-soft); }
.company-logo-wrap {
    position: relative; flex: 0 0 38px; width: 38px; height: 38px;
    border-radius: 10px; background: var(--bg-soft); overflow: hidden;
}
.company-logo-wrap-lg { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 18px; }
.company-logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.company-logo-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 15px; font-weight: 600; text-transform: uppercase;
}
.company-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }

/* ===== 首页年份探索 ===== */
.year-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.year-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius);
    border: 1px solid var(--line-soft); background: var(--panel);
    color: var(--text); font-weight: 500; transition: .18s;
}
.year-chip:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-soft); }
.year-chip-label { font-size: 16px; }
.year-chip-count { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ===== 分类目录 ===== */
.category-grid {
    list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.category-card a {
    display: flex; flex-direction: column; gap: 4px;
    padding: 18px 20px; background: var(--panel);
    border: 1px solid var(--line-soft); border-radius: var(--radius);
    transition: .18s;
}
.category-card a:hover { border-color: var(--accent); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.category-name { font-size: 16px; font-weight: 500; }
.category-count { font-size: 13px; color: var(--muted); }

/* ===== 促销页 ===== */
.deal-card { position: relative; }
.deal-badge { background: linear-gradient(135deg, #ff9500, #ff6b00); }
.deal-changed { font-size: 12px; color: var(--muted); }
.price-original {
    font-size: 12px; color: var(--muted);
    text-decoration: line-through; margin-left: 8px;
}

/* ===== 上架日历 ===== */
.calendar-block { padding: 30px 0; border-top: 1px solid var(--line-soft); }
.calendar-month { margin-bottom: 30px; }
.calendar-month-title { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: var(--text); }
.month-picker {
    display: flex; gap: 8px; flex-wrap: wrap;
    max-height: 168px; overflow-y: auto;
    padding: 14px; margin-bottom: 24px;
    background: var(--bg-soft); border-radius: var(--radius);
}
.month-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: var(--radius-pill);
    border: 1px solid var(--line); background: var(--panel);
    color: var(--muted); font-size: 13px;
}
.month-chip:hover { border-color: var(--accent); color: var(--accent); }
.month-chip.is-current { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.month-chip-count { font-size: 11px; opacity: .8; }
/* ===== 面包屑 ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin: 22px 0 16px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .5; }

/* ===== 游戏详情：亮色底 + 大圆角图标，深色文字（App Store 商品页观感） ===== */
.detail-hero {
    position: relative; margin: 26px 0 30px; border-radius: var(--radius-lg);
    overflow: hidden; min-height: 320px; display: flex; align-items: flex-end;
    background: var(--bg-soft);
}
.detail-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.detail-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .92) 100%);
}
.detail-head { position: relative; z-index: 2; padding: 36px 34px; display: flex; gap: 28px; align-items: flex-end; }
.detail-head-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.detail-title { font-size: 40px; margin: 0; }
.detail-kicker { margin: 0; font-size: 14px; color: var(--accent); font-weight: 500; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.detail-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--text); }
.detail-rating-count { color: var(--muted); font-weight: 400; }
.lang-notice {
    margin: 8px 0 0; padding: 6px 12px; display: inline-block;
    font-size: 13px; color: var(--warn-text);
    background: var(--warn-bg); border: 1px solid var(--warn-line);
    border-radius: var(--radius-sm);
}
.detail-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.app-icon-wrap {
    position: relative; flex: 0 0 150px; width: 150px; height: 150px;
    border-radius: 34px; overflow: hidden; background: var(--panel);
    box-shadow: var(--shadow);
}
.app-icon { width: 150px; height: 150px; object-fit: cover; border-radius: 34px; }
.app-icon-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e9eefb, #f5f5f7);
    color: var(--muted); font-size: 48px; font-weight: 600;
}
.price-pill {
    display: inline-flex; align-items: center;
    padding: 6px 16px; border-radius: var(--radius-pill);
    background: var(--bg-soft); color: var(--text);
    font-size: 15px; font-weight: 500; white-space: nowrap;
}
.price-pill.is-free { background: rgba(52, 199, 89, .14); color: var(--success); }
.app-download { padding: 12px 26px; font-size: 16px; }
.app-download-lg { padding: 14px 30px; font-size: 17px; }

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; }
.detail-main { min-width: 0; }
.detail-text { color: #3a3a3c; white-space: pre-line; font-size: 15px; line-height: 1.7; }
.detail-empty { color: var(--muted); }
.detail-side { display: flex; flex-direction: column; gap: 18px; }
.detail-actions { display: flex; flex-direction: column; gap: 10px; }
.meta-list {
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 16px 18px;
}
.meta-row {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px;
}
.meta-row:last-child { border-bottom: 0; }
.meta-row span { color: var(--muted); }
.meta-row strong { font-weight: 500; text-align: right; }
.meta-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.meta-links a { color: var(--accent-2); }
.meta-links a:hover { color: var(--accent); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select {
    padding: 8px 12px; border-radius: var(--radius-sm); font: inherit;
    border: 1px solid var(--line); background: var(--panel); color: var(--text);
}
.store-links { display: flex; flex-direction: column; gap: 8px; }

.shot-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.shot-item { border-radius: var(--radius); border: 1px solid var(--line-soft); width: 100%; background: var(--bg-soft); }

/* ===== 价格历史 ===== */
.price-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.price-history-item {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px 2px; border-bottom: 1px solid var(--line-soft); font-size: 14px;
}
.price-history-item:last-child { border-bottom: 0; }
.price-history-date { color: var(--muted); }
.price-history-value { font-weight: 500; }
.price-history-value.is-free { color: var(--success); }

/* ===== 静态内容页 / 登录注册表单 ===== */
.content-page {
    max-width: 780px; margin: 40px auto; background: var(--panel);
    border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
    padding: 34px 38px; box-shadow: var(--shadow-soft);
}
.content-page h1 { margin-bottom: 18px; }
.content-page h2 { font-size: 20px; margin-top: 26px; }
.content-page p, .content-page li { color: #3a3a3c; }
.content-page a { color: var(--accent-2); }

.auth-page { display: flex; justify-content: center; padding: 60px 0; }
.auth-card {
    width: 100%; max-width: 420px; background: var(--panel);
    border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
    padding: 30px 32px; display: flex; flex-direction: column; gap: 10px;
    box-shadow: var(--shadow-soft);
}
.auth-card-small { max-width: 380px; }
.auth-card h1 { font-size: 26px; }
.auth-intro { color: var(--muted); font-size: 14px; }
.auth-card label { font-size: 13px; color: var(--muted); }
.auth-card input, .auth-card select, .auth-card textarea {
    width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font: inherit;
}
.auth-card input:focus, .auth-card select:focus, .auth-card textarea:focus {
    outline: none; border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 4px var(--accent-soft);
}
.auth-submit {
    margin-top: 8px; padding: 12px; border: 0; border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent), #0060c7); color: #fff;
    cursor: pointer; font: inherit; font-size: 16px; font-weight: 500;
}
.auth-submit:hover { background: linear-gradient(135deg, var(--accent-hover), #006ce0); }
.auth-error { color: var(--danger); font-size: 13px; }
.auth-success { color: var(--success); font-size: 13px; }
.auth-switch { font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--accent-2); }

/* ===== 页脚 ===== */
.site-footer {
    border-top: 1px solid var(--line-soft); background: var(--bg-soft);
    padding: 32px 22px 48px; text-align: center; color: var(--muted); font-size: 13px;
}
.site-footer-links { display: flex; gap: 22px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.site-footer-links a:hover { color: var(--accent); }
.footer-note { margin: 3px 0; font-size: 12px; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
    .detail-body { grid-template-columns: 1fr; }
    h1 { font-size: 34px; }
    .hero-content h1 { font-size: 38px; }
}

@media (max-width: 720px) {
    /* 移动端导航 = 浮层下拉面板：菜单绝对定位脱离文档流，展开时不推挤下方内容（轮播/正文不位移）；
       背景遮罩由 .site-nav::after 生成，点遮罩或按 Esc 收起。 */
    .site-nav { position: relative; flex-wrap: wrap; gap: 12px; padding: 10px 18px; }

    .nav-toggle { display: inline-block; margin-left: auto; }
    .nav-toggle[aria-expanded="true"] { background: var(--bg-soft); }

    .nav-links {
        display: none; position: absolute; z-index: 2;
        top: calc(100% + 8px); left: 12px; right: 12px;
        flex-direction: column; gap: 0; flex: none;
        max-height: calc(100vh - 96px); overflow-y: auto;
        padding: 6px 14px;
        background: var(--panel);
        border: 1px solid var(--line-soft);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: 13px 2px; font-size: 15px; border-top: 1px solid var(--line-soft); }
    .nav-links a:first-child { border-top: 0; }

    /* 背景遮罩：自导航栏下沿铺满视口；点击遮罩命中的就是 .site-nav 自身 */
    .site-nav::after {
        content: ''; position: absolute; z-index: 1;
        top: 100%; left: 0; right: 0; height: 100vh;
        background: rgba(0, 0, 0, .32);
        opacity: 0; pointer-events: none;
        transition: opacity .18s ease;
    }
    .site-nav.is-open::after { opacity: 1; pointer-events: auto; }

    .account-links { gap: 10px; }
    .site-main { padding: 0 16px 56px; }
    h1 { font-size: 30px; }
    .hero { min-height: 340px; border-radius: var(--radius); }
    .hero-content { padding: 28px 22px; gap: 10px; }
    .hero-content h1 { font-size: 28px; }
    .hero-description { font-size: 16px; }
    .detail-hero { border-radius: var(--radius); }
    .detail-head { flex-direction: column; align-items: flex-start; padding: 24px 22px; gap: 18px; }
    .app-icon-wrap, .app-icon { flex: 0 0 108px; width: 108px; height: 108px; border-radius: 26px; }
    .detail-title { font-size: 28px; }
    .game-grid, .rank-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
    .filter-bar { padding: 16px; border-radius: var(--radius); }
    .filter-actions { margin-left: 0; width: 100%; }
    .filter-actions .btn { flex: 1; }
    .company-head { flex-direction: column; align-items: flex-start; }
    .content-page { padding: 24px 20px; border-radius: var(--radius); }
    .month-picker { max-height: 200px; }
    .tabs { display: flex; width: 100%; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    .game-card:hover, .category-card a:hover { transform: none; }
}