/* ==========================================================
   小清新视频站模板 - 主样式表
   布局参考: 双行头部(logo+搜索+语言 / 分类导航) + 卡片网格
   ========================================================== */

/* ---------- 基础变量 ---------- */
:root {
    --bg: #eef1f5;
    --bg-header: #f8fafc;
    --bg-card: #f8fafc;
    --bg-card-hover: #f0f6ff;
    --bg-input: #f0f2f5;
    --bg-chip: #f0f4f8;
    --line: #e4e9f0;
    --txt: #3a4356;
    --txt-dim: #6b7689;
    --txt-faint: #9aa5b5;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.10);
    --free: #10b981;
    --free-soft: rgba(16, 185, 129, 0.12);
    --danger: #ef4444;
    --radius: 10px;
    --shadow: 0 6px 18px rgba(31, 45, 80, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 15px; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--accent-soft); }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c9d2df; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #aeb9c9; }

/* ---------- 容器 ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================
   头部 - 第一行: logo / 搜索 / 语言
   ========================================================== */
.app-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand img { height: 38px; width: auto; }
.brand .brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--txt);
    line-height: 1.2;
}
.brand .brand-name small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--txt-faint);
    letter-spacing: 0;
}

/* 搜索框 */
.header-search {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 420px;
    background: var(--bg-input);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-form .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: var(--txt-faint);
    flex-shrink: 0;
}
.search-form input {
    flex: 1;
    height: 38px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--txt);
    font-size: 14px;
    padding: 0 4px;
}
.search-form input::placeholder { color: var(--txt-faint); }
.search-form .search-submit {
    height: 38px;
    width: 44px;
    background: transparent;
    border: none;
    color: var(--txt-dim);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-form .search-submit:hover { color: var(--accent); }
.search-form .search-clear {
    display: none;
    height: 38px;
    width: 32px;
    background: transparent;
    border: none;
    color: var(--txt-faint);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.search-form.has-value .search-clear { display: flex; }

/* 语言下拉(纯展示) */
.lang-picker {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--txt-dim);
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}
.lang-picker:hover { color: var(--txt); border-color: var(--accent); }
.lang-picker .flag { font-size: 16px; line-height: 1; }

/* 头部 - 第二行: 导航 */
.nav-bar { border-top: 1px solid #e9edf3; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 46px;
}
.nav-item { position: relative; }
.nav-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 46px;
    padding: 0 18px;
    font-size: 14.5px;
    color: var(--txt-dim);
    white-space: nowrap;
}
.nav-item > a:hover { color: var(--txt); }
.nav-item.active > a { color: var(--accent); }
.nav-item .nav-caret {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}
/* 下拉子菜单(多列, 子分类多时自动换列, 不再拉成一长条) */
.nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    max-width: 520px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
    z-index: 200;
}
.nav-item:hover .nav-sub { display: block; }
.nav-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 2px 10px;
}
.nav-item:hover .nav-sub .nav-sub-grid { display: grid; }
.nav-sub a {
    display: block;
    padding: 8px 14px;
    font-size: 13.5px;
    color: var(--txt-dim);
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-sub a:hover { background: var(--accent-soft); color: var(--accent); }

/* ==========================================================
   内容区
   ========================================================== */
.main-wrap { padding: 26px 0 40px; }

/* 栏目区块 */
.section { margin-bottom: 34px; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
}
.section-title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--accent);
}
.section-title .count-badge {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 1px 10px;
}
.section-more {
    font-size: 13px;
    color: var(--txt-faint);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-more:hover { color: var(--accent); }

/* 排序下拉(分类页) */
.sort-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-picker select {
    background: var(--bg-input);
    border: 1px solid var(--line);
    color: var(--txt-dim);
    border-radius: 8px;
    height: 36px;
    padding: 0 10px;
    outline: none;
    cursor: pointer;
}
.sort-picker select:hover { border-color: var(--accent); color: var(--txt); }

/* ==========================================================
   视频卡片网格
   ========================================================== */
.vod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.vod-card {
    background: var(--bg-card);
    border: 1px solid #e9edf3;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.vod-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(59, 130, 246, 0.35);
}

.vod-card .poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #eef1f6;
    overflow: hidden;
}
.vod-card .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.vod-card:hover .poster img { transform: scale(1.06); }
.vod-card .poster .poster-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--txt-faint);
    font-size: 12px;
}

/* 角标 */
.badge {
    position: absolute;
    z-index: 2;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
    line-height: 1.5;
}
.badge-free {
    top: 8px;
    right: 8px;
    color: var(--free);
    background: var(--free-soft);
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-points {
    top: 8px;
    right: 8px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.4);
}
.badge-hits {
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(2px);
}
.badge-duration {
    bottom: 8px;
    right: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    font-variant-numeric: tabular-nums;
}
.badge svg { width: 12px; height: 12px; }

