/* ========== 全局重置与基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a12;
    --bg-panel: #12121f;
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00aa;
    --neon-purple: #9d00ff;
    --neon-yellow: #ffe600;
    --text-light: #e8e8ff;
    --text-dim: #8888aa;
    --border-glow: rgba(0, 240, 255, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Rajdhani", "Microsoft YaHei", sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* 赛博朋克网格背景 */
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 170, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 8px var(--neon-magenta);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ========== 公共头部(固定) ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.98), rgba(18, 18, 31, 0.95));
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 4px 24px rgba(0, 240, 255, 0.15), 0 2px 8px rgba(255, 0, 170, 0.1);
    backdrop-filter: blur(8px);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 4%;
}

.logo {
    font-family: "Orbitron", sans-serif;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    text-shadow:
        0 0 6px var(--neon-cyan),
        0 0 14px rgba(0, 240, 255, 0.6),
        2px 0 var(--neon-magenta),
        -2px 0 var(--neon-purple);
    cursor: pointer;
}

.logo .logo-sub {
    font-size: 13px;
    color: var(--neon-yellow);
    letter-spacing: 6px;
    text-shadow: 0 0 6px var(--neon-yellow);
    display: block;
    margin-top: 2px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(255, 230, 0, 0.7);
    padding: 6px 18px;
    border: 1px solid var(--neon-yellow);
    border-radius: 4px;
    background: rgba(255, 230, 0, 0.06);
    box-shadow: 0 0 12px rgba(255, 230, 0, 0.25), inset 0 0 12px rgba(255, 230, 0, 0.08);
    animation: pulse-contact 2s infinite;
}

.header-contact i {
    animation: ring 1.5s infinite;
}

@keyframes pulse-contact {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 230, 0, 0.25), inset 0 0 12px rgba(255, 230, 0, 0.08); }
    50% { box-shadow: 0 0 22px rgba(255, 230, 0, 0.55), inset 0 0 18px rgba(255, 230, 0, 0.15); }
}

@keyframes ring {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-12deg); }
    20%, 40% { transform: rotate(12deg); }
    50% { transform: rotate(0); }
}

/* 导航栏 */
.main-nav {
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    background: rgba(10, 10, 18, 0.6);
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: block;
    padding: 14px 28px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-light);
    position: relative;
}

.nav-list li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: 70%;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.menu-toggle:hover {
    background: rgba(0, 240, 255, 0.1);
}

/* ========== 公共尾部 ========== */
.site-footer {
    background: linear-gradient(180deg, rgba(18, 18, 31, 0.9), rgba(10, 10, 18, 0.98));
    border-top: 1px solid var(--border-glow);
    box-shadow: 0 -4px 24px rgba(255, 0, 170, 0.12);
    padding: 36px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
}

.footer-col h4 {
    font-family: "Orbitron", sans-serif;
    font-size: 18px;
    color: var(--neon-magenta);
    text-shadow: 0 0 8px rgba(255, 0, 170, 0.6);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.footer-col p {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-dim);
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: var(--neon-cyan);
}

.footer-contact-line {
    color: var(--neon-yellow);
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 230, 0, 0.6);
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    padding: 18px 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
}

.footer-bottom .neon-divider {
    color: var(--neon-cyan);
    margin: 0 8px;
}

/* ========== 公共模块标题 ========== */
.section-title {
    font-family: "Orbitron", sans-serif;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text-light);
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 14px;
}

.section-title::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    box-shadow: 0 0 12px var(--neon-cyan);
}

.section-title .title-en {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 4px;
    margin-top: 8px;
    font-weight: 400;
}

/* 给固定头部留出占位空间 */
.page-wrap {
    padding-top: 124px;
}

/* ========== 公共区块间距(所有页面共享) ========== */
.section {
    padding: 40px 0;
}

.section:nth-child(even) {
    background: rgba(18, 18, 31, 0.4);
}

/* ========== 响应式:移动端 ========== */
@media (max-width: 768px) {
    .header-top {
        height: 60px;
    }

    .logo {
        font-size: 22px;
    }

    .logo .logo-sub {
        font-size: 10px;
        letter-spacing: 4px;
    }

    .header-contact {
        font-size: 15px;
        padding: 4px 10px;
        gap: 6px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .main-nav.open {
        max-height: 420px;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list li a {
        padding: 12px;
        border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    }

    .page-wrap {
        padding-top: 112px;
    }

    .section {
        padding: 32px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
}
