/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #1890ff;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #f5222d;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --border-color: #d9d9d9;
    --bg-light: #f5f7fa;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: #fff;
}

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

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

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

.header-info span {
    margin-right: 30px;
}

.header-date {
    font-weight: 500;
}

/* ==================== 主导航 ==================== */
.header-main {
    background: white;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-link {
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 15px;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* ==================== 轮播图 ==================== */
.banner {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.banner-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

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

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

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

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

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-block {
    width: 100%;
}

/* ==================== 快速入口 ==================== */
.quick-access {
    padding: 60px 0;
    background: white;
}

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

.access-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s;
}

.access-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: transparent;
}

.access-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.access-item h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.access-item p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==================== 通知列表 ==================== */
.notice-section,
.about-section,
.requirements-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.more-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.more-link:hover {
    color: var(--primary-color);
}

.notice-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 15px;
    background: var(--bg-light);
    color: var(--text-secondary);
}

.notice-item.important .notice-tag {
    background: #fff1f0;
    color: var(--error-color);
}

.notice-item a {
    flex: 1;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.notice-item a:hover {
    color: var(--primary-color);
}

.notice-date {
    color: var(--text-light);
    font-size: 13px;
}

/* ==================== 关于考试 ==================== */
.about-section {
    background: white;
}

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

.about-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.about-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.about-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== 报考须知 ==================== */
.requirements-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.req-column {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.req-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.req-column ul {
    list-style: none;
}

.req-column li {
    padding: 12px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
}

.req-column li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ==================== 联系我们 ==================== */
.contact-section {
    padding: 60px 0;
    background: var(--bg-light);
}

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

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

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== 面包屑 ==================== */
.breadcrumb {
    background: var(--bg-light);
    padding: 12px 0;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-light);
}

/* ==================== 查询页面 ==================== */
.query-section {
    padding: 60px 0;
    background: var(--bg-light);
    min-height: 60vh;
}

.query-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.query-header {
    text-align: center;
    margin-bottom: 40px;
}

.query-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.query-header p {
    color: var(--text-secondary);
}

.query-form .form-group {
    margin-bottom: 25px;
}

.query-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.query-form label svg {
    color: var(--primary-color);
}

.query-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.query-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
}

.query-tips {
    margin-top: 30px;
    padding: 20px;
    background: #f6ffed;
    border-left: 4px solid var(--success-color);
    border-radius: 4px;
}

.query-tips h4 {
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--success-color);
}

.query-tips ul {
    list-style: none;
}

.query-tips li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    font-size: 13px;
    color: var(--text-secondary);
}

.query-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* ==================== 查询结果 ==================== */
.query-result {
    max-width: 700px;
    margin: 40px auto 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--primary-color);
    color: white;
}

.result-header h3 {
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.3s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.result-content {
    padding: 30px;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    font-weight: 500;
    margin-bottom: 25px;
}

.result-info {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.info-row {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    width: 100px;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-row .value {
    flex: 1;
    color: var(--text-primary);
}

.info-row .value.status {
    font-weight: 600;
}

.result-note {
    margin-top: 20px;
    padding: 15px;
    background: #e6f7ff;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #001529;
    color: rgba(255,255,255,0.65);
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-content p {
    margin: 8px 0;
    font-size: 13px;
}

.copyright {
    margin-top: 20px !important;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.5;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .access-grid,
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .requirements-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .access-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .query-container {
        padding: 30px 20px;
    }
}
