/* --- 基础和原有样式 --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container { max-width: 1100px; margin: 0 auto; background-color: #fff; padding: 20px 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
h2, h3 { color: #2c3e50; border-bottom: 2px solid #ecf0f1; padding-bottom: 10px; }
input, textarea, select { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
button, .btn { background-color: #3498db; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; font-size: 16px; transition: background-color 0.3s ease; }
button:hover, .btn:hover { background-color: #2980b9; }
a { color: #3498db; text-decoration: none; }

/* ... (省略其他未变动样式) ... */
.ads-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.ad-card { border: 1px solid #ddd; border-radius: 8px; padding: 15px; background-color: #fff; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.ad-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.ad-card h4 { margin: 0 0 10px 0; }


/* --- 主要内容和导航样式 --- */
.main-content {
    flex: 1;
    padding-top: 80px;
    padding-bottom: 40px;
}

.navbar {
    background-color: #fff;
    border-bottom: 1px solid #ecf0f1;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0;
    max-width: 1100px;
    margin: 0 auto;
}
.navbar .brand {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}
.navbar .main-nav a {
    margin: 0 15px;
    font-size: 1em;
    color: #34495e;
    transition: color 0.3s;
}
.navbar .main-nav a:hover {
    color: #3498db;
}
.navbar .nav-links a {
    margin-left: 20px;
    font-size: 1em;
}

/* Banner模块样式 */
.banner {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* 装饰元素 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

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

.banner h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    margin-top: 0;
}

.banner p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.banner-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.banner .btn {
    font-size: 1.1em;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
}

.banner .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 静态内容样式 */
.static-content {
    line-height: 1.8;
    color: #555;
}
.static-content p {
    margin-bottom: 1.2em;
}
.static-content ol {
    padding-left: 25px;
}

/* 页脚样式 */
.site-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 40px 0;
    font-size: 0.9em;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.footer-section h4 {
    color: #707070;
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 15px;
}
.footer-section p {
    margin: 0 0 10px;
    line-height: 1.6;
}
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section ul li {
    margin-bottom: 8px;
}
.footer-section a {
    color: #bdc3c7;
    transition: color 0.3s;
}
.footer-section a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid #34495e;
    text-align: center;
    padding-top: 20px;
    font-size: 0.8em;
}
.footer-bottom p {
    margin: 5px 0;
}

/* 复选框样式 */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    line-height: 1;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-bottom: 0;
    flex-shrink: 0;
    transform: translateY(1px);
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 20px;
    line-height: 1.6;
}

.modal-trigger {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
    .banner h1 {
        font-size: 2em;
    }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 15px;
    }
    .checkbox-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .banner {
        padding: 40px 15px;
    }
    .banner h1 {
        font-size: 1.8em;
    }
    .banner-actions {
        flex-direction: column;
        align-items: center;
    }
    .banner .btn {
        width: 80%;
        box-sizing: border-box;
    }
}
