:root {
    --primary: #ff4757;
    --dark: #1e1e2e;
    --darker: #11111b;
    --text: #cdd6f4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--darker);
    color: var(--text);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

/* ================= 导航栏样式 (保持紧凑) ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%; /* 减小上下内边距 */
    background: rgba(17, 17, 27, 0.98);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 71, 87, 0.15);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo { 
    font-size: 1.4rem; 
    font-weight: 900; 
    color: var(--primary);
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.5);
    white-space: nowrap; 
    margin-right: 15px; 
    flex-shrink: 0; 
    cursor: pointer;
}

.nav-links { 
    list-style: none; 
    display: flex;
    gap: 15px; 
    flex-wrap: wrap; 
    justify-content: flex-end; 
    align-items: center;
    flex: 1; 
}

.nav-links a { 
    color: #cdd6f4; 
    text-decoration: none; 
    transition: all 0.2s ease; 
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap; 
}

.nav-links a:hover, .nav-links a:active { 
    color: var(--primary); 
    background: rgba(255, 71, 87, 0.1);
}

/* 手机端导航适配 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.8rem 1rem;
        gap: 8px; /* 减小Logo和菜单的间距 */
    }
    .logo { margin-bottom: 2px; font-size: 1.6rem; }
    .nav-links { gap: 5px; justify-content: center; }
    .nav-links a { font-size: 0.85rem; padding: 6px 10px; }
}

/* ================= Hero 区域 (核心修改：大幅压缩高度) ================= */
.hero {
    /* 原来可能是 50vh，现在改为固定高度或更小的比例 */
    height: 35vh; 
    min-height: 280px; /* 保证手机上不会太扁 */
    max-height: 450px;
    
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 2rem; /* 控制 Hero 和下方内容的距离 */
}

/* 遮罩层稍微加深，让文字更清晰 */
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(17,17,27,0.3), var(--darker));
}

.hero-content { position: relative; z-index: 1; padding: 0 20px; width: 100%; }

.hero h1 { 
    font-size: 2.2rem; 
    margin-bottom: 0.8rem; 
    text-shadow: 0 0 20px rgba(255,71,87,0.6); 
    line-height: 1.3;
    letter-spacing: 2px;
}

#hero-subtitle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.subtitle-main { font-size: 1rem; color: #a6adc8; letter-spacing: 1px; }
.subtitle-contact { 
    font-size: 1.1rem; 
    color: var(--primary); 
    font-weight: bold; 
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5); 
}

/* 手机端 Hero 适配 */
@media (max-width: 768px) {
    .hero { height: 30vh; min-height: 240px; margin-bottom: 1.5rem; }
    .hero h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
    .subtitle-main { font-size: 0.9rem; }
    .subtitle-contact { font-size: 1rem; }
}

/* ================= 主容器与内容区 (减小间距) ================= */
.container { 
    max-width: 1000px; /* 稍微收窄一点，阅读体验更好 */
    margin: 0 auto; 
    padding: 0 1rem 3rem 1rem; /* 底部留白 */
}

.tab-content { 
    transition: opacity 0.3s ease; 
    margin-bottom: 2rem; /* 减小板块间的巨大空隙 */
    animation: fadeIn 0.4s ease;
}
.hidden { display: none !important; }
.visible { display: block !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 栏目大标题优化 */
.section-title { 
    font-size: 1.8rem; 
    color: var(--primary); 
    margin: 2rem 0 1.5rem 0; /* 上方留白，下方紧凑 */
    text-align: center;
    font-weight: 800;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* 给标题加个小装饰线，显得更精致 */
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 8px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary);
}

/* ================= 图片展示样式 ================= */
.notice-image-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px; /* 圆角稍微改小，更硬朗 */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05); /* 加个极细的边框增加质感 */
}
.notice-img { width: 100%; height: auto; display: block; }

/* ================= 底部 ================= */
footer { 
    text-align: center; 
    padding: 1.5rem; 
    color: #585b70; 
    font-size: 0.8rem; 
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 2rem;
}