/* ==========================================================================
   晚风棱镜去水印 · 前台样式
   ========================================================================== */

:root {
    --bg: #070b16;
    --bg-soft: #0a1020;
    --panel: rgba(255, 255, 255, 0.045);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #e9edf9;
    --muted: #98a2c0;
    --violet: #8f7bff;
    --cyan: #4fd1ff;
    --pink: #ff8fcf;
    --grad: linear-gradient(120deg, #8f7bff 0%, #4fd1ff 55%, #ff8fcf 100%);
    --radius: 18px;
    --radius-lg: 24px;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

::selection { background: rgba(143, 123, 255, 0.42); color: #fff; }

.aurora {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(900px 620px at 12% -8%, rgba(120, 94, 255, 0.30), transparent 62%),
        radial-gradient(820px 580px at 88% 2%, rgba(64, 196, 255, 0.22), transparent 64%),
        radial-gradient(900px 720px at 50% 108%, rgba(255, 122, 196, 0.16), transparent 66%),
        linear-gradient(180deg, #070b16 0%, #070b16 60%, #080c18 100%);
}

.container {
    width: min(1180px, 100% - 48px);
    margin: 0 auto;
}
.container.narrow { width: min(820px, 100% - 48px); }

/* ------------------------------- 顶部导航 ------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(18px);
    background: rgba(7, 11, 22, 0.72);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}

.brand-text strong {
    display: block;
    font-size: 16px;
    letter-spacing: 0.4px;
}

.brand-text em {
    display: block;
    font-style: normal;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.site-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ---------------------------- 移动端底部导航 ---------------------------- */
.mobile-dock { display: none; }

/* --------------------------------- 按钮 --------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.16s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 12px 30px -12px rgba(110, 110, 255, 0.85);
}

.btn-primary:hover { box-shadow: 0 16px 36px -12px rgba(110, 110, 255, 1); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-text {
    background: none;
    color: var(--muted);
    padding: 8px 12px;
}
.btn-text:hover { color: var(--text); }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 15px; }

/* --------------------------------- Hero --------------------------------- */
.hero {
    position: relative;
    padding: 76px 0 44px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -280px;
    top: -180px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, rgba(143, 123, 255, 0.35), rgba(79, 209, 255, 0.28), rgba(255, 143, 207, 0.3), rgba(143, 123, 255, 0.35));
    filter: blur(90px);
    opacity: 0.55;
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: 0.3px;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16);
}

.hero-title {
    margin: 26px 0 16px;
    font-size: clamp(32px, 5.2vw, 56px);
    line-height: 1.2;
    letter-spacing: -0.6px;
    font-weight: 800;
}

.hero-title em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15.5px;
}

/* ------------------------------- 解析卡片 ------------------------------- */
.parse-card {
    margin: 34px auto 0;
    max-width: 900px;
    padding: 22px;
    text-align: left;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    scroll-margin-top: 92px;
}

.parse-field { position: relative; }

.parse-field textarea {
    width: 100%;
    min-height: 62px;
    max-height: 240px;
    padding: 18px;
    background: rgba(6, 10, 20, 0.6);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.parse-field textarea::-webkit-scrollbar { width: 0; height: 0; display: none; }

.parse-field textarea::placeholder { color: #6c7694; }

.parse-field textarea:focus {
    border-color: rgba(143, 123, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(143, 123, 255, 0.14);
}

.parse-batch-hint {
    margin: 9px 2px 0;
    color: #6f7a97;
    font-size: 12px;
    line-height: 1.5;
}

.parse-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.provider-select {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.select {
    appearance: none;
    padding: 10px 34px 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(10, 16, 32, 0.9) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2398a2c0' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.parse-submit { min-width: 168px; position: relative; }

.parse-submit .spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.parse-submit.is-loading .spinner { display: inline-block; }
.parse-submit:disabled { opacity: 0.75; cursor: wait; }

@keyframes spin { to { transform: rotate(360deg); } }

.parse-progress {
    margin-top: 14px;
    padding: 11px 14px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}
.parse-progress[hidden] { display: none; }
.parse-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #8d98b5;
    font-size: 11.5px;
}
.parse-progress-head b {
    color: var(--cyan);
    font-size: 11.5px;
    font-weight: 700;
}
.parse-progress-track {
    position: relative;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.parse-progress-track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8f7bff, #4fd1ff, #ff8fcf);
    box-shadow: 0 0 12px rgba(79, 209, 255, 0.45);
    transition: width .35s ease;
}
.parse-progress.is-indeterminate .parse-progress-track i {
    width: 38% !important;
    animation: progress-slide 1.15s ease-in-out infinite;
}
.parse-progress.is-active .parse-progress-track::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(79, 209, 255, 0.75), transparent);
    transform: translateX(-100%);
    animation: progress-sheen 1.2s ease-in-out infinite;
}
@keyframes progress-sheen {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes progress-slide {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(300%); }
}

.parse-note {
    margin: 14px 2px 0;
    color: #7f89a8;
    font-size: 12.5px;
}
.parse-note a { color: var(--cyan); }

/* ------------------------------- 解析结果 ------------------------------- */
.parse-result {
    max-width: 900px;
    margin: 22px auto 0;
    text-align: left;
    animation: rise 0.45s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 批量解析队列 */
.batch-panel {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.batch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(120deg, rgba(122, 108, 255, 0.12), rgba(45, 212, 191, 0.05));
}
.batch-head h3 { margin: 0; font-size: 15px; }
.batch-head .batch-progress { color: var(--muted); font-size: 12px; white-space: nowrap; }
.batch-list { display: flex; flex-direction: column; }
.batch-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s;
}
.batch-item:last-child { border-bottom: 0; }
.batch-item.is-success { background: rgba(34, 197, 94, 0.035); }
.batch-item.is-error { background: rgba(239, 68, 68, 0.045); }
.batch-thumb {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 12px;
    overflow: hidden;
    background: #0b1020;
    display: grid;
    place-items: center;
}
.batch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.batch-thumb .batch-no { color: #7f8aa8; font-size: 12px; font-weight: 700; }
.batch-thumb .batch-state {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    background: rgba(6, 10, 20, 0.5);
    backdrop-filter: blur(2px);
}
.batch-thumb .batch-state.ok { background: rgba(6, 46, 26, 0.82); color: #6ef0a5; }
.batch-thumb .batch-state.bad { background: rgba(55, 10, 16, 0.82); color: #ff9a9a; }
.batch-main { min-width: 0; }
.batch-main strong {
    display: block;
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.batch-main .batch-meta {
    display: block;
    margin-top: 4px;
    color: #7a84a2;
    font-size: 11.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.batch-main .batch-error { margin: 4px 0 0; color: #ff9292; font-size: 11.5px; line-height: 1.5; }
.batch-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.batch-actions .btn { padding: 7px 11px; font-size: 12px; border-radius: 9px; }
.batch-actions .link-btn { font-size: 11.5px; }
.batch-foot { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; background: rgba(255, 255, 255, 0.02); }
.batch-foot.is-error { color: #ff9b9b; }
.batch-foot.is-success { color: #7fe0a8; }

.result-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
}

.result-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0b1020;
    aspect-ratio: 3 / 4;
    display: grid;
    place-items: center;
}

.result-media img { width: 100%; height: 100%; object-fit: cover; }

.media-empty { color: var(--muted); font-size: 13px; }

.play-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 11.5px;
}

.result-body { display: flex; flex-direction: column; gap: 12px; }

.result-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
    display: inline-flex;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(143, 123, 255, 0.18);
    border: 1px solid rgba(143, 123, 255, 0.4);
    font-size: 12px;
    color: #c9c2ff;
}
.tag-soft {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line);
    color: var(--muted);
}

.result-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.45;
    font-weight: 700;
}

.result-author { margin: 0; color: var(--muted); font-size: 13px; }

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.result-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.result-copy-bar {
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.result-copy-bar .btn { padding: 8px 12px; font-size: 12px; border-radius: 10px; }
.copy-btn {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--line);
    color: #aeb8d2;
}
.copy-btn:hover { border-color: rgba(79, 209, 255, 0.45); color: var(--cyan); }
.copy-btn.is-copied { color: #7fe0a8; border-color: rgba(127, 224, 168, 0.45); background: rgba(34, 197, 94, 0.08); }

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: #7e89a8;
    font-size: 12.5px;
    cursor: pointer;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}
.link-btn:hover { color: var(--cyan); border-color: var(--cyan); }

.result-gallery {
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}
.gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}
.gallery-head > span { flex: 1 1 220px; }
.gallery-download-all { flex: none; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.result-thumb-wrap { position: relative; }
.result-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #0b1020;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: zoom-in;
}
.result-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.result-thumb:hover img { transform: scale(1.03); }
.result-thumb span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px 8px;
    font-size: 11px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}
.thumb-download {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 9px;
    background: rgba(5, 10, 22, 0.68);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background .2s ease, border-color .2s ease;
}
.thumb-download:hover {
    background: rgba(24, 110, 255, 0.82);
    border-color: rgba(120, 190, 255, 0.8);
}

.result-error {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: rgba(255, 99, 99, 0.08);
    border: 1px solid rgba(255, 99, 99, 0.3);
}
.result-error p { margin: 2px 0 0; color: #ffb2b2; font-size: 13px; }
.error-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 99, 99, 0.2);
    color: #ff8b8b;
    font-weight: 700;
}

/* --------------------------------- 统计 --------------------------------- */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 38px auto 0;
    max-width: 900px;
    padding: 18px 6px 0;
    border-top: 1px solid var(--line);
}
.hero-stats div { text-align: center; }
.hero-stats strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-stats span { font-size: 12.5px; color: var(--muted); }

/* --------------------------------- 区块 --------------------------------- */
.section { padding: 72px 0; }
.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 70%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.4px;
}
.section-head p { margin: 0; color: var(--muted); font-size: 14.5px; }

