/* ============================================================
 * RiPro-V2 Child - xuexi67.com 精准对标样式 v3.0
 * 卡片网格 + 模块化首页 + 全宽分类页
 * ============================================================ */

:root {
    --xx-primary: #2b7de9;
    --xx-primary-dark: #1a5bb8;
    --xx-text: #333;
    --xx-text-light: #666;
    --xx-text-muted: #999;
    --xx-border: #eee;
    --xx-bg: #f5f6f8;
}

/* ============================================================
 * 关键: 全宽布局 + 居中（不破坏父主题 flex 结构）
 * 父主题列类名: .col-lg-9 / .col-lg-12 (内容列), .col-lg-3 (侧边栏)
 * ============================================================ */

/* 隐藏 hero (归档页/分类页/搜索页)，内容页保留 Hero */
body.archive .hero,
body.category .hero,
body.search .hero {
    display: none !important;
}

/* 隐藏 term-bar */
body.archive .term-bar,
body.category .term-bar,
body.search .term-bar {
    display: none !important;
}

/* 全局 .container 加宽到 1400px + 居中 */
.container {
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 让 .site-content 占满 100% */
body.sidebar-none #main.site-content,
body.wide-screen #main.site-content {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* 强制侧边栏列隐藏（仅针对 sidebar-column 内的列） */
body.sidebar-none .sidebar-column,
body.archive .sidebar-column,
body.category .sidebar-column,
body.search .sidebar-column {
    display: none !important;
}

/* 主内容列占满 */
body.sidebar-none .content-column,
body.archive .content-column,
body.category .content-column,
body.search .content-column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* 归档页容器加宽 + 居中 */
body.archive .archive.container,
body.category .archive.container,
body.search .archive.container {
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* .content-area 全宽 */
body.archive .content-area,
body.category .content-area,
body.search .content-area {
    width: 100% !important;
}

/* 隐藏侧边栏 */
body.archive #secondary,
body.category #secondary,
body.search #secondary,
body.archive .sidebar-column,
body.category .sidebar-column,
body.search .sidebar-column {
    display: none !important;
}

/* ============================================================
 * Hero 区（极简，对标xuexi67）
 * ============================================================ */
.xx-hero {
    text-align: center;
    padding: 28px 0 18px;
}

.xx-hero-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
    line-height: 1.4;
}

.xx-hero-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: #888;
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
 * 分类导航按钮 (home-cat-nav)
 * ============================================================ */
.home-cat-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 0;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.home-cat-nav::-webkit-scrollbar { height: 4px; }
.home-cat-nav::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.home-cat-nav .btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.home-cat-nav .btn:hover {
    border-color: var(--xx-primary);
    color: var(--xx-primary);
    background: #f0f6ff;
}

.home-cat-nav .btn.active {
    background: var(--xx-primary);
    border-color: var(--xx-primary);
    color: #fff;
}

/* ============================================================
 * 统计信息条
 * ============================================================ */
.home-stats-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

.home-stats-bar .stats-item { white-space: nowrap; }
.home-stats-bar .stats-sep { color: #ddd; }

/* ============================================================
 * 卡片网格布局
 * ============================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
    margin: 0;
    list-style: none;
}

.post.post-grid {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.post.post-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.15);
}

.post.post-grid .entry-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.post.post-grid .entry-media .placeholder {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.post.post-grid .entry-media .placeholder > a {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: block;
}

.post.post-grid .entry-media img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post.post-grid:hover .entry-media img {
    transform: scale(1.05);
}

.post.post-grid .entry-wrapper {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.post.post-grid .meta-category-dot {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    line-height: 1.6;
}

.post.post-grid .meta-category-dot a {
    display: inline-flex;
    align-items: center;
    color: var(--xx-primary);
    text-decoration: none;
    margin-right: 6px;
    transition: color 0.2s;
}

.post.post-grid .meta-category-dot a:hover {
    color: var(--xx-primary-dark);
    text-decoration: underline;
}

.post.post-grid .meta-category-dot .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--xx-primary);
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.post.post-grid .entry-header { margin: 0; }

.post.post-grid .entry-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
}

.post.post-grid .entry-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.post.post-grid .entry-title a:hover { color: var(--xx-primary); }

.post.post-grid .entry-excerpt {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.post.post-grid .entry-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post.post-grid .entry-footer .entry-date { color: #bbb; }

/* ============================================================
 * 模块区通用样式 (xx-module)
 * ============================================================ */
.xx-module {
    margin-bottom: 30px;
}

.xx-module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 2px solid var(--xx-primary);
    margin-bottom: 10px;
}

.xx-module-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.xx-module-title a {
    color: #222;
    text-decoration: none;
}

.xx-module-title a:hover { color: var(--xx-primary); }

.xx-module-more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

.xx-module-more:hover { color: var(--xx-primary); }

/* 模块内卡片网格减少padding */
.xx-module .posts-grid {
    padding: 10px 0 15px;
}

/* 全站最热排行 - 强制6列确保6张卡在一排 */
.xx-hot-ranking .posts-grid {
    grid-template-columns: repeat(6, 1fr);
}

/* ============================================================
 * 分类专区（纯文字列表，2列布局）
 * ============================================================ */
.xx-cat-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.xx-cat-section .xx-module-head {
    border-bottom: 2px solid #f0f0f0;
}

.xx-cat-section .xx-module-title {
    font-size: 16px;
    padding-left: 10px;
    border-left: 3px solid var(--xx-primary);
    line-height: 1.2;
}

.xx-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xx-list-item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.xx-list-item:last-child { border-bottom: none; }

.xx-list-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s;
}

