@charset "utf-8";

/* ==============================================
   1. 基础样式重置与全局设置
   ============================================== */
/* 基础元素重置 */
html, body, div, span, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, details, figcaption, figure, footer, header,
hgroup, menu, nav, section, summary, time, mark, audio, video,
object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
fieldset, form, input, button, select, textarea {
    margin: 0;
    padding: 0;
    outline: 0;
    border: 0;
    background: transparent;
    vertical-align: baseline;
}

/* 统一盒模型 */
* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* HTML 基础设置 */
html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    scroll-behavior: smooth;
    font-size: 100%;
    font-size: clamp(14px, 100%, 16px);
}

/* HTML5 标签兼容 */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, main, section {
    display: block;
}

/* 列表样式重置 */
ul, li, nav ul {
    list-style: none;
}

/* 引用样式重置 */
blockquote {
    quotes: none;
}
blockquote:before, blockquote:after {
    content: none;
}

/* 链接基础样式 */
a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:not(.nav-item):hover, a:not(.nav-item):focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* 表单元素基础样式 */
input, button, select, textarea {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    font-size: inherit;
    font-family: inherit;
}

/* 补充 button 基础样式 */
button {
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}
button:hover {
    opacity: 0.9;
}

/* 图片基础样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 标记样式 */
ins {
    color: #323841;
    background-color: #ff9;
    text-decoration: none;
    font-size: inherit;
}
mark {
    color: #323841;
    background-color: #ff9;
    font-weight: bold;
    font-style: italic;
    font-size: inherit;
}

/* 选中文本样式 */
*::selection {
    background: var(--primary-color);
    color: #ffffff;
    text-shadow: none;
}
*::-moz-selection {
    background: var(--primary-color);
    color: #ffffff;
    text-shadow: none;
}

/* 全局 CSS 变量 */
:root {
    /* 颜色系统 */
    --primary-color: #ff6600;
    --primary-color-dark: #e55c00;
    --text-primary: #333;
    --text-secondary: #666;
    --text-tertiary: #999;
    --bg-primary: #fff;
    --bg-secondary: #f8f8f8;
    --bg-tertiary: #eee;
    --border-color: #ddd;
    --error-color: #e74c3c;
    --error-bg: #fff5f5;
    --success-color: #2ecc71;
    --dark-bg: #333;

    /* 基础参数 */
    --base-font-size: 1rem;
    --h1-font-size: clamp(1.25rem, 2.33vw, 1.5rem);
    --h2-font-size: clamp(1.0rem, 2vw, 1.5rem);
    --h3-font-size: clamp(1.0rem, 2vw, 1.5rem);
    --h4-font-size: clamp(1.0rem, 2vw, 1.125rem);
    --h5-font-size: clamp(0.875rem, 2vw, 1.0rem);
    --h6-font-size: clamp(0.75rem, 2vw, 0.875rem);
    --body-font-size: var(--base-font-size);
    --nav-item-padding: 0.9375rem 1.25rem;
}

/* ==============================================
   3. 页面整体布局
   ============================================== */
body {
    padding-top: 60px;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    font-size: var(--body-font-size);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    flex-grow: 1;
}

/* ==============================================
   【新增】标题统一样式（跟随系统字号，解决大小不协调）
   ============================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin: 0.5em 0;
}
h1 { font-size: var(--h1-font-size); }
h2 { font-size: var(--h2-font-size); }
h3 { font-size: var(--h3-font-size); }
h4 { font-size: var(--h4-font-size); }
h5 { font-size: var(--h5-font-size); }
h6 { font-size: var(--h6-font-size); }

/* ==============================================
   【新增】通用文本样式（确保所有文本跟随系统）
   ============================================== */
p, span, div, li, a:not(.nav-item) {
    font-size: inherit;
}

