/* ============================================
   SX-SCP 官网 — 设计系统 v6 ULTIMATE
   深度增强：glitch / 扫光 / 脉冲 / 视差 / 氛围
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
    --bg-primary: #0a0a12;
    --bg-secondary: #0d0d18;
    --bg-tertiary: #10101c;
    --bg-card: rgba(14, 14, 26, 0.65);
    --bg-card-hover: rgba(20, 20, 36, 0.8);
    --accent: #e03030;
    --accent-light: #ff4444;
    --accent-dark: #aa2020;
    --accent-glow: rgba(224, 48, 48, 0.15);
    --accent-subtle: rgba(224, 48, 48, 0.08);
    --accent-warm: #f0a050;
    --accent-warm-glow: rgba(240, 160, 80, 0.12);
    --text-primary: #e8e5e0;
    --text-secondary: #a0a0b8;
    --text-dim: #585870;
    --border: rgba(255, 255, 255, 0.05);
    /* 质感统一：更柔和的边框 */
    --border-hover: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(224, 48, 48, 0.1);

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', 'Source Han Sans SC', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: #08080e;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

/* 全局滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    background-attachment: fixed;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* 全局可见网格纹理 — 实验室/设施质感 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* 全局噪点纹理 — 增强质感 */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* 扫描线 — 静态纹理 */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.012) 3px,
            rgba(0, 0, 0, 0.012) 6px);
}

/* ---------- 全局浮动环境光斑 ---------- */
.ambient-orbs {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    will-change: transform;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(60, 80, 120, 0.06) 0%, rgba(40, 55, 85, 0.025) 40%, transparent 70%);
    top: 10%;
    left: -15%;
    animation: orbFloat1 30s ease-in-out infinite;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(50, 70, 110, 0.05) 0%, rgba(35, 50, 80, 0.02) 40%, transparent 70%);
    top: 50%;
    right: -12%;
    animation: orbFloat2 35s ease-in-out infinite;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(55, 75, 115, 0.045) 0%, rgba(40, 55, 85, 0.018) 40%, transparent 70%);
    bottom: 5%;
    left: 25%;
    animation: orbFloat3 40s ease-in-out infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(15vw, 10vh);
    }

    50% {
        transform: translate(5vw, 25vh);
    }

    75% {
        transform: translate(-5vw, 15vh);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-12vw, -8vh);
    }

    50% {
        transform: translate(-8vw, 12vh);
    }

    75% {
        transform: translate(5vw, -5vh);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(10vw, -12vh);
    }

    50% {
        transform: translate(-5vw, -8vh);
    }

    75% {
        transform: translate(8vw, 5vh);
    }
}


a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-light);
}

.inline-link {
    border-bottom: 1px solid rgba(224, 48, 48, 0.3);
    transition: border-color 0.3s;
}

.inline-link:hover {
    border-color: var(--accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 音乐开关按钮 ---------- */
.music-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.music-toggle:hover {
    border-color: var(--accent);
    background: rgba(224, 48, 48, 0.08);
    box-shadow: 0 0 12px rgba(224, 48, 48, 0.15);
}

.music-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.music-toggle:hover .music-icon {
    color: var(--accent-light);
}

/* 默认：显示静音图标 */
.music-on {
    display: none;
}

.music-off {
    display: block;
}

/* 播放中：显示音符图标 */
.music-toggle.playing .music-on {
    display: block;
}

.music-toggle.playing .music-off {
    display: none;
}

/* 播放中的脉冲环 */
.music-toggle.playing {
    border-color: var(--accent);
    background: rgba(224, 48, 48, 0.06);
}

.music-toggle.playing::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.section {
    position: relative;
    padding: 120px 0;
    z-index: 1;
    overflow: hidden;
    contain: layout style paint;
    content-visibility: auto;
    /* 极致性能：跳过屏外渲染 */
    contain-intrinsic-size: 800px;
    /* 预估高度 */
}

/* -------- section 统一背景色系 -------- */

/* section-bg-pattern：可见的细微网格（默认白色调） */
.section-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
}

.text-accent {
    color: rgba(230, 180, 160, 0.85);
}

kbd {
    display: inline-block;
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--accent);
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
}

/* ---------- Section 分隔装饰线 ---------- */
.section-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 5%,
            rgba(255, 255, 255, 0.04) 20%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.04) 80%,
            transparent 95%);
    overflow: visible;
    margin: 0;
}

/* 上下过渡融合（极微弱，仅做衔接） */
.section-divider::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 160px;
    background: radial-gradient(ellipse 80% 100% at center, rgba(255, 255, 255, 0.015), transparent 70%);
    pointer-events: none;
}

/* 中心光点（静态） */
.section-divider::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.06);
}

/* dividerSweep 保留用于可能的未来扫光效果 */

@keyframes dividerSweep {
    0% {
        left: -10%;
    }

    100% {
        left: 110%;
    }
}

/* ---------- 背景装饰层 ---------- */
.section-bg-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-decor-img {
    position: absolute;
    top: -8%;
    height: 116%;
    width: auto;
    opacity: 0.14;
    filter: grayscale(0.65) brightness(0.5) contrast(1.2);
    object-fit: contain;
    pointer-events: none;
}

.bg-decor-right {
    right: -30px;
    mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 0.55) 10%, rgba(0, 0, 0, 0.4) 40%, transparent 80%);
    -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 0.55) 10%, rgba(0, 0, 0, 0.4) 40%, transparent 80%);
}

.bg-decor-left {
    left: -30px;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 10%, rgba(0, 0, 0, 0.4) 40%, transparent 80%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 10%, rgba(0, 0, 0, 0.4) 40%, transparent 80%);
}

/* ---------- Section 标签 ---------- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

.tag-accent {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.08);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 40%, rgba(220, 220, 230, 0.9) 70%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    font-size: 0.95rem;
    /* 排版升级 */
    line-height: 1.9;
    letter-spacing: 0.5px;
}

/* ============================================
   导航栏
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 18px 0;
    transition: all 0.4s var(--ease-out-expo);
    background: linear-gradient(180deg, rgba(8, 8, 15, 0.7) 0%, transparent 100%);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(8, 8, 15, 0.95);
    backdrop-filter: blur(28px) saturate(130%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.nav-auth {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(224, 48, 48, 0.2));
    transition: filter 0.3s;
}

.nav-logo:hover .nav-logo-img {
    filter: drop-shadow(0 0 8px rgba(224, 48, 48, 0.4));
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 导航当前页面高亮 */
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
}

.nav-cta {
    padding: 8px 20px !important;
    background: rgba(180, 40, 40, 0.8) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 2px;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: rgba(190, 45, 45, 0.9) !important;
    box-shadow: 0 0 16px rgba(180, 40, 40, 0.12);
}

.nav-cta::after {
    display: none !important;
}

