@import "rich-content.css";
/* ========== 主题色变量（一处修改全局生效） ========== */
:root {
    --sun-red: #eb1313;
    --sun-red-dark: #c40e0e;
    --sun-red-light: #feeeee;
    --text-muted: #6c6a66;
    --border-color: #f0e0d0;
    --bg-light: #fff8f5;
    --card-bg: #fff;
    --text-primary: #2c2b28;
    --tag-bg: #e9ecef;
    --text-secondary: #64748b;
    --tag-color: #495057;
    --radius: 24px;
}

/* ========== 重置 & 基础 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: #2c2b28;
    line-height: 1.5;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
a:hover {
    color: var(--sun-red);
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
img {
    max-width: 100%;
}

/* ========== 工具类 ========== */
.text-primary {
    color: var(--sun-red);
}
.text-muted {
    color: var(--text-muted);
}
.text-center {
    text-align: center;
}
.text-sm {
    font-size: 0.875rem;
}
.text-xs {
    font-size: 0.75rem;
}
.font-bold {
    font-weight: 700;
}
.flex {
    display: flex;
}
.items-center {
    align-items: center;
}
.justify-between {
    justify-content: space-between;
}
.margin-2 {
    margin: 8px 0px;
}
.margin-3 {
    margin: 12px 0px;
}
.mt-4 {
    margin-top: 16px;
}
.mt-2 {
    margin-top: 8px;
}
.mb-3 {
    margin-bottom: 12px;
}
.mb-2 {
    margin-bottom: 8px;
}
.mb-1 {
    margin-bottom: 4px;
}
.p-1 {
    padding: 4px;
}
.p-2 {
    padding: 8px;
}
.p-3 {
    padding: 12px;
}
.p-4 {
    padding: 16px;
}
.border-b {
    border-bottom: 1px solid var(--border-color);
}
.m-1 {
    margin: 4px;
}
.m-2 {
    margin: 8px;
}
.m-3 {
    margin: 12px;
}
.m-4 {
    margin: 16px;
}
.pb-2 {
    padding-bottom: 8px;
}
.mr-2 {
    margin-right: 8px;
}
.mr-1 {
    margin-right: 4px;
}
.cursor-pointer {
    cursor: pointer;
}
.space-y-4>*+* {
    margin-top: 8px;
}

/* ========== 按钮 ========== */
.btn-primary {
    background-color: var(--sun-red);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover {
    background-color: var(--sun-red-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--sun-red);
    color: var(--sun-red);
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-outline:hover {
    background-color: var(--sun-red);
    color: white;
}
.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========== 导航栏 ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    padding: 12px 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2e7d32, var(--sun-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}
.logo-text h1 {
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--sun-red), var(--sun-red-dark));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 24px;
}
.nav-links a {
    font-weight: 500;
    font-size: 18px;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--sun-red);
}
/* ===== 导航下拉（万年历/老黄历 合并 tab：一个 tab 两个地址） ===== */
.nav-drop {
    position: relative;
}
.nav-drop > a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.nav-drop .nav-caret {
    font-size: 12px;
    line-height: 1;
    transform: translateY(-1px);
}
.nav-drop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 132px;
    background: #fff;
    border: 1px solid #f0e0cc;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(70, 26, 16, 0.12);
    padding: 6px;
    z-index: 60;
}
.nav-drop-menu a {
    display: block;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 7px;
    white-space: nowrap;
}
.nav-drop-menu a:hover,
.nav-drop-menu a.on {
    color: var(--sun-red);
    background: #fef7e8;
}
.nav-drop:hover .nav-drop-menu {
    display: block;
}
.nav-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}
.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}
@media (max-width: 768px) {
    .nav-links,
    .nav-icons {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    .nav-container {
        justify-content: space-between;
        gap: 0;
    }
    .container {
        padding: 0 16px;
    }
}

/* ========== 一级分类 Tab ========== */
.category-tab {
    background: #fffaf5;
    border-bottom: 1px solid var(--border-color);
}
.tab-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
}
.tab-item {
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tab-item.active {
    background-color: var(--sun-red);
    color: white;
    box-shadow: 0 6px 12px rgba(235, 19, 19, 0.2);
}
.tab-item:hover:not(.active) {
    background-color: var(--sun-red-light);
    color: var(--sun-red);
}

/* ========== Hero 区域 ========== */
.hero {
    background: linear-gradient(105deg, #fff5ef, #fff0e6);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}
.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: center;
}
.hero-badge {
    background: rgba(235, 19, 19, 0.12);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 40px;
    color: var(--sun-red);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .hero-content h2 {
        font-size: 3rem;
    }
}
.hero-card {
    flex: 1;
    background: white;
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffede3;
}
.hero-card-title {
    font-weight: bold;
    color: var(--sun-red);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-card-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.form-row {
    display: flex;
    gap: 12px;
}
.form-input,
.form-select {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 40px;
    background-color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}
.form-input:focus,
.form-select:focus {
    border-color: var(--sun-red);
    box-shadow: 0 0 0 2px rgba(235, 19, 19, 0.1);
}

/* ========== 卡片面板 ========== */
.card-panel {
    background: white;
    border-radius: 28px;
    padding: 0 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}
.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}
.article-item:last-child {
    border-bottom: none;
}

/* 认证服务商大师条目 */
.master-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0;
}
.master-avatar {
    width: 48px;
    height: 48px;
    background: #f0e3da;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0px 5px 5px 0px;
}
.master-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.master-name {
    font-weight: bold;
}
.master-specialty {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.master-link {
    flex-shrink: 0;
}

.date-badge {
    background-color: #f0e3da;
    color: var(--sun-red);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
}
.date-badge-alt {
    background-color: rgba(235, 19, 19, 0.1);
    color: var(--sun-red);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ========== 工具卡片网格（固定 3 列） ========== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}
.tool-card {
    background: white;
    border-radius: 28px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.tool-card:hover {
    transform: translateY(-6px);
    border-color: var(--sun-red);
    box-shadow: 0 15px 30px rgba(235, 19, 19, 0.08);
}
/* 工具首页大卡片：图标仅作用于 .tool-card 内部（避免泄漏到侧边栏紧凑列表） */
.tool-card .tool-icon {
    font-size: 2.8rem;
    color: var(--sun-red);
    margin-bottom: 20px;
}
.tool-card h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.tool-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ================================================================
   侧边栏「实用工具 / 热门工具」紧凑列表（跨模块共用）
   article / bbs / tag / common 等页面未加载 calendar.css，原先该卡片完全无样式：
   图标继承全局 .tool-icon（2.8rem）导致 emoji 巨大、条目 inline 排列错乱。此处给出统一规范。
   ================================================================ */
.tools-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tools-compact .tool-item,
.tool-grid .tool-item {
    display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 8px;
    background: var(--bg-light); border: 1px solid var(--border-color);
    font-size: 0.78rem; color: var(--text-secondary); text-decoration: none;
    transition: 0.2s; min-width: 0;
}
.tools-compact .tool-item:hover,
.tool-grid .tool-item:hover { border-color: var(--sun-red); color: var(--sun-red); background: #fff; }
.tools-compact .tool-item .tool-icon,
.tool-grid .tool-item .tool-icon { font-size: 1rem; line-height: 1.2; margin-bottom: 0; color: inherit; flex: 0 0 auto; }
.tools-compact .tool-item .tool-name,
.tool-grid .tool-item .tool-name {
    font-size: 0.78rem; line-height: 1.2; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

/* ================================================================
   侧边栏「最新动态」Tab 切换按钮（article/category、article/rank、bbs/rank 共用）
   原先 .side-tab-buttons .tab-btn 无任何样式，渲染成浏览器默认按钮，与站内胶囊 Tab 不一致
   ================================================================ */
.side-tab-buttons { display: inline-flex; align-items: center; gap: 4px; }
.side-tab-buttons .tab-btn {
    padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border-color);
    background: #fff; font-size: 0.72rem; color: var(--text-secondary);
    line-height: 1.4; cursor: pointer; transition: 0.2s; white-space: nowrap;
}
.side-tab-buttons .tab-btn:hover { border-color: var(--sun-red); color: var(--sun-red); }
.side-tab-buttons .tab-btn.active { background: var(--sun-red); border-color: var(--sun-red); color: #fff; font-weight: 600; }

/* ========== 全部分类卡片网格 ========== */
.category-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 20px 0;
}
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.category-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}
.category-header h5 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.category-more {
    font-size: 0.85rem;
}

/* ========== 分类筛选列表（横向两列，供论坛/学习侧边栏） ========== */
.category-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.cat-item-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: #4a3f35;
    font-size: 0.78rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    background: #faf8f5;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
}
.cat-item-row:hover {
    background: var(--sun-red-light);
    border-color: #fad6d6;
    color: var(--sun-red);
}
.cat-item-row.active {
    background: var(--sun-red);
    color: #fff;
    border-color: var(--sun-red);
    box-shadow: 0 2px 8px rgba(179, 27, 27, 0.15);
}
.cat-item-row .cat-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}
.cat-item-row .cat-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ========== 相关工具子目录（tools 页面） ========== */
.sub-tools-section {
    margin-top: 20px;
}
.sub-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.sub-tool-group {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
}
.sub-tool-group-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-primary);
}
.sub-tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
@media (max-width: 768px) {
    .sub-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 两列布局（智测+精选推荐） ========== */
.tab-articles-wrapper {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.tab-articles-main {
    flex: 2;
    min-width: 200px;
}
.tab-articles-side {
    flex: 1;
    min-width: 200px;
    background: #fff8f0;
    border-radius: 28px;
    padding: 20px;
    border: 1px solid var(--border-color);
}
.tab-articles-side h5 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--sun-red);
}
.side-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.side-list-grid a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 40px;
    background: white;
    transition: 0.2s;
    font-size: 0.85rem;
    text-decoration: none;
    color: #606266;
}
.side-list-grid a:hover {
    background: var(--sun-red-light);
    transform: translateX(2px);
    color: var(--sun-red);
}

