/* 快帮帮聊天助手 · 官网首页样式 */
:root {
    --bg: #f6fbf9;
    --ink: #152421;
    --muted: #5f716c;
    --brand: #0f9d8f;
    --brand-dark: #0b7f74;
    --brand-soft: #e5f6f2;
    --line: #dfece8;
    --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* 粘性页脚：整页按列布局撑满一屏，主内容区占满剩余高度，页脚钉在底部；
   内容不足一屏时中间留白撑开，页脚不会跟着内容缩上来。仅作用于走 siteHead 的前台页面 */
body.site-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.site-page main { flex: 1 0 auto; }
body.site-page .footer { flex: 0 0 auto; }

a { color: inherit; text-decoration: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 251, 249, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(223, 236, 232, .8);
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 11px 28px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

/* 顶栏内的品牌区：清掉后台侧栏 .brand 带来的内边距，避免顶栏被撑高 */
.site-header .brand { padding: 0; }

.logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
}

.site-nav a { transition: color .15s; }
.site-nav a:hover { color: var(--brand-dark); }

.site-nav .nav-cta {
    padding: 5px 15px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}
.site-nav .nav-cta:hover { background: var(--brand-dark); color: #fff; }

/* 注册：浅底次按钮，柔和不抢登录主按钮；与登录按钮同圆角同尺寸 */
.site-nav .nav-register {
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.site-nav .nav-register:hover { background: #d5efe9; color: var(--brand-dark); }

/* 已登录会员名：深色实心，进会员中心 */
.site-nav .nav-user { background: var(--brand-dark); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 带官网顶栏的登录/注册页：顶栏通铺整宽；卡片按浏览器整屏高度居中（中心对齐视口中点） */
.login-body.with-site-header { position: relative; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; }
.login-body.with-site-header .site-header { flex: 0 0 auto; }
.login-body.with-site-header .login-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; max-width: 360px; margin: 0; }

.hero {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 28px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    /* 左右两栏顶部对齐：左侧标签与右侧截图顶边齐平 */
    align-items: start;
}

/* 首屏淡绿色光晕，烘托主视觉，不抢内容 */
.hero::before {
    content: "";
    position: absolute;
    inset: -40px 0 auto;
    height: 480px;
    background:
        radial-gradient(520px 320px at 18% 18%, rgba(15, 157, 143, .12), transparent 70%),
        radial-gradient(460px 300px at 88% 30%, rgba(15, 157, 143, .08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-text, .hero-visual { position: relative; z-index: 1; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: var(--brand-dark);
    font-size: 12.5px;
    font-weight: 600;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(36px, 4.8vw, 58px);
    line-height: 1.18;
    letter-spacing: -1px;
    font-weight: 700;
}

.hero h1 em {
    font-style: normal;
    color: var(--brand-dark);
    white-space: nowrap;
}

.hero p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

/* 段落内重点补充说明：主题色加粗，独占一行突出免费口径 */
.hero .hero-free {
    display: inline-block;
    margin-top: 10px;
    color: var(--brand-dark);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
.hero-actions .btn-primary {
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 15px;
}
.hero-actions .btn-ghost { padding: 13px 24px; border-radius: 12px; font-size: 15px; }

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all .18s;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 157, 143, .18);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }

.btn-ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
}
.btn-ghost:hover { border-color: #b9d8d1; background: #fcfffe; }

.hero .hero-note {
    margin-top: 22px;
    color: #8a9b97;
    font-size: 12px;
    line-height: 1.6;
}
/* 第二行备注与首行贴近，避免被首行的上边距撑开 */
.hero .hero-note + .hero-note { margin-top: 4px; }

.hero-visual {
    position: relative;
}

/* banner 右侧真实客户端界面截图 */
.hero-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px rgba(21, 70, 61, .14);
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 28px;
}

.section-head {
    max-width: 680px;
    margin-bottom: 34px;
}
.section-kicker {
    display: inline-block;
    padding: 6px 14px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 999px;
}
.section-head h2 {
    margin: 10px 0 12px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.3;
    letter-spacing: -.5px;
}
.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* 功能卡片：白底微渐变 + 柔和阴影，悬浮上浮并加深品牌色投影 */
.feature-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 2px 10px rgba(21, 70, 61, .05);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: #b9d8d1;
    box-shadow: 0 20px 48px rgba(15, 157, 143, .13);
}
.feature-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: -.2px;
}
.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.scene-strip {
    max-width: 1180px;
    margin: 0 auto 32px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
/* 场景卡片：与功能卡片同一套悬浮语言——微渐变底 + 柔和阴影，hover 上浮加深投影 */
.scene {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 2px 10px rgba(21, 70, 61, .05);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.scene:hover {
    transform: translateY(-4px);
    border-color: #b9d8d1;
    box-shadow: 0 20px 48px rgba(15, 157, 143, .13);
}
.scene b { display: block; font-size: 15px; margin-bottom: 6px; }
.scene span { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* 使用演示：一行左右两张动图（电脑端 / 手机端），GIF 就绪后同名替换 */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.demo-item { margin: 0; }
.demo-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(21, 70, 61, .05);
    overflow: hidden;
}
.demo-placeholder {
    color: var(--muted);
    font-size: 13.5px;
    text-align: center;
    padding: 24px;
}
/* GIF 加载成功后隐藏占位提示 */
.demo-frame.has-gif .demo-placeholder { display: none; }
.demo-gif {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    border-radius: 12px;
}
/* 手机端竖图：限宽限高并居中，不撑满横框、不撑高卡片（限高已扣除框上下内边距 32px） */
.demo-item--phone .demo-gif {
    width: auto;
    max-width: 260px;
    max-height: 268px;
    margin: 0 auto;
}
.demo-label { margin: 14px 4px 0; }
.demo-label b { display: block; font-size: 15px; margin-bottom: 4px; }
.demo-label span { color: var(--muted); font-size: 13px; line-height: 1.7; }
/* 手机端卡片：二维码默认不占位，悬停演示框时以遮罩浮层形式浮现 */
.demo-qr {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at 50% 38%, rgba(15, 157, 143, .30) 0%, rgba(21, 36, 33, .66) 72%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.97);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.demo-frame:hover .demo-qr,
.demo-frame:focus-within .demo-qr {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
/* 浮层内承托白卡：二维码与文字收进卡片，避免直接压在遮罩上 */
.demo-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(21, 36, 33, .08);
}
.demo-qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
}
.demo-qr-box img, .demo-qr-box canvas, .demo-qr-box svg { display: block; }
.demo-qr-link { color: var(--brand-dark); font-size: 13px; font-weight: 500; text-decoration: none; }
.demo-qr-link:hover { text-decoration: underline; }

/* 支持吸附软件宫格 */
#apps {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 28px 8px;
}
.app-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px 16px;
}
.app-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.app-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(21, 36, 33, .06);
}
/* 本地品牌图标格：品牌图标居中置于白卡内 */
.app-logo-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}
.app-name {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* 末尾「更多」占位格：浅底虚线描边，与平台卡片区分 */
.app-logo-more {
    background: rgba(15, 157, 143, .08);
    color: var(--brand-dark);
    border: 1px dashed var(--line);
    box-shadow: none;
    font-size: 26px;
    font-weight: 600;
}

.download {
    max-width: 1180px;
    margin: 40px auto 80px;
    padding: 0 28px;
}
.download-inner {
    border-radius: 18px;
    padding: 42px 44px;
    background: linear-gradient(120deg, #d8f0ea, #e9f6f2);
    border: 1px solid var(--line);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.download-text { flex: 1 1 380px; }
.download-text h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.3;
}
.download-sub {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
}
.download-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.download-meta li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 14px;
}
.dm-label {
    flex: 0 0 74px;
    padding-top: 1px;
    color: var(--muted);
    font-size: 13px;
}
.dm-value { color: var(--ink); }
.dl-notes { white-space: pre-line; line-height: 1.6; }
.download-side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.download-side .dl-btn { min-width: 188px; }
.download-side .dl-btn.is-disabled { opacity: .5; pointer-events: none; }
.dl-tip { color: var(--muted); font-size: 12.5px; }

.footer {
    border-top: 1px solid var(--line);
    background: #fbfefd;
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: #8a9b97;
    font-size: 12.5px;
}
.footer-icp {
    color: #8a9b97;
    text-decoration: none;
}
.footer-icp:hover { color: var(--brand, #12a98a); }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .site-nav { gap: 16px; }
    .site-nav a:not(.nav-cta) { display: none; }
    .hero { grid-template-columns: 1fr; padding-top: 52px; gap: 34px; }
    .feature-grid, .scene-strip, .demo-grid { grid-template-columns: 1fr; }
    .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .download-inner { padding: 32px 26px; }
}

@media (max-width: 520px) {
    .site-header-inner { padding: 14px 18px; }
    .hero, .section, .scene-strip, .download, #apps { padding-left: 18px; padding-right: 18px; }
    .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
    .hero h1 { font-size: 36px; }
    /* 触屏无 hover：二维码恢复为卡片下方静态展示 */
    .demo-qr {
        position: static;
        inset: auto;
        background: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 14px 4px 0;
    }
    .demo-qr-card { background: none; border: none; box-shadow: none; padding: 0; gap: 10px; }
    .demo-qr-box { border: 1px solid var(--line); }
    .demo-qr-link { color: var(--brand-dark); }
}

/* ---------------- 公共 logo / 导航高亮 ---------------- */
.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
/* 前台顶栏品牌 logo：清掉 admin.css 后台侧栏给 .brand .logo-img 套的深色方块底/边框/阴影/padding，
   保持透明气泡，和首页一致；后台深色侧栏不在 .site-header 内，不受影响。 */
.site-header .brand .logo-img {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
}
.site-nav a.on { color: var(--brand-dark); font-weight: 600; }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 600;
}

/* ---------------- 空状态 ---------------- */
.empty-box {
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 40px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* ---------------- 套餐对比页（档位卡片） ---------------- */
/* 顶部与导航间距收紧，口径与帮助中心一致 */
.compare-page { padding-top: 32px; }
.cmp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.cmp-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 16px 40px rgba(21, 70, 61, .06);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .18s, box-shadow .18s;
}
.cmp-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(21, 70, 61, .1); }
/* 登录态卡片整体为链接：去掉默认下划线与蓝色，继承卡片配色 */
a.cmp-card { text-decoration: none; color: inherit; cursor: pointer; }
/* 免费版：浅灰底 + 灰描边，与付费档拉开 */
.cmp-card.is-free { background: #f6f8f7; border-color: #e7ecea; }
/* 主推档：品牌描边、浅绿底、阴影加强 */
.cmp-card.is-featured { border-color: var(--brand); background: #f3faf8; box-shadow: 0 20px 46px rgba(15, 157, 143, .16); }
.cmp-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 14px; border-radius: 999px; letter-spacing: 1px; white-space: nowrap;
}
.cmp-card-head { padding: 6px 0 20px; border-bottom: 1px solid #eef5f2; text-align: center; }
.cmp-card-name { margin: 0 0 16px; font-size: 18px; font-weight: 700; color: var(--ink); text-align: center; }
.cmp-stats { display: flex; }
.cmp-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cmp-stat + .cmp-stat { border-left: 1px solid #eef5f2; padding-left: 16px; }
.cmp-stat-num { font-size: 20px; font-weight: 700; color: var(--brand-dark); line-height: 1.1; }
/* 不支持项的占位符（— / 无）：灰色弱化，不与有效数字同级 */
.cmp-stat-num.is-off { color: #c3d2cd; font-weight: 600; font-size: 18px; }
.cmp-stat-label { font-size: 12px; color: var(--muted); }
.cmp-card-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.cmp-card-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); }
.cmp-card-list li + li { border-top: 1px solid #f1f5f3; padding-top: 13px; }
.cmp-yes { color: var(--brand); font-weight: 700; font-size: 15px; width: 18px; text-align: center; flex: 0 0 18px; }
.cmp-no { color: #c3d2cd; font-size: 15px; width: 18px; text-align: center; flex: 0 0 18px; }
/* 卡片底部定位短句：贴卡片底部居中，与清单分隔 */
.cmp-card-tag { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #eef5f2; text-align: center; font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .cmp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cmp-grid { grid-template-columns: 1fr; } }

.cmp-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.note-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(21, 70, 61, .05);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.note-card:hover {
    transform: translateY(-4px);
    border-color: #b9d8d1;
    box-shadow: 0 20px 48px rgba(15, 157, 143, .13);
}
/* 图标徽章：品牌绿浅底 + 深绿线性图标 */
.note-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.note-icon svg { width: 22px; height: 22px; }
.note-card h3 { margin: 0 0 8px; font-size: 15.5px; }
.note-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ---------------- 帮助中心 ---------------- */
/* 帮助页顶部与导航的间距收紧（栏目页 / 文章详情页共用） */
.help-page { padding-top: 32px; }
/* 帮助中心双栏：左侧分类侧栏，右侧文章条目流 */
.help-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}
.help-main { display: flex; flex-direction: column; }
.help-entry {
    display: block;
    padding: 20px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.help-entry:first-child { padding-top: 4px; }
.help-entry:last-child { border-bottom: none; }
.help-entry-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}
.help-entry-head h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
    color: #1c2b27;
}
.help-entry:hover .help-entry-head h3 { color: var(--brand-dark); }
.help-entry-date { color: #9aaba6; font-size: 12px; white-space: nowrap; }
/* 标题与置顶标签同行排列，标题可收缩换行，标签不被挤压 */
.help-entry-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.help-entry-title h3 { flex: 1 1 auto; min-width: 0; }
/* 置顶标签：浅底方角、偏矮，区别于胶囊形分类标签 */
.tag-top {
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-radius: 4px;
    padding: 1px 8px;
    font-size: 11px;
    white-space: nowrap;
}
.help-entry-summary {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 列表分页条：上一页 / 页码 / 下一页，居中排列 */
.help-list-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}
.pager-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    text-decoration: none;
    transition: border-color .18s, box-shadow .18s;
}
.pager-btn:hover { border-color: #b9d8d1; box-shadow: 0 6px 16px rgba(21, 70, 61, .08); }
.pager-btn.is-disabled { color: #9aaba6; background: #f7faf9; pointer-events: none; }
.pager-numbers { display: flex; gap: 6px; }
.pager-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}
.pager-num:hover { color: var(--brand-dark); background: var(--brand-soft); }
.pager-num.is-current { background: var(--brand); color: #fff; font-weight: 700; }
/* 分类侧栏 / 推荐卡片：轻量白底浅边框，标题不再用深色大块 */
.help-side {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px 0;
    position: sticky;
    top: 20px;
}
.help-side-title {
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 12px 10px;
    margin: 0 10px;
    border-bottom: 1px solid var(--line);
}
.help-side-list { list-style: none; margin: 0; padding: 6px 0; }
.help-side-list a {
    display: block;
    margin: 2px 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #33443f;
    font-size: 14px;
    text-decoration: none;
}
.help-side-list a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.help-side-list a.active {
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--brand);
}
@media (max-width: 900px) {
    .help-layout { grid-template-columns: 1fr; gap: 22px; }
    .help-side { position: static; }
}

.help-detail {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px 32px;
}
.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--brand-dark); }
.help-detail .panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.help-title { margin: 0; font-size: 26px; line-height: 1.35; }
.help-meta { display: flex; gap: 18px; color: #9aaba6; font-size: 12.5px; margin-bottom: 18px; }
.help-summary {
    padding: 14px 16px;
    background: var(--brand-soft);
    border-radius: 10px;
    color: var(--brand-dark);
    font-size: 14px;
}
.help-content {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.9;
    color: #2b3d39;
    white-space: normal;
}
/* 富文本正文内的排版元素 */
.help-content h1, .help-content h2, .help-content h3, .help-content h4 {
    margin: 18px 0 10px;
    line-height: 1.4;
}
.help-content h1 { font-size: 22px; }
.help-content h2 { font-size: 19px; }
.help-content h3 { font-size: 16.5px; }
.help-content h4 { font-size: 15px; }
.help-content p { margin: 10px 0; }
.help-content ul, .help-content ol { margin: 10px 0; padding-left: 24px; }
.help-content li { margin: 6px 0; }
.help-content blockquote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--brand);
    background: var(--brand-soft);
    border-radius: 0 10px 10px 0;
    color: var(--brand-dark);
}
.help-content a { color: var(--brand-dark); text-decoration: underline; }
.help-content img {
    max-width: 100%;
    height: auto !important; /* 高度按宽度等比自适应，覆盖内联写死的 height，避免只改宽度时变形 */
    display: block;
    margin: 12px auto;
    border-radius: 10px;
}
/* 空段落（编辑器里的 <p><br></p>）不额外占高 */
.help-content p:empty { margin: 0; }
.help-content p br:only-child { }
.help-content code {
    padding: 1px 6px;
    background: #f2f6f5;
    border-radius: 5px;
    font-size: 13px;
}
.help-content pre {
    padding: 12px 14px;
    background: #f2f6f5;
    border-radius: 10px;
    overflow-x: auto;
}
.help-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}
.help-content th, .help-content td {
    border: 1px solid var(--line);
    padding: 8px 10px;
    text-align: left;
}
.help-content th { background: #f7faf9; }

/* ---------------- 详情页三栏：左分类 / 中正文 / 右相关与热门 ---------------- */
.help-detail-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}
.help-detail-main { display: flex; flex-direction: column; min-width: 0; }