/* 赞助导航链接 — ghost button style，显眼但不超CTA */
.nav-sponsor {
    color: #f0c050 !important;
    padding: 5px 14px !important;
    border: 1px solid rgba(240, 192, 80, 0.25) !important;
    border-radius: 4px;
    background: rgba(240, 192, 80, 0.04) !important;
    transition: all 0.3s !important;
}

.nav-sponsor:hover {
    color: #ffd666 !important;
    border-color: rgba(240, 192, 80, 0.4) !important;
    background: rgba(240, 192, 80, 0.08) !important;
    box-shadow: 0 0 16px rgba(240, 192, 80, 0.08);
}

.nav-sponsor::after {
    display: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* 移动端导航遮罩层 */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HERO 区
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 粒子画布 — 全屏覆盖hero */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: auto;
}

/* 背景轮播 */
.hero-bg-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    will-change: opacity;
}

.hero-bg-slide.active {
    opacity: 0.35;
}

/* Hero 渐变叠加 */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 18, 0.5) 0%,
            rgba(10, 10, 18, 0.08) 30%,
            rgba(10, 10, 18, 0.12) 55%,
            rgba(10, 10, 18, 0.6) 78%,
            rgba(10, 10, 18, 0.92) 92%,
            #0a0a12 100%),
        radial-gradient(ellipse at 70% 50%, transparent 20%, rgba(10, 10, 18, 0.6) 80%),
        radial-gradient(ellipse at 15% 45%, rgba(200, 40, 50, 0.025), transparent 50%),
        radial-gradient(ellipse at 5% 80%, rgba(14, 10, 18, 0.15), transparent 50%);
}

/* Hero 装饰性角标 */
.hero-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 4;
    border-color: rgba(224, 48, 48, 0.2);
    border-style: solid;
    opacity: 0;
    animation: cornerFadeIn 2s ease 1s forwards;
}

@keyframes cornerFadeIn {
    to {
        opacity: 1;
    }
}

.hero-corner-tl {
    top: 80px;
    left: 40px;
    border-width: 1px 0 0 1px;
}

.hero-corner-tr {
    top: 80px;
    right: 40px;
    border-width: 1px 1px 0 0;
}

.hero-corner-bl {
    bottom: 40px;
    left: 40px;
    border-width: 0 0 1px 1px;
}

.hero-corner-br {
    bottom: 40px;
    right: 40px;
    border-width: 0 1px 1px 0;
}

/* Hero 侧边装饰线 */
.hero-side-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100px;
    z-index: 4;
    opacity: 0;
    animation: cornerFadeIn 2s ease 1.4s forwards;
}

.hero-side-left {
    left: 40px;
    background: linear-gradient(180deg, transparent, rgba(224, 48, 48, 0.25) 30%, rgba(224, 48, 48, 0.25) 70%, transparent);
}

.hero-side-right {
    right: 40px;
    background: linear-gradient(180deg, transparent, rgba(224, 48, 48, 0.25) 30%, rgba(224, 48, 48, 0.25) 70%, transparent);
}

/* Hero 内容 */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 0 40px;
    animation: heroFadeIn 1.2s var(--ease-out-expo);
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Logo */
.hero-logo-wrapper {
    margin-bottom: 24px;
}

.hero-logo-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(224, 48, 48, 0.2)) drop-shadow(0 0 60px rgba(224, 48, 48, 0.06));
    animation: logoFloat 8s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Hero 标题 — Glitch 故障风 SCP风格 */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: 8px;
    line-height: 1;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-shadow:
        0 0 60px rgba(224, 48, 48, 0.1),
        0 0 120px rgba(200, 200, 220, 0.03);
    position: relative;
    animation: heroGlitch 50s ease-in-out infinite;
}

/* Glitch效果 — 偶尔的微妙抖动 */
@keyframes heroGlitch {

    0%,
    95%,
    100% {
        text-shadow: 0 0 60px rgba(224, 48, 48, 0.2), 0 0 120px rgba(224, 48, 48, 0.05);
        transform: none;
    }

    96% {
        text-shadow: -2px 0 rgba(224, 48, 48, 0.5), 2px 0 rgba(100, 200, 255, 0.3);
        transform: translate(1px, 0);
    }

    97% {
        text-shadow: 2px 0 rgba(224, 48, 48, 0.5), -2px 0 rgba(100, 200, 255, 0.3);
        transform: translate(-1px, 0);
    }

    98% {
        text-shadow: -1px 0 rgba(224, 48, 48, 0.5), 1px 0 rgba(100, 200, 255, 0.3);
        transform: translate(0, 1px);
    }
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.7rem, 1.3vw, 0.88rem);
    color: var(--text-secondary);
    letter-spacing: 6px;
    margin-bottom: 18px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--text-secondary), rgba(255, 255, 255, 0.7), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: clamp(0.82rem, 1.1vw, 0.95rem);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮 */
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    border: none;
    text-decoration: none;
    overflow: hidden;
}

/* 按钮扫光效果 */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: none;
    animation: none;
}

.btn:hover::before {
    animation: btnSweep 0.6s ease forwards;
}

@keyframes btnSweep {
    to {
        left: 120%;
    }
}

.btn-primary {
    background: linear-gradient(135deg, rgba(180, 40, 40, 0.85) 0%, rgba(150, 30, 30, 0.9) 50%, rgba(180, 40, 40, 0.85) 100%);
    background-size: 200% 200%;
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

@keyframes btnGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(200, 45, 45, 0.95) 0%, rgba(170, 35, 35, 0.95) 50%, rgba(200, 45, 45, 0.95) 100%);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 4px 24px rgba(180, 40, 40, 0.15), 0 0 40px rgba(180, 40, 40, 0.05);
    transform: translateY(-2px);
}

/* 按钮静态微光 */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-hover);
    position: relative;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
    background: rgba(255, 255, 255, 0.02);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.68rem;
}

/* 统计数据 */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 28px 48px;
    background: rgba(12, 12, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(120%);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0.45;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scroll-arrow {
    width: 14px;
    height: 14px;
    border-right: 1px solid var(--text-dim);
    border-bottom: 1px solid var(--text-dim);
    transform: rotate(45deg);
    animation: scrollBounce 2.5s infinite;
}

.hero-scroll-hint::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 1px solid var(--text-dim);
    border-bottom: 1px solid var(--text-dim);
    transform: rotate(45deg);
    animation: scrollBounce 2.5s 0.15s infinite;
    opacity: 0.5;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: rotate(45deg) translateY(5px);
        opacity: 0.8;
    }
}

/* ============================================
   关于 Section — 对角线网格 + 全区域覆盖
   ============================================ */
.about {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(40, 55, 80, 0.06), transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(12, 14, 22, 0.3), transparent 55%);
}

