﻿/* 容器布局 */
.art-of-war-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 卡片样式 */
.chapter-card {
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

strong > a {
    color: green;
    font-size: 15px;
}

/* 侧边 ID 响应式 */
.card-side-info {
    background: #c5a059;
    color: #000;
    padding: 15px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
}

.card-content {
    padding: 30px;
    color: #e0e0e0;
}

.chapter-title {
    color: #c5a059;
    margin-bottom: 10px;
}

.gold-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, #c5a059, transparent);
    margin-bottom: 25px;
}

h4 {
    color: #c5a059;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* 卦象网格 */
.gua-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gua-note-box {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #c5a059;
}

    .gua-note-box p {
        font-size: 0.9rem;
        margin-top: 5px;
        color: #bbb;
    }

/* --- 底部导航样式 --- */
.art-pagination {
    text-align: center;
    padding: 20px 0;
}

.pagination-track {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* 手机端自动换行 */
    gap: 10px;
    margin-bottom: 15px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #2d2d2d;
    border: 1px solid #444;
    color: #c5a059;
    text-decoration: none;
    border-radius: 50%; /* 圆形链接 */
    transition: all 0.3s ease;
}

    .page-link:hover {
        background: rgba(197, 160, 89, 0.2);
        border-color: #c5a059;
    }

    .page-link.active {
        background: #c5a059;
        color: #1a1a1a;
        font-weight: bold;
        box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
    }

.pagination-hint {
    font-size: 0.85rem;
    color: #666;
}

/* 桌面端增强 */
@media (min-width: 768px) {
    .chapter-card {
        flex-direction: row;
    }

    .card-side-info {
        width: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 移动端特殊处理 */
@media (max-width: 480px) {
    .pagination-track {
        gap: 8px;
    }

    .page-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
