/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --secondary: #c62828;
    --accent: #f9a825;
    --dark: #1a1a2e;
    --light: #f5f5f5;
    --white: #ffffff;
    --gray: #757575;
    --gray-light: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--white);
}

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

ul {
    list-style: none;
}

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

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

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

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26,35,126,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* ===== 顶部信息栏 ===== */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
}

.top-info i {
    margin-right: 5px;
    color: var(--accent);
}

.top-links a {
    margin-left: 15px;
    color: var(--gray-light);
}

.top-links a:hover {
    color: var(--accent);
}

/* ===== 导航栏 ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-emblem {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 11px;
}

.logo-text h1 {
    font-size: 18px;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text p {
    font-size: 11px;
    color: var(--gray);
}

.nav a {
    margin-left: 25px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

/* ===== 轮播图 ===== */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slider {
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.banner-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-content .btn {
    margin: 0 10px;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(255,255,255,0.4);
}

.banner-prev {
    left: 30px;
}

.banner-next {
    right: 30px;
}

/* ===== 亮点区域 ===== */
.highlights {
    padding: 60px 0;
    background: var(--light);
}

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

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

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.highlight-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
}

.highlight-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark);
}

.highlight-item p {
    font-size: 14px;
    color: var(--gray);
}

/* ===== 章节头部 ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
}

/* ===== 学校简介 ===== */
.about-section {
    padding: 80px 0;
}

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

.about-text p {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.about-text .btn {
    margin-top: 10px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-top: 5px;
}

/* ===== 院系设置 ===== */
.faculties-section {
    padding: 80px 0;
    background: var(--light);
}

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

.faculty-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.faculty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.faculty-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--dark);
}

.faculty-card p {
    font-size: 13px;
    color: var(--gray);
}

/* ===== 招生信息 ===== */
.admission-section {
    padding: 80px 0;
}

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

.admission-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.admission-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.admission-card.featured {
    border-color: var(--primary);
    background: linear-gradient(to bottom, rgba(26,35,126,0.03), var(--white));
    position: relative;
}

.admission-card.featured::before {
    content: '热门';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.admission-level {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.admission-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--dark);
}

.admission-card ul {
    text-align: left;
    margin-bottom: 25px;
}

.admission-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 14px;
    color: #555;
}

.admission-card li:last-child {
    border-bottom: none;
}

/* ===== 新闻动态 ===== */
.news-section {
    padding: 80px 0;
    background: var(--light);
}

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

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.news-date {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.news-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.4;
}

.news-card p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-card a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

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

/* ===== 合作伙伴 ===== */
.partners-section {
    padding: 60px 0;
}

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

.partner-item {
    text-align: center;
    padding: 25px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.partner-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.partner-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.partner-item p {
    font-size: 13px;
    color: var(--gray);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--gray-light);
}

.footer-col a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-addr {
    font-size: 13px;
    line-height: 1.6;
}

.footer-social {
    margin-top: 15px;
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--primary);
    padding-left: 0;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    color: var(--dark);
}

.qr-placeholder i {
    font-size: 40px;
    margin-bottom: 5px;
}

.qr-placeholder span {
    font-size: 11px;
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admission-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 20px;
        flex-direction: column;
    }
    .nav.active {
        display: flex;
    }
    .nav a {
        margin: 10px 0;
        margin-left: 0;
    }
    .banner {
        height: 350px;
    }
    .banner-content h2 {
        font-size: 26px;
    }
    .banner-content p {
        font-size: 16px;
    }
    .highlight-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .faculty-grid {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .highlight-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    .banner-prev,
    .banner-next {
        display: none;
    }
}

/* ===== 内页通用样式 ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--white);
}

.page-banner h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 16px;
    opacity: 0.8;
}

.page-content {
    padding: 60px 0;
}

.page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

/* ===== 联系表单 ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-item p {
    font-size: 14px;
    color: #555;
}
