/* ========== 基础重置与变量 ========== */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --accent: #00cec9;
    --accent-dark: #00b5b0;
    --dark: #0a0a1a;
    --dark-light: #1a1a2e;
    --dark-card: #16162a;
    --text: #e2e2f0;
    --text-muted: #8888a8;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-2: linear-gradient(135deg, #00cec9, #55efc4);
    --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0d0d2b 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.3);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

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

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

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ========== Hero Banner ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 206, 201, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, -2%) rotate(3deg); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(162, 155, 254, 0.4);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: 2px;
    animation: titleIn 1s ease-out;
}

.title-sub {
    display: block;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 300;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 8px;
    animation: titleIn 1s ease-out 0.2s both;
}

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

.hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: titleIn 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: titleIn 1s ease-out 0.6s both;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 1s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.6);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--white);
    background: transparent;
}

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

.btn-sm {
    padding: 10px 24px;
    font-size: 13px;
}

.btn-game {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
}

.btn-ghost {
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

/* ========== 通用区块 ========== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

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

.section-title.left {
    text-align: left;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ========== 游戏产品 ========== */
.games {
    padding: 120px 0;
    background: var(--dark);
    position: relative;
}

.games::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.3), transparent);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.game-card {
    background: var(--dark-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(40px);
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.game-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: var(--shadow-card), 0 0 40px rgba(108, 92, 231, 0.1);
}

.game-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-cover-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.cute-bg {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e, #e17055);
}

.fantasy-bg {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe, #74b9ff);
}

.xianxia-bg {
    background: linear-gradient(135deg, #e17055, #d63031, #fdcb6e);
}

.war-bg {
    background: linear-gradient(135deg, #00b894, #00cec9, #0984e3);
}

.game-icon {
    font-size: 64px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.game-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(108, 92, 231, 0.9);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.game-badge.new {
    background: rgba(0, 206, 201, 0.9);
}

.game-info {
    padding: 28px;
}

.game-studio {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.game-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.game-genre {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.game-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

/* ========== 数据统计 ========== */
.stats {
    padding: 80px 0;
    background: var(--dark-light);
    position: relative;
}

.stats::before,
.stats::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.3), transparent);
}

.stats::before { top: 0; }
.stats::after { bottom: 0; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-suffix {
    font-size: 20px;
    color: var(--primary-light);
    font-weight: 600;
    display: inline;
}

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

/* ========== 工作室 ========== */
.studios {
    padding: 120px 0;
    background: var(--dark);
    position: relative;
}

.studios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.3), transparent);
}

.studios-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.studio-card {
    display: flex;
    align-items: stretch;
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.studio-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.1);
}

.studio-card:hover .studio-enter {
    color: var(--white);
}

.studio-card:hover .studio-visual-icon {
    transform: scale(1.1);
}