main {
    width: 100%;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 8px 16px 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ==================== 全局置顶/推荐/头条标签 ==================== */
.list-top-badge,
.list-recommend-badge,
.list-headline-badge {
    flex-shrink: 0;
    padding: 3px 5px;
    border-radius: 6px;
    font-size: clamp(0.75rem, 2.4vw, 1rem);
    font-weight: 400;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.2;
}

/* 置顶徽章 - 红色 */
.list-top-badge {
    background-color: #ff4757;
    color: #fff;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

/* 推荐徽章 - 蓝色 */
.list-recommend-badge {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* 头条徽章 - 橙色 */
.list-headline-badge {
    background-color: #ff9f43;
    color: #fff;
    box-shadow: 0 2px 6px rgba(255, 159, 67, 0.3);
}

/* 底部分页样式 */
/* ========== 分页条容器 ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    list-style: none;
    flex-wrap: wrap;
}

/* ========== 分页项基础样式 ========== */
.page-item {
    display: inline-block;
}

/* ========== 分页链接/文本通用样式 ========== */
.page-link,
.page-number,
.submit {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    padding: 0 12px;
    font-size: 14px;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #007bff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* ========== 普通链接 hover 效果 ========== */
.page-link:hover,
.page-number:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* ========== 当前页（激活状态）========== */
.page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: 600;
}

/* ========== 禁用状态（上一页/下一页/页码信息）========== */
.page-item.disabled .page-link {
    color: #ccc;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
    background-color: #f8f9fa;
    color: #ccc;
}

/* ========== 分页跳转表单样式 ========== */
.page-item .jumpto {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.page-item .jumpto .page_number {
    width: 60px;
    min-width: auto;
    height: 38px;
    line-height: 36px;
    padding: 0 8px;
    text-align: center;
    border: 1px solid #007bff;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

.page-item .jumpto .page_number:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.page-item .jumpto .submit {
    min-width: auto;
    height: 38px;
    line-height: 36px;
    padding: 0 15px;
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-item .jumpto .submit:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* 公用面包屑 */
.detail-nav {
    margin-bottom: 8px;
    padding-left: 16px;
}

/* 公用文章列表下的类目样式 */
/* ================index===================== */
/* 标题区域 */
.main-hero {
    text-align: center;
    padding-top: 16px;
    margin-bottom: 16px;
}
.main-hero h1 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
}
.main-hero span {
    background-color: #007BFF;
    border-radius: 8px;
    padding: 8px 10px;
    color: #fff;
}
.main-hero p {
    padding: 16px 16px;
    font-size: clamp(14px, 2vw, 18px);
    color: #666;
    line-height: 1.7;
}

.category-section {
    padding: 0px 8px;
}
/* 分类标题 */
.section-title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 600;
    color: #111;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 4px solid #059669;
}

/* 分类两列网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

/* 分类卡片（加深边框/阴影） */
.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}
.category-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}
.category-card h3 {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 600;
    color: #111;
    margin-bottom: 16px;
}

.category-card p {
    font-size: clamp(14px, 2vw, 16px);
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 最新资源模块 */
.latest-box {
    width: 100%;
    padding: 0px 16px;
}
.latest-title {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 500;
    margin-bottom: 0px;
    color: #222;
}
.latest-list {
    list-style: none;
    padding: 0;
}
.latest-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    font-size: clamp(14px, 2vw, 16px);
}
.latest-list a {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    color: #333;
    text-decoration: none;
}
.latest-list a:hover {
    color: #2563eb;
}
.latest-list span {
    white-space: nowrap;
    color: #999;
    font-size: 14px;
}

/* ================list============== */
.list-taitle {
    padding: 0px 8px;
    border-left: 4px solid #07bbff;
    margin: 12px 16px;
}

.breadcrumb-bar * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.breadcrumb-bar a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
/* 模块容器：统一内边距，和下方卡片间距 */
.breadcrumb-bar {
    border-radius: 10px 10px 0px 0px;
    background-color: #fff;
    padding: 16px 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.main-cat {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #2563eb;
}
.main-cat span {
    color: #007bff;
}
/* ========== 3. 二级分类标签（横向可滑动） ========== */
.sub-cat-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.sub-cat-scroll::-webkit-scrollbar {
    display: none;
}

.sub-cat-group {
    display: flex;
    gap: 12px;
    white-space: nowrap;
    padding-bottom: 4px;
}
.sub-cat-group a {
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    border: 1px solid transparent;
}
.sub-cat-group a:hover {
    background: #f0f2f5;
    color: #2563eb;
}
.sub-cat-group a.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
/* ========== 核心修改：4列布局 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 16px 0px;
}
.detail-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0px;
}

/* 上图下文卡片 + 图片3:4比例 */
.card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 0px 0px 8px 8px;
    border: 1px solid #eee;
    min-height: 0;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}
.card-img {
    order: -1;
    padding: 20px;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}
.card-img img {
    aspect-ratio: 210/297;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

.card-text {
    background-color: #fff;
    padding: 8px 8px;
}
.card-title {
    padding: 0px 8px;
    min-height: 40px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
	text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    font-size: 14px;
    color: #999;
}
.category-wrap {
    width: 100%;
    border: 1px solid #eee;
    background-color: #fff;
    border-radius: 8px;
}
.list-nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #eee;
}
.list-nav li a {
    display: inline-block;
    padding: 18px 16px;
    font-size: 16px;
}
.list-nav li a.active {
    border-bottom: 1px solid #70bbff;
    padding: 18px 16px;
}
.list-nav::-webkit-scrollbar {
    display: none;
}
.list-fliter::-webkit-scrollbar {
    display: none;
}
.list-fliter {
    display: flex;
    padding: 8px 16px;
    align-items: center;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    margin: 4px 8px;
    padding: 4px 8px;
}
.list-fliter .title {
}
.list-fenlei {
    display: flex;
    gap: 8px;
    margin-left: 10px;
    align-items: center;
}

.list-fenlei li {
    display: inline-block;
    border-radius: 8px;
}
.list-fenlei li a {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 8px;
}

.list-fenlei .active {
    border-radius: 8px;
    background-color: #07bbff;
}
.list-fenlei .active a {
    color: #fff;
}
.list-fenlei li a.active {
    color: #fff;
    border-radius: 8px;
    background-color: #07bbff;
    padding: 4px 16px;
}

/* ==================== sidebar.html ==================== */
/* 侧边栏容器 */
.detail-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 卡片样式 */
.side-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border: 1px solid #f2f2f2;
}

.side-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f2;
}

