/**
 * 思白社 - 主样式文件
 * 黑金奢华主题，现代化UI，电影级动画效果
 */

/* ========== CSS 变量系统 ========== */
:root {
    --gold: #d4af37;
    --gold-light: #f0d878;
    --gold-dark: #a68a2e;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --black: #0a0a0a;
    --black-light: #121212;
    --black-lighter: #1e1e1e;
    --black-card: rgba(30, 30, 30, 0.6);
    --gray: #888;
    --gray-light: #b0b0b0;
    --gray-dark: #444;
    --white: #f5f5f5;
    --danger: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.2);
    --shadow-gold-lg: 0 16px 48px rgba(212, 175, 55, 0.25);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(212, 175, 55, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gold-dark), var(--gold));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--gold), var(--gold-light));
}

/* ========== 粒子背景 ========== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 12s infinite ease-in-out;
    box-shadow: 0 0 6px var(--gold-glow);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(60px) scale(1);
        opacity: 0;
    }
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.navbar-logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShine 4s linear infinite;
}

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

.navbar-menu {
    display: flex;
    gap: 36px;
    align-items: center;
}

.navbar-menu a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.navbar-menu a:hover {
    color: var(--gold);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: all var(--transition-normal);
    border-radius: 1px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-btn {
    padding: 9px 22px;
    border: 1.5px solid var(--gold);
    border-radius: 50px;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

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

.user-btn:hover {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 500;
}

.legacy-user-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.unified-user-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ========== 横幅公告 ========== */
.banner-announcement {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(26,26,26,0.95), rgba(42,42,42,0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1.5px solid var(--gold);
    color: var(--white);
    z-index: 999;
    font-weight: 500;
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    height: 48px;
    overflow: hidden;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.banner-inner {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.banner-marquee {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.banner-marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    animation: marquee 20s linear infinite;
}

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

.banner-announcement:hover .banner-marquee-content {
    animation-play-state: paused;
}

.banner-image {
    height: 34px;
    width: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.banner-text {
    color: var(--gold-light);
    font-size: 14px;
}

.banner-btn {
    padding: 6px 18px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--black);
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.banner-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
}

.banner-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 22px;
    cursor: pointer;
    padding: 0 18px;
    line-height: 48px;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.banner-close:hover {
    color: var(--gold);
}

/* ========== 首屏 Hero ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 72px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: heroGlow 6s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-title {
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: 4px;
    line-height: 1.15;
    height: 1.15em;
    overflow: hidden;
}

.title-rotate-wrap {
    position: relative;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-item {
    display: block;
    height: 1.15em;
    line-height: 1.15;
    white-space: nowrap;
    opacity: 0.6;
    transition: opacity 0.6s ease;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 30%, var(--gold) 60%, var(--gold-light) 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

.title-item.active {
    opacity: 1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 28px);
    color: var(--gray-light);
    margin-bottom: 16px;
    letter-spacing: 8px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-slogan {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--gold);
    font-style: italic;
    margin-bottom: 50px;
    font-weight: 400;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.7s both;
}

.hero-btn {
    padding: 16px 36px;
    font-size: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-bounce);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.hero-btn {
    justify-content: center;
}

/* 开始游戏 - 三角形播放图标 */
.btn-game::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    background: none;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid currentColor;
    flex-shrink: 0;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--black);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.4);
}

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

.hero-btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.25);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-16px); }
    60% { transform: translateX(-50%) translateY(-8px); }
}

.scroll-indicator span {
    display: block;
    width: 28px;
    height: 48px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 25px;
    position: relative;
    transition: border-color var(--transition-normal);
}

.scroll-indicator:hover span {
    border-color: var(--gold);
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 32px; }
}

/* ========== 通用区块 ========== */
.section {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
}

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

.section-title::before {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

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

.game-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-bounce);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.game-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-gold-lg);
    border-color: rgba(212, 175, 55, 0.25);
}

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

.game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.game-card-image-container {
    overflow: hidden;
    position: relative;
}

.game-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 2;
}

.badge-demo {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
}

.badge-full {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

.game-card-content {
    padding: 24px;
}

.game-card-title {
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.game-card-buttons {
    display: flex;
    gap: 12px;
}

.game-btn {
    flex: 1;
    padding: 11px 16px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
}

.game-btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--black);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

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

.game-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-color: rgba(212, 175, 55, 0.3);
}

.game-btn-disabled {
    background: rgba(255, 255, 255, 0.03);
    color: #555;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== 项目进度 ========== */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--gold-light), var(--gold));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: var(--shadow-gold);
    transform: translateX(6px);
}

.project-card:hover::before {
    opacity: 1;
}

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

.project-title {
    font-size: clamp(22px, 3vw, 30px);
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
}

