
:root {
    --deep-blue: #0f1a2f;
    --tech-blue: #1e3a8a;
    --electric-blue: #3b82f6;
    --cyber-teal: #06d6a0;
    --platinum: #e8e8e8;
    --silver: #c0c0c0;
    --dark-card: #1a2438;
    --gradient-tech: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-premium: linear-gradient(135deg, #0f1a2f 0%, #1e3a8a 50%, #3b82f6 100%);
}

/* 重置默认边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--deep-blue);
    color: var(--platinum);
    font-family: 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

/* 精致的背景纹理 */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(6, 214, 160, 0.02) 0%, transparent 50%), linear-gradient(135deg, var(--deep-blue) 0%, #14213d 100%);
    z-index: -2;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -1;
    animation: gridShift 40s linear infinite;
}

@@keyframes gridShift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(80px, 80px);
    }
}

/* 导航栏样式 */
.navbar {
    background: var(--gradient-premium) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    min-height: 80px;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.7rem 1.2rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
}

    .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--cyber-teal);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        width: 80%;
    }

    .nav-link:hover {
        color: white !important;
        background: rgba(59, 130, 246, 0.1);
    }

/* 下拉菜单样式 */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 0.8rem;
    padding: 0.8rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--dark-card);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
    color: var(--platinum) !important;
    font-weight: 500;
}

    .dropdown-item:hover {
        background: var(--gradient-tech);
        color: white !important;
        transform: translateX(5px);
    }

/* 菜单按钮样式 */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    }

    .navbar-toggler:hover {
        border-color: var(--cyber-teal);
    }


/* 移动端菜单样式 */
@@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        min-height: 70px;
        padding: 0.6rem 1rem;
    }

    .navbar-collapse {
        background: var(--dark-card);
        backdrop-filter: blur(20px);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        text-align: center;
        margin: 0.3rem 0;
    }

    .dropdown-menu {
        background: rgba(26, 36, 56, 0.95);
        text-align: center;
    }
}

/* 用户昵称样式 */
.user-nickname {
    color: var(--cyber-teal) !important;
    font-weight: 600;
}

/* 页脚样式 */
footer {
    background: var(--dark-card) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 2rem !important;
    margin-top: 1rem;
}

    footer img {
        transition: all 0.3s ease;
        border-radius: 8px;
        filter: brightness(0.9);
    }

        footer img:hover {
            transform: scale(1.05);
            filter: brightness(1);
        }

    footer p {
        color: var(--silver) !important;
        line-height: 1.6;
    }

/* 主内容区域 */
main {
    flex: 1;
}

/* 滚动效果 */
.navbar-scrolled {
    padding: 0.6rem 1rem !important;
    background: rgba(15, 26, 47, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

.logo-float {
    animation: logoFloat 4s ease-in-out infinite;
}

@@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

/* ========== 版块控制样式 ========== */
.section-controls {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.btn-expand {
    background: var(--gradient-tech);
    border: none;
    border-radius: 30px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .btn-expand:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    }

    .btn-expand i {
        font-size: 1.1rem;
    }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-hide-section {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    color: var(--silver);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

    .btn-hide-section:hover {
        background: rgba(255, 59, 59, 0.2);
        border-color: #ff3b3b;
        color: #ff6b6b;
    }

.section-hidden {
    display: none !important;
}

/* 版块容器动画 */
.training-card-tech, .print-express-wide {
    transition: all 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .section-controls {
        margin: 1.5rem 0;
    }

    .btn-expand {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 1rem;
    }
}

/* 提示消息样式 */
.section-tip {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    margin: 1rem 0;
}

    .section-tip p {
        color: var(--silver);
        margin-bottom: 1rem;
    }

.btn-reset-hidden {
    background: transparent;
    border: 1px solid var(--cyber-teal);
    color: var(--cyber-teal);
    border-radius: 20px;
    padding: 0.3rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .btn-reset-hidden:hover {
        background: var(--cyber-teal);
        color: var(--deep-blue);
    }
