/* ============================================================
   Star 模板 · 内页样式
   ------------------------------------------------------------
   分类页 / 排行榜 / 搜索页 / 详情页 / 文章页 / 静态页共用。
   骨架与首页完全一致（左轨 + 主区 + 右栏），这里的增量只有：
     · 内页容器（没有 hero，顶部要给固定顶栏留位置）
     · 页面标题带 + 面包屑
     · 服务端分页条
     · 排行榜、详情页、正文、表单
   ============================================================ */

/* ---------------- 一、内页容器 ---------------- */
.st-wrap--page {
    margin-top: 96px;
    padding-bottom: 48px;
}

.st-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* ---------------- 二、标题带 ---------------- */
.st-page-head {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    padding: 18px 20px 16px;
    box-shadow: var(--shadow-sm);
}

.st-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.st-crumbs a { color: var(--text-muted); text-decoration: none; }
.st-crumbs a:hover { color: var(--theme-color); }
.st-crumbs i { font-size: 13px; opacity: .55; }
.st-crumbs span[aria-current] { color: var(--text-color); }

.st-page-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.st-page-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.st-page-title i { font-size: 22px; color: var(--theme-color); }

.st-page-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.st-page-meta-item {
    position: relative;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
/* 多项统计之间加竖线：「85 个标签  2,846 个站点」不留分隔会读成一串数字 */
.st-page-meta-item + .st-page-meta-item { padding-left: 17px; }
.st-page-meta-item + .st-page-meta-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 12px;
    transform: translateY(-50%);
    background: var(--line-color);
}
.st-page-meta-item b {
    font-weight: 400;
    font-size: 16px;
    color: var(--text-strong);
    margin-right: 4px;
}

.st-page-sub {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ---------------- 三、筛选胶囊（子分类 / 榜单 tab 共用） ---------------- */
.st-chipbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 0;
}
.st-chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-color);
    background: var(--main-bg-color);
    color: var(--text-color);
    font-size: 13px;
    line-height: 30px;
    text-decoration: none;
    transition: all .16s var(--ease);
    cursor: pointer;
}
.st-chip:hover { border-color: var(--theme-color); color: var(--theme-color); }
.st-chip.on,
.st-chip[aria-current="page"] {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}
.st-chip .st-chip-num {
    margin-left: 6px;
    font-size: 11px;
    opacity: .7;
}

