/* ============================================================
   苹果CMS 二开前台 · 深色视频站风格（参考 Ship 风格）
   纯前端写死，无模板切换、无启动遮罩
   ============================================================ */

:root {
    --bg:          #0d1117;
    --bg-soft:     #131922;
    --bg-card:     #161d27;
    --bg-hover:    #1c2432;
    --border:      #232c3a;
    --border-soft: #1c2430;
    --text:        #e3e8ef;
    --text-sub:    #8d97a8;
    --text-dim:    #6b7484;
    --primary:     #3b82f6;
    --primary-dim: #2563eb;
    --gold:        #f5a524;
    --gold-soft:   rgba(245, 165, 36, .14);
    --danger:      #ef4444;
    --success:     #22c55e;
    --shadow:      0 8px 28px rgba(0, 0, 0, .45);
    --radius:      12px;
    --radius-sm:   8px;
    --header-h:    62px;
    --maxw:        1440px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ---------------- 通用容器 ---------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 26px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.muted { color: var(--text-sub); }
.dim { color: var(--text-dim); font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------------- 顶部导航 ---------------- */
.header {
    position: sticky; top: 0; z-index: 60;
    height: var(--header-h);
    background: rgba(19, 25, 34, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}
.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}
.logo {
    font-size: 20px; font-weight: 700; letter-spacing: .5px;
    display: flex; align-items: center; gap: 8px;
}
.logo .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
}
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
    padding: 7px 13px; border-radius: 8px; color: var(--text-sub);
    font-size: 14px; transition: all .2s;
}
.nav a:hover, .nav a.on { color: var(--text); background: var(--bg-hover); }
.nav a.on { color: var(--primary); font-weight: 600; }
.header-search { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-search input {
    width: 220px; height: 36px; padding: 0 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 18px; color: var(--text); outline: none;
    transition: border-color .2s;
}
.header-search input:focus { border-color: var(--primary); }
.header-search button {
    height: 36px; padding: 0 16px; border: none; cursor: pointer;
    background: var(--primary); color: #fff; border-radius: 18px;
    font-size: 14px; transition: background .2s;
}
.header-search button:hover { background: var(--primary-dim); }

/* ---------------- 首页横幅 ---------------- */
.hero {
    position: relative;
    padding: 34px 0 8px;
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 26px;
    align-items: center;
}
.hero-title { font-size: 34px; font-weight: 800; line-height: 1.3; margin: 0 0 10px; }
.hero-title .accent {
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { color: var(--text-sub); font-size: 15px; margin: 0 0 22px; max-width: 560px; }
.hero-btns { display: flex; gap: 10px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 20px; border-radius: 10px; font-size: 14px; cursor: pointer;
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
    transition: all .2s; line-height: 1.4;
}
.btn:hover { background: var(--bg-hover); border-color: var(--text-dim); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dim); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 12px 26px; font-size: 15px; border-radius: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- 区块标题 ---------------- */
.section { margin-top: 30px; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.section-title { font-size: 19px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 9px; }
.section-title::before {
    content: ''; width: 4px; height: 18px; border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), #8b5cf6);
}
.section-more { color: var(--text-dim); font-size: 13px; }
.section-more:hover { color: var(--primary); }

/* ---------------- 视频卡片网格 ---------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}
.vcard {
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    position: relative;
}
.vcard:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    box-shadow: var(--shadow);
}
.vcard .poster {
    position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-soft);
}
.vcard .poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.vcard:hover .poster img { transform: scale(1.06); }
.vcard .poster .badge {
    position: absolute; top: 8px; left: 8px;
    background: rgba(13, 17, 23, .78); color: var(--gold);
    font-size: 12px; padding: 2px 8px; border-radius: 6px;
}
.vcard .poster .score {
    position: absolute; top: 8px; right: 8px;
    background: rgba(13, 17, 23, .78); color: var(--gold);
    font-size: 13px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
}
.vcard .meta { padding: 10px 12px 12px; }
.vcard .name {
    font-size: 14px; font-weight: 600; margin: 0 0 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vcard .sub { font-size: 12px; color: var(--text-dim); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 详情页 ---------------- */
.detail-wrap { padding: 28px 0; }
.detail-top {
    display: grid; grid-template-columns: 220px 1fr; gap: 26px;
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 22px; margin-bottom: 24px;
}
.detail-poster { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3/4; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.detail-info .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
    display: inline-block; padding: 3px 11px; border-radius: 6px;
    background: var(--bg-hover); color: var(--text-sub); font-size: 12px;
    border: 1px solid var(--border-soft);
}
.tag.hot { color: var(--gold); background: var(--gold-soft); border-color: transparent; }
.detail-info .desc { color: var(--text-sub); font-size: 14px; line-height: 1.8; margin: 0 0 16px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-row { display: flex; gap: 22px; margin-bottom: 12px; }
.stat-row .item { text-align: center; }
.stat-row .num { font-size: 18px; font-weight: 700; color: var(--text); }
.stat-row .lbl { font-size: 12px; color: var(--text-dim); }

/* ---------------- 播放页 ---------------- */
.play-wrap { padding: 24px 0; }
.player-box {
    background: #000; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 16/9; position: relative; margin-bottom: 20px;
    border: 1px solid var(--border-soft);
}
.player-box iframe, .player-box video { width: 100%; height: 100%; border: 0; display: block; }
.play-title { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.ep-list {
    display: flex; flex-wrap: wrap; gap: 8px; max-height: 260px; overflow: auto;
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 14px;
}
.ep-list a {
    padding: 6px 14px; border-radius: 7px; font-size: 13px;
    background: var(--bg-hover); color: var(--text-sub);
    transition: all .15s; border: 1px solid transparent;
}
.ep-list a:hover { color: var(--text); background: var(--bg-hover); border-color: var(--border); }
.ep-list a.on { background: var(--primary); color: #fff; }
.play-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.play-tabs a {
    padding: 7px 16px; border-radius: 8px; font-size: 14px;
    background: var(--bg-card); color: var(--text-sub); border: 1px solid var(--border-soft);
}
.play-tabs a.on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------------- 播放页 · 左右两栏（参考 Ship 风格） ---------------- */
.detail-layout {
    display: flex; gap: 22px; align-items: flex-start;
}
.detail-main { flex: 1; min-width: 0; }
.player-shell {
    background: #000; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 16/9; position: relative; margin-bottom: 18px;
    border: 1px solid var(--border-soft);
}
.player-shell iframe, .player-shell video { width: 100%; height: 100%; border: 0; display: block; }
.video-head { margin-bottom: 16px; }
.video-head h1 { font-size: 21px; font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
.video-stats {
    display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
    color: var(--text-sub); font-size: 13.5px;
}
.video-actions { display: flex; gap: 8px; margin-left: auto; }
.act-btn {
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-sub); border-radius: 8px; padding: 7px 14px;
    font-size: 13px; cursor: pointer; transition: all .15s;
}
.act-btn:hover { color: var(--text); border-color: var(--primary); background: var(--bg-hover); }
.act-btn.on { color: var(--gold); border-color: var(--gold); }

.panel {
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
}
.panel-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.desc { color: var(--text-sub); font-size: 14px; line-height: 1.8; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    padding: 4px 12px; border-radius: 20px; font-size: 12.5px;
    background: var(--bg-hover); color: var(--text-sub); border: 1px solid var(--border-soft);
}
.tag.hot { color: var(--gold); border-color: var(--gold-soft); background: var(--gold-soft); }

.detail-side { width: 320px; flex-shrink: 0; }
.side-list { display: flex; flex-direction: column; gap: 4px; }
.side-item {
    display: flex; gap: 12px; padding: 8px; border-radius: 10px;
    transition: background .15s;
}
.side-item:hover { background: var(--bg-hover); }
.side-item .thumb {
    width: 150px; height: 84px; flex-shrink: 0; border-radius: 8px;
    overflow: hidden; position: relative; background: var(--bg-hover);
}
.side-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-item .badge.time {
    position: absolute; right: 5px; bottom: 5px; font-size: 11px;
    background: rgba(0,0,0,.72); color: #fff; padding: 2px 7px; border-radius: 5px;
}
.side-item .meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; }
.side-item .meta .t {
    font-size: 13.5px; color: var(--text); line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.side-item .meta .dim { font-size: 12px; color: var(--text-dim); }

@media (max-width: 1024px) {
    .detail-layout { flex-direction: column; }
    .detail-side { width: 100%; }
    .video-actions { margin-left: 0; }
}
@media (max-width: 640px) {
    .side-item .thumb { width: 120px; height: 68px; }
}


/* ---------------- 列表/搜索页 ---------------- */
.list-wrap { padding: 26px 0; }
.page-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.page-sub { color: var(--text-dim); font-size: 13px; margin: 0 0 18px; }

/* 筛选条 */
.filter-bar {
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px;
    display: flex; flex-direction: column; gap: 10px;
}
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-row .lbl { color: var(--text-dim); font-size: 13px; min-width: 52px; }
.filter-row a {
    padding: 4px 11px; border-radius: 6px; font-size: 13px; color: var(--text-sub);
    transition: all .15s;
}
.filter-row a:hover { color: var(--text); background: var(--bg-hover); }
.filter-row a.on { color: var(--primary); background: var(--primary); color: #fff; }

/* ---------------- 分页 ---------------- */
.paging { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.paging a, .paging span {
    padding: 7px 14px; border-radius: 8px; font-size: 13px;
    background: var(--bg-card); color: var(--text-sub); border: 1px solid var(--border-soft);
}
.paging a:hover { color: var(--text); border-color: var(--border); }
.paging .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.paging .disabled { opacity: .4; pointer-events: none; }

/* ---------------- 底部 ---------------- */
.footer {
    margin-top: 46px; padding: 28px 0 34px;
    border-top: 1px solid var(--border-soft); color: var(--text-dim); font-size: 13px;
}
.footer .container { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer .links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer a:hover { color: var(--text); }

/* ---------------- 空状态 ---------------- */
.empty {
    text-align: center; padding: 60px 0; color: var(--text-dim);
}
.empty .ico { font-size: 42px; margin-bottom: 10px; opacity: .5; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-title { font-size: 26px; }
    .detail-top { grid-template-columns: 150px 1fr; padding: 14px; }
    .header-search input { width: 130px; }
    .nav { display: none; }
}
@media (max-width: 560px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .detail-top { grid-template-columns: 110px 1fr; }
    .detail-info h1 { font-size: 18px; }
}

/* ============================================================
   广告位（后台「广告位管理」配置：开关+图片+跳转链接）
   按主流视频站规范重做（参考爱奇艺/腾讯视频/B站广告位）：
   · 统一组件：.ad-box 容器 / .ad-link 链接 / .ad-tag「广告」标识 / .ad-x 一键关闭
   · 合规（《互联网广告管理办法》第十条）：广告显著标明「广告」、
     一键关闭、不得计时结束才能关闭、不得两次点击关闭
   · 图片 contain 不裁剪、限高；空图/坏图一律不渲染
   ============================================================ */
.ad-box { position: relative; text-align: center; border-radius: 10px; overflow: hidden; }
.ad-box img { display: block; width: 100%; height: 100%; margin: 0 auto; border-radius: 10px; object-fit: cover; }
.ad-link { display: block; }

/* 「广告」标识（左上角；合规：显著标明广告） */
.ad-tag {
    position: absolute; z-index: 2; left: 6px; top: 6px;
    padding: 1px 6px; border-radius: 3px;
    background: rgba(0,0,0,.42); color: rgba(255,255,255,.8);
    font-size: 10px; line-height: 1.7; letter-spacing: 1px;
    pointer-events: none;
}

/* 一键关闭按钮（右上角；桌面 34px，移动端 44px 触控标准） */
.ad-x {
    position: absolute; z-index: 3;
    width: 34px; height: 34px; line-height: 32px; padding: 0;
    border: none; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff; font-size: 19px;
    cursor: pointer; text-align: center;
    transition: background .2s; -webkit-tap-highlight-color: transparent;
}
.ad-x:hover { background: rgba(0,0,0,.9); }
.ad-box .ad-x, .ad-float .ad-x { top: 6px; right: 6px; }

/* 通栏横幅（顶部通栏=导航正下方 / 导航下第二条 / 页脚）：750×100 规范横条 */
.ad-box-top, .ad-box-nav, .ad-box-footer {
    max-width: var(--maxw);
    margin: 12px auto;
    padding: 0 24px;
}
.ad-box-nav img, .ad-box-footer img { height: 64px; object-fit: cover; }

/* 顶部一排 5 个小横幅（导航正下方）：grid 5 列，图片 cover 自动裁剪铺满，高 60px */
.ad-row-top {
    position: relative;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
    max-width: var(--maxw); margin: 10px auto; padding: 0 24px;
}
.ad-row-top .ad-cell { display: block; position: relative; height: 60px; border-radius: 8px; overflow: hidden; }
.ad-row-top .ad-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 左右侧边栏（详情页/播放页，固定悬浮两侧，300×250 中矩形规范） */
.ad-box-side {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 300px; height: 250px; z-index: 55;
}
.ad-box-side img { width: 100%; height: 100%; object-fit: cover; }
.ad-box-side-left { left: 12px; }
.ad-box-side-right { right: 12px; }

/* 悬浮/吸底广告（PC 右下角卡片；移动端转底部通栏条） */
.ad-float {
    position: fixed; right: 16px; bottom: 16px; z-index: 65;
    max-width: 300px;
}
.ad-float img { display: block; max-width: 100%; max-height: 200px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.4); }

/* 弹窗/插屏广告（整屏遮罩；一键立即关闭） */
.ad-popup {
    position: fixed; inset: 0; z-index: 90;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,.65);
}
.ad-popup-box { position: relative; max-width: 92vw; max-height: 88vh; }
.ad-popup-box img { display: block; max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.ad-popup .ad-x { top: -16px; right: -16px; width: 38px; height: 38px; line-height: 36px; }

/* 首页开屏广告（整屏 contain；「跳过广告」始终可点=合规一键关闭，8 秒自动消失） */
.ad-splash {
    position: fixed; inset: 0; z-index: 100;
    display: none; align-items: stretch; justify-content: stretch;
    background: #000;
}
.ad-splash-link { position: absolute; inset: 0; display: block; }
.ad-splash-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ad-splash-skip {
    position: absolute; z-index: 3; top: 15px; right: 15px;
    min-width: 88px; height: 40px; padding: 0 16px;
    border: 1px solid rgba(255,255,255,.34); border-radius: 20px;
    background: rgba(0,0,0,.5); color: #fff;
    font: 14px/1 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ad-splash-tag {
    position: absolute; z-index: 3; left: 15px; bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    padding: 2px 7px; border-radius: 4px;
    background: rgba(0,0,0,.42); color: rgba(255,255,255,.72);
    font-size: 11px; letter-spacing: 1px;
}

@media (max-width: 1360px) {
    .ad-box-side-left, .ad-box-side-right { display: none; }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ad-box-top, .ad-box-nav, .ad-box-footer { padding: 0 12px; margin: 10px auto; }
    .ad-box-nav img, .ad-box-footer img { height: 56px; }
    .ad-row-top { grid-template-columns: repeat(2, 1fr); padding: 0 12px; gap: 6px; }
    .ad-row-top .ad-cell { height: 50px; }
    .ad-x { width: 44px; height: 44px; line-height: 42px; font-size: 24px; }
    .ad-popup .ad-x { top: 6px; right: 6px; width: 44px; height: 44px; line-height: 42px; font-size: 26px; }
    .ad-popup-box img { max-width: 96vw; max-height: 72vh; }
    /* 开屏跳过按钮 44px 触控标准 */
    .ad-splash-skip { top: calc(15px + env(safe-area-inset-top, 0px)); height: 44px; padding: 0 20px; font-size: 15px; }
    /* 悬浮广告移动端转底部通栏条（750×110 横条，最高 74px） */
    .ad-float { left: 0; right: 0; bottom: 0; max-width: none; width: 100%; }
    .ad-float a { display: block; text-align: center; background: var(--bg-soft, #161b22); }
    .ad-float img { max-height: 74px; border-radius: 0; box-shadow: none; }
    .ad-float .ad-x { top: 50%; right: 8px; transform: translateY(-50%); width: 44px; height: 44px; line-height: 42px; font-size: 26px; }
}
/* ============================================================
   文章（art）列表 / 详情页
   ============================================================ */
.art-list { display: flex; flex-direction: column; gap: 14px; }
.art-item {
    display: flex; gap: 16px; padding: 14px;
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius); transition: all .15s;
}
.art-item:hover { border-color: var(--border); transform: translateY(-1px); }
.art-thumb {
    width: 168px; height: 100px; flex-shrink: 0; border-radius: 8px; overflow: hidden;
    background: var(--bg-hover); display: flex; align-items: center; justify-content: center;
}
.art-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-thumb-ph { font-size: 30px; opacity: .45; }
.art-meta { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.art-title {
    font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.art-desc {
    font-size: 13px; color: var(--text-sub); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-sub { display: flex; gap: 14px; align-items: center; color: var(--text-dim); font-size: 12.5px; }
.art-sub .tag { font-size: 12px; }

.art-detail { padding: 26px 0; }
.art-detail-title { font-size: 22px; font-weight: 700; margin: 0 0 10px; line-height: 1.45; }
.art-detail-info {
    display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: 13px;
    padding-bottom: 14px; border-bottom: 1px solid var(--border-soft); margin-bottom: 18px;
}
.art-detail-content {
    font-size: 15px; line-height: 1.9; color: var(--text);
    word-break: break-word;
}
.art-detail-content img { max-width: 100%; border-radius: 8px; }
.art-detail-content a { color: var(--primary); }

.thumb-ph {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; opacity: .45;
}

@media (max-width: 640px) {
    .art-item { flex-direction: column; }
    .art-thumb { width: 100%; height: 140px; }
}

/* ============================================================
   头部登录入口
   ============================================================ */
.header-user { display: flex; align-items: center; gap: 8px; margin-left: 14px; flex-shrink: 0; }
.header-user .u-link {
    font-size: 13px; color: var(--text-sub); padding: 5px 12px;
    border: 1px solid var(--border-soft); border-radius: 7px; white-space: nowrap;
    transition: all .15s;
}
.header-user .u-link:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
@media (max-width: 900px) {
    .header-user { margin-left: 8px; }
    .header-user .u-link { padding: 4px 8px; font-size: 12px; }
}

/* ============================================================
   登录 / 注册 / 用户中心
   ============================================================ */
.auth-wrap { display: flex; justify-content: center; padding: 60px 0 80px; }
.auth-box {
    width: 100%; max-width: 400px;
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 32px 30px;
}
.auth-title { font-size: 20px; font-weight: 700; text-align: center; margin: 0 0 24px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 7px; }
.auth-field input {
    width: 100%; height: 40px; padding: 0 12px;
    background: var(--bg); border: 1px solid var(--border-soft);
    border-radius: 8px; color: var(--text); font-size: 14px; box-sizing: border-box;
}
.auth-field input:focus { outline: none; border-color: var(--primary); }
.auth-verify-row { display: flex; gap: 10px; align-items: center; }
.auth-verify-row input { flex: 1; }
.auth-btn {
    width: 100%; height: 42px; margin-top: 6px;
    background: var(--primary); color: #fff; border: none;
    border-radius: 8px; font-size: 15px; cursor: pointer; transition: opacity .15s;
}
.auth-btn:hover { opacity: .88; }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-tip { text-align: center; margin: 18px 0 0; font-size: 13px; color: var(--text-dim); }
.auth-tip a { color: var(--primary); }
.uc-info { display: flex; flex-direction: column; gap: 12px; padding: 6px 0 14px; }
.uc-info p { font-size: 14px; color: var(--text); }
.uc-info .lbl {
    display: inline-block; width: 64px; color: var(--text-dim); font-size: 13px;
}

/* ============================================================
   评论
   ============================================================ */
.comment-box { font-size: 13.5px; }
.comment_form { margin-bottom: 22px; }
.comment_content {
    width: 100%; min-height: 84px; padding: 10px 12px; box-sizing: border-box;
    background: var(--bg); border: 1px solid var(--border-soft);
    border-radius: 8px; color: var(--text); font-size: 13.5px; resize: vertical;
    font-family: inherit; line-height: 1.6;
}
.comment_content:focus { outline: none; border-color: var(--primary); }
.comment-verify-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.comment-verify-input {
    height: 36px; padding: 0 10px; width: 140px;
    background: var(--bg); border: 1px solid var(--border-soft);
    border-radius: 6px; color: var(--text); font-size: 13px;
}
.comment-actions {
    display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px;
}
.comment_remaining { color: var(--text-dim); font-size: 12px; }
.comment_submit {
    background: var(--primary); color: #fff; border: none;
    border-radius: 7px; padding: 8px 22px; font-size: 13.5px; cursor: pointer;
}
.comment_submit:hover { opacity: .88; }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item {
    background: var(--bg); border: 1px solid var(--border-soft);
    border-radius: 10px; padding: 13px 15px;
}
.comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-user { font-weight: 600; color: var(--text); font-size: 14px; }
.comment-time { color: var(--text-dim); font-size: 12px; }
.comment-body { color: var(--text-sub); line-height: 1.7; word-break: break-word; }
.comment-ops { display: flex; gap: 14px; margin-top: 9px; }
.comment-ops a { color: var(--text-dim); font-size: 12.5px; }
.comment-ops a:hover { color: var(--primary); }
.comment-empty { text-align: center; color: var(--text-dim); padding: 26px 0; }
.comment-box .paging { margin-top: 22px; }
