/* SoundBin / 声匣 — 出海向浅色工具站样式（无第三方 CSS 框架） */

:root {
    --bg: #f4f6f8;
    --bg-subtle: #eef1f5;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --accent-soft: rgba(13, 148, 136, 0.12);
    --accent-ring: rgba(13, 148, 136, 0.35);
    /* 工作台虚线描边：略偏紫，接近常见转换站主色，与品牌青绿形成层次 */
    --workspace-outline: #7c3aed;
    --workspace-outline-soft: rgba(124, 58, 237, 0.35);
    --footer-muted: #f1f5f9;
    --footer-muted-border: #e2e8f0;
    --danger: #dc2626;
    --success: #15803d;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
    --font: "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    --header-h: 4.25rem;
    --content-max: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(13, 148, 136, 0.09) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* —— 顶栏（简洁国际工具站） —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
}

.brand--logo {
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    border-radius: 11px;
    gap: 0.7rem;
}

.brand--logo:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.brand-mark {
    display: block;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--accent-ring);
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 字标：与图标同色系的「Master」+ 深灰「Convert」，贴近常见转换站横向 Logo 结构 */
.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}

.brand-wordmark__accent {
    color: var(--accent);
}

.brand-wordmark__neutral {
    color: #1e293b;
}

@media (max-width: 480px) {
    .brand-wordmark {
        font-size: 1.05rem;
    }
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-muted);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.lang-btn[aria-pressed="true"] {
    background: var(--surface);
    color: var(--accent-hover);
    box-shadow: inset 0 0 0 1px var(--border);
}

/* 语言入口：跳转到 /xx/ 独立页，不做整站 JS 换文案 */
.lang-menu {
    position: relative;
    display: inline-block;
}

.lang-menu__btn {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-muted);
    font-family: inherit;
}

.lang-menu__btn::-webkit-details-marker {
    display: none;
}

.lang-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 12rem;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 60;
}

body.rtl .lang-menu__panel {
    right: auto;
    left: 0;
}

.lang-menu__link {
    display: block;
    padding: 0.45rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

.lang-menu__link:hover,
.lang-menu__link:focus-visible {
    background: var(--surface-muted);
    color: var(--accent-hover);
}

.lang-menu__link.is-current {
    font-weight: 600;
    color: var(--accent-hover);
    background: var(--accent-soft);
}

/* 阿拉伯语 RTL：仅阿语页加 body.rtl，不影响其它语言 */
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: "Noto Naskh Arabic", "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

body.ltr {
    direction: ltr;
}

/* —— 广告区（预留最小高度，降低接入 AdSense 后的 CLS） —— */
.ad-region {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.ad-region--top {
    padding-top: 1rem;
    padding-bottom: 0.25rem;
}

.ad-region-inner {
    width: 100%;
}

.ad-caption {
    margin: 0 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

.ad-slot {
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-strong);
    background: var(--surface-muted);
    overflow: hidden;
}

.ad-slot-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot--leaderboard .ad-slot-inner {
    min-height: 100px;
}

.ad-slot--inline .ad-slot-inner {
    min-height: 120px;
}

.ad-slot--sidebar .ad-slot-inner {
    min-height: 280px;
}

.ad-slot--footer .ad-slot-inner {
    min-height: 100px;
}

.ad-region--inline {
    margin: 1.5rem 0;
}

.ad-region--footer {
    padding-bottom: 0.5rem;
    max-width: var(--content-max);
}

.ad-region--footer .ad-caption {
    text-align: left;
}

/* 移动端主栏：广告锚点（与侧栏断点 1100px 对齐；无空状态框线，由广告注入后撑开） */
.ad-region--mobile-anchor {
    display: none;
    margin: 0;
    padding: 0;
    max-width: none;
}

@media (max-width: 1099px) {
    .ad-region--mobile-anchor {
        display: block;
    }
}

.ad-slot-mobile-inner {
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
}

/* —— 主布局 —— */
.page-shell {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.5rem;
}

/* 主页 / 工具页：加宽仅 PC（手机仍与普通页同宽） */
.page-shell--rails {
    max-width: var(--content-max);
}

@media (min-width: 1100px) {
    .page-shell--rails {
        max-width: min(1360px, 100% - 2.5rem);
    }
}

.layout-grid {
    display: grid;
    gap: 1.75rem;
    align-items: start;
}

.layout-grid--rails {
    grid-template-columns: 1fr;
}

.layout-main {
    min-width: 0;
}

/* —— Hero（站点说明与当前页主题，与顶栏 Logo 分离） —— */
.hero {
    margin-bottom: 1.5rem;
}

.hero-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-hover);
}

