/* ===== 1. 深空动态星空背景 ===== */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    background: radial-gradient(ellipse at center, #0a0a12 0%, #000000 100%);
}

/* ===== 2. 基础重置与布局 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Noto Serif SC', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #e0e0ff;
    background-color: transparent;
    position: relative;
    overflow-x: hidden;
    text-shadow: 0 0 8px rgba(224, 224, 255, 0.3);
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== 3. 顶部导航栏 (发光玻璃质感) ===== */
.main-header {
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    padding: 1.2rem 0;
    box-shadow: 
        0 4px 30px rgba(0, 150, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(64, 156, 255, 0.3);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo h1 {
    font-size: 1.9rem;
    margin-bottom: 0.2rem;
    background: linear-gradient(90deg, #fff, #a0c8ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 
        0 0 15px rgba(160, 200, 255, 0.7),
        0 0 30px rgba(64, 156, 255, 0.4);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.logo-subtitle {
    font-size: 0.75rem;
    color: #b0d0ff;
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(176, 208, 255, 0.5);
    letter-spacing: 1px;
}

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: #4fc3f7;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.7);
}
.hamburger:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.main-nav a {
    color: #c0e0ff;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 0 6px rgba(192, 224, 255, 0.5);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4fc3f7, #29b6f6, transparent);
    box-shadow: 0 0 10px #4fc3f7;
    transition: width 0.4s ease;
}
.main-nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}
.main-nav a:hover::after {
    width: 100%;
}

/* ===== 4. 横幅大图区 (全屏发光标题) ===== */
.hero {
    height: 85vh;
    min-height: 550px;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, 
        rgba(20, 25, 60, 0.4) 0%, 
        rgba(5, 10, 30, 0.7) 70%,
        rgba(0, 5, 20, 0.9) 100%);
}
.hero-title {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 1.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(79, 195, 247, 0.6),
        0 0 80px rgba(41, 182, 246, 0.4);
    animation: glowPulse 3s infinite alternate;
}
@keyframes glowPulse {
    0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(79, 195, 247, 0.6), 0 0 80px rgba(41, 182, 246, 0.4); }
    100% { text-shadow: 0 0 25px rgba(255, 255, 255, 0.9), 0 0 50px rgba(79, 195, 247, 0.7), 0 0 100px rgba(41, 182, 246, 0.5); }
}
.hero-subtitle {
    color: #d0e8ff;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(208, 232, 255, 0.7);
}
.hero-button {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 1.2rem 3.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 1.3rem;
    border: 2px solid rgba(64, 156, 255, 0.6);
    box-shadow: 
        0 0 20px rgba(41, 182, 246, 0.5),
        inset 0 0 20px rgba(41, 182, 246, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(79, 195, 247, 0.6),
        0 0 60px rgba(41, 182, 246, 0.4);
}
.hero-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(64, 156, 255, 0.2), 
        rgba(41, 182, 246, 0.2), 
        rgba(100, 220, 255, 0.2), 
        rgba(64, 156, 255, 0.2));
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.hero-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.7s ease;
    z-index: -1;
}
.hero-button:hover {
    transform: translateY(-5px);
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.9),
        0 0 40px rgba(79, 195, 247, 0.7),
        0 0 80px rgba(41, 182, 246, 0.5);
    border-color: rgba(100, 220, 255, 0.8);
    box-shadow: 
        0 0 30px rgba(41, 182, 246, 0.7),
        inset 0 0 25px rgba(41, 182, 246, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.3);
}
.hero-button:hover::before {
    opacity: 1;
}
.hero-button:hover::after {
    left: 100%;
}

/* ===== 5. 核心内容区 (发光玻璃卡片) ===== */
.content-section {
    margin: 6rem 0;
    background: rgba(15, 20, 40, 0.65);
    backdrop-filter: blur(15px) saturate(160%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 30, 60, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(64, 156, 255, 0.25);
    position: relative;
    overflow: hidden;
}
.content-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(64, 156, 255, 0.1), 
        rgba(41, 182, 246, 0.1), 
        rgba(100, 220, 255, 0.1), 
        rgba(64, 156, 255, 0.1));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.7;
}
.section-title {
    font-size: 2.4rem;
    color: #ffffff;
    margin-bottom: 2.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid rgba(79, 195, 247, 0.5);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #4fc3f7, transparent);
    box-shadow: 0 0 10px #4fc3f7;
}
.section-title i {
    margin-right: 15px;
    color: #4fc3f7;
    text-shadow: 0 0 10px #4fc3f7;
}
.section-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #d0e0f0;
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 0 0 5px rgba(208, 224, 240, 0.3);
}

