/* ============================================================
   SteamHunter v2.0 - Core Design System & Responsive Styles
   ============================================================ */

/* 1. CSS 自定义变量设计系统 (Design System Tokens) */
:root, [data-theme="dark"] {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-tertiary: #1f293d;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(26, 36, 56, 0.9);
    --bg-glass: rgba(17, 24, 39, 0.65);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(56, 189, 248, 0.4);
    --border-focus: #38bdf8;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverted: #0f172a;

    --accent-steam: #66c0f4;
    --accent-steam-dark: #1b2838;
    --accent-primary: #38bdf8;
    --accent-primary-gradient: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    --accent-keep: #10b981;
    --accent-keep-bg: rgba(16, 185, 129, 0.15);
    --accent-weekend: #f59e0b;
    --accent-weekend-bg: rgba(245, 158, 11, 0.15);
    --accent-dlc: #ec4899;
    --accent-dlc-bg: rgba(236, 72, 153, 0.15);
    --accent-game: #3b82f6;
    --accent-game-bg: rgba(59, 130, 246, 0.15);
    --accent-danger: #f43f5e;
    --accent-danger-bg: rgba(244, 63, 94, 0.15);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.2);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.88);

    --border-color: #e2e8f0;
    --border-hover: #0284c7;
    --border-focus: #0284c7;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverted: #ffffff;

    --accent-steam: #0369a1;
    --accent-steam-dark: #f0f9ff;
    --accent-primary: #0284c7;
    --accent-primary-gradient: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    --accent-keep: #047857;
    --accent-keep-bg: #ecfdf5;
    --accent-weekend: #b45309;
    --accent-weekend-bg: #fffbeb;
    --accent-dlc: #be185d;
    --accent-dlc-bg: #fdf2f8;
    --accent-game: #1d4ed8;
    --accent-game-bg: #eff6ff;
    --accent-danger: #be123c;
    --accent-danger-bg: #fff1f2;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
}

/* 2. 基础重置与排版规范 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, select {
    font-family: inherit;
    font-size: inherit;
}

/* 3. 顶部导航栏 (Navbar) */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-brand:hover {
    opacity: 0.92;
}

.brand-icon {
    font-size: 1.85rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.4));
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--accent-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge {
    display: none !important;
}

.live-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-keep);
    box-shadow: 0 0 8px var(--accent-keep);
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-channel {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-primary);
    border-color: rgba(56, 189, 248, 0.25);
}

.btn-channel:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
}

