/* ========================================
   国学考点模块 - 公共样式（手机端优先版）
   适用于：考点列表页 + 所有考点详情页
   设计原则：手机端字体至少16px，列表页单列排列，详情页便于阅读
   最后更新：2026-04-25
   ======================================== */

/* 全局设置 - 手机端优先 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础字体：手机端16px保证可读性 */


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

/* ========== 面包屑导航 ========== */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #2d6a4f;
    text-decoration: none;
}

/* ========== 主卡片 ========== */
.main-card {
    background: #ffffffcc;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

/* 卡片头部 */
.card-header {
    /*background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);*/
    padding: 24px 20px;
}

.card-header h1 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.card-header .order {
    display: inline-block;
    background: #f4ebd1;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 15px;
}

.card-header .definition {
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.5;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 卡片主体 */
.card-body {
    padding: 24px 20px;
}

/* ========== 内容区块 ========== */
.section {
    margin-bottom: 32px;
    border-bottom: 1px solid #eee;
    padding-bottom: 24px;
    background: #4b5b6517;
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #782c10;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .icon {
    font-size: 24px;
}

.section-content {
    padding-left: 0;
    font-size: 16px;
}

/* 详细内容列表 */
.content-list {
    list-style: none;
}

.content-list li {
    margin-bottom: 14px;
    padding-left: 20px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

.content-list li:before {
    content: "•";
    color: #2d6a4f;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.content-list strong {
    color: #1b4332;
    display: inline-block;
    min-width: 40px;
}

/* 信息表格 - 手机端改为卡片式布局 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

/* 手机端：表格改为块级显示，每个条目独立成卡片 */
.info-table,
.info-table tbody,
.info-table tr,
.info-table th,
.info-table td {
    display: block;
}

.info-table tr {
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.info-table th {
    background: #f4ebd1;
    padding: 12px 15px;
    font-weight: 600;
    color: #1b4332;
    border-bottom: none;
    font-size: 16px;
}

.info-table td {
    padding: 12px 15px;
    border-top: none;
    font-size: 16px;
    line-height: 1.6;
}

/* PC端保持表格样式 */
@media (min-width: 769px) {
    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table th,
    .info-table td {
        display: table-cell;
    }
    
    .info-table tr {
        display: table-row;
        margin-bottom: 0;
        border: none;
    }
    
    .info-table th,
    .info-table td {
        border: 1px solid #e0e0e0;
        padding: 12px 15px;
        text-align: left;
        vertical-align: top;
        display: table-cell;
    }
    
    .info-table th {
        background: #f4ebd1;
        width: 25%;
    }
}

/* 常考形式 */
.exam-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}

.exam-question {
    font-weight: 600;
    margin-bottom: 12px;
    color: #1b4332;
    font-size: 17px;
    line-height: 1.5;
}

.exam-options {
    margin-bottom: 12px;
    padding-left: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}

.exam-answer {
    background: #f4ebd1;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 16px;
    margin-top: 12px;
    line-height: 1.5;
}

/* 真题示例 */
.zhen-ti {
    background: #f4ebd1;
    border-left: 4px solid #9b4e31;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}

.zhen-ti-title {
    font-weight: 600;
    color: #1b4332;
    margin-bottom: 12px;
    font-size: 15px;
}

.zhen-ti-question {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 16px;
}

.zhen-ti-answer {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.5;
}

/* 速记口诀 */
.mnemonic-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mnemonic-box:hover {
    background: #ffecb3;
}

.mnemonic-box .mnemonic-text {
    font-size: 18px;
    font-weight: 500;
    color: #e67700;
    line-height: 1.6;
}

.mnemonic-box .mnemonic-note {
    font-size: 13px;
    color: #b86b00;
    margin-top: 10px;
}

/* 相关阅读 */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related-links a {
    background: #f0f0f0;
    padding: 10px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    color: #2d6a4f;
    transition: all 0.2s;
}

.related-links a:hover {
    background: #2d6a4f;
    color: white;
}

/* 标签 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.tag {
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 13px;
    color: #666;
}

/* ========== 底部导航 ========== */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px auto;
    width:90%;
    
}

.footer-nav a {
    background: white;
    padding: 14px 16px;
    border-radius: 30px;
    text-decoration: none;
    color: #9b4e31;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
}

.footer-nav a:hover {
    background: #9b4e31;
    color: white;
}

/* PC端底部导航改为横排 */
@media (min-width: 768px) {
    .footer-nav {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-nav a {
        flex: 1;
        margin: 0 5px;
    }
}

/* ========== 侧边栏 ========== */
.sidebar {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar h4 {
    color: #1b4332;
    margin-bottom: 15px;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e9;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 12px;
}

.sidebar a {
    color: #555;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 6px 0;
}

.sidebar a:hover {
    color: #2d6a4f;
    text-decoration: underline;
}

/* ========== 页脚 ========== */
hr {
    margin: 30px 0 20px;
    border: none;
    border-top: 1px solid #ddd;
}

.copyright {
    text-align: center;
    font-size: 13px;
    color: #999;
    padding: 20px 0 10px;
}

/* ========== 列表页专用样式 ========== */
/* 列表页头部 */
.header-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 18px;
}

.stat-item {
    background: #f4ebd1;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
}

.stat-item strong {
    font-size: 18px;
    margin-right: 5px;
}

/* 筛选栏 */
.filter-bar {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-label {
    font-weight: 500;
    color: #555;
    font-size: 15px;
    display: block;
    margin-bottom: 12px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-tag {
    display: inline-block;
    padding: 6px 16px;
    margin-right: 5px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
    text-decoration: none;
}

.filter-tag:hover {
    background: #9b4e31;
    color: white;
}

.filter-tag.active {
    background: #9b4e31;
    color: white;
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    background: #fff;
}

.search-box input:focus {
    border-color: #2d6a4f;
}

.search-box button {
    padding: 12px 20px;
    background: #2d6a4f;
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* ========== 列表页专用样式 ========== */

/* 考点网格 - 手机端单列排列 */
.grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* PC端多列 - 使用等高布局 */
@media (min-width: 768px) {
    .grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 24px;
    }
}

/* 网格卡片 - 等高布局 */
.grid-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 卡片头部 - 固定高度，内容上下对齐 */
.grid-card .card-header {
    background: #f4ebd19c;
    padding: 18px 18px 14px 18px;
    border-bottom: 2px solid #9b4e31;
    min-height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-card .card-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.grid-card .card-header .order {
    font-size: 11px;
    color: #9b4e31;
    background: #fff;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    align-self: flex-start;
}

/* 卡片主体 - 弹性填充剩余空间 */
.grid-card .card-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid-card .card-definition {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

/* 核心内容区域 - 固定最小高度，保证对齐 */
.card-content {
    min-height: 85px;
    margin-bottom: 10px;
}

.grid-card .card-content .content-title {
    font-size: 12px;
    font-weight: 600;
    color: #2d6a4f;
    margin-bottom: 8px;
}

.grid-card .card-content .content-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.grid-card .card-content .content-text strong {
    color: #1b4332;
}

/* 口诀区域 - 固定高度，保证对齐 */
.grid-card .card-mnemonic {
    background: #fff3e0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    color: #e67700;
    margin: 10px 0;
    line-height: 1.5;
    min-height: 70px;
}

/* 标签区域 */
.grid-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 5px;
}

.grid-card .card-tag {
    font-size: 10px;
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 15px;
    color: #666;
}

/* 卡片底部 - 固定在底部 */
.grid-card .card-footer {
    padding: 12px 18px;
    background: #fafafa;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.grid-card .card-footer a {
    color: #2d6a4f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    padding: 4px 0;
}

/* 超小屏优化 */
@media (max-width: 480px) {
    .grid-card .card-header {
        padding: 14px 15px 12px 15px;
        min-height: 80px;
    }
    
    .grid-card .card-header h3 {
        font-size: 18px;
    }
    
    .grid-card .card-body {
        padding: 14px 15px;
    }
    
    .card-content {
        min-height: 70px;
    }
    
    .grid-card .card-mnemonic {
        min-height: 60px;
        font-size: 11px;
    }
    
    .grid-card .card-definition {
        font-size: 13px;
    }
}

/* ========== 打印样式 ========== */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .breadcrumb,
    .footer-nav,
    .sidebar,
    .copyright,
    hr,
    .filter-bar,
    .search-box,
    .pagination,
    .footer-links {
        display: none;
    }
    
    .main-card,
    .grid-card {
        box-shadow: none;
        break-inside: avoid;
    }
    
    .card-header {
        background: #1b4332;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .mnemonic-box {
        break-inside: avoid;
    }
}