/* ===== 6. 研究领域长条形列表 (光边卡片) ===== */
.research-list {
    margin-top: 3rem;
}
.research-item {
    background: rgba(20, 30, 60, 0.5);
    border-left: 6px solid #29b6f6;
    padding: 2.2rem;
    margin-bottom: 2rem;
    border-radius: 0 15px 15px 0;
    transition: all 0.4s ease;
    border: 1px solid rgba(64, 156, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.research-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(41, 182, 246, 0.1), 
        transparent);
    transition: left 0.7s ease;
}
.research-item:hover {
    transform: translateX(10px);
    background: rgba(25, 35, 70, 0.7);
    box-shadow: 
        0 10px 30px rgba(41, 182, 246, 0.3),
        0 0 30px rgba(41, 182, 246, 0.1) inset;
    border-color: rgba(64, 156, 255, 0.4);
}
.research-item:hover::before {
    left: 100%;
}
.research-item h3 {
    color: #90caf9;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    text-shadow: 0 0 10px rgba(144, 202, 249, 0.5);
}
.research-item p {
    color: #c0d8f0;
    line-height: 1.8;
    font-size: 1.08rem;
}
.research-item em {
    color: #a0c0e0;
    font-style: italic;
    text-shadow: 0 0 8px rgba(160, 192, 224, 0.4);
}

/* ===== 7. 组织声明样式 ===== */
.statement-content {
    background: rgba(25, 35, 70, 0.6);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(79, 195, 247, 0.3);
    box-shadow: 
        inset 0 0 30px rgba(0, 50, 100, 0.3),
        0 5px 20px rgba(0, 30, 60, 0.4);
}
.statement-content p {
    margin-bottom: 1.5rem;
    color: #d0e0f0;
    line-height: 1.8;
}
.text-right {
    text-align: right;
    font-style: italic;
    color: #90caf9;
    margin-top: 1.5rem;
    text-shadow: 0 0 8px rgba(144, 202, 249, 0.5);
}

