/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #0b1120;
    color: #eef2f8;
    line-height: 1.8;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    margin-right: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.logo i {
    color: #4ade80;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== Hero（主页独立） ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('photo/bg_home.png') center/cover no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
    margin-left: 8%;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #4ade80;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 2.0;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-primary {
    background: #4ade80;
    color: #0b1120;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ===== 通用标题 ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* ===== 配置 + 加入（共用 bg_group1） ===== */
.specs-section {
    padding: 80px 0;
    background: url('photo/bg_group1.png') center/cover fixed no-repeat;
    position: relative;
}

.specs-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(3px);
}

.specs-section .container {
    position: relative;
    z-index: 1;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.spec-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.spec-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 222, 128, 0.3);
}

.spec-icon {
    font-size: 2.5rem;
    color: #4ade80;
    margin-bottom: 12px;
}

.spec-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.spec-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.spec-value {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 20px;
    font-weight: 700;
    color: #4ade80;
}

.help-section {
    padding: 80px 0;
    background: url('photo/bg_group1.png') center/cover fixed no-repeat;
    position: relative;
}

.help-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(3px);
}

.help-section .container {
    position: relative;
    z-index: 1;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
}

.step-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px 24px;
    flex: 1 1 240px;
    max-width: 300px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-6px);
}

.step-number {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
}

.step-icon {
    font-size: 2.2rem;
    color: #4ade80;
    margin-bottom: 14px;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.step-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.btn-step {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 24px;
    background: #4ade80;
    color: #0b1120;
    border-radius: 20px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-step:hover {
    background: #22c55e;
}

.step-arrow {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
}

.server-address-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#help-ip {
    font-family: 'Consolas', monospace;
    color: #4ade80;
    font-weight: 700;
}

.copy-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s;
}

.copy-btn:hover {
    color: #fff;
}

.highlight-text {
    display: block;
    margin-top: 12px;
    color: #fbbf24;
    font-weight: 600;
}

/* ===== 团队 + 社区（共用 bg_group2） ===== */
.team-section {
    padding: 80px 0;
    background: url('photo/bg_group2.png') center/cover fixed no-repeat;
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(3px);
}

.team-section .container {
    position: relative;
    z-index: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-6px);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(74, 222, 128, 0.3);
    margin-bottom: 14px;
}

.team-card h3 {
    font-size: 1.2rem;
}

.team-role {
    color: #4ade80;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.team-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.community-section {
    padding: 80px 0;
    background: url('photo/bg_group2.png') center/cover fixed no-repeat;
    position: relative;
}

.community-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(3px);
}

.community-section .container {
    position: relative;
    z-index: 1;
}

/* ===== 社区板块（QQ二维码，绝对居中） ===== */
.community-grid {
    display: flex;
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    gap: 40px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.community-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px 25px;
    flex: 0 0 auto;
    width: 280px;
    /* 适中的宽度 */
    transition: transform 0.3s, border-color 0.3s;
    box-sizing: border-box;
}

.copy-qq-btn {
    display: inline-block;
    padding: 10px 28px;
    margin-top: 10px;
    background: #4ade80;
    color: #0b1120;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-qq-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 222, 128, 0.4);
}

.community-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 222, 128, 0.2);
}

.qr-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 16px;
    display: block;
    background: transparent;
    /* 去掉白底 */
    padding: 0;
    /* 去掉内边距 */
}

.community-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #fff;
}

.community-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ===== 页脚 ===== */
.footer {
    background: #0b1120;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo i {
    color: #4ade80;
    margin-right: 8px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-links ul li {
    margin-bottom: 6px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .community-grid {
        justify-content: center;
        gap: 40px;
    }

    .hero-content {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .community-grid {
        justify-content: center;
        gap: 30px;
    }

    .community-card {
        width: 180px;
    }

    .qr-image {
        width: 140px;
        height: 140px;
    }
}

/* ===== 1920x1080 专用适配 ===== */
@media (min-width: 1920px) and (min-height: 1080px) {
    .hero h1 {
        font-size: 6.5rem;
        letter-spacing: -2px;
    }

    .hero-desc {
        font-size: 1.5rem;
        line-height: 2.2;
    }

    .container {
        max-width: 1400px;
    }

    .hero-content {
        max-width: 950px;
        margin-left: 10%;
    }

    .section-header h2 {
        font-size: 3.5rem;
    }

    /* ===== 导航栏在线人数 ===== */
    /* ===== 导航栏在线人数 ===== */
    .nav-online {
        display: flex;
        align-items: center;
        gap: 8px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9rem;
        margin-left: auto;
        padding-left: 50px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .online-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #4ade80;
        display: inline-block;
        animation: pulse-dot 2s infinite;
    }

    @keyframes pulse-dot {
        0% {
            opacity: 1;
            transform: scale(1);
        }

        50% {
            opacity: 0.5;
            transform: scale(0.8);
        }

        100% {
            opacity: 1;
            transform: scale(1);
        }
    }

    #nav-player-count {
        font-weight: 700;
        color: #4ade80;
    }

    /* 移动端适配 */
    @media (max-width: 768px) {
        .nav-online {
            margin-left: 0;
            border-left: none;
            padding-left: 0;
            font-size: 0.8rem;
        }
    }
}