/* 下载按钮 */
.download-card {
    text-align: center;
}
.side-download-btn {
    display: block;
    background: #2563eb;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 0;
    border-radius: 8px;
    text-decoration: none;
}
.side-download-btn:hover {
    background: #1d4ed8;
}

/* 标签组 */
.tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tags-group .tag {
    background: #f5f7fa;
    color: #555;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 4px;
}

/* 猜你喜欢 */
.like-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.like-list li {
    padding: 9px 0;
    border-bottom: 1px dashed #f2f2f2;
}
.like-list li:last-child {
    border-bottom: none;
}
.like-list li a {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.like-list li a:hover {
    color: #2563eb;
}
.like-list span {
    white-space: nowrap;
    color: #999;
    font-size: 14px;
}

/* 二维码 */
.qrcode-card {
    text-align: center;
}
.qrcode-img img {
    width: 150px;
    height: 150px;
    margin: 0 auto 10px;
    border-radius: 6px;
}
.qrcode-img p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* 公告 */
.notice-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* about */
.about {
    width: 100%;
    flex: 1;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.bianju {
    padding: 16px 32px;
}
.bianju h1 {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding: 0 0 16px 0;
    margin-bottom: 16px;
}
.aboutp h2 {
    font-size: 18px;
}
.aboutp p {
    font-size: 14px;
    line-height: 1.5;
    padding: 4px 24px;
}

/**===================detail.html==============*/
/*====详情页主容器 ===*/
.detail-main {
    display: flex;
    gap: 15px;
}

/*====详情页左侧主容器1 ===*/
.detail-main-left {
    flex: 3;
}

/*====详情页左侧主容器2 ===*/
.container {
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 18px rgba(0,0,0,0.04);
    padding: 16px 40px;
}

/*====时间阅读模块 ===*/
.article-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 0px;
    display: flex;
    gap: 16px;
    align-items: center;
}
.article-meta a {
    color: #888;
}

/*====详情页h2副标题 ===*/
.fuben {
    width: 100%;
    line-height: 1.5;
    font-weight: 400;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
    padding-bottom: 8px;
    color: #007bff;
}

/*====详情页P内容模块 ===*/
/* 文章内容区 */
.article-content {
    text-align: justify;
    line-height: 1.5;
    font-size: 16px;
    color: #333;
    word-wrap: break-word;
}

/* NKEditor 引用样式 ke-quote */
.article-content blockquote.ke-quote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f7f8fa;
    border-left: 4px solid #409eff;
    border-radius: 6px;
    color: #555;
    font-style: normal;
}