.project-overall-progress {
    display: flex;
    align-items: center;
    gap: 18px;
}

.progress-number {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -1px;
}

.progress-bar-large {
    width: 220px;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-bar-large .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 5px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar-large .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: progressShine 2.5s ease-in-out infinite;
}

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

.project-stages {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.stage-item {
    text-align: center;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.stage-item:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.15);
    transform: translateY(-3px);
}

.stage-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

.stage-name {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 6px;
    font-weight: 500;
}

.stage-progress {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
}

/* ========== 关于我们 ========== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.1);
    pointer-events: none;
}

.about-media img,
.about-media video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.about-media:hover img,
.about-media:hover video {
    transform: scale(1.03);
}

.about-content {
    color: var(--gray-light);
    line-height: 2;
    font-size: 16px;
}

.about-content p {
    margin-bottom: 18px;
}

/* ========== 公告区 ========== */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.announcement-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 28px 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.announcement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.03), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.announcement-item:hover {
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateX(8px);
    box-shadow: var(--shadow-gold);
}

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

.announcement-title {
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.announcement-meta {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
    font-weight: 500;
}

.announcement-content {
    color: var(--gray-light);
    line-height: 1.9;
    font-size: 15px;
}

/* ========== 页脚 ========== */
.footer {
    background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 80px 40px 40px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border-radius: 1px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-link {
    padding: 8px 18px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 50px;
    color: var(--gray-light);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-block;
    font-weight: 500;
}

.footer-link:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--gray);
    font-size: 13px;
    line-height: 2.2;
}