/* 卡片文字区 */
.vod-card .meta {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.vod-card .title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}
.vod-card .sub {
    font-size: 12px;
    color: var(--txt-faint);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}
.vod-card .sub svg { width: 13px; height: 13px; flex-shrink: 0; }

/* 竖版海报变体(详情页推荐侧栏外可复用) */
.vod-grid--tall .vod-card .poster { aspect-ratio: 3 / 4; }

/* ==========================================================
   播放页 / 详情页
   ========================================================== */
.detail-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--txt-dim);
    font-size: 14px;
    margin-bottom: 14px;
}
.detail-back:hover { color: var(--accent); }
.detail-back svg { width: 18px; height: 18px; }

.detail-title {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.player-box {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.player-box iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}
.player-box.player-169 { aspect-ratio: 16 / 9; }
.player-box.player-43 { aspect-ratio: 4 / 3; }

/* 分集/播放源列表 */
.ep-group { margin-top: 18px; }
.ep-group .ep-head {
    font-size: 14px;
    font-weight: 600;
    color: var(--txt-dim);
    margin-bottom: 10px;
}
.ep-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ep-list a {
    padding: 6px 14px;
    font-size: 13px;
    background: var(--bg-chip);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--txt-dim);
}
.ep-list a:hover { color: var(--accent); border-color: var(--accent); }
.ep-list a.current {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

/* 详情信息 */
.detail-info {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--txt-dim);
    background: var(--bg-chip);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 14px;
}
.info-chip svg { width: 14px; height: 14px; color: var(--txt-faint); }
.info-chip a { color: var(--accent); }

.detail-desc {
    margin-top: 18px;
    font-size: 14px;
    color: var(--txt-dim);
    line-height: 1.9;
    white-space: pre-wrap;
}

/* 侧栏推荐(横向小卡片) */
.side-panel {
    background: var(--bg-card);
    border: 1px solid #e9edf3;
    border-radius: var(--radius);
    padding: 16px;
    position: sticky;
    top: 130px;
}
.side-panel h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}
.side-item {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.side-item:last-child { border-bottom: none; padding-bottom: 0; }
.side-item .side-poster {
    width: 96px;
    height: 64px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef1f6;
}
.side-item .side-poster img { width: 100%; height: 100%; object-fit: cover; }
.side-item .side-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.side-item .side-title {
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.side-item .side-sub {
    font-size: 12px;
    color: var(--txt-faint);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}
.side-item .side-sub svg { width: 12px; height: 12px; }

/* ==========================================================
   搜索页
   ========================================================== */
.search-result-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 19px;
    font-weight: 700;
}
.search-result-head .kw { color: var(--accent); }
.search-result-head .result-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 2px 12px;
}

/* ==========================================================
   分页
   ========================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--txt-dim);
    background: var(--bg-chip);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.pagination a:hover { color: var(--accent); border-color: var(--accent); }
.pagination .current {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 700;
    cursor: default;
}
.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}
.pagination .ellipsis {
    background: transparent;
    border: none;
    color: var(--txt-faint);
}

/* ==========================================================
   页脚
   ========================================================== */
.app-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-header);
    padding: 26px 0 30px;
    margin-top: 20px;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.footer-copyright { font-size: 13px; color: var(--txt-dim); }
.footer-warn {
    font-size: 12.5px;
    color: var(--txt-faint);
    max-width: 720px;
}
.footer-warn em { color: var(--danger); font-style: normal; }
.footer-icp { font-size: 12px; color: var(--txt-faint); }