.section-more { text-align: center; margin-top: 26px; }

/* ------------------------------- 最近记录 ------------------------------- */
.recent-section { padding-top: 8px; }
.recent-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 980px;
    margin: 0 auto;
}
.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: border-color 0.2s, background 0.2s;
}
.recent-item:hover { border-color: var(--line-strong); background: var(--panel-strong); }
.recent-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.recent-main { min-width: 0; flex: 1; }
.recent-main strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 600;
}
.recent-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.recent-badge {
    flex: none;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.28);
    color: #69e39b;
    font-size: 10.5px;
}

/* ------------------------------- 平台宫格 ------------------------------- */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
    gap: 14px;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.platform-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: var(--panel-strong);
}

.platform-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-weight: 800;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}

.platform-info { display: flex; flex-direction: column; }
.platform-info strong { font-size: 14.5px; }
.platform-info em { font-style: normal; font-size: 12px; color: var(--muted); }

.platform-card .arrow { margin-left: auto; color: #5d6683; }

/* ----------------------------- 支持平台总览 ----------------------------- */
.platforms-hero {
    padding-top: 34px;
    padding-bottom: 16px;
}

.platforms-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.platforms-stats {
    max-width: 680px;
    margin-top: 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platforms-tip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
    text-align: center;
}
.platforms-tip strong {
    color: var(--text);
    font-size: 13px;
}
.platform-detail-tip {
    margin: 6px auto 0;
}
.platform-detail-tip .btn {
    margin-left: 4px;
}

.platforms-list-section { padding-top: 58px; }

.platform-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.platform-card-lg {
    min-height: 78px;
    padding: 16px 18px;
}
.platform-card-lg .platform-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 16px;
}
.platform-card-lg .platform-info strong { font-size: 15px; }
.platform-card-lg .platform-info em { margin-top: 2px; }

.platforms-note {
    margin: 18px auto 0;
    max-width: 860px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
    text-align: center;
}

