:root {
    --primary-color: #0066cc;
    --secondary-color: #d92121;
    --accent-color: #ff9800;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f5f7fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(135deg, var(--primary-color), #004499);
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

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

.logo-icon {
    font-size: 2rem;
    color: #ffcc00;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: inherit;
    text-decoration: none;
}

.logo-text:hover {
    text-decoration: underline;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    margin: 2rem auto;
}

.back-button:hover {
    background-color: #004499;
    transform: translateY(-2px);
}

.header-contact {
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-contact i {
    color: #ffcc00;
}

/* 主要内容 */
main {
    padding: 0 0 3rem;
}

.page-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.page-description {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* 横版广告位样式 */
.ad-section {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.ad-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ad-top {
    background: linear-gradient(90deg, var(--primary-color), #0099ff);
}

.ad-middle {
    background: linear-gradient(90deg, var(--accent-color), #ffb347);
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    color: white;
    gap: 1.5rem;
}

.ad-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.ad-text {
    flex: 1;
}

.ad-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.ad-text p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.ad-button {
    background-color: white;
    color: var(--text-dark);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.ad-top .ad-button {
    color: var(--primary-color);
}

.ad-middle .ad-button {
    color: var(--accent-color);
}

.ad-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 重要概念导航 */
.concept-nav {
    background-color: #f0f7ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.concept-nav h2 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.concept-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.concept-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.concept-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.concept-name {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.concept-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 政策卡片 */
.policy-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2.5rem;
}

.card-header {
    padding: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #2196f3, #0d47a1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header i {
    font-size: 1.8rem;
}

.card-header h2 {
    font-size: 1.5rem;
}

/* 重要提示 */
.important-note {
    background-color: #fff8e1;
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 1.5rem 0;
    border-radius: 4px;
}

.important-note h3 {
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 规则详解 */
.rule-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.rule-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rule-content {
    background-color: var(--light-bg);
    padding: 1.2rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

/* 策略卡片 */
.strategy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.strategy-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.strategy-header {
    padding: 1.2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.strategy-1 .strategy-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.strategy-2 .strategy-header {
    background: linear-gradient(135deg, #4ecdc4, #2d9b93);
}

.strategy-3 .strategy-header {
    background: linear-gradient(135deg, #ffd166, #ffb347);
}

.strategy-body {
    padding: 1.2rem;
}

.strategy-body h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.strategy-body ul {
    list-style-type: none;
    padding-left: 0;
}

.strategy-body li {
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.strategy-body li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 误区与注意事项 */
.warning-section {
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 6px;
    margin: 2rem 1.5rem 0;
}

.warning-section h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-list {
    margin-left: 1.5rem;
}

.warning-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0.5rem;
}

/* 返回按钮 */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    margin: 2rem auto;
}

.back-button:hover {
    background-color: #004499;
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: #ffcc00;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: bold;
}

.footer-description {
    color: #b0bec5;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-links h3, .footer-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #b0bec5;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.contact-item i {
    color: var(--primary-color);
    margin-top: 3px;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #37474f;
    color: #b0bec5;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .ad-content {
        padding: 1.2rem 1.5rem;
    }

    .ad-text h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .ad-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .ad-text h3 {
        font-size: 1.3rem;
    }

    .ad-button {
        width: 100%;
        justify-content: center;
    }

    .ad-badge {
        align-self: center;
    }

    .concept-links {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .strategy-cards {
        grid-template-columns: 1fr;
    }

    .card-header {
        padding: 1.2rem;
        flex-wrap: wrap;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ad-section {
        margin: 1.5rem 0;
    }

    .ad-content {
        padding: 1.2rem;
    }

    .ad-text h3 {
        font-size: 1.1rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .back-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    .page-title {
        font-size: 1.4rem;
    }
}

/* ===== 分数段数据表格 ===== */
.score-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.score-summary .stat-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.score-summary .stat-box .stat-num {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
}

.score-summary .stat-box .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}

.score-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
    background: var(--card-bg);
}

.score-table thead th {
    background: linear-gradient(135deg, var(--primary-color), #004499);
    color: #fff;
    padding: 0.7rem 0.8rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.score-table tbody td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: top;
}

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

.score-table tbody tr:hover {
    background: #eef5ff;
}

.score-table .tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin: 1px 2px 1px 0;
    white-space: nowrap;
}

.tag-985 { background: #fdecea; color: #d92121; border: 1px solid #f5b7b1; }
.tag-211 { background: #fff4e6; color: #e67e22; border: 1px solid #f5cba7; }
.tag-syl { background: #eaf3ff; color: #0066cc; border: 1px solid #aed6f1; }
.tag-szd { background: #eef9ee; color: #2e7d32; border: 1px solid #a9dfbf; }
.tag-mb { background: #f2f4f7; color: #5f6b7a; border: 1px solid #d3d9e0; }

.score-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
    .score-table { font-size: 0.85rem; }
    .score-table thead th, .score-table tbody td { padding: 0.5rem 0.5rem; }
}

/* 表格搜索框 */
.table-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1rem 0 0.5rem;
    padding: 0.7rem 0.9rem;
    background: #f0f6ff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.table-search i {
    color: var(--primary-color);
    font-size: 1rem;
}

.table-search input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0.7rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.table-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.table-search .search-count {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

.table-search .search-count b {
    color: var(--primary-color);
}

@media print {
    .ad-section { display: none; }
    .table-search { display: none; }
    .back-button { display: none; }
}
