/* 全局字体 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* 弹窗遮罩层 */
#announcement-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 弹窗样式 */
#announcement-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
}

#announcement-modal h2 {
    margin-top: 0;
    font-size: 24px;
    color: #007bff;
}

#announcement-modal button {
    display: block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#announcement-modal button:hover {
    background-color: #0056b3;
}

/* 滚动公告样式 */
#scrolling-announcement {
    position: sticky;
    top: 60px;
    width: 100%;
    background: linear-gradient(90deg, #007bff, #00bfff);
    padding: 12px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border-radius: 8px;
    margin-top: 10px;
    color: white;
    font-weight: 500;
}

#scrolling-announcement marquee {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-text 25s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
}

.nav {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #007bff;
}

/* 卡片样式 */
.card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.card h2 {
    font-size: 22px;
    color: #007bff;
    margin-top: 0;
}

.card p {
    font-size: 16px;
    line-height: 1.6;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.button:hover {
    background-color: #0056b3;
}

/* 版权样式 */
.copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #666;
}