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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}

.main-nav {
    background-color: #e53935;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.hero {
    background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('pattern.png');
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature span {
    font-size: 1.1rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.courses {
    padding: 2rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.course-card {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.course-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.course-card p {
    color: #666;
    margin-bottom: 0.5rem;
}

.course-card .note {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
}

.btn {
    display: inline-block;
    background-color: #e53935;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
}

.scores {
    padding: 2rem;
}

.score-table {
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.score-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 0.9rem;
}

.score-table th,
.score-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #eee;
}

.score-table th {
    background-color: #e53935;
    color: white;
    font-weight: bold;
}

.score-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.score-table tr:hover {
    background-color: #f5f5f5;
}

@media (max-width: 768px) {
    .score-table th,
    .score-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

footer {
    background-color: #333;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* 联系按钮样式 */
.contact-btn {
    background-color: #e53935;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.contact-btn:hover {
    background-color: #c62828;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #e53935;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #e53935;
}

.contact-text h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 30% auto;
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* 导航栏联系方式样式 */
.contact-link {
    display: flex;
    align-items: center;
    font-weight: bold;
}

.contact-link:hover {
    color: #ffeb3b;
}

/* 页脚联系信样式 */
.contact-info {
    max-width: 800px;
    margin: 0 auto;
}

.contact-phone {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1rem 0;
}

.contact-address {
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-phone {
        font-size: 1rem;
    }
    
    .contact-address {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}

/* Logo 样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 2rem;
    }

    .feature {
        flex-direction: row;
        gap: 1rem;
    }
}

/* 导航栏联系按钮样式 */
.nav-contact-btn {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-contact-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
}

.nav-contact-btn::before {
    content: '📞';
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #e53935;
        flex-direction: column;
        padding: 1rem;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .logo-img {
        height: 32px;
    }
}

/* 校园环展示区样式 */
.campus-showcase {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.campus-showcase h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
}

.campus-showcase h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #e53935;
    margin: 1rem auto;
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.campus-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.campus-item:hover {
    transform: translateY(-5px);
}

.campus-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.campus-item:hover .campus-img {
    transform: scale(1.1);
}

.campus-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1rem 1rem;
    color: white;
    text-align: center;
}

.campus-overlay p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .campus-showcase {
        padding: 2rem 1rem;
    }

    .campus-grid {
        grid-template-columns: 1fr;
    }

    .campus-img {
        height: 250px;
    }
}

/* 优化整体页面布局 */
main {
    background-color: white;
}

section {
    position: relative;
    z-index: 1;
}

/* 添加页面过渡效果 */
.section-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section-transition.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 课程分类按钮样式 */
.course-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #e53935;
    background: transparent;
    color: #e53935;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active, .category-btn:hover {
    background: #e53935;
    color: white;
}

/* 展开/收起效果 */
.score-table.collapsed {
    max-height: 500px; /* 调整初始显示的高度 */
    overflow: hidden;
    position: relative;
}

.score-table.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, white);
}

.score-table.expanded {
    max-height: none;
}

.score-table.expanded::after {
    display: none;
}

/* 查看更多按钮 */
.show-more-btn {
    display: block;
    margin: 2rem auto;
    padding: 0.8rem 2rem;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: #c62828;
    transform: translateY(-2px);
}

/* 搜索框样式 */
.score-search {
    margin: 2rem auto;
    max-width: 500px;
    padding: 0 1rem;
}

.score-search input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.score-search input:focus {
    border-color: #e53935;
    outline: none;
    box-shadow: 0 0 5px rgba(229, 57, 53, 0.2);
}

/* 导航栏电话号码样式 */
.nav-phone {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-phone:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.nav-phone::before {
    content: '📞';
    margin-right: 0.5rem;
}

/* 调整移动端 */
@media (max-width: 768px) {
    .nav-phone {
        text-align: center;
        justify-content: center;
    }
}

/* 修改弹窗样式，使用表格形式展示 */
.contact-table {
    margin: 2rem 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.contact-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 0.9rem;
}

.contact-table th,
.contact-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #eee;
}

.contact-table th {
    background-color: #e53935;
    color: white;
    font-weight: bold;
    width: 120px;
}

.contact-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.contact-table tr:hover {
    background-color: #f5f5f5;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    margin: 10% auto;
    padding: 2rem;
}

.modal-content h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.modal-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #e53935;
    margin: 1rem auto;
}

@media (max-width: 768px) {
    .contact-table th,
    .contact-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .contact-table th {
        width: 90px;
    }
}

/* 修改导航栏布局样式 */
.main-nav {
    background-color: #e53935;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* logo 样式保持不变 */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 修改导航链接列表样式 */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

/* 导航链接样式保持不变 */
.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* 添加导航栏容器 */
header {
    background-color: #e53935;
    width: 100%;
    padding: 0;
}

/* 移动端导航栏样式优化 */
@media (max-width: 768px) {
    .main-nav {
        padding: 0.5rem 1rem;
        position: relative;
    }

    .nav-links {
        display: none; /* 默认隐藏菜单 */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #e53935;
        flex-direction: column;
        padding: 0;
        z-index: 1000;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    /* 汉堡菜单按钮样式 */
    .menu-btn {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    /* Hero 区域移动端优化 */
    .hero {
        padding: 2rem 1rem;
    }

    .hero-logo {
        width: 100px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* 课程分类按钮移动端优化 */
    .course-categories {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .category-btn {
        width: 90%;
        text-align: center;
    }

    /* 课程卡片移动端优化 */
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    /* 分数线表格移动端优化 */
    .score-table {
        margin: 1rem 0;
    }

    .score-table th,
    .score-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* 联系方式弹窗移动端优化 */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1rem;
    }

    .contact-table th,
    .contact-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    /* 校园环境展示区移动端优化 */
    .campus-showcase {
        padding: 2rem 1rem;
    }

    .campus-grid {
        grid-template-columns: 1fr;
    }

    .campus-img {
        height: 200px;
    }
}

/* 添加更小屏幕的适配 */
@media (max-width: 480px) {
    .hero-logo {
        width: 80px;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .course-card {
        padding: 1rem;
    }

    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* 年份切换按钮样式 */
.score-years {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.year-btn {
    padding: 0.5rem 2rem;
    border: 2px solid #e53935;
    background: transparent;
    color: #e53935;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.year-btn.active {
    background: #e53935;
    color: white;
}

.year-btn:hover {
    background: #e53935;
    color: white;
}

/* 修改浮动表情动画样式 */
.floating-emoji {
    position: fixed;
    font-size: 1.8rem;  /* 增大基础大小 */
    pointer-events: none;
    animation: floatUp 1.8s ease-out forwards;
    z-index: 9999;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);  /* 添加阴影 */
    filter: saturate(1.2);  /* 增加颜色饱和度 */
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120px) scale(1.4);
        opacity: 0;
    }
} 