/* ---------------- 四、服务端分页条 ---------------- */
.st-pagebar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0 4px;
}
.st-pagebar-btn,
.st-pagebar-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-color);
    background: var(--main-bg-color);
    color: var(--text-color);
    font-size: 13px;
    text-decoration: none;
    transition: all .16s var(--ease);
}
.st-pagebar-btn i { font-size: 18px; }
.st-pagebar-btn:hover,
.st-pagebar-num:hover { border-color: var(--theme-color); color: var(--theme-color); }
.st-pagebar-num.is-on {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}
.st-pagebar-btn.is-off {
    opacity: .4;
    cursor: not-allowed;
}
.st-pagebar-gap {
    color: var(--text-muted);
    padding: 0 2px;
}
.st-pagebar-total {
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------------- 五、空状态 ---------------- */
.st-empty {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    padding: 56px 20px;
    text-align: center;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}
.st-empty i { font-size: 44px; opacity: .35; display: block; margin-bottom: 10px; }
.st-empty p { margin: 0; font-size: 14px; }
.st-empty .st-empty-hint { margin-top: 6px; font-size: 12px; color: var(--text-xs); }

/* ---------------- 六、排行榜 ----------------
   2026-11-06：原来是一列 46px 的细行，20 条排下来像流水账、整页偏"虚"。
   改成「前三领奖台 + 两列大卡」：每项有自己的边框、图标、分类和热度条，
   视觉重量上去了，扫读时也更容易停住。 */
.st-rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 前三名 */
.st-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.st-podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 14px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-color);
    background: var(--main-bg-color);
    text-decoration: none;
    overflow: hidden;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.st-podium-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--theme-color);
}
.st-podium-card.is-rank1 { background: linear-gradient(165deg, #fff8e8, #fff2d4); border-color: #f0d49a; }
.st-podium-card.is-rank2 { background: linear-gradient(165deg, #f9fafc, #eef1f6); border-color: #dbe1ea; }
.st-podium-card.is-rank3 { background: linear-gradient(165deg, #fdf5ef, #f8e8db); border-color: #e7c8ad; }

/* 名次做成左上角的小挂坠 */
.st-podium-medal {
    position: absolute;
    top: 0;
    left: 10px;
    width: 28px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    color: #fff;
    font-variant-numeric: tabular-nums;
    background: #b9c0cb;
}
.is-rank1 .st-podium-medal { background: linear-gradient(180deg, #f6c96e, #e8a33d); }
.is-rank2 .st-podium-medal { background: linear-gradient(180deg, #b6bfcc, #98a2b3); }
.is-rank3 .st-podium-medal { background: linear-gradient(180deg, #d49a72, #c0805a); }

.st-podium-ico {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
}
.st-podium-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    width: 100%;
}
.st-podium-name {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.45;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-podium-cat {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-podium-clicks {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.is-rank1 .st-podium-clicks { color: #b8791a; }
.is-rank2 .st-podium-clicks { color: #6b7686; }
.is-rank3 .st-podium-clicks { color: #9c5f3a; }

/* 第 4 名起：两列大卡 */
.st-rank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.st-rank-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 13px 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-color);
    background: var(--main-bg-color);
    text-decoration: none;
    color: var(--text-color);
    overflow: hidden;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.st-rank-card:hover { border-color: var(--theme-color); box-shadow: var(--shadow-sm); }

.st-rank-no {
    flex: 0 0 24px;
    font-size: 15px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.3px;
}
.st-rank-ico {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line-color);
}
.st-rank-body { min-width: 0; flex: 1 1 auto; }
.st-rank-name {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-rank-desc {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-rank-clicks {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* 底部热度条：宽度 = 相对本榜第一名的百分比 */
.st-podium-bar,
.st-rank-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--pct, 0);
    height: 3px;
    background: var(--theme-color);
    border-radius: 0 3px 0 0;
    opacity: .45;
    transition: opacity .16s var(--ease);
}
.st-podium-card:hover .st-podium-bar,
.st-rank-card:hover .st-rank-bar { opacity: .9; }
.is-rank1 .st-podium-bar { background: #e8a33d; }
.is-rank2 .st-podium-bar { background: #98a2b3; }
.is-rank3 .st-podium-bar { background: #c0805a; }

/* ---------------- 七、暗色适配 ---------------- */
html[data-theme="dark"] .st-page-head,
html[data-theme="dark"] .st-empty,
html[data-theme="dark"] .st-rank-list { box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
html[data-theme="dark"] .st-rank-ico { background: #2a2d33; }
html[data-theme="dark"] .st-chip { background: var(--muted-bg); border-color: var(--line-strong); }
html[data-theme="dark"] .st-pagebar-btn,
html[data-theme="dark"] .st-pagebar-num { background: var(--muted-bg); border-color: var(--line-strong); }

/* ---------------- 八、响应式 ---------------- */
@media (max-width: 1024px) {
    .st-page-title { font-size: 20px; }
    .st-page-meta { display: none; }
}

@media (max-width: 768px) {
    .st-wrap--page { margin-top: 76px; }
    .st-page-head { padding: 14px 14px 12px; }
    .st-page-title { font-size: 18px; }
    .st-page-sub { font-size: 12px; }
    .st-chipbar { gap: 6px; }
    .st-chip { height: 30px; padding: 0 12px; font-size: 12px; }
    .st-rank-item { padding: 8px 6px; gap: 10px; }
    .st-pagebar-btn,
    .st-pagebar-num { min-width: 30px; height: 30px; }
    .st-pagebar-total { display: none; }
}

/* ============================================================
   九、详情页
   ============================================================ */
.st-detail-hero {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.st-detail-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.st-detail-media {
    position: relative;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-color);
}
.st-detail-media img {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.st-detail-blur {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(8px) saturate(140%);
    opacity: .5;
}

.st-detail-info { min-width: 0; flex: 1 1 auto; }

.st-detail-name {
    margin: 2px 0 6px;
    font-size: 24px;
    line-height: 1.3;
    color: var(--text-strong);
}

.st-detail-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.st-detail-domain {
    font-size: 12px;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--muted-bg);
}
.st-detail-cat {
    font-size: 12px;
    color: var(--theme-color);
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--theme-soft);
    text-decoration: none;
}
.st-detail-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted);
    display: -webkit-box;
    /* 只留一行摘要；完整描述在下面的「网站介绍」里，两处不重复整段 */
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.st-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    position: relative;
}

.st-detail-visit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 22px;
    border-radius: var(--radius-sm);
    background: var(--theme-color);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: filter .16s var(--ease);
}
.st-detail-visit:hover { filter: brightness(1.06); }
.st-detail-visit i { font-size: 17px; }

.st-detail-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-color);
    background: var(--main-bg-color);
    color: var(--text-color);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all .16s var(--ease);
}
.st-detail-ghost:hover { border-color: var(--theme-color); color: var(--theme-color); }
.st-detail-ghost i { font-size: 16px; }

/* 二维码气泡 */
.st-site-qr { position: relative; }
.st-qr-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    /* 要压过下面的相关标签 / 更新时间 / 广告卡，20 在部分层级上下文里会被吃掉 */
    z-index: 60;
    width: 184px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: var(--main-bg-color);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line-color);
    text-align: center;
}
.st-qr-panel[hidden] { display: none; }
.st-qr-code {
    width: 148px;
    height: 148px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.st-qr-code img,
.st-qr-code canvas { display: block; }
.st-qr-loading { font-size: 12px; color: #93959a; }
.st-qr-tip { margin: 0; font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.st-qr-link { font-size: 11px; word-break: break-all; padding: 6px; color: #2c3038; }

.st-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line-color);
    font-size: 12px;
    color: var(--text-muted);
}
.st-detail-meta b { font-weight: 400; color: var(--text-strong); font-size: 14px; }
.st-detail-badge {
    padding: 1px 7px;
    border-radius: 4px;
    background: var(--theme-soft);
    color: var(--theme-color);
    font-size: 11px;
}

/* 权重徽章 */
.st-weight-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}
.st-weight-label { color: var(--text-muted); }
.st-weight {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--muted-bg);
}
.st-weight b { font-weight: 400; color: var(--text-muted); font-size: 11px; }
.st-weight i {
    font-style: normal;
    font-size: 12px;
    color: var(--text-color);
    min-width: 12px;
    text-align: center;
}
.st-weight i.is-on { color: var(--theme-color); }
.st-weight-link { color: var(--text-muted); text-decoration: none; }
.st-weight-link:hover { color: var(--theme-color); }

/* 网站介绍 */
.st-detail-intro {
    padding: 4px 2px 2px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--text-color);
    word-break: break-word;
}
.st-detail-intro.is-empty { color: var(--text-muted); }

/* 7 天趋势 */
.st-trend {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    height: 150px;
    padding: 8px 4px 0;
}
.st-trend-col {
    flex: 1 1 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}
.st-trend-bar {
    width: 60%;
    max-width: 32px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--theme-color), rgba(241, 64, 75, .45));
    transition: height .3s var(--ease);
}
.st-trend-num { font-size: 11px; color: var(--text-muted); font-style: normal; font-weight: 400; }
.st-trend-date { font-size: 11px; color: var(--text-xs); font-style: normal; }

/* 相关推荐：3 列 */
.st-grid--3 .st-site {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

/* ============================================================
   十、文章
   ============================================================ */
.st-article {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
}
.st-article-head { margin-bottom: 16px; }
.st-article-cat {
    display: inline-block;
    font-size: 12px;
    color: var(--theme-color);
    background: var(--theme-soft);
    padding: 2px 9px;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 10px;
}
.st-article-title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.4;
    color: var(--text-strong);
    word-break: break-word;
}
.st-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
}
.st-article-meta span { display: inline-flex; align-items: center; gap: 3px; }
.st-article-meta i { font-size: 14px; }

/*
 * 封面
 *
 * 原来是 width:100% + height:auto：遇到 1:1 的方图（本站 AI 插图多是 1024×1024）
 * 就铺成 913×913，一整屏都是图，正文被推到第二屏开外（站长截图指出的问题）。
 *
 * 现在按图片自身比例分两种（core.js 读 naturalWidth/Height 打 is-tall）：
 *   横图（截图类）：整宽显示，height:auto，超过 420 就从底部裁，顶部信息保住
 *   方图 / 竖图：不裁不拉，整张缩到 340 高的框里居中，两侧留底色
 * 一刀切成 340 横幅会把 wikiHow 那种截图顶部的标题裁掉半行，所以分开处理。
 */
.st-article-cover {
    display: flex;
    justify-content: center;
    margin: 0 0 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--muted-bg);
}
.st-article-cover img {
    display: block;
    width: 100%;
    height: auto;
    /* 913 宽下 16:9 是 514 高，超出的从底部裁；object-position 默认 center 会把顶部也切掉 */
    max-height: 420px;
    object-fit: cover;
    object-position: center top;
}
/* 方图 / 竖图：不裁不拉，容器收成图片本身那么大，居中摆放
   （原来容器撑满 913 宽，图片 340 居中后两侧各留 286 灰底，像块抹布） */
.st-article-cover.is-tall {
    height: 400px;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.st-article-cover.is-tall img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (max-width: 768px) {
    .st-article-cover img { max-height: 240px; }
    .st-article-cover.is-tall { height: 230px; }
}

/* 正文排版 */
.st-prose {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-color);
    word-break: break-word;
}
.st-prose > *:first-child { margin-top: 0; }
.st-prose h2 {
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-strong);
    margin: 28px 0 12px;
    padding-left: 10px;
    border-left: 3px solid var(--theme-color);
}
.st-prose h3 {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-strong);
    margin: 22px 0 10px;
}
.st-prose p { margin: 0 0 14px; }
.st-prose ul, .st-prose ol { margin: 0 0 14px; padding-left: 22px; }
.st-prose li { margin-bottom: 6px; }
.st-prose a { color: var(--theme-color); text-decoration: none; }
.st-prose a:hover { text-decoration: underline; }
.st-prose img {
    max-width: 100%;
    /* width:auto 很关键：编辑器给的 width="1200" 是表现属性，
       没有 width:auto 的话 max-width:100% 会把 800 宽的原图拉到 913，看着发虚。 */
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
    margin: 14px auto;
}
.st-prose blockquote {
    margin: 14px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--line-strong);
    background: var(--muted-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
}
.st-prose code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--muted-bg);
    font-size: 13px;
}
.st-prose pre {
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--muted-bg);
    overflow-x: auto;
    margin: 0 0 14px;
}
.st-prose pre code { background: none; padding: 0; }
.st-prose table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 13px; }
.st-prose th, .st-prose td { border: 1px solid var(--line-color); padding: 7px 10px; text-align: left; }
.st-prose th { background: var(--muted-bg); color: var(--text-strong); font-weight: 400; }

/* 上下篇 */
.st-article-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.st-article-nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: var(--main-radius);
    background: var(--main-bg-color);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    min-width: 0;
    transition: box-shadow .16s var(--ease);
}
.st-article-nav-item:hover { box-shadow: var(--shadow-md); }
.st-article-nav-item.is-next { text-align: right; align-items: flex-end; }
.st-article-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-muted);
}
.st-article-nav-title {
    font-size: 13px;
    color: var(--text-strong);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章列表 */
.st-article-list { display: flex; flex-direction: column; }
.st-article-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line-color);
    text-decoration: none;
}
.st-article-row:last-child { border-bottom: 0; }
.st-article-row:hover .st-article-title { color: var(--theme-color); }
.st-article-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 66px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--muted-bg);
}
.st-article-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.st-article-row .st-article-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-strong);
    transition: color .16s var(--ease);
}
.st-article-desc {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.st-article-row .st-article-meta { gap: 12px; font-size: 11px; }

/* ============================================================
   十一、搜索
   ============================================================ */
.st-searchbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    height: 46px;
    padding: 0 6px 0 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-color);
    background: var(--muted-bg);
    transition: border-color .16s var(--ease);
}
.st-searchbar:focus-within { border-color: var(--theme-color); background: var(--main-bg-color); }
.st-searchbar > i { font-size: 19px; color: var(--text-muted); flex: 0 0 auto; }
.st-searchbar input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: var(--text-color);
    outline: none;
}
.st-searchbar input::placeholder { color: var(--text-muted); }
.st-searchbar button {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--theme-color);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.st-searchbar button:hover { filter: brightness(1.06); }

