﻿.tao-list-container {
    max-width: 1100px;
    margin-top: 20px;
    padding: 20px 20px;
    background-color: #321212; /* 极深色背景 */
    color: #e0e0e0;
}
span > a {
    color: white;
    font-size:15px;
}

h3 {
font-size:20px;
}

.list-header {
    text-align: center;
    margin-bottom: 20px;
}

    .list-header h1 {
        font-size: 3rem;
        color: #c5a059; /* 品牌金 */
        margin-bottom: 10px;
    }

/* 章节卡片布局 */
.chapters-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.chapter-card {
    display: flex;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

    .chapter-card:hover {
        transform: translateX(10px);
        border-color: #c5a059;
    }

/* Base Mobile-First Styles */
.chapter-card {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.card-side-info {
    background: #c5a059;
    color: #121212;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Put ID on one side, maybe an icon on the other */
    font-weight: bold;
    font-size: 1.2rem;
    width: 100%; /* Full width on mobile */
}

.chapter-id {
    position: relative;
}

/* Tablet & Desktop Upgrades */
@media (min-width: 768px) {
    .chapter-card {
        flex-direction: row; /* Side-by-side on desktop */
    }

    .card-side-info {
        width: 80px; /* Fixed width sidebar */
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        font-size: 1.5rem;
        border-right: 1px solid rgba(0,0,0,0.1);
    }

    .chapter-card:hover .card-side-info {
        background: #d4b477; /* Subtle brighten on hover */
    }
}

.card-main-content {
    padding: 25px;
    flex-grow: 1;
}

    .card-main-content h3 {
        margin: 0 0 10px 0;
        color: #fff;
    }

.essence-text {
    font-size:20px;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 卦象小标签 */
.gua-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.gua-pill {
    font-size: 0.75rem;
    padding: 3px 10px;
    border: 1px solid #444;
    border-radius: 20px;
    color: #888;
}

.read-more {
    color: #c5a059;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

/* 分页组件 */
.pagination-nav {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 30px;
}

.page-link {
    padding: 12px 30px;
    border: 1px solid #c5a059;
    color: #c5a059;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}

    .page-link:hover:not(.disabled) {
        background: #c5a059;
        color: #121212;
    }

    .page-link.disabled {
        border-color: #444;
        color: #444;
        cursor: not-allowed;
    }

.page-indicator {
    color: #666;
    font-size: 0.9rem;
}

/* 容器设置 */
.tao-pagination-wrapper {
    margin: 40px auto;
    padding: 20px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    display: flex;
    justify-content: center;
}

/* 分页链接组 */
.pagination-scroller {
    display: flex;
    flex-wrap: wrap; /* PC端允许换行 */
    justify-content: center;
    gap: 10px;
}

/* 单个分页按钮样式 */
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    height: 40px;
    padding: 0 15px;
    background: #2d2d2d;
    border: 1px solid #444;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Roboto, sans-serif;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    /* 悬停效果 */
    .page-link:hover {
        border-color: #c5a059;
        color: #c5a059;
        background: rgba(197, 160, 89, 0.05);
        transform: translateY(-2px);
    }

    /* 当前活动页样式 */
    .page-link.active {
        background: #c5a059;
        color: #1a1a1a;
        border-color: #c5a059;
        font-weight: bold;
        box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    }

/* --- 移动端适配 (手机) --- */
@media (max-width: 600px) {
    .tao-pagination-wrapper {
        justify-content: flex-start;
        padding: 15px;
        overflow-x: auto; /* 允许横向滑动 */
        -webkit-overflow-scrolling: touch;
    }

    .pagination-scroller {
        flex-wrap: nowrap; /* 手机端禁止换行，改为横向滑动 */
        justify-content: flex-start;
        padding-bottom: 5px;
    }

    .page-link {
        flex: 0 0 auto; /* 防止按钮被压缩 */
        min-width: 75px;
        font-size: 0.85rem;
    }

    /* 隐藏移动端滚动条 (可选) */
    .tao-pagination-wrapper::-webkit-scrollbar {
        height: 3px;
    }

    .tao-pagination-wrapper::-webkit-scrollbar-thumb {
        background: #c5a059;
        border-radius: 10px;
    }
}