/* 基础样式重置和变量定义 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Noir/侦探风格配色 */
    --dark-primary: #0a0a0a;
    --dark-secondary: #1a1a1a;
    --dark-tertiary: #2a2a2a;
    --gold-primary: #d4af37;
    --gold-secondary: #b8941f;
    --blue-gray: #2c3e50;
    --steel-blue: #4a6572;
    --smoke-gray: #7f8c8d;
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --text-muted: #95a5a6;
    /* 时间轴定位变量 */
    --timeline-axis-x: 30px;        /* 中轴线左偏移 */
    --timeline-axis-width: 4px;     /* 中轴线宽度 */
    --timeline-dot-size: 20px;      /* 圆点直径 */
    --timeline-content-gap: 20px;   /* 内容块与年份/轴之间的水平间距 */
    
    /* 动态效果变量 */
    --fog-opacity: 0.3;
    --light-intensity: 0.8;
    --shadow-depth: 0.5;
    
    /* 字体 */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Source Code Pro', monospace;
    --font-size-base: 16px;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--blue-gray) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 辅助类 - 屏幕阅读器专用 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 跳转到主内容链接 */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold-primary);
    color: var(--dark-primary);
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

/* 玻璃磨砂效果 */
.glass-effect {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-logo a:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 4px;
}

.nav-logo .case-number {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.hamburger:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 4px;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gold-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域样式 */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, var(--dark-primary) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.typewriter-container {
    margin-bottom: var(--spacing-md);
}

.typewriter-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--dark-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--gold-primary);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* 英雄区域背景动画 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--dark-primary) 0%, var(--blue-gray) 50%, var(--dark-secondary) 100%);
}

.fog-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(127, 140, 141, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(127, 140, 141, 0.1) 0%, transparent 50%);
    animation: fogMove 8s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes fogMove {
    0% { transform: translateX(-10px) translateY(-5px); }
    100% { transform: translateX(10px) translateY(5px); }
}

.light-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: lightFlicker 3s ease-in-out infinite;
    will-change: opacity;
}

@keyframes lightFlicker {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.silhouette {
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 300px;
    height: 400px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 80% 0%, 70% 20%, 60% 0%, 40% 0%, 30% 20%, 20% 0%, 0% 0%);
}