/* ============================================================
   十二、提示条
   ============================================================ */
/* 榜单说明条：周期榜没有浏览日志时提示「暂按累计点击排序」。
   刻意不复用 .st-notice —— 那个 class 在 star-widgets.css 里是站点公告时间轴，
   两边同名会打架（竖线 + 提示框样式互相污染）。 */
.st-rank-note {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--muted-bg);
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.75;
}

.st-notice {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--theme-soft);
    border: 1px solid rgba(241, 64, 75, .25);
    color: var(--theme-color);
    font-size: 13px;
}

/* ============================================================
   十三、关于 / 广告 / 404
   ============================================================ */
.st-about-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 2px;
}
.st-about-stats > div {
    text-align: center;
    padding: 10px 6px;
    border-radius: var(--radius-sm);
    background: var(--muted-bg);
}
.st-about-stats b {
    display: block;
    font-size: 22px;
    font-weight: 400;
    color: var(--text-strong);
    line-height: 1.3;
}
.st-about-stats span { font-size: 12px; color: var(--text-muted); }
.st-about-prose h3 { margin-top: 22px; }

.st-contact-list { display: flex; flex-direction: column; }
.st-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line-color);
    font-size: 13px;
}
.st-contact-row:last-child { border-bottom: 0; }
.st-contact-label { flex: 0 0 76px; color: var(--text-muted); font-size: 12px; }
.st-contact-row a { color: var(--text-color); text-decoration: none; }
.st-contact-row a:hover { color: var(--theme-color); }