.xx-list-item a:hover { color: var(--xx-primary); }

.xx-list-date {
    flex-shrink: 0;
    font-size: 12px;
    color: #bbb;
    background: #f5f5f5;
    padding: 1px 6px;
    border-radius: 3px;
}

.xx-list-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
 * 面包屑
 * ============================================================ */
.xx-breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: #888;
}

.xx-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.xx-breadcrumb a:hover { color: var(--xx-primary); }

.xx-breadcrumb .sep {
    margin: 0 6px;
    color: #ccc;
}

.xx-breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* ============================================================
 * 分类页头部
 * ============================================================ */
.archive-header {
    background: #fff;
    padding: 16px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.archive-header .archive-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}

.archive-header .archive-desc {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* 子分类导航 */
.sub-cat-nav {
    background: #fafafa;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.sub-cat-nav .sub-cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sub-cat-nav .sub-cat-list a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.sub-cat-nav .sub-cat-list a:hover,
.sub-cat-nav .sub-cat-list a.current {
    background: var(--xx-primary);
    color: #fff;
    border-color: var(--xx-primary);
}

/* 筛选排序 */
.filter-sort-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.filter-sort-bar .sort-label {
    font-size: 13px;
    color: #888;
}

.filter-sort-bar .sort-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-sort-bar .sort-links a {
    color: #666;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
}

.filter-sort-bar .sort-links a:hover {
    color: var(--xx-primary);
    background: #f0f6ff;
}

.filter-sort-bar .sort-links a.current {
    background: var(--xx-primary);
    color: #fff;
}

/* ============================================================
 * VIP 会员套餐
 * ============================================================ */
.xx-vip-plans { margin-bottom: 30px; }

.xx-vip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.xx-vip-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.xx-vip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.12);
}

.xx-vip-card.highlight {
    border-color: var(--xx-primary);
    border-width: 2px;
    box-shadow: 0 8px 24px -8px rgba(43, 125, 233, 0.25);
}

.xx-vip-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.xx-vip-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 8px 0 12px;
}

.xx-vip-price {
    margin-bottom: 16px;
}

.xx-vip-price .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--xx-primary);
}

.xx-vip-price .unit {
    font-size: 14px;
    color: #888;
    margin-left: 2px;
}

.xx-vip-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    text-align: left;
}

.xx-vip-features li {
    font-size: 13px;
    color: #666;
    line-height: 2;
    padding: 2px 0;
}

.xx-vip-btn {
    display: inline-block;
    padding: 10px 32px;
    background: var(--xx-primary);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.xx-vip-btn:hover {
    background: var(--xx-primary-dark);
    color: #fff;
}

.xx-vip-card.highlight .xx-vip-btn {
    background: linear-gradient(135deg, var(--xx-primary), var(--xx-primary-dark));
}

/* ============================================================
 * 4项卖点
 * ============================================================ */
.xx-selling-points {
    margin-bottom: 30px;
}

.xx-sp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.xx-sp-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
    transition: transform 0.25s ease;
}

.xx-sp-item:hover {
    transform: translateY(-4px);
    border-color: var(--xx-primary);
}