/* 友情链接 */
.footer-links { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-links-title { font-size: 13px; color: var(--txt-dim); margin-bottom: 10px; display:flex; align-items:center; gap:6px; }
.footer-links-title::before { content:''; width:3px; height:14px; background:var(--accent); border-radius:2px; }
.footer-links-list { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.footer-links-list a { display:inline-block; padding:5px 14px; font-size:12.5px; color:var(--txt-dim); background:var(--bg-card); border:1px solid var(--line); border-radius:20px; transition:all 0.2s ease; }
.footer-links-list a:hover { color:var(--accent); border-color:var(--accent); background:var(--accent-soft); }

/* ==========================================================
   404 / 空状态
   ========================================================== */
.empty-wrap {
    min-height: 52vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}
.empty-code {
    font-size: 96px;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 2px 14px rgba(59, 130, 246, 0.25);
    letter-spacing: 6px;
}
.empty-title { font-size: 22px; font-weight: 700; }
.empty-tip { font-size: 14px; color: var(--txt-dim); }
.empty-btn {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 26px;
    font-size: 14px;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 8px;
}
.empty-btn:hover { background: var(--accent-soft); }

/* ==========================================================
   其他公共组件
   ========================================================== */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 4px 14px;
    font-size: 13px;
    color: var(--txt-dim);
    background: var(--bg-chip);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip.active { color: #ffffff; background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* 返回顶部 */
.back-top {
    position: fixed;
    right: 26px;
    bottom: 30px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-chip);
    border: 1px solid var(--line);
    color: var(--txt-dim);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    box-shadow: var(--shadow);
}
.back-top.show { display: flex; }
.back-top:hover { color: var(--accent); border-color: var(--accent); }
.back-top svg { width: 18px; height: 18px; }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1100px) {
    .vod-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-wrap { grid-template-columns: 1fr 280px; }
}
@media (max-width: 900px) {
    .detail-wrap { grid-template-columns: 1fr; }
    .side-panel { position: static; }
}
@media (max-width: 768px) {
    html { font-size: 14px; }
    .header-top { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 12px; }
    .header-search { order: 3; flex-basis: 100%; justify-content: stretch; }
    .search-form { max-width: none; }
    .lang-picker { display: none; }
    .nav-list { overflow-x: auto; gap: 0; scrollbar-width: none; }
    .nav-list::-webkit-scrollbar { display: none; }
    .nav-item > a { height: 42px; padding: 0 14px; white-space: nowrap; }
    .nav-sub { display: none; position: static; min-width: 100%; max-width: 100%; border: none; border-radius: 0; box-shadow: none; background: #f8fafc; padding: 4px 8px 8px; }
    .nav-item.nav-open .nav-sub { display: block; }
    .nav-sub-grid { grid-template-columns: 1fr; }
    .side-panel { display: none; }
    .vod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .section-title { font-size: 17px; }
    .detail-title { font-size: 18px; }
    .empty-code { font-size: 64px; }
    .main-wrap { padding: 18px 0 30px; }
}
@media (max-width: 420px) {
    .vod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .brand .brand-name { font-size: 17px; }
    .container { padding: 0 12px; }
}
/* 播放源切换 / 上下集 / 播放按钮覆盖层 */
.play-from { display: inline-block; padding: 6px 16px; margin-right: 8px; font-size: 13.5px; color: var(--txt-dim); background: var(--bg-chip); border: 1px solid var(--line); border-radius: 6px; }
.play-from:hover { color: var(--accent); border-color: var(--accent); }
.play-from.current { color: #ffffff; background: var(--accent); border-color: var(--accent); font-weight: 600; }

.play-nav { display: flex; gap: 12px; }
.play-nav-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 20px; font-size: 14px; color: var(--txt-dim); background: var(--bg-chip); border: 1px solid var(--line); border-radius: 8px; }
.play-nav-btn:hover { color: var(--accent); border-color: var(--accent); }

.info-chip-play { cursor: pointer; }
.info-chip-play a { display: inline-flex; align-items: center; gap: 6px; color: #ffffff; background: var(--accent); padding: 6px 18px; border-radius: 999px; font-weight: 600; }
.info-chip-play a:hover { filter: brightness(1.1); color: #ffffff; }

.player-box .play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.35); opacity: 0; transition: opacity 0.2s ease; }
.player-box:hover .play-overlay { opacity: 1; }
.brand-logo-fb {
    width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: #ffffff;
    display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0;
}

/* ==========================================================
   文章模块
   ========================================================== */
.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.art-card {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid #eef2f7;
    border-radius: var(--radius);
    overflow: hidden;
    padding: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.art-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(59, 130, 246, 0.35);
}
.art-card-thumb {
    width: 118px;
    height: 78px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef1f6;
    position: relative;
}
.art-card-thumb img { width:100%; height:100%; object-fit:cover; transition: transform 0.35s ease; }
.art-card:hover .art-card-thumb img { transform: scale(1.06); }
.art-card-thumb .poster-fallback { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--txt-faint); }
.art-thumb-text { background:linear-gradient(135deg,#e3efff 0%,#f2f8ff 100%); display:flex; align-items:center; justify-content:center; }
.art-thumb-label { font-size:13px; font-weight:700; color:var(--accent); letter-spacing:2px; }
.art-card-meta { display:flex; flex-direction:column; gap:6px; min-width:0; }
.art-card-title {
    font-size:14px; font-weight:600; line-height:1.45;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.art-card-sub {
    font-size:12px; color:var(--txt-faint); display:flex; align-items:center; gap:5px; margin-top:auto;
}
.art-card-sub svg { width:13px; height:13px; flex-shrink:0; }

/* 文章正文 */
.art-content { margin-top:22px; }
.art-page { padding-top:6px; }
.art-page-title {
    font-size:17px; font-weight:700; margin:18px 0 12px; padding-left:10px; border-left:3px solid var(--accent);
}
.art-body { font-size:15px; color:var(--txt); line-height:1.95; }
.art-body p { margin:0 0 14px; }
.art-body img { border-radius:8px; margin:14px auto; }
.art-body a { color:var(--accent); text-decoration:underline; }
.art-body h2,.art-body h3,.art-body h4 { margin:18px 0 10px; }
.art-body ul,.art-body ol { padding-left:22px; margin:0 0 14px; }
.art-body blockquote { margin:14px 0; padding:10px 16px; border-left:3px solid var(--line); background:var(--bg-chip); color:var(--txt-dim); border-radius:6px; }

/* 正文分页 */
.art-pager { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.art-pager-item {
    min-width:38px; height:38px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center;
    font-size:14px; color:var(--txt-dim); background:var(--bg-chip); border:1px solid var(--line); border-radius:8px;
}
.art-pager-item:hover { color:var(--accent); border-color:var(--accent); }
.art-pager-item.current { color:#ffffff; background:var(--accent); border-color:var(--accent); font-weight:700; }

@media (max-width:1100px){ .art-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){
    .art-grid{ grid-template-columns:1fr; }
    .art-card{ padding:8px; }
    .art-card-thumb{ width:104px; height:70px; }
}

/* ==========================================================
   移动端: 汉堡按钮 + 左侧抽屉菜单
   ========================================================== */
.menu-toggle {
    display: none;
    position: absolute;
    top: 10px;
    left: 6px;
    z-index: 210;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--txt);
    cursor: pointer;
}
.menu-toggle:hover { background: var(--bg-input); color: var(--accent); }

/* 抽屉遮罩 */
.drawer-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 290;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.drawer-mask.show { display: block; opacity: 1; }

/* 抽屉主体 */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    background: #f8fafc;
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 300;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.drawer.show { transform: translateX(0); }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.drawer-title { font-size: 16px; font-weight: 700; color: var(--txt); }
.drawer-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--txt-dim);
    cursor: pointer;
}
.drawer-close:hover { background: var(--bg-input); color: var(--txt); }

.drawer-list { list-style: none; padding: 8px 0 20px; }
.drawer-item { border-bottom: 1px solid #eef2f7; }
.drawer-item:last-child { border-bottom: none; }
.drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 18px;
    font-size: 15px;
    color: var(--txt-dim);
    transition: color 0.18s ease, background 0.18s ease;
}
.drawer-link:hover { color: var(--txt); background: #f0f5fa; }
.drawer-item.drawer-active > .drawer-link { color: var(--accent); }
.drawer-caret {
    width: 15px;
    height: 15px;
    opacity: 0.7;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.drawer-item.drawer-sub-open > .drawer-link .drawer-caret { transform: rotate(180deg); }

/* 二级分类(手风琴) */
.drawer-sub {
    display: none;
    padding: 2px 0 10px 18px;
    background: #f4f7fb;
}
.drawer-item.drawer-sub-open > .drawer-sub { display: block; }
.drawer-sub-link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--txt-faint);
    border-radius: 6px;
    margin: 1px 8px 1px 0;
}
.drawer-sub-link:hover { color: var(--accent); background: var(--accent-soft); }

@media (max-width: 768px) {
    .app-header { position: relative; }
    .menu-toggle { display: flex; }
    .nav-bar { display: none; }
    .brand { margin-left: 40px; }
}
/* 移动端: 顶级分类页的二级分类快捷框(桌面端不显示) */

/* 文章分类页顶部的全部文章分类框 */
.art-type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.art-type-chip { display: inline-block; padding: 6px 14px; font-size: 13px; color: var(--txt-dim); background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; transition: all 0.2s ease; }
.art-type-chip.active, .art-type-chip:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.type-chips { display: none; }

@media (max-width: 768px) {
    .type-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 14px 0 18px;
    }
    .type-chip {
        display: inline-block;
        padding: 6px 14px;
        font-size: 13px;
        color: var(--txt-dim);
        background: var(--bg-card);
        border: 1px solid var(--line);
        border-radius: 20px;
        transition: all 0.2s ease;
    }
    .type-chip.active, .type-chip:hover {
        color: var(--accent);
        border-color: var(--accent);
        background: var(--accent-soft);
    }
}