/* 对角线网格 */
.about .section-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.045;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 55%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 55%, transparent 90%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 2;
}

.about-card {
    position: relative;
}

.card-tactical-frame {
    position: relative;
    padding: 32px 28px;
    /* 增加内边距：拒绝紧凑 */
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px) saturate(140%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    height: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* 卡片扫光 */
.card-tactical-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(25deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.card-tactical-frame:hover::before {
    left: 120%;
}

.card-tactical-frame:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 12px 48px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(255, 255, 255, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transform: translateY(-4px);
}

.card-icon {
    width: 44px;
    height: 44px;
    color: rgba(200, 180, 160, 0.6);
    margin-bottom: 18px;
    opacity: 0.8;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-tactical-frame h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.card-tactical-frame p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.75;
}

/* ============================================
   特色 Section — 六边形蜂巢 + 扩大覆盖
   ============================================ */
.features {
    background:
        radial-gradient(ellipse at 75% 40%, rgba(35, 50, 75, 0.06), transparent 55%),
        radial-gradient(ellipse at 15% 70%, rgba(12, 14, 22, 0.3), transparent 55%);
}

/* 蜂巢六边形 */
.features .section-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23ffffff' stroke-width='0.6'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23ffffff' stroke-width='0.6'/%3E%3C/svg%3E");
    background-size: 56px 100px;
    mask-image: radial-gradient(ellipse at 55% 50%, black 55%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at 55% 50%, black 55%, transparent 85%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    position: relative;
    z-index: 2;
}

.feature-card {
    position: relative;
    padding: 42px 32px;
    background: linear-gradient(135deg, rgba(14, 14, 26, 0.7) 0%, rgba(12, 12, 22, 0.5) 100%);
    border: 1px solid var(--border);
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 特色卡片扫光 */
.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(25deg);
    transition: left 0.8s ease;
    pointer-events: none;
}

/* 扫描线悬浮效果 */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 4px,
            rgba(255, 255, 255, 0.012) 4px,
            rgba(255, 255, 255, 0.012) 8px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    left: 130%;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 255, 255, 0.02);
}

.feature-number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 900;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    top: 8px;
    right: 14px;
    line-height: 1;
}

.feature-content h3 {
    font-family: var(--font-display);
    font-size: 0.92rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.75;
}

.feature-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), transparent);
    transition: width 0.6s var(--ease-out-expo);
}

.feature-card:hover .feature-line {
    width: 100%;
}

/* ============================================
   公告 / 新闻 Section — 战术HUD十字线
   ============================================ */
.news {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(40, 55, 80, 0.05), transparent 55%),
        radial-gradient(ellipse at 70% 60%, rgba(12, 14, 22, 0.3), transparent 55%);
}

/* HUD十字线 */
.news .section-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image:
        linear-gradient(0deg, transparent 49.5%, rgba(255, 255, 255, 0.15) 49.5%, rgba(255, 255, 255, 0.15) 50.5%, transparent 50.5%),
        linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.06) 49.5%, rgba(255, 255, 255, 0.06) 50.5%, transparent 50.5%);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at 45% 50%, black 55%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 45% 50%, black 55%, transparent 80%);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.news-card {
    position: relative;
    background: linear-gradient(135deg, rgba(14, 14, 26, 0.7) 0%, rgba(12, 12, 22, 0.5) 100%);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 200px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.news-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

.news-card-featured {
    grid-template-columns: minmax(280px, 400px) 1fr;
    min-height: 260px;
}

.news-card-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.6s var(--ease-out-expo), filter 0.6s;
    filter: brightness(0.75) saturate(0.85);
    min-height: 200px;
}

/* 招募卡片 — 人物集中在图片右侧，对焦右侧 */
.news-card:nth-child(2) .news-card-image img {
    object-position: right center;
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
    filter: brightness(0.8) saturate(1);
}

.news-card-body {
    padding: 40px 42px;
    /* 增加内边距 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    /* 微调 gap */
}

.news-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 2px 12px rgba(224, 48, 48, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.news-badge-hot {
    background: linear-gradient(135deg, #e06820, #ff8a3d);
    box-shadow: 0 2px 12px rgba(224, 104, 32, 0.4);
}

.news-badge-notice {
    background: linear-gradient(135deg, #3366cc, #5599ee);
    box-shadow: 0 2px 12px rgba(51, 102, 204, 0.4);
}

.news-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
}

.news-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
}

.news-category {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.news-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 1px;
    transition: letter-spacing 0.3s;
    align-self: flex-start;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.news-link:hover {
    letter-spacing: 3px;
}

/* ============================================
   公告详情模态框
   ============================================ */
/* 模态框 → 已统一到下方通用模态框区 */

.modal-container {
    position: relative;
    max-width: 700px;
    width: 92%;
    max-height: 80vh;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(224, 48, 48, 0.08);
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s var(--ease-out-expo);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.modal-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.modal-body {
    padding: 24px 28px 28px;
    overflow-y: auto;
    max-height: calc(80vh - 90px);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.modal-body p {
    margin-bottom: 4px;
}

.modal-body .content-section-title {
    color: var(--accent);
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 6px;
}

.modal-body .content-bullet {
    padding-left: 16px;
}

.modal-body .content-sub-bullet {
    padding-left: 32px;
    color: var(--text-dim);
}

.modal-body .content-empty {
    height: 8px;
}

/* 自定义滚动条 */
.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(224, 48, 48, 0.2);
    border-radius: 2px;
}

/* ============================================
   加入服务器 Section — 电路方格
   ============================================ */
.join {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(35, 50, 75, 0.05), transparent 55%),
        radial-gradient(ellipse at 25% 70%, rgba(12, 14, 22, 0.3), transparent 55%);
}

/* 电路方格 */
.join .section-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 45%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 45%, transparent 80%);
}

.join-box {
    position: relative;
    border: 1px solid var(--border-accent);
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 30px rgba(224, 48, 48, 0.04);
}

.join-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(224, 48, 48, 0.03) 0%, transparent 60%),
        linear-gradient(135deg, rgba(14, 14, 26, 0.75), rgba(12, 12, 22, 0.6));
    z-index: 0;
}

.join-content {
    position: relative;
    z-index: 1;
    padding: 56px 48px;
}

.join-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.join-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.join-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.015);
    border-left: 2px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
}

.join-step:hover {
    border-left-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.step-number {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0.5;
    flex-shrink: 0;
}

.step-content h4 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.6;
}

.join-ip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(10, 10, 18, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-mono);
}

.join-ip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
}

/* Terminal cursor blink */
.join-ip::after {
    content: '▋';
    position: absolute;
    right: 80px;
    color: rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: terminalBlink 1.2s step-end infinite;
    font-size: 1rem;
}

@keyframes terminalBlink {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }
}

.ip-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ip-value {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    flex: 1;
    background: none;
}