.xx-sp-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.xx-sp-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}

.xx-sp-desc {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
 * 分页
 * ============================================================ */
.pagination-wrap {
    text-align: center;
    padding: 30px 0;
}

.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    margin: 0 3px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-wrap .page-numbers:hover {
    border-color: var(--xx-primary);
    color: var(--xx-primary);
}

.pagination-wrap .page-numbers.current {
    background: var(--xx-primary);
    border-color: var(--xx-primary);
    color: #fff;
}

/* ============================================================
 * 侧边栏（保留兼容）
 * ============================================================ */
.sidebar .widget {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar .widget-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    padding: 14px 16px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.sidebar .card-body { padding: 12px 16px; }

.sidebar .post {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.sidebar .post:last-child { border-bottom: none; }

.sidebar .entry-title { font-size: 13px; line-height: 1.5; }

.sidebar .entry-title a {
    color: #333;
    text-decoration: none;
}

.sidebar .entry-title a:hover { color: var(--xx-primary); }

.sidebar .entry-meta {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

.sidebar .badge { font-weight: 600; }

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 1200px) {
    .container { max-width: 1200px !important; }
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .container { max-width: 100% !important; padding: 0 15px; }
}

@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        padding: 0 15px;
    }
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px 0;
    }
    .post.post-grid .entry-wrapper { padding: 10px 12px 12px; }
    .post.post-grid .entry-title { font-size: 14px; }
    .post.post-grid .entry-excerpt { font-size: 12px; -webkit-line-clamp: 1; }
    .xx-hero-title { font-size: 18px; }
    .xx-hero-subtitle { font-size: 13px; }
    .home-cat-nav { padding: 10px 0; }
    .home-cat-nav .btn { padding: 5px 10px; font-size: 12px; }
    .xx-cat-sections-grid { grid-template-columns: 1fr; gap: 16px; }
    .xx-vip-grid { grid-template-columns: 1fr; gap: 16px; }
    .xx-sp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .xx-module-title { font-size: 16px; }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .xx-sp-grid { grid-template-columns: 1fr; }
}

/* ============================================================
 * 内容页深度对标 xuexi67（Hero + Tab + 双栏）
 * ============================================================ */

/* 确保内容页 entry-header 显示 */
.single-post .article-content .entry-header {
    display: block;
    margin-bottom: 1.2rem;
}

/* 修正 aside 在 sidebar-column 内的宽度干扰 */
.single-post .sidebar-column aside#secondary,
.single-post .sidebar-column .widget-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

/* 内容页主区与侧栏间距微调 */
.single-post .content-column .content-area {
    padding-right: 20px;
}

/* 内容页 sticky 侧边栏顶部间距 */
.single-post .sidebar-column .sticky-top {
    top: 80px;
}

/* 分类目录标签云（侧边栏 widget） */
.single-post .xx-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.single-post .xx-cat-link {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    color: #555;
    background: #f5f6f8;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s;
}
.single-post .xx-cat-link:hover {
    color: #fff;
    background: #2b7de9;
}

/* ============================================================
 * 分类页 (archive/category) 对标 xuexi67
 * ============================================================ */

/* 分类页侧边栏隐藏（已在上方处理） */

/* 分类页搜索横幅 */
.archive-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 0 25px;
    margin-bottom: 0;
}

.archive-banner-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.archive-banner-title {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    text-align: center;
}

.archive-banner-title .count-num {
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
    margin: 0 4px;
}

.archive-search-form {
    display: flex;
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.archive-search-form .search-field {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
}

.archive-search-form .search-submit {
    padding: 0 24px;
    border: none;
    background: #2b7de9;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.archive-search-form .search-submit:hover {
    background: #1a5bb8;
}

/* 筛选栏（价格 + 排序） */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
    background: #fff;
}

.filter-label {
    font-size: 14px;
    color: #999;
    margin-right: 8px;
    font-weight: normal;
}

.price-filter,
.sort-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.price-filter {
    border-right: 1px solid #eee;
    padding-right: 16px;
}

.price-filter a,
.sort-filter a {
    display: inline-block;
    padding: 4px 14px;
    font-size: 13px;
    color: #666;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
}

.price-filter a:hover,
.sort-filter a:hover {
    color: #2b7de9;
    background: #f0f6ff;
}

.price-filter a.current,
.sort-filter a.current {
    background: #2b7de9;
    color: #fff;
    font-weight: 500;
}

