/* ============================================
   传世智慧录 - 主样式表
   设计理念：中式典雅 + 现代简洁
   ============================================ */

:root {
    --gold: #c9a96e;
    --gold-dark: #a6843f;
    --gold-light: #e8d5b0;
    --dark: #1a1a2e;
    --dark-secondary: #16213e;
    --accent: #0f3460;
    --cream: #faf7f2;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #e8e3dd;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* ========== 基础样式 ========== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.7;
}

a { color: var(--accent); transition: var(--transition); }
a:hover { color: var(--gold-dark); }

.text-gold { color: var(--gold) !important; }
.bg-gold { background: var(--gold) !important; }

/* ========== 按钮 ========== */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff !important;
    border: none;
    font-weight: 500;
    transition: var(--transition);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-dark), #8b6914);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201,169,110,0.4);
}

.btn-outline-gold {
    border: 1.5px solid var(--gold);
    color: var(--gold-dark);
    background: transparent;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: #fff;
}

/* ========== 导航栏 ========== */
#mainNav {
    background: rgba(26,26,46,0.97) !important;
    backdrop-filter: blur(10px);
    padding: 0.6rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.navbar-brand { font-weight: 700; font-size: 1.25rem; }
.brand-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem; margin-right: 10px;
}
.brand-text {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--gold-light);
}

.avatar-sm { object-fit: cover; border: 2px solid var(--gold-light); }

/* 搜索框 */
.search-form .form-control {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.85rem;
    width: 180px;
}
.search-form .form-control::placeholder { color: rgba(255,255,255,0.5); }
.search-form .form-control:focus {
    background: rgba(255,255,255,0.2);
    border-color: var(--gold);
    box-shadow: none;
    color: #fff;
}

.main-content { padding-top: 66px; }

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 50%, var(--accent) 100%);
    min-height: 160px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 35px;
    padding-bottom: 0;
    margin-bottom: 0;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201,169,110,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(201,169,110,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; padding: 0.5rem 0 0.2rem; }

.hero-title {
    font-size: 2.0rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 0.7rem;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 0.4rem;
}

.search-box .input-group { border-radius: 50px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.search-box .form-control { padding: 0.8rem 1.2rem; font-size: 1rem; }
.search-box .btn { border-radius: 0 50px 50px 0; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.tag-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
}
.tag-badge:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.tag-badge.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.badge-news {
    background: #ff4757; color: #fff; font-size: 0.6rem;
    padding: 0.1rem 0.3rem; border-radius: 3px; margin-left: 4px;
}
.badge-go {
    background: #2ed573; color: #fff; font-size: 0.6rem;
    padding: 0.1rem 0.3rem; border-radius: 3px; margin-left: 4px;
}
.badge-featured {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.min-vh-60 { min-height: 60vh; }

/* ========== 名人名言 ========== */
.quote-section { background: var(--cream); }
.quote-card {
    position: relative;
    padding: 0.8rem;
}
.quote-icon-start, .quote-icon-end {
    font-size: 1.3rem;
    color: var(--gold);
    opacity: 0.25;
}
.quote-icon-start { position: absolute; top: 0; left: 0; }
.quote-icon-end { position: absolute; bottom: 0; right: 0; }
.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    font-style: italic;
    margin: 0.25rem 0;
    padding: 0 1.5rem;
}
.quote-card p.mb-0 { font-size: 0.85rem; margin-top: 0 !important; }

.figure-avatars {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.figure-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: default;
}
.figure-avatar:hover { transform: translateY(-2px); box-shadow: 0 3px 12px rgba(201,169,110,0.4); }

/* ========== 公告 ========== */
.alert-announcement {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid var(--gold-light);
    border-radius: var(--radius-sm);
    color: var(--text);
}

/* ========== 分类卡片 ========== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px; height: 3px;
    background: var(--gold);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}
.section-desc { font-size: 1rem; }
.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.cat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
}
.cat-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.cat-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.cat-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.cat-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.cat-count {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--cream);
    color: var(--gold-dark);
    border-radius: 20px;
    font-size: 0.8rem;
}

/* 热门板块区域 */
.hot-categories-section {
    background: linear-gradient(180deg, var(--cream) 0%, #f5f0e8 100%);
    position: relative;
}
.hot-categories-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* 热门板块卡片 */
.hot-cat-card {
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
    border: 1.5px solid rgba(201,169,110,0.2);
    position: relative;
    overflow: hidden;
}
.hot-cat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius) var(--radius) 0 0;
}
.hot-cat-card:hover::before { opacity: 1; }
.hot-cat-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(201,169,110,0.2);
}

.hot-cat-card .hot-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 0.4rem;
    padding: 0.2rem 0.7rem;
    background: linear-gradient(135deg, #fff5f5, #ffebeb);
    color: #c0392b;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(192,57,43,0.15);
    transition: all 0.3s ease;
}
.hot-cat-card .hot-count.warm {
    background: linear-gradient(135deg, #fff8f0, #ffefdb);
    color: #e67e22;
    border-color: rgba(230,126,34,0.2);
}
.hot-cat-card .hot-count.hot {
    background: linear-gradient(135deg, #fff5f5, #ffe0e0);
    color: #c0392b;
    border-color: rgba(192,57,43,0.25);
    animation: hotPulse 2s ease-in-out infinite;
}
.hot-cat-card .cat-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
@keyframes hotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.2); }
    50% { box-shadow: 0 0 0 4px rgba(192,57,43,0); }
}

/* ========== 文章卡片 ========== */
.article-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.card-img-wrapper {
    height: 160px;
    overflow: hidden;
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-card:hover .card-img-wrapper img { transform: scale(1.05); }
.article-title {
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

/* 置顶卡片 */
.pinned-card {
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff, #fdf8f0);
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.pinned-card:hover { box-shadow: var(--shadow-lg); }

/* 文章列表 */
.list-article-item {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.92rem;
}
.list-article-item:hover { color: var(--gold-dark); }

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

/* 首页自定义推荐区 - 手机端紧凑排版 */
@media (max-width: 767.98px) {
    .bg-light .card-body.py-4 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
    .bg-light .card-body h5 { font-size: 0.95rem; margin-bottom: 0.25rem; }
    .bg-light .card-body .text-muted { font-size: 0.78rem; line-height: 1.4; margin-bottom: 0.15rem !important; }
    .bg-light .card-body small { font-size: 0.7rem; }
}
.text-white-50 { color: rgba(255,255,255,0.5) !important; }

.article-list-card {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: var(--transition);
}
.article-list-card:hover { box-shadow: var(--shadow); background: #fefef9; }

/* ========== 文章详情 ========== */
.article-detail .article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}
/* 文章信息条 */
.article-info-bar {
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 0.8rem 0;
}
.article-info-item {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0;
    white-space: nowrap;
}
.article-info-item i { margin-right: 0.3rem; }
.article-info-item.like-btn {
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
    color: var(--text);
}
.article-info-item.like-btn:hover {
    transform: scale(1.08);
}
.article-info-item.like-btn.liked i {
    animation: heartBeat 0.6s ease;
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.15); }
}
.article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
}
.article-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--dark); }
.article-content h3 { font-size: 1.25rem; margin: 1.5rem 0 0.8rem; color: var(--dark); }
.article-content p { margin-bottom: 1rem; }
.article-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 1rem 1.5rem;
    background: var(--cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-light);
    font-style: italic;
    margin: 1.5rem 0;
}
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.3rem; }

.article-cover img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); }

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(135deg, var(--dark), var(--accent));
    color: #fff;
    margin-bottom: 0 !important;
}

/* ========== 会员页面 ========== */
.membership-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
    color: #fff;
}

.benefit-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.plan-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.plan-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan-recommended {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}
.plan-badge {
    position: absolute;
    top: 15px; right: -30px;
    background: var(--gold);
    color: #fff;
    padding: 0.2rem 2.5rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}
.plan-price { margin: 1rem 0; }
.price-number { font-size: 2.5rem; font-weight: 700; color: var(--dark); }
.original-price { color: var(--text-muted); text-decoration: line-through; font-size: 0.9rem; }
.plan-features { font-size: 0.85rem; }
.feature-item { padding: 0.3rem 0; color: var(--text-light); }

/* ========== 登录/注册页面 ========== */
.auth-container {
    min-height: calc(100vh - 66px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--cream), #f0ebe1);
}
.auth-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}
.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--cream);
    border-radius: var(--radius-sm);
}
.auth-logo i { color: var(--gold); }
.auth-logo:hover { color: var(--dark); }

.auth-tabs { border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.auth-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-weight: 500;
}
.auth-tabs .nav-link.active {
    color: var(--gold-dark);
    border-bottom: 2px solid var(--gold);
    background: transparent;
    margin-bottom: -2px;
}

.auth-form .input-group-text {
    background: var(--cream);
    border-color: var(--border);
}

/* ========== 用户中心 ========== */
.user-info-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.user-avatar-lg {
    border: 3px solid var(--gold-light);
}
.stat-card {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); }
.stat-icon { font-size: 1.5rem; display: block; margin-bottom: 0.3rem; }

/* ========== 页脚 ========== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 3.5rem 0 1.5rem;
    margin-top: 0 !important;
}
.footer-main-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}
.footer-col {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}
.footer-brand, .footer-title {
    color: var(--gold-light);
    font-weight: 700;
    line-height: 1.6rem;
    min-height: 1.6rem;
    margin-bottom: 0.8rem;
    margin-top: 0;
}
.footer-brand { font-size: 1.25rem; }
.footer-title { color: #fff; font-size: 1rem; }
.footer-desc { font-size: 0.88rem; line-height: 1.75; color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.84rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-social { display: flex; gap: 0.8rem; }
.social-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}
.social-icon:hover { background: var(--gold); color: #fff; }

.footer-divider { border-color: rgba(255,255,255,0.1); margin: 1.5rem 0; }
.footer-contact { font-size: 0.85rem; margin-bottom: 0.35rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-contact p { font-size: 0.85rem; margin-bottom: 0.3rem; }
.footer-contact-row { margin-top: 0.8rem; }
.footer-email-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}
.footer-email-link:hover { color: var(--gold); }
.footer-email-link i { color: var(--gold); margin-right: 0.35rem; }

/* 页脚二维码直接展示 */
.footer-qr-row { display: flex; gap: 0.7rem; flex-wrap: nowrap; align-items: flex-start; }
.footer-qr-item { text-align: center; }
.footer-qr-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    background: #fff;
    padding: 4px;
}
.footer-qr-label {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
}

/* ========== 待支付倒计时条 ========== */
.pending-payment-bar {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    border-bottom: 2px solid #ffc107;
    font-size: 0.9rem;
}
.pending-countdown { white-space: nowrap; }

