/* ===== 全局重置与基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B0000;
    --primary-dark: #5c0000;
    --primary-light: #a52a2a;
    --gold: #FFD700;
    --gold-dark: #DAA520;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(139,0,0,0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶部导航栏 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(139,0,0,0.98);
}

.header.scrolled .nav-link {
    color: rgba(255,255,255,0.9);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--gold);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
}

.logo img {
    height: 45px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

/* ===== Hero区域 ===== */
.hero {
    margin-top: 70px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 8px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.95;
    letter-spacing: 4px;
}

.hero-slogan {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--gold);
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,215,0,0.3);
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== 通用区块样式 ===== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.section-title h2::before {
    left: -60px;
}

.section-title h2::after {
    right: -60px;
}

.section-title p {
    color: var(--text-medium);
    font-size: 16px;
}

/* ===== 关于创五营 ===== */
.about {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.8;
}

.about-values {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    flex: 1;
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-item .icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--gold);
    font-size: 24px;
    font-weight: bold;
}

.value-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.value-item p {
    font-size: 14px;
    color: var(--text-medium);
    margin: 0;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* ===== 核心理念 ===== */
.philosophy {
    background: white;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.philosophy-card {
    text-align: center;
    padding: 50px 30px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.philosophy-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.philosophy-card .num {
    font-size: 72px;
    font-weight: bold;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
    margin-bottom: -20px;
}

.philosophy-card h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 15px;
}

.philosophy-card .subtitle {
    font-size: 18px;
    color: var(--gold-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

.philosophy-card p {
    color: var(--text-medium);
    font-size: 15px;
}

/* ===== 数据统计 ===== */
.stats {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    color: white;
}

.stat-item .num {
    font-size: 48px;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 10px;
}

.stat-item .label {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== 新闻动态 ===== */
.news {
    background: var(--bg-light);
}

.news-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    color: var(--text-medium);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--bg-light);
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
}

.news-card-content {
    padding: 25px;
}

.news-card-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card-title {
    color: var(--primary);
}

.news-card-summary {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-medium);
    font-size: 14px;
    margin: 0 15px;
}

/* ===== 精彩活动 ===== */
.activities {
    background: white;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.activity-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.activity-card:hover {
    background: white;
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.activity-card-img {
    width: 180px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.activity-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-card-content {
    flex: 1;
}

.activity-card-date {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.activity-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.activity-card:hover .activity-card-title {
    color: var(--primary);
}

.activity-card-desc {
    font-size: 14px;
    color: var(--text-medium);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 校友风采 ===== */
.alumni {
    background: var(--bg-light);
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.alumni-card {
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.alumni-card:hover {
    transform: translateY(-5px);
}

.alumni-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.alumni-card:hover .alumni-avatar {
    border-color: var(--primary);
}

.alumni-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alumni-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.alumni-company {
    font-size: 13px;
    color: var(--text-medium);
}

/* ===== 联系我们 ===== */
.contact {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
}

.contact .section-title h2 {
    color: white;
}

.contact .section-title h2::before,
.contact .section-title h2::after {
    background: var(--gold);
}

.contact .section-title p {
    color: rgba(255,255,255,0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.contact-item {
    text-align: center;
}

.contact-item .icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--gold);
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--gold);
}

.contact-item p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.8;
}

/* ===== 页脚 ===== */
.footer {
    background: #2a0000;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h4 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer h5 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* ===== 回到顶部按钮 ===== */
.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;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
    font-size: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== 新闻详情弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-header {
    padding: 30px 30px 0;
}

.modal-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.modal-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-body {
    padding: 25px 30px 30px;
}

.modal-body img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 25px;
}

.modal-body p {
    margin-bottom: 18px;
    line-height: 1.9;
    color: var(--text-medium);
    text-indent: 2em;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 42px;
        letter-spacing: 4px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .alumni-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 0;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--border);
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        height: 450px;
    }
    
    .hero h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    .hero-slogan {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title h2::before,
    .section-title h2::after {
        display: none;
    }
    
    .about-values {
        flex-direction: column;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-card {
        flex-direction: column;
    }
    
    .activity-card-img {
        width: 100%;
        height: 180px;
    }
    
    .alumni-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .alumni-avatar {
        width: 90px;
        height: 90px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item .num {
        font-size: 36px;
    }
    
    .alumni-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* 加载更多动画 */
.loading {
    text-align: center;
    padding: 20px;
    color: var(--text-medium);
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