/* 分类页 5列网格 - 覆盖父主题 Bootstrap 列宽 */
body.archive .posts-wrapper > [class*="col-"],
body.category .posts-wrapper > [class*="col-"],
body.search .posts-wrapper > [class*="col-"] {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    padding: 0 8px !important;
    margin-bottom: 16px;
}

/* 分类页卡片样式调整 */
body.archive .post.post-grid,
body.category .post.post-grid,
body.search .post.post-grid {
    border-radius: 6px;
}

/* 响应式 - 分类页列数 */
@media (max-width: 1200px) {
    body.archive .posts-wrapper > [class*="col-"],
    body.category .posts-wrapper > [class*="col-"],
    body.search .posts-wrapper > [class*="col-"] {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

@media (max-width: 992px) {
    body.archive .posts-wrapper > [class*="col-"],
    body.category .posts-wrapper > [class*="col-"],
    body.search .posts-wrapper > [class*="col-"] {
        flex: 0 0 33.3333% !important;
        max-width: 33.3333% !important;
    }
}

@media (max-width: 768px) {
    body.archive .posts-wrapper > [class*="col-"],
    body.category .posts-wrapper > [class*="col-"],
    body.search .posts-wrapper > [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 5px !important;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    body.archive .posts-wrapper > [class*="col-"],
    body.category .posts-wrapper > [class*="col-"],
    body.search .posts-wrapper > [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* ============================================================
 * 内容页 (single) 对标 xuexi67
 * ============================================================ */

/* 内容页主容器 */
.single-post .container {
    max-width: 1400px;
}

/* 内容页面包屑 */
.single-post .article-crumb {
    font-size: 13px;
    color: #888;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.single-post .article-crumb a {
    color: #666;
    text-decoration: none;
}

.single-post .article-crumb a:hover {
    color: #2b7de9;
}

/* 内容页标题区 */
.single-post .entry-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.single-post .entry-header .entry-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin: 0 0 12px;
}

.single-post .entry-header .entry-meta {
    font-size: 13px;
    color: #888;
}

.single-post .entry-header .entry-meta .sep {
    margin: 0 6px;
    color: #ddd;
}

/* 内容页正文 */
.single-post .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.single-post .entry-content p {
    margin-bottom: 18px;
}

.single-post .entry-content img {
    border-radius: 6px;
    margin: 15px 0;
}

/* 常见问题 section */
.single-post .single-faq-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.single-post .faq-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}

.single-post .accordion .card {
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
}

.single-post .accordion .card-header {
    padding: 12px 15px;
}

.single-post .accordion .card-header button {
    background: transparent;
    border: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.single-post .accordion .card-body {
    background: #f5f6f8;
    color: #555;
    padding: 15px;
    border-radius: 0 0 6px 6px;
}

/* 内容页侧边栏 */
.single-post .sidebar {
    padding-top: 0;
}

.single-post .sidebar .widget {
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    overflow: hidden;
}

.single-post .sidebar .widget-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    background: #fafafa;
}

.single-post .sidebar .widget .list {
    padding: 10px 15px;
}

/* ============================================================
 * 内容页深度对标 xuexi67 - Hero区域（深色全宽横幅）
 * ============================================================ */

.single-post .single-download-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.single-post .single-download-nav .nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.single-post .single-download-nav .nav-item {
    position: relative;
}

.single-post .single-download-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.single-post .single-download-nav .nav-link:hover {
    color: #2b7de9;
}

.single-post .single-download-nav .nav-link.active {
    color: #2b7de9;
    border-bottom-color: #2b7de9;
    background: transparent;
}

.single-post .single-download-nav .nav-link i {
    margin-right: 6px;
}

/* Tab 内容区 */
.single-post .tab-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.single-post .tab-content > .tab-pane {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 面包屑 */
.single-post .article-crumb {
    font-size: 13px;
    color: #888;
    padding: 0 0 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.single-post .article-crumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.single-post .article-crumb a {
    color: #666;
    text-decoration: none;
}

.single-post .article-crumb a:hover {
    color: #2b7de9;
}

/* 内容区标题（只显示一个） */
.single-post .article-content .entry-header {
    display: none;
}

.single-post .entry-content {
    font-size: 15px;
    line-height: 1.85;
    color: #333;
}

.single-post .entry-content p {
    margin-bottom: 16px;
}

.single-post .entry-content img {
    border-radius: 6px;
    margin: 12px 0;
    max-width: 100%;
    height: auto;
}

/* ============================================================
 * 侧边栏资源信息 + 其他信息 widget（深度对标 xuexi67）
 * ============================================================ */

.single-post .xx-widget-shop-info,
.single-post .xx-widget-other-info {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.single-post .xx-widget-shop-info .widget-title,
.single-post .xx-widget-other-info .widget-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    padding: 13px 15px;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    background: #fafafa;
}

.single-post .xx-widget-shop-info .widget-title i {
    margin-right: 6px;
    color: #2b7de9;
}

.single-post .xx-widget-shop-info .widget-body,
.single-post .xx-widget-other-info .widget-body {
    padding: 15px;
}

/* 侧边栏价格列表 */
.single-post .xx-shop-price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.single-post .xx-shop-price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
}

.single-post .xx-shop-price-list li:last-child {
    border-bottom: none;
}

.single-post .xx-shop-price-list .xx-shop-label {
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-post .xx-shop-price-list .xx-shop-price {
    font-weight: 600;
    color: #ff4757;
}

.single-post .xx-shop-price-list .xx-shop-free {
    color: #4cd964;
    font-weight: 500;
}

.single-post .xx-shop-download-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #2b7de9;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.single-post .xx-shop-download-btn:hover {
    background: #1a68d4;
    color: #fff;
}

/* 其他信息 */
.single-post .xx-other-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.single-post .xx-other-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
}

.single-post .xx-other-info-list li:last-child {
    border-bottom: none;
}

.single-post .xx-other-info-list .xx-other-label {
    color: #888;
}

.single-post .xx-other-info-list .xx-other-value {
    color: #333;
    font-weight: 500;
}

.single-post .xx-customer-service {
    font-size: 12px;
    color: #ff4757;
    text-align: center;
    padding-top: 10px;
    border-top: 1px dashed #f0f0f0;
    font-weight: 500;
}

/* ============================================================
 * 相关文章（列表式带缩略图，对标 xuexi67）
 * ============================================================ */

.single-post .related-posts {
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.single-post .related-posts .u-border-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.single-post .related-posts .row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.single-post .related-posts .post {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.single-post .related-posts .post:hover {
    background: #f8f9fa;
}

.single-post .related-posts .post .entry-media {
    flex: 0 0 90px;
    width: 90px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.single-post .related-posts .post .entry-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post .related-posts .post .entry-wrapper {
    flex: 1;
    min-width: 0;
}

.single-post .related-posts .post .entry-title {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-post .related-posts .post .entry-title a {
    color: #333;
    text-decoration: none;
}

.single-post .related-posts .post:hover .entry-title a {
    color: #2b7de9;
}

.single-post .related-posts .post .entry-footer {
    display: none;
}


/* ============================================================
 * 深度对标 xuexi67 内容页样式（基于父主题 hero-shop-warp 结构覆盖）
 * ============================================================ */

/* Hero 外层：白底、无深色遮罩、文字深色 */
.single-post .hero-shop .hero {
    padding-top: 40px;
    padding-bottom: 40px;
    display: block;
    background-color: #fff;
}

.single-post .hero-shop .hero:before {
    display: none !important;
}

.single-post .hero-shop-warp {
    padding: 0;
    color: #333;
    background: #fff;
}

.single-post .hero-shop-warp .container-lg,
.single-post .hero-shop-warp .container {
    max-width: 1200px;
}

/* 左侧图片：宽度 300px，与 xuexi67 一致 */
.single-post .hero-shop-warp .img-box {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 26.333333%;
    padding-right: 30px;
}

.single-post .hero-shop-warp .img-box img {
    width: 300px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: block;
}

/* 右侧信息 */
.single-post .hero-shop-warp .info-box {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 标题区 */
.single-post .hero-shop-warp .entry-header {
    margin: 0 0 16px;
    padding: 0;
    border-bottom: none !important;
}

.single-post .hero-shop-warp .entry-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin-bottom: 0;
}

/* meta 信息 */
.single-post .hero-shop-warp .entry-meta {
    color: #888;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none !important;
}

.single-post .hero-shop-warp .entry-meta a {
    color: #666;
}

.single-post .hero-shop-warp .entry-meta a:hover {
    color: #2b7de9;
}

.single-post .hero-shop-warp .entry-meta .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0;
}

.single-post .hero-shop-warp .entry-meta .meta-author a {
    display: flex;
    align-items: center;
}

.single-post .hero-shop-warp .entry-meta i {
    margin-right: 4px;
}

/* 价格与有效期并排行容器 */
.single-post .hero-shop-warp .info-box > .row {
    align-items: flex-start;
}

/* 价格列表：白底卡片、无左侧竖线圆点 */
.single-post .hero-shop-warp .pricing-options {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    max-width: 100% !important;
    margin: 0;
    list-style: none;
}

.single-post .hero-shop-warp .pricing-options li {
    font-size: 14px;
    padding: 8px 0;
    color: #333;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.single-post .hero-shop-warp .pricing-options li::before,
.single-post .hero-shop-warp .pricing-options li::after {
    display: none !important;
}

.single-post .hero-shop-warp .pricing-options li span {
    display: flex;
    align-items: center;
}

.single-post .hero-shop-warp .pricing-options li b {
    font-weight: 500;
}

/* 标签 */
.single-post .hero-shop-warp .membership {
    background: #7c3aed;
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    text-transform: lowercase;
    display: inline-block;
    line-height: 1.4;
}

.single-post .hero-shop-warp .badge-danger-lighten {
    background: #dc3545;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 6px;
    font-weight: 500;
}

.single-post .hero-shop-warp .badge-purple-lighten,
.single-post .widget-shop-down .badge-purple-lighten {
    background: #7c3aed;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 有效期/最近更新 */
.single-post .hero-shop-warp .down-info {
    list-style: none;
    margin: 0;
    padding: 12px 0 0 20px;
    background: transparent;
}

.single-post .hero-shop-warp .down-info li {
    margin-bottom: 12px;
}

.single-post .hero-shop-warp .down-info .data-label {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Tab 导航 */
.single-post .single-download-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.single-post .single-download-nav .nav-link {
    color: #666;
    padding: 16px 26px;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    border-radius: 0;
}

.single-post .single-download-nav .nav-link.active {
    color: #333;
    border-bottom-color: #333;
    background: transparent;
}

.single-post .single-download-nav .nav-link:hover {
    color: #333;
}

.single-post .single-download-nav .nav-link i {
    margin-right: 6px;
}

/* Tab 内容 */
.single-post .tab-content > .tab-pane {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 面包屑 */
.single-post .article-crumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.single-post .article-crumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.single-post .article-crumb a {
    color: #666;
}

.single-post .article-crumb a:hover {
    color: #2b7de9;
}

/* 主按钮统一蓝色 */
.single-post .btn-primary,
.single-post .widget-shop-down .btn-primary,
.single-post .xdx-paybtn-preview {
    background: #2b7de9 !important;
    border-color: #2b7de9 !important;
    color: #fff !important;
}

.single-post .btn-primary:hover,
.single-post .widget-shop-down .btn-primary:hover {
    background: #1a5bb8 !important;
    border-color: #1a5bb8 !important;
}

/* 侧边栏资源信息卡片（仅作兜底，实际已隐藏） */
.single-post .widget-shop-down {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.single-post .widget-shop-down .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.single-post .widget-shop-down .pricing-options {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    list-style: none;
}

.single-post .widget-shop-down .pricing-options li {
    padding: 10px 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.single-post .widget-shop-down .pricing-options li::before,
.single-post .widget-shop-down .pricing-options li::after {
    display: none !important;
}

.single-post .widget-shop-down .btn-block {
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    width: 100%;
    margin: 0;
}

/* 隐藏侧边栏多余的热榜推荐上方间距 */
.single-post .sidebar-column .widget + .widget {
    margin-top: 20px;
}

/* ============================================================
 * 内容页响应式
 * ============================================================ */
@media (max-width: 992px) {
    .single-post .hero-shop .hero {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .single-post .hero-shop-warp .entry-title {
        font-size: 22px;
    }

    .single-post .hero-shop-warp .info-box {
        padding-top: 25px;
    }

    .single-post .hero-shop-warp .pricing-options {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .single-post .hero-shop-warp .down-info {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .single-post .hero-shop-warp .entry-title {
        font-size: 20px;
    }

    .single-post .single-download-nav .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }

    .single-post .tab-content > .tab-pane {
        padding: 18px;
    }

    .single-post .article-crumb {
        font-size: 12px;
    }
}