/* 通用容器和章节样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* 关于游戏区域样式 */
.about-section {
    background: var(--dark-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.8;
}

.case-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.detail-item {
    text-align: center;
    padding: var(--spacing-sm);
    background: rgba(42, 42, 42, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.detail-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.detail-value {
    display: block;
    font-size: 1.2rem;
    color: var(--gold-primary);
    font-weight: 600;
}

/* 证据板样式 */
.evidence-board {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--dark-tertiary);
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    padding: 2rem;
}

.photo, .fingerprint, .document {
    position: absolute;
    background: var(--steel-blue);
    border: 1px solid var(--gold-primary);
    border-radius: 4px;
}

.photo {
    width: 120px;
    height: 80px;
}

.evidence-1 { top: 20%; left: 15%; }
.evidence-2 { top: 60%; right: 20%; }

.fingerprint {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 30%;
    right: 15%;
}

.document {
    width: 100px;
    height: 140px;
    bottom: 20%;
    left: 20%;
}

.red-thread {
    position: absolute;
    background: #c0392b;
    height: 2px;
    transform-origin: left center;
}

.red-thread::before, .red-thread::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #c0392b;
    border-radius: 50%;
    top: -3px;
}

.red-thread::before { left: 0; }
.red-thread::after { right: 0; }

/* 功能特色区域样式 */
.features-section {
    background: var(--dark-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-lg);
    background: rgba(42, 42, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--gold-primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 角色展示区域样式 */
.characters-section {
    background: var(--dark-secondary);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.character-card {
    background: rgba(42, 42, 42, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.character-portrait {
    height: 200px;
    background: var(--steel-blue);
    position: relative;
    overflow: hidden;
}

.portrait-1 { background: linear-gradient(45deg, #2c3e50, #34495e); }
.portrait-2 { background: linear-gradient(45deg, #34495e, #2c3e50); }
.portrait-3 { background: linear-gradient(45deg, #2c3e50, #3498db); }

.character-info {
    padding: var(--spacing-md);
}

.character-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.character-role {
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.character-bio {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.hidden-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.character-card:hover .hidden-info {
    max-height: 100px;
}

.hidden-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* 游戏列表展示区样式 */
.games-section {
    background: linear-gradient(180deg, var(--dark-primary) 0%, var(--dark-secondary) 50%, var(--dark-primary) 100%);
    padding: var(--spacing-xl) 0;
    position: relative;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.1), transparent);
    pointer-events: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    background: linear-gradient(135deg, var(--gold-primary), #ffd700, var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    padding: 2rem;
    background: none;
    backdrop-filter: none;
    border-radius: 24px;
    border: none;
    box-shadow: none;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    color: var(--gold-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pagination-btn:hover::before {
    width: 200px;
    height: 200px;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.pagination-btn:active {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(42, 42, 42, 0.3);
    border-color: rgba(212, 175, 55, 0.1);
    color: var(--text-muted);
}

.pagination-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.pagination-btn i {
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.pagination-btn span {
    position: relative;
    z-index: 1;
}

/* 内联 SVG 图标样式 */
.pagination-btn .pagination-icon {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    flex: 0 0 18px;
}

/* 移动端隐藏文字时稍微增大图标 */
@media (max-width: 768px) {
    .pagination-btn .pagination-icon {
        width: 20px;
        height: 20px;
    }
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-number {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(42, 42, 42, 0.6);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.page-number::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-number:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.page-number:hover::before {
    opacity: 1;
}

.page-number.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    border-color: var(--gold-primary);
    color: var(--dark-primary);
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.page-number.active:hover {
    transform: scale(1.1);
}

.page-ellipsis {
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 0 0.5rem;
    user-select: none;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

/* 游戏卡片入场动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }

.game-card {
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.9), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(15px);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    will-change: transform;
    opacity: 0;
}

.game-card:focus-within {
    outline: none;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.game-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(212, 175, 55, 0.15);
}

.game-card:hover .game-badge {
    transform: none;
}

.game-card:hover::before {
    opacity: 0;
}

.game-cover {
    height: 180px;
    background: linear-gradient(135deg, var(--steel-blue), var(--blue-gray));
    position: relative;
    overflow: hidden;
}

.game-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.game-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9);
}

.game-card:hover .game-cover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.game-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    padding: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.game-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--dark-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 3;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* 游戏评分显示 */
.game-rating {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    z-index: 3;
    backdrop-filter: blur(10px);
}

/* 覆盖在封面右上角的难度徽章 */
.game-cover .difficulty-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover .difficulty-badge {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.game-rating .stars {
    color: var(--gold-primary);
    font-size: 0.9rem;
}

.game-rating .rating-number {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.game-info {
    padding: 1.25rem 1.25rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.8));
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), rgba(212, 175, 55, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.game-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
    flex: 1;
    min-height: 2.6rem;
}

.game-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    min-height: 2rem;
}

/* 精致难度标签 */
.difficulty-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.16);
    color: #e6e6e6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
    text-shadow: 0 1px 0 rgba(0,0,0,0.2);
    position: relative;
    margin-right: 10px;
}
.difficulty-easy {
    color: #5bd17f;
    border-color: rgba(91, 209, 127, 0.35);
    background: linear-gradient(135deg, rgba(91, 209, 127, 0.18), rgba(91, 209, 127, 0.08));
}
.difficulty-medium {
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.35);
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.18), rgba(241, 196, 15, 0.08));
}
.difficulty-hard {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.35);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.1));
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
}

/* 难度文字行 */
.game-difficulty {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.difficulty-text {
    color: var(--text-muted);
    background: none !important;
}

/* 统一使用中性颜色，不根据难度改变颜色 */

.game-tag {
    background: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 限制显示的标签数量 */
.game-tag:nth-child(n+4) {
    display: none;
}

.game-tag:hover {
    background: none;
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
    transform: none;
}

.game-platform {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.game-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.btn-details {
    flex: 1;
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-details:focus,
.btn-play:focus,
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 4px;
}

.btn-details:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.btn-play {
    flex: 1;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--dark-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-play:hover::before {
    width: 300px;
    height: 300px;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}


.no-games-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(42, 42, 42, 0.3);
    border-radius: 12px;
    border: 2px dashed rgba(212, 175, 55, 0.3);
}

.no-games-found h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.no-games-found p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 分页响应式 */
/* 游戏网格响应式 */
@media (max-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }
    
    .game-cover {
        height: 180px;
    }
    
    .game-info {
        padding: 1rem;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .game-description {
        font-size: 0.8rem;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .pagination-btn span {
        display: none;
    }
    
    .page-numbers {
        order: -1;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-number {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* 关于我们页面样式 */
.about-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--dark-secondary) 0%, var(--dark-primary) 50%, var(--dark-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05), transparent 40%);
    pointer-events: none;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-company {
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(26, 26, 26, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 3rem;
    border: 2px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.about-company::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.company-content {
    position: relative;
    z-index: 1;
}

.company-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-primary), #ffd700, var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.company-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
    border-radius: 2px;
}

.company-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: 1.15rem;
    opacity: 0.9;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.6), rgba(26, 26, 26, 0.8));
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(212, 175, 55, 0.1);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-primary), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    opacity: 0.9;
}

/* 团队介绍样式 */
.team-section {
    margin-bottom: var(--spacing-xl);
}

.team-section h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    font-family: var(--font-heading);
    font-size: 2.8rem;
    text-align: center;
    background: linear-gradient(135deg, var(--gold-primary), #ffd700, var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
    padding-bottom: 1.5rem;
}

.team-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(26, 26, 26, 0.9));
    backdrop-filter: blur(15px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 2px solid rgba(212, 175, 55, 0.15);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    will-change: transform;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.team-member:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--gold-primary);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.4), 0 0 0 1px var(--gold-primary);
}

.team-member:hover .member-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.6);
}

.team-member:hover::before {
    opacity: 1;
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
    transition: all 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.member-avatar::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    opacity: 0.3;
    filter: blur(10px);
    z-index: -1;
}


.avatar-placeholder {
    color: var(--dark-primary);
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.team-member h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.member-role {
    color: var(--gold-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: inline-block;
    font-weight: 700;
    position: relative;
    z-index: 2;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.team-member p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* 发展历程样式 */
.timeline-section {
    margin-bottom: var(--spacing-xl);
}

.timeline-section h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    font-family: var(--font-heading);
    font-size: 2.8rem;
    text-align: center;
    background: linear-gradient(135deg, var(--gold-primary), #ffd700, var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
    /* 为左侧中轴线预留空间，避免内容重叠；转为变量以便计算圆点位置 */
    --timeline-content-offset: 60px;
    padding-left: var(--timeline-content-offset);
}

.timeline::before {
    content: '';
    position: absolute;
    left: var(--timeline-axis-x);
    top: 0;
    bottom: 0;
    width: var(--timeline-axis-width);
    background: linear-gradient(to bottom, 
        var(--gold-primary) 0%, 
        var(--gold-secondary) 50%, 
        rgba(212, 175, 55, 0.3) 100%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.timeline-item::before {
    content: none;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), 0 0 20px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.1), 0 0 30px rgba(212, 175, 55, 0.7);
    }
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
    animation-delay: 0.2s;
}

.timeline-item:nth-child(even) {
    flex-direction: row;
    animation-delay: 0.4s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.8s;
}

.timeline-item:nth-child(5) {
    animation-delay: 1s;
}

.timeline-year {
    flex: 0 0 100px;
    text-align: center;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--dark-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 28px;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1rem;
    z-index: 11;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    transition: all 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.25);
    position: relative;
}

.timeline-year::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    opacity: 0.3;
    filter: blur(8px);
    z-index: -1;
}

.timeline-item:hover .timeline-year {
    transform: scale(1.15) rotate(-3deg);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.7);
}

.timeline-content {
    flex: 1;
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    margin: 0 1rem 0 var(--timeline-content-gap); /* 使用变量控制与中轴的水平间距 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(
        var(--timeline-content-offset)
        + var(--timeline-content-gap)
        - (var(--timeline-axis-x) + var(--timeline-axis-width) / 2)
    );
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
    z-index: -1;
    left: calc(-1 * (
        var(--timeline-content-offset)
        + var(--timeline-content-gap)
        - (var(--timeline-axis-x) + var(--timeline-axis-width) / 2)
    ));
    transform: translateY(-50%);
}

/* 统一连接线设置，移除旧的固定偏移值 */

/* 使用实体元素作为时间轴圆点，与中轴线对齐 */
.timeline-marker {
    position: absolute;
    /* 圆点相对于 .timeline-item 计算，需要减去时间轴内容左侧偏移 */
    left: calc(
        var(--timeline-axis-x)
        - var(--timeline-content-offset)
        + var(--timeline-axis-width) / 2
        - var(--timeline-dot-size) / 2
    );
    top: 50%;
    transform: translateY(-50%);
    width: var(--timeline-dot-size);
    height: var(--timeline-dot-size);
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), 0 0 20px rgba(212, 175, 55, 0.5);
    z-index: 10;
    animation: pulse-dot 2s ease-in-out infinite;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3), 0 0 0 1px var(--gold-primary);
}

.timeline-content h4 {
    color: var(--gold-primary);
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 减少动画以提高性能 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* 联系方式样式 */
.contact-section {
    margin-bottom: var(--spacing-xl);
}

.contact-section h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--gold-primary), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.2);
}

.contact-info h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid var(--gold-primary);
    padding-bottom: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    padding: var(--spacing-md);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(10px);
}

.contact-item i {
    margin-right: var(--spacing-md);
    color: var(--gold-primary);
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
}

.contact-item .contact-text {
    flex: 1;
}

.contact-item .contact-text strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.contact-form {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.2);
}

.contact-form h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid var(--gold-primary);
    padding-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--dark-primary);
    border: none;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.6);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.info {
    background: #2196F3;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-company {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        align-items: flex-start;
    }
    
    .timeline-year {
        flex: 0 0 60px;
        margin-right: var(--spacing-md);
    }
    
    .timeline-content {
        margin: 0;
    }
}