/* ===== 8. 新闻动态模块 (可展开光晕卡片) ===== */
.news-container {
    margin-top: 1.5rem;
}
.news-item {
    background: rgba(20, 30, 60, 0.6);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(64, 156, 255, 0.25);
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 20, 50, 0.4);
}
.news-item.active {
    border-color: rgba(41, 182, 246, 0.6);
    box-shadow: 
        0 10px 30px rgba(41, 182, 246, 0.3),
        0 0 30px rgba(41, 182, 246, 0.1) inset;
}
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: rgba(30, 45, 80, 0.7);
    transition: background 0.4s;
}
.news-header:hover {
    background: rgba(35, 50, 90, 0.8);
}
.news-date {
    color: #4fc3f7;
    font-weight: bold;
    min-width: 110px;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(79, 195, 247, 0.7);
}
.news-header h3 {
    flex: 1;
    margin: 0 2rem;
    color: #e0f0ff;
    font-size: 1.3rem;
    font-weight: 500;
}
.news-toggle {
    color: #4fc3f7;
    transition: all 0.4s ease;
    text-shadow: 0 0 8px rgba(79, 195, 247, 0.7);
}
.news-item.active .news-toggle {
    transform: rotate(180deg);
    color: #29b6f6;
}
.news-detail {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    background: rgba(15, 25, 50, 0.7);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-item.active .news-detail {
    max-height: 800px;
    padding: 2rem;
}



/* ===== 10. 页脚 (发光底部) ===== */
.main-footer {
    background: linear-gradient(to top, 
        rgba(10, 20, 40, 0.95), 
        rgba(20, 35, 70, 0.9));
    color: #b0d0ff;
    padding: 3rem 0;
    margin-top: 6rem;
    text-align: center;
    border-top: 1px solid rgba(64, 156, 255, 0.3);
    border-bottom: 1px solid rgba(64, 156, 255, 0.2);
    position: relative;
}
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(64, 156, 255, 0.6), 
        transparent);
}
.footer-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(176, 208, 255, 0.5);
}
.main-footer strong {
    color: #ffffff;
    font-size: 1.3rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

/* ===== 11. 移动端响应式设计 ===== */
@media (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .hamburger {
        display: block;
    }
    
    /* 隐藏默认导航栏 */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 20, 40, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        display: flex;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(64, 156, 255, 0.3);
        overflow-y: auto;
    }
    
    /* 导航栏激活状态 */
    .main-nav.active {
        right: 0;
    }
    
    /* 导航链接在移动端的样式 */
    .main-nav a {
        margin: 0 0 1.5rem 0;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 8px;
        background: rgba(30, 45, 80, 0.6);
        border: 1px solid rgba(79, 195, 247, 0.3);
        transition: all 0.3s ease;
        text-align: center;
    }
    
    .main-nav a:hover {
        background: rgba(41, 182, 246, 0.3);
        transform: translateX(-5px);
    }
    
    /* 移除导航链接的下划线效果 */
    .main-nav a::after {
        display: none;
    }
    
    /* 调整容器 */
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .main-header .container {
        position: relative;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }
    
    /* 调整横幅区域 */
    .hero {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    /* 调整内容卡片 */
    .content-section {
        padding: 2rem 1.5rem;
        margin: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
    }
    
    .section-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* 调整研究项目 */
    .research-item {
        padding: 1.5rem;
    }
    
    .research-item h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .research-item p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* 调整新闻项 */
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
    }
    
    .news-header h3 {
        margin: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .news-date {
        min-width: auto;
        margin-bottom: 0.5rem;
    }
    
    .news-detail {
        padding: 0 1.2rem;
    }
    
    .news-item.active .news-detail {
        padding: 1.5rem;
    }
    
    /* 移动端弹窗全面修复 */
    .modal {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 85vh !important;
        padding: 1rem !important;
        border-radius: 15px !important;
    }
    
    .modal-content {
        max-height: calc(85vh - 2rem) !important;
        padding: 0 !important;
        overflow-y: auto !important;
    }
    
    .close-modal {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        line-height: 45px !important;
        font-size: 1.8rem !important;
        z-index: 2002 !important;
        background: rgba(30, 45, 80, 0.95) !important;
        border: 2px solid rgba(79, 195, 247, 0.6) !important;
    }
    
    .modal h2 {
        font-size: 1.6rem !important;
        margin-bottom: 0.8rem !important;
        padding-right: 40px !important;
        margin-top: 0.5rem !important;
    }
    
    .modal-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 0.8rem !important;
    }
    
    /* 成员列表适配 */
    .member-list {
        margin: 1.5rem 0 !important;
    }
    
    .member-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 1.2rem 0.8rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .member-avatar {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .member-detail h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .member-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.6rem !important;
        padding-bottom: 0.4rem !important;
    }
    
    .member-detail > p:last-of-type {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* 搜索框适配 */
    .search-box {
        padding: 1.2rem 0.8rem !important;
        margin-top: 1.5rem !important;
    }
    
    .search-box h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .search-box p {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }
    
    .search-box input {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0.8rem !important;
        font-size: 0.9rem !important;
        padding: 0.7rem 0.9rem !important;
    }
    
    .search-box button {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0.7rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
    
    /* 搜索结果适配 */
    #searchResult {
        margin-top: 1rem !important;
        padding: 0.8rem !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    #searchResult a {
        display: block !important;
        margin-top: 0.4rem !important;
        font-size: 0.85rem !important;
        word-break: break-all !important;
    }
    
    /* 通知消息弹窗适配 */
    .notice-message {
        padding: 1.2rem 0.8rem !important;
        margin-top: 1rem !important;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .notice-message p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.8rem !important;
        word-wrap: break-word;
    }
    
    .notice-message .text-right {
        margin-top: 1.2rem !important;
        font-size: 0.85rem !important;
    }
}

/* 更小屏幕的适配 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* 更小屏幕的弹窗适配 */
    .modal {
        width: 98% !important;
        max-height: 90vh !important;
        padding: 0.8rem !important;
        border-radius: 12px !important;
    }
    
    .modal-content {
        max-height: calc(90vh - 1.6rem) !important;
    }
    
    .close-modal {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 1.5rem !important;
    }
    
    .member-avatar {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }
    
    .member-detail h3 {
        font-size: 1.1rem !important;
    }
    
    .notice-message {
        max-height: 65vh;
    }
}