.hero-product-title {
    margin: 0;
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.2;
}

.hero-tagline {
    margin: 0.35rem 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 40em;
}

.hero-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.2rem, 2.6vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.25;
}

.hero-subtitle {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 36em;
}

/* 工具页：标题区居中，引导视线落到下方主卡片 */
.hero--tool {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 40rem;
}

.hero--tool .hero-kicker,
.hero--tool .hero-tagline,
.hero--tool .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* —— 单一中央工作台（上传 → 同卡切换为列表 + 转换） —— */
.converter-workspace {
    position: relative;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.75rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08), 0 4px 14px rgba(15, 23, 42, 0.04);
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* 首页：工作台略放大，视觉重心落在「上传 / 转换」 */
.converter-workspace--home-focus {
    max-width: min(56rem, 100%);
    border: 1px solid var(--border-strong);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.09), 0 6px 20px rgba(15, 23, 42, 0.05);
}

.converter-workspace.workspace-dragover {
    box-shadow: 0 0 0 3px var(--workspace-outline-soft), 0 16px 48px rgba(15, 23, 42, 0.1);
}

.workspace-empty {
    padding: 0;
}

.workspace-active {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.workspace-active[hidden] {
    display: none !important;
}

.workspace-active-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem 0.65rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
}

.workspace-active-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.workspace-active-meta {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.results-list--workspace {
    padding: 1rem 1.25rem;
    max-height: min(52vh, 28rem);
    overflow-y: auto;
    gap: 0.75rem;
}

.convert-all-bar {
    padding: 0.65rem 1.35rem;
    background: var(--surface-muted);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.convert-all-bar .export-format-hint {
    margin: 0.4rem 0 0;
}

/* —— 批量转换总进度（底部操作栏上方） —— */
.convert-progress-wrap {
    padding: 0.65rem 1.25rem 0.75rem;
    background: var(--surface-muted);
    border-top: 1px solid var(--border);
}

.convert-progress-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.14);
    overflow: hidden;
    position: relative;
}

.convert-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--accent) 0%,
        #2dd4bf 55%,
        var(--accent-hover) 100%
    );
    transition: width 0.32s ease-out;
    position: relative;
    overflow: hidden;
}

.convert-progress-fill.is-processing::after {
    content: "";
    position: absolute;
    top: 0;
    left: -45%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.55),
        transparent
    );
    animation: convert-progress-sweep 1.15s linear infinite;
}

@keyframes convert-progress-sweep {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(320%);
    }
}

.convert-progress-wrap.is-complete .convert-progress-fill {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.convert-progress-wrap.is-complete .convert-progress-fill::after {
    display: none;
}

.convert-progress-meta {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.35;
}

.convert-progress-wrap.is-complete .convert-progress-meta {
    color: #047857;
}

.workspace-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
}