.ip-copy {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 7px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-copy:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ip-copy.copied {
    color: #4CAF50;
    border-color: #4CAF50;
}

.join-tip {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ============================================
   社区 Section — 雷达圆环
   ============================================ */
.community {
    background:
        radial-gradient(ellipse at 55% 40%, rgba(40, 55, 80, 0.05), transparent 55%),
        radial-gradient(ellipse at 35% 65%, rgba(12, 14, 22, 0.3), transparent 55%);
}

/* 雷达圆环 */
.community .section-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 80px, rgba(255, 255, 255, 0.12) 81px, transparent 83px),
        radial-gradient(circle at 50% 50%, transparent 160px, rgba(255, 255, 255, 0.08) 161px, transparent 163px),
        radial-gradient(circle at 50% 50%, transparent 240px, rgba(255, 255, 255, 0.06) 241px, transparent 243px),
        radial-gradient(circle at 50% 50%, transparent 320px, rgba(255, 255, 255, 0.04) 321px, transparent 323px);
}

.community-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
}

.community-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 42px 36px;
    /* 增加内边距 */
    background: linear-gradient(135deg, rgba(14, 14, 26, 0.75) 0%, rgba(12, 12, 22, 0.55) 100%);
    border: 1px solid var(--border);
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* 社区卡片扫光 */
.community-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(25deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.community-card:hover::before {
    left: 120%;
}

.community-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    transform: translateY(-3px);
}

.community-card:hover .community-card-icon {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.03);
    background: rgba(255, 255, 255, 0.03);
}

.community-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    transition: all 0.4s var(--ease-out-expo);
}

.community-card:hover .community-card-icon {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.04);
}

.qq-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.steam-icon {
    color: var(--text-secondary);
    opacity: 0.6;
}

