* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #0066ff;
    --secondary: #00ccff;
    --dark: #0a1128;
    --light: #e6f7ff;
    --accent: #7b68ee;
}

body {
    background: linear-gradient(135deg, var(--dark) 0%, #1a2a6c 100%);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 17, 40, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.logo i {
    margin-right: 10px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 8px;
    font-size: 16px;
}

.nav-links a:hover {
    background-color: rgba(0, 102, 255, 0.2);
    color: var(--secondary);
}

.nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    width: calc(100% - 30px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* 通栏横幅 */
.banner {
    width: 100%;
    height: 400px;
    margin-top: 70px; /* 导航栏高度 */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1128 0%, #1a2a6c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* 如果要使用图片，请取消下面这行的注释并替换图片路径 */
    background: url('../images/banner-bg.jpg') center/cover no-repeat; 
}

.banner-content {
    text-align: center;
    z-index: 10;
    padding: 0 20px;
    max-width: 800px;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--light);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.6);
}

/* 主内容区样式 */
main {
    max-width: 1200px;
    margin: 40px auto 40px;
    padding: 0 20px;
}

section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    scroll-margin-top: 100px;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.3);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--secondary);
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 15px;
    color: var(--primary);
}

p {
    margin-bottom: 15px;
    font-size: 17px;
    text-align: justify;
    color: #e6f7ff;
}

.highlight {
    color: var(--secondary);
    font-weight: 600;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.schedule-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-date {
    min-width: 120px;
    font-weight: 700;
    color: var(--secondary);
}

.schedule-content {
    flex: 1;
}

/* 组织架构树形图容器 */
.org-chart-container {
    position: relative;
    width: 100%;
    min-height: 700px;
    margin: 40px 0;
    overflow: auto;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px 20px;
}

/* 树形结构 */
.tree {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 600px;
}

/* 根节点 */
.root-node {
    position: relative;
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.5);
    margin-bottom: 60px;
    z-index: 20;
    transition: all 0.3s ease;
}

.root-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.7);
}

.root-node h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.root-node p {
    font-size: 16px;
    opacity: 0.9;
}

/* 第一层级节点容器 */
.level-1 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    z-index: 15;
}

/* 第二层级节点容器 */
.level-2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    position: relative;
    z-index: 15;
}

/* 通用节点样式 */
.node {
    position: relative;
    width: 220px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 15;
    cursor: pointer;
}

.node:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.node h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary);
}

.node p {
    font-size: 14px;
    opacity: 0.9;
}

/* 连接线样式 - 确保在底层 */
.connector {
    position: absolute;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    z-index: 1; /* 连接线在底层 */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.vertical-connector {
    width: 2px;
}

.horizontal-connector {
    height: 2px;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.node {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .logo {
        margin-bottom: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 5px 10px;
    }

    .banner {
        height: 300px;
    }

    .banner h1 {
        font-size: 36px;
    }

    .banner p {
        font-size: 18px;
    }

    section {
        padding: 25px;
    }

    h2 {
        font-size: 28px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .level-1, .level-2 {
        gap: 20px;
    }

    .node {
        width: 180px;
        padding: 12px;
    }

    .root-node {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 250px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .org-chart-container {
        padding: 20px 10px;
    }

    .level-1, .level-2 {
        flex-direction: column;
        align-items: center;
    }

    .node {
        width: 200px;
    }

    .root-node {
        width: 220px;
    }
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(10, 17, 40, 0.8);
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}
