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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 250px;
    display: flex;
    align-items: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

nav {
    background-color: #34495e;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #2c3e50;
}

.hero {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    margin: 10px;
}

.btn:hover {
    background-color: #c0392b;
}

.section {
    padding: 50px 0;
    background-color: white;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.section h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: #34495e;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #3498db;
}

.faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.exam-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 40px;
}

.exam-item {
    text-align: center;
    padding: 20px;
    background-color: #e8f4f8;
    border-radius: 10px;
    width: 200px;
    margin: 10px;
}

.exam-item .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
}

.exam-item .label {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #2c3e50;
}

footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin: 10px 0;
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
}

/* 媒体查询：在小屏幕设备上隐藏右侧公告栏 */
@media (max-width: 768px) {
    #scrolling-notice-container {
        display: none;
    }
}

/* 定义滚动动画 */
@keyframes scrollAnimation {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* 应用动画到公告内容 */
#notice-content.animate {
    animation: scrollAnimation linear infinite;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    position: relative;
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}