/* 上一篇 / 下一篇 */
.help-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
}
.help-pager-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
a.help-pager-item:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(21,112,96,.08); }
.help-pager-item.next { justify-content: flex-end; text-align: right; }
.help-pager-label { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.help-pager-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #1c2b27;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 右侧卡片：标题在前、标签在后，整体靠右 */
.help-pager-item.next .help-pager-title { order: 1; }
.help-pager-item.next .help-pager-label { order: 2; }
a.help-pager-item:hover .help-pager-title { color: var(--brand-dark); }
.help-pager-item.disabled { background: #f7faf9; }
.help-pager-item.disabled .help-pager-title { color: #9aaba6; }

/* 正文下方推荐区：相关文章 / 热门文章并排两卡 */
.help-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 22px;
}
.help-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px 0;
}
.help-card-list { list-style: none; margin: 0; padding: 6px 0; }
.help-card-list a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 2px 10px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
}
.help-card-list a:hover { background: var(--brand-soft); }
.help-card-title {
    font-size: 13.5px;
    color: #243632;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.help-card-list a:hover .help-card-title { color: var(--brand-dark); }

@media (max-width: 900px) {
    .help-detail-layout { grid-template-columns: 1fr; gap: 22px; }
    .help-side { position: static; }
    .help-pager { grid-template-columns: 1fr; }
    .help-extra { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .cmp-notes { grid-template-columns: 1fr; }
    .download-side { width: 100%; }
    .dl-btn { width: 100%; }
}