/* 表格：手机不滚动，宽度100% */
.article-content table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}
.article-content th,
.article-content td {
    border: 1px solid #eee;
    padding: 10px 12px;
    word-break: break-all;
    white-space: normal;
}

/* NKEditor 代码块 */
.article-content pre,
.article-content pre code {
    background: #2d2d2d;
    color: #ccc;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.6;
}

/* 图片自适应 */
.article-content img {
    width: 100%;
    background-color: #eee;
    padding: 0px 40px 40px 40px;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 4px;
}
.article-content img:first-child {
    padding-top: 40px;
}
/* 内容版权声明 */
.copyright-notice {
    margin: 16px 0;
    padding: 16px 12px;
    background: #f8f9fa;
    border-left: 4px solid #3377ff;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}
.copyright-notice strong {
    color: #222;
}

/* =============================================
       富文本全局容器（假设你用在 .article-content 里）
       ============================================= */
    .content {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      font-size: 16px;
      line-height: 1.8;
      color: #333;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    /* ---- 标题 ---- */
    .content h1,
    .content h2,
    .content h3,
    .content h4,
    .content h5,
    .content h6 {
      margin: 1.4em 0 0.6em;
      font-weight: 600;
      line-height: 1.3;
      color: #111;
    }
    .content h1 { font-size: 1.8em; }
    .content h2 { font-size: 1.5em; border-bottom: 1px solid #eee; padding-bottom: 0.3em; }
    .content h3 { font-size: 1.25em; }
    .content h4 { font-size: 1.1em; }
    .content h5 { font-size: 1em; }
    .content h6 { font-size: 0.9em; color: #666; }

    /* ---- 段落 ---- */
    .content p {
      margin: 0.8em 0;
    }

    /* ---- 文本语义 ---- */
    .content b,
    .content strong {
      font-weight: 600;
    }
    .content i,
    .content em {
      font-style: italic;
    }
    .content u {
      text-decoration: underline;
    }
    .content s,
    .content del {
      text-decoration: line-through;
    }
    .content mark {
      background-color: #fff3cd;
      color: #856404;
      padding: 0.1em 0.3em;
      border-radius: 3px;
    }
    .content sub,
    .content sup {
      font-size: 0.75em;
      line-height: 0;
      position: relative;
      vertical-align: baseline;
    }
    .content sup { top: -0.5em; }
    .content sub { bottom: -0.25em; }
    .content small {
      font-size: 0.85em;
      color: #888;
    }
    .content abbr[title] {
      border-bottom: 1px dotted #999;
      cursor: help;
      text-decoration: none;
    }

    /* ---- 链接 ---- */
    .content a {
      color: #2563eb;
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s;
    }
    .content a:hover {
      border-bottom-color: #2563eb;
    }

    /* ---- 列表 ---- */
    .content ul,
    .content ol {
      margin: 0.8em 0;
      padding-left: 2em;
    }
    .content ul {
      list-style-type: disc;
    }
    .content ol {
      list-style-type: decimal;
    }
    .content li {
      margin-bottom: 0.3em;
    }
    /* 嵌套列表 */
    .content ul ul,
    .content ol ol,
    .content ul ol,
    .content ol ul {
      margin: 0.3em 0 0.3em 0;
    }

    /* ---- 引用 ---- */
    .content blockquote {
      margin: 1.2em 0;
      padding: 0.8em 1.2em;
      background: #f7f9fc;
      border-left: 4px solid #2563eb;
      color: #4a5568;
      border-radius: 0 6px 6px 0;
    }
    .content blockquote p {
      margin: 0;
    }
    .content q {
      quotes: "「" "」";
    }
    .content q::before {
      content: open-quote;
    }
    .content q::after {
      content: close-quote;
    }
    .content cite {
      font-style: italic;
      color: #888;
    }

    /* ---- 代码 ---- */
    .content code {
      background: #f0f0f0;
      color: #d63384;
      padding: 0.2em 0.4em;
      border-radius: 4px;
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
      font-size: 0.9em;
    }
    .content pre {
      background: #2d2d2d;
      color: #f8f8f2;
      padding: 1.2em;
      border-radius: 8px;
      overflow-x: auto;
      margin: 1.2em 0;
      line-height: 1.6;
    }
    .content pre code {
      background: none;
      color: inherit;
      padding: 0;
      font-size: inherit;
      border-radius: 0;
    }

    /* ---- 表格 ---- */
    .content table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.2em 0;
      font-size: 0.95em;
    }
    .content th,
    .content td {
      border: 1px solid #e2e8f0;
      padding: 0.6em 0.8em;
      text-align: left;
    }
    .content th {
      background: #f7fafc;
      font-weight: 600;
      color: #2d3748;
    }
    .content tr:nth-child(even) {
      background: #fafbfc;
    }

    /* ---- 图片 ---- */
    .content img {
      max-width: 100%;
      height: auto;
      border-radius: 6px;
      display: block;
      margin: 1.2em auto;
    }
    .content figure {
      margin: 1.2em 0;
      text-align: center;
    }
    .content figcaption {
      font-size: 0.9em;
      color: #888;
      margin-top: 0.5em;
    }

    /* ---- 分割线 ---- */
    .content hr {
      border: none;
      border-top: 1px solid #e2e8f0;
      margin: 2em 0;
    }

    /* ---- 详情折叠 ---- */
    .content details {
      margin: 1em 0;
      padding: 0.8em 1em;
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
    }
    .content summary {
      font-weight: 600;
      cursor: pointer;
      outline: none;
    }
    .content details[open] summary {
      margin-bottom: 0.8em;
    }

    /* ---- 多媒体（按比例撑开） ---- */
    .content audio,
    .content video {
      max-width: 100%;
      display: block;
      margin: 1.2em 0;
      border-radius: 6px;
    }
    .content iframe {
      max-width: 100%;
      aspect-ratio: 16 / 9;
      height: auto;
      border: none;
      border-radius: 6px;
      margin: 1.2em 0;
    }

/*====详情页标签 ===*/
.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.tag {
    padding: 6px 12px;
    background: #edf4ff;
    color: #3377ff;
    border-radius: 8px;
    font-size: 13px;
}
.tag a {
    padding: 6px 12px;
    background: #edf4ff;
    color: #3377ff;
    border-radius: 20px;
    font-size: 13px;
}

/*====链接复制 扫描访问 ===*/
.action-box {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
}
.like, .follow {
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.like {
    background: #fff0f0;
    color: #ff4d4d;
    border: 1px solid #ffd1d1;
}
.follow {
    background: #edf4ff;
    color: #3377ff;
    border: 1px solid #d1e0ff;
}

/*====资源下载 ===*/
.resource-download {
    max-width: 860px;
    margin: 12px auto;
}

.download-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.download-title .icon {
    width: 24px;
    height: 24px;
    fill: #2f80ed;
}

.download-panel {
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.download-item {
    gap: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 8px;
    border-bottom: 1px solid #f3f4f6;
}

.download-item:last-child {
    border-bottom: none;
}

/* --- 核心布局修正 --- */
.download-label {
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    flex: 1;
    gap: 4px;
}

.download-info {
    display: flex;
    gap: 12px;
}

/* --- 样式修正：背景灰色，无边框，长度自适应 --- */
.link-url {
    font-size: 13px;
    color: #6b7280;
    word-break: break-all;
    background-color: #e9ecef;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    flex: 1;
    min-width: 100px;
}

.download-link {
    display: inline-block;
    padding: 8px 18px;
    background: #2f80ed;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.download-link:hover {
    background: #2563eb;
}
.download {
    background: #fbfcff;
    border: 1px solid #e8ebf5;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 40px;
}
.download h3 {
    font-size: 16px;
    margin-bottom: 16px;
}
.down-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.down {
    width: 120px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.baidu {
    background: #2e97ff;
}
.xunlei {
    background: #25c7fe;
}
.kuake {
    background: #19c7a7;
}
/* 保证标签栏和按钮栏在同一行，自动分配空间 */
.copy-btn {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
}
.copy-btn:hover {
    background: #f9fafb;
}
.download-tips {
    margin-top: 12px;
    font-size: 13px;
    color: #9ca3af;
    padding: 0 4px;
}

/*====上一篇下一篇 ===*/
/* 翻页 */
.pager {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.pager a {
    padding: 12px 20px;
    border: 1px solid #e8ebf5;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pager a span {
    font-size: 13px;
    color: #888;
}
.pager a:hover {
    border-color: #3377ff;
    color: #3377ff;
}
.pager a:hover span {
    color: #3377ff;
}

/*====相关列表4 ===*/
.related-title {
    border: 1px solid #eee;
    color: #007bff;
    border-radius: 8px;
    padding: 12px 20px;
    background-color: #fff;
    font-size: 18px;
    font-weight: 600;
}
.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eef2fb;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
}
.related-item:hover {
    border-color: #3377ff;
}
.related-item .pic {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.related-info {
    flex: 1;
}
.related-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.related-info .date {
    font-size: 13px;
    color: #999;
}
.detail-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/*====详情页主容器右 ===*/
.detail-main-right {
    flex: 1;
    width: 300px;
}

/* ==========================search.html================== */
/* ==================== 全局容器 ==================== */
.search-main {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: clamp(0.625rem, 1.73vw, 1.25rem);
    background-color: #fff;
}
/* ==================== 响应式适配 ==================== */
.search-list {
    display: flex;
    flex-direction: column;
}

.search-list ul li {
    gap: clamp(0.5rem, 1.38vw, 0.9375rem);
    padding-top: clamp(0.5rem, 1.38vw, 0.9375rem);
    padding-bottom: clamp(0.5rem, 1.38vw, 0.9375rem);
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #eee;
}
.search-list-left {
    display: flex;
    flex-direction: column;
    flex: 2;
}
.search-list-left2 {
    font-weight: 600;
    font-size: clamp(1rem, 2.7vw, 1.25rem);
}
.list-meta-time a {
    color: #999;
}
.search-list-left p {
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.search-right-img {
    margin: 10px;
    overflow: hidden;
    flex: 1;
    aspect-ratio: 2 / 1;
    border-radius: 8px;
}
.b-lazy {
    border-radius: 8px;
}
.search1 {
    display: flex;
    gap: 15px;
}
.searchleft {
    flex: 3;
}
.searchright {
    flex: 1;
}
/* 列表项 */
.search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #f2f2f2;
    transition: all 0.2s;
    text-decoration: none;
    overflow: hidden;
}
.search-item:hover {
    border-color: #e0e6ed;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* 左侧图片容器 3:4 */
.search-item-pic {
    width: 100px;
    flex-shrink: 0;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f7fa;
}
.search-item-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右侧内容 自动占满剩余宽度 */
.search-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 标题 */
.search-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 摘要 */
.search-item-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 时间 + 类目 */
.search-item-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 12px;
}
.search-item-meta span {
    line-height: 1.2;
}

/* ====================nav===================== */
.navbar a {
    text-decoration: none;
}

/* ==================== 导航条父容器 ==================== */
.navbar {
    width: 100%;
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ==================== 导航条内容容器 ==================== */
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* ==================== Logo 区域 ==================== */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: 30px;
    width: auto;
    vertical-align: middle;
}

/* ==================== PC 端导航菜单 ==================== */
.nav-menu {
    padding: 20px 4px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 4px 20px;
    flex: 1;
    justify-content: flex-end;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}
.nav-menu li a {
    color: #333;
    padding: 4px 8px;
}
.nav-menu li.active a {
    border-radius: 8px;
    background-color: #007bff;
    color: #FFFFFF;
    padding: 4px 8px;
}
.nav-menu > li > a:hover {
    border-radius: 8px;
    background-color: #007bff;
    color: #FFFFFF;
    padding: 4px 8px;
    transition: background-color 0.3s ease;
}

/* ==================== 右侧区域 ==================== */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.mobile-menu-btn {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* 三条横线样式 */
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 1px;
}
/* ==================== 搜索按钮 ==================== */
.search-toggle-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-toggle-btn:hover {
    color: #007bff;
}

.search-toggle-btn img {
    width: 20px;
    height: 20px;
}

/* ==================== 搜索框 ==================== */
.search-box {
    position: absolute;
    top: 60px;
    right: 15px;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 998;
    display: none;
    min-width: 280px;
}

.search-box.active {
    display: block;
}

.search-box form {
    display: flex;
}

.search-box input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}

.search-box input:focus {
    border-color: #007bff;
}

.search-box button {
    height: 36px;
    padding: 0 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.search-box button:hover {
    background-color: #0056b3;
}

/* ==================== 移动端汉堡按钮 ==================== */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
    font-size: 24px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-btn i {
    font-size: 24px;
}

/* ==================== 移动端侧边导航 ==================== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-nav-logo img {
    height: 30px;
    width: auto;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li a.active {
    background-color: #f8f9fa;
    color: #007bff;
    padding-left: 25px;
}

/* ==================== 遮罩层 ==================== */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}

/* =====================footer====================== */
/* ==================== Footer 最外层容器 ==================== */
.footer-outer {
    width: 100%;
    margin-top: 10px;
    background-color: #2c3e50;
    padding: 0 0;
}

/* ==================== Footer 内容容器（1200px 居中） ==================== */
.footer-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==================== Footer 导航链接 ==================== */
.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #ecf0f1;
    font-size: 13px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.footer-nav a:hover {
    color: #3498db;
}

/* 悬停下划线效果 */
.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.footer-nav a:hover::after {
    width: 100%;
}

/* ==================== Footer 备案编号 ==================== */
.footer-record {
    height: 16px;
    display: flex;
    text-align: center;
    white-space: nowrap;
}

.footer-record span a {
    font-size: 13px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #bdc3c7;
}

.footer-record a:hover {
    color: #3498db;
}
.footer-record span {
    display: flex;
    gap: 4px;
    width: 100%;
}
.footer-record span img {
    width: 12px;
    height: 12px;
}
/* ==================== Footer 版本号和版权信息 ==================== */
.footer-version {
    text-align: center;
    color: #95a5a6;
    font-size: 12px;
}

.footer-version a {
    color: #95a5a6;
    transition: color 0.3s ease;
    margin-right: 10px;
}

.footer-version a:hover {
    color: #3498db;
}

.footer-version p {
    margin-top: 5px;
}
.anbei {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("/template/cms/jianyue/images/beian.png");
    background-size: contain;
}