.btn-icon-only {
    padding: 0.55rem;
    width: 40px;
    height: 40px;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: rotate(15deg);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* 4. 主视觉区 (Hero Section) */
.hero-section {
    position: relative;
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
}

.hero-container {
    max-width: 860px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--accent-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 1.75rem;
}

.hero-cta-banner {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.cta-banner-text {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* 5. 主控制栏 (Search & Filters) */
.main-content {
    flex: 1;
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
}

.controls-section {
    margin-bottom: 2rem;
}

.controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 0.85rem 2.8rem 0.85rem 2.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.search-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-full);
}

.search-clear-btn:hover {
    color: var(--text-primary);
}

.filter-pills-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.filter-pill {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-pill:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.filter-pill.active {
    background: var(--accent-primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.controls-secondary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
    user-select: none;
}

.custom-checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.custom-checkbox-label input:checked + .checkbox-custom {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.custom-checkbox-label input:checked + .checkbox-custom::after {
    content: "✓";
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.sort-and-refresh {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.select-wrapper select {
    padding: 0.45rem 2rem 0.45rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.88rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.select-wrapper select:focus {
    border-color: var(--border-focus);
}

/* 6. 卡片网格布局 (Cards Grid) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.75rem;
}

/* 游戏卡片容器 */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease,
                filter 0.35s ease,
                opacity 0.35s ease;
    backdrop-filter: blur(8px);
    position: relative;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

/* 核心要求：当活动结束 卡片整体变灰 (Grayscale) */
.game-card.card-expired {
    filter: grayscale(1);
    opacity: 0.65;
    border-color: var(--border-color);
    box-shadow: none;
}

.game-card.card-expired:hover {
    opacity: 0.85;
    filter: grayscale(0.75);
    transform: translateY(-2px);
}

/* 卡片封面图与徽章 */
.card-banner-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 460 / 215;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.card-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .card-banner {
    transform: scale(1.05);
}

.card-expired .card-banner-wrapper::after {
    content: "已结束";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
}

.card-top-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    z-index: 2;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 促销类型徽章 */
.badge-promo-keep {
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
}

.badge-promo-weekend {
    background: rgba(245, 158, 11, 0.9);
    color: #ffffff;
}

/* 资源属性画像徽章 */
.badge-res-game {
    background: rgba(59, 130, 246, 0.88);
    color: #ffffff;
}

.badge-res-dlc {
    background: rgba(236, 72, 153, 0.88);
    color: #ffffff;
}

.badge-res-demo {
    background: rgba(139, 92, 246, 0.88);
    color: #ffffff;
}

.badge-res-music {
    background: rgba(16, 185, 129, 0.88);
    color: #ffffff;
}

/* 卡片内容主体 */
.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.85rem;
}

.card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title:hover {
    color: var(--accent-primary);
}

/* DLC 本体依赖提醒框 */
.card-dependency-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--accent-dlc-bg);
    border: 1px solid rgba(236, 72, 153, 0.25);
    font-size: 0.8rem;
    color: var(--accent-dlc);
    font-weight: 600;
}

.dependency-icon {
    font-size: 1rem;
}

.dependency-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 时间排期与倒计时 */
.card-schedule-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.schedule-label {
    color: var(--text-muted);
}

.countdown-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--accent-primary-gradient);
    color: #ffffff;
    align-self: flex-start;
}

.countdown-pill.ending-soon {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    animation: urgentPulse 1.5s infinite;
}

.countdown-pill.expired {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

@keyframes urgentPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* 卡片操作按钮组 */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.card-actions .btn {
    font-size: 0.85rem;
    padding: 0.55rem 0.85rem;
    width: 100%;
    justify-content: center;
}

.btn-steam-claim {
    background: #1b2838;
    color: #c7d5e0;
    border: 1px solid #2a475e;
}

.btn-steam-claim:hover {
    background: #2a475e;
    color: #ffffff;
}

.btn-steam-install {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-steam-install:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.card-expired .btn-steam-claim {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-color: var(--border-color);
    pointer-events: none;
}

/* 7. 骨架屏与空状态 */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.75rem;
}

.skeleton-card {
    height: 380px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.empty-state, .error-state {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 2rem auto;
}

.empty-icon, .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-title, .error-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-desc, .error-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* 8. 页脚 (Footer) */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-notice {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 560px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-sync-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 9. 响应式布局自适应 (Responsive Breakpoints) */
@media (max-width: 1024px) {
    .live-indicator-pill {
        display: none !important;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .games-grid, .skeleton-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.7rem 1rem;
        gap: 0.75rem;
    }
    .nav-left {
        gap: 0.85rem;
    }
    .nav-right {
        gap: 0.5rem;
    }
    .brand-title {
        font-size: 1.15rem;
    }
    .brand-badge {
        display: none;
    }
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.88rem;
    }
    .btn-channel {
        padding: 0.45rem 0.75rem;
    }
    .btn-channel .btn-text {
        display: none;
    }
    .live-indicator-pill {
        display: none !important;
    }
    .hero-section {
        padding: 2.5rem 1rem 1.75rem;
    }
    .hero-title {
        font-size: 1.85rem;
    }
    .hero-desc {
        font-size: 0.95rem;
    }
    .hero-cta-banner {
        flex-direction: column;
        gap: 0.85rem;
        width: 100%;
        text-align: center;
    }
    .main-content {
        padding: 0.5rem 1rem 3rem;
    }
    .controls-wrapper {
        padding: 1rem;
    }
    .controls-secondary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .sort-and-refresh {
        width: 100%;
        justify-content: space-between;
    }
    .select-wrapper {
        flex: 1;
    }
    .select-wrapper select {
        width: 100%;
    }
    .games-grid, .skeleton-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .footer-right {
        align-items: flex-start;
    }
}

.nav-text-mobile {
    display: none;
}
.nav-text-desktop {
    display: inline;
}

@media (max-width: 640px) {
    .nav-text-desktop {
        display: none;
    }
    .nav-text-mobile {
        display: inline;
    }
    .nav-container, .navbar-container {
        padding: 0.5rem 0.65rem;
        gap: 0.4rem;
    }
    .nav-left {
        gap: 0.5rem;
    }
    .nav-right {
        gap: 0.35rem;
    }
    .brand-title, .brand-name {
        font-size: 1.1rem;
    }
    .brand-badge {
        display: none;
    }
    .nav-link {
        padding: 0.35rem 0.45rem;
        font-size: 0.82rem;
        gap: 0.2rem;
    }
    .btn-channel, .btn-tg-join {
        padding: 0.35rem 0.55rem;
    }
    .btn-channel .btn-text, .btn-tg-join .tg-text {
        display: none;
    }
    .theme-toggle-btn, .btn-icon {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
}

@media (max-width: 380px) {
    .nav-container, .navbar-container {
        padding: 0.4rem 0.45rem;
        gap: 0.25rem;
    }
    .brand-icon {
        font-size: 1.35rem;
    }
    .brand-title, .brand-name {
        font-size: 0.95rem;
    }
    .nav-link {
        padding: 0.25rem 0.35rem;
        font-size: 0.76rem;
    }
    .theme-toggle-btn, .btn-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

/* ============================================================
   8. 顶部导航增强与多栏目支持 (v2.0)
   ============================================================ */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-shrink: 0;
}

/* 兼容性样式别名 */
.navbar-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    transition: var(--transition);
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--accent-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.btn-tg-join {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-primary);
    border: 1px solid rgba(56, 189, 248, 0.25);
    white-space: nowrap;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-icon-sun { display: var(--sun-display, block); }
.theme-icon-moon { display: var(--moon-display, none); }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.12);
}

/* 卡片活动详情按钮 */
.btn-detail {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-primary);
    border: 1px solid rgba(56, 189, 248, 0.28);
    font-weight: 600;
}

.btn-detail:hover {
    background: var(--accent-primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.card-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================================
   9. 面包屑导航系统
   ============================================================ */
.breadcrumb-container {
    max-width: 1200px;
    margin: 1.25rem auto 0;
    padding: 0 1.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb-sep {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 320px;
}

/* ============================================================
   10. 游戏专属活动详情页 (/game/<appid>)
   ============================================================ */
.game-detail-hero {
    position: relative;
    max-width: 1200px;
    margin: 1.5rem auto 2.5rem;
    padding: 2.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.game-detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.25);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .game-detail-backdrop {
    filter: blur(50px) brightness(1.2) saturate(0.8);
    opacity: 0.12;
}

.game-detail-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.game-detail-banner-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-detail-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.game-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.badge-appid {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

[data-theme="light"] .badge-appid {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 600;
}

.badge-expired-tag {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.game-detail-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin: 0;
}

.game-dependency-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
}

[data-theme="light"] .game-dependency-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    font-weight: 600;
}

.game-meta-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    background: var(--bg-secondary);
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .game-meta-pills {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.meta-pill {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.meta-pill-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

[data-theme="light"] .meta-pill-label {
    color: #64748b;
    font-weight: 600;
}

.meta-pill-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.status-active {
    color: #10b981;
}

.status-expired {
    color: var(--text-muted);
}

.game-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.game-detail-actions .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* 详情页双列表格布局 */
.game-detail-sections-grid {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.detail-card-title-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.detail-card-icon {
    font-size: 1.25rem;
}

.detail-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.detail-card-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .detail-card-badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.badge-lowest {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .badge-lowest {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.detail-card-body {
    padding: 1.5rem;
    flex: 1;
}

/* 数据表格系统 */
.table-responsive {
    overflow-x: auto;
    scrollbar-width: thin;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.data-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

[data-theme="light"] .data-table th {
    background: #f1f5f9;
    color: #334155;
    border-bottom: 2px solid #cbd5e1;
    font-weight: 700;
}

.data-table td {
    padding: 0.85rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

[data-theme="light"] .data-table tbody tr:hover {
    background: #f8fafc;
}

.data-table tr.row-highlight {
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .data-table tr.row-highlight {
    background: #ecfdf5;
}

.table-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.table-badge.badge-keep {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
}

[data-theme="light"] .table-badge.badge-keep {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.table-badge.badge-weekend {
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
}

[data-theme="light"] .table-badge.badge-weekend {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-badge {
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    color: #10b981;
}

[data-theme="light"] .status-badge.active {
    color: #047857;
    font-weight: 700;
}

.status-badge.ended {
    color: var(--text-muted);
}

.time-range {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    line-height: 1.35;
}

.mini-crown {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 700;
}

[data-theme="light"] .mini-crown {
    color: #b45309;
}

.discount-pill {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

[data-theme="light"] .discount-pill {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.price-update-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

.empty-box {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

/* 详情页底部推荐资讯 */
.game-related-news-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.section-main-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.section-sub-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ============================================================
   11. 资讯大栏目列表页 (/news)
   ============================================================ */
.news-hero-section {
    max-width: 1200px;
    margin: 1.5rem auto 2.5rem;
    padding: 0 1.5rem;
    text-align: center;
}

.news-hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.news-tags-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.news-tag-pill {
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

[data-theme="light"] .news-tag-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.news-tag-pill:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

[data-theme="light"] .news-tag-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #0284c7;
}

.news-tag-pill.active {
    background: var(--accent-primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.news-list-container {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

/* 头条精选卡片 */
.featured-article-card {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    transition: var(--transition);
}

.featured-article-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.featured-thumb-link {
    display: block;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
}

.featured-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-thumb-link:hover .featured-thumb {
    transform: scale(1.04);
}

.featured-info {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
}

.badge-featured {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 700;
}

[data-theme="light"] .badge-featured {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.featured-title {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.featured-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.featured-title a:hover {
    color: var(--accent-primary);
}

.featured-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-actions {
    display: flex;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

/* 资讯列表网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.75rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.news-card-thumb-link {
    display: block;
    height: 190px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.news-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-thumb {
    transform: scale(1.05);
}

.news-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.65rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.news-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.news-card-title a:hover {
    color: var(--accent-primary);
}

.news-card-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.news-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

[data-theme="light"] .news-card-tag {
    background: #e0f2fe;
    color: #0369a1;
}

.news-card-readmore {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.news-card-readmore:hover {
    color: var(--accent-primary);
    transform: translateX(2px);
}

/* ============================================================
   12. 资讯深度阅读内页 (/news/<id>)
   ============================================================ */
.article-layout-container {
    max-width: 1200px;
    margin: 1.5rem auto 4rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: flex-start;
}

.article-reader {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow-sm);
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-badge-tag {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-primary);
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

[data-theme="light"] .article-badge-tag {
    background: #e0f2fe;
    color: #0369a1;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
}

.article-summary-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

[data-theme="light"] .article-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0284c7;
}

.summary-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.35rem;
}

[data-theme="light"] .summary-label {
    color: #0369a1;
}

.summary-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* 关联游戏直通挂件 */
.article-game-widget {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-lg);
    margin-top: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

[data-theme="light"] .article-game-widget {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .article-game-widget {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid var(--border-color);
}

.widget-thumb {
    width: 120px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.widget-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.widget-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
}

[data-theme="light"] .widget-tag {
    color: #0369a1;
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.widget-status {
    font-size: 0.84rem;
    color: var(--text-secondary);
    font-weight: 500;
}

[data-theme="light"] .widget-status {
    color: #334155;
}

.widget-status code {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.widget-sep {
    margin: 0 0.35rem;
    color: var(--text-muted);
}

.widget-actions {
    display: flex;
    gap: 0.5rem;
}

[data-theme="light"] .widget-actions .btn-secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .widget-actions .btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* 正文排版与 SEO 样式 */
.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-heading-h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.article-heading-h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.article-p {
    margin: 1rem 0;
    color: var(--text-secondary);
}

.article-quote {
    background: var(--bg-secondary);
    border-left: 4px solid #10b981;
    padding: 0.85rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-primary);
    font-style: normal;
}

.article-list {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.article-list li {
    margin-bottom: 0.5rem;
}

.article-figure {
    margin: 1.75rem 0;
    text-align: center;
}

.article-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.article-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 文末标签与分享 */
.article-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.75rem;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.tags-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.article-tag-item {
    font-size: 0.82rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
}

[data-theme="light"] .article-tag-item {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.article-tag-item:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

[data-theme="light"] .article-tag-item:hover {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #0284c7;
}

.article-share-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .article-share-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.share-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

[data-theme="light"] .share-hint {
    color: #334155;
    font-weight: 600;
}

/* 侧边栏小部件 */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: sticky;
    top: 5rem;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-game-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sidebar-game-banner {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.sidebar-game-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-game-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sidebar-news-item {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 0.75rem;
    align-items: center;
    text-decoration: none;
    padding: 0.4rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.sidebar-news-item:hover {
    background: var(--bg-secondary);
}

[data-theme="light"] .sidebar-news-item:hover {
    background: #f1f5f9;
}

.sidebar-news-thumb {
    width: 75px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.sidebar-news-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-item:hover .sidebar-news-title {
    color: var(--accent-primary);
}

.sidebar-news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* 响应式断点强化 */
@media (max-width: 960px) {
    .game-detail-wrapper {
        grid-template-columns: 1fr;
    }
    .game-detail-sections-grid {
        grid-template-columns: 1fr;
    }
    .featured-article-card {
        grid-template-columns: 1fr;
    }
    .featured-thumb-link {
        min-height: 220px;
    }
    .featured-info {
        padding: 1.5rem;
    }
    .article-layout-container {
        grid-template-columns: 1fr;
    }
    .article-reader {
        padding: 1.75rem 1.5rem;
    }
    .article-game-widget {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .widget-thumb {
        margin: 0 auto;
    }
    .widget-actions {
        justify-content: center;
    }
}