/* 联系方式 · 可复制的号码（QQ）
   视觉上像一个链接，实际是 button —— 点击复制比"点开 QQ 客户端"更通用，
   手机上没有装 QQ 的人也能拿到号码。 */
.st-contact-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
    border-radius: 4px;
}
.st-contact-copy:hover .st-contact-value { color: var(--theme-color); }
.st-contact-copy:focus-visible { outline: 2px solid var(--theme-color); outline-offset: 3px; }
.st-contact-tip {
    font-size: 11px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    background: rgba(15, 23, 42, .05);
    transition: color .15s, background .15s;
}
.st-contact-copy:hover .st-contact-tip { color: var(--theme-color); background: rgba(15, 23, 42, .08); }
.st-contact-copy.is-copied .st-contact-tip { color: #15803d; background: rgba(21, 128, 61, .1); }
.st-contact-copy.is-failed .st-contact-tip { color: #b91c1c; background: rgba(185, 28, 28, .1); }
html[data-theme="dark"] .st-contact-tip { background: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .st-contact-copy:hover .st-contact-tip { background: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .st-contact-copy.is-copied .st-contact-tip { color: #4ade80; background: rgba(74, 222, 128, .14); }
html[data-theme="dark"] .st-contact-copy.is-failed .st-contact-tip { color: #fca5a5; background: rgba(252, 165, 165, .14); }

.st-ad-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.st-ad-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-color);
    background: var(--muted-bg);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.st-ad-tag {
    align-self: flex-start;
    font-size: 11px;
    color: var(--theme-color);
    background: var(--theme-soft);
    padding: 1px 8px;
    border-radius: 4px;
}
.st-ad-card h3 { margin: 2px 0 0; font-size: 15px; color: var(--text-strong); font-weight: 400; }
.st-ad-card p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--text-muted); }
.st-ad-price {
    margin-top: 4px;
    font-size: 14px;
    color: var(--text-strong);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.st-ad-price span { font-size: 11px; color: var(--text-muted); }

.st-ad-partners { display: flex; flex-wrap: wrap; gap: 10px; }
.st-ad-partner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--muted-bg);
    font-size: 13px;
    color: var(--text-strong);
}
.st-ad-partner em { font-style: normal; font-size: 11px; color: var(--text-muted); }
.st-ad-partner.is-empty { border: 1px dashed var(--line-strong); background: transparent; color: var(--text-muted); }

.st-steps { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.9; color: var(--text-color); }
.st-steps li { margin-bottom: 6px; }
.st-steps b { font-weight: 400; color: var(--text-strong); margin-right: 6px; }
.st-ad-cta { display: flex; align-items: center; gap: 10px; margin-top: 16px; }

.st-404 {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    padding: 48px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.st-404-code {
    font-size: 72px;
    line-height: 1;
    color: var(--theme-color);
    opacity: .18;
    letter-spacing: 4px;
}
.st-404 h1 { margin: 8px 0 6px; font-size: 22px; color: var(--text-strong); font-weight: 400; }
.st-404 p { margin: 0 auto 18px; max-width: 480px; font-size: 13px; line-height: 1.8; color: var(--text-muted); }
.st-404-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }

/* 面板标题区放筛选胶囊时不要被挤断 */
.st-panel-head .st-chipbar {
    margin-left: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 60%;
}
.st-panel-head .st-chipbar::-webkit-scrollbar { display: none; }

/* ============================================================
   十四、内页暗色与响应式
   ============================================================ */
html[data-theme="dark"] .st-detail-hero,
html[data-theme="dark"] .st-article,
html[data-theme="dark"] .st-404,
html[data-theme="dark"] .st-article-nav-item { box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
html[data-theme="dark"] .st-detail-media { background: #2a2d33; border-color: var(--line-strong); }
html[data-theme="dark"] .st-searchbar { background: var(--muted-bg); border-color: var(--line-strong); }
html[data-theme="dark"] .st-searchbar:focus-within { background: #1a1c20; }
html[data-theme="dark"] .st-qr-code { background: #f5f6f7; }
html[data-theme="dark"] .st-ad-card { border-color: var(--line-strong); }
html[data-theme="dark"] .st-trend-bar { background: linear-gradient(180deg, var(--theme-color), rgba(241, 64, 75, .3)); }

@media (max-width: 1024px) {
    .st-ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-article-title { font-size: 22px; }
}

@media (max-width: 768px) {
    .st-detail-hero { padding: 14px; }
    .st-detail-main { gap: 12px; }
    .st-detail-media { flex-basis: 60px; width: 60px; height: 60px; border-radius: 13px; }
    .st-detail-media img { width: 52px; height: 52px; }
    .st-detail-name { font-size: 19px; }
    .st-detail-desc { -webkit-line-clamp: 3; }
    .st-detail-actions { gap: 8px; margin-top: 12px; }
    .st-detail-visit,
    .st-detail-ghost { height: 36px; padding: 0 14px; font-size: 13px; }
    .st-detail-meta { gap: 10px; }
    .st-qr-panel { left: auto; right: 0; }

    .st-article { padding: 16px 14px; }
    .st-article-title { font-size: 19px; }
    .st-prose { font-size: 14px; line-height: 1.85; }
    .st-prose h2 { font-size: 17px; }
    .st-article-nav { grid-template-columns: 1fr; }
    .st-article-nav-item.is-next { text-align: left; align-items: flex-start; }
    .st-article-thumb { flex-basis: 76px; width: 76px; height: 56px; }

    .st-grid--3 .st-site { flex: 0 0 100%; max-width: 100%; }
    .st-trend { height: 110px; gap: 4px; }
    .st-trend-num { display: none; }

    .st-about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-ad-grid { grid-template-columns: 1fr; }
    .st-ad-cta { flex-wrap: wrap; }
    .st-panel-head .st-chipbar { max-width: 100%; margin-left: 0; width: 100%; }
    .st-404 { padding: 32px 14px; }
    .st-404-code { font-size: 56px; }
    .st-404 h1 { font-size: 18px; }
}

/* 趋势图里 0 次的那天用浅色，避免看起来像有数据 */
.st-trend-bar.is-zero { background: var(--line-strong); }
html[data-theme="dark"] .st-trend-bar.is-zero { background: var(--line-color); }

/* 权重徽章：标签和数值之间留一点气口 */
.st-weight b { margin-right: 2px; }

/* 榜单面板用 display:flex，会盖掉 [hidden] 的 UA 样式，必须显式关掉 */
.st-rank-list[hidden] { display: none; }

/* ============================================================
   十五、网站地图
   ============================================================ */
.st-map-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 2px 0 0;
}
.st-map-item {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--line-color);
    border-radius: 8px;
    background: var(--muted-bg);
    transition: border-color .16s var(--ease);
}
.st-map-item:hover { border-color: var(--theme-color); }
.st-map-name {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-strong);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.st-map-item:hover .st-map-name { color: var(--theme-color); }
.st-map-desc {
    display: block;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.st-map-count {
    margin-left: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}
.st-map-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 0 0;
}
.st-map-jump a {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-color);
    background: var(--main-bg-color);
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all .16s var(--ease);
}
.st-map-jump a:hover { border-color: var(--theme-color); color: var(--theme-color); }

@media (max-width: 1024px) {
    .st-map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .st-map-grid { grid-template-columns: 1fr; }
}

/* 排行榜 · 暗色 */
html[data-theme="dark"] .st-podium-card { border-color: var(--line-strong); }
/*
 * 前三名的底色：原来是整块深棕/深蓝渐变，在暗背景上看着像脏掉的卡纸。
 * 改成「中性卡面 + 顶部一层淡色光晕」，名次靠挂坠和描边表达，不靠整片染色。
 */
html[data-theme="dark"] .st-podium-card.is-rank1 {
    background:
        radial-gradient(130% 82% at 50% -14%, rgba(232, 163, 61, .22), transparent 68%),
        var(--main-bg-color);
    border-color: rgba(232, 163, 61, .38);
}
html[data-theme="dark"] .st-podium-card.is-rank2 {
    background:
        radial-gradient(130% 82% at 50% -14%, rgba(152, 162, 179, .18), transparent 68%),
        var(--main-bg-color);
    border-color: rgba(152, 162, 179, .34);
}
html[data-theme="dark"] .st-podium-card.is-rank3 {
    background:
        radial-gradient(130% 82% at 50% -14%, rgba(192, 128, 90, .22), transparent 68%),
        var(--main-bg-color);
    border-color: rgba(192, 128, 90, .38);
}
html[data-theme="dark"] .st-podium-ico { background: #2a2d33; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
html[data-theme="dark"] .st-rank-card { border-color: var(--line-strong); }
html[data-theme="dark"] .st-rank-ico { background: #2a2d33; border-color: var(--line-strong); }
html[data-theme="dark"] .is-rank1 .st-podium-clicks { color: #dfb166; }
html[data-theme="dark"] .is-rank2 .st-podium-clicks { color: #a9b3c2; }
html[data-theme="dark"] .is-rank3 .st-podium-clicks { color: #cb9270; }

/* 排行榜 · 窄屏：领奖台改横排，网格改单列 */
@media (max-width: 640px) {
    .st-podium { grid-template-columns: 1fr; gap: 8px; }
    .st-podium-card {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: var(--radius-lg);
    }
    .st-podium-medal {
        position: static;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 13px;
    }
    .st-podium-ico { width: 44px; height: 44px; border-radius: 12px; }
    .st-podium-body { align-items: flex-start; gap: 1px; }
    .st-podium-name { font-size: 15px; }
    .st-podium-clicks { margin-top: 1px; }
    .st-rank-grid { grid-template-columns: 1fr; gap: 8px; }
    .st-rank-card { min-height: 68px; padding: 11px 12px; gap: 10px; }
    .st-rank-ico { flex-basis: 36px; width: 36px; height: 36px; border-radius: 9px; }
}

/* 窄屏：榜单标题与胶囊挤在一行时，标题会被压成竖排（"榜/单"两行）。
   让 panel 头允许换行，胶囊整行落到下一行。 */
@media (max-width: 640px) {
    .st-panel-head { flex-wrap: wrap; height: auto; min-height: 36px; row-gap: 8px; }
    .st-panel-title { flex: 0 0 auto; white-space: nowrap; }
    .st-panel-head .st-chipbar { width: 100%; max-width: 100%; margin-left: 0; }
}

/* ============================================================
   十六、文章卡片（文章列表 / 文章分类）
   原来是一列 96×66 缩略图 + 单行摘要的细行，20 条像索引目录。
   改成两列卡片：缩略图撑满卡高、标题两行、摘要两行、底部元信息成行。
   ============================================================ */
.st-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.st-post-card {
    display: flex;
    /* 图 92、文字块 88，中心对齐后上下留白均匀 */
    align-items: center;
    gap: 12px;
    padding: 12px;
    min-width: 0;
    /* 92 的图 + 上下 12 内边距：所有卡片同高，两列才对得齐 */
    min-height: 116px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-color);
    background: var(--main-bg-color);
    text-decoration: none;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.st-post-card:hover { border-color: var(--theme-color); box-shadow: var(--shadow-sm); }

/* 固定 128×92：之前用 align-self:stretch 让图跟着卡片长高，
   18 条标题长短不一，图被拉成一条竖片，比例全乱。 */
.st-post-media {
    flex: 0 0 128px;
    width: 128px;
    height: 92px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--muted-bg);
}
.st-post-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-post-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}
.st-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-strong);
    transition: color .16s var(--ease);
}
.st-post-card:hover .st-post-title { color: var(--theme-color); }
.st-post-desc {
    display: -webkit-box;
    /* 一行就够：标题已经把事说清楚了，两行摘要会把卡片撑高、元信息被挤下去 */
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}
.st-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 2px;
    font-size: 11.5px;
    color: var(--text-muted);
}
.st-post-cat {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--theme-soft);
    color: var(--theme-color);
    font-size: 11px;
    line-height: 1.5;
}
.st-post-views {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.st-post-views i { font-size: 13px; }

html[data-theme="dark"] .st-post-card { border-color: var(--line-strong); }
html[data-theme="dark"] .st-post-media { background: #2a2d33; }

@media (max-width: 900px) {
    .st-post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .st-post-card { padding: 10px; gap: 10px; }
    .st-post-media { flex-basis: 104px; width: 104px; height: 76px; }
    .st-post-title { font-size: 14px; }
    .st-post-card { min-height: 100px; }
}

/* ---- 广告位分布（advertise 页的可视化版式图，2026-11-06）----
   目的：客户不用靠脑补，直接看到广告会长在页面的哪一块。
   骨架用中性灰块模拟内容，只有真实广告位用主题色/灰色区分状态。 */
.st-admap-hint { font-size: 12px; color: var(--text-muted); }

.st-admap { margin-top: 12px; }

.st-admap-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.st-admap-tabs button {
    padding: 5px 12px;
    font-size: 12px;
    color: var(--text-color);
    background: var(--muted-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all .15s;
}

.st-admap-tabs button:hover { color: var(--theme-color); }

.st-admap-tabs button.is-on {
    color: var(--theme-color);
    background: var(--theme-soft);
    border-color: var(--theme-color);
}

.st-admap-stage {
    padding: 14px;
    background: var(--muted-bg);
    border-radius: var(--radius-lg);
}

.st-admap-pane { display: none; }
.st-admap-pane.is-on { display: block; }

.st-admap-win {
    max-width: 620px;
    margin: 0 auto;
    background: var(--main-bg-color);
    border: 1px solid var(--line-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.st-admap-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 10px;
    background: #f2f4f8;
    border-bottom: 1px solid #e5e9f0;
    font-size: 10px;
    color: var(--text-xs);
}

.st-admap-bar i { width: 6px; height: 6px; border-radius: 50%; background: #dfe3e9; }
.st-admap-bar span { margin-left: 6px; }

.st-admap-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 24px;
    padding: 0 10px;
    border-bottom: 1px solid var(--line-color);
}

.st-admap-nav::before {
    content: "";
    width: 34px;
    height: 8px;
    border-radius: 3px;
    background: var(--theme-color);
    opacity: .55;
}

.st-admap-nav::after {
    content: "";
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: repeating-linear-gradient(90deg, #eef0f4 0 22px, transparent 22px 32px);
}

.st-admap-body {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 92px;
    gap: 8px;
    padding: 10px;
}

.st-admap-rail { display: flex; flex-direction: column; gap: 6px; }
.st-admap-rail u { display: block; height: 12px; border-radius: 3px; background: #e7ebf2; }

.st-admap-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.st-admap-side { display: flex; flex-direction: column; gap: 6px; }
.st-admap-card { height: 30px; border-radius: 4px; background: #edf0f6; }
.st-admap-side-title { height: 6px; width: 46px; border-radius: 3px; background: #dfe4ec; }
.st-admap-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.st-admap-chips u { display: block; height: 14px; border-radius: 3px; background: #edf0f6; }

.st-admap-search {
    height: 22px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 10px;
    color: var(--text-xs);
    background: #f3f5f9;
    border: 1px solid #e5e9f0;
    border-radius: 5px;
}

.st-admap-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.st-admap-cards i { display: block; height: 18px; border-radius: 3px; background: #eaeef5; }

.st-admap-lines { display: flex; flex-direction: column; gap: 5px; }
.st-admap-lines i { display: block; height: 7px; border-radius: 3px; background: #edf0f6; }
.st-admap-lines i:nth-child(2n) { width: 82%; }

.st-admap-crumb { height: 7px; width: 34%; border-radius: 3px; background: #e4e9f0; }
.st-admap-title { height: 10px; width: 56%; border-radius: 3px; background: #dfe5ee; }
.st-admap-hero { height: 26px; border-radius: 5px; background: #edf0f6; }

.st-admap-grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.st-admap-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }

/* 广告位本体：金色虚线=可投放在这套红色主题里改成主题色虚线 */
.st-admap-slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10.5px;
    line-height: 1.2;
    overflow: hidden;
    text-align: center;
}

.st-admap-slot b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-admap-slot span { font-size: 9.5px; opacity: .75; white-space: nowrap; }

.st-admap-slot em {
    font-style: normal;
    font-size: 9px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: #fff;
    line-height: 1.5;
    flex: 0 0 auto;
}

.st-admap-slot.is-vacant {
    color: var(--theme-color);
    background: var(--theme-soft);
    border: 1px dashed var(--theme-color);
}

/* 右栏赞助伙伴：没有固定素材尺寸，单独给个高度，别用 aspect-ratio 压成一条线 */
.st-admap-slot--side {
    flex-direction: column;
    gap: 1px;
    height: 40px;
    padding: 4px 4px;
    font-size: 10px;
}

.st-admap-slot--side b { font-size: 10.5px; }

.st-admap-slot.is-taken {
    color: var(--text-muted);
    background: #eef1f5;
    border: 1px solid #d9dfe8;
}

.st-admap-tip {
    margin: 10px 0 0;
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.st-admap-tip .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 2px;
}

.st-admap-tip .dot.is-vacant { background: var(--theme-soft); border: 1px dashed var(--theme-color); }
.st-admap-tip .dot.is-taken { background: #f1f3f6; border: 1px solid var(--line-strong); }

@media (max-width: 640px) {
    .st-admap-body { grid-template-columns: 24px minmax(0, 1fr); padding: 8px; }
    .st-admap-side { display: none; }
    .st-admap-slot span { display: none; }
    .st-admap-slot { font-size: 10px; min-height: 26px; }
}

/* ============================================================
   详情页补充模块（2026-11-07）
   对齐 eeenav 详情页：网站截图 / 相关标签 / 收藏点赞 / 介绍与 FAQ 双 tab
   ============================================================ */

/* ---------- 顶部网站截图 ---------- */
.st-shot {
    margin: 0 0 14px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--muted-bg);
    border: 1px solid var(--line-color);
}
.st-shot a { display: block; line-height: 0; }
.st-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: top center;
    transition: transform .4s var(--ease);
}
.st-shot a:hover img { transform: scale(1.015); }

/* 没截图时的占位：16:9 比例 + 图标模糊背景，保证这个位置不空 */
.st-shot.is-empty { aspect-ratio: 16 / 9; }
.st-shot-fallback {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: 180px;
    overflow: hidden;
}
.st-shot-blur {
    position: absolute;
    inset: -10%;
    background-position: center;
    background-size: cover;
    filter: blur(26px) saturate(1.5);
    opacity: .55;
}
.st-shot-ico {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .14);
}
.st-shot-ico img { width: 72px; height: 72px; object-fit: contain; }
.st-shot-note {
    position: relative;
    font-style: normal;
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------- 相关标签 ---------- */
.st-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12.5px;
}
.st-detail-tags-label { color: var(--text-muted); }
.st-detail-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: var(--muted-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: background-color .16s var(--ease), color .16s var(--ease);
}
.st-detail-tag:hover { background: var(--theme-color); color: #fff; }

/* ---------- 收藏 / 点赞 操作组 ---------- */
.st-detail-acts {
    display: contents;
}
.st-detail-acts .st-detail-ghost[aria-pressed="true"] {
    border-color: var(--theme-color);
    color: var(--theme-color);
    background: color-mix(in srgb, var(--theme-color) 8%, var(--main-bg-color));
}
.st-detail-acts .st-detail-ghost:disabled { opacity: .6; cursor: default; }
.st-detail-count {
    font-weight: 600;
    font-size: 12px;
    margin-left: 2px;
    opacity: .85;
}
/* 点赞成功时按钮轻微弹一下 */
@keyframes stLikePop {
    0% { transform: scale(1); }
    45% { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.st-detail-acts .st-detail-ghost.is-pop { animation: stLikePop .32s var(--ease); }

/* ---------- 介绍 / 常见问题 分段切换 ---------- */
.st-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: var(--radius-sm);
    background: var(--muted-bg);
    gap: 2px;
}
.st-seg-btn {
    height: 26px;
    padding: 0 12px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12.5px;
    cursor: pointer;
    transition: background-color .16s var(--ease), color .16s var(--ease);
}
.st-seg-btn:hover { color: var(--text-strong); }
.st-seg-btn.is-on {
    background: var(--main-bg-color);
    color: var(--text-strong);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

/* ---------- 常见问题 ---------- */
.st-faq { margin: 0; }
.st-faq dt {
    position: relative;
    padding-left: 18px;
    margin-top: 14px;
    font-weight: 600;
    color: var(--text-strong);
    line-height: 1.7;
}
.st-faq dt:first-child { margin-top: 0; }
.st-faq dt::before {
    content: 'Q';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--theme-color);
}
.st-faq dd {
    margin: 4px 0 0 18px;
    color: var(--text-color);
    line-height: 1.8;
    word-break: break-word;
}

@media (max-width: 768px) {
    .st-shot img { max-height: 220px; }
    .st-detail-tags { font-size: 12px; }
    .st-detail-acts { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
}

/* ============================================================
   详情页 · 对齐 eeenav 真实 DOM（2026-11-07）
   依据：保存的 Redian.me 详情页，逐块比对以下差异
     · 图标 60px（原 72px）
     · 截图预览右上/右下角浮一个"打开网站"胶囊按钮
     · 操作条：收藏 / 点赞（带数字）/ 手机查看 / 反馈 四点一组
     · 相关标签带文件夹图标
     · 元信息行：更新时间 / 浏览量 / 评论 / 点赞
   ============================================================ */

/* 图标尺寸对齐 eeenav 的 60px */
.st-detail-media {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
}
.st-detail-media img { width: 56px; height: 56px; }

/* ---------- 截图预览 + 浮动打开按钮 ---------- */
.st-shot { position: relative; }
.st-shot-open {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--theme-color);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    transition: filter .16s var(--ease), transform .16s var(--ease);
}
.st-shot-open:hover { filter: brightness(1.07); transform: translateY(-1px); }
.st-shot-open i { font-size: 15px; }

/* ---------- 操作条：四个按钮等宽一组 ---------- */
.st-detail-acts {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.st-detail-acts .st-detail-ghost {
    height: 36px;
    padding: 0 14px;
    font-size: 12.5px;
    gap: 5px;
}
.st-detail-acts .st-detail-count {
    display: inline-block;
    min-width: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--muted-bg);
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    color: var(--text-muted);
}
.st-detail-acts .st-detail-ghost[aria-pressed="true"] .st-detail-count {
    background: var(--theme-color);
    color: #fff;
}

/* ---------- 相关标签：文件夹图标 ---------- */
.st-detail-tag i { font-size: 13px; margin-right: 3px; opacity: .8; }

/* ---------- 元信息行：图标 + 数值 ---------- */
.st-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.st-detail-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.st-detail-meta i { font-size: 14px; opacity: .75; }
.st-detail-meta b { font-weight: 600; color: var(--text-strong); font-size: 13px; }

@media (max-width: 768px) {
    .st-shot-open { right: 10px; bottom: 10px; height: 30px; padding: 0 14px; font-size: 12px; }
    .st-detail-acts { width: 100%; }
    .st-detail-acts .st-detail-ghost { flex: 1 1 calc(50% - 4px); justify-content: center; }
}

/* ---------- 报错 / 投诉弹窗 ---------- */
.st-fb {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.st-fb[hidden] { display: none; }
.st-fb-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(3px);
}
.st-fb-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--main-bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 22px 22px 18px;
}
.st-fb-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.st-fb-x:hover { background: var(--muted-bg); color: var(--text-strong); }
.st-fb-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-strong);
}
.st-fb-sub {
    margin: 0 0 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}
.st-fb-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.st-fb-type {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-color);
    background: var(--main-bg-color);
    color: var(--text-muted);
    font-size: 12.5px;
    cursor: pointer;
    transition: all .16s var(--ease);
}
.st-fb-type:hover { border-color: var(--theme-color); color: var(--theme-color); }
.st-fb-type.is-on {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
    font-weight: 600;
}
.st-fb-text,
.st-fb-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-color);
    background: var(--main-bg-color);
    outline: none;
    transition: border-color .16s var(--ease);
}
.st-fb-text { resize: vertical; min-height: 90px; line-height: 1.7; margin-bottom: 8px; }
.st-fb-input { height: 38px; margin-bottom: 12px; }
.st-fb-text:focus,
.st-fb-input:focus { border-color: var(--theme-color); }
.st-fb-slider { margin-bottom: 10px; }
.st-fb-msg {
    font-size: 12.5px;
    line-height: 1.6;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--muted-bg);
    color: var(--text-color);
    margin-bottom: 10px;
}
.st-fb-msg.is-error { color: #d13b3b; background: rgba(209, 59, 59, .08); }
.st-fb-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.st-fb-foot .st-detail-visit:disabled {
    opacity: .5;
    cursor: not-allowed;
    filter: none;
}
@media (max-width: 480px) {
    .st-fb-card { padding: 18px 16px 14px; }
    .st-fb-foot { flex-direction: column-reverse; }
    .st-fb-foot .st-detail-visit,
    .st-fb-foot .st-detail-ghost { width: 100%; justify-content: center; }
}