/* ========== 金色购买按钮 ========== */
.btn-gold {
    background: linear-gradient(135deg, #d4a843, #b8860b);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-gold:hover {
    background: linear-gradient(135deg, #c9952e, #a07509);
    color: #fff;
}

/* ========== 搜索页面 ========== */
.search-form-large .form-control { padding: 0.8rem 1.5rem; font-size: 1rem; }
.search-form-large .btn { padding: 0.5rem 2rem; }

/* ========== 响应式设计 ========== */

/* ================================================================
   平板横屏 / 小平板 (769px - 1024px) 
   ================================================================ */
@media (max-width: 1024px) {
    .container { max-width: 100%; padding-left: 1.4rem; padding-right: 1.4rem; }

    /* Hero */
    .hero-section { min-height: 100px; padding: 30px 0 0.1rem; }
    .hero-title { font-size: 1.8rem; letter-spacing: 1px; margin-bottom: 0.4rem; }
    .hero-subtitle { font-size: 1rem; letter-spacing: 1px; margin-bottom: 0.2rem; }
    .hero-desc { font-size: 0.9rem; max-width: 600px; margin: 0 auto; }

    /* 导航 */
    .navbar-brand { font-size: 1.1rem; }
    .brand-icon { width: 32px; height: 32px; font-size: 0.85rem; }

    /* 标题 */
    .section-title { font-size: 1.5rem; }
    .article-detail .article-title { font-size: 1.5rem; }

    /* 分类卡片 - 每行5-6个 */
    .cat-card { padding: 1.3rem 0.8rem; }
    .hot-cat-card { padding: 1.3rem 0.8rem; }
    .hot-cat-card .cat-desc { font-size: 0.7rem; margin-bottom: 0.35rem; }

    /* 文章卡片 */
    .card-img-wrapper { height: 150px; }

    /* 页脚 */
    .footer-col { margin-bottom: 1.5rem; }
    .footer-qr-row { justify-content: flex-start; gap: 0.8rem; }
    .footer-qr-img { width: 80px; height: 80px; }

    /* 会员 */
    .plan-price .price-number { font-size: 2rem; }
    .auth-card { max-width: 400px; }

    /* 内容页 */
    .article-content h2 { font-size: 1.3rem; }
    .article-content h3 { font-size: 1.15rem; }
    .hero-tags .tag-badge { padding: 0.25rem 0.8rem; font-size: 0.78rem; }
}

/* ================================================================
   平板竖屏 (576px - 768px)
   ================================================================ */
@media (max-width: 768px) {
    /* 基础排版 */
    body { font-size: 15px; }
    .container { padding-left: 1rem; padding-right: 1rem; }

    /* Hero区域 */
    .hero-title { font-size: 1.5rem; letter-spacing: 0.5px; margin-bottom: 0.3rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 0.2rem; }
    .hero-desc { font-size: 0.82rem; margin-bottom: 0.4rem; }
    .hero-section { min-height: auto; padding: 28px 0 0.05rem; }
    .hero-content { padding: 0.2rem 0; }
    .search-box .input-group { max-width: 100%; }
    .search-box .form-control { padding: 0.6rem 0.8rem; font-size: 0.9rem; }
    .search-box .btn { padding: 0.5rem 0.9rem; font-size: 0.85rem; white-space: nowrap; }
    .hero-tags { flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
    .hero-tags .tag-badge { padding: 0.25rem 0.75rem; font-size: 0.76rem; }

    /* 导航栏 */
    #mainNav { padding: 0.3rem 0; }
    .navbar-brand { font-size: 1rem; }
    .brand-icon { width: 28px; height: 28px; font-size: 0.75rem; margin-right: 6px; }
    .navbar-toggler { padding: 0.3rem 0.6rem; border: 1px solid rgba(255,255,255,0.3); }
    .navbar-nav { padding-top: 0.5rem; }
    .navbar-dark .navbar-nav .nav-link { padding: 0.6rem 0.8rem; font-size: 0.9rem; border-radius: 6px; margin: 2px 0; }
    #navbarMain .search-form { width: 100%; margin: 0.5rem 0; }
    #navbarMain .search-form .input-group { width: 100%; }
    #navbarMain .nav-item .btn { display: block; width: 100%; margin: 0.3rem 0; text-align: center; }
    #navbarMain .navbar-nav:last-child { flex-direction: column; }

    /* 板块标题 */
    .section-title { font-size: 1.3rem; margin-bottom: 0.8rem; }
    .section-desc { font-size: 0.85rem; margin-bottom: 0.5rem; }

    /* section-header: 标题和按钮同行 */
    .section-header { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 0.5rem !important; flex-wrap: nowrap !important; }
    .section-header h3 { font-size: 1.1rem; margin-bottom: 0; white-space: nowrap; }
    .section-header .btn { flex-shrink: 0; font-size: 0.72rem; padding: 0.3rem 0.6rem; white-space: nowrap; }

    /* 分类卡片 - 每行3-4个 */
    .cat-card { padding: 0.85rem 0.5rem; border-radius: 10px; }
    .cat-icon { font-size: 1.6rem; margin-bottom: 0.35rem; }
    .cat-name { font-size: 0.85rem; margin-bottom: 0.2rem; }
    .cat-desc { display: none; }
    .cat-count { font-size: 0.7rem; }
    .categories-section .row.g-4 { --bs-gutter-y: 0.6rem; --bs-gutter-x: 0.6rem; }
    .all-categories-section .row,
    .hot-categories-section .row { justify-content: center !important; }

    /* 热门板块卡片 */ 
    .hot-cat-card { padding: 0.85rem 0.5rem; }
    .hot-cat-card .cat-icon { font-size: 1.6rem; }
    .hot-cat-card .cat-name { font-size: 0.85rem; }
    .hot-cat-card .cat-desc { display: block !important; font-size: 0.6rem; color: var(--text-muted); margin-bottom: 0.35rem; line-height: 1.35; }
    .hot-cat-card .cat-count { font-size: 0.68rem; }
    .hot-cat-card .hot-count { font-size: 0.65rem; padding: 0.12rem 0.45rem; margin-top: 0.3rem; }

    /* 文章卡片 - 2列 */
    .card-img-wrapper { height: 135px; }
    .article-title { font-size: 0.9rem; line-height: 1.4; }
    .article-card .card-body { padding: 0.8rem; }
    .article-card .article-title { font-size: 0.85rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .article-card .badge { font-size: 0.68rem; padding: 2px 6px; }
    .article-card small { font-size: 0.7rem; }
    .recent-section .row.g-4, .featured-section .row.g-4 { --bs-gutter-y: 0.7rem; --bs-gutter-x: 0.7rem; }

    /* 置顶卡片 */
    .pinned-card .card-body { padding: 1rem; }
    .pinned-card .card-title { font-size: 1rem; }
    .pinned-card .card-text { font-size: 0.8rem; -webkit-line-clamp: 2; }

    /* 名言区域 */
    .quote-card { padding: 0.6rem; border-radius: 12px; }
    .quote-text { font-size: 1rem; line-height: 1.5; }
    .quote-icon-start, .quote-icon-end { font-size: 1.1rem; opacity: 0.18; }
    .figure-avatar { width: 30px; height: 30px; font-size: 0.62rem; }

    /* CTA */
    .cta-section { padding: 2.5rem 0 !important; }
    .cta-section h3 { font-size: 1.2rem; }
    .cta-section .lead { font-size: 0.9rem; }
    .cta-section .btn { width: 90%; margin: 0.4rem auto; font-size: 0.95rem; padding: 0.65rem 1rem; }

    /* 页脚 */
    .site-footer { padding: 1.5rem 0 0.8rem; margin-top: 0 !important; }
    .footer-col { margin-bottom: 1.1rem; }
    .footer-brand-col { margin-bottom: 1rem; }
    .footer-brand { font-size: 1.1rem; margin-bottom: 0.4rem; }
    .footer-desc { font-size: 0.8rem; line-height: 1.55; max-width: none; }
    .footer-title { font-size: 0.85rem; margin-bottom: 0.25rem; line-height: 1.05; }
    .footer-contact-col { display: flex; flex-direction: column; }
    .footer-qr-col { display: flex; flex-direction: column; justify-content: flex-end; }
    .footer-contact { font-size: 0.8rem; line-height: 20px; margin-bottom: 0.25rem; }
    .footer-contact:last-child { margin-bottom: 0; }
    .social-icon { width: 34px; height: 34px; }
    .footer-bottom { font-size: 0.75rem; padding: 0.7rem 0; }
    .footer-qr-row { justify-content: flex-start; gap: 0.5rem; flex-wrap: nowrap; }
    .footer-qr-img { width: 36px; height: 36px; padding: 2px; }
    .footer-qr-label { font-size: 0.6rem; margin-top: 0.2rem; }
    .footer-divider { margin: 1rem 0; }

    /* 文章内容页 */
    .article-content { font-size: 1rem; line-height: 1.8; }
    .article-content h2 { font-size: 1.2rem; margin: 1.5rem 0 0.8rem; }
    .article-content h3 { font-size: 1.05rem; }
    .article-content blockquote { padding: 0.8rem 1rem; margin: 1rem 0; font-size: 0.95rem; }
    .article-content img { max-width: 100%; height: auto; border-radius: 8px; }
    .article-content table { display: block; overflow-x: auto; }
    .article-cover img { max-height: 200px; border-radius: 8px; }
    .article-detail .article-title { font-size: 1.3rem; }
    .article-meta { font-size: 0.8rem; flex-wrap: wrap; }
    .article-info-bar { font-size: 0.78rem; gap: 0.8rem !important; }
    .article-info-item { padding: 0.1rem 0; }
    .article-footer-nav { flex-direction: column; gap: 0.5rem; }
    .article-footer-nav .btn { width: 100%; }

    /* 会员页 */
    .plan-card { margin-bottom: 0.8rem; border-radius: 12px; }
    .plan-price .price-number { font-size: 1.5rem; }
    .plan-features { font-size: 0.75rem; }
    .benefit-card { padding: 0.7rem 0.35rem; border-radius: 10px; }
    .benefit-card h6 { font-size: 0.78rem; margin-bottom: 0.2rem; }
    .benefit-card p.small { font-size: 0.7rem; line-height: 1.3; }
    .benefit-card i.fa-2x { font-size: 1.1rem !important; margin-bottom: 0.25rem !important; }
    .plan-badge { font-size: 0.7rem; padding: 0.15rem 2.5rem; top: 10px; right: -40px; }
    .membership-hero { padding: 1.5rem 0 !important; }
    .membership-hero h1 { font-size: 1.2rem; margin-bottom: 0.3rem !important; }
    .membership-hero .lead { font-size: 0.84rem; margin-bottom: 0.15rem !important; }
    .membership-hero p.text-white { font-size: 0.78rem; }
    .membership-hero .alert.mt-3 { margin-top: 0.5rem !important; font-size: 0.8rem; padding: 0.45rem 0.8rem; }
    .membership-page .container.py-4 { padding-top: 0.8rem !important; padding-bottom: 0.8rem !important; }
    .membership-page .row.mb-5 { margin-bottom: 1.2rem !important; }
    .membership-page .row.g-3 { --bs-gutter-y: 0.5rem; --bs-gutter-x: 0.5rem; }
    .membership-page .row.g-4 { --bs-gutter-y: 0.6rem; }
    .plan-card .card-body { padding: 0.75rem 0.55rem; }
    .plan-name { font-size: 0.9rem; margin-bottom: 0; }
    .plan-price { margin: 0.35rem 0; }
    .plan-price .original-price { font-size: 0.72rem; }
    .plan-card p.small { font-size: 0.68rem; }
    .feature-item { padding: 0.12rem 0; font-size: 0.73rem; }
    .plan-card .plan-features.mt-2 { margin-top: 0.3rem !important; }
    .plan-card .btn.mt-3 { margin-top: 0.3rem !important; padding: 0.35rem 0.5rem; font-size: 0.8rem; }
    .membership-intro .card-body { padding: 0.8rem !important; }
    #faqAccordion .accordion-button { font-size: 0.8rem; padding: 0.55rem 0.8rem; }
    #faqAccordion .accordion-body { font-size: 0.78rem; padding: 0.5rem 0.8rem; }
    .membership-page h3 { font-size: 1rem; margin-bottom: 0.5rem !important; }
    .membership-page h4 { font-size: 0.95rem; margin-bottom: 0.5rem !important; }
    .benefit-card i.fa-2x { font-size: 1.2rem; margin-bottom: 0.3rem !important; }
    .benefit-card h6 { font-size: 0.8rem; margin-bottom: 0.2rem; }
    .benefit-card p.small { font-size: 0.72rem; line-height: 1.3; }
    .membership-page .container.mt-5 { margin-top: 1rem !important; }
    .membership-page .row.mt-5 { margin-top: 1rem !important; }

    /* 认证页 */
    .auth-card { max-width: 100%; padding: 1.5rem; margin: 0 0.5rem; border-radius: 12px; }
    .auth-logo { font-size: 1.2rem; }

    /* 用户中心 */
    .user-dashboard.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .user-dashboard .row.mb-4 { margin-bottom: 0.8rem !important; }
    .user-dashboard .col-lg-4.mb-3 { margin-bottom: 0.6rem !important; }
    .user-info-card .card-body { padding: 1rem 0.9rem; }
    .user-info-card .user-avatar-lg { margin-bottom: 0.6rem !important; }
    .user-avatar-lg { width: 56px !important; height: 56px !important; }
    .user-info-card h5 { font-size: 0.95rem; margin-bottom: 0.15rem !important; }
    .user-info-card p { margin-bottom: 0.2rem; }
    .user-info-card .badge { font-size: 0.72rem; padding: 0.2rem 0.6rem !important; margin-bottom: 0.3rem !important; }
    .user-info-card .small { font-size: 0.72rem !important; }
    .user-info-card p.text-muted.mt-2 { margin-top: 0.3rem !important; }
    .user-dashboard .row.g-3 { --bs-gutter-y: 0.6rem; }
    .stat-card { padding: 0.5rem; border-radius: 10px; }
    .stat-card .card-body { padding: 0.35rem 0.2rem; }
    .stat-card h4 { font-size: 1.05rem; margin-bottom: 0.05rem !important; }
    .stat-card small { font-size: 0.7rem; }
    .stat-icon { font-size: 1.05rem; margin-bottom: 0.1rem; }
    .user-dashboard .card.mt-3 { margin-top: 0.5rem !important; }
    .user-dashboard .card.mt-3 .card-body { padding: 0.45rem 0.3rem; }
    .user-dashboard .card.mt-3 .btn-sm { font-size: 0.7rem; padding: 0.25rem 0.2rem; white-space: nowrap; }
    .user-dashboard .col-md-6.mb-3 { margin-bottom: 0.5rem !important; }
    .user-dashboard .card-header { padding: 0.5rem 0.8rem; }
    .user-dashboard .card-header h6 { font-size: 0.82rem; }
    .user-dashboard .card-header a.small { font-size: 0.73rem; }
    .user-dashboard .list-group-item { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
    .user-dashboard .list-group-item .badge { font-size: 0.62rem; padding: 0.12rem 0.35rem; }
    .user-dashboard .text-center.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; font-size: 0.78rem; }
    .user-sidebar { margin-bottom: 0.8rem; }

    /* 支付 */
    .payment-modal-card { padding: 1.2rem; width: 98%; border-radius: 12px; max-height: 90vh; overflow-y: auto; }
    .qr-code-img { max-width: 160px; border-radius: 8px; }
    .payment-modal-close { top: 8px; right: 12px; font-size: 1.5rem; }
    .payment-order-info { font-size: 0.85rem; padding: 0.6rem; }
    .payment-custom-text { font-size: 0.85rem; line-height: 1.7; }

    /* 表格 */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { font-size: 0.85rem; }
    table th, table td { white-space: nowrap; }

    /* 按钮 */
    .btn { font-size: 0.88rem; padding: 0.5rem 1rem; }
    .btn-sm { font-size: 0.82rem; padding: 0.35rem 0.7rem; }
    .btn-gold, .btn-outline-gold { font-size: 0.9rem; }

    /* 面包屑 */
    .breadcrumb { font-size: 0.82rem; flex-wrap: wrap; }

    /* VIP付费墙 */
    .vip-paywall { padding: 1.2rem !important; border-radius: 8px; }
    .vip-paywall h5 { font-size: 1rem; }
    .vip-paywall .btn { width: 100%; margin-top: 0.5rem; }
    .vip-paywall .d-flex.gap-2 { flex-direction: column; gap: 0.5rem !important; }

    /* 评论 */
    .comment-item { padding-bottom: 0.8rem; margin-bottom: 0.8rem; }
    .comment-form textarea { font-size: 0.9rem; }

    /* 分页 */
    .pagination { font-size: 0.8rem; flex-wrap: wrap; }
    .pagination .page-link { padding: 0.35rem 0.6rem; }

    /* 公告 */
    .alert-announcement { font-size: 0.82rem; padding: 0.6rem 0.8rem; }

    /* 分类页面 */
    .category-header { padding: 1.5rem 0; }
    .category-header h2 { font-size: 1.3rem; }

    /* 付费墙 & 预览 */
    .preview-text { max-height: 250px; font-size: 0.9rem; }
    .preview-fade-mask { height: 80px; }

    /* 返回顶部（由 main.js 动态注入样式控制，此处不再覆盖） */

    /* 侧边栏 */
    .sidebar-card { border-radius: 10px; }
    .sidebar-card .card-body { padding: 1rem; }
    .sidebar-card h6 { font-size: 0.9rem; }

    /* 间距 */
    section.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    section.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    section.mb-5 { margin-bottom: 0 !important; }
}

/* ================================================================
   小屏手机 (< 480px)
   ================================================================ */
@media (max-width: 480px) {
    /* 基础排版 */
    body { font-size: 14px; }
    .container { padding-left: 10px; padding-right: 10px; }

    /* Hero */
    .hero-title { font-size: 1.2rem; margin-bottom: 0.2rem; }
    .hero-subtitle { font-size: 0.82rem; margin-bottom: 0.15rem; }
    .hero-desc { font-size: 0.76rem; margin-bottom: 0.3rem; }
    .hero-section { padding: 25px 0 0.05rem; }
    .search-box .form-control { padding: 0.5rem 0.7rem; font-size: 0.85rem; }
    .search-box .btn { padding: 0.35rem 0.8rem; font-size: 0.85rem; }
    .search-box .input-group-text { padding: 0.5rem 0.7rem; }
    .hero-tags .tag-badge { padding: 0.2rem 0.55rem; font-size: 0.7rem; }

    /* 导航 */
    #mainNav { padding: 0.2rem 0; }
    .navbar-brand { font-size: 0.9rem; }
    .brand-icon { width: 24px; height: 24px; font-size: 0.65rem; }
    .navbar-dark .navbar-nav .nav-link { padding: 0.5rem 0.6rem; font-size: 0.82rem; }

    /* 板块标题 */
    .section-title { font-size: 1.1rem; }
    .section-title::after { width: 30px; height: 2px; }
    .section-header h3 { font-size: 1rem; }
    .section-header .btn { font-size: 0.68rem; padding: 0.25rem 0.5rem; }
    .section-desc { font-size: 0.78rem; }
    .section-subtitle { font-size: 0.78rem; margin-bottom: 0.6rem !important; }

    /* 分类卡片 - 强制3列 */
    .categories-section .row.g-4 > [class*="col-"] { width: 33.333% !important; flex: none; }
    .cat-card { padding: 0.6rem 0.25rem; border-radius: 8px; }
    .cat-icon { font-size: 1.3rem; margin-bottom: 0.2rem; }
    .cat-name { font-size: 0.72rem; }
    .cat-desc { display: none; }
    .cat-count { font-size: 0.62rem; }

    /* 热门板块卡片 - 3列紧凑 */
    .hot-cat-card { padding: 0.6rem 0.25rem; border-radius: 8px; }
    .hot-cat-card .cat-icon { font-size: 1.3rem; margin-bottom: 0.2rem; }
    .hot-cat-card .cat-name { font-size: 0.7rem; }
    .hot-cat-card .cat-desc { display: block !important; font-size: 0.52rem; line-height: 1.3; margin-bottom: 0.2rem; }
    .hot-cat-card .cat-count { font-size: 0.58rem; padding: 0.08rem 0.4rem; }
    .hot-cat-card .hot-count { font-size: 0.58rem; padding: 0.08rem 0.4rem; margin-top: 0.25rem; }
    .hot-cat-card .hot-count i { font-size: 0.55rem; }

    /* 文章卡片 - 强制2列 */
    .recent-section .row.g-4 > [class*="col-"],
    .featured-section .row.g-4 > [class*="col-"],
    .all-page .row.g-4 > [class*="col-"] { width: 50% !important; flex: none; }
    .card-img-wrapper { height: 100px; border-radius: 6px 6px 0 0; }
    .card-img-wrapper img { height: 100px; }
    .article-title { font-size: 0.8rem; }
    .article-card .card-body { padding: 0.55rem; }
    .article-card { border-radius: 8px; }
    .article-card .article-title { font-size: 0.78rem; }
    .article-card .badge { font-size: 0.62rem; }
    .article-card small { font-size: 0.65rem; }

    /* 置顶 - 单列全宽 */
    .pinned-section .row.g-4 > [class*="col-"] { width: 100% !important; flex: none; }

    /* 网格间距收紧 */
    .row.g-4 { --bs-gutter-y: 0.7rem; --bs-gutter-x: 0.5rem; }
    .row.g-3 { --bs-gutter-y: 0.4rem; --bs-gutter-x: 0.4rem; }

    /* 文章内容 */
    .article-detail .article-title { font-size: 1.15rem; }
    .article-content { font-size: 0.93rem; line-height: 1.75; }
    .article-content h2 { font-size: 1.1rem; }
    .article-content h3 { font-size: 1rem; }
    .article-meta { gap: 0.4rem !important; font-size: 0.75rem; }
    .article-info-bar { font-size: 0.72rem; gap: 0.5rem !important; flex-wrap: wrap; }
    .article-cover img { max-height: 160px; object-fit: cover; }

    /* 会员页 */
    .plan-price .price-number { font-size: 1.3rem; }
    .plan-badge { font-size: 0.6rem; padding: 0.1rem 1.6rem; top: 6px; right: -22px; }
    .benefit-card { padding: 0.5rem 0.25rem; border-radius: 8px; }
    .benefit-card h6 { font-size: 0.7rem; margin-bottom: 0.1rem; }
    .benefit-card p.small { font-size: 0.65rem; line-height: 1.2; }
    .benefit-card i.fa-2x { font-size: 0.9rem !important; margin-bottom: 0.15rem !important; }
    .plan-card { margin-bottom: 0.5rem; }
    .plan-card .card-body { padding: 0.55rem 0.45rem; }
    .plan-name { font-size: 0.82rem; }
    .plan-price { margin: 0.25rem 0; }
    .plan-price .original-price { font-size: 0.65rem; }
    .plan-card p.small { font-size: 0.6rem; }
    .plan-card .plan-features.mt-2 { margin-top: 0.3rem !important; }
    .plan-features { font-size: 0.7rem; }
    .feature-item { padding: 0.07rem 0; font-size: 0.7rem; }
    .plan-card .plan-features.mt-2 { margin-top: 0.2rem !important; }
    .plan-card .btn.mt-3 { margin-top: 0.25rem !important; padding: 0.3rem 0.4rem; font-size: 0.72rem; }
    .membership-hero { padding: 1rem 0 !important; }
    .membership-hero h1 { font-size: 1.05rem; margin-bottom: 0.2rem !important; }
    .membership-hero .lead { font-size: 0.78rem; margin-bottom: 0.1rem !important; }
    .membership-hero p.text-white { font-size: 0.72rem; }
    .membership-hero .alert.mt-3 { margin-top: 0.35rem !important; font-size: 0.75rem; padding: 0.35rem 0.6rem; }
    .membership-page .container.py-4 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
    .membership-page .row.mb-5 { margin-bottom: 0.8rem !important; }
    .membership-page .row.g-3 { --bs-gutter-y: 0.35rem; --bs-gutter-x: 0.35rem; }
    .membership-page .row.g-4 { --bs-gutter-y: 0.4rem; }
    .plan-card .btn.mt-3 { margin-top: 0.3rem !important; padding: 0.35rem 0.5rem; font-size: 0.8rem; }
    .membership-page h3 { font-size: 0.92rem; margin-bottom: 0.35rem !important; }
    .membership-page h4 { font-size: 0.88rem; margin-bottom: 0.35rem !important; }
    .benefit-card i.fa-2x { font-size: 1rem; margin-bottom: 0.2rem !important; }
    .benefit-card p.small { font-size: 0.68rem; line-height: 1.25; }
    .membership-intro .card-body { padding: 0.65rem !important; }
    #faqAccordion .accordion-button { font-size: 0.76rem; padding: 0.45rem 0.7rem; }
    #faqAccordion .accordion-body { font-size: 0.74rem; padding: 0.4rem 0.7rem; }
    .membership-page .container.mt-5 { margin-top: 0.6rem !important; }
    .membership-page .row.mt-5 { margin-top: 0.6rem !important; }
    .auth-card { padding: 1rem; border-radius: 10px; }

    /* 用户中心 */
    .user-dashboard.py-4 { padding-top: 0.6rem !important; padding-bottom: 1rem !important; }
    .user-dashboard .row.mb-4 { margin-bottom: 0.4rem !important; }
    .user-dashboard .col-lg-4.mb-3 { margin-bottom: 0.4rem !important; }
    .user-info-card .card-body { padding: 0.75rem 0.7rem; }
    .user-info-card .user-avatar-lg { margin-bottom: 0.4rem !important; }
    .user-avatar-lg { width: 46px !important; height: 46px !important; }
    .user-info-card h5 { font-size: 0.88rem; margin-bottom: 0.1rem !important; }
    .user-info-card p { margin-bottom: 0.15rem; }
    .user-info-card .badge { font-size: 0.66rem; padding: 0.15rem 0.5rem !important; margin-bottom: 0.2rem !important; }
    .user-info-card .small { font-size: 0.68rem !important; }
    .user-info-card p.text-muted.mt-2 { margin-top: 0.2rem !important; }
    .user-dashboard .row.g-3 { --bs-gutter-y: 0.4rem; --bs-gutter-x: 0.4rem; }
    .stat-card { padding: 0.35rem; border-radius: 8px; }
    .stat-card .card-body { padding: 0.3rem 0.15rem; }
    .stat-card h4 { font-size: 0.95rem; margin-bottom: 0 !important; }
    .stat-card small { font-size: 0.62rem; }
    .stat-icon { font-size: 0.9rem; margin-bottom: 0.06rem; }
    .user-dashboard .card.mt-3 { margin-top: 0.4rem !important; }
    .user-dashboard .card.mt-3 .card-body { padding: 0.4rem 0.25rem; }
    .user-dashboard .card.mt-3 .btn-sm { font-size: 0.66rem; padding: 0.2rem 0.18rem; white-space: nowrap; }
    .user-dashboard .col-md-6.mb-3 { margin-bottom: 0.35rem !important; }
    .user-dashboard .card-header { padding: 0.4rem 0.6rem; }
    .user-dashboard .card-header h6 { font-size: 0.78rem; }
    .user-dashboard .card-header a.small { font-size: 0.68rem; }
    .user-dashboard .list-group-item { padding: 0.38rem 0.6rem; font-size: 0.76rem; }
    .user-dashboard .list-group-item .badge { font-size: 0.58rem; padding: 0.1rem 0.3rem; }
    .user-dashboard .list-group-item small { font-size: 0.65rem; }
    .user-dashboard .text-center.py-4 { padding-top: 0.8rem !important; padding-bottom: 0.8rem !important; font-size: 0.72rem; }

    /* 支付 */
    .qr-code-img { max-width: 130px; }
    .payment-modal-card { padding: 1rem; border-radius: 10px; }

    /* 弹窗 */
    .modal-dialog { margin: 0.3rem; }

    /* 按钮 */
    .btn { font-size: 0.85rem; padding: 0.45rem 0.8rem; }
    .btn-lg { font-size: 0.95rem; padding: 0.6rem 1.2rem; }
    .btn-group { display: flex; flex-wrap: wrap; gap: 0.3rem; }
    .btn-group .btn { flex: 1; min-width: 80px; }

    /* 名言 */
    .quote-card { padding: 0.5rem; }
    .quote-text { font-size: 0.9rem; line-height: 1.45; }
    .quote-icon-start { top: 0; left: 0; }
    .quote-icon-end { bottom: 0; right: 0; }
    .figure-avatar { width: 26px; height: 26px; font-size: 0.58rem; margin: 0 1px; }

    /* 页脚 */
    .site-footer { padding: 1.8rem 0 1rem; }
    .footer-col { margin-bottom: 1rem; }
    .footer-brand { font-size: 1rem; }
    .footer-desc { font-size: 0.76rem; line-height: 1.5; }
    .footer-title { font-size: 0.85rem; margin-bottom: 0.4rem; }
    .footer-contact { font-size: 0.78rem; line-height: 2.2; margin-bottom: 0.5rem; }
    .footer-links { gap: 0.2rem 0.5rem; }
    .footer-links a { font-size: 0.73rem; }
    .social-icon { width: 30px; height: 30px; font-size: 0.8rem; }
    .footer-qr-img { width: 60px; height: 60px; padding: 2px; }
    .footer-qr-label { font-size: 0.6rem; }
    .footer-bottom p { font-size: 0.68rem; }
    .footer-legal-links a { font-size: 0.65rem; }
    .footer-email-link { font-size: 0.73rem; }

    /* 间距缩小 */
    .py-4 { padding-top: 1.2rem !important; padding-bottom: 1.2rem !important; }
    .py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .mb-4 { margin-bottom: 0.8rem !important; }
    .mb-5 { margin-bottom: 1rem !important; }
    .g-4 { --bs-gutter-y: 0.5rem; --bs-gutter-x: 0.5rem; }

    /* 装饰元素 */
    .hero-section::before,
    .hero-section::after { width: 120px; height: 120px; opacity: 0.35; }

    /* 分类头部 */
    .category-header { padding: 1.2rem 0; }
    .category-header h2 { font-size: 1.15rem; }

    /* accordion */
    .accordion-button { font-size: 0.85rem; padding: 0.8rem 1rem; }
    .accordion-body { font-size: 0.85rem; padding: 0.8rem 1rem; }

    /* form */
    .form-control { font-size: 0.9rem; }
    .form-label { font-size: 0.85rem; margin-bottom: 0.3rem; }

    /* iOS touch */
    .btn-gold, button[type="submit"] { min-height: 44px; }
    a, button { min-height: 44px; display: inline-flex; align-items: center; }
    .tag-badge, .badge, .navbar-toggler, .btn-sm, .page-link, .breadcrumb a { min-height: auto; }

    /* 付费墙 */
    .vip-paywall { padding: 1rem !important; margin: 0.8rem 0; border-radius: 10px; }
    .vip-paywall .d-flex.gap-2 { flex-direction: column; gap: 0.4rem !important; }

    /* 公告 */
    .pending-payment-bar .container > div { flex-direction: column; align-items: flex-start !important; gap: 0.5rem; }
    .pending-payment-bar .badge + span { font-size: 0.78rem; }

    /* 文章信息条 */
    .article-info-bar { font-size: 0.7rem; gap: 0.4rem !important; }
}

/* ================================================================
   极窄屏 (< 360px)
   ================================================================ */
@media (max-width: 360px) {
    body { font-size: 13px; }
    .container { padding-left: 8px; padding-right: 8px; }

    .hero-title { font-size: 1.0rem; margin-bottom: 0.15rem; }
    .hero-subtitle { font-size: 0.72rem; margin-bottom: 0.1rem; }
    .hero-desc { display: none; }
    .hero-section { padding: 24px 0 0.05rem; }

    .section-header h3 { font-size: 0.9rem; }
    .section-header .btn { font-size: 0.62rem; padding: 0.2rem 0.45rem; }

    .cat-card { padding: 0.5rem 0.15rem; }
    .cat-icon { font-size: 1.1rem; margin-bottom: 0.15rem; }
    .cat-name { font-size: 0.65rem; }
    .cat-count { font-size: 0.55rem; }

    .hot-cat-card { padding: 0.5rem 0.15rem; }
    .hot-cat-card .cat-icon { font-size: 1.1rem; }
    .hot-cat-card .cat-name { font-size: 0.62rem; }
    .hot-cat-card .cat-desc { display: block !important; font-size: 0.48rem; line-height: 1.25; margin-bottom: 0.15rem; }
    .hot-cat-card .cat-count { font-size: 0.52rem; padding: 0.05rem 0.3rem; }
    .hot-cat-card .hot-count { font-size: 0.52rem; padding: 0.05rem 0.3rem; margin-top: 0.18rem; }
    .hot-cat-card .hot-count i { font-size: 0.5rem; }

    .card-img-wrapper { height: 85px; }
    .card-img-wrapper img { height: 85px; }
    .article-card .article-title { font-size: 0.72rem; }
    .article-card .badge { font-size: 0.58rem; }
    .article-card small { font-size: 0.6rem; }

    .row.g-4 { --bs-gutter-y: 0.4rem; --bs-gutter-x: 0.35rem; }
    .row.g-3 { --bs-gutter-y: 0.3rem; --bs-gutter-x: 0.3rem; }

    .footer-brand { font-size: 0.9rem; }
    .footer-desc { font-size: 0.7rem; }
    .footer-links a { font-size: 0.68rem; }
    .footer-qr-row { gap: 0.35rem; }
    .footer-qr-img { width: 48px; height: 48px; }
    .footer-qr-label { font-size: 0.55rem; margin-top: 0.15rem; }
    .social-icon { width: 28px; height: 28px; font-size: 0.75rem; }
}

/* ---- 遮罩层 & 弹窗通用 ---- */
.modal-dialog { margin: 0.5rem; }
.modal-content { border-radius: 12px; overflow: hidden; }
.modal-header { padding: 0.8rem 1rem; }
.modal-body { padding: 1rem; }
.modal-footer { padding: 0.8rem 1rem; }

/* ---- 触摸设备优化 ---- */
@media (hover: none) {
    .cat-card:hover, .article-card:hover, .plan-card:hover, .figure-avatar:hover,
    .card.hover-lift:hover { transform: none; }
    .article-card:hover .card-img-wrapper img { transform: none; }
    .plan-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
}

/* ---- 暗色模式适配（可选） ---- */
@media (prefers-color-scheme: dark) {
    /* 基础暗色适配，用户可自行开启 */
    /* body { background: #1a1a1a; color: #ddd; } */
}

/* ---- 打印样式 ---- */
@media print {
    .navbar, .site-footer, .hero-section, .btn, .comment-form, .vip-paywall { display: none !important; }
    body { font-size: 14px; line-height: 1.6; color: #000; }
    .container { max-width: 100%; padding: 0; }
    .article-content { font-size: 14px; }
    a { color: #000; text-decoration: none; }
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* ========== 支付弹窗 ========== */
.payment-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-modal-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInUp 0.3s ease;
}
.payment-modal-close {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}
.payment-modal-close:hover { color: var(--text); }

.payment-order-info {
    background: var(--cream);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
}

.qr-code-container {
    padding: 1rem 0;
}
.qr-code-img {
    max-width: 200px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.qr-placeholder {
    padding: 2rem;
    background: var(--cream);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}
.qr-placeholder-icon { opacity: 0.6; }
.qr-tip {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.payment-instructions .alert {
    border: 1px solid var(--border);
}

/* ========== 法律条款页面 ========== */
.legal-content { font-size: 0.95rem; line-height: 1.9; color: #333; }
.legal-content h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #1a1a1a; }
.legal-content h4 { font-size: 1.15rem; margin: 1.5rem 0 0.8rem; color: #333; }
.legal-content p { margin-bottom: 0.8rem; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.legal-content li { margin-bottom: 0.4rem; }

.footer-legal-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.9); }

/* ========== 文章信息条增强 ========== */
.article-info-bar {
    font-size: 0.875rem;
}
.article-info-item {
    display: inline-flex;
    align-items: center;
    color: #666;
}
.article-info-item .badge {
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========== 板块衔接——消除白色间隔 ========== */
/* Hero 底部不留任何间距 */
.hero-section { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.hero-content { padding-bottom: 0 !important; }
.hero-content .row { margin-bottom: 0 !important; }

/* 待支付条：上下不留间距 */
.pending-payment-bar { margin-top: 0 !important; margin-bottom: 0 !important; }

/* 公告区：取消上下间距，压缩内边距，最后一个公告去掉底部边距 */
.announcement-section { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.announcement-section .container { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.announcement-section .alert:last-child { margin-bottom: 0 !important; }

/* 置顶区：取消上下间距 */
.pinned-section { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 1rem !important; padding-bottom: 1rem !important; }

/* 智慧板块：取消上间距 */
.hot-categories-section { margin-top: 0 !important; padding-top: 2rem !important; }

/* ========== 付费墙增强 ========== */
.vip-paywall {
    position: relative;
    border: 2px dashed #f0ad4e !important;
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%) !important;
}
.vip-paywall .price-display {
    min-height: 40px;
}
.price-display .badge {
    font-size: 0.95rem;
    font-weight: 600;
}

/* ========== 预览内容渐隐效果 ========== */
.preview-content {
    position: relative;
    margin-bottom: 0.5rem;
}
.preview-text {
    padding: 1rem;
    border-left: 3px solid var(--gold, #c9a45c);
    background: #fafafa;
    border-radius: 0 4px 4px 0;
    line-height: 1.9;
    color: #444;
    max-height: 400px;
    overflow: hidden;
}
.preview-fade-overlay {
    position: relative;
}
.preview-fade-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent 0%, rgba(250,250,250,0.9) 50%, #fafafa 100%);
    pointer-events: none;
}
.preview-fade-text {
    padding: 1rem 0 1.5rem;
    color: #c9a45c;
    font-weight: 600;
    font-size: 0.95rem;
}
.preview-fade-text small {
    font-size: 0.8rem;
    color: #999;
}

/* ================================================================
   全部内容页 - 卡片列表
   ================================================================ */
.article-list-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.article-card {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-light);
    color: var(--text);
}

.article-card-thumb {
    position: relative;
    width: 100px;
    min-width: 100px;
    height: 76px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* 无封面时的首字占位 */
.article-card-char {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    font-weight: 800;
    color: #f0e6c8;
    background: linear-gradient(135deg, #8b6914 0%, #a07828 25%, #6b4f10 100%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    user-select: none;
}

.article-card:hover .article-card-thumb img {
    transform: scale(1.05);
}

.article-card-cat {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 2px 7px;
    font-size: 0.65rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    border-radius: 999px;
    line-height: 1;
}

.article-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 2px 0;
}

.article-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    overflow: hidden;
    white-space: nowrap;
}

.article-card-price {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.68rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.article-card-price.vip {
    color: #8b6914;
    background: linear-gradient(135deg, #fff7e0, #f5e6c8);
}

.article-card-price.paid {
    color: #d35400;
    background: #fff0e6;
}

.article-card-price.free {
    color: #27ae60;
    background: #eafaf1;
}

/* 元信息分隔符 */
.article-card-divider {
    width: 1px;
    height: 12px;
    background: #d4d4d4;
    flex-shrink: 0;
    margin: 0 2px;
}

.article-card-time,
.article-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.article-card-time i,
.article-card-stat i {
    font-size: 0.65rem;
}

/* 小屏优化 */
@media (max-width: 575.98px) {
    .article-card {
        gap: 10px;
        padding: 8px;
    }

    .article-card-thumb {
        width: 80px;
        min-width: 80px;
        height: 60px;
    }

    .article-card-char {
        font-size: 1.6rem;
    }

    .article-card-title {
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .article-card-meta {
        font-size: 0.65rem;
        gap: 4px;
        margin-top: 4px;
    }

    .article-card-price {
        font-size: 0.63rem;
        padding: 2px 5px;
    }
}

/* ================================================================
   手机端底部快捷导航
   ================================================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #ffffff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #999;
    text-decoration: none;
    font-size: 0.65rem;
    padding: 4px 0;
    transition: color 0.15s;
}
.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}
.mobile-nav-item span {
    line-height: 1;
}
.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: #b8860b;
}

/* 手机端给 body 底部留出导航栏高度 */
@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }
}

/* ================================================================
   文章听书播放器 (TTS)
   ================================================================ */
.tts-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1029;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.tts-player-bar.open {
    transform: translateY(0);
}
/* 移动端：在底部导航栏上方打开 */
@media (max-width: 991.98px) {
    .tts-player-bar {
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }
}

.tts-player-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 14px 8px;
}

.tts-progress-wrap {
    height: 3px;
    background: #e9ecef;
    border-radius: 999px;
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
}
.tts-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d4a745, #b8860b);
    border-radius: 999px;
    transition: width 0.3s linear;
    width: 0%;
}
.tts-progress-thumb {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #b8860b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
    pointer-events: none;
}

.tts-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tts-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d4d4d4;
    background: #fff;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.tts-btn:hover {
    background: #f5f0e6;
    border-color: #b8860b;
}
.tts-btn.play-btn {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #d4a745, #b8860b);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(184,134,11,0.35);
}
.tts-btn.play-btn:hover {
    transform: scale(1.05);
}

.tts-btn-sm {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
}

.tts-seek-group {
    display: flex;
    gap: 4px;
}

.tts-speed-slider {
    width: 70px;
    accent-color: #b8860b;
}

.tts-speed-label {
    font-size: 0.7rem;
    color: #666;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.tts-voice-select {
    font-size: 0.72rem;
    padding: 4px 6px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #fff;
    color: #333;
    max-width: 120px;
    cursor: pointer;
    flex-shrink: 0;
}

.tts-track-toggle {
    font-size: 0.7rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    flex-shrink: 0;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s;
}
.tts-track-toggle:hover {
    background: #f5f0e6;
}
.tts-track-toggle.active {
    color: #b8860b;
}

.tts-close {
    margin-left: auto;
    color: #999;
    border: none;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 4px;
}
.tts-close:hover {
    color: #333;
}

.tts-open-btn {
    position: fixed;
    bottom: 85px;
    right: 25px;
    z-index: 1028;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a745, #b8860b);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(184,134,11,0.4);
    transition: transform 0.2s,box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tts-open-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(184,134,11,0.5);
}
.tts-open-btn.hidden {
    display: none !important;
}
/* 移动端：在返回顶部按钮上方，避开底部导航 */
@media (max-width: 991.98px) {
    .tts-open-btn {
        bottom: calc(130px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* TTS 跟读句子展示区 */
.tts-sentence-display {
    position: absolute;
    top: -52px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 780px;
    background: rgba(255,255,255,0.96);
    border: 1px solid #d4a745;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: #333;
    text-align: center;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tts-sentence-display.show {
    display: block;
}
.tts-sentence-display .tts-snt-label {
    color: #b8860b;
    font-weight: 600;
    margin-right: 6px;
    font-size: 0.75rem;
}

/* 文字跟踪高亮 - 简化版，仅用于标记 */
.tts-sentence-highlight {
    background: linear-gradient(transparent 60%, rgba(212,167,69,0.35) 60%);
    border-radius: 2px;
    padding: 0 2px;
    transition: background 0.3s;
}

/* 播完渐隐 */
.tts-fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

/* BGM 本地文件上传 */
.tts-bgm-file-input {
    display: none;
}
.tts-bgm-upload-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px dashed #ccc;
    background: #f9f9f9;
    color: #888;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.tts-bgm-upload-btn:hover {
    border-color: #b8860b;
    color: #b8860b;
    background: #fffaf0;
}

/* ================================================================
   背景音乐 (BGM)
   ================================================================ */
.tts-bgm-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e9ecef;
    flex-wrap: wrap;
}

.tts-bgm-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #d4a745;
    background: #fff;
    color: #b8860b;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.tts-bgm-toggle.active {
    background: linear-gradient(135deg, #d4a745, #b8860b);
    color: #fff;
    border-color: transparent;
}

.tts-bgm-select {
    font-size: 0.7rem;
    padding: 3px 5px;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    background: #fff;
    color: #333;
    max-width: 100px;
    cursor: pointer;
    flex-shrink: 0;
}

.tts-bgm-label {
    font-size: 0.65rem;
    color: #999;
    flex-shrink: 0;
}

.tts-bgm-vol-slider {
    width: 60px;
    accent-color: #b8860b;
    flex-shrink: 0;
}
.tts-bgm-vol-num {
    font-size: 0.65rem;
    color: #666;
    min-width: 30px;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .tts-bgm-row {
        gap: 4px;
        padding-top: 4px;
        margin-top: 4px;
    }
    .tts-bgm-select {
        max-width: 85px;
        font-size: 0.65rem;
    }
}

/* ================================================================
   项目分类徽章（文章 / 电子书 / 播客）
   ================================================================ */
.badge-type-article,
.badge-type-ebook,
.badge-type-podcast {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 3px 8px;
    border-radius: 999px;
}
.badge-type-article { color: #fff; background: #4d6bfe; }
.badge-type-ebook   { color: #fff; background: #1fa268; }
.badge-type-podcast { color: #fff; background: #e85d3d; }

/* ================================================================
   传世智慧录 v3.2 · 中式博客化紧凑主题
   设计语言：墨金典藏 + 宣纸底色 + 博客式信息流列表
   ================================================================ */
:root {
    --ink: #17161c;
    --ink-soft: #2a2833;
    --paper: #faf7f0;
    --paper-deep: #f3ecdd;
    --gold: #c8a35a;
    --gold-dark: #9a7a3a;
    --gold-light: #e7d3a7;
    --serif: "Noto Serif SC", "Source Han Serif CN", "Songti SC", "STSong", "SimSun", "Microsoft YaHei", serif;
}

/* ---- 宣纸底色 + 内容主体卡片留白 ---- */
body {
    background: var(--paper);
}
.main-content {
    background: var(--paper);
}
.bg-light {
    background-color: #f5efe1 !important;
}
/* 页面主体通用卡片区容器 */
.container.py-4 > h2,
.container.py-4 > h3 {
    color: var(--ink);
}

/* ---- 中式字体点缀：仅作用于大标题/栏目名，保证可读性 ---- */
.hero-title,
.section-title,
.categories-section .cat-name,
.hot-cat-card .cat-name,
.footer-brand,
.article-detail .article-title,
.category-header h2,
.membership-hero h1,
.plan-name {
    font-family: var(--serif);
    letter-spacing: 0.5px;
}

/* 会员介绍页顶部主标题：金色渐变字 */
.membership-hero h1 {
    color: #e6cd8d;
    background: linear-gradient(135deg, #f5e3ae 0%, #d9b25e 45%, #b48b48 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- 顶部导航：金线收边，强调会员/入口 ---- */
#mainNav {
    border-bottom: 1px solid rgba(200,163,90,0.28);
    box-shadow: 0 2px 18px rgba(23,22,28,0.35);
}
.navbar-dark .navbar-nav .nav-link {
    letter-spacing: 0.3px;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--gold-light);
}

/* ---- 区块标题：左侧金色竖线，博客栏目感 ---- */
.section-header.d-flex h3 {
    position: relative;
    padding-left: 13px;
    font-weight: 700;
}
.section-header.d-flex h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.05em;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
}
/* 让带图标的小节标题不被竖线遮挡 */
.section-header.d-flex h3 i {
    margin-right: 6px !important;
}

/* ---- 首页板块间距紧凑化 ---- */
.categories-section,
.hot-categories-section,
.pinned-section,
.recent-section,
.featured-section,
.quote-section,
.cta-section {
    padding-top: 1.7rem !important;
    padding-bottom: 1.7rem !important;
}
.section-header.mb-4 { margin-bottom: 0.9rem !important; }
.section-header.mb-5 { margin-bottom: 1.2rem !important; }
.pinned-section .row.g-4 { --bs-gutter-y: 0.8rem; }
.pinned-card {
    background: linear-gradient(135deg, #fffdf6, #faf3e0);
    border-left: 3px solid var(--gold);
}
.pinned-card .card-title {
    line-height: 1.5;
}

/* ---- 博客式信息流列表（首页/全部/分类/会员内容通用） ---- */
.article-list-cards {
    gap: 12px;
}
.article-card {
    background: #fff;
    border: 1px solid #eee4d0;
    border-radius: 10px;
    padding: 10px;
    gap: 12px;
    box-shadow: 0 1px 6px rgba(23,22,28,0.05);
}
.article-card:hover {
    border-color: var(--gold-light);
    box-shadow: 0 6px 18px rgba(154,122,58,0.12);
    transform: translateY(-2px);
}
.article-card-thumb {
    width: 108px;
    min-width: 108px;
    height: 82px;
    border-radius: 8px;
    border: 1px solid rgba(200,163,90,0.15);
}
/* 标题上方标签行 */
.article-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}
.article-card-tags .badge {
    font-weight: 500;
}
/* 项目分类徽章在列表中的尺寸 */
.article-card-tags .badge-type-article,
.article-card-tags .badge-type-ebook,
.article-card-tags .badge-type-podcast {
    font-size: 0.68rem;
    padding: 3px 8px;
    letter-spacing: 0.5px;
}
.article-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
    margin: 0;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-title:hover { color: var(--gold-dark); }
/* 首页“最新发布 / 精选推荐”：标题强制单行、不再换行，字号进一步缩小 */
.recent-section .article-card-title,
.featured-section .article-card-title,
body.no-thumbs .recent-section .article-card-title,
body.no-thumbs .featured-section .article-card-title {
    display: block;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
}
.article-card-meta {
    margin-top: 7px;
    gap: 7px;
    font-size: 0.72rem;
}
/* 分类小标签（正文区） */
.article-card-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    font-size: 0.68rem;
    color: #8a6d2f;
    background: #f7efda;
    border: 1px solid #ecdcb4;
    border-radius: 999px;
    line-height: 1.4;
    white-space: nowrap;
}
/* 置顶标签 */
.article-card-pin-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    font-size: 0.68rem;
    color: #fff;
    background: #c0392b;
    border-radius: 999px;
    line-height: 1.4;
}
/* 精选标签 */
.badge-featured-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #7a5c18;
    background: linear-gradient(135deg, #f3dfae, #e4c685);
    border: 1px solid #d4b264;
    border-radius: 999px;
    line-height: 1.4;
    white-space: nowrap;
}
/* 旧卡片中的“精选”徽章（详情/历史残留引用）统一 */
.badge-featured {
    border-radius: 999px;
}
/* 分类角标（缩略图左上）与金色品牌一致性 */
.article-card-cat {
    background: rgba(23,22,28,0.72);
    color: #ffe6ae;
    font-size: 0.62rem;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 2px 7px;
}
/* 缩略图无封面占位字符：套用项目分类主色（墨金系） */
.article-card-char {
    background: linear-gradient(135deg, #9a7a3a 0%, #c8a35a 55%, #7a5c18 100%);
    color: #fff8e6;
}
.article-card-thumb img { border-radius: 7px; }

/* ---- 分类/会员/全部列表页标题栏 ---- */
.container.py-4 .breadcrumb {
    background: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #eee4d0;
    font-size: 0.82rem;
}
.container.py-4 > h2 {
    font-size: 1.6rem;
    margin-bottom: 0.15rem;
}

/* ---- 项目分类徽章配色：中式典藏（藏青·竹绿·朱砂） ---- */
.badge-type-article {
    color: #fff;
    background: linear-gradient(135deg, #34558f, #2c4270);
    box-shadow: 0 0 0 1px rgba(52,85,143,0.25);
}
.badge-type-ebook {
    color: #fff;
    background: linear-gradient(135deg, #1e7a55, #155e42);
    box-shadow: 0 0 0 1px rgba(30,122,85,0.25);
}
.badge-type-podcast {
    color: #fff;
    background: linear-gradient(135deg, #b0392c, #8f2a1f);
    box-shadow: 0 0 0 1px rgba(176,57,44,0.25);
}
.badge-type-article,
.badge-type-ebook,
.badge-type-podcast {
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.badge-type-article i,
.badge-type-ebook i,
.badge-type-podcast i {
    font-size: 0.72em;
    opacity: 0.95;
}

/* ---- 按钮细节统一 ---- */
.btn-outline-gold:hover {
    color: #fff !important;
}
.btn-gold {
    background: linear-gradient(135deg, #d2ab63, #9a7a3a);
}
.btn-outline-dark {
    border-color: #c9c2b4;
    color: #4a463e;
}
.btn-outline-dark:hover {
    background: #4a463e;
    border-color: #4a463e;
    color: #fff;
}

/* ---- 置顶/最新/精选等区块背景节奏 ---- */
.recent-section { background: var(--paper); }
.recent-section.bg-light { background: #f5efe1; }
.featured-section {
    background: linear-gradient(180deg, var(--paper-deep), var(--paper));
    border-top: 1px solid #efe4ca;
    border-bottom: 1px solid #efe4ca;
}
.hot-categories-section {
    background: linear-gradient(180deg, #fbf7ee, #f3ecdd);
}

/* ---- 名言区与图章头像统一 ---- */
.quote-section { background: #faf3e2; }
.quote-text {
    font-family: var(--serif);
    letter-spacing: 0.5px;
}

/* ---- 响应式：移动端信息流更紧凑 ---- */
@media (max-width: 767.98px) {
    .article-card {
        padding: 8px;
        gap: 10px;
    }
    .article-card-thumb {
        width: 88px;
        min-width: 88px;
        height: 66px;
    }
    .article-card-char { font-size: 1.5rem; }
    .article-card-tags { margin-bottom: 2px; }
    .article-card-title { font-size: 0.9rem; line-height: 1.4; }
    .article-card-meta { margin-top: 5px; }
    .pinned-card .card-body { padding: 0.8rem; }
}
@media (max-width: 575.98px) {
    .article-card-thumb {
        width: 78px;
        min-width: 78px;
        height: 58px;
    }
    .article-card-cat-pill,
    .article-card-pin-pill { display: none; }
    .article-card-tags .badge-type-article,
    .article-card-tags .badge-type-ebook,
    .article-card-tags .badge-type-podcast { font-size: 0.62rem; padding: 2px 6px; }
    .container.py-4 { padding-top: 0.8rem !important; padding-bottom: 0.8rem !important; }
}

/* ================================================================
   传世智慧录 v3.4 · 臻典统一主题
   设计：单一宣纸底色 + 墨石/鎏金双主色，去除杂色分区；字体统一收敛
   ================================================================ */
:root {
    --gold: #b48b48;
    --gold-dark: #8e6a2e;
    --gold-light: #e3cfa0;
    --dark: #26262a;
    --dark-secondary: #17181d;
    --accent: #3f4351;
    --cream: #f6f4ee;
    --text: #35322c;
    --text-light: #6f6a60;
    --text-muted: #938c7e;
    --border: #e7e1d3;
}

html { scroll-behavior: smooth; }

body {
    background: #f6f4ee;
    color: var(--text);
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.main-content { background: #f6f4ee; }
.bg-light { background-color: #f3f0e8 !important; }

/* 链接统一为古铜金，避免页面多色杂音 */
a { color: #7a5f2a; transition: color 0.2s ease; }
a:hover { color: #a8823f; }

/* 正文灰统一为暖灰 */
.text-muted { color: #8d8678 !important; }
.text-secondary { color: #6f6a60 !important; }
.text-gold { color: #a67c36 !important; }

/* 标题统一墨色 + 字距 */
h1, h2, h3, h4, h5, h6 {
    color: #2b2822;
    letter-spacing: 0.02em;
}
.section-title { color: #2b2822; }

/* ===== 版块底：去掉五颜六色的分区，全部回到同一宣纸色系 ===== */
.announcement-section,
.pinned-section,
.hot-categories-section,
.recent-section,
.featured-section,
.quote-section,
.cta-section,
.categories-section {
    background: #f6f4ee !important;
}
.announcement-section,
.pinned-section,
.hot-categories-section,
.featured-section,
.quote-section {
    border-bottom: 1px solid #ede8da;
}
.quote-section { background: #faf8f2 !important; }
.featured-section { background: #fbf9f4 !important; }

/* ===== 顶部导航：石墨底 + 鎏金细线 ===== */
#mainNav {
    background: rgba(24, 25, 31, 0.97) !important;
    border-bottom: 1px solid rgba(180, 139, 72, 0.28);
    box-shadow: 0 2px 16px rgba(16, 17, 20, 0.28);
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(246, 244, 238, 0.82);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #e3cfa0;
}

/* ===== 公告条：象牙白 + 金线，去亮黄 ===== */
.alert-announcement {
    background: #fdfbf5 !important;
    border: 1px solid #ece3cf !important;
    border-left: 3px solid var(--gold) !important;
    color: #4a4438;
    border-radius: 8px;
}

/* ===== 按钮统一鎏金体系 ===== */
.btn-gold,
.btn-warning {
    background: linear-gradient(135deg, #b48b48, #8e6a2e) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.btn-gold:hover,
.btn-warning:hover {
    background: #8e6a2e !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(180, 139, 72, 0.35);
}
.btn-primary {
    --bs-btn-bg: #8e6a2e;
    --bs-btn-border-color: #8e6a2e;
    --bs-btn-hover-bg: #75551f;
    --bs-btn-hover-border-color: #75551f;
    --bs-btn-active-bg: #75551f;
    --bs-btn-active-border-color: #75551f;
    color: #fff;
}
.btn-outline-primary {
    --bs-btn-color: #8e6a2e;
    --bs-btn-border-color: #b48b48;
    --bs-btn-hover-bg: #8e6a2e;
    --bs-btn-hover-border-color: #8e6a2e;
}
.btn-outline-gold {
    border: 1px solid #b48b48;
    color: #8e6a2e;
}
.btn-outline-gold:hover {
    background: #b48b48;
    color: #fff !important;
}
.btn-outline-dark {
    border-color: #cfc7b4;
    color: #57503f;
}
.btn-outline-dark:hover {
    background: #57503f;
    border-color: #57503f;
    color: #fff;
}
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: rgba(255,255,255,0.9); }

/* ===== 信息流卡片：克制的白卡与细边 ===== */
.article-card {
    background: #fff;
    border: 1px solid #ece5d4;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(35, 32, 22, 0.04);
}
.article-card:hover {
    border-color: #d8c69b;
    box-shadow: 0 6px 16px rgba(60, 46, 12, 0.09);
}
.article-card-title { color: #2b2822; }
.article-card-title:hover { color: #8e6a2e; }
.article-card-stat,
.article-card-meta,
.article-card-divider { color: #8d8678 !important; }

/* ===== 徽章配色收敛：藏青/竹绿/朱砂 改为低调描边章 ===== */
.badge-type-article,
.badge-type-ebook,
.badge-type-podcast {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent !important;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 1.5;
    padding: 2px 9px;
    border-radius: 4px;
    box-shadow: none !important;
}
.badge-type-article { color: #47608b !important; border: 1px solid #ccd5e3; background: rgba(71,96,139,0.05) !important; }
.badge-type-ebook   { color: #3f7a5d !important; border: 1px solid #c4d9cc; background: rgba(63,122,93,0.05) !important; }
.badge-type-podcast { color: #a04f3a !important; border: 1px solid #e0c4b8; background: rgba(160,79,58,0.05) !important; }

/* 类型徽章图标统一颜色跟随文字 */
.badge-type-article i, .badge-type-ebook i, .badge-type-podcast i { color: inherit; opacity: 1; }

/* 置顶/精选/VIP/价格 标签低饱和统一 */
.badge.bg-warning.text-dark,
.badge.bg-warning,
.bg-warning.text-dark {
    background: #f1e7cf !important;
    color: #7a5a24 !important;
    border: 1px solid #dfcc9e;
    font-weight: 500;
}
.badge.bg-danger {
    background: #9c3a2f !important;
    border: 1px solid #9c3a2f;
    color: #fff !important;
}
.badge.bg-info {
    background: #f4eee0 !important;
    color: #8e6a2e !important;
    border: 1px solid #e0d3b5;
}
.article-card-pin-pill {
    background: #f9ede8 !important;
    border: 1px solid #ebc9be;
    color: #9c4436;
}
.badge-featured-pill {
    background: #f7f0dd !important;
    border: 1px solid #ddcaa0;
    color: #7a5a24;
}
.article-card-cat-pill {
    background: #f5f1e7 !important;
    border: 1px solid #e2dac6;
    color: #6f5f3c;
}
.article-card-price.vip {
    color: #7a5a24 !important;
    background: #f7eed9 !important;
    border: 1px solid #e0cca0;
}
.article-card-price.paid {
    color: #a04f3a !important;
    background: #faecea !important;
    border: 1px solid #ecc9bf;
}
.article-card-price.free {
    color: #6f6a60 !important;
    background: #f3f0ea !important;
    border: 1px solid #ded8cb;
}

/* 图章分类角标保持深色叠底，但统一为石墨金 */
.article-card-cat {
    background: rgba(30, 30, 34, 0.82) !important;
    color: #e8d5a8 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ================================================================
   无缩略图模式（body.no-thumbs）· 两行式高级列表
   ================================================================ */
body.no-thumbs .article-card-thumb { display: none !important; }
body.no-thumbs .article-list-cards .article-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "tags  meta"
        "title title";
    column-gap: 16px;
    row-gap: 5px;
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #ece5d4;
    border-radius: 0;
    box-shadow: none;
    padding: 11px 2px;
}
body.no-thumbs .article-list-cards .article-card:hover {
    border-color: #ece5d4;
    box-shadow: none;
    transform: none;
    background: #fbf9f3;
}
body.no-thumbs .article-card-body { display: contents; }
body.no-thumbs .article-card-tags {
    grid-area: tags;
    margin: 0;
    overflow: hidden;
    flex-wrap: nowrap;
    min-width: 0;
}
body.no-thumbs .article-card-meta {
    grid-area: meta;
    justify-self: end;
    margin: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 0.72rem;
}
body.no-thumbs .article-card-title {
    grid-area: title;
    font-size: 1.04rem;
    min-width: 0;
    -webkit-line-clamp: 1;
    line-height: 1.5;
    color: #2b2822;
}
body.no-thumbs .article-card-title:hover { color: #2b2822; }
body.no-thumbs .article-card-cat-pill,
body.no-thumbs .article-card-pin-pill { display: none; }
@media (max-width: 767.98px) {
    body.no-thumbs .article-card-title { font-size: 0.96rem; }
    body.no-thumbs .article-list-cards .article-card { padding: 10px 2px; }
}
@media (max-width: 575.98px) {
    body.no-thumbs .article-list-cards .article-card {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "tags  title"
            "meta  meta";
        column-gap: 8px;
        row-gap: 4px;
        align-items: center;
    }
    body.no-thumbs .article-card-tags { display: flex; flex-wrap: nowrap; }
    body.no-thumbs .article-card-title { font-size: 0.95rem; }
    body.no-thumbs .article-card-meta { justify-self: start; max-width: 100%; }
}

/* ================================================================
   标题展示优化：微缩字号，让最新发布/精选推荐等列表标题尽量两行完整展示
   ================================================================ */
.article-card-title {
    font-size: 0.88rem;
    line-height: 1.4;
}
@media (max-width: 767.98px) {
    .article-card-title { font-size: 0.84rem; line-height: 1.38; }
}

/* 两行式（无缩略图模式）标题占满整行，允许换行到第二行，避免长标题被截断 */
body.no-thumbs .article-card-title {
    font-size: 0.94rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
}
@media (max-width: 767.98px) {
    body.no-thumbs .article-card-title { font-size: 0.88rem; }
}

/* ================================================================
   CTA 会员引导区（开启您的智慧之旅）：修正文字颜色贴近浅底色的问题
   背景恢复墨石主视觉，标题鎏金、正文米白，保证清晰可读
   ================================================================ */
.cta-section {
    background: linear-gradient(160deg, #232530 0%, #3a4152 55%, #26262a 100%) !important;
    color: #ffffff;
    border-top: 1px solid rgba(236, 217, 166, 0.25);
}
.cta-section h3 {
    color: #f0dca8;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 22px rgba(201, 169, 110, 0.16);
}
.cta-section .lead {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.cta-section .btn-outline-light {
    border-color: #b48b48;
    color: #e3cfa0;
    background: rgba(180, 139, 72, 0.14);
}
.cta-section .btn-outline-light:hover {
    background: #b48b48;
    color: #fff;
    border-color: #b48b48;
}
.cta-section .btn-gold {
    background: linear-gradient(135deg, #d2ab63, #9a7a3a) !important;
}

/* ================================================================
   会员介绍页 · 四大会员社群卡片
   ================================================================ */
.member-groups-wrap { max-width: 1100px; margin: 0 auto; }
.member-group-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #e6ddc8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(43,40,34,.07);
    padding: 28px 24px 22px;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.member-group-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43,40,34,.12); }
.member-group-card::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--mg), var(--mg2));
}
.member-group-card.is-all { border-color: rgba(178,140,74,.55); box-shadow: 0 12px 34px rgba(154,122,58,.16); }
.mg-badge {
    position: absolute;
    top: 18px; right: 0;
    background: linear-gradient(135deg, #d2ab63, #9a7a3a);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: 6px 14px 6px 18px;
    border-radius: 14px 0 0 14px;
    box-shadow: 0 4px 12px rgba(154,122,58,.35);
}
.mg-head { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.mg-ico {
    flex: 0 0 auto;
    width: 62px; height: 62px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    color: #fff;
    font-size: 1.55rem;
    background: linear-gradient(135deg, var(--mg2), var(--mg));
    box-shadow: 0 8px 18px rgba(43,40,34,.18);
}
.mg-title h4 { margin: 0 0 2px; font-size: 1.28rem; font-weight: 700; color: #2b2822; }
.mg-slogan { margin: 0; color: #8a6a35; font-size: .9rem; }
.mg-founder {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    font-size: .8rem;
    color: #b4612a;
    background: #fdf0e3;
    border: 1px dashed #eec29b;
    padding: 4px 10px;
    border-radius: 999px;
}
.mg-deliver {
    margin: 14px 0 16px;
    font-size: .9rem;
    color: #6f6a60;
    line-height: 1.7;
    flex-grow: 1;
}
.mg-opts { border-top: 1px dashed #e6ddc8; }
.mg-opt {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0 2px;
}
.mg-opt-info {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
}
.mg-period {
    font-size: .82rem;
    color: #6f6a60;
    border: 1px solid #e6ddc8;
    border-radius: 999px;
    padding: 2px 10px;
    white-space: nowrap;
}
.mg-price { font-size: 1.55rem; font-weight: 800; color: var(--mg); line-height: 1; white-space: nowrap; }
.mg-price em { font-style: normal; font-size: .8rem; font-weight: 500; color: #9b948a; }
.mg-owned-btn {
    flex: 0 0 auto;
    font-size: .82rem;
    color: #1e7a57;
    background: #e8f6ef;
    border: 1px solid #bfe3d2;
    border-radius: 999px;
    padding: 7px 14px;
    white-space: nowrap;
}
.mg-btn {
    flex: 0 0 auto;
    border: none;
    border-radius: 999px;
    padding: 9px 20px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s ease, transform .15s ease;
}
.mg-btn:hover { opacity: .88; text-decoration: none; }
.mg-btn:active { transform: scale(.97); }
.mg-btn-solid {
    color: #fff;
    background: linear-gradient(135deg, var(--mg2), var(--mg));
    box-shadow: 0 6px 16px rgba(43,40,34,.16);
}
.mg-btn-ghost {
    color: var(--mg);
    background: var(--mg-soft, #f6f1e6);
    border: 1px solid var(--mg);
}
.mg-highlight { animation: mgPulse 2.2s ease; }
@keyframes mgPulse {
    0%, 60% { box-shadow: 0 0 0 4px rgba(180,139,72,.45); border-color: #b48b48; }
    100% { box-shadow: 0 10px 30px rgba(43,40,34,.07); }
}

/* 四类会员群主题色 */
.tone-article { --mg: #6b4fa3; --mg2: #9a7fd0; --mg-soft: rgba(124,92,191,.08); }
.tone-podcast { --mg: #b05c38; --mg2: #e09a6f; --mg-soft: rgba(198,120,74,.08); }
.tone-ebook  { --mg: #1e7a57; --mg2: #67b08f; --mg-soft: rgba(46,139,107,.08); }
.tone-all    { --mg: #9a7a3a; --mg2: #d2ab63; --mg-soft: rgba(154,122,58,.08); }

/* 会员介绍页英雄区 · 已开通会员群标签 */
.member-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(227,207,160,.55);
    color: #e3cfa0;
    font-size: .86rem;
    border-radius: 999px;
    padding: 6px 14px;
    backdrop-filter: blur(4px);
}

@media (max-width: 575.98px) {
    .member-group-card { padding: 22px 16px 18px; }
    .mg-head { gap: 10px; }
    .mg-ico { width: 52px; height: 52px; font-size: 1.25rem; }
    /* 窄屏下同样保证“期数+价格+按钮”同一排，仅等比缩小 */
    .mg-opt { flex-wrap: nowrap; gap: 8px; padding: 9px 0 1px; }
    .mg-opt-info { justify-content: flex-start; width: auto; flex: 1 1 auto; gap: 6px; }
    .mg-period { font-size: 0.72rem; padding: 2px 8px; }
    .mg-price { font-size: 1.16rem; }
    .mg-price em { font-size: 0.68rem; }
    .mg-btn,
    .mg-owned-btn { width: auto; flex: 0 0 auto; padding: 6px 12px; font-size: 0.8rem; text-align: center; }
}

/* 会员介绍页排版紧凑化（≥576px，不影响手机端原有适配） */
@media (min-width: 576px) {
    .member-groups-wrap { max-width: 1180px; }
    .member-group-card { padding: 22px 20px 17px; border-radius: 16px; }
    .mg-badge { top: 14px; font-size: 0.68rem; padding: 5px 12px 5px 15px; }
    .mg-head { margin-top: 2px; gap: 12px; }
    .mg-ico { width: 54px; height: 54px; font-size: 1.35rem; }
    .mg-title h4 { font-size: 1.18rem; }
    .mg-slogan { font-size: 0.85rem; }
    .mg-founder { margin-top: 10px; font-size: 0.78rem; padding: 3px 9px; }
    .mg-deliver { margin: 10px 0 12px; font-size: 0.87rem; line-height: 1.6; }
    .mg-opt { padding: 10px 0 1px; }
    .mg-period { font-size: 0.78rem; padding: 2px 9px; }
    .mg-price { font-size: 1.42rem; }
    .mg-price em { font-size: 0.75rem; }
    .mg-owned-btn { font-size: 0.8rem; padding: 6px 12px; }
    .mg-btn { padding: 8px 18px; font-size: 0.88rem; }
}

/* 会员内容列表：未解锁 VIP 标签 */
.article-card-price.locked {
    color: #a1453a;
    background: rgba(220, 86, 60, .1);
    border: 1px solid #e3a79c;
}

/* ===== 会员介绍页 · 常见问题（与上方会员社群白卡风格统一） ===== */
.membership-page .faq-block {
    max-width: 1120px;
    margin: 18px auto 6px;
    padding: 30px 30px 26px;
    background: #fff;
    border: 1px solid #e6ddc8;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(43, 40, 34, .06);
}
.membership-page .faq-head h3 i { color: #b48b48; }
.membership-page .faq-head p { font-size: .88rem; }
.membership-page .faq-col { max-width: 980px; margin: 0 auto; }
.membership-page #faqAccordion .accordion-item {
    border: 1px solid #ece5d4;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #fff;
}
.membership-page #faqAccordion .accordion-item:last-child { margin-bottom: 0; }
.membership-page #faqAccordion .accordion-button {
    background: #fff;
    color: #35322c;
    font-weight: 600;
    font-size: .92rem;
    padding: 13px 18px;
    box-shadow: none;
}
.membership-page #faqAccordion .accordion-button:not(.collapsed) {
    background: #fbf6ea;
    color: #8e6a2e;
}
.membership-page #faqAccordion .accordion-button:focus { box-shadow: none; }
.membership-page #faqAccordion .accordion-body {
    color: #6f6a60;
    font-size: .9rem;
    line-height: 1.75;
    padding: 2px 18px 16px;
    background: #fffdf8;
}
@media (max-width: 575.98px) {
    .membership-page .faq-block { padding: 22px 16px 18px; }
    .membership-page .faq-head { margin-bottom: 18px !important; }
}

/* ===== 分页统一配色（数字、边框与选中块同一鎏金色系，全站生效） ===== */
.pagination .page-link {
    color: #6b5833;
    background: #fff;
    border: 1px solid #e2d6ba;
    min-width: 34px;
    text-align: center;
    transition: color .2s, background-color .2s, border-color .2s;
}
.pagination .page-link:hover {
    color: #fff;
    background: #c9a44a;
    border-color: #c9a44a;
}
.pagination .page-link:focus {
    color: #6b5833;
    box-shadow: 0 0 0 .2rem rgba(180, 139, 72, .2);
}
.pagination .page-item.active .page-link {
    color: #fff;
    background: linear-gradient(135deg, #b48b48, #8a6a2e);
    border-color: #8a6a2e;
}

/* ===== 个人中心：四板块紧凑入口 ===== */
.user-dashboard .stat-card-compact .card-body { padding: .55rem .7rem; }
.user-dashboard .stat-card-compact .stat-icon { font-size: 1.05rem; width: 18px; text-align: center; }
.user-dashboard .stat-card-compact .stat-num { font-size: 1rem; min-width: 1.2rem; text-align: right; color: #3d3a33; }
.user-dashboard .stat-card-compact:hover {
    border-color: #d9c8a0;
    box-shadow: 0 3px 10px rgba(43, 40, 34, .08);
    transform: translateY(-1px);
}
.user-dashboard .stat-card-compact .card-body span { white-space: nowrap; }
@media (max-width: 575.98px) {
    .user-dashboard .stat-card-compact .card-body { padding: .5rem .6rem; }
    .user-dashboard .stat-card-compact .card-body span { font-size: .78rem; }
}