/* ========== 热门话题网格（5列） ========== */
.topics-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) {
    .topics-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 640px) {
    .topics-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}
.topic-card a {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== 文章列表网格（通用） ========== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin: 32px 0;
}
.article-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.25s;
    overflow: hidden;
}
.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--sun-red-light);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08);
}
.card-content {
    padding: 20px;
}
.card-category {
    display: inline-block;
    background: var(--sun-red-light);
    color: var(--sun-red);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
}
.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.article-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-size: 0.75rem;
    color: #aa9f91;
}
.read-link {
    color: var(--sun-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ========== 大师列表网格 ========== */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 28px;
    margin: 32px 0;
}
.master-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.25s;
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: center;
}
.master-card:hover {
    transform: translateY(-4px);
    border-color: var(--sun-red-light);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08);
}
.master-avatar .avatar-circle {
    background: linear-gradient(135deg, #e0cfc0, #cbb99f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #8b6f4c;
}
.master-info {
    flex: 1;
    min-width: 0;
}
.master-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.master-title {
    color: var(--sun-red);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.master-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 4px;
}
.master-action {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.master-stats {
    display: flex;
    gap: 16px;
}
.stat {
    text-align: right;
}
.stat-value {
    font-weight: 700;
    color: var(--sun-red);
    font-size: 1rem;
}
.stat-label {
    font-size: 0.7rem;
    color: #aa9f91;
}
.consult-btn {
    background: var(--sun-red-light);
    color: var(--sun-red);
    padding: 6px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.consult-btn:hover {
    background: var(--sun-red);
    color: white;
}

/* ========== 分类筛选按钮 ========== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 32px;
}
.filter-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 6px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
    background: var(--sun-red);
    color: white;
    border-color: var(--sun-red);
}

/* ========== 分页控件 ========== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 30px 0 10px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: white;
    color: #333;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.2s;
}
.pagination a:hover,
.pagination .current {
    background: var(--sun-red);
    color: white;
    border-color: var(--sun-red);
}
.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.pagination .ellipsis {
    border: none;
    background: transparent;
    color: #999;
}
.page-link.prev,
.page-link.next {
    min-width: 70px;
}

/* ========== 主题/话题卡片网格（通用） ========== */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}
.theme-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}
.theme-card:hover {
    transform: translateY(-4px);
    border-color: var(--sun-red);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08);
}
.theme-info {
    padding: 20px;
}
.theme-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.theme-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
    line-height: 1.5;
}
.theme-stats {
    display: flex;
    gap: 20px;
    font-size: 0.75rem;
    color: #aa9f91;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 4px;
}
.hot-badge {
    background: var(--sun-red-light);
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: var(--sun-red);
}
.theme-icon {
    font-size: 1.3rem;
}
@media (max-width: 768px) {
    .theme-grid {
        gap: 20px;
    }
    .theme-info {
        padding: 16px;
    }
}

/* ========== 页脚（Footer）样式 - 已修复 ========== */
footer {
    background: #1f1e1c;
    color: #cfcbc4;
    padding: 40px 0 24px;
    margin-top: 48px;
}
footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
footer a {
    color: #b0aaa0;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: #fff;
    text-decoration: underline;
}
footer .footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #8a847a;
    border-top: 1px solid #33302e;
    padding-top: 20px;
    margin-top: 12px;
}
footer .footer-copyright a {
    color: #b0aaa0;
}
footer .footer-copyright a:hover {
    color: #fff;
}
@media (max-width: 768px) {
    footer .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ========== 浮动按钮 & 回到顶部 ========== */
.ai-float-btn {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 60;
    background: var(--sun-red);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(235, 19, 19, 0.4);
    cursor: pointer;
    transition: 0.2s;
}
.ai-float-panel {
    position: fixed;
    right: 24px;
    bottom: 170px;
    width: 280px;
    background: white;
    border-radius: 28px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2);
    z-index: 60;
    border: 1px solid #ffede3;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.ai-float-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--sun-red);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 50;
    border: none;
    outline: none;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--sun-red-dark);
}

/* ========== 滚动消息栏（跑马灯） ========== */
.ticker-bar {
    background-color: #fef7e8;
    border-bottom: 1px solid #f0e0cc;
    font-size: 0.75rem;
    color: #b45a3b;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 40;
    padding: 6px 0;
}
.ticker-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}
.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: scrollTicker 40s linear infinite;
    will-change: transform;
}
.ticker-message {
    display: inline-block;
    margin-right: 40px;
    font-size: 0.75rem;
    color: #b45a3b;
}
.ticker-container:hover .ticker-track {
    animation-play-state: paused;
}
@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
@media (max-width: 768px) {
    .ticker-message {
        margin-right: 24px;
        font-size: 0.7rem;
    }
}

/* ================================================================
   栅格系统（完整）—— 支持 xs / sm / md / lg / xl
   ================================================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -16px;
}
.row>[class*="col-"] {
    padding: 0 16px;
}
.col {
    padding: 0 16px;
    flex: 1;
}

/* 基础栅格（xs 断点，默认） */
.col-1 {
    width: 8.333333%;
}
.col-2 {
    width: 16.666667%;
}
.col-3 {
    width: 25%;
}
.col-4 {
    width: 33.333333%;
}
.col-5 {
    width: 41.666667%;
}
.col-6 {
    width: 50%;
}
.col-7 {
    width: 58.333333%;
}
.col-8 {
    width: 66.666667%;
}
.col-9 {
    width: 75%;
}
.col-10 {
    width: 83.333333%;
}
.col-11 {
    width: 91.666667%;
}
.col-12 {
    width: 100%;
}

/* sm 断点 (≥576px) */
@media (min-width: 576px) {
    .col-sm-1 { width: 8.333333%; }
    .col-sm-2 { width: 16.666667%; }
    .col-sm-3 { width: 25%; }
    .col-sm-4 { width: 33.333333%; }
    .col-sm-5 { width: 41.666667%; }
    .col-sm-6 { width: 50%; }
    .col-sm-7 { width: 58.333333%; }
    .col-sm-8 { width: 66.666667%; }
    .col-sm-9 { width: 75%; }
    .col-sm-10 { width: 83.333333%; }
    .col-sm-11 { width: 91.666667%; }
    .col-sm-12 { width: 100%; }
}

/* md 断点 (≥768px) */
@media (min-width: 768px) {
    .col-md-1 { width: 8.333333%; }
    .col-md-2 { width: 16.666667%; }
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333333%; }
    .col-md-5 { width: 41.666667%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.333333%; }
    .col-md-8 { width: 66.666667%; }
    .col-md-9 { width: 75%; }
    .col-md-10 { width: 83.333333%; }
    .col-md-11 { width: 91.666667%; }
    .col-md-12 { width: 100%; }
}

/* lg 断点 (≥992px) */
@media (min-width: 992px) {
    .col-lg-1 { width: 8.333333%; }
    .col-lg-2 { width: 16.666667%; }
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333333%; }
    .col-lg-5 { width: 41.666667%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.333333%; }
    .col-lg-8 { width: 66.666667%; }
    .col-lg-9 { width: 75%; }
    .col-lg-10 { width: 83.333333%; }
    .col-lg-11 { width: 91.666667%; }
    .col-lg-12 { width: 100%; }
}

/* xl 断点 (≥1200px) */
@media (min-width: 1200px) {
    .col-xl-1 { width: 8.333333%; }
    .col-xl-2 { width: 16.666667%; }
    .col-xl-3 { width: 25%; }
    .col-xl-4 { width: 33.333333%; }
    .col-xl-5 { width: 41.666667%; }
    .col-xl-6 { width: 50%; }
    .col-xl-7 { width: 58.333333%; }
    .col-xl-8 { width: 66.666667%; }
    .col-xl-9 { width: 75%; }
    .col-xl-10 { width: 83.333333%; }
    .col-xl-11 { width: 91.666667%; }
    .col-xl-12 { width: 100%; }
}

/* 栅格辅助类 */
.row.g-0 {
    margin: 0;
}
.row.g-0>[class*="col-"] {
    padding: 0;
}
.row.g-2 {
    margin: 0 -8px;
}
.row.g-2>[class*="col-"] {
    padding: 0 8px;
}
.row.g-4 {
    margin: 0 -16px;
}
.row.g-4>[class*="col-"] {
    padding: 0 16px;
}

/* ================================================================
   版块导航（BBS 专用）
   ================================================================ */
.board-nav {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ddd0;
}
.board-nav .group {
    margin-bottom: 12px;
}
.board-nav .group:last-child {
    margin-bottom: 0;
}
.board-nav .group-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--sun-red);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0e5d8;
}
.board-nav .board-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.board-nav .board-list a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f8f4ef;
    transition: 0.3s;
}
.board-nav .board-list a:hover,
.board-nav .board-list a.active {
    background: var(--sun-red);
    color: #fff;
}

