/* Yeldrix Games 品牌色系与全局变量 */
:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --primary-dark: #5A4BD1;
    --secondary: #00CEC9;
    --secondary-light: #81ECEC;
    --accent: #FD79A8;
    --accent-light: #FDCB6E;
    --success: #00B894;
    --warning: #FDCB6E;
    --danger: #E17055;
    --bg-primary: #0A0E1A;
    --bg-secondary: #131829;
    --bg-card: #1A2035;
    --bg-card-hover: #222B45;
    --bg-input: #1E2540;
    --text-primary: #E8EAF6;
    --text-secondary: #9FA8DA;
    --text-muted: #5C6BC0;
    --border: #2A3154;
    --border-light: #3D4780;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
    --nav-height: 64px;
}

/* 全局重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--secondary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    background: none;
    color: inherit;
}

input, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

/* 容器 */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

.nav-logo .logo-text span {
    color: var(--secondary);
}

.nav-search {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 9px 16px 9px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 14px;
}

.nav-search input::placeholder {
    color: var(--text-muted);
}

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

.nav-search .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 8px 32px var(--shadow-lg);
}

.nav-search .search-results.active {
    display: block;
}

.nav-search .search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    transition: var(--transition);
    cursor: pointer;
}

.nav-search .search-result-item:hover {
    background: var(--bg-card-hover);
}

.nav-search .search-result-item img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.nav-search .search-result-info h4 {
    font-size: 14px;
    color: var(--text-primary);
}

.nav-search .search-result-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 6px 14px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-primary);
    padding: 4px;
}

/* 移动端导航菜单 */
.nav-mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.nav-mobile-menu.active {
    display: block;
}

.nav-mobile-search {
    margin-bottom: 16px;
    position: relative;
}

.nav-mobile-search input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
}

.nav-mobile-search input::placeholder {
    color: var(--text-muted);
}

.nav-mobile-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.nav-mobile-search .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 8px 32px var(--shadow-lg);
}

.nav-mobile-search .search-results.active {
    display: block;
}

.nav-mobile-search .search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.nav-mobile-search .search-result-item:hover {
    background: var(--bg-card-hover);
}

.nav-mobile-search .search-result-item img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.nav-mobile-search .search-result-info h4 {
    font-size: 14px;
    color: var(--text-primary);
}

.nav-mobile-search .search-result-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.nav-mobile-menu a {
    display: block;
    padding: 14px 0;
    color: var(--text-secondary);
    font-size: 16px;
    border-bottom: 1px solid var(--border);
}

/* 轮播区 */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.hero-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 21/9;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,14,26,0.85) 0%, rgba(10,14,26,0.3) 60%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 40px;
}

.hero-slide-content {
    max-width: 500px;
}

.hero-slide-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-slide-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-slide-content .slide-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-slide-content .slide-rating .stars {
    color: var(--accent-light);
    font-size: 14px;
}

.hero-slide-content .slide-rating span {
    color: var(--text-muted);
    font-size: 13px;
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--secondary);
    width: 28px;
    border-radius: 5px;
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-nav-btn:hover {
    background: rgba(0,0,0,0.8);
}

.hero-nav-btn.prev { left: 16px; }
.hero-nav-btn.next { right: 16px; }

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #00B894);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 206, 201, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 206, 201, 0.4);
    color: #fff;
}