.platforms-empty {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.platforms-empty h3 { margin: 0 0 8px; font-size: 18px; }
.platforms-empty p { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }

/* --------------------------------- 步骤 --------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.step-card {
    position: relative;
    padding: 26px 24px;
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid var(--line);
    overflow: hidden;
}
.step-num {
    position: absolute;
    right: 16px;
    top: 6px;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
}
.step-card h3 { margin: 0 0 8px; font-size: 17px; }
.step-card p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* --------------------------------- 特性 --------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.feature-card {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
}
.feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-bottom: 14px;
    color: var(--cyan);
    background: rgba(79, 209, 255, 0.1);
    border: 1px solid rgba(79, 209, 255, 0.24);
}
.feature-card h3 { margin: 0 0 6px; font-size: 15.5px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13.2px; }

/* --------------------------------- FAQ --------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    overflow: hidden;
}
.faq-item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 16px 48px 16px 18px;
    font-size: 14.5px;
    font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
}
.faq-item .plus::before,
.faq-item .plus::after {
    content: "";
    position: absolute;
    background: var(--muted);
    transition: transform 0.2s;
}
.faq-item .plus::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-item .plus::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item[open] .plus::after { transform: rotate(90deg); }
.faq-body {
    padding: 0 18px 18px;
    color: var(--muted);
    font-size: 13.8px;
}
.faq-body p { margin: 0 0 8px; }

/* -------------------------------- 文章卡片 ------------------------------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.article-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
    transition: transform 0.2s, border-color 0.2s;
}
.article-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.article-cat {
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(143, 123, 255, 0.16);
    color: #c9c2ff;
    font-size: 11.5px;
}
.article-card h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.article-card p { margin: 0; color: var(--muted); font-size: 13px; }
.article-meta { margin-top: auto; color: #6d7693; font-size: 11.5px; }

/* ---------------------------------- CTA --------------------------------- */
.cta { padding: 48px 0 72px; }
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 36px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 240px at 0% 0%, rgba(143, 123, 255, 0.22), transparent 70%),
        radial-gradient(500px 240px at 100% 100%, rgba(79, 209, 255, 0.18), transparent 70%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
}
.cta-inner h2 { margin: 0 0 6px; font-size: 24px; }
.cta-inner p { margin: 0; color: var(--muted); font-size: 13.5px; }
.cta-actions { display: flex; gap: 12px; }