.workspace-footer__left {
    flex: 1 1 12rem;
    padding: 1rem 1.25rem;
    background: var(--footer-muted);
    border-top: 1px solid var(--footer-muted-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.workspace-footer__batch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
}

.btn-compact {
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-add-more {
    align-self: flex-start;
    font-weight: 600;
}

.workspace-footer__right {
    flex: 1 1 10rem;
    min-width: min(100%, 14rem);
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.workspace-footer__right .convert-panel-hint {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0;
    max-width: 22rem;
}

.btn-convert-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    background: #fff;
    color: var(--accent-hover);
}

.btn-convert-cta:hover:not(:disabled) {
    filter: brightness(1.03);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

.btn-convert-cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-convert-cta__icon {
    flex-shrink: 0;
}

.drop-zone--prominent {
    margin: clamp(1.25rem, 3vw, 2rem);
    padding: clamp(2.35rem, 6vw, 3.6rem) clamp(1.25rem, 4vw, 2rem);
    min-height: min(220px, 42vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.85rem;
    border: 2px dashed var(--workspace-outline);
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(180deg, #faf5ff 0%, var(--surface-muted) 55%, #f1f5f9 100%);
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.06);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.drop-zone--prominent:hover {
    border-color: #6d28d9;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12), 0 0 0 4px var(--accent-soft);
}

.drop-zone--prominent:focus {
    outline: none;
}

.drop-zone--prominent:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.drop-zone--prominent.dragover {
    border-color: var(--accent);
    border-style: solid;
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-ring);
    transform: scale(1.01);
}

.drop-zone--prominent .drop-zone-icon {
    color: var(--workspace-outline);
    transition: color 0.2s ease, transform 0.2s ease;
}

.drop-zone--prominent.dragover .drop-zone-icon {
    color: var(--accent);
    transform: scale(1.05);
}

.btn-pick-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    border-radius: 12px;
    box-shadow: 0 6px 22px var(--accent-ring);
}

.drop-zone--prominent .drop-zone-lead {
    font-size: clamp(1.02rem, 2.4vw, 1.2rem);
    font-weight: 600;
    color: var(--text);
    max-width: 28rem;
    margin: 0;
}

.drop-zone--prominent .drop-zone-hint {
    max-width: 36rem;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

/* —— 卡片 —— */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.card--muted {
    background: var(--surface-muted);
    box-shadow: none;
    border-style: solid;
}

.card--upload {
    padding: 0;
    overflow: hidden;
}

.card--results {
    padding: 1.25rem 1.35rem 1.5rem;
}

.card--convert {
    padding: 0;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.export-format-bar {
    margin: 0;
    padding: 1.25rem 1.35rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-muted);
}

.export-format-bar--panel {
    border-bottom: 1px solid var(--border);
}

.convert-panel-actions {
    padding: 1rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.btn-start-convert {
    min-width: 10rem;
}

.convert-panel-hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    max-width: 36rem;
}

.section-title--convert {
    margin: 0;
    padding: 1.1rem 1.35rem 0.35rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.export-format-bar label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.export-format-bar select {
    width: 100%;
    max-width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
}

.export-format-hint {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.export-action-hint {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: var(--accent-hover);
    font-weight: 500;
    line-height: 1.45;
}

.drop-zone {
    padding: 2.25rem 1.5rem 2rem;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
    border: 2px dashed transparent;
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
}

.drop-zone:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.drop-zone:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.drop-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.drop-zone-icon {
    color: var(--accent);
    margin-bottom: 0.65rem;
}

.drop-zone-lead {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.drop-zone-count {
    margin: 1rem 0 0.4rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.drop-zone-hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.drop-zone.format-picked-pulse {
    animation: export-pulse-ring 1.1s ease-out 1;
}

@keyframes export-pulse-ring {
    0% {
        box-shadow: 0 0 0 0 var(--accent-ring);
    }
    100% {
        box-shadow: 0 0 0 12px transparent;
    }
}

.btn {
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border: 1px solid transparent;
    transition: transform 0.1s, box-shadow 0.15s, filter 0.15s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(180deg, #14b8a6 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px var(--accent-ring);
}

.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px var(--accent-ring);
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-secondary);
    border-color: var(--border-strong);
}

.btn-small {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
}

.batch-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.results-empty {
    color: var(--text-muted);
    padding: 0.5rem 0 1rem;
    font-size: 0.95rem;
}

.results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 1rem;
    padding: 1.1rem;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    align-items: start;
}

@media (max-width: 640px) {
    .job-card {
        grid-template-columns: 72px 1fr;
    }

    .job-card-actions {
        grid-column: 1 / -1;
    }
}

.job-cover {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface);
    border: 1px solid var(--border);
}

.job-cover.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-align: center;
    padding: 0.25rem;
}

.job-main h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    word-break: break-all;
    color: var(--text);
}

.job-meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.job-meta span + span::before {
    content: " · ";
}

.status-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-top: 0.35rem;
}

.status-waiting {
    background: var(--border);
    color: var(--text-muted);
}

.status-imported {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.status-reading {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.status-running {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.status-done {
    background: rgba(21, 128, 61, 0.12);
    color: var(--success);
}

.status-error {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.job-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 88px;
}

.job-error {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: var(--danger);
    grid-column: 1 / -1;
}

/* —— 页脚 —— */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 1.5rem 1.25rem 2.5rem;
}

.site-footer .ad-region {
    margin-bottom: 1.25rem;
}

.footer-copy {
    max-width: var(--content-max);
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-disclaimer,
.footer-legal {
    margin: 0 0 0.75rem;
    max-width: 48rem;
    line-height: 1.55;
}

/* —— 弹层（浅色） —— */
.modal[hidden] {
    display: none !important;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.modal-dialog h3 {
    margin: 0 0 1rem;
    padding-right: 2.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.modal-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.modal-body ul,
.modal-body ol {
    padding-left: 1.25rem;
}

.modal-body li {
    margin-bottom: 0.4rem;
}

.modal-body code {
    font-size: 0.82em;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

/* —— 工作台：输出格式弹层选择器 —— */
.output-picker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.export-format-hint--picker {
    flex: 1 1 12rem;
    margin: 0;
    max-width: 36rem;
}

/* 锚定在「输出」按钮旁的下拉面板，非全屏弹窗 */
.output-picker {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    z-index: 1;
}

.output-picker.is-open {
    z-index: 80;
}

.output-picker-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.output-picker-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.output-colon {
    margin-left: 0.05em;
}

.output-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 5.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.output-picker-btn:hover {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.output-picker.is-open .output-picker-btn,
.output-picker-btn.is-open {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

.output-picker-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.output-picker.is-open .output-picker-chevron {
    transform: rotate(180deg);
}

.export-picker-popover[hidden] {
    display: none !important;
}

/* top/left/width 由 JS 按按钮位置计算（fixed），避免工作台 overflow:hidden 裁切 */
.export-picker-popover {
    position: fixed;
    width: min(22.5rem, calc(100vw - 1rem));
    max-width: 22.5rem;
    padding: 0.75rem 0.8rem 0.85rem;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow:
        0 16px 48px rgba(15, 23, 42, 0.12),
        0 6px 16px rgba(15, 23, 42, 0.08);
    z-index: 90;
}

.export-picker-popover .export-picker-search-wrap {
    position: relative;
    margin-bottom: 0.75rem;
}

.export-picker-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
}

.export-picker-search {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.35rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
}

.export-picker-search::placeholder {
    color: var(--text-muted);
}

.export-picker-search:focus {
    outline: 2px solid var(--accent-ring);
    outline-offset: 1px;
    border-color: var(--accent);
    background: var(--surface);
}

.export-picker-popover .export-picker-body {
    display: flex;
    gap: 0;
    min-height: 11rem;
    max-height: min(48vh, 20rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
}

.export-picker-nav {
    flex: 0 0 7.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: var(--surface-muted);
    padding: 0.35rem 0;
}

.export-picker-nav-item {
    position: relative;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.65rem 0.55rem 0.5rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.35;
    border-bottom: 1px solid var(--border);
    transition: color 0.12s ease, background 0.12s ease;
}

.export-picker-nav-item:last-child {
    border-bottom: none;
}

.export-picker-nav-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.6);
}

.export-picker-nav-item.is-active {
    color: #2563eb;
    background: var(--surface);
    font-weight: 700;
}

.export-picker-nav-item.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--surface);
    margin-right: -1px;
}

.export-picker-main {
    flex: 1 1 auto;
    min-width: 0;
    overflow-y: auto;
    padding: 0.65rem 0.75rem 0.85rem;
}

.export-format-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.export-format-section-title {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.export-format-section-cells {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}

.export-format-cell {
    min-height: 2.35rem;
    padding: 0.35rem 0.3rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        border-color 0.12s ease,
        background 0.12s ease,
        color 0.12s ease;
}

.export-format-cell:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.export-format-cell.is-selected {
    border-color: #1d4ed8;
    background: #2563eb;
    color: #fff;
}

.export-format-cell.is-selected:hover {
    background: #1d4ed8;
    border-color: #1e40af;
    color: #fff;
}

/* 已在注册表中登记、尚未接入浏览器编码的格式 */
.export-format-cell.is-pending {
    opacity: 0.42;
    cursor: not-allowed;
    color: var(--text-muted);
    font-weight: 500;
}

.export-format-cell.is-pending:hover {
    border-color: var(--border);
    color: var(--text-muted);
    background: var(--surface-muted);
}

.export-format-section.is-hidden,
.export-format-cell.is-hidden {
    display: none;
}

.export-picker-empty {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 480px) {
    .export-format-section-cells {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .export-picker-nav {
        flex-basis: 6.25rem;
    }
}

/* —— SEO 落地页：顶栏文字链接、内容区块、页脚导航 —— */
.nav-btn--ghost {
    background: transparent;
}

.header-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.header-nav__link:hover {
    color: var(--accent-hover);
    border-color: var(--border);
    background: var(--surface-muted);
}

.header-nav__link.is-current {
    color: var(--accent-hover);
    border-color: var(--accent-soft);
    background: var(--accent-soft);
}

.hero-title--h1 {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.hero-subtitle--seo {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 42rem;
}

.hero--seo {
    margin-bottom: 1rem;
}

/* 首页首屏：留白与层级略加强，突出「立即上传」 */
.hero--home-product {
    max-width: 46rem;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    padding-bottom: 0.25rem;
}

.hero--home-product .hero-title--h1 {
    font-size: clamp(1.85rem, 4.6vw, 2.65rem);
    line-height: 1.15;
}

.hero--home-product .hero-subtitle--seo {
    font-size: 1.08rem;
    color: var(--text-secondary);
}

.btn--hero-primary {
    padding: 0.72rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 24px var(--accent-ring);
}

.btn--hero-primary:hover {
    box-shadow: 0 10px 28px rgba(13, 148, 136, 0.38);
}

.hero-brand {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-hover);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 0.75rem;
    margin-top: 1.15rem;
}

.hero-trust {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-trust__item {
    position: relative;
    padding-left: 0.95rem;
}

.hero-trust__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.formats-simple {
    list-style: none;
    margin: 0 0 0.25rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.55rem;
}

.formats-simple__item {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.seo-block__lead--tight {
    margin-bottom: 0.75rem;
}

.seo-block__lead--about {
    margin-bottom: 0;
    max-width: 48rem;
}

.seo-block {
    margin-top: 1.25rem;
    padding: 1.35rem 1.5rem;
}

.seo-block__h {
    margin: 0 0 0.65rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.seo-block__lead {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.seo-block__note {
    margin: 1rem 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.card--seo-muted {
    background: var(--surface-muted);
    border-style: dashed;
}

.card--seo-tight {
    padding: 1.15rem 1.35rem;
}

.card--seo-soft {
    background: var(--surface-muted);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    border-color: var(--border);
}

.seo-block--popular {
    margin-top: 2rem;
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.seo-block--why,
.seo-block--how {
    margin-top: 1.5rem;
}

.seo-block--formats {
    margin-top: 1.35rem;
}

.seo-block--faq {
    margin-top: 1.25rem;
}

.seo-block--about {
    margin-top: 1rem;
}

.seo-block__lead--compact {
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.seo-block__h--faq {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.card--faq-muted {
    background: var(--bg-subtle);
    border-style: solid;
    border-color: var(--border);
    box-shadow: none;
}

.formats-group-label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.formats-simple--inline {
    margin-bottom: 0.15rem;
}

/* 热门工具：卡片网格，主入口感 */
.popular-tool-grid {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem 1rem;
}

.popular-tool-grid__cell {
    margin: 0;
    min-height: 100%;
}

.popular-tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    height: 100%;
    min-height: 5.5rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.popular-tool-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.12);
    transform: translateY(-2px);
}

.popular-tool-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.popular-tool-card__name {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.25;
}

.popular-tool-card__desc {
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.why-grid {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.why-grid__item {
    margin: 0;
    padding: 1rem 1.1rem;
    min-height: 7.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
}

.why-grid__title {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
}

.why-grid__body {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-grid__item {
        min-height: 0;
    }

    .popular-tool-grid {
        grid-template-columns: 1fr;
    }
}

.how-steps--cards {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    counter-reset: none;
}

.how-steps--cards .how-steps__item--card {
    margin: 0;
    padding: 1rem 1rem 1rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    position: relative;
}

.how-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.how-steps--cards .how-steps__title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.how-steps--cards .how-steps__body {
    font-size: 0.84rem;
    line-height: 1.42;
}

@media (max-width: 820px) {
    .how-steps--cards {
        grid-template-columns: 1fr;
    }
}

/* FAQ：<details> 折叠，默认前两项展开，权重低于主流程 */
.faq-accordion {
    margin-top: 0.35rem;
    border-top: 1px solid var(--border);
}

.faq-details {
    border-bottom: 1px solid var(--border);
}

.faq-details__summary {
    cursor: pointer;
    list-style: none;
    padding: 0.85rem 0.15rem 0.85rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

.faq-details__summary::-webkit-details-marker {
    display: none;
}

.faq-details__summary::after {
    content: "";
    float: right;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.35rem;
    margin-left: 0.75rem;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.faq-details[open] .faq-details__summary::after {
    transform: rotate(-135deg);
    margin-top: 0.55rem;
}

body.rtl .faq-details__summary::after {
    float: left;
    margin-left: 0;
    margin-right: 0.75rem;
}

.faq-details__body {
    padding: 0 0 1rem;
}

.faq-details__body p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.why-list,
.formats-grid__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.why-list__item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.why-list__item:last-child {
    border-bottom: 0;
}

.why-list__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
}

.why-list__body {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.formats-grid__heading {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.formats-grid__list li {
    position: relative;
    padding-left: 1.1rem;
    margin: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.formats-grid__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.75;
}

.how-steps {
    margin: 0;
    padding-left: 1.15rem;
}

.how-steps__item {
    margin: 0.85rem 0;
}

.how-steps__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
}

.how-steps__body {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item__q {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 700;
}

.faq-item__a {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.tool-landing__head {
    margin-bottom: 1rem;
}

.tool-landing__h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.65rem;
    line-height: 1.2;
}

.tool-landing__intro {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-secondary);
    max-width: 48rem;
}

.related-tools {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.related-tools a {
    font-weight: 600;
    color: var(--accent-hover);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.related-tools a:hover {
    border-bottom-color: var(--accent);
}

.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 1.75rem 1.5rem 0;
    max-width: var(--content-max);
    margin: 0 auto;
}

.footer-sitemap__title {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.footer-sitemap__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-sitemap__list li {
    margin: 0.4rem 0;
}

.footer-sitemap__list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-sitemap__list a:hover {
    color: var(--accent-hover);
}

.page-shell--simple {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.card--simple {
    padding: 1.75rem 1.75rem 1.5rem;
}

.simple-main__h1 {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.simple-main__body.prose {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.simple-main__body.prose p {
    margin: 0 0 1rem;
}

.simple-main__body.prose ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.simple-main__body.prose a {
    color: var(--accent-hover);
    font-weight: 600;
}

.simple-main__body.prose h2 {
    margin: 1.5rem 0 0.65rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.simple-main__body.prose h2:first-child {
    margin-top: 0;
}

.tool-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tool-trust-strip__item {
    position: relative;
    padding-left: 0.9rem;
}

.tool-trust-strip__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.85;
}

.tool-trust-strip--compact {
    justify-content: center;
    margin-top: 0.65rem;
}

.drop-zone-count.is-hidden {
    display: none;
}

.converter-workspace--tool-focus {
    max-width: min(56rem, 100%);
    border: 1px solid var(--border-strong);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.09), 0 6px 20px rgba(15, 23, 42, 0.05);
}

.tool-page-hero {
    margin: 0 auto 0.5rem;
    max-width: 46rem;
    text-align: center;
}

.tool-page-hero__h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.55rem;
    line-height: 1.2;
}

.tool-page-hero__intro {
    margin: 0 auto;
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 40rem;
}

.seo-block--how-tool {
    margin-top: 0.25rem;
}

.how-steps--tool-lite.how-steps--cards {
    margin-top: 0.55rem;
}

.formats-simple--tool {
    justify-content: center;
}

.seo-block--formats-tool .seo-block__h {
    text-align: center;
}

.seo-block__note--tool-formats {
    text-align: center;
    max-width: 38rem;
    margin: 0.5rem auto 0;
    font-size: 0.88rem;
}

.popular-tool-grid--related {
    margin-top: 0.6rem;
}

.popular-tool-card--home {
    background: var(--surface-muted);
    border-style: dashed;
    min-height: 4.5rem;
}

.popular-tool-card--home:hover {
    border-style: solid;
}

.drop-zone--prominent:hover .drop-zone-icon,
.drop-zone--prominent:focus-visible .drop-zone-icon {
    color: #6d28d9;
}

.footer-brand {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 1.25rem 1.25rem 0;
    border-top: 1px solid var(--footer-muted-border);
}

.footer-brand__text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 52rem;
}

.footer-copyright {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form {
    margin: 1.5rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--border);
}

.contact-form__hint {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.contact-form__alert {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.45;
}

.contact-form__alert--ok {
    background: color-mix(in srgb, var(--success, #15803d) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--success, #15803d) 35%, var(--border));
    color: var(--text);
}

.contact-form__alert--err {
    background: color-mix(in srgb, var(--danger, #b91c1c) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--danger, #b91c1c) 30%, var(--border));
    color: var(--text);
}

.contact-form__row {
    margin-bottom: 1rem;
}

.contact-form__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--surface);
    color: var(--text);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 8rem;
}

.contact-form__actions {
    margin-top: 1.25rem;
}

.contact-form__after {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.blog-section {
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.blog-section__h {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-tags__item {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.blog-post-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.blog-post-list__item {
    margin-bottom: 0.45rem;
}

.blog-post-list__title {
    font-weight: 500;
    color: var(--text);
}

.blog-post-list__soon {
    margin-left: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.blog-section__tools {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.blog-footer-note {
    margin-top: 1.5rem;
}

.simple-main__back {
    margin: 1.75rem 0 0;
    font-size: 0.9rem;
}

.simple-main__back a {
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
}

.simple-main__back a:hover {
    color: var(--accent-hover);
}

/* —— 窄屏：顶栏不吸顶 + 右上角汉堡侧滑菜单（勿给 .site-header 设 overflow:hidden，会裁切 fixed 抽屉） —— */
.site-nav-toggle {
    display: none;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    margin-inline-start: auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    font: inherit;
    color: var(--text-secondary);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.site-nav-toggle:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.site-nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-nav-close-footer {
    display: none;
}

/* 桌面：抽屉包裹层不参与布局，链接仍与顶栏同一 flex 行 */
.site-nav-drawer-body {
    display: contents;
}

.site-nav-toggle__bar {
    display: block;
    width: 1.2rem;
    height: 2px;
    margin: 0;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .site-nav-toggle__bar--t {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .site-nav-toggle__bar--m {
    opacity: 0;
}

.site-header.is-nav-open .site-nav-toggle__bar--b {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 201;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.site-header.is-nav-open .site-nav-backdrop {
    display: block;
    opacity: 1;
    transition: opacity 0.28s ease;
}

body.mc-site-nav-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    html {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overscroll-behavior-x: none;
    }

    .page-shell {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .layout-grid {
        max-width: 100%;
        overflow-x: hidden;
    }

    .layout-main {
        max-width: 100%;
        overflow-x: hidden;
    }

    .converter-workspace {
        max-width: 100%;
    }

    /* 避免 100vw + 滚动条撑出横向空白 */
    .export-picker-popover {
        width: min(22.5rem, calc(100% - 1rem));
        max-width: calc(100vw - 1rem);
        box-sizing: border-box;
    }

    /* backdrop-filter 会让子元素 position:fixed 相对于顶栏定位并被裁切，抽屉菜单必须关掉模糊 */
    .site-header {
        position: relative;
        top: auto;
        max-width: 100%;
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.97);
    }

    .site-header.is-nav-open {
        z-index: 200;
    }

    .header-inner {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.65rem;
        max-width: 100%;
    }

    .brand--logo {
        min-width: 0;
    }

    .site-nav-toggle {
        display: inline-flex;
    }

    .header-nav--links {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 202;
        width: min(19.5rem, 88vw);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        margin: 0;
        padding: 0;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: space-between;
        gap: 0;
        background: var(--surface);
        border-left: 1px solid var(--border);
        box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
        overflow: hidden;
        overscroll-behavior-x: none;
        touch-action: pan-y;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.22s ease, visibility 0.22s;
        box-sizing: border-box;
    }

    /* 可滚动链接区；关闭按钮固定在抽屉最底（即屏幕底） */
    .site-nav-drawer-body {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        overscroll-behavior-x: none;
        -webkit-overflow-scrolling: touch;
        gap: 0.35rem;
        padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 1rem 0.75rem;
        box-sizing: border-box;
    }

    .header-nav--links.is-nav-dragging {
        transition: none !important;
    }

    body.rtl .header-nav--links {
        right: auto;
        left: 0;
        border-left: none;
        border-right: 1px solid var(--border);
        box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
        transform: translateX(-100%);
    }

    .site-header.is-nav-open .header-nav--links {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .header-nav__link {
        font-size: 0.9rem;
        padding: 0.55rem 0.75rem;
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
    }

    .header-nav--links .nav-btn {
        width: 100%;
        text-align: center;
    }

    .header-nav--links .lang-menu {
        width: 100%;
        margin-top: 0.35rem;
    }

    .header-nav--links .lang-menu__btn {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .header-nav--links .lang-menu__panel {
        position: static;
        width: 100%;
        margin-top: 0.35rem;
        box-shadow: none;
        border: 1px solid var(--border);
    }

    /* 贴屏幕底（抽屉全高时即视口底），与上方滚动区分离 */
    .site-header.is-nav-open .header-nav--links .site-nav-close-footer.nav-btn {
        display: block;
        width: 100%;
        flex: 0 0 auto;
        margin-top: 0;
        box-sizing: border-box;
        text-align: center;
        border: none;
        border-top: 1px solid var(--border);
        border-radius: 0;
        padding: 0.85rem 1rem;
        padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
        background: var(--surface);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
        -webkit-tap-highlight-color: transparent;
    }

    .site-header.is-nav-open .header-nav--links .site-nav-close-footer.nav-btn:hover {
        color: var(--accent-hover);
        box-shadow:
            0 -8px 24px rgba(15, 23, 42, 0.06),
            0 0 0 3px var(--accent-soft);
    }
}