.btn-outline {
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(108, 92, 231, 0.1);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* 章节标题 */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .icon {
    font-size: 24px;
}

.section-more {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.section-more:hover {
    color: var(--secondary);
}

/* 游戏卡片 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: 0 8px 24px var(--shadow);
}

.game-card-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.game-card:hover .game-card-thumb img {
    transform: scale(1.08);
}

.game-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-new {
    background: var(--success);
    color: #fff;
}

.badge-hot {
    background: var(--danger);
    color: #fff;
}

.badge-top {
    background: var(--accent-light);
    color: #1a1a2e;
}

.game-card-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-card-play {
    opacity: 1;
}

.game-card-play .play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.5);
}

.game-card-info {
    padding: 12px;
}

.game-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.game-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-light);
}

.game-card-category {
    color: var(--text-muted);
}

.game-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.game-card-tag {
    padding: 2px 6px;
    background: var(--bg-input);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

/* 大号游戏卡片 */
.game-card-lg .game-card-thumb {
    aspect-ratio: 16/11;
}

.game-card-lg .game-card-info {
    padding: 16px;
}

.game-card-lg .game-card-title {
    font-size: 16px;
}

.game-card-lg .game-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 统计数据区 */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 分类导航标签 */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.category-tab {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.category-tab:hover, .category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 筛选排序栏 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-bar select {
    padding: 8px 32px 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239FA8DA' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

.filter-bar select:focus {
    border-color: var(--primary);
}

/* 页脚 */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand .footer-logo span {
    color: var(--secondary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    padding: 4px 0;
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* 游戏详情页样式 */
.game-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-top: 24px;
}

.game-frame-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.game-frame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.game-frame-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.game-frame-actions {
    display: flex;
    gap: 8px;
}

.game-frame-actions button {
    padding: 6px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.game-frame-actions button:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.game-iframe-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.game-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-iframe-container.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    aspect-ratio: unset;
}

/* 游戏信息侧栏 */
.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-info-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border);
}

.game-info-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(42, 49, 84, 0.5);
}

.game-info-row:last-child {
    border-bottom: none;
}

.game-info-row .label {
    color: var(--text-muted);
}

.game-info-row .value {
    color: var(--text-secondary);
    font-weight: 500;
}

/* 评分条 */
.rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-star {
    color: var(--accent-light);
    font-size: 14px;
}

.rating-star.empty {
    color: var(--border);
}

.rating-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-light);
}

/* 详情页内容区 */
.game-content-area {
    margin-top: 24px;
}

.game-content-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

.game-content-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    cursor: pointer;
}

.game-content-tab:hover, .game-content-tab.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.game-tab-content {
    display: none;
}

.game-tab-content.active {
    display: block;
}

.game-tab-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 20px;
}

.game-tab-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.game-tab-content ul {
    padding-left: 0;
    margin-bottom: 16px;
}

.game-tab-content li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.game-tab-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
}

/* FAQ手风琴 */
.faq-item {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-question .arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 16px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

/* 推荐游戏侧栏 */
.recommended-games {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.recommended-game {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.recommended-game:hover {
    background: var(--bg-card-hover);
}

.recommended-game img {
    width: 56px;
    height: 42px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.recommended-game-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommended-game-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* 专题页横幅 */
.topic-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    padding: 48px 40px;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

.topic-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.topic-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    line-height: 1.6;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

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

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

.breadcrumb .current {
    color: var(--text-secondary);
}

/* 系列合集横滑 */
.series-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.series-scroll::-webkit-scrollbar {
    height: 6px;
}

.series-scroll::-webkit-scrollbar-track {
    background: var(--bg-input);
    border-radius: 3px;
}

.series-scroll::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.series-card {
    min-width: 280px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border);
    scroll-snap-align: start;
    transition: var(--transition);
    cursor: pointer;
}

.series-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.series-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.series-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.series-card-count {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
}

/* 加载更多按钮 */
.load-more-wrapper {
    text-align: center;
    margin-top: 32px;
}

/* 无限加载占位 */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .game-detail-layout {
        grid-template-columns: 1fr;
    }
    .game-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .game-info-card {
        flex: 1;
        min-width: 280px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-mobile-toggle {
        display: block;
    }
    .nav-search {
        max-width: 240px;
    }
    .hero-slide-overlay {
        padding: 24px;
    }
    .hero-slide-content h2 {
        font-size: 22px;
    }
    .hero-slide-content p {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hero-nav-btn {
        width: 36px;
        height: 36px;
    }
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    .section-title {
        font-size: 18px;
    }
    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .stat-value {
        font-size: 28px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .game-content-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .game-content-tab {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 13px;
    }
    .recommended-games {
        grid-template-columns: 1fr;
    }
    .topic-hero {
        padding: 32px 24px;
    }
    .topic-hero h1 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .nav-search {
        display: none;
    }
    .hero-slide {
        aspect-ratio: 16/9;
    }
    .hero-slide-overlay {
        padding: 16px;
    }
    .hero-slide-content h2 {
        font-size: 18px;
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stats-bar {
        grid-template-columns: 1fr;
    }
    .stat-value {
        font-size: 24px;
    }
    .category-tabs {
        gap: 6px;
    }
    .category-tab {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* 懒加载占位 */
.lazy-img {
    background: var(--bg-input);
    transition: opacity 0.3s ease;
}

.lazy-img.loaded {
    opacity: 1;
}

/* 页面标题 */
.page-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Toast通知 */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    color: var(--text-primary);
    font-size: 14px;
    z-index: 10000;
    box-shadow: 0 8px 32px var(--shadow-lg);
    transition: transform 0.3s ease;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
}