/* ========== 论坛工具条（统计 + 社区工具） ========== */
.forum-tools-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: 16px 0 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8ddd0;
    padding: 8px 20px;
}
.forum-tools-bar .forum-stats,
.forum-tools-bar .community-tools {
    background: transparent;
    border: none;
    padding: 6px 0;
    margin: 0;
    flex: 0 1 auto;
}
.forum-tools-bar .forum-stats {
    font-size: 14px;
    color: #555;
}
.forum-tools-bar .forum-stats strong {
    color: var(--sun-red);
    font-weight: 700;
}
.forum-tools-bar .forum-stats a {
    color: var(--sun-red);
    text-decoration: none;
}
.forum-tools-bar .forum-stats a:hover {
    text-decoration: underline;
}
.forum-tools-bar .forum-stats .sep,
.forum-tools-bar .community-tools .sep {
    color: #ddd;
    user-select: none;
}
.forum-tools-bar .community-tools {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: 14px;
}
.forum-tools-bar .community-tools .tool-link {
    color: #555;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.forum-tools-bar .community-tools .tool-link:hover {
    color: var(--sun-red);
    border-bottom-color: var(--sun-red);
}
.forum-tools-bar .community-tools .tool-link i {
    margin-right: 4px;
}
@media (max-width: 768px) {
    .forum-tools-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px 16px;
    }
    .forum-tools-bar .community-tools {
        margin-left: 0;
    }
    .forum-tools-bar .forum-stats,
    .forum-tools-bar .community-tools {
        font-size: 13px;
    }
}

/* ========== 页面标题区（Hero） ========== */
.page-hero {
    background: linear-gradient(105deg, #fff5ef, #fff0e6);
    padding: 48px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.page-hero h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.page-hero .sub {
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .page-hero h2 {
        font-size: 1.6rem;
    }
}

/* ========== 统计面板 ========== */
.stats-panel {
    background: #fffaf5;
    border-radius: 48px;
    padding: 48px 32px;
    margin: 32px 0 64px;
    border: 1px solid #f0e0d0;
}
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    text-align: center;
}
.stat-item {
    flex: 1;
    min-width: 120px;
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--sun-red);
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .stats-panel {
        padding: 32px 20px;
        border-radius: 32px;
    }
    .stats-grid {
        flex-direction: column;
        gap: 24px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
}

/* ========== 热门推荐区 ========== */
.hot-section {
    margin-top: 40px;
    border-top: 1px dashed #f0e0cc;
    padding-top: 32px;
}
.hot-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
}
.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.hot-tag {
    background: white;
    border-radius: 40px;
    padding: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: 0.2s;
}
.hot-tag:hover {
    border-color: var(--sun-red);
    color: var(--sun-red);
}
.hot-section .footnote {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 24px;
}

/* ========== 辅助类 ========== */
.item-left {
    margin-right: 8px;
}
.title-text,
.item-left {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ========== 通用布局与组件（文章、BBS共用） ========== */
.article-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 32px 0 48px;
}
.article-main {
    flex: 2.5;
    min-width: 0;
}
.article-sidebar {
    flex: 1.2;
    min-width: 260px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 15px 0 16px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--sun-red); }

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--sun-red);
}
.breadcrumb span {
    color: #2c2b28;
}

.article-card {
    background: white;
    border-radius: 32px;
    padding: 28px 32px;
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
}
.article-header {
    text-align: center;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.article-category {
    display: inline-block;
    background: var(--sun-red-light);
    color: var(--sun-red);
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
}
.article-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c2b28;
    margin: 12px 0;
    line-height: 1.3;
}
.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #3a3a38;
}
.article-content p {
    margin-bottom: 1.2em;
}
.article-content h2 {
    font-size: 1.4rem;
    margin: 1.5em 0 0.8em;
    color: var(--sun-red);
    border-left: 4px solid var(--sun-red);
    padding-left: 16px;
}
.article-content h3 {
    font-size: 1.2rem;
    margin: 1.2em 0 0.6em;
    color: #2c2b28;
}