.studio-visual {
    flex-shrink: 0;
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.baozi-bg {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe, #fd79a8);
}

.mingyue-bg {
    background: linear-gradient(135deg, #00b894, #00cec9, #0984e3);
}

.studio-visual-icon {
    font-size: 72px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.4s ease;
}

.studio-body {
    flex: 1;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.studio-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.studio-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.studio-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 16px;
}

.studio-games {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.studio-game-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}

.studio-enter {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    letter-spacing: 1px;
}

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

/* ========== 关于我们 ========== */
.about {
    padding: 120px 0;
    background: var(--dark);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-card {
    background: var(--dark-card);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.about-card:nth-child(2) { transform: translateY(20px); }
.about-card:nth-child(3) { transform: translateY(-20px); }

.about-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.1);
}

.about-card:nth-child(2):hover { transform: translateY(16px); }
.about-card:nth-child(3):hover { transform: translateY(-24px); }

.about-emoji {
    font-size: 40px;
    display: block;
    margin-bottom: 16px;
}

.about-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.about-text .section-tag {
    display: block;
    text-align: left;
}

.about-text .section-title {
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.9;
}

.about-text .btn {
    margin-top: 12px;
}

/* ========== 联系我们 ========== */
.contact {
    padding: 120px 0;
    background: var(--dark-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 48px 32px;
    background: var(--dark-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========== 底部 ========== */
.footer {
    padding: 60px 0 30px;
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-brand p {
    width: 100%;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* ========== 滚动动画 ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 响应式 ========== */
@media (max-width: 968px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: 2;
    }

    .about-text {
        order: 1;
    }

    .about-text .section-tag,
    .about-text .section-title {
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 24px;
        color: var(--white);
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

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

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    .nav-container {
        padding: 0 20px;
    }

    .section-container {
        padding: 0 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .studio-card {
        flex-direction: column;
    }

    .studio-visual {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .about-visual {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .about-card {
        padding: 24px 16px;
    }

    .about-card:nth-child(2),
    .about-card:nth-child(3) {
        transform: none;
    }

    .about-card:nth-child(2):hover,
    .about-card:nth-child(3):hover {
        transform: translateY(-4px);
    }

    .game-cover {
        height: 160px;
    }
}

/* ========== 玄学游戏卡片 ========== */
.game-cover-bg.mystic-bg {
    background: linear-gradient(135deg, #1a1520 0%, #2a1f2e 40%, #1e1a28 100%);
}
.game-cover-bg.mystic-bg::after {
    content: '☰ ☷ ☳ ☴';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 14px;
    letter-spacing: 6px;
    color: rgba(180,160,100,0.12);
}
.game-card[data-style="mystic"] .game-icon {
    font-size: 48px;
    filter: drop-shadow(0 0 12px rgba(180,160,100,0.3));
}
.game-badge.mystic {
    background: linear-gradient(135deg, #b4a064, #d4c8a0);
    color: #1a1a2e;
}
.game-card[data-style="mystic"] .game-studio {
    color: #b4a064;
}
.game-card[data-style="mystic"]:hover {
    border-color: rgba(180,160,100,0.3);
    box-shadow: 0 8px 32px rgba(180,160,100,0.1);
}

/* ========== 用户状态栏 ========== */
.user-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}
.user-guest {
    display: flex;
    gap: 8px;
}
.btn-login {
    padding: 6px 18px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-login:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}
.btn-register {
    padding: 6px 18px;
    background: var(--gradient-1);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-register:hover {
    box-shadow: 0 4px 15px rgba(108,92,231,0.4);
}
.user-logged {
    position: relative;
}
.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 12px 4px 4px;
    border-radius: 24px;
    transition: var(--transition);
}
.user-avatar-btn:hover {
    background: rgba(255,255,255,0.05);
}
.user-avatar-text {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.user-name-text {
    font-size: 13px;
    color: var(--text);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: var(--transition);
}
.user-avatar-btn.open .user-arrow {
    transform: rotate(180deg);
}
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 200;
    overflow: hidden;
}
.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dropdown-level {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(108,92,231,0.15);
    padding: 2px 10px;
    border-radius: 10px;
}
.dropdown-points {
    font-size: 12px;
    color: #f1c40f;
}
.dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition);
}
.dropdown-item:hover {
    background: rgba(108,92,231,0.08);
    color: var(--text);
}
.dropdown-item.logout {
    color: #e74c3c;
}
.dropdown-item.logout:hover {
    background: rgba(231,76,60,0.08);
}
.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
}

/* ========== 登录/注册弹窗 ========== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}
.auth-overlay.show {
    display: flex;
}
.auth-modal {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    width: 420px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 36px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}
.auth-close:hover {
    color: #e74c3c;
}
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid rgba(255,255,255,0.05);
}
.auth-tab {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: -2px;
}
.auth-tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
}
.auth-tab:hover {
    color: var(--text);
}
.auth-field {
    margin-bottom: 18px;
}
.auth-field label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.auth-field input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}
.auth-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}
.auth-field input::placeholder {
    color: #555;
}
.auth-msg {
    min-height: 20px;
    font-size: 13px;
    margin-bottom: 8px;
    text-align: center;
}
.auth-msg.error {
    color: #e74c3c;
}
.auth-msg.success {
    color: #27ae60;
}
.auth-submit {
    width: 100%;
    padding: 12px;
    background: var(--gradient-1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 4px;
}
.auth-submit:hover {
    box-shadow: 0 4px 20px rgba(108,92,231,0.4);
}
.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.auth-switch a {
    color: var(--primary-light);
    font-weight: 500;
}
.auth-switch a:hover {
    text-decoration: underline;
}

/* 移动端用户栏适配 */
@media (max-width: 768px) {
    .user-bar {
        margin-left: 0;
        margin-right: 8px;
    }
    .user-name-text {
        display: none;
    }
    .user-arrow {
        display: none;
    }
    .user-dropdown {
        right: -20px;
    }
    .auth-modal {
        padding: 32px 24px;
    }
}