.community-card-info h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.qq-number {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.qq-number strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.qq-desc {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

/* ============================================
   制作团队 Section — 恢复原版紧凑列表
   ============================================ */
.credits {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(35, 50, 75, 0.04), transparent 50%),
        radial-gradient(ellipse at 25% 30%, rgba(12, 14, 22, 0.3), transparent 55%);
}

/* 微粒星空 */
.credits .section-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        radial-gradient(1px 1px at 100px 200px, rgba(180, 200, 230, 0.25), transparent),
        radial-gradient(1px 1px at 300px 100px, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(1px 1px at 500px 300px, rgba(180, 200, 230, 0.2), transparent),
        radial-gradient(1px 1px at 200px 400px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 700px 250px, rgba(180, 200, 230, 0.18), transparent),
        radial-gradient(1px 1px at 400px 150px, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(1px 1px at 600px 400px, rgba(180, 200, 230, 0.15), transparent),
        radial-gradient(1px 1px at 800px 350px, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(1.5px 1.5px at 150px 300px, rgba(180, 200, 230, 0.22), transparent),
        radial-gradient(1px 1px at 900px 100px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 450px 450px, rgba(180, 200, 230, 0.12), transparent),
        radial-gradient(1.5px 1.5px at 750px 150px, rgba(255, 255, 255, 0.15), transparent);
    animation: starsShimmer 8s ease-in-out infinite alternate;
}

@keyframes starsShimmer {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.5;
    }
}

/* 原版紧凑名单列表 */
.credits-list {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.credit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.credit-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
    opacity: 0;
    transition: opacity 0.3s;
}

.credit-row:hover::before {
    opacity: 1;
}

.credit-row:last-child {
    border-bottom: none;
}

.credit-row:hover {
    background: rgba(255, 255, 255, 0.015);
}

.credit-row-highlight {
    background: rgba(255, 255, 255, 0.02);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.credit-role {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.credit-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.credit-row-highlight .credit-name {
    color: rgba(240, 200, 120, 0.9);
}

/* ============================================
   版本信息条
   ============================================ */
.version-bar {
    text-align: center;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    opacity: 0.5;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

/* ============================================
   页脚
   ============================================ */
.footer {
    position: relative;
    padding: 60px 0 32px;
    background:
        radial-gradient(ellipse 50% 80% at 50% 0%, rgba(224, 48, 48, 0.05), transparent 60%),
        linear-gradient(180deg, transparent 0%, rgba(6, 6, 10, 0.5) 40%, rgba(6, 6, 10, 0.8) 100%);
    border-top: 1px solid var(--border);
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.6;
}

.footer-brand-text {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-dim);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 4px;
    opacity: 0.6;
}

.footer-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 18px;
}

.footer-bottom {
    text-align: center;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.footer-disclaimer {
    font-size: 0.68rem;
    color: var(--text-dim);
    opacity: 0.7;
}

/* ============================================
   回到顶部按钮
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: rgba(224, 48, 48, 0.12);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(12px) saturate(120%);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 24px rgba(224, 48, 48, 0.35);
    border-color: var(--accent-light);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Reveal Animations — 带交错延迟和模糊入场
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s var(--ease-out-expo);
    filter: blur(1.5px);
    will-change: transform, opacity, filter;
}

.reveal.reveal-left {
    transform: translateX(-40px) translateY(0);
}

.reveal.reveal-right {
    transform: translateX(40px) translateY(0);
}

.reveal.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0);
    will-change: auto;
}

/* 交错延迟 — 同级元素依次入场 */
.reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.reveal:nth-child(5) {
    transition-delay: 0.32s;
}

.reveal:nth-child(6) {
    transition-delay: 0.4s;
}

/* ============================================
   响应式 — 全面移动端适配
   ============================================ */

/* ---------- 平板 & 小笔记本 (≤900px) ---------- */
@media (max-width: 900px) {

    /* 导航汉堡菜单 */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right 0.4s var(--ease-out-expo);
        border-left: 1px solid var(--border);
        z-index: 9999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero 区简化 */
    .hero-corner,
    .hero-side-line {
        display: none;
    }

    .hero-logo-img {
        width: 64px;
        height: 64px;
    }

    .hero-title {
        letter-spacing: 6px;
    }

    .hero-stats {
        gap: 20px;
    }

    .bg-decor-img {
        display: none;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-subtitle {
        letter-spacing: 4px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* 新闻卡片变单列 */
    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card-featured {
        grid-template-columns: 1fr;
    }

    .news-card-image {
        height: 220px;
    }

    .news-card-body {
        padding: 24px 20px;
    }

    /* 社区卡片 */
    .community-cards {
        grid-template-columns: 1fr;
    }

    .community-card {
        flex-direction: column;
        text-align: center;
    }

    /* 加入服务器 */
    .join-content {
        padding: 36px 22px;
    }

    .join-ip {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* 页脚 */
    .footer-top {
        flex-direction: column;
        gap: 10px;
    }

    /* 模态框 */
    .modal-container {
        width: 96%;
        max-height: 85vh;
    }

    .modal-header {
        padding: 18px 20px 14px;
    }

    .modal-body {
        padding: 18px 20px 22px;
    }

    /* Steam 登录 / 用户信息 — 移动端 */
    .nav-auth {
        order: 1;
        margin-left: auto;
        margin-right: 8px;
    }

    .music-toggle {
        order: 2;
    }

    .nav-toggle {
        order: 3;
        z-index: 10002;
    }

    .steam-login-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
        gap: 4px;
    }

    .steam-login-btn .steam-icon {
        width: 14px;
        height: 14px;
    }

    .user-profile-btn {
        padding: 3px 8px 3px 3px;
        gap: 6px;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
    }

    .user-name {
        font-size: 0.72rem;
        max-width: 80px;
    }

    .dropdown-arrow {
        display: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 0.84rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 12px;
        text-align: center;
        width: 100%;
        display: block !important;
    }

    /* 导航栏精简 — 隐藏反馈大厅文字，仅图标 */
    .nav-hall-btn span {
        display: none;
    }

    .nav-hall-btn {
        padding: 7px;
        border-radius: 50%;
        min-width: 36px;
        min-height: 36px;
        justify-content: center;
    }

    /* 导航栏元素紧凑间距 */
    .nav-auth {
        gap: 6px;
    }
}

/* ---------- 手机 (≤600px) ---------- */
@media (max-width: 600px) {

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    /* 禁用分隔线装饰 */
    .section-divider::before,
    .section-divider::after {
        display: none;
    }

    /* 禁用角落标记和对角光束 */
    .about::after,
    .news::after,
    .features::after,
    .community::after,
    .about::before,
    .features::before,
    .news::before,
    .join::before,
    .community::before,
    .credits::before {
        display: none;
    }

    /* 移除 backdrop-filter 节省 GPU */
    .feature-card,
    .community-card,
    .hero-stats {
        backdrop-filter: none;
    }

    /* 减弱装饰纹理 */
    .section-bg-pattern {
        opacity: 0.02;
    }

    /* 减弱环境光斑 */
    .ambient-orbs {
        opacity: 0.5;
    }

    /* 卡片布局隔离优化 */
    .card-tactical-frame,
    .feature-card,
    .news-card {
        contain: content;
    }

    /* Hero 紧凑化 */
    .hero-bg-slide {
        background-position: 70% 20%;
    }

    .hero-bg-slide.active {
        opacity: 0.45;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.8rem);
        letter-spacing: 4px;
    }

    .hero-subtitle {
        letter-spacing: 2px;
        font-size: 0.68rem;
    }

    .hero-desc {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }

    /* 移动端隐藏滚动提示 */
    .hero-scroll-hint {
        display: none;
    }

    .hero-actions {
        margin-bottom: 36px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px 28px;
        backdrop-filter: none;
        border-radius: 6px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    /* 区域标题 */
    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        letter-spacing: 2px;
    }

    .section-tag {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    /* 网格变单列 */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* 卡片内边距缩小 */
    .card-tactical-frame {
        padding: 24px 20px;
    }

    .feature-card {
        padding: 22px 18px;
    }

    /* 新闻 */
    .news-card-image {
        height: 180px;
    }

    .news-card-image img {
        min-height: unset;
        object-position: center 30%;
    }

    .news-card h3 {
        font-size: 0.95rem;
    }

    .news-card p {
        font-size: 0.82rem;
    }

    /* 加入服务器区 */
    .join-content {
        padding: 28px 16px;
    }

    .join-step {
        padding: 12px 14px;
        gap: 14px;
    }

    .ip-value {
        font-size: 0.85rem;
        letter-spacing: 1px;
        word-break: break-all;
    }

    /* 制作团队 */
    .credit-row {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding: 14px 16px;
    }

    .credit-name {
        font-size: 0.85rem;
    }

    /* 社区 */
    .community-cards {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .community-card {
        padding: 22px 18px;
        gap: 16px;
    }

    /* 页脚 */
    .footer {
        padding: 36px 0 20px;
    }

    .version-bar {
        font-size: 0.6rem;
        padding: 8px;
    }

    .footer-disclaimer {
        font-size: 0.65rem;
    }

    /* 回到顶部 */
    .back-to-top {
        bottom: 20px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    /* 模态框全屏化 */
    .modal-container {
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        max-width: 100%;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-header h3 {
        font-size: 0.95rem;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(100vh - 80px);
    }

    /* 导航栏极限紧凑化 */
    .navbar {
        padding: 12px 0;
    }

    .navbar.scrolled {
        padding: 8px 0;
    }

    .nav-container {
        padding: 0 14px;
    }

    /* 用户名隐藏 — 仅保留头像 */
    .user-name {
        display: none;
    }

    .user-profile-btn {
        padding: 3px;
        gap: 0;
        border-radius: 50%;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    /* 音乐按钮适配 */
    .music-toggle {
        margin-left: 6px;
    }
}

/* ---------- 极小屏幕 (≤420px) ---------- */
@media (max-width: 420px) {

    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 9vw, 2rem);
        letter-spacing: 2px;
    }

    .hero-logo-img {
        width: 52px;
        height: 52px;
    }

    .hero-subtitle {
        letter-spacing: 1px;
        font-size: 0.6rem;
    }

    .hero-desc {
        font-size: 0.78rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .nav-links {
        width: 100%;
    }

    .section-title {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .section-desc {
        font-size: 0.82rem;
    }

    .news-card-body {
        padding: 18px 14px;
    }

    .news-card h3 {
        font-size: 0.88rem;
    }

    .card-tactical-frame h3,
    .feature-content h3 {
        font-size: 0.85rem;
    }

    .card-tactical-frame p,
    .feature-content p {
        font-size: 0.8rem;
    }

    .join-desc {
        font-size: 0.85rem;
    }

    .step-content h4 {
        font-size: 0.78rem;
    }

    .step-content p {
        font-size: 0.8rem;
    }

    /* Steam 登录按钮缩略 */
    .steam-login-btn span {
        display: none;
    }

    .steam-login-btn {
        padding: 6px;
        border-radius: 50%;
    }

    /* 导航栏终极精简 */
    .nav-logo-img {
        width: 26px;
        height: 26px;
    }

    .nav-logo-text {
        font-size: 0.72rem;
        letter-spacing: 2px;
    }

    .music-toggle {
        width: 32px;
        height: 32px;
        margin-left: 4px;
    }

    .nav-hall-btn {
        min-width: 32px;
        min-height: 32px;
        padding: 6px;
    }

    .nav-auth {
        gap: 4px;
        margin-right: 4px;
    }

    .user-avatar {
        width: 26px;
        height: 26px;
    }

    .user-profile-btn {
        padding: 2px;
    }
}

/* ---------- 触屏设备优化 ---------- */
@media (hover: none) and (pointer: coarse) {

    /* 禁用桌面端扫光和悬浮特效（节省性能） */
    .card-tactical-frame::before,
    .feature-card::after,
    .community-card::before {
        display: none;
    }

    /* 禁用卡片悬浮抬起效果 */
    .card-tactical-frame:hover,
    .feature-card:hover,
    .community-card:hover {
        transform: none;
    }

    /* 确保触摸目标足够大（至少44px） */
    .nav-links a {
        padding: 12px 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 44px;
    }

    .ip-copy {
        min-width: 44px;
        min-height: 44px;
    }

    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }

    .back-to-top {
        min-width: 44px;
        min-height: 44px;
    }

    /* 减少动画以节省电量 */
    .scanlines,
    body::after {
        display: none;
    }

    .ambient-orbs {
        display: none;
    }
}

/* ============================================
   全局增强：Focus 可访问性
   ============================================ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(224, 48, 48, 0.35);
}

.nav-links a:focus-visible {
    color: var(--accent);
}

/* ============================================
   减少动画偏好 — 尊重系统设置
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .hero-bg-slide {
        transition: none;
    }

    .ambient-orbs {
        display: none;
    }
}

/* ============================================
   全站装饰性视觉增强 — 对角光束 & 氛围光斑
   ============================================ */

/* 每个section添加对角线环境光束 */
.about::before,
.features::before,
.news::before,
.join::before,
.community::before,
.credits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.about::before {
    background:
        linear-gradient(135deg, transparent 20%, rgba(255, 255, 255, 0.025) 45%, transparent 70%),
        linear-gradient(225deg, transparent 30%, rgba(200, 200, 220, 0.02) 55%, transparent 78%);
}

.features::before {
    background:
        linear-gradient(160deg, transparent 12%, rgba(255, 255, 255, 0.03) 38%, transparent 62%),
        linear-gradient(340deg, transparent 20%, rgba(200, 200, 220, 0.025) 48%, transparent 72%);
}

.news::before {
    background:
        linear-gradient(145deg, transparent 15%, rgba(255, 255, 255, 0.025) 42%, transparent 68%),
        linear-gradient(315deg, transparent 25%, rgba(200, 200, 220, 0.02) 52%, transparent 76%);
}

.join::before {
    background:
        linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.03) 35%, transparent 58%),
        linear-gradient(300deg, transparent 20%, rgba(200, 200, 220, 0.025) 48%, transparent 72%);
}

.community::before {
    background:
        linear-gradient(155deg, transparent 8%, rgba(255, 255, 255, 0.025) 32%, transparent 58%),
        linear-gradient(335deg, transparent 15%, rgba(200, 200, 220, 0.03) 42%, transparent 68%);
}

.credits::before {
    background:
        linear-gradient(140deg, transparent 12%, rgba(255, 255, 255, 0.02) 38%, transparent 62%),
        linear-gradient(320deg, transparent 20%, rgba(200, 200, 220, 0.025) 48%, transparent 72%);
}

/* section角落装饰标记 */
.about::after,
.news::after {
    content: '';
    position: absolute;
    top: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
    pointer-events: none;
}

.features::after,
.community::after {
    content: '';
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   Steam 登录 & 用户菜单
   ============================================ */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 12px;
    flex-shrink: 0;
}

.steam-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-family: var(--font-body);
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.35s ease;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.steam-login-btn .steam-icon {
    flex-shrink: 0;
    opacity: 0.92;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
    transition: all 0.3s;
}

.steam-login-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

.steam-login-btn:hover .steam-icon {
    opacity: 1;
}

/* Steam 登录按钮加载状态 */
.steam-login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.steam-login-btn.loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: loginSpin 0.6s linear infinite;
}

@keyframes loginSpin {
    to {
        transform: rotate(360deg);
    }
}

/* 已登录用户资料 */
.user-profile {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.user-profile-btn:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.08);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(224, 48, 48, 0.3);
}

.user-name {
    font-size: 0.8rem;
    font-family: var(--font-body);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    opacity: 0.5;
    transition: transform 0.3s;
}

.user-profile-btn:hover .dropdown-arrow {
    opacity: 1;
}

/* 下拉菜单 */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: rgba(12, 12, 20, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 10001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.dropdown-item svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.dropdown-item:hover svg {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 8px;
}

.dropdown-logout:hover {
    color: var(--accent);
}

/* ============================================
   模态框（反馈 & 工单共用）
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 35000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-panel {
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    background: linear-gradient(135deg, #0c0c18 0%, #101020 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-y: auto;
    transform: scale(0.95) translateY(16px);
    transition: transform 0.3s var(--ease-out-expo);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(224, 48, 48, 0.04);
}

.modal-overlay.active .modal-panel {
    transform: scale(1) translateY(0);
}

.modal-wide {
    max-width: 680px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin: 0;
}

.modal-title svg {
    color: var(--accent);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(224, 48, 48, 0.06);
}

/* ============================================
   反馈表单
   ============================================ */
.feedback-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-option input[type="radio"] {
    display: none;
}

.category-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.category-option input:checked+.cat-bug {
    border-color: #e04040;
    background: rgba(224, 64, 64, 0.1);
    color: #ff6b6b;
}

.category-option input:checked+.cat-suggestion {
    border-color: #40a0e0;
    background: rgba(64, 160, 224, 0.1);
    color: #6bc0ff;
}

.category-option input:checked+.cat-other {
    border-color: #a080e0;
    background: rgba(160, 128, 224, 0.1);
    color: #c0a0ff;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    border-color: rgba(224, 48, 48, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(224, 48, 48, 0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-dim);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

.form-counter {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 6px;
    font-family: var(--font-mono);
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #c02020 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.form-submit:hover {
    box-shadow: 0 4px 20px rgba(224, 48, 48, 0.3);
    transform: translateY(-1px);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   工单列表
   ============================================ */
.tickets-list {
    padding: 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.tickets-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.ticket-card {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s;
}

.ticket-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}

.ticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.ticket-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-category {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.ticket-cat-bug {
    background: rgba(224, 64, 64, 0.12);
    color: #ff6b6b;
}

.ticket-cat-suggestion {
    background: rgba(64, 160, 224, 0.12);
    color: #6bc0ff;
}

.ticket-cat-other {
    background: rgba(160, 128, 224, 0.12);
    color: #c0a0ff;
}

.ticket-status {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: var(--font-mono);
}

.ticket-status-open {
    background: rgba(64, 200, 100, 0.12);
    color: #6be080;
}

.ticket-status-processing {
    background: rgba(240, 180, 40, 0.12);
    color: #f0c040;
}

.ticket-status-resolved {
    background: rgba(100, 160, 240, 0.12);
    color: #80b0f0;
}

.ticket-status-closed {
    background: rgba(128, 128, 140, 0.12);
    color: #909098;
}

.ticket-content {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    /* 最多显示3行 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-date {
    font-size: 0.68rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* ============================================
   导航栏 — 反馈大厅入口
   ============================================ */
.nav-hall-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
    letter-spacing: 0.5px;
}

.nav-hall-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.nav-hall-btn svg {
    opacity: 0.6;
    transition: opacity 0.25s;
}

.nav-hall-btn:hover svg {
    opacity: 0.9;
}

/* ============================================
   反馈大厅 — 全屏 Overlay
   ============================================ */
.hall-overlay {
    position: fixed;
    inset: 0;
    z-index: 30000;
    background: rgba(8, 8, 14, 0.96);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.hall-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.hall-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
}

/* ---- 大厅头部 ---- */
.hall-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 10, 18, 0.6);
    flex-shrink: 0;
}

.hall-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.hall-header-left svg {
    color: var(--accent);
    opacity: 0.7;
}

.hall-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin: 0;
}

.hall-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hall-submit-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    background: var(--accent);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.hall-submit-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.hall-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, border-color 0.2s;
}

.hall-close:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ---- 统计概览条 ---- */
.hall-stats {
    display: flex;
    padding: 8px 32px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.hall-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.hall-stat-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.hall-stat-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.hall-stat-item.active .hall-stat-num {
    color: var(--text-primary);
}

/* 纯色圆点指示器 */
.hall-stat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-open {
    background: #e0a030;
}

.dot-accepted {
    background: #3090e0;
}

.dot-resolved {
    background: #40c060;
}

.dot-closed {
    background: rgba(255, 255, 255, 0.2);
}

.dot-total {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
}

.hall-stat-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.hall-stat-num {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hall-stat-total .hall-stat-num {
    color: var(--text-primary);
}

/* ---- 工具栏 ---- */
.hall-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.hall-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 160px;
}

.hall-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hall-search {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: border-color 0.25s;
    flex: 1;
    min-width: 160px;
}

.hall-search:focus-within {
    border-color: rgba(255, 255, 255, 0.18);
}

.hall-search svg {
    color: var(--text-dim);
    flex-shrink: 0;
    opacity: 0.5;
}

.hall-search-input {
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}

.hall-search-input::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

.hall-select {
    padding: 6px 9px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.76rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.hall-select:focus {
    border-color: rgba(255, 255, 255, 0.18);
}

.hall-select option {
    background: #0e0e18;
}

/* ---- 大厅工单列表 ---- */
.hall-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 32px;
    min-height: 0;
}

/* 列表内容居中限宽 */
.hall-list-inner {
    max-width: 960px;
    margin: 0 auto;
}

.hall-list::-webkit-scrollbar {
    width: 3px;
}

.hall-list::-webkit-scrollbar-track {
    background: transparent;
}

.hall-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

/* ---- 大厅工单卡片 ---- */
.hall-card {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.hall-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.prio-urgent-card {
    border-left: 2px solid rgba(224, 60, 60, 0.5);
}

.hall-card-left {
    flex-shrink: 0;
}

.hall-card-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    object-fit: cover;
}

.hall-card-body {
    flex: 1;
    min-width: 0;
}

.hall-card-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.hall-card-id {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    flex-shrink: 0;
}

.hall-card-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hall-card-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.hall-prio-badge {
    font-size: 0.58rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #e04040;
    letter-spacing: 1px;
    padding: 1px 5px;
    border: 1px solid rgba(224, 48, 48, 0.3);
    border-radius: 3px;
}

.hall-card-content {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.hall-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.hall-card-author {
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.72rem;
}

.hall-card-time {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    opacity: 0.6;
}

.hall-card-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.5;
}

.hall-card-stat svg {
    opacity: 0.7;
}

/* ---- 大厅分页 ---- */
.hall-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-info {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    margin-left: 8px;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .nav-hall-btn span {
        display: none;
    }

    .nav-hall-btn {
        padding: 6px 9px;
    }

    .hall-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-primary);
        /* Use primary background for full screen */
        z-index: 30000;
        /* Ensure it's above other content but below modal-overlay */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hall-panel {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        /* Remove shadow box */
    }

    .hall-header {
        padding: 12px 14px;
    }

    .hall-stats {
        padding: 8px 14px;
        gap: 3px;
    }

    .hall-stat-item {
        padding: 5px 6px;
        flex-direction: column;
        gap: 2px;
    }

    .hall-stat-item.active {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .hall-stat-label {
        font-size: 0.6rem;
    }

    .hall-toolbar {
        padding: 8px 14px;
        flex-direction: column;
        gap: 6px;
    }

    .hall-toolbar-left {
        width: 100%;
    }

    .hall-toolbar-right {
        width: 100%;
    }

    .hall-list {
        padding: 8px 14px;
    }

    .hall-card {
        padding: 10px;
        gap: 8px;
    }

    .hall-card-avatar {
        width: 28px;
        height: 28px;
    }

    .hall-submit-btn span {
        display: none;
    }

    /* 模态框移动端全屏化 */
    .modal-panel {
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .modal-overlay {
        padding: 0;
    }

    .modal-detail-body {
        max-height: calc(100vh - 180px);
    }

    .hall-toolbar-right {
        flex-wrap: wrap;
    }
}


/* 问题分类标签 */
.ticket-cat-question {
    background: rgba(200, 160, 40, 0.12);
    color: #e0c040;
}

/* 举报分类标签 */
.ticket-cat-report {
    background: rgba(240, 100, 40, 0.12);
    color: #f08040;
}

/* 优先级选择标签 */
.category-option input:checked+.prio-urgent {
    border-color: #e04040;
    background: rgba(224, 48, 48, 0.12);
    color: #ff6060;
}

.category-option input:checked+.prio-normal {
    border-color: #6090c0;
    background: rgba(96, 144, 192, 0.1);
    color: #80b0e0;
}

.category-option input:checked+.prio-low {
    border-color: #808090;
    background: rgba(128, 128, 144, 0.1);
    color: #a0a0a8;
}

.category-option input:checked+.cat-report {
    border-color: #f08040;
    background: rgba(240, 100, 40, 0.1);
    color: #f08040;
}

/* 问题分类标签 */
.category-option input:checked+.cat-question {
    border-color: #c0a030;
    background: rgba(200, 160, 40, 0.1);
    color: #e0c040;
}

/* 标题字数统计（行内） */
.form-counter-inline {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    margin-left: 6px;
    letter-spacing: 0;
    text-transform: none;
}

/* ============================================
   工单工具栏（筛选+搜索）
   ============================================ */
.ticket-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

.ticket-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ticket-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-count {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.ticket-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.3s;
}

.ticket-search:focus-within {
    border-color: rgba(224, 48, 48, 0.4);
}

.ticket-search svg {
    color: var(--text-dim);
    flex-shrink: 0;
}

.ticket-search-input {
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 0.78rem;
    width: 120px;
    outline: none;
    font-family: var(--font-body);
}

.ticket-search-input::placeholder {
    color: var(--text-dim);
}

/* 快速新建按钮 */
.btn-new-ticket {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--accent), #c02020);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.btn-new-ticket:hover {
    box-shadow: 0 2px 12px rgba(224, 48, 48, 0.3);
    transform: translateY(-1px);
}

/* ============================================
   骨架屏
   ============================================ */
.tickets-loading {
    padding: 16px;
}

.skeleton-card {
    height: 72px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 400% 100%;
    animation: skeletonPulse 1.5s ease infinite;
    border: 1px solid var(--border);
}

@keyframes skeletonPulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   空状态引导
   ============================================ */
.tickets-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.tickets-empty .empty-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.btn-empty-create {
    margin-top: 14px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--accent), #c02020);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-empty-create:hover {
    box-shadow: 0 2px 12px rgba(224, 48, 48, 0.3);
}

/* ============================================
   图片灯箱
   ============================================ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: rgba(224, 48, 48, 0.4);
    border-color: var(--accent);
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.lightbox-overlay.active .lightbox-img {
    animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   Toast 通知 v2
   ============================================ */
.toast-notification {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    background: rgba(12, 12, 20, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    z-index: 50000;
    letter-spacing: 1px;
    animation: toastIn 0.3s ease;
    border-left: 3px solid var(--text-dim);
}

.toast-success {
    border-left-color: #4ade80;
}

.toast-error {
    border-left-color: #f87171;
}

.toast-info {
    border-left-color: #60a5fa;
}

.toast-out {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   操作栏按钮
   ============================================ */
.detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 24px;
    border-top: 1px solid var(--border);
}

.action-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-family: var(--font-body);
}

.action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.action-btn-accept {
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.action-btn-accept:hover {
    background: rgba(74, 222, 128, 0.08);
    border-color: #4ade80;
}

.action-btn-resolve {
    border-color: rgba(96, 165, 250, 0.3);
    color: #60a5fa;
}

.action-btn-resolve:hover {
    background: rgba(96, 165, 250, 0.08);
    border-color: #60a5fa;
}

.action-btn-close,
.action-btn-close-admin {
    border-color: rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.action-btn-close:hover,
.action-btn-close-admin:hover {
    background: rgba(248, 113, 113, 0.08);
    border-color: #f87171;
}

/* ============================================
   工单优先级指示
   ============================================ */
.prio-urgent-card {
    border-left-color: #f87171 !important;
}

.ticket-prio-urgent {
    animation: urgentPulse 2s infinite;
    font-size: 0.75rem;
}

@keyframes urgentPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.ticket-prio {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: var(--font-mono);
}

.ticket-prio-urgent:not(.ticket-prio-urgent:only-child) {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.ticket-prio-low {
    background: rgba(128, 128, 144, 0.12);
    color: #909098;
}

/* ============================================
   详情样式补充
   ============================================ */
.detail-content {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 12px;
}

.detail-contact-box {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}

.detail-replies-section {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
}

.detail-replies-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.detail-reply-content {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

/* 图片上传区域 */
.image-upload-zone {
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 10px;
    transition: border-color 0.3s;
}

.image-upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(224, 48, 48, 0.03);
}

.image-previews {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.img-preview-item {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.img-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-preview-item .img-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-preview-item .img-remove:hover {
    background: var(--accent);
}

.img-preview-item.uploading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
}

.img-preview-item.uploading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: imgSpin 0.6s linear infinite;
}

@keyframes imgSpin {
    to {
        transform: rotate(360deg);
    }
}

.upload-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    color: var(--text-dim);
    font-size: 0.78rem;
    cursor: pointer;
    transition: color 0.3s;
}

.upload-trigger:hover {
    color: var(--text-secondary);
}

.upload-trigger svg {
    opacity: 0.4;
}

/* 迷你筛选下拉 */
.form-select-mini {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.78rem;
    cursor: pointer;
    outline: none;
}

.form-select-mini option {
    background: #0c0c18;
}

/* 迷你上传按钮 */
.form-upload-mini {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.form-upload-mini:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* 工单详情内嵌样式 */
.detail-ticket-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.detail-ticket-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-ticket-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.detail-reply {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    border-left: 3px solid var(--border);
}

.detail-reply.admin-reply {
    border-left-color: var(--accent);
    background: rgba(224, 48, 48, 0.02);
}

.detail-reply-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.detail-reply-header img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.admin-tag {
    font-size: 0.6rem;
    padding: 1px 5px;
    background: rgba(224, 48, 48, 0.15);
    color: var(--accent);
    border-radius: 3px;
    font-family: var(--font-mono);
}

.ticket-card-clickable {
    cursor: pointer;
}

/* 工单状态标签增加 accepted */
.ticket-status-accepted {
    background: rgba(240, 180, 40, 0.12);
    color: #f0c040;
}

/* 分页按钮 */
.page-btn {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* 回复区域图片预览 */
.reply-img-previews .img-preview-item {
    width: 50px;
    height: 50px;
}

/* ============================================
   工单列表滚动条美化
   ============================================ */
.tickets-list::-webkit-scrollbar {
    width: 4px;
}

.tickets-list::-webkit-scrollbar-track {
    background: transparent;
}

.tickets-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.tickets-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-detail-body::-webkit-scrollbar {
    width: 4px;
}

.modal-detail-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-detail-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

/* ============================================
   工单详情 body 基础样式（从 inline 迁移到 CSS）
   ============================================ */
.modal-detail-body {
    padding: 20px 24px;
    max-height: 55vh;
    overflow-y: auto;
}

/* ============================================
   「总计」统计项特殊样式
   ============================================ */
.hall-stat-total .hall-stat-num {
    color: var(--text-primary);
    font-weight: 600;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

.hall-stat-total .hall-stat-label {
    color: var(--text-secondary);
}

.hall-stat-total.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ============================================
   大厅卡片 hover 增强 + 性能优化
   ============================================ */
.hall-card {
    contain: content;
    border-left: 3px solid transparent;
    transition: border-left-color 0.2s, transform 0.2s;
}

.hall-card:hover {
    border-left-color: rgba(224, 48, 48, 0.5);
    transform: translateX(2px);
}

/* 工单卡片性能优化 */
.ticket-card {
    contain: content;
}

/* ============================================
   Accessibility: Focus States
   ============================================ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:focus-visible,
.nav-cta:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(224, 48, 48, 0.15);
}

.modal-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* ============================================
   Accessibility: Reduced Motion
   ============================================ */
@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;
    }

    .hero-bg-slide {
        transition: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .ambient-orbs {
        display: none;
    }
}