/* ===== AI 生成内容（文章正文 / 论坛帖子正文）补充标签样式，与 .rich-content 视觉一致 ===== */
.article-content h1, .post-detail-body h1 {
    font-size: 1.55rem;
    margin: 1.2em 0 0.6em;
    color: #2c2b28;
    font-weight: 700;
}
.article-content h4, .post-detail-body h4 {
    font-size: 1.05rem;
    margin: 1.1em 0 0.5em;
    color: #2c2b28;
    font-weight: 700;
}
.article-content h5, .post-detail-body h5 {
    font-size: 0.98rem;
    margin: 1em 0 0.5em;
    color: #2c2b28;
    font-weight: 700;
}
.article-content h6, .post-detail-body h6 {
    font-size: 0.92rem;
    margin: 1em 0 0.5em;
    color: #6c6a66;
    font-weight: 700;
}
.article-content ul, .article-content ol,
.post-detail-body ul, .post-detail-body ol {
    margin: 0.8em 0;
    padding-left: 1.6em;
}
.article-content li, .post-detail-body li { margin: 0.32em 0; }
.article-content strong, .article-content b,
.post-detail-body strong, .post-detail-body b { font-weight: 700; color: #2c2b28; }
.article-content em, .article-content i,
.post-detail-body em, .post-detail-body i { font-style: italic; }
.article-content u, .post-detail-body u { text-decoration: underline; }
.article-content span, .post-detail-body span { color: inherit; }
.article-content span.bz-mark, .post-detail-body span.bz-mark {
    color: #eb1313;
    font-weight: 600;
    background: #fff3f0;
    padding: 0 3px;
    border-radius: 3px;
}
/* 表格（AI 用的 .bz-table 与普通 table 都适配） */
.article-content table, .article-content .bz-table,
.post-detail-body table, .post-detail-body .bz-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.8em 0;
    font-size: 0.9rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.article-content table th, .article-content table td,
.article-content .bz-table th, .article-content .bz-table td,
.post-detail-body table th, .post-detail-body table td,
.post-detail-body .bz-table th, .post-detail-body .bz-table td {
    border: 1px solid #ece3d6;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}
.article-content table thead th, .article-content .bz-table thead th,
.post-detail-body table thead th, .post-detail-body .bz-table thead th {
    background: #f6efe3;
    color: #5a4a2e;
    font-weight: 700;
}
.article-content table tbody tr:nth-child(even),
.article-content .bz-table tbody tr:nth-child(even),
.post-detail-body table tbody tr:nth-child(even),
.post-detail-body .bz-table tbody tr:nth-child(even) {
    background: #fcfaf6;
}
.article-content table tr, .post-detail-body table tr { border-bottom: 1px solid #f3ece0; }
.article-content .bz-table tr, .post-detail-body .bz-table tr { border-bottom: 1px solid #f3ece0; }
/* 引用 / 警示（AI 用的 .bz-quote）：默认与无标签 blockquote 一致，仅浅背景 + 左侧强调色，不额外撑大间距 */
.article-content blockquote, .article-content .bz-quote,
.post-detail-body blockquote, .post-detail-body .bz-quote {
    margin: 0.8em 0;
    padding: 0.55em 1em;
    border-left: 3px solid #c9a24b;
    background: #fbf7ef;
    color: #6b5b3e;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}
/* 卡片（AI 用的 .bz-card）：默认与无标签普通块一致，仅浅背景 + 细左侧强调色便于查看；标签保留在 DOM 供 SEO 抓取 */
.article-content .bz-card, .post-detail-body .bz-card {
    margin: 0.8em 0;
    padding: 10px 14px;
    background: #fffaf3;
    border: 1px solid #f1e7d6;
    border-left: 3px solid #e3c389;
    border-radius: 6px;
}
/* 图片 / 链接 / 分割线 */
.article-content img, .post-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.4em 0;
}
.article-content a, .post-detail-body a {
    color: #c0392b;
    text-decoration: underline;
    word-break: break-all;
}
.article-content a:hover, .post-detail-body a:hover { color: #eb1313; }
.article-content hr, .post-detail-body hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 1.2em 0;
}

/* ===== 字典 AI 生成内容（.dict-content）：排版与 .article-content 对齐；bz-* 标签与无标签块一致，仅浅背景+强调色便于查看，标签保留在 DOM 供 SEO 抓取 ===== */
.dict-content h1 { font-size: 1.55rem; margin: 1.2em 0 0.6em; color: #2c2b28; font-weight: 700; }
.dict-content h2 {
    font-size: 1.4rem; margin: 1.5em 0 0.8em;
    color: var(--sun-red); border-left: 4px solid var(--sun-red); padding-left: 16px;
}
.dict-content h3 { font-size: 1.2rem; margin: 1.2em 0 0.6em; color: #2c2b28; }
.dict-content h4 { font-size: 1.05rem; margin: 1.1em 0 0.5em; color: #2c2b28; font-weight: 700; }
.dict-content h5 { font-size: 0.98rem; margin: 1em 0 0.5em; color: #2c2b28; font-weight: 700; }
.dict-content h6 { font-size: 0.92rem; margin: 1em 0 0.5em; color: #6c6a66; font-weight: 700; }
.dict-content ul, .dict-content ol { margin: 0.8em 0; padding-left: 1.6em; }
.dict-content li { margin: 0.32em 0; }
.dict-content strong, .dict-content b { font-weight: 700; color: #2c2b28; }
.dict-content em, .dict-content i { font-style: italic; }
.dict-content u { text-decoration: underline; }
.dict-content span { color: inherit; }
.dict-content span.bz-mark { color: #eb1313; font-weight: 600; background: #fff3f0; padding: 0 3px; border-radius: 3px; }
/* 表格（AI 用的 .bz-table 与普通 table 都适配） */
.dict-content table, .dict-content .bz-table {
    width: 100%; border-collapse: collapse; margin: 0.8em 0; font-size: 0.9rem;
    border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.dict-content table th, .dict-content table td,
.dict-content .bz-table th, .dict-content .bz-table td {
    border: 1px solid #ece3d6; padding: 8px 10px; text-align: left; vertical-align: top;
}
.dict-content table thead th, .dict-content .bz-table thead th {
    background: #f6efe3; color: #5a4a2e; font-weight: 700;
}
.dict-content table tbody tr:nth-child(even),
.dict-content .bz-table tbody tr:nth-child(even) { background: #fcfaf6; }
.dict-content table tr, .dict-content .bz-table tr { border-bottom: 1px solid #f3ece0; }
/* 引用 / 警示（AI 用的 .bz-quote）：默认与无标签 blockquote 一致，仅浅背景 + 左侧强调色，不额外撑大间距 */
.dict-content blockquote, .dict-content .bz-quote {
    margin: 0.8em 0; padding: 0.55em 1em; border-left: 3px solid #c9a24b;
    background: #fbf7ef; color: #6b5b3e; border-radius: 0 6px 6px 0; font-style: italic;
}
/* 卡片（AI 用的 .bz-card）：默认与无标签普通块一致，仅浅背景 + 细左侧强调色便于查看 */
.dict-content .bz-card {
    margin: 0.8em 0; padding: 10px 14px; background: #fffaf3;
    border: 1px solid #f1e7d6; border-left: 3px solid #e3c389; border-radius: 6px;
}
/* 图片 / 链接 / 分割线 */
.dict-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 0.4em 0; }
.dict-content a { color: #c0392b; text-decoration: underline; word-break: break-all; }
.dict-content a:hover { color: #eb1313; }
.dict-content hr { border: none; border-top: 1px solid #eee; margin: 1.2em 0; }

.article-footer {
    padding: 20px 0px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}
.tag:hover {
    background: var(--sun-red-light);
    color: var(--sun-red);
}

.sidebar-card {
    background: white;
    border-radius: 28px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

/* ===== 侧边栏卡片标题右侧链接（如“完整黄历 →”） ===== */
.sidebar-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-card .card-title .more {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sun-red);
    text-decoration: none;
    transition: color 0.2s;
}
.sidebar-card .card-title .more:hover {
    color: var(--sun-red-dark);
    text-decoration: underline;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-tools {
    background: white;
    border-radius: 28px;
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-top: 32px;
    margin-bottom: 48px;
}
.footer-tools-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}
.tools-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.tool-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: 0.2s;
}
.tool-link:hover {
    color: var(--sun-red);
}

.next-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.next-links a {
    color: var(--sun-red);
    text-decoration: none;
    font-weight: 600;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.next-links a:hover {
    text-decoration: underline;
}
.next-links .disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    pointer-events: none;
}

.sidebar-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}
.sidebar-user-item:last-child {
    border-bottom: none;
}
.sidebar-user-item .user-avatar-link {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    background-color: #f0e3da;
}
.sidebar-user-item .user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sidebar-user-item .user-info {
    flex: 1;
    min-width: 0;
}
.sidebar-user-item .user-name-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-primary);
}
.sidebar-user-item .user-name-link:hover .user-name {
    color: var(--sun-red);
}
.sidebar-user-item .user-name {
    font-size: 0.9rem;
    font-weight: 500;
}
.sidebar-user-item .user-level-badge {
    font-size: 0.65rem;
    background: var(--sun-red-light);
    color: var(--sun-red);
    padding: 0 8px;
    border-radius: 12px;
    line-height: 1.6;
    font-weight: 600;
    white-space: nowrap;
}
.sidebar-user-item .user-signature {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.sidebar-user-item .user-last-login {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .article-layout {
        flex-direction: column;
    }
    .article-main,
    .article-sidebar {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .article-card {
        padding: 20px;
    }
    .article-title {
        font-size: 1.4rem;
    }
    .next-links a {
        max-width: 40%;
        font-size: 0.85rem;
    }
    .sidebar-card {
        padding: 12px 14px;
    }
}

/* ================================================================
   今日黄历卡片（万年历模块）
   ================================================================ */
.today-calendar-card {
    background: #fff;
    font-size: 0.85rem;
    line-height: 1.6;
}
.today-calendar-card .card-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px dashed #f0ede8;
    gap: 8px;
    min-width: 0;
}
.today-calendar-card .card-row:last-of-type {
    border-bottom: none;
}
.today-calendar-card .card-row .left,
.today-calendar-card .card-row .right {
    font-weight: 500;
    color: var(--text-primary);
    min-width: 0;
    flex-shrink: 1;
}
.today-calendar-card .card-row .left {
    flex-shrink: 0;
    white-space: nowrap;
}
.today-calendar-card .card-row .right {
    color: var(--sun-red);
    text-align: right;
    word-break: keep-all;
    flex: 1;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.today-calendar-card .card-row.three-col {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}
.today-calendar-card .card-row.three-col .col {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    overflow: hidden;
}
.today-calendar-card .card-row.three-col .col .value {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
.today-calendar-card .card-row.three-col .col:first-child {
    text-align: left;
}
.today-calendar-card .card-row.three-col .col:last-child {
    text-align: right;
}
.today-calendar-card .card-row .label,
.today-calendar-card .card-row.three-col .col .label {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-right: 4px;
    white-space: nowrap;
}
.today-calendar-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #f0ede8;
}
.today-calendar-card .card-tags:first-of-type {
    border-top: none;
    padding-top: 0;
}
.today-calendar-card .card-tags .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-right: 4px;
    font-weight: 500;
}
.today-calendar-card .card-tags .god-tag {
    font-size: 0.7rem;
    padding: 0 10px;
    border-radius: 12px;
    background: #f5f2ed;
    color: #555;
    line-height: 1.8;
}
.today-calendar-card .card-tags .god-tag.good {
    background: #e3f2fd;
    color: #0d47a1;
}
.today-calendar-card .card-tags .god-tag.bad {
    background: #fce4ec;
    color: #b71c1c;
}
.today-calendar-card .card-tags .god-tag.yi {
    background: #e8f5e9;
    color: #2e7d32;
}
.today-calendar-card .card-tags .god-tag.ji {
    background: #fce4ec;
    color: #c62828;
}

/* ================================================================
   独立用户中心样式（京东风格）—— 完全隔离 common.css
   使用前缀 .jd-uc- 避免冲突
   ================================================================ */

/* ----- 未登录：登录 / 注册 ----- */
.jd-uc-auth {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}
.jd-uc-auth .jd-uc-btn {
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
    color: #666 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
    font-weight: 400 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
}
.jd-uc-auth .jd-uc-btn:hover {
    color: #c91623 !important;
}
.jd-uc-auth .jd-uc-btn-register {
    color: #c91623 !important;
    font-weight: 500 !important;
}
.jd-uc-auth .jd-uc-btn-register:hover {
    color: #a0121a !important;
}
.jd-uc-auth .jd-uc-divider {
    width: 1px !important;
    height: 14px !important;
    background: #d0c8c0 !important;
    margin: 0 4px !important;
    flex-shrink: 0 !important;
}

/* ----- 已登录：用户卡片（带头像） ----- */
.jd-uc-profile {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px 4px 4px !important;
    border-radius: 24px !important;
    cursor: pointer !important;
    position: relative !important;
    border: 1px solid transparent !important;
    transition: background 0.2s, border-color 0.2s !important;
    height: 44px !important;
    user-select: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
}
.jd-uc-profile:hover {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: #e0d8d0 !important;
}
.jd-uc-profile.open .jd-uc-arrow {
    transform: rotate(180deg) !important;
    color: #c91623 !important;
}

.jd-uc-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #c91623 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 4px rgba(201, 22, 35, 0.2) !important;
    transition: transform 0.2s !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
}
.jd-uc-profile:hover .jd-uc-avatar {
    transform: scale(1.02) !important;
}

.jd-uc-username {
    font-size: 0.85rem !important;
    color: #333 !important;
    font-weight: 500 !important;
    max-width: 80px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    transition: color 0.2s !important;
}
.jd-uc-profile:hover .jd-uc-username {
    color: #c91623 !important;
}

.jd-uc-arrow {
    font-size: 0.6rem !important;
    color: #999 !important;
    transition: transform 0.25s ease, color 0.2s !important;
    line-height: 1 !important;
    padding-top: 2px !important;
    margin-left: -2px !important;
}
.jd-uc-profile:hover .jd-uc-arrow {
    color: #c91623 !important;
}

/* ===== 下拉菜单（左右两栏布局，无图标） ===== */
.jd-uc-dropdown {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: -4px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12) !important;
    min-width: 520px !important;
    padding: 16px 20px !important;
    z-index: 9999 !important;
    border: 1px solid #eee8e0 !important;
    box-sizing: border-box !important;
}
.jd-uc-dropdown.open {
    display: block !important;
}

.jd-uc-row {
    display: grid !important;
    grid-template-columns: 70px 1fr !important;
    gap: 12px !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #f5f0eb !important;
}
.jd-uc-row:last-of-type {
    border-bottom: none !important;
}

.jd-uc-category {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.8 !important;
    white-space: nowrap !important;
}

.jd-uc-links {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    align-items: center !important;
    gap: 6px 8px !important;
}
.jd-uc-links a {
    color: #555 !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    transition: color 0.15s !important;
    line-height: 1.8 !important;
    white-space: nowrap !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.jd-uc-links a:hover {
    color: #c91623 !important;
}
.jd-uc-links .sep {
    display: none !important;
}

.jd-uc-logout-wrap {
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid #f0ece8 !important;
    text-align: center !important;
}
.jd-uc-logout-wrap a {
    color: #e74c3c !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    padding: 4px 16px !important;
    border-radius: 4px !important;
    transition: background 0.15s !important;
}
.jd-uc-logout-wrap a:hover {
    background: #fef0ee !important;
    color: #c0392b !important;
}

/* ----- 搜索图标 ----- */
.jd-uc-search {
    display: flex !important;
    align-items: center !important;
    margin: 0 12px !important;
}
.jd-uc-search a {
    color: #888 !important;
    text-decoration: none !important;
    font-size: 1.15rem !important;
    transition: color 0.2s !important;
    line-height: 1 !important;
}
.jd-uc-search a:hover {
    color: #c91623 !important;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .jd-uc-username {
        max-width: 60px !important;
        font-size: 0.78rem !important;
    }
    .jd-uc-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    .jd-uc-profile {
        height: 38px !important;
        padding: 2px 8px 2px 2px !important;
    }
    .jd-uc-dropdown {
        min-width: 320px !important;
        right: -6px !important;
        padding: 12px 16px !important;
    }
    /* 小屏空间窄：链接恢复换行，避免溢出屏幕 */
    .jd-uc-links {
        flex-wrap: wrap !important;
    }
    .jd-uc-row {
        grid-template-columns: 60px 1fr !important;
        gap: 8px !important;
    }
    .jd-uc-category {
        font-size: 0.75rem !important;
    }
    .jd-uc-links a {
        font-size: 0.75rem !important;
    }
    .jd-uc-links {
        gap: 4px 10px !important;
    }
    .jd-uc-auth .jd-uc-btn {
        font-size: 0.78rem !important;
        padding: 2px 4px !important;
    }
    .jd-uc-search {
        margin: 0 6px !important;
    }
}
@media (max-width: 480px) {
    .jd-uc-username {
        display: none !important;
    }
    .jd-uc-profile {
        padding: 2px 4px 2px 2px !important;
        height: 34px !important;
        gap: 2px !important;
    }
    .jd-uc-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
    .jd-uc-arrow {
        font-size: 0.5rem !important;
        padding-top: 1px !important;
    }
    .jd-uc-dropdown {
        min-width: 260px !important;
        right: -4px !important;
        top: calc(100% + 6px) !important;
        padding: 10px 12px !important;
    }
    .jd-uc-row {
        grid-template-columns: 1fr !important;
        gap: 2px !important;
        padding: 4px 0 !important;
    }
    .jd-uc-category {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        color: #999 !important;
        margin-bottom: 2px !important;
    }
    .jd-uc-links {
        gap: 4px 8px !important;
    }
    .jd-uc-links a {
        font-size: 0.7rem !important;
    }
    .jd-uc-auth .jd-uc-btn {
        font-size: 0.72rem !important;
        padding: 2px 3px !important;
    }
    .jd-uc-auth .jd-uc-divider {
        height: 12px !important;
        margin: 0 2px !important;
    }
    .jd-uc-search {
        margin: 0 4px !important;
    }
    .jd-uc-search a {
        font-size: 1rem !important;
    }
    .jd-uc-logout-wrap a {
        font-size: 0.75rem !important;
    }
}

/* ================================================================
   登录模态框样式
   ================================================================ */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
}
.login-modal-overlay.open {
    display: flex;
}

.login-modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    width: 400px;
    max-width: 90vw;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: scaleIn 0.2s ease;
}
.login-modal-card .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.login-modal-card .brand .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2e7d32, var(--sun-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.login-modal-card .brand .logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--sun-red), var(--sun-red-dark));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.login-modal-card .brand .sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 2px;
}

.login-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}
.login-modal-close:hover {
    color: #333;
}

.login-modal-card .login-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color, #f0e0d0);
    margin-bottom: 20px;
}
.login-modal-card .login-tabs .tab-btn {
    padding: 6px 16px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
    flex: 1;
    text-align: center;
}
.login-modal-card .login-tabs .tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--sun-red);
    border-radius: 4px;
    transition: 0.3s;
}
.login-modal-card .login-tabs .tab-btn.active {
    color: var(--sun-red);
}
.login-modal-card .login-tabs .tab-btn.active::after {
    width: 60%;
}
.login-modal-card .login-method {
    display: none;
    animation: fadeIn 0.25s ease;
}
.login-modal-card .login-method.active {
    display: block;
}

.login-modal-card .form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.login-modal-card .form-group label {
    flex: 0 0 64px;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}
.login-modal-card .form-group .form-control {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color, #f0e0d0);
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fafafa;
    transition: 0.2s;
    outline: none;
}
.login-modal-card .form-group .form-control:focus {
    border-color: var(--sun-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(235, 19, 19, 0.06);
}
.login-modal-card .input-group {
    display: flex;
    flex: 1;
    gap: 8px;
}
.login-modal-card .input-group .form-control {
    flex: 1;
}
.login-modal-card .input-group .btn-captcha {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.2s;
}
.login-modal-card .input-group .btn-captcha:hover {
    border-color: var(--sun-red);
    color: var(--sun-red);
}
.login-modal-card .input-group .btn-captcha:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.login-modal-card .form-error {
    color: #ef4444;
    font-size: 0.7rem;
    margin-top: 2px;
    padding-left: 74px;
    display: none;
}
.login-modal-card .form-error.show {
    display: block;
}
.login-modal-card .server-error {
    color: #ef4444;
    font-size: 0.7rem;
    padding-left: 74px;
    margin-top: -4px;
    margin-bottom: 6px;
    display: none;
}
.login-modal-card .server-error.show {
    display: block;
}
.login-modal-card .btn-submit {
    width: 100%;
    padding: 10px 0;
    border-radius: 40px;
    border: none;
    background: var(--sun-red);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 6px;
}
.login-modal-card .btn-submit:hover {
    background: var(--sun-red-dark);
}
.login-modal-card .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.login-modal-card .modal-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.login-modal-card .modal-footer a {
    color: var(--sun-red);
    font-weight: 600;
    text-decoration: none;
}
.login-modal-card .modal-footer a:hover {
    text-decoration: underline;
}

/* 扫码登录 */
.qr-show-area {
    text-align: center;
    padding: 10px 0 6px;
}
.qr-show-area canvas {
    display: inline-block;
    width: 160px;
    height: 160px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
}
.qr-show-area .qr-tip {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}
.qr-show-area .qr-tip strong {
    color: var(--text-primary);
}
.qr-show-area .btn-scan-sim {
    margin-top: 10px;
    padding: 6px 24px;
    border-radius: 30px;
    border: 1px solid var(--sun-red);
    background: transparent;
    color: var(--sun-red);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}
.qr-show-area .btn-scan-sim:hover {
    background: var(--sun-red);
    color: #fff;
}
.qr-show-area .btn-scan-sim.active {
    background: var(--sun-red);
    color: #fff;
}
.qr-platform-switch {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}
.qr-platform-switch .btn-scan-sim {
    margin-top: 0;
    padding: 4px 16px;
}
#modalQrStatusMsg {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .login-modal-card {
        padding: 20px 16px;
        width: 95vw;
    }
    .login-modal-card .form-group {
        flex-wrap: wrap;
        gap: 4px;
    }
    .login-modal-card .form-group label {
        flex: 0 0 100%;
        text-align: left;
        font-size: 0.8rem;
    }
    .login-modal-card .form-error,
    .login-modal-card .server-error {
        padding-left: 0;
    }
}

/* ================================================================
   商城卡片（京东/淘宝风格）
   ================================================================ */
.shop-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 992px) {
    .shop-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .shop-grid-4 {
        grid-template-columns: 1fr;
    }
}
.shop-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.shop-card .shop-img {
    font-size: 3.5rem;
    margin-bottom: 8px;
    display: block;
}
.shop-card .shop-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.shop-card .shop-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.shop-card .shop-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sun-red);
    margin-bottom: 10px;
}
.shop-card .shop-btn {
    width: 100%;
    padding: 6px 0;
    border: none;
    border-radius: 30px;
    background: var(--sun-red);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.shop-card .shop-btn:hover {
    background: var(--sun-red-dark);
}

/* ================================================================
   专题文档卡片（360文库风格）
   ================================================================ */
.doc-item-360 {
    display: flex;
    gap: 16px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    transition: box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
    margin-bottom: 12px;
}
.doc-item-360:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.doc-item-360 .doc-icon {
    flex-shrink: 0;
    font-size: 2.2rem;
    line-height: 1;
    width: 48px;
    text-align: center;
    margin-top: 2px;
}
.doc-item-360 .doc-body {
    flex: 1;
    min-width: 0;
}
.doc-item-360 .doc-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.doc-item-360 .doc-title .vip-badge {
    font-size: 0.55rem;
    background: #f59e0b;
    color: #fff;
    padding: 0 8px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.8;
    flex-shrink: 0;
}
.doc-item-360 .doc-title .file-type {
    font-size: 0.6rem;
    background: var(--tag-bg);
    color: var(--tag-color);
    padding: 0 8px;
    border-radius: 4px;
    font-weight: 400;
    flex-shrink: 0;
}
.doc-item-360 .doc-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 4px 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.doc-item-360 .doc-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.doc-item-360 .doc-footer .rating {
    color: #f59e0b;
    font-weight: 600;
}
.doc-item-360 .doc-footer .pages {
    color: var(--text-muted);
}
.doc-item-360 .doc-footer .tag {
    background: var(--bg-light);
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* ================================================================
   AI创作工具卡片（右侧，每行一个）
   ================================================================ */
.ai-tool-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ai-tool-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.ai-tool-card .ai-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    line-height: 1;
}
.ai-tool-card .ai-info {
    flex: 1;
    min-width: 0;
}
.ai-tool-card .ai-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.ai-tool-card .ai-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 2px;
}
.ai-tool-card .ai-btn {
    flex-shrink: 0;
    padding: 4px 14px;
    border-radius: 30px;
    border: none;
    background: var(--sun-red);
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.ai-tool-card .ai-btn:hover {
    background: var(--sun-red-dark);
}
.ai-tool-card .ai-badge {
    display: inline-block;
    background: #f59e0b;
    color: #fff;
    font-size: 0.5rem;
    padding: 0 6px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.6;
    margin-left: 4px;
}
.ai-tool-card .ai-badge.green {
    background: #10b981;
}

/* ================================================================
   论坛帖子列表
   ================================================================ */
.bbs-post-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color, #f0e0d0);
    transition: background 0.15s;
    gap: 12px;
}
.bbs-post-item:last-child {
    border-bottom: none;
}
.bbs-post-item:hover {
    background: var(--bg-light, #fff8f5);
}
.bbs-post-item .post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}
.bbs-post-item .post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #2c2b28);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.bbs-post-item .post-title:hover {
    color: var(--sun-red, #eb1313);
}
.bbs-post-item .post-badge {
    font-size: 0.55rem;
    padding: 0 8px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    color: #fff;
}
.bbs-post-item .post-badge.reward {
    background: #f59e0b;
}
.bbs-post-item .post-badge.essence {
    background: #8b5cf6;
}
.bbs-post-item .post-badge.hot {
    background: #ef4444;
}
.bbs-post-item .post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    flex-shrink: 0;
}
.bbs-post-item .post-meta .stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.bbs-post-item .post-meta .reply-count {
    color: var(--sun-red);
    font-weight: 600;
}
.bbs-post-item .post-meta .reward-points {
    color: #f59e0b;
    font-weight: 600;
}
.bbs-post-item .post-meta .date {
    color: var(--text-muted);
}
.bbs-post-item .post-action {
    flex-shrink: 0;
    font-size: 0.78rem;
}
.bbs-post-item .post-action a {
    color: var(--sun-red);
    text-decoration: none;
}
.bbs-post-item .post-action a:hover {
    text-decoration: underline;
}

