:root {
    --bg: #0b0d12;
    --bg-2: #12151d;
    --surface: #171b25;
    --surface-hi: #1e2432;
    --border: #262d3d;
    --text: #e6e9f2;
    --text-dim: #8b93a7;
    --primary: #fe2c55;         /* 抖音红 */
    --primary-2: #25f4ee;       /* 抖音青 */
    --accent: linear-gradient(135deg, #fe2c55 0%, #25f4ee 100%);
    --radius: 14px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden { display: none !important; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(11, 13, 18, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand .logo { font-size: 24px; }
.brand em {
    background: var(--accent);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-style: normal; font-size: 14px; margin-left: 4px;
}
.nav a { color: var(--text-dim); margin-left: 18px; font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang-btn {
    margin-left: 12px; padding: 5px 12px; font-size: 13px; font-weight: 600;
    color: var(--text); background: transparent; cursor: pointer;
    border: 1px solid var(--border); border-radius: 999px;
    transition: border-color .15s, color .15s, background .15s;
}
.lang-btn:hover {
    color: #fff; border-color: transparent;
    background: var(--accent);
}

/* Hero */
.hero { padding: 64px 0 32px; text-align: center; }
.hero h1 {
    font-size: 40px; margin: 0 0 12px;
    background: var(--accent); -webkit-background-clip: text; background-clip: text;
    color: transparent; font-weight: 800; letter-spacing: -0.02em;
}
.hero .subtitle { color: var(--text-dim); margin: 0 0 14px; font-size: 16px; }
.hero-tags {
    max-width: 680px; margin: 0 auto 30px; font-size: 13.5px; line-height: 1.7;
    color: var(--text-dim);
}
.bookmark-hint {
    margin: 18px 0 0; font-size: 13px; color: var(--text-dim);
}
.bookmark-hint kbd {
    display: inline-block; padding: 1px 7px; margin: 0 1px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
    color: var(--text); background: var(--surface-hi);
    border: 1px solid var(--border); border-radius: 5px;
    box-shadow: 0 1px 0 var(--border);
}

.parse-box {
    max-width: 640px; margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
}
.parse-box textarea {
    width: 100%; resize: none;
    background: transparent; color: var(--text);
    border: 0; outline: none; padding: 10px;
    font-size: 15px; font-family: inherit; line-height: 1.5;
}
.parse-box textarea::placeholder { color: #4a5266; }

.parse-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 6px 4px 4px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    background: var(--surface-hi);
    color: var(--text);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform .1s ease, background .15s ease, border-color .15s ease;
    text-decoration: none;
}
.btn:hover { border-color: #3a4256; background: #232a3b; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary {
    background: var(--accent);
    color: #fff; border-color: transparent;
    font-weight: 600;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }

.status { min-height: 24px; margin-top: 14px; color: var(--text-dim); font-size: 14px; }
.status.error { color: #ff6a80; }
.status.loading::after {
    content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px;
    border: 2px solid var(--text-dim); border-top-color: transparent;
    border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Result */
.result { padding: 20px 0; }
.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}
@media (max-width: 720px) {
    .result-card { grid-template-columns: 1fr; }
}

.video-block video,
.video-block .cover-preview {
    width: 100%; max-height: 540px;
    background: #000; border-radius: 10px;
    aspect-ratio: 9 / 16;
    object-fit: contain;
}
/* 关闭在线播放后的封面提示条 */
.video-block .cover-tip {
    margin-top: 8px;
    font-size: 12.5px; color: var(--text-dim);
    text-align: center; line-height: 1.5;
}

/* Quality chips */
.quality-bar {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 10px;
}
.chip {
    position: relative;
    display: inline-flex; align-items: baseline; gap: 4px;
    padding: 5px 12px;
    background: var(--surface-hi);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 12px;
    cursor: pointer;
    transition: all .15s ease;
}
.chip:hover { color: var(--text); border-color: #3a4256; }
.chip.active {
    background: var(--accent);
    color: #fff; border-color: transparent;
    font-weight: 600;
}
.chip.recommended::before {
    content: "⭐"; margin-right: 2px; font-size: 10px;
}
.chip .chip-size { font-size: 11px; opacity: .8; }
.chip.active .chip-size { color: rgba(255,255,255,.9); }
.image-block {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.image-block .image-item {
    display: flex; flex-direction: column; gap: 6px;
}
.image-block img {
    width: 100%; aspect-ratio: 3/4;
    object-fit: cover; border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform .2s ease;
    background: #12151d;
}
.image-block img:hover { transform: scale(1.02); }
.image-block .image-dl { padding: 6px 8px; font-size: 12px; }

.btn.loading { opacity: .8; cursor: progress; }
.btn[aria-busy="true"] { pointer-events: none; }

.meta .author { display: flex; align-items: center; gap: 12px; }
.meta .avatar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #222; }
.meta .nick { font-weight: 600; }
.meta .uid { color: var(--text-dim); font-size: 12px; }
.meta .desc {
    margin: 16px 0; white-space: pre-wrap; word-break: break-word;
    color: var(--text); line-height: 1.7;
}
.meta .stats { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }
.meta .stats b { color: var(--text); font-weight: 600; margin-left: 3px; }
.meta .btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Features */
.features { padding: 60px 0 20px; }
.features h2, .faq h2 { text-align: center; margin: 0 0 32px; font-size: 26px; }
.features .grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.features .card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
}
.features .ic { font-size: 24px; }
.features h3 { margin: 10px 0 6px; font-size: 17px; }
.features p { color: var(--text-dim); margin: 0; font-size: 14px; }

/* FAQ */
.faq { padding: 40px 0 60px; }
.faq details {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { color: var(--text-dim); margin: 10px 0 0; }

/* 知识科普与使用须知：两张等宽卡片（延伸阅读 / 合规声明），替代松散列表+大声明框 */
.guides { padding: 12px 0 60px; }
.guides-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
}
.guide-card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.guide-row {
    display: block; position: relative;
    padding: 12px 40px 12px 14px; margin-bottom: 10px;
    border: 1px solid var(--border); border-radius: 10px;
}
.guide-row:last-child { margin-bottom: 0; }
.guide-row::after {
    content: "→"; position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%); color: var(--text-dim); font-size: 14px;
    transition: transform .15s ease, color .15s ease;
}
.guide-row:hover { border-color: #3a4256; background: var(--surface-hi); text-decoration: none; }
.guide-row:hover::after { transform: translateY(-50%) translateX(3px); color: var(--primary-2); }
.guide-t { display: block; font-weight: 600; font-size: 14.5px; }
.guide-d { display: block; margin-top: 3px; color: var(--text-dim); font-size: 13px; line-height: 1.65; }
/* 声明卡：克制的警示样式（细边+淡底），不抢视觉权重 */
.guide-notice { border-left: 3px solid #ffd166; }
.guide-notice p { margin: 0 0 10px; color: var(--text-dim); font-size: 13.5px; line-height: 1.8; }
.guide-links { margin: 0; font-size: 13px; color: var(--text-dim); }
@media (max-width: 720px) {
    .guides-grid { grid-template-columns: 1fr; }
}

/* Footer：三栏分组（教程双列 / 产品 / 条款），替代一段式链接墙 */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 44px 0 30px; color: var(--text-dim); font-size: 13px;
}
.footer-cols {
    display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 36px;
    text-align: left; margin-bottom: 30px;
}
.footer-group h4 {
    margin: 0 0 14px; font-size: 12.5px; font-weight: 600;
    letter-spacing: .14em; color: var(--text-dim);
}
.footer-group ul { list-style: none; margin: 0; padding: 0; }
.footer-group li { margin-bottom: 8px; line-height: 1.5; }
.footer-group a { color: var(--text-dim); font-size: 13px; }
.footer-group a:hover { color: var(--text); text-decoration: none; }
/* 教程组链接多，组内双列排布 */
.footer-guides { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.footer-copy {
    text-align: center; margin: 0; padding-top: 22px;
    border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px;
}
@media (max-width: 720px) {
    .footer-cols { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 420px) {
    .footer-guides { grid-template-columns: 1fr; }
}

/* ============ 微信小程序推广 ============ */
.miniapp { padding: 44px 0 10px; }
.miniapp-card {
    display: flex; align-items: center; gap: 28px;
    background: linear-gradient(135deg, rgba(37,244,238,0.08), rgba(254,44,85,0.08));
    border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px;
}
.miniapp-info { flex: 1; min-width: 0; }
.miniapp-info h2 { margin: 0 0 10px; font-size: 22px; }
.miniapp-info p { color: var(--text-dim); line-height: 1.85; margin: 0 0 14px; font-size: 14px; }
.miniapp-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.miniapp-chips span {
    font-size: 12.5px; color: var(--text); background: var(--surface-hi);
    border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px;
}
.miniapp-qr { text-align: center; flex-shrink: 0; }
.miniapp-qr img {
    width: 148px; height: 148px; object-fit: contain;
    background: #fff; border-radius: 10px; padding: 8px; display: block;
}
.miniapp-qr .qr-cap { margin-top: 9px; font-size: 12.5px; color: var(--text-dim); }
@media (max-width: 560px) {
    .miniapp-card { flex-direction: column; text-align: center; padding: 22px 18px; gap: 18px; }
    .miniapp-chips { justify-content: center; }
    .miniapp-qr img { width: 150px; height: 150px; }
}

/* ============ 下载完成卡片内的小程序引流条（最高价值引流位） ============ */
.result-miniapp {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    margin-top: 16px; padding: 14px 18px;
    background: linear-gradient(135deg, rgba(37,244,238,0.10), rgba(254,44,85,0.10));
    border: 1px solid var(--border); border-radius: 12px;
}
.result-miniapp .rm-text { min-width: 0; }
.result-miniapp .rm-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.result-miniapp .rm-sub { color: var(--text-dim); font-size: 12.5px; line-height: 1.6; }
.result-miniapp .rm-qr { text-align: center; flex-shrink: 0; }
.result-miniapp .rm-qr img {
    width: 96px; height: 96px; object-fit: contain;
    background: #fff; border-radius: 8px; padding: 5px; display: block;
}
.result-miniapp .rm-qr span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--text-dim); }
@media (max-width: 560px) {
    .result-miniapp { flex-direction: column; text-align: center; gap: 12px; padding: 14px; }
}

/* ============ 小程序一键打开 CTA（仅手机端展示，微信绿） ============ */
.rm-open {
    margin-top: 10px; padding: 9px 20px; border: none; border-radius: 999px;
    background: #07c160; color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 14px rgba(7,193,96,.3);
}
.rm-open:active { transform: translateY(1px); }
.miniapp-open {
    display: none; margin-top: 12px; padding: 9px 22px; border: none; border-radius: 999px;
    background: #07c160; color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 14px rgba(7,193,96,.3);
}
.miniapp-open:active { transform: translateY(1px); }
@media (max-width: 720px) { .miniapp-open { display: inline-block; } }

/* 手机端首访小程序引导条（固定底部，只弹一次） */
.miniapp-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(18,21,29,.96); backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(0,0,0,.35);
}
.miniapp-bar .mb-txt { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text); line-height: 1.45; }
.miniapp-bar .mb-open {
    padding: 7px 18px; border: none; border-radius: 999px; white-space: nowrap;
    background: #07c160; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
}
.miniapp-bar .mb-x { background: none; border: none; color: var(--text-dim); font-size: 14px; cursor: pointer; padding: 6px; }

/* ============ 软上限解锁弹窗（额度用完 → 小程序领码引导） ============ */
.unlock-steps { margin: 4px 0 14px; padding-left: 20px; color: var(--text-dim); font-size: 13.5px; line-height: 1.9; text-align: left; }
.unlock-qr { text-align: center; margin-bottom: 14px; }
.unlock-qr img { width: 116px; height: 116px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; display: block; margin: 0 auto; }
.unlock-qr span { display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-dim); }
.unlock-form { display: flex; gap: 10px; justify-content: center; }
/* 浅色票券风输入框：深色主题下高对比，一眼就能看到（常驻解锁栏与弹窗共用） */
.unlock-input {
    width: 150px; padding: 10px 14px; text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; letter-spacing: 5px;
    color: #241a05; background: #fff8e8;
    border: 2px solid #fbbf24; border-radius: 10px; outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, .16);
}
.unlock-input::placeholder { color: #8a6a2f; letter-spacing: 2px; font-size: 13px; }
.unlock-input:focus { border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(251, 191, 36, .3); }

/* ============ 结果卡高级工具（仅抖音：评论/作者作品/喜欢/收藏/合辑） ============ */
.pro-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pro-btn { font-size: 12.5px; padding: 6px 12px; }
.pro-panel { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.pro-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
/* 面板右上角小操作：导出评论 */
.pro-act { background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 8px; padding: 3px 10px; font-size: 12px; font-weight: 400; cursor: pointer; white-space: nowrap; }
.pro-act:hover { color: var(--primary-2); border-color: var(--primary-2); }
/* Pro 撞每日限额后，面板内的解锁码输入入口（弹统一解锁弹窗） */
.pro-unlock-entry { background: none; border: 1px solid var(--primary-2); color: var(--primary-2); border-radius: 8px; padding: 4px 12px; font-size: 12px; cursor: pointer; margin-top: 8px; }
.pro-unlock-entry:hover { filter: brightness(1.15); }
.pro-msg { font-size: 12.5px; color: var(--text-dim); padding: 4px 0; }
.pro-cmt { font-size: 13px; line-height: 1.7; padding: 6px 0; border-bottom: 1px dashed var(--border); word-break: break-all; }
.pro-cmt:last-child { border-bottom: none; }
.pro-cmt b { color: var(--primary-2); margin-right: 4px; }
.pro-cmt-digg { float: right; color: var(--text-dim); font-size: 12px; margin-left: 8px; }
/* 二级评论：展开按钮 + 缩进回复区（左竖线区分层级） */
.pro-cmt-reply-btn { background: none; border: none; color: var(--primary-2); font-size: 12px; cursor: pointer; padding: 2px 0; }
.pro-reply-more { display: block; margin: 4px 0 2px; color: var(--text-dim); }
.pro-cmt-replies { margin: 6px 0 2px; padding-left: 10px; border-left: 2px solid var(--border); }
.pro-cmt-replies .pro-cmt { font-size: 12.5px; padding: 4px 0; }
.pro-cmt-replies .pro-cmt:last-child { border-bottom: none; }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pro-work { display: block; border-radius: 8px; overflow: hidden; background: var(--surface-hi); border: 1px solid var(--border); cursor: pointer; transition: border-color .15s; }
.pro-work:hover { border-color: var(--primary-2); text-decoration: none; }
.pro-work img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.pro-work span { display: block; font-size: 11px; color: var(--text-dim); padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-more { display: block; margin: 10px auto 0; background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 8px; padding: 6px 16px; font-size: 12px; cursor: pointer; }
.pro-profile { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.pro-profile img { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-hi); }
.pro-profile-txt b { font-size: 14px; }
.pro-sig { font-size: 12px; color: var(--text-dim); margin-top: 2px; max-width: 480px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-dim); }
.pro-stats b { color: var(--text); }

/* ============ 悬浮引流气泡（小程序 / 支持我们 两个独立气泡，仅中文界面） ============ */
.sfab-bubble {
    position: fixed; right: 24px; bottom: 84px; z-index: 900;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px; font-size: 14px; font-weight: 600;
    color: #fff; border: none; border-radius: 999px; cursor: pointer;
    background: linear-gradient(135deg, #fe2c55, #ff6b81);
    box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.sfab-bubble:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(254,44,85,.35); }
.sfab-bubble .sfab-ic { font-size: 15px; }
/* 小程序气泡：叠在“支持我们”上方，青蓝配色区分 */
.sfab-bubble-mini {
    bottom: 132px;
    background: linear-gradient(135deg, #25f4ee, #1677ff);
}
.sfab-bubble-mini:hover { box-shadow: 0 12px 36px rgba(37,244,238,.35); }
/* 扩展气泡：叠在“小程序”上方，紫色渐变区分（直链教程页） */
.sfab-bubble-ext {
    bottom: 180px;
    background: linear-gradient(135deg, #9d84ff, #6c5ce7);
    text-decoration: none;
}
.sfab-bubble-ext:hover { box-shadow: 0 12px 36px rgba(157,132,255,.4); }
.sfab-panel {
    position: fixed; right: 24px; bottom: 84px; z-index: 901;
    width: 244px; padding: 18px 16px 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,.45); text-align: center;
}
.sfab-panel-mini { bottom: 132px; }
.sfab-x {
    position: absolute; top: 8px; right: 10px; background: none; border: none;
    color: var(--text-dim); font-size: 15px; cursor: pointer; line-height: 1;
}
.sfab-x:hover { color: var(--text); }
.sfab-hd { font-weight: 700; font-size: 15px; margin: 0 0 12px; }
.sfab-sec-t { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.sfab-sec img { width: 128px; height: 128px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; }
.sfab-cap { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }
.sfab-div { height: 1px; background: var(--border); margin: 14px 0; }
.sfab-pays { display: flex; justify-content: center; gap: 12px; }
.sfab-pay img { width: 88px; height: 88px; object-fit: contain; background: #fff; border-radius: 8px; padding: 5px; display: block; }
.sfab-pay span { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; }
.sfab-pay .pay-wechat { color: #07c160; }
.sfab-pay .pay-alipay { color: #1677ff; }
.sfab-tip { font-size: 11px; color: var(--text-dim); margin: 12px 0 0; line-height: 1.5; }
.sfab-dismiss {
    margin-top: 10px; background: none; border: none; color: var(--text-dim);
    font-size: 12px; cursor: pointer; text-decoration: underline;
}
.sfab-dismiss:hover { color: var(--text); }
@media (max-width: 560px) {
    .sfab-bubble { right: 16px; bottom: 72px; padding: 9px 13px; font-size: 13px; }
    .sfab-bubble-mini { bottom: 116px; }
    .sfab-bubble-ext { bottom: 160px; }
    .sfab-panel { right: 16px; bottom: 72px; width: calc(100vw - 32px); max-width: 300px; }
    .sfab-panel-mini { bottom: 116px; }
}

/* ============ 扩展推广横幅（顶部可关闭）与风控引导条 ============ */
.ext-banner {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
    margin: 0 auto 18px; max-width: 760px; padding: 10px 16px;
    background: rgba(157,132,255,.10); border: 1px solid rgba(157,132,255,.4);
    border-radius: 10px; font-size: 13.5px;
}
.ext-banner.hidden { display: none; }
.ext-banner-btn {
    background: linear-gradient(135deg, #9d84ff, #6c5ce7); color: #fff;
    padding: 5px 14px; border-radius: 999px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
}
.ext-banner-btn:hover { opacity: .9; }
.ext-banner-x { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 14px; }
.ext-banner-x:hover { color: var(--text); }
/* 解析完成悬浮提示（替代自动滚动） */
.result-jump {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 28px; z-index: 70;
    background: linear-gradient(135deg, #2ecc71, #27ae60); color: #fff; border: none;
    padding: 11px 24px; border-radius: 999px; font-size: 14px; font-weight: 600;
    cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.35);
    animation: result-jump-in .25s ease-out;
}
.result-jump:hover { filter: brightness(1.08); }
.result-jump.hidden { display: none; }
@keyframes result-jump-in {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
/* 风控/限流时的扩展安装引导 */
.ext-hint {
    margin: 10px auto 0; max-width: 760px; padding: 10px 14px;
    background: rgba(255,209,102,.08); border: 1px solid rgba(255,209,102,.35);
    border-radius: 8px; font-size: 13px; text-align: center;
}
.ext-hint.hidden { display: none; }
.ext-hint a { color: #ffd166; font-weight: 600; }

/* 二维码图片可点击/长按下载（手机端存相册后扫码） */
.qr-dl { display: inline-block; line-height: 0; text-decoration: none; cursor: pointer; }
.qr-hint { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }

/* Mobile tweaks */
@media (max-width: 560px) {
    .hero h1 { font-size: 30px; }
    .hero { padding: 40px 0 20px; }
    .nav a { margin-left: 14px; }
    .fb-fab { right: 16px; bottom: 16px; padding: 10px 14px; }
}
/* 底部引导条在屏时：反馈悬浮按钮上移避让，不被遮挡 */
body.has-miniapp-bar .fb-fab {
    bottom: calc(64px + env(safe-area-inset-bottom));
}
/* 超窄屏：头部收紧，避免品牌+导航换行挤压 */
@media (max-width: 420px) {
    .brand { font-size: 16px; }
    .brand em { display: none; }
    .nav a { margin-left: 10px; font-size: 13px; }
    .lang-btn { margin-left: 10px; padding: 4px 10px; }
}

/* ============ 意见反馈 ============ */
.fb-sub {
    color: var(--text-dim); font-size: 14px; margin: 0 0 18px;
}
.fb-form { max-width: 640px; }
.fb-form .fb-content,
.fb-form .fb-contact {
    width: 100%; display: block;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 14px; font-size: 14px; font-family: inherit;
    transition: border-color .15s;
}
.fb-form .fb-content { resize: vertical; min-height: 96px; }
.fb-form .fb-contact { margin-top: 10px; }
.fb-form .fb-content:focus,
.fb-form .fb-contact:focus { outline: none; border-color: var(--primary-2); }
.fb-actions {
    display: flex; align-items: center; gap: 14px; margin-top: 12px;
}
.fb-msg { font-size: 13px; }
.fb-msg.ok { color: #35d07f; }
.fb-msg.error { color: #ff6b81; }

/* 悬浮按钮 */
.fb-fab {
    position: fixed; right: 24px; bottom: 24px; z-index: 900;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 18px; font-size: 14px; font-weight: 600;
    color: #fff; border: none; border-radius: 999px; cursor: pointer;
    background: var(--accent); box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
.fb-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(254,44,85,.35); }

/* 反馈弹窗 */
.fb-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; /* 小屏下卡片与屏幕边缘留缝，避免贴边 */
}
.fb-modal.hidden { display: none; }
.fb-modal-mask {
    position: absolute; inset: 0; background: rgba(0,0,0,.6);
    backdrop-filter: blur(2px);
}
.fb-modal-card {
    position: relative; z-index: 1; width: min(92vw, 480px);
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 26px 24px 22px;
    /* 内容超出屏幕时卡片内部滚动（解锁弹窗内容较长，小屏不加会顶出屏幕、
       导致 ✕ 关闭按钮够不到），max-height 保证 ✕ 永远在可视区 */
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.fb-modal-card h3 { margin: 0 0 6px; font-size: 20px; }
.fb-modal-x {
    position: absolute; top: 12px; right: 14px;
    background: transparent; border: none; color: var(--text-dim);
    font-size: 18px; cursor: pointer; line-height: 1;
}
.fb-modal-x:hover { color: var(--text); }
.fb-modal-card .fb-form { max-width: none; }

/* 弹窗内标签页：写反馈 / 我的反馈 */
.fb-tabs {
    display: flex; gap: 8px; margin: 0 0 14px;
    border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.fb-tab {
    position: relative;
    background: transparent; border: none; cursor: pointer;
    color: var(--text-dim); font-size: 14px; font-weight: 600;
    padding: 4px 10px; border-radius: 8px;
    display: inline-flex; align-items: center; gap: 6px;
}
.fb-tab:hover { color: var(--text); }
.fb-tab.active { color: var(--primary); background: rgba(254,44,85,.10); }
.fb-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700; border-radius: 999px;
}
.fb-badge.hidden { display: none; }

/* 悬浮按钮小红点 */
.fb-fab { position: fixed; }
.fb-fab-badge {
    position: absolute; top: -4px; right: -4px;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: #ffd166; color: #1a1a1a;
    font-size: 11px; font-weight: 700; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.fb-fab-badge.hidden { display: none; }

/* 我的反馈：反馈码列表 */
.fb-item {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
}
.fb-item-open {
    flex: 1; display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 12px; cursor: pointer;
    color: var(--text); font-size: 14px; text-align: left;
    transition: border-color .15s;
}
.fb-item-open:hover { border-color: var(--primary-2); }
.fb-item-code { font-weight: 700; font-family: ui-monospace, Menlo, monospace; }
.fb-item-time { color: var(--text-dim); font-size: 12px; }
.fb-item-arrow { margin-left: auto; color: var(--text-dim); }
.fb-item-del {
    flex: 0 0 auto; background: transparent; border: none;
    color: var(--text-dim); cursor: pointer; font-size: 13px; padding: 6px;
}
.fb-item-del:hover { color: #ff6b81; }

/* 会话视图 */
.fb-thread-head {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.fb-back {
    background: transparent; border: none; color: var(--text-dim);
    cursor: pointer; font-size: 13px; padding: 2px 0;
}
.fb-back:hover { color: var(--primary); }
.fb-thread-code {
    font-family: ui-monospace, Menlo, monospace; font-size: 12px;
    color: var(--text-dim);
}
.fb-status {
    margin-left: auto; font-size: 11px; font-weight: 600;
    padding: 2px 9px; border-radius: 999px;
}
.fb-status.st0 { background: rgba(255,209,102,.16); color: #ffd166; }
.fb-status.st1 { background: rgba(53,208,127,.14); color: #35d07f; }
.fb-status.st2 { background: var(--surface-hi); color: var(--text-dim); }
.fb-thread-body {
    max-height: 300px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 8px;
    padding: 4px 2px; margin-bottom: 10px;
}
.fb-bubble {
    max-width: 85%; padding: 8px 12px; border-radius: 12px;
    font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.fb-bubble.user {
    align-self: flex-end;
    background: rgba(254,44,85,.12); border: 1px solid rgba(254,44,85,.28);
}
.fb-bubble.admin {
    align-self: flex-start;
    background: var(--surface); border: 1px solid var(--border);
}
.fb-bubble-who { font-size: 11px; color: var(--text-dim); margin-bottom: 3px; }
.fb-reply-row { display: flex; gap: 8px; }
.fb-reply-row input {
    flex: 1; min-width: 0;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 12px; font-size: 13px; font-family: inherit;
}
.fb-reply-row input:focus { outline: none; border-color: var(--primary-2); }

/* 输入反馈码行 */
.fb-add-row {
    display: flex; gap: 8px; margin-top: 14px;
    padding-top: 14px; border-top: 1px dashed var(--border);
}
.fb-add-row input {
    flex: 1; min-width: 0;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: 10px;
    padding: 9px 12px; font-size: 13px; font-family: inherit;
    text-transform: uppercase; letter-spacing: 1px;
}
.fb-add-row input:focus { outline: none; border-color: var(--primary-2); }

/* 联系邮箱行 */
.contact-email-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 14px 0 8px;
}
.contact-email {
    flex: 1 1 auto; min-width: 0;
    padding: 10px 12px; font-size: 15px; font-weight: 600;
    color: var(--text); word-break: break-all;
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    user-select: all;
}
.contact-copy { flex: 0 0 auto; white-space: nowrap; }

/* 解析历史 */
.history {
    max-width: 720px; margin: 18px auto 0; padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.history-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.history-title { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.history-clear {
    background: transparent; border: 1px solid var(--border); color: var(--text-dim);
    font-size: 12px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
    transition: color .15s, border-color .15s;
}
.history-clear:hover { color: var(--primary); border-color: var(--primary); }
.history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.history-item {
    display: flex; align-items: center; gap: 12px; padding: 8px;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
    cursor: pointer; transition: border-color .15s, transform .15s;
}
.history-item:hover { border-color: var(--primary-2); transform: translateX(2px); }
.h-thumb {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 8px;
    object-fit: cover; background: var(--surface-hi);
}
.h-thumb-ph {
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.h-info { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.h-desc {
    font-size: 13px; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.h-meta { font-size: 12px; color: var(--text-dim); }

/* 批量解析提示 */
.batch-tip {
    max-width: 720px; margin: 12px auto 0; padding: 0 2px;
    text-align: left; font-size: 13px;
}
.batch-tip > summary {
    list-style: none; cursor: pointer; color: var(--primary-2);
    padding: 8px 0; user-select: none; text-align: center;
}
.batch-tip > summary::-webkit-details-marker { display: none; }
.batch-tip > summary:hover { text-decoration: underline; }
.batch-tip[open] > summary { color: var(--text); font-weight: 600; }
.batch-tip-body {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 4px 18px 10px; color: var(--text-dim);
}
.batch-tip-body b { color: var(--text); }
.batch-tip-body ol { margin: 8px 0; padding-left: 20px; }
.batch-tip-body li { margin: 4px 0; }
.batch-tip-note { margin: 8px 0 2px; font-size: 12px; opacity: .85; }

/* 批量解析 */
.batch-item {
    border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 16px; overflow: hidden;
}
.batch-item.failed { border-color: #ff6b81; }
.batch-item-head {
    padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--text-dim);
    background: var(--surface); border-bottom: 1px solid var(--border);
}
.batch-item-body { padding: 0; }
.batch-item-err { padding: 12px 14px; font-size: 13px; color: #ff6b81; }

/* ============ 「更多平台」下拉（首页导航 + 平台页导航共用） ============ */
/* 导航直达平台链接：窄屏收进「更多平台」下拉，避免导航换行溢出 */
@media (max-width: 920px) { .nav .nav-plat { display: none; } }
/* 平台直达链接与「更多平台」按钮：复用语言切换按钮的胶囊背景板，
   悬停渐变高亮，导航视觉统一 */
.nav-plat {
    padding: 4px 10px;
    font-size: 13px; border-radius: 999px;
    border: 1px solid var(--border); background: transparent;
    transition: border-color .15s, color .15s, background .15s;
}
/* 优先级需高于 .nav a 的 margin-left，否则胶囊间距收不下来 */
.nav .nav-plat { margin-left: 8px; }
.nav-plat:hover {
    color: #fff; border-color: transparent;
    background: var(--accent); text-decoration: none;
}
.nav-more { position: relative; display: inline-block; margin-left: 12px; }
/* hover 桥接：按钮与面板间 12px 空隙若是空白，鼠标移过去时 hover 丢失、
   面板半路消失；用透明伪元素把 hover 区域连成一片 */
.nav-more::after {
    content: ""; position: absolute; left: -8px; right: -8px;
    top: 100%; height: 16px;
}
.nav-more-btn {
    padding: 4px 10px; cursor: pointer;
    color: var(--text-dim); font-size: 13px; font-family: inherit;
    border: 1px solid var(--border); border-radius: 999px; background: transparent;
    transition: border-color .15s, color .15s, background .15s;
}
.nav-more-btn:hover, .nav-more.open .nav-more-btn {
    color: #fff; border-color: transparent;
    background: var(--accent);
}
.nav-more-panel {
    display: none; position: absolute; right: -12px; top: calc(100% + 12px);
    width: 320px; max-width: calc(100vw - 32px); max-height: 66vh; overflow: auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 8px;
    box-shadow: var(--shadow); z-index: 30; text-align: left;
}
.nav-more.open .nav-more-panel { display: block; }
/* 桌面端支持 hover 展开，触屏/窄屏只靠点击 */
@media (hover: hover) and (min-width: 721px) {
    .nav-more:hover .nav-more-panel { display: block; }
}
.nav-more-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 8px; color: var(--text);
    text-decoration: none; line-height: 1.35;
}
.nav-more-item:hover { background: var(--surface-hi); text-decoration: none; }
.nav-more-emoji { font-size: 18px; width: 24px; text-align: center; flex: none; }
.nav-more-item b { display: block; font-size: 13.5px; font-weight: 600; }
.nav-more-item small { display: block; color: var(--text-dim); font-size: 12px; }

/* ============ 平台独立解析页（plat- 前缀，与首页样式隔离） ============ */
.plat-badge {
    display: inline-block; margin: 0 0 14px; padding: 5px 14px;
    font-size: 13px; font-weight: 600; border-radius: 999px;
    color: var(--plat-accent, var(--primary));
    background: color-mix(in srgb, var(--plat-accent, var(--primary)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--plat-accent, var(--primary)) 35%, transparent);
}
.plat-page .hero h1 {
    background: var(--plat-accent, var(--primary));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plat-page .btn.primary {
    background: var(--plat-accent, var(--primary));
}
.plat-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; }
.plat-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: 999px; font-size: 13px;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border);
}
.plat-tag-ic { color: var(--plat-accent, var(--primary)); font-weight: 700; }

.plat-section { padding: 44px 0; border-top: 1px solid var(--border); }
.plat-section h2 { font-size: 24px; margin: 0 0 22px; text-align: center; }
.plat-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plat-step {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
}
.plat-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%;
    font-size: 16px; font-weight: 700; color: #fff;
    background: var(--plat-accent, var(--primary));
}
.plat-step h3 { margin: 0 0 8px; font-size: 16px; }
.plat-step p { margin: 0; color: var(--text-dim); font-size: 14px; }
.plat-tutorial { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--text-dim); }

.plat-faq details {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 18px; margin-bottom: 10px;
}
.plat-faq summary { cursor: pointer; font-weight: 500; }
.plat-faq p { color: var(--text-dim); margin: 10px 0 0; }
.plat-faq .wrap { max-width: 760px; }

.plat-others-sub { text-align: center; color: var(--text-dim); margin: -10px 0 24px; font-size: 14px; }
.plat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px;
}
.plat-card {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 18px 12px; text-align: center; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .15s ease, transform .1s ease;
}
.plat-card:hover { border-color: var(--plat-accent, var(--primary)); transform: translateY(-2px); text-decoration: none; }
.plat-card-emoji { font-size: 26px; }
.plat-card-name { color: var(--text); font-size: 14.5px; font-weight: 600; }
.plat-card small { color: var(--text-dim); font-size: 12px; }

.plat-footer p { margin: 4px 0; text-align: center; }

@media (max-width: 720px) {
    .plat-steps { grid-template-columns: 1fr; }
    .nav-more { margin-left: 14px; }
    /* 窄屏面板改 fixed 全宽，不再贴着按钮，桥接区失去意义且可能误触发 hover */
    .nav-more::after { display: none; }
    /* 窄屏导航链接多时，面板相对按钮定位会顶出屏幕左缘；
       改为 fixed 全宽铺满，两侧留安全边距 */
    .nav-more-panel {
        position: fixed; left: 12px; right: 12px; top: 58px;
        width: auto; max-width: none;
    }
}
@media (max-width: 420px) {
    .nav-more { margin-left: 10px; }
    .nav-more-btn { font-size: 13px; }
}