.footer-bottom a {
    color: var(--gold);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-bottom a:hover {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.delete-account-link {
    color: var(--gray);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 13px;
}

.delete-account-link:hover {
    color: var(--danger);
}

/* ========== 模态框 ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.modal.show {
    opacity: 1;
}

/* 无动画模态框（公告等） */
.modal.no-modal-anim {
    opacity: 1 !important;
}

.modal.no-modal-anim,
.modal.no-modal-anim .modal-content {
    transition: none !important;
    animation: none !important;
}

.modal.no-modal-anim .modal-content {
    transform: none !important;
    opacity: 1 !important;
}

.modal.closing {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: linear-gradient(145deg, rgba(24,24,24,0.95) 0%, rgba(16,16,16,0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-xl);
    margin: 5% auto;
    padding: 36px;
    width: 90%;
    max-width: 400px;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.05);
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal.closing .modal-content {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.25s ease;
}

/* 模态框内元素交错弹入 */
.modal-anim .modal-title,
.modal-anim .form-group,
.modal-anim .form-submit,
.modal-anim .modal-tabs,
.modal-anim .legacy-login-divider,
.modal-anim p {
    opacity: 0;
    transform: translateY(12px);
}

.modal.show .modal-anim .modal-tabs {
    animation: modalItemIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s forwards;
}

.modal.show .modal-anim .modal-title {
    animation: modalItemIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.16s forwards;
}

.modal.show .modal-anim .form-group:nth-child(1) {
    animation: modalItemIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.24s forwards;
}

.modal.show .modal-anim .form-group:nth-child(2) {
    animation: modalItemIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.32s forwards;
}

.modal.show .modal-anim .form-group:nth-child(3) {
    animation: modalItemIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.40s forwards;
}

.modal.show .modal-anim .form-group:nth-child(4) {
    animation: modalItemIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.48s forwards;
}

.modal.show .modal-anim .form-group:nth-child(5) {
    animation: modalItemIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.56s forwards;
}

.modal.show .modal-anim .form-submit {
    animation: modalItemIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.56s forwards;
}

.modal.show .modal-anim .legacy-login-divider {
    animation: modalItemIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.64s forwards;
}

.modal.show .modal-anim p {
    animation: modalItemIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.64s forwards;
}

@keyframes modalItemIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 标签内容切换动画 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active.from-left {
    animation: tabInLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.leaving {
    display: block;
    animation: tabOutLeft 0.22s ease forwards;
    pointer-events: none;
}

.tab-content.leaving.to-right {
    animation: tabOutRight 0.22s ease forwards;
}

@keyframes tabInRight {
    from { opacity: 0; transform: translateX(30px); filter: blur(2px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes tabInLeft {
    from { opacity: 0; transform: translateX(-30px); filter: blur(2px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes tabOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px); }
}

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

/* 密码显隐切换 */
.pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s;
    font-size: 16px;
    user-select: none;
    padding: 4px;
    z-index: 2;
}

.pw-toggle:hover {
    opacity: 0.7 !important;
}

.form-group input:focus ~ .pw-toggle,
.form-group input:not(:placeholder-shown) ~ .pw-toggle {
    opacity: 0.4;
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.modal-title {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 24px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--gray-light);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 14px;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
}

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

.form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--black);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 8px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.form-submit::after {
    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;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
}

.form-submit:hover::after {
    left: 100%;
}

.form-submit-secondary {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
}

.form-submit-secondary:hover {
    background: var(--gold);
    color: var(--black);
}

.modal-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    color: var(--gray);
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-tab:hover {
    color: var(--gold-light);
}

.modal-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.legacy-login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--gray);
    font-size: 13px;
}

.legacy-login-divider::before,
.legacy-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.legacy-login-divider span {
    padding: 0 16px;
}

/* 实名认证弹窗 */
.verify-popup {
    text-align: center;
    padding: 36px;
}

.verify-loading {
    font-size: 17px;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 500;
}

.verify-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(212, 175, 55, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 18px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.verify-success {
    font-size: 22px;
    color: var(--success);
    font-weight: 700;
}

.verify-denied {
    font-size: 17px;
    color: var(--danger);
    font-weight: 500;
    line-height: 1.6;
}

/* 弹窗公告 */
.popup-announcement {
    max-width: 600px;
}

.popup-announcement h2 {
    color: var(--gold);
    margin-bottom: 24px;
    font-size: 24px;
    text-align: center;
}

.confirm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--black);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
    transition: all var(--transition-fast);
    letter-spacing: 1px;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
}

/* 图片预览模态框 */
.image-modal .modal-content {
    max-width: 80%;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.image-modal img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

/* ========== 自定义弹窗系统 ========== */

/* Toast 提示 */
.custom-toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, rgba(24,24,24,0.95) 0%, rgba(30,30,30,0.95) 100%);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 16px 36px;
    color: var(--gold);
    font-size: 15px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 90%;
    text-align: center;
    letter-spacing: 0.5px;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.custom-toast.error {
    border-color: var(--danger);
    color: #ff6b7a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(220, 53, 69, 0.1);
}

.custom-toast.success {
    border-color: var(--success);
    color: #5dd879;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(40, 167, 69, 0.1);
}

/* Confirm / Prompt 弹窗 */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 20px;
}

.custom-dialog-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.custom-dialog {
    background: linear-gradient(145deg, rgba(24,24,24,0.98) 0%, rgba(16,16,16,0.99) 100%);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.custom-dialog-overlay.show .custom-dialog {
    transform: scale(1) translateY(0);
}

.custom-dialog-title {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.custom-dialog-message {
    color: var(--gray-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.custom-dialog-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 14px;
    margin-bottom: 20px;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.custom-dialog-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.custom-dialog-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.custom-dialog-btn {
    padding: 11px 28px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
}

.custom-dialog-btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--black);
}

.custom-dialog-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.custom-dialog-btn-secondary {
    background: transparent;
    color: var(--gray-light);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.custom-dialog-btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.custom-dialog-btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
}

.custom-dialog-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.35);
}

/* ========== 滚动动画类 ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .project-stages {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
        height: 64px;
    }
    
    .navbar-logo {
        font-size: 20px;
    }
    
    .navbar-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar-menu.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 64px;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 4px;
    }
    
    .hero-slogan {
        font-size: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        padding: 0 20px;
        gap: 14px;
    }
    
    .hero-btn {
        padding: 14px 28px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .section {
        padding: 70px 20px;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 50px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .game-card-image {
        height: 220px;
    }
    
    .project-card {
        padding: 28px 24px;
    }
    
    .project-title {
        font-size: 20px;
    }
    
    .progress-number {
        font-size: 26px;
    }
    
    .progress-bar-large {
        width: 140px;
        height: 8px;
    }
    
    .project-stages {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stage-item {
        padding: 14px 8px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .announcement-item {
        padding: 22px 24px;
    }
    
    .footer {
        padding: 50px 20px 30px;
    }
    
    .modal-content {
        width: 92%;
        padding: 28px 22px;
        margin: 10% auto;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px;
    }
    
    .user-info span {
        font-size: 12px;
        width: 100%;
        text-align: right;
    }
    
    .user-btn {
        padding: 7px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .project-stages {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-bar-large {
        width: 100px;
    }
}

/* ========== 特殊状态 ========== */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
    font-size: 16px;
}

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

/* ========== 鼠标跟随粒子 ========== */
.mouse-follower {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-light) 0%, var(--gold) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    filter: blur(0.5px);
}

.mouse-follower::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    animation: followerPulse 2s ease-in-out infinite;
}

@keyframes followerPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 0.2; }
}

/* 移动端隐藏鼠标跟随粒子 */
@media (hover: none) and (pointer: coarse) {
    .mouse-follower {
        display: none !important;
    }
}
