/* chapter1.css 独立样式 */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* 正文红色重点文字 */
.text-red {
    color: #d92121;
    font-weight: 600;
}

/* 考点标题重点高亮（核心新增样式） */
.point-title {
    color: #d92121;
    font-weight: 700;
    font-size: 1.45rem;
    padding-left: 12px;
    border-left: 4px solid #d92121;
    background: #fff5f5;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 2rem 0 1rem;
}

/* ===== Header 头部样式（和原页面保持一致） ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid #e6eaf0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.logo span {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e3c72;
}
nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    font-size: 0.95rem;
    color: #555;
    transition: color 0.2s ease;
}
nav a:hover {
    color: #1e3c72;
}

/* ===== 页面顶部banner ===== */
.chapter-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
}
.chapter-header h1 {
    margin: 0 0 0.6rem;
    font-size: 1.8rem;
    font-weight: 600;
}
.chapter-header p {
    max-width:720px;
    margin:0 auto;
    font-size:0.95rem;
    opacity:0.9;
}

/* ===== 主容器 ===== */
.chapter-container {
    max-width:900px;
    margin: -3rem auto 4rem;
    padding:0 1.2rem;
}
.chapter-content {
    background: #ffffff;
    border-radius:18px;
    padding:2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    line-height:1.8;
    font-size:1rem;
    color:#333;
}
.chapter-content h2 {
    font-size:1.4rem;
    color:#1e3c72;
    margin:1.8rem 0 0.6rem;
}
.chapter-content h3 {
    font-size:1.2rem;
    color:#2a5298;
    margin:1.5rem 0 0.6rem;
}
.chapter-content p {
    margin:0.6rem 0;
}
.chapter-divider {
    border:none;
    border-top:2px solid #1e3c72;
    margin:2em 0;
}

/* 树形结构图样式 */
.tree-box {
    border:1px solid #d9dee8;
    border-radius:12px;
    padding:1rem;
    margin:1rem 0;
    background:#f9fafc;
}
.tree-row {
    display:flex;
    gap:6px;
    margin:4px 0;
}

/* 页面翻页导航 */
.page-nav {
    display:flex;
    justify-content: space-between;
    margin-top:2rem;
}
.nav-link {
    display:inline-block;
    font-size:0.9rem;
    color:#1e3c72;
    text-decoration:none;
    border-bottom:1px solid rgba(30,60,114,0.35);
    transition: color 0.25s ease, border-color 0.25s ease;
}
.nav-link:hover {
    color:#2a5298;
    border-color:#2a5298;
}

/* ===== Footer底部 ===== */
footer {
    background: #ffffff;
    border-top:1px solid #e6eaf0;
    padding:2rem 1rem;
    text-align:center;
    font-size:0.85rem;
    color:#666;
}
footer p {
    margin:0.4rem 0;
}
footer a {
    color:#1e3c72;
    text-decoration:none;
    margin:0 0.3rem;
}
footer a:hover {
    text-decoration:underline;
}

/* ===== 响应式适配手机 ===== */
@media (max-width:768px) {
    header {
        flex-direction:column;
        gap:0.8rem;
    }
    nav a {
        margin-left:0.8rem;
        margin-right:0.8rem;
    }
    .chapter-header h1 {
        font-size:1.5rem;
    }
    .chapter-content {
        padding:1.2rem;
        font-size:0.95rem;
        border-radius:14px;
    }
    .chapter-content h2 {
        font-size:1.25rem;
    }
    .chapter-content h3 {
        font-size:1.1rem;
    }
    .page-nav {
        flex-direction:column;
        gap:1rem;
        text-align:center;
    }
    /* 移动端适配考点标题 */
    .point-title {
        font-size: 1.25rem;
        padding: 6px 10px;
    }
}
@media (max-width:480px) {
    header {
        padding:1rem;
    }
    .chapter-header {
        padding:2rem 1rem 3rem;
    }
    .chapter-container {
        padding:0 0.8rem;
    }
    .chapter-content {
        padding:1rem;
    }
}

/* 登记证书表格样式 */
.tax-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.tax-table th,
.tax-table td {
    border: 1px solid #d9dee8;
    padding: 0.8rem 0.6rem;
    vertical-align: middle;
}
.tax-table th {
    background-color: #f0f4f9;
    color: #1e3c72;
    font-weight: 600;
}
.tax-table tr:nth-child(even) {
    background-color: #f9fafc;
}
/* 移动端表格适配 */
@media (max-width:768px) {
    .tax-table th,
    .tax-table td {
        padding: 0.6rem 0.4rem;
        font-size:0.9rem;
    }
}