/* --------------------------------- 页脚 --------------------------------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 52px 0 26px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 32px;
}
.footer-brand p { margin: 14px 0 0; color: var(--muted); font-size: 13px; max-width: 260px; }
.brand-sm strong { font-size: 15px; }
.brand-sm .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links h4 { margin: 0 0 6px; font-size: 13.5px; letter-spacing: 0.4px; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #6d7693;
    font-size: 12px;
}
.footer-bottom a:hover { color: var(--text); }
.footer-bottom .sep { margin: 0 8px; }

/* -------------------------------- 闪存消息 ------------------------------- */
.flash-stack {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.4s, transform 0.4s;
}
.flash-stack.fade-out { opacity: 0; transform: translateY(-8px); }
.flash {
    min-width: 220px;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    background: rgba(15, 20, 36, 0.95);
    border: 1px solid var(--line-strong);
    box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.8);
}
.flash-success { border-color: rgba(74, 222, 128, 0.4); color: #b7f5cd; }
.flash-error { border-color: rgba(255, 99, 99, 0.45); color: #ffb7b7; }
.flash-warning { border-color: rgba(255, 190, 80, 0.45); color: #ffe0a3; }

/* ------------------------------- 内容页通用 ------------------------------ */
.page-hero {
    padding: 56px 0 30px;
    text-align: center;
}
.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: -0.5px;
}
.page-hero p { margin: 0 auto; max-width: 680px; color: var(--muted); font-size: 14.5px; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #6d7693;
    font-size: 12.5px;
    margin-bottom: 14px;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: 0.6; }

.panel {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid var(--line);
}

/* --------------------------------- 正文 --------------------------------- */
.prose { color: #c7cee3; font-size: 14.5px; line-height: 1.9; }
.prose > p:first-child {
    margin: 0 0 24px;
    padding: 15px 18px;
    border-left: 3px solid rgba(79, 209, 255, 0.55);
    border-radius: 0 12px 12px 0;
    background: rgba(79, 209, 255, 0.055);
    color: #dbe2f5;
    font-size: 15px;
    line-height: 1.85;
}
.prose h2 {
    position: relative;
    margin: 34px 0 14px;
    padding-left: 15px;
    font-size: 20px;
    line-height: 1.45;
    color: var(--text);
}
.prose h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--cyan), rgba(143, 123, 255, 0.85));
}
.prose h3 { position: relative; margin: 24px 0 9px; padding-left: 17px; font-size: 16.5px; color: var(--text); }
.prose h3::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: rgba(79, 209, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(79, 209, 255, 0.12);
}
.prose p { margin: 0 0 15px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose ul { list-style: none; padding-left: 18px; }
.prose ul li { position: relative; padding-left: 14px; }
.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(79, 209, 255, 0.7);
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--cyan); font-weight: 700; }
.prose strong { color: #fff; font-weight: 650; }
.prose a { color: var(--cyan); border-bottom: 1px dashed rgba(79, 209, 255, 0.4); transition: color .18s, border-color .18s; }
.prose a:hover { color: #8ee8ff; border-bottom-color: #8ee8ff; }
.prose blockquote {
    margin: 18px 0;
    padding: 13px 17px;
    border-left: 3px solid rgba(143, 123, 255, 0.65);
    border-radius: 0 12px 12px 0;
    background: rgba(143, 123, 255, 0.08);
    color: #d8d2ff;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; margin: 18px 0; border-collapse: collapse; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; font-size: 13px; }
.prose th { background: rgba(255, 255, 255, 0.05); color: var(--text); font-weight: 600; }
.prose hr { margin: 26px 0; border: 0; border-top: 1px solid var(--line); }
.prose img { display: block; max-width: 100%; height: auto; margin: 16px auto; border-radius: 12px; }
.prose code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12.5px;
    color: #d8d2ff;
}
.prose pre {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(6, 10, 20, 0.55);
    overflow-x: auto;
}
.prose pre code { padding: 0; background: none; color: #c7cee3; }
.prose .md-media { margin: 18px 0; }
.prose .md-media video {
    display: block;
    width: 100%;
    max-height: 540px;
    border-radius: 12px;
    background: #04070e;
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}
.prose .md-media audio { width: 100%; }
.prose .md-file { margin: 14px 0; }
.prose .md-file a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 13px;
    border-bottom: 0;
}
.prose .md-file a:hover { border-color: rgba(143, 123, 255, 0.5); color: #fff; }
.prose .md-file a span {
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(143, 123, 255, 0.14);
    color: #b7b1ff;
    font-size: 11px;
    font-weight: 600;
}
.prose .tok-key { color: #a9a3ff; }
.prose .tok-string { color: #7dd3a8; }
.prose .tok-number { color: #f6c15f; }
.prose .tok-bool { color: #ff9b9b; }
.prose .tok-cmd { color: #b7b1ff; font-weight: 600; }
.prose .tok-flag { color: #67e8f9; }
.prose .tok-url { color: #7dd3fc; }
.prose .tok-comment { color: #6f7a99; font-style: italic; }
.prose .tok-var { color: #f0abfc; }

.article-kicker {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    margin-bottom: 11px;
    border-radius: 999px;
    background: rgba(79, 209, 255, 0.1);
    color: var(--cyan);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .4px;
}
.article-summary {
    margin: 0 0 14px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: #aeb8d2;
    font-size: 13px;
    line-height: 1.8;
}
.article-end {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: 12.5px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    align-items: start;
    padding-bottom: 60px;
}
.article-main { padding: 32px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); }
.article-head h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.4; }
.article-head .meta { color: #6d7693; font-size: 12.5px; margin-bottom: 22px; }
.article-aside { position: sticky; top: 96px; }
.aside-card { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; }
.aside-card h3 { margin: 0 0 12px; font-size: 14px; }
.aside-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.aside-card li a { color: var(--muted); font-size: 13px; }
.aside-card li a:hover { color: var(--text); }

/* --------------------------------- 登录 --------------------------------- */
.auth-wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
    padding: 50px 0 70px;
    align-items: center;
}
.auth-side h1 { margin: 0 0 14px; font-size: 32px; line-height: 1.3; }
.auth-side p { color: var(--muted); font-size: 14px; }
.auth-points { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; gap: 10px; color: #b8c0d8; font-size: 13.5px; }
.auth-points .dot { width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--cyan); }
.auth-card { padding: 30px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 20px; font-size: 20px; }
.auth-foot { margin-top: 18px; color: var(--muted); font-size: 13px; text-align: center; }
.auth-foot a { color: var(--cyan); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; color: var(--muted); }
.input, .textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(6, 10, 20, 0.55);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus {
    border-color: rgba(143, 123, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(143, 123, 255, 0.12);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.form-actions { display: flex; gap: 12px; align-items: center; }

/* 登录 / 注册输入框 */
.auth-card { position: relative; padding: 34px 32px 30px; }
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 120px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: radial-gradient(120% 120% at 20% 0%, rgba(143, 123, 255, 0.14), transparent 70%);
    pointer-events: none;
}
.auth-card-head { position: relative; margin-bottom: 24px; }
.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(143, 123, 255, 0.24);
    background: rgba(143, 123, 255, 0.09);
    color: #a99dff;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
}
.auth-card h2 { position: relative; margin: 0 0 6px; font-size: 22px; letter-spacing: 0.01em; }
.auth-card-head p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-form { position: relative; }
.auth-field { margin-bottom: 15px; }
.auth-field label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #98a2bc;
    font-size: 12.5px;
    letter-spacing: 0.02em;
}
.auth-optional {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    color: #7f8aa6;
    font-size: 10px;
    letter-spacing: 0;
}
.auth-input {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(6, 10, 20, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth-input:hover { border-color: rgba(143, 123, 255, 0.4); }
.auth-input:focus-within {
    border-color: rgba(143, 123, 255, 0.85);
    background: rgba(9, 14, 28, 0.86);
    box-shadow: 0 0 0 4px rgba(143, 123, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.auth-icon { display: flex; flex: none; color: #6f7a99; transition: color 0.18s ease; }
.auth-input:focus-within .auth-icon { color: #a99dff; }
.auth-control {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}
.auth-control::placeholder { color: #67718c; }
.auth-control:-webkit-autofill,
.auth-control:-webkit-autofill:hover,
.auth-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px #0a1020 inset;
    transition: background-color 5000s ease-in-out 0s;
}
.auth-eye {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6f7a99;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease;
}
.auth-eye:hover { background: rgba(255, 255, 255, 0.06); color: #c9d2e8; }
.auth-eye .eye-closed { display: none; }
.auth-eye.is-visible .eye-open { display: none; }
.auth-eye.is-visible .eye-closed { display: block; }
.auth-actions { margin-top: 22px; }
.auth-submit { width: 100%; min-height: 50px; border-radius: 13px; font-size: 15px; letter-spacing: 0.06em; }

/* -------------------------------- 用户中心 ------------------------------- */
.account-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    padding: 42px 0 70px;
    align-items: start;
}
.account-nav { position: sticky; top: 96px; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.account-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); font-weight: 800; color: #fff; }
.account-user strong { display: block; font-size: 14.5px; }
.account-user em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.account-nav nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav nav a { padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 13.5px; }
.account-nav nav a:hover, .account-nav nav a.active { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.account-main { display: flex; flex-direction: column; gap: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.stat-card span { display: block; font-size: 12px; color: var(--muted); }
.stat-card strong { display: block; margin-top: 6px; font-size: 22px; font-weight: 800; }
.stat-card em { font-style: normal; font-size: 12px; color: var(--muted); }

.notice {
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(79, 209, 255, 0.08);
    border: 1px solid rgba(79, 209, 255, 0.25);
    color: #a9dcff;
    font-size: 13px;
}

/* --------------------------------- 表格 --------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 11px 14px; text-align: left; white-space: nowrap; }
.table th { background: rgba(255, 255, 255, 0.045); color: var(--muted); font-weight: 600; font-size: 12.5px; }
.table tr + tr td { border-top: 1px solid var(--line); }
.table td.wrap { white-space: normal; min-width: 180px; }
.table .muted { color: var(--muted); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.status-dot i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.status-dot.fail i { background: #ff8b8b; }

.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
.pager a, .pager span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}
.pager a:hover { color: var(--text); border-color: var(--line-strong); }
.pager .current { background: rgba(143, 123, 255, 0.18); border-color: rgba(143, 123, 255, 0.5); color: #fff; }

/* -------------------------------- 空状态 ------------------------------- */
.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ------------------------------- 接口文档 ------------------------------- */
.code-block {
    position: relative;
    margin: 16px 0;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(4, 8, 18, 0.75);
    border: 1px solid var(--line);
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.75;
    color: #b9c6e6;
    white-space: pre;
}
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doc-card { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.doc-card h3 { margin: 0 0 8px; font-size: 15px; }
.doc-card p { margin: 0; color: var(--muted); font-size: 13px; }

/* 代码块外框 / 语言标签 / 复制按钮 */
.code-shell {
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(4, 8, 18, 0.75);
    overflow: hidden;
}
.code-shell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}
.code-shell-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8f9bb7;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.code-shell-lang::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}
.code-shell-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    color: #a8b3cd;
    font-size: 11.5px;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.code-shell-copy:hover { background: rgba(255, 255, 255, 0.09); color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.code-shell-copy.is-copied { color: #57d98a; border-color: rgba(87, 217, 138, 0.4); }
.code-shell .code-block { margin: 0; border: 0; border-radius: 0; background: transparent; }
.code-shell .code-block code { display: block; }
.code-shell .tok-key { color: #a9a3ff; }
.code-shell .tok-string { color: #7dd3a8; }
.code-shell .tok-number { color: #f6c15f; }
.code-shell .tok-bool { color: #ff9b9b; font-weight: 600; }
.code-shell .tok-cmd { color: #b7b1ff; font-weight: 600; }
.code-shell .tok-flag { color: #67e8f9; }
.code-shell .tok-url { color: #7dd3fc; }
.code-shell .tok-comment { color: #6f7a99; font-style: italic; }
.code-shell .tok-var { color: #f0abfc; }

/* ------------------------------ 平台落地页 ------------------------------ */
.platform-hero {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: center;
    padding: 48px 0 20px;
}
.platform-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.platform-hero h1 { margin: 16px 0 12px; font-size: clamp(28px, 4vw, 42px); line-height: 1.25; }
.platform-hero p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; max-width: 620px; }
.platform-big-icon {
    width: 180px;
    height: 180px;
    margin-left: auto;
    border-radius: 32px;
    display: grid;
    place-items: center;
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
    transform: rotate(-6deg);
}

/* -------------------------------- 响应式 ------------------------------- */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; }
    .platform-hero { grid-template-columns: 1fr; }
    .platform-big-icon { display: none; }
}

@media (max-width: 860px) {
    body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    .site-nav { display: none; }
    .header-actions { margin-left: auto; }
    .nav-toggle { display: flex; }
    .site-header.nav-open .site-nav {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 24px 20px;
        background: rgba(7, 11, 22, 0.98);
        border-bottom: 1px solid var(--line);
    }
    .mobile-dock {
        position: fixed;
        left: 50%;
        bottom: calc(8px + env(safe-area-inset-bottom));
        z-index: 75;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        width: min(520px, calc(100% - 20px));
        padding: 7px 5px 6px;
        background: rgba(8, 13, 26, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.07);
        backdrop-filter: blur(22px) saturate(150%);
        -webkit-backdrop-filter: blur(22px) saturate(150%);
        transform: translateX(-50%);
        transition: opacity 0.2s, transform 0.2s;
    }
    .mobile-dock::before {
        content: "";
        position: absolute;
        inset: 0 16% auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(143, 123, 255, 0.65), rgba(79, 209, 255, 0.45), transparent);
        pointer-events: none;
    }
    body.nav-open .mobile-dock {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, 18px);
    }
    .dock-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        min-width: 0;
        min-height: 54px;
        padding: 2px;
        border-radius: 14px;
        color: #8b96b4;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.2px;
        line-height: 1.2;
        transition: color 0.18s, background 0.18s;
        -webkit-tap-highlight-color: transparent;
    }
    .dock-icon {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        border: 1px solid transparent;
        border-radius: 11px;
        color: inherit;
        transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s;
    }
    .dock-item.active { color: var(--text); }
    .dock-item.active .dock-icon {
        color: #fff;
        background: linear-gradient(145deg, rgba(143, 123, 255, 0.3), rgba(79, 209, 255, 0.16));
        border-color: rgba(143, 123, 255, 0.35);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }
    .dock-item.active .dock-label { font-weight: 650; }
    .dock-item:active .dock-icon { transform: scale(0.92); }
    .dock-parse { margin-top: -17px; }
    .dock-parse .dock-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        color: #fff;
        background: var(--grad);
        border-color: rgba(255, 255, 255, 0.26);
        box-shadow: 0 12px 28px -8px rgba(103, 88, 255, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.34);
    }
    .dock-parse .dock-label { color: #e6eaf7; font-weight: 700; }
    .dock-parse:active .dock-icon { transform: translateY(1px) scale(0.95); }
    .result-card { grid-template-columns: 1fr; }
    .result-media { aspect-ratio: 16 / 10; }
    .steps { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .doc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .container { width: calc(100% - 32px); }
    .hero { padding-top: 48px; }
    .hero-title { font-size: 30px; }
    .parse-card { padding: 16px; }
    .parse-field textarea { padding: 18px; }
    .parse-actions { flex-direction: column; align-items: stretch; }
    .parse-submit { width: 100%; }
    .feature-grid, .article-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats strong { font-size: 22px; }
    .article-main { padding: 22px; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1; }
}

/* ==========================================================================
   主题切换（浅色 / 暗色）
   ========================================================================== */
.theme-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    color: var(--muted);
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s, transform .16s;
}
.theme-toggle:hover { color: var(--text); transform: translateY(-1px); }
html:not([data-theme="light"]) .t-moon { display: none; }
html[data-theme="light"] .t-sun { display: none; }

html[data-theme="light"] { color-scheme: light; }
html[data-theme="light"] {
    --bg: #f5f7fc;
    --bg-soft: #edf1fa;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: #ffffff;
    --line: rgba(23, 32, 58, 0.12);
    --line-strong: rgba(23, 32, 58, 0.2);
    --text: #161f33;
    --muted: #5d6a86;
    --shadow: 0 22px 56px -32px rgba(27, 39, 73, 0.35);
}

html[data-theme="light"] .aurora {
    background:
        radial-gradient(900px 620px at 12% -8%, rgba(143, 123, 255, 0.18), transparent 62%),
        radial-gradient(820px 580px at 88% 2%, rgba(79, 209, 255, 0.18), transparent 64%),
        radial-gradient(900px 720px at 50% 108%, rgba(255, 143, 207, 0.14), transparent 66%),
        linear-gradient(180deg, #f7f9ff 0%, #f2f5fc 60%, #eef2fa 100%);
}
html[data-theme="light"] .site-header { background: rgba(247, 250, 255, 0.84); }
html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a.active { background: rgba(23, 32, 58, 0.06); }
html[data-theme="light"] .brand-mark { background: rgba(23, 32, 58, 0.04); }
html[data-theme="light"] .hero-badge,
html[data-theme="light"] .platform-hero .badge { background: #fff; border-color: var(--line-strong); }
html[data-theme="light"] .btn-ghost { background: #fff; border-color: var(--line-strong); }
html[data-theme="light"] .btn-ghost:hover { background: #eef2fa; }
html[data-theme="light"] .parse-card {
    background: linear-gradient(160deg, #ffffff, rgba(255, 255, 255, 0.86));
    border-color: var(--line-strong);
}
html[data-theme="light"] .parse-field textarea { background: #fff; }
html[data-theme="light"] .parse-field textarea::placeholder { color: #8a94ad; }
html[data-theme="light"] .parse-progress { background: #f7f9fe; border-color: #e2e8f3; }
html[data-theme="light"] .parse-progress-head { color: #6d7891; }
html[data-theme="light"] .parse-progress-track { background: #e6ebf5; }
html[data-theme="light"] .select {
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%235d6a86' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}
html[data-theme="light"] .parse-note { color: var(--muted); }
html[data-theme="light"] .result-card { background: #fff; }
html[data-theme="light"] .result-copy-bar { border-top-color: #e3e8f2; }
html[data-theme="light"] .copy-btn { background: #f7f9fe; border-color: #e1e7f2; color: #46526b; }
html[data-theme="light"] .copy-btn:hover { border-color: #b9d9ef; color: #1677c8; }
html[data-theme="light"] .result-media,
html[data-theme="light"] .result-thumb { background: #e9eef8; }
html[data-theme="light"] .result-gallery { background: #f7f9ff; }
html[data-theme="light"] .tag { color: #4a3fd6; }
html[data-theme="light"] .tag-soft { color: var(--muted); }
html[data-theme="light"] .link-btn { color: var(--muted); border-bottom-color: rgba(23, 32, 58, 0.2); }
html[data-theme="light"] .result-error { background: #fff5f5; border-color: rgba(214, 69, 69, 0.28); }
html[data-theme="light"] .result-error p { color: #b42323; }
html[data-theme="light"] .recent-item { background: rgba(255, 255, 255, 0.78); }
html[data-theme="light"] .recent-badge { background: #eafaf0; border-color: rgba(16, 122, 55, 0.24); color: #0f7a37; }
html[data-theme="light"] .section-alt { background: linear-gradient(180deg, rgba(23, 32, 58, 0.035), transparent 70%); }
html[data-theme="light"] .step-num { color: rgba(23, 32, 58, 0.07); }
html[data-theme="light"] .prose { color: #344055; }
html[data-theme="light"] .prose > p:first-child { background: rgba(24, 119, 242, 0.055); color: #1c2940; }
html[data-theme="light"] .prose strong { color: #111a2e; }
html[data-theme="light"] .prose code { background: #eef2fa; color: #4a3fd6; }
html[data-theme="light"] .prose blockquote { background: #f3f0ff; color: #3c356f; }
html[data-theme="light"] .prose th { background: #f3f6fc; }
html[data-theme="light"] .prose pre { background: #f5f7fc; }
html[data-theme="light"] .prose pre code { color: #344055; }
html[data-theme="light"] .article-summary { background: #f7f9fe; color: #5d6880; }
html[data-theme="light"] .article-kicker { background: #e8f4ff; color: #1677c8; }
html[data-theme="light"] .article-end { border-top-color: #e0e6f1; }
html[data-theme="light"] .article-head .meta { color: var(--muted); }
html[data-theme="light"] .notice { color: #0d6b8c; }
html[data-theme="light"] .table th { background: rgba(23, 32, 58, 0.04); }
html[data-theme="light"] .account-nav nav a:hover,
html[data-theme="light"] .account-nav nav a.active { background: rgba(23, 32, 58, 0.06); }
html[data-theme="light"] .flash { background: #fff; }
html[data-theme="light"] .flash-success { background: #f2fdf6; color: #0f7a37; }
html[data-theme="light"] .flash-error { background: #fff6f6; color: #b42323; }
html[data-theme="light"] .flash-warning { background: #fffbf2; color: #8a5a0b; }
html[data-theme="light"] .batch-panel { background: #fff; }
html[data-theme="light"] .batch-head { background: linear-gradient(120deg, rgba(122, 108, 255, 0.1), rgba(45, 212, 191, 0.06)); }
html[data-theme="light"] .batch-thumb { background: #edf1f8; }
html[data-theme="light"] .batch-thumb .batch-no { color: #8a94ab; }
html[data-theme="light"] .batch-foot { background: #f8faff; }
html[data-theme="light"] .batch-main .batch-meta { color: #6d7891; }

/* 登录注册浅色适配 */
html[data-theme="light"] .auth-card::before { background: radial-gradient(120% 120% at 20% 0%, rgba(122, 108, 255, 0.1), transparent 70%); }
html[data-theme="light"] .auth-kicker { background: #f1efff; border-color: #ddd8ff; color: #5a4fd6; }
html[data-theme="light"] .auth-field label { color: #5d6880; }
html[data-theme="light"] .auth-input { background: #fff; border-color: #e2e8f3; box-shadow: 0 1px 2px rgba(23, 32, 58, 0.03); }
html[data-theme="light"] .auth-input:hover { border-color: #c6c0f5; }
html[data-theme="light"] .auth-input:focus-within { background: #fff; border-color: #7a6cff; box-shadow: 0 0 0 4px rgba(122, 108, 255, 0.12); }
html[data-theme="light"] .auth-icon { color: #8a94ad; }
html[data-theme="light"] .auth-input:focus-within .auth-icon { color: #5a4fd6; }
html[data-theme="light"] .auth-control { color: #17203a; }
html[data-theme="light"] .auth-control::placeholder { color: #9aa4bb; }
html[data-theme="light"] .auth-control:-webkit-autofill { -webkit-text-fill-color: #17203a; -webkit-box-shadow: 0 0 0 1000px #fff inset; }
html[data-theme="light"] .auth-optional { background: #f1f5fb; color: #7d879e; }
html[data-theme="light"] .auth-eye { color: #8a94ad; }
html[data-theme="light"] .auth-eye:hover { background: #f1f5fb; color: #46526b; }

/* 接口文档浅色适配 */
html[data-theme="light"] .code-shell { background: #fff; border-color: #e2e8f3; }
html[data-theme="light"] .code-shell-head { background: #f7f9fe; border-bottom-color: #e8edf6; }
html[data-theme="light"] .code-shell-lang { color: #5d6880; }
html[data-theme="light"] .code-shell-copy { background: #fff; border-color: #dde4f0; color: #46526b; }
html[data-theme="light"] .code-shell-copy:hover { background: #f2f6fd; border-color: #b9d9ef; color: #1677c8; }
html[data-theme="light"] .code-shell .tok-key { color: #6d28d9; }
html[data-theme="light"] .code-shell .tok-string { color: #0f766e; }
html[data-theme="light"] .code-shell .tok-number { color: #b45309; }
html[data-theme="light"] .code-shell .tok-bool { color: #b91c1c; }
html[data-theme="light"] .code-shell .tok-cmd { color: #4338ca; }
html[data-theme="light"] .code-shell .tok-flag { color: #0e7490; }
html[data-theme="light"] .code-shell .tok-url { color: #0369a1; }
html[data-theme="light"] .code-shell .tok-comment { color: #8a94ad; }
html[data-theme="light"] .code-shell .tok-var { color: #a21caf; }
html[data-theme="light"] .prose .md-file a { background: #f7f9fe; border-color: #e2e8f3; color: #344055; }
html[data-theme="light"] .prose .md-file a span { background: #eeedff; color: #5a4fd6; }
html[data-theme="light"] .prose .tok-key { color: #6d28d9; }
html[data-theme="light"] .prose .tok-string { color: #0f766e; }
html[data-theme="light"] .prose .tok-number { color: #b45309; }
html[data-theme="light"] .prose .tok-bool { color: #b91c1c; }
html[data-theme="light"] .prose .tok-cmd { color: #4338ca; }
html[data-theme="light"] .prose .tok-flag { color: #0e7490; }
html[data-theme="light"] .prose .tok-url { color: #0369a1; }
html[data-theme="light"] .prose .tok-comment { color: #8a94ad; }
html[data-theme="light"] .prose .tok-var { color: #a21caf; }

@media (max-width: 860px) {
    html[data-theme="light"] .site-header.nav-open .site-nav { background: rgba(247, 250, 255, 0.98); }
    html[data-theme="light"] .mobile-dock {
        background: rgba(255, 255, 255, 0.94);
        border-color: rgba(23, 32, 58, 0.13);
        box-shadow: 0 18px 44px -18px rgba(27, 39, 73, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    html[data-theme="light"] .dock-item { color: #6b7793; }
    html[data-theme="light"] .dock-item.active { color: #16203a; }
    html[data-theme="light"] .dock-item.active .dock-icon {
        color: #5546e8;
        background: linear-gradient(145deg, #efecff, #e5f7ff);
        border-color: #d9d5ff;
        box-shadow: inset 0 1px 0 #fff;
    }
    html[data-theme="light"] .dock-parse .dock-label { color: #1c2740; }
}

/* 视频预览弹层 */
body.preview-open { overflow: hidden; }
body.preview-open .mobile-dock { opacity: 0; pointer-events: none; transform: translate(-50%, 14px); }
.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(6px);
}
.preview-dialog {
    width: min(960px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: var(--bg-soft);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.preview-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.preview-close {
    flex: none;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-strong);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.preview-close:hover { border-color: var(--line-strong); }
.preview-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px;
    overflow: auto;
}
.preview-body video {
    width: 100%;
    max-height: 72vh;
    border-radius: 12px;
    background: #000;
}
.preview-tip {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}
@media (max-width: 640px) {
    .preview-modal { padding: 10px; }
    .preview-dialog { max-height: 96vh; border-radius: 14px; }
    .preview-body { padding: 10px; }
}

/* 图集预览弹层 */
.image-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(8px);
}
.image-preview-dialog {
    position: relative;
    width: min(880px, 94vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: var(--bg-soft);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.image-preview-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #050812;
}
.image-preview-stage img {
    max-width: 100%;
    max-height: 72vh;
    border-radius: 10px;
    object-fit: contain;
}
.image-preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(5, 10, 22, 0.72);
    color: #fff;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}
.image-preview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(5, 10, 22, 0.68);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.image-preview-nav:disabled { opacity: .3; cursor: default; }
.image-preview-prev { left: 12px; }
.image-preview-next { right: 12px; }
.image-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
}
.image-preview-count { font-size: 13px; color: var(--muted); }
.image-preview-download { flex: none; }
@media (max-width: 640px) {
    .image-preview-modal { padding: 0; }
    .image-preview-dialog {
        width: 100vw;
        height: 100vh;
        max-height: none;
        border: 0;
        border-radius: 0;
    }
    .image-preview-stage img { max-height: 76vh; }
    .image-preview-nav { width: 34px; height: 46px; font-size: 24px; }
}

/* ==========================================================================
   移动端适配补强（所有前台页面）
   ========================================================================== */
html, body { max-width: 100%; }
body { overflow-x: hidden; }
img, video, svg { max-width: 100%; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }

@media (max-width: 1024px) {
    .recent-list { grid-template-columns: 1fr; max-width: 760px; }
    .article-main { padding: 24px; }
}

@media (max-width: 860px) {
    .header-inner { gap: 12px; min-height: 66px; }
    .site-header.nav-open .site-nav { top: 66px; }
    .brand-text em { display: none; }
    .brand-text strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .hero-badge { max-width: 100%; flex-wrap: wrap; justify-content: center; text-align: center; }
    .section { padding: 54px 0; }
    .cta-inner { padding: 26px 24px; }
}

@media (max-width: 600px) {
    .container, .container.narrow { width: calc(100% - 24px); }
    .hero { padding: 38px 0 30px; }
    .hero-title { font-size: 27px; line-height: 1.28; letter-spacing: -0.3px; }
    .hero-sub { font-size: 14px; line-height: 1.7; }
    .hero-badge { padding: 7px 12px; font-size: 11.5px; line-height: 1.5; }
    .parse-card { padding: 14px; border-radius: 18px; margin-top: 24px; }
    .parse-field textarea { min-height: 92px; padding: 14px; font-size: 14px; border-radius: 14px; }
    .parse-actions { gap: 10px; }
    .parse-submit { width: 100%; min-width: 0; }
    .parse-note { font-size: 11.5px; }
    .batch-head { padding: 14px; align-items: flex-start; }
    .batch-head h3 { font-size: 14px; }
    .batch-item { grid-template-columns: 54px minmax(0, 1fr); gap: 11px; padding: 13px 14px; }
    .batch-thumb { width: 54px; height: 54px; }
    .batch-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 65px; }
    .batch-actions .btn { padding: 7px 10px; font-size: 11.5px; }
    .batch-foot { padding: 11px 14px; font-size: 11.5px; }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; margin-top: 28px; }
    .hero-stats strong { font-size: 21px; }
    .hero-stats span { font-size: 11.5px; }
    .section-head { margin-bottom: 24px; }
    .section-head h2 { font-size: 22px; }
    .section-head p { font-size: 13px; }
    .platforms-hero { padding-top: 22px; }
    .platforms-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
    .platforms-actions .btn { width: 100%; }
    .platforms-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
    .platforms-list-section { padding-top: 42px; }
    .platform-grid { grid-template-columns: 1fr; gap: 10px; }
    .platform-card { padding: 12px 14px; }
    .recent-list { gap: 8px; }
    .recent-item { padding: 10px 12px; gap: 10px; }
    .recent-main strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .recent-badge { display: none; }
    .steps { gap: 12px; }
    .step-card { padding: 22px 18px; }
    .feature-grid { gap: 12px; }
    .feature-card { padding: 18px; }
    .faq-item summary { padding: 14px 42px 14px 14px; font-size: 13.5px; }
    .faq-body { padding: 0 14px 14px; }
    .article-main { padding: 18px; border-radius: 18px; }
    .article-head h1 { font-size: 22px; }
    .article-layout { gap: 16px; }
    .auth-wrap { padding: 28px 0 46px; gap: 18px; }
    .auth-card { padding: 20px; border-radius: 18px; }
    .auth-side h1 { font-size: 24px; }
    .page-hero { padding: 34px 0 20px; }
    .page-hero h1 { font-size: 24px; }
    .panel { padding: 18px; border-radius: 18px; }
    .result-card { padding: 14px; gap: 16px; border-radius: 18px; }
    .result-media { aspect-ratio: 16 / 10; max-height: 240px; }
    .result-title { font-size: 18px; }
    .result-actions { gap: 8px; }
    .result-actions .btn { flex: 1 1 140px; min-width: 0; padding-left: 14px; padding-right: 14px; }
    .result-links { gap: 8px 14px; }
    .result-copy-bar { gap: 8px; }
    .result-copy-bar .btn { flex: 1 1 42%; justify-content: center; padding: 9px 10px; }
    .parse-progress { margin-top: 12px; padding: 10px 12px; }
    .result-gallery { padding: 14px; }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .cta { padding: 34px 0 48px; }
    .cta-inner { padding: 22px 18px; border-radius: 18px; }
    .cta-inner h2 { font-size: 20px; }
    .cta-actions { width: 100%; flex-wrap: wrap; }
    .cta-actions .btn { flex: 1 1 140px; padding-left: 14px; padding-right: 14px; }
    .site-footer { padding: 36px 0 20px; }
    .footer-grid { gap: 22px; }
    .footer-bottom { margin-top: 26px; font-size: 11.5px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-card { padding: 14px; }
    .stat-card strong { font-size: 19px; }
    .account-layout { padding: 26px 0 48px; }
    .account-nav { padding: 14px; }
    .account-nav nav { flex-direction: row; flex-wrap: wrap; }
    .account-nav nav a { flex: 1 1 auto; text-align: center; }
    .code-block { padding: 14px; font-size: 12px; overflow-x: auto; }
    .code-block pre { white-space: pre; min-width: max-content; }
    .code-shell { margin: 14px 0; border-radius: 12px; }
    .code-shell-head { padding: 7px 10px 7px 12px; }
    .code-shell-copy { padding: 5px 8px; }
    .auth-wrap { grid-template-columns: 1fr; gap: 22px; padding: 26px 0 54px; align-items: stretch; }
    .auth-side h1 { font-size: 26px; margin-bottom: 10px; }
    .auth-side p { font-size: 13px; }
    .auth-points { margin-top: 16px; gap: 9px; }
    .auth-card { padding: 26px 20px 24px; }
    .auth-card::before { height: 96px; }
    .auth-card-head { margin-bottom: 20px; }
    .auth-card h2 { font-size: 20px; }
    .auth-input { height: 52px; }
    .auth-submit { min-height: 52px; }
    .prose .md-media video { max-height: 320px; border-radius: 10px; }
    .breadcrumb { font-size: 11.5px; }
    .pager { gap: 5px; }
    .pager a, .pager span { min-width: 30px; height: 30px; font-size: 12px; }

    /* 顶部导航压缩，避免 320px 宽度溢出 */
    .header-inner { gap: 8px; min-height: 62px; }
    .site-header.nav-open .site-nav { top: 62px; padding: 10px 14px 16px; }
    .brand { gap: 8px; }
    .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
    .brand-text strong { max-width: 112px; font-size: 14px; }
    .header-actions { gap: 4px; }
    .header-actions .btn-primary { display: none; }
    .header-actions .btn-text { padding: 6px 4px; font-size: 12px; }
    .header-actions .btn-ghost { max-width: 92px; padding: 7px 10px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
    .theme-toggle { width: 32px; height: 32px; }
    .nav-toggle { padding: 6px 2px; }
    .nav-toggle span { width: 20px; }

    /* 用户中心卡密表单、内联表单在窄屏换行 */
    .input, .select { min-width: 0; }
    .field .input[style*="min-width"] { min-width: 0 !important; }
    .form-actions { flex-wrap: wrap; }
}

@media (max-width: 380px) {
    .mobile-dock { width: calc(100% - 12px); padding-left: 3px; padding-right: 3px; border-radius: 17px; }
    .dock-item { min-height: 50px; font-size: 10.5px; }
    .dock-icon { width: 29px; height: 29px; border-radius: 10px; }
    .dock-parse { margin-top: -15px; }
    .dock-parse .dock-icon { width: 44px; height: 44px; border-radius: 14px; }
    .hero-title { font-size: 24px; }
    .header-inner { gap: 6px; }
    .header-actions { gap: 2px; }
    .brand-text strong { max-width: 100px; font-size: 12.5px; }
    .header-actions .logout-link { display: none; }
    .header-actions .btn-ghost { max-width: 76px; }
    .hero-stats { grid-template-columns: 1fr; }
    .platforms-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .stat-grid { grid-template-columns: 1fr; }
    .result-actions .btn { flex-basis: 100%; }
    .cta-actions .btn { flex-basis: 100%; }
}