/* 预览区域样式 */
.preview-section {
    background: var(--dark-primary);
}

.game-scenes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.scene-card {
    background: rgba(42, 42, 42, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.scene-image {
    height: 200px;
    background: var(--steel-blue);
    position: relative;
}

.scene-1 { background: linear-gradient(45deg, #2c3e50, #7f8c8d); }
.scene-2 { background: linear-gradient(45deg, #34495e, #95a5a6); }
.scene-3 { background: linear-gradient(45deg, #2c3e50, #bdc3c7); }

.scene-info {
    padding: var(--spacing-md);
}

.scene-info h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.scene-info p {
    color: var(--text-secondary);
}

.narration-box {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--gold-primary);
    padding: var(--spacing-md);
    font-style: italic;
    color: var(--text-secondary);
}

/* 注册区域样式 */
.cta-section {
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--blue-gray) 100%);
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.signup-form {
    max-width: 500px;
    margin: 0 auto var(--spacing-lg);
}

.form-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.form-group input {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    border: 2px solid var(--gold-primary);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.community-links {
    margin-top: var(--spacing-lg);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
}

.social-link {
    color: var(--gold-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gold-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold-primary);
    color: var(--dark-primary);
}

/* 页脚样式 */
.footer {
    background: var(--dark-secondary);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-logo .case-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .typewriter-text {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .about-company {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-year {
        flex: 0 0 100px;
        margin-right: var(--spacing-lg);
    }
    
    .timeline-content {
        margin-left: 0;
        margin-right: 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .typewriter-text {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .filter-group {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .game-card {
        max-width: 100%;
    }
    
    .about-content h3 {
        font-size: 2rem;
    }
    
    .company-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        max-width: 100%;
    }
    
    .timeline-section h3 {
        font-size: 2rem;
    }
    
    .timeline {
        --timeline-axis-x: 20px;            /* 移动端中轴线偏移 */
        --timeline-content-offset: 44px;     /* 移动端为内容留出的左侧空间 */
        --timeline-content-gap: 16px;        /* 移动端内容与中轴间距 */
    }
    
    .timeline-year {
        flex: 0 0 80px;
        font-size: 1rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .timeline-content {
        padding: var(--spacing-lg);
    }
    
    .contact-section h3 {
        font-size: 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-section {
        padding: var(--spacing-xl) var(--spacing-sm);
    }
    
    .typewriter-text {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .filter-group {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .search-input,
    .filter-select {
        font-size: 0.9rem;
    }
    
    .about-content h3 {
        font-size: 1.8rem;
    }
    
    .timeline-section h3 {
        font-size: 1.8rem;
    }
    .timeline {
        --timeline-axis-x: 20px;            /* 超小屏保持与中轴线一致 */
        --timeline-content-offset: 40px;     /* 超小屏适度收紧内容左侧空间 */
        --timeline-content-gap: 14px;        /* 超小屏内容与中轴间距 */
    }
    
    .timeline-year {
        flex: 0 0 70px;
        font-size: 0.9rem;
    }
    
    .timeline-content h4 {
        font-size: 1.2rem;
    }
    
    .contact-section h3 {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }
    
    .btn-submit {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .typewriter-text {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板竖屏优化 */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .typewriter-text {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 按钮禁用态样式 */
.btn-play[disabled],
.btn-primary[disabled],
.btn-secondary[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(40%);
}

.btn-play[disabled]:hover,
.btn-primary[disabled]:hover,
.btn-secondary[disabled]:hover {
    transform: none;
    box-shadow: none;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-secondary);
}