/* ================================================================
   Tab 切换样式
   ================================================================ */
.forum-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2px;
}
.forum-tabs .tab-btn {
    padding: 6px 20px;
    border-radius: 30px 30px 0 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.forum-tabs .tab-btn:hover {
    background: var(--sun-red-light);
    color: var(--sun-red);
}
.forum-tabs .tab-btn.active {
    background: var(--sun-red);
    color: #fff;
}
.forum-tab-content {
    display: none;
}
.forum-tab-content.active {
    display: block;
}

/* ================================================================
   热门板块（两列/三列网格）—— 紧凑版
   ================================================================ */

/* ----- 两列布局（侧边栏 / 窄列场景） ----- */
.hot-board-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.hot-board-grid-2 .hot-board-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 4px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    min-height: 0;
}
.hot-board-grid-2 .hot-board-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: var(--sun-red);
}
.hot-board-grid-2 .hot-board-item .board-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
    line-height: 1.2;
}
.hot-board-grid-2 .hot-board-item .board-name {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 2px;
}
.hot-board-grid-2 .hot-board-item .board-name:hover {
    color: var(--sun-red);
}
.hot-board-grid-2 .hot-board-item .board-stats {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.hot-board-grid-2 .hot-board-item .board-stats .num {
    font-weight: 600;
    color: var(--sun-red);
}

/* ----- 三列布局（宽列 / 全宽场景） ----- */
.hot-board-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hot-board-grid-3 .hot-board-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    min-height: 0;
}
.hot-board-grid-3 .hot-board-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: var(--sun-red);
}
.hot-board-grid-3 .hot-board-item .board-icon {
    font-size: 1.6rem;
    margin-bottom: 3px;
    line-height: 1.2;
}
.hot-board-grid-3 .hot-board-item .board-name {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 2px;
}
.hot-board-grid-3 .hot-board-item .board-name:hover {
    color: var(--sun-red);
}
.hot-board-grid-3 .hot-board-item .board-stats {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.hot-board-grid-3 .hot-board-item .board-stats .num {
    font-weight: 600;
    color: var(--sun-red);
}

/* ================================================================
   热门板块响应式适配
   ================================================================ */

/* 三列 → 两列（中等屏幕） */
@media (max-width: 992px) {
    .hot-board-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .hot-board-grid-3 .hot-board-item {
        padding: 8px 4px;
        border-radius: 10px;
    }
    .hot-board-grid-3 .hot-board-item .board-icon {
        font-size: 1.4rem;
    }
    .hot-board-grid-3 .hot-board-item .board-name {
        font-size: 0.75rem;
    }
    .hot-board-grid-3 .hot-board-item .board-stats {
        font-size: 0.6rem;
    }
}

/* 两列 → 一列（小屏幕） */
@media (max-width: 576px) {
    .hot-board-grid-2,
    .hot-board-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .hot-board-grid-2 .hot-board-item,
    .hot-board-grid-3 .hot-board-item {
        padding: 6px 4px;
        border-radius: 8px;
    }
    .hot-board-grid-2 .hot-board-item .board-icon,
    .hot-board-grid-3 .hot-board-item .board-icon {
        font-size: 1.2rem;
    }
    .hot-board-grid-2 .hot-board-item .board-name,
    .hot-board-grid-3 .hot-board-item .board-name {
        font-size: 0.7rem;
    }
    .hot-board-grid-2 .hot-board-item .board-stats,
    .hot-board-grid-3 .hot-board-item .board-stats {
        font-size: 0.55rem;
    }
}

/* 极小屏（手机竖屏）保持两列但更紧凑 */
@media (max-width: 400px) {
    .hot-board-grid-2,
    .hot-board-grid-3 {
        gap: 4px;
    }
    .hot-board-grid-2 .hot-board-item,
    .hot-board-grid-3 .hot-board-item {
        padding: 4px 2px;
        border-radius: 6px;
    }
    .hot-board-grid-2 .hot-board-item .board-icon,
    .hot-board-grid-3 .hot-board-item .board-icon {
        font-size: 1rem;
    }
    .hot-board-grid-2 .hot-board-item .board-name,
    .hot-board-grid-3 .hot-board-item .board-name {
        font-size: 0.6rem;
    }
    .hot-board-grid-2 .hot-board-item .board-stats,
    .hot-board-grid-3 .hot-board-item .board-stats {
        font-size: 0.5rem;
    }
}

/* ================================================================
   热门标签（小尺寸）
   ================================================================ */
.tag-sm {
    display: inline-block;
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    line-height: 1.6;
    margin: 2px 4px 2px 0;
}
.tag-sm:hover {
    background: var(--sun-red-light);
    border-color: var(--sun-red);
    color: var(--sun-red);
}

/* ================================================================
   全部分类三列
   ================================================================ */
.category-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ================================================================
   全部分类两列（首页精选文章）
   ================================================================ */
.category-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .category-grid-2 {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 992px) {
    .category-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .category-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   侧边栏 header（通用）
   ================================================================ */
.sidebar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* 标题位于 .sidebar-header 内时，下边线由 header 统一提供；
   重置独立标题样式(.sidebar-title 顶部定义)残留的 padding/border，避免标题下多出一条空带 */
.sidebar-header .sidebar-title {
    padding-bottom: 0;
    border-bottom: none;
}
.sidebar-more {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--sun-red);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.sidebar-more:hover {
    text-decoration: underline;
}

/* ================================================================
   通用网格辅助
   ================================================================ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* 右侧 AI 创作工具高度自适应 */
.col-md-3 .sidebar-card {
    flex: 1;
    height: 100%;
}

/* ================================================================
   论坛帖子紧凑版（用于侧边栏/列表）
   ================================================================ */
.bbs-post-item.compact {
    padding: 6px 12px;
}
.bbs-post-item.compact .post-title {
    font-size: 0.9rem;
}
.bbs-post-item.compact .post-meta {
    font-size: 0.7rem;
    gap: 8px 12px;
}

/* ================================================================
   卡片面板通用修正
   ================================================================ */
.card-panel {
    padding: 0 24px;
}
@media (max-width: 768px) {
    .card-panel {
        padding: 0 16px;
    }
}

/* ================================================================
   响应式断点补齐
   ================================================================ */
@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }
    .hero {
        padding: 32px 0;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .hero-card {
        padding: 16px;
    }
    .form-row {
        flex-direction: column;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .tab-articles-wrapper {
        flex-direction: column;
    }
    .side-list-grid {
        grid-template-columns: 1fr;
    }
    .topics-grid-5 {
        grid-template-columns: 1fr 1fr;
    }
    .category-grid-3 {
        grid-template-columns: 1fr;
    }
    .shop-grid-4 {
        grid-template-columns: 1fr;
    }
    .hot-board-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    .stats-panel {
        padding: 24px 16px;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .shop-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .category-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ================================================================
   打印样式
   ================================================================ */
@media print {
    .navbar,
    .ticker-bar,
    .ai-float-btn,
    .ai-float-panel,
    .back-to-top,
    .forum-tools-bar,
    .footer-tools,
    footer {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
    .article-card {
        border: none;
        padding: 0;
        box-shadow: none;
    }
    .card-panel {
        border: none;
        padding: 0;
        box-shadow: none;
    }
    .hero {
        background: #fff;
        padding: 20px 0;
        border-bottom: 1px solid #ddd;
    }
}

/* ================================================================
   择日 · 万年历卡片（侧边栏专用）
   ================================================================ */
/* ================================================================
   交流社区卡片（右侧新增）
   ================================================================ */
.community-card .sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-bottom: 10px;
}
.community-card .sidebar-header .c-logo {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.community-card .sidebar-header .c-name {
    font-weight: 600;
    font-size: 1rem;
}
.community-card .sidebar-header .c-wx {
    font-size: .82rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* 微信二维码区域 - 放大版本 */
.community-qr {
    display: flex;
    flex-direction: column;      /* 改为纵向排列 */
    align-items: center;          /* 居中对齐 */
    gap: 10px;
    padding: 10px 0 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}
.community-qr .qr-code {
    flex-shrink: 0;
    width: 330px;          /* 从72px放大到110px */
    height: 330px;
    background: #f0ebe6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.community-qr .qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.community-qr .qr-code .qr-placeholder {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    padding: 6px;
}
/* QQ群列表 */
.community-qq {
    margin-bottom: 12px;
}
.community-qq .qq-title {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0 0 6px 0;
    color: var(--text-primary);
}
.community-qq .qq-title .c-logo {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.community-qq .qq-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.community-qq .qq-item {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.community-qq .qq-item strong {
    color: var(--sun-red);
    font-weight: 600;
}

/* 免责提示 - 优化换行与样式 */
.community-disclaimer {
    background: #fff5ef;
    border-left: 4px solid var(--sun-red);
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 6px;
}
.community-disclaimer .disclaimer-text {
    font-size: 0.78rem;
    color: #7a5a4a;
    line-height: 1.7;
    word-break: break-word;
}
.community-disclaimer .disclaimer-text strong {
    color: var(--sun-red);
    font-weight: 700;
}
.community-disclaimer .disclaimer-text .highlight {
    display: inline-block;
    background: rgba(235,19,19,0.08);
    padding: 0 4px;
    border-radius: 3px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .community-qr {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
    .community-qr .qr-code {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
    }
    .community-qq .qq-list {
        flex-direction: column;
        gap: 1px;
    }
    .community-qq .qq-item {
        font-size: 0.72rem;
    }
    .community-disclaimer {
        padding: 8px 12px;
    }
    .community-disclaimer .disclaimer-text {
        font-size: 0.72rem;
        line-height: 1.6;
    }
}
@media (max-width: 480px) {
    .community-qr {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .community-qr .qr-code {
        width: 120px;
        height: 120px;
    }
}

/* ============================================================
   侧边栏商城及列表样式（与首页一致）
   ============================================================ */
.shop-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.shop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #faf6f0;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    border: 1px solid #f0e8e0;
}
.shop-icon {
    font-size: 28px;
    margin-bottom: 4px;
}
.shop-info .shop-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}
.shop-info .shop-price {
    font-size: 14px;
    color: #c0392b;
    font-weight: bold;
    margin: 2px 0;
}
.shop-btn-sm {
    background: var(--sun-red);
    border: none;
    color: #fff;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
}
.shop-btn-sm:hover {
    background: var(--sun-red-dark);
}

/* 侧边栏列表 */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.related-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f0ebe6;
}
.related-list li:last-child {
    border-bottom: none;
}
.related-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 14px;
}
.related-list .title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}
.related-list .time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* 最新帖子 */
.latest-post-item {
    padding: 6px 0;
    border-bottom: 1px solid #f0ebe6;
}
.latest-post-item:last-child {
    border-bottom: none;
}
.post-title-link {
    display: block;
    font-size: 14px;
    color: #3c3c3c;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-title-link:hover {
    color: #b88a5e;
}
.post-meta-info {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.post-meta-info .author {
    margin-right: 12px;
}

/* 专题卡片 */
.theme-card-mini {
    padding: 8px 0;
    border-bottom: 1px solid #f0ebe6;
    cursor: pointer;
}
.theme-card-mini:last-child {
    border-bottom: none;
}
.theme-name {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.theme-name span:first-child {
    font-weight: 500;
    color: #333;
}
.file-type-badge {
    background: #e8e0d8;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
}
.vip-badge {
    background: #f1c40f;
    color: #7d6608;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}
.theme-desc {
    font-size: 13px;
    color: #777;
    margin: 2px 0;
}
.theme-stat {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 12px;
}

/* 底部Tab区 */
.bottom-tab-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.tab-header h3 {
    margin: 0;
    font-size: 18px;
}
.tab-buttons {
    display: flex;
    gap: 6px;
}
.tab-buttons .tab-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 3px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}
.tab-buttons .tab-btn.active {
    background: var(--sun-red);
    color: #fff;
    border-color: var(--sun-red);
}
.bottom-tab-content {
    display: none;
}
.bottom-tab-content.active {
    display: block;
}
.bottom-article-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bottom-article-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    border-bottom: 1px solid #f5f0eb;
    font-size: 13px;
}
.bottom-article-item:last-child {
    border-bottom: none;
}
.bottom-article-item .item-category {
    background: #f0e8e0;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #6b5b4f;
    white-space: nowrap;
}
.bottom-article-item .item-title {
    flex: 1;
    color: #3c3c3c;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bottom-article-item .item-title:hover {
    color: #b88a5e;
}
.bottom-article-item .item-date {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}
.bottom-article-item .item-views {
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
}

/* 空提示 */
.empty-tip {
    text-align: center;
    color: #b0a8a0;
    padding: 12px 0;
    font-size: 13px;
}

/* ============================================================ */
.sidebar-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
    gap: 8px;
}
.sidebar-list-item:last-child {
    border-bottom: none;
}
.sidebar-list-item .item-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    transition: color 0.2s;
}
.sidebar-list-item .item-title:hover {
    color: var(--sun-red);
}
.sidebar-list-item .item-meta {
    font-size: 0.6rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-list-item .rank-num {
    font-weight: 700;
    font-size: 0.7rem;
    width: 22px;
    text-align: center;
    color: var(--text-muted);
    flex-shrink: 0;
}
.sidebar-list-item .rank-num.top1 {
    color: #f59e0b;
}
.sidebar-list-item .rank-num.top2 {
    color: #94a3b8;
}
.sidebar-list-item .rank-num.top3 {
    color: #b45309;
}
.sidebar-list-item .post-author {
    color: var(--text-secondary);
    font-size: 0.6rem;
}
.sidebar-list-item .post-time {
    color: var(--text-muted);
    font-size: 0.6rem;
}

/** element ui 组件样式**/
/* 提示框容器 */
.custom-message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.custom-message {
    pointer-events: auto;
    padding: 12px 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid #ebeef5;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #303133;
    animation: messageFadeIn 0.3s ease;
    min-width: 200px;
    max-width: 80vw;
}
.custom-message .msg-icon {
    font-size: 18px;
}
.custom-message.success {
    border-left: 4px solid #67c23a;
    background: #f0f9eb;
    color: #67c23a;
}
.custom-message.success .msg-icon {
    color: #67c23a;
}
.custom-message .msg-text {
    flex: 1;
}
@keyframes messageFadeIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes messageFadeOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

.search-btn {
    padding: 4px 20px;
    height: 34px;
    border-radius: 30px;
    border: none;
    background: var(--sun-red);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    line-height: 1.8;
    white-space: nowrap;
    margin-left: auto;
}
.reset-btn {
    padding: 4px 16px;
    height: 34px;
    border-radius: 30px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    line-height: 1.8;
    white-space: nowrap;
}

.search-btn:hover,.reset-btn:hover {
    background: var(--sun-red-dark);
    color: #fff;
}

/* ============================================================
   第一部分：工具条统计样式（文章列表/论坛顶部）
   ============================================================ */
.article-tools-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: 16px 0 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
}
.article-tools-bar .article-stats {
    font-size: 14px;
    color: #555;
    flex: 0 1 auto;
    padding: 6px 0;
}
.article-tools-bar .article-stats strong {
    color: var(--sun-red);
    font-weight: 700;
}
.article-tools-bar .article-stats .sep {
    color: #ddd;
    user-select: none;
    margin: 0 4px;
}
.article-tools-bar .article-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.article-tools-bar .btn-write {
    background: var(--sun-red);
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.article-tools-bar .btn-write:hover {
    background: var(--sun-red-dark);
    color: #fff;
    transform: translateY(-1px);
}
.article-tools-bar .tool-link {
    color: #555;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.article-tools-bar .tool-link:hover {
    color: var(--sun-red);
    border-bottom-color: var(--sun-red);
}

/* 响应式 */
@media (max-width: 768px) {
    .article-tools-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px 16px;
    }
    .article-tools-bar .article-stats {
        font-size: 13px;
        text-align: center;
    }
    .article-tools-bar .article-actions {
        margin-left: 0;
        justify-content: center;
    }
    .article-tools-bar .btn-write {
        padding: 5px 16px;
        font-size: 0.8rem;
    }
}


/** 点赞搜藏样式 **/
/* 收藏弹窗样式 */
.collect-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
}
.collect-modal-overlay.open {
    display: flex;
}
.collect-modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    width: 440px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    animation: scaleIn 0.2s ease;
}
.collect-modal-card .modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2c2b28;
}
.collect-modal-card .modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}
.collect-modal-card .modal-close:hover {
    color: #333;
}
.collect-modal-card .folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0ebe6;
}
.collect-modal-card .folder-item:hover {
    background: #feeeee;
}
.collect-modal-card .folder-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #eb1313;
    flex-shrink: 0;
}
.collect-modal-card .folder-item .folder-name {
    font-size: 0.95rem;
    color: #2c2b28;
}
.collect-modal-card .folder-item .folder-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: #94a3b8;
}
.collect-modal-card .empty-tip {
    padding: 20px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
}
.collect-modal-card .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0ebe6;
}
.collect-modal-card .modal-actions .btn {
    padding: 6px 24px;
    border-radius: 30px;
    border: 1px solid #e0d8d0;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}
.collect-modal-card .modal-actions .btn:hover {
    border-color: #eb1313;
    color: #eb1313;
    background: #feeeee;
}
.collect-modal-card .modal-actions .btn-primary {
    background: #eb1313;
    color: #fff;
    border-color: #eb1313;
}
.collect-modal-card .modal-actions .btn-primary:hover {
    background: #c40e0e;
    border-color: #c40e0e;
    color: #fff;
}
.collect-modal-card .modal-actions .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.collect-btn {
    background: none;
    border: 1px solid #e0d8d0;
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    color: #666;
}
.collect-btn:hover {
    border-color: #eb1313;
    color: #eb1313;
    background: #feeeee;
}
.collect-btn.collected {
    border-color: #eb1313;
    background: #feeeee;
    color: #eb1313;
    cursor: default;
}
.collect-btn.collected:hover {
    background: #feeeee;
    border-color: #eb1313;
    color: #eb1313;
}
.like-btn {
    background: none;
    border: 1px solid #e0d8d0;
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    color: #666;
}
.like-btn:hover {
    border-color: #eb1313;
    color: #eb1313;
    background: #feeeee;
}
.like-btn.liked {
    border-color: #eb1313;
    background: #feeeee;
    color: #eb1313;
}




/* 矢量徽标(img)接管 logo 字符：中和各场景 .logo-icon 的渐变底色 */
img.logo-icon {
    background: none !important;
    border-radius: 0 !important;
    color: transparent !important;
    object-fit: contain;
}


/* == BRAND-INTEGRATION 青阳阁主品牌 / 青阳易智子品牌 视觉融合 == */
/* 矢量徽标(img)接管 logo 字符：填满父级容器，去掉渐变底色 */
img.logo-icon {
    width: 100%;
    height: 100%;
    display: block;
    background: none !important;
    border-radius: 0 !important;
    color: transparent !important;
    object-fit: contain;
}
.login-modal-card .brand .logo-icon,
.footer-brand-logo { width: 34px; height: 34px; }

/* 页脚品牌区（主品牌：青阳阁） */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0 14px;
    margin-top: 8px;
    border-top: 1px solid #33302e;
}
.footer-brand-logo { flex: 0 0 auto; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.footer-brand-text strong { font-size: 1.05rem; color: #f3d9b0; letter-spacing: 1px; }
.footer-brand-text span { font-size: 0.78rem; color: #b0aaa0; }

/* 首页 Hero 品牌化（叠品牌主视觉图，红日暖调） */
.hero.brand-hero {
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(105deg, rgba(255,245,239,0.55), rgba(255,240,230,0.18)),
        url(/brand/ge-hero-home.png);
    background-size: cover;
    background-position: center right;
}
.hero.brand-hero .container { position: relative; z-index: 1; }
/* ===== 首页 hero 压缩版：整体背景高度 200px（按钮一行、隐藏二维码卡） ===== */
.hero.hero-compact {
    padding: 0;
    height: 200px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero.hero-compact > .container { width: 100%; }
.hero.hero-compact .hero-grid { gap: 32px; }
.hero.hero-compact .hero-badge {
    margin-bottom: 8px;
    padding: 4px 12px;
    font-size: 0.78rem;
}
.hero.hero-compact .hero-content h2 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin: 0 0 6px;
}
.hero.hero-compact .hero-content p {
    font-size: 0.88rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero.hero-compact .hero-card {
    padding: 14px 18px;
    border-radius: 18px;
}
.hero.hero-compact .hero-buttons .btn-primary,
.hero.hero-compact .hero-buttons .btn-outline {
    padding: 10px 18px;
    font-size: 0.95rem;
}
@media (max-width: 900px) {
    .hero.hero-compact {
        height: auto;
        max-height: none;
        padding: 24px 0;
    }
    .hero.hero-compact .hero-content p { white-space: normal; }
}
.hero.brand-hero .hero-content h2 {
    background: linear-gradient(135deg, var(--sun-red-dark), var(--sun-red));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.hero.brand-hero .hero-badge { background: rgba(180,122,42,0.14); color: #a8781f; }

/* AI 测算子品牌条（青阳易智） */
.ai-brand-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin: 4px 0 18px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(196,59,47,0.10), rgba(184,134,11,0.12));
    border: 1px solid rgba(196,59,47,0.25);
    color: var(--sun-red-dark);
    font-size: 0.85rem;
    font-weight: 600;
}
.ai-brand-bar img { width: 26px; height: 26px; object-fit: contain; display: block; }


/* == BRAND-LOGO-PRIMARY 导航主品牌横版组合 == */
/* logo-primary 为横版标准组合（图标 + 青阳阁字标 + 英文），按高度自适应宽度 */
.logo-primary {
    height: 48px;
    width: auto;
    max-width: 280px;
    display: block;
    background: none !important;
}
/* logo-primary 已含「青阳阁」字标，隐藏导航内联重复字标，保留 slogan 副标题 */
.navbar .logo .logo-primary ~ .logo-text h1 { display: none; }

/* ============================================================
   分类筛选面板（文章 / 专题 / 百科 三页统一）
   用法：<div class="filter-panel"><div class="filter-row">…</div></div>
   ============================================================ */
.filter-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 18px;
    margin: 18px 0 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.filter-panel .filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
.filter-panel .filter-row + .filter-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #f1e9df;
}
.filter-panel .filter-label {
    display: inline-flex;
    align-items: center;
    flex: none;
    padding: 4px 12px;
    border-radius: 20px;
    background: #faf6f2;
    color: #8d7f6f;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.filter-panel .filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-panel .filter-btn:hover {
    color: var(--sun-red);
    border-color: var(--sun-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(235, 19, 19, 0.14);
}
.filter-panel .filter-btn.active {
    background: var(--sun-red);
    color: #fff;
    border-color: var(--sun-red);
    box-shadow: 0 4px 12px rgba(235, 19, 19, 0.22);
}
/* 二级大类分组标题（如百科「罗盘 / 玄空大卦」） */
.filter-panel .filter-group-label {
    display: inline-flex;
    align-items: center;
    flex: none;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #efe6db;
    color: #a2937f;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.filter-panel .filter-group-label:first-of-type {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}
/* 面板内搜索条 */
.filter-search { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.filter-search input {
    width: 220px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s;
}
.filter-search input:focus {
    border-color: var(--sun-red);
    box-shadow: 0 0 0 3px rgba(235, 19, 19, 0.08);
}
.filter-search button {
    padding: 8px 18px;
    background: var(--sun-red);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-search button:hover {
    box-shadow: 0 4px 10px rgba(235, 19, 19, 0.22);
}
@media (max-width: 768px) {
    .filter-panel { padding: 12px 14px; }
    .filter-search { margin-left: 0; width: 100%; }
    .filter-search input { width: 100%; }
}

/* ============================================================
   分类筛选「合并进工具条」的紧凑版（article / theme / dict 三页统一）
   参考 learn 模块 .cat-item-row（padding 5px 8px / gap 4px），再压缩一档：
   padding 3px 10px、字号 0.76rem、行间距 6px，避免标签过多时换行撑高。
   用法：把 .filter-row 直接放进 .article-tools-bar / .dict-tools-bar 内。
   ============================================================ */
.article-tools-bar,
.dict-tools-bar {
    padding: 8px 14px !important;
    margin: 12px 0 14px !important;
    gap: 6px 14px !important;
}
.article-tools-bar .article-stats,
.dict-tools-bar .stats {
    font-size: 0.8rem;
    padding: 0;
    gap: 10px;
}
.article-tools-bar .article-actions {
    font-size: 0.8rem;
    gap: 4px;
}
.article-tools-bar .article-stats .sep,
.article-tools-bar .article-actions .sep {
    margin: 0 2px;
}
/* 分类行：占满整行自动换到下一行，行内不换行撑高 */
.article-tools-bar .filter-row,
.dict-tools-bar .filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 4px 6px;
    margin-top: 6px;
    padding: 0;
    border: none;
}
.article-tools-bar .filter-row + .filter-row,
.dict-tools-bar .filter-row + .filter-row {
    margin-top: 5px;
}
/* 行标题小胶囊 */
.article-tools-bar .filter-label,
.dict-tools-bar .filter-label {
    flex: none;
    padding: 2px 8px;
    border-radius: 12px;
    background: #faf6f2;
    color: #8d7f6f;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
}
/* 分类标签（比 learn 的 cat-item-row 更紧凑） */
.article-tools-bar .filter-btn,
.dict-tools-bar .filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: #555;
    font-size: 0.76rem;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}
.article-tools-bar .filter-btn:hover,
.dict-tools-bar .filter-btn:hover {
    color: var(--sun-red);
    border-color: var(--sun-red);
}
.article-tools-bar .filter-btn.active,
.dict-tools-bar .filter-btn.active {
    background: var(--sun-red);
    color: #fff;
    border-color: var(--sun-red);
}
/* 二级大类分组标题（百科「罗盘 / 玄空大卦」） */
.dict-tools-bar .filter-group-label {
    display: inline-flex;
    align-items: center;
    flex: none;
    margin-left: 6px;
    padding-left: 6px;
    border-left: 1px solid #efe6db;
    color: #a2937f;
    font-size: 0.74rem;
    font-weight: 600;
}
.dict-tools-bar .filter-group-label:first-of-type {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}
/* 工具条内搜索条同步压缩 */
.dict-tools-bar .filter-search input {
    width: 180px;
    padding: 5px 12px;
    font-size: 0.8rem;
}
.dict-tools-bar .filter-search button {
    padding: 5px 14px;
    font-size: 0.8rem;
}
@media (max-width: 768px) {
    .article-tools-bar .article-actions,
    .dict-tools-bar .filter-search { margin-left: 0; }
    .article-tools-bar .filter-btn,
    .dict-tools-bar .filter-btn { padding: 3px 8px; font-size: 0.74rem; }
    .dict-tools-bar .filter-search input { width: 100%; }
}
