/* ===== 基础与液态玻璃设计系统（沿用原落地页） ===== */
:root, html[data-theme="light"] {
    --bg:            #ffffff;
    --bg-elevated:   #fbfbfd;
    --bg-section:    #f5f5f7;
    --text:          #1d1d1f;
    --text-muted:    #6e6e73;
    --text-strong:   #000000;
    --accent:        #0071e3;
    --accent-hover:  #0077ed;
    --accent-active: #006edb;
    --border:        rgba(0, 0, 0, 0.08);
    --nav-bg:        rgba(255, 255, 255, 0.72);
    --card-bg:       #ffffff;
    --input-bg:      #f5f5f7;
    --input-border:  rgba(0, 0, 0, 0.1);
    --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md:     0 8px 24px rgba(0, 0, 0, 0.06);
    --success:       #1a8a44;
    --error:         #d11a2a;
    /* Liquid glass material */
    --glass-bg:        rgba(255, 255, 255, 0.40);
    --glass-bg-strong: rgba(255, 255, 255, 0.60);
    --glass-edge-dim:  rgba(9, 17, 36, 0.09);
    --glass-hl:        rgba(255, 255, 255, 0.95);
    --glass-shadow-sm: 0 2px 8px rgba(9, 17, 36, 0.06), 0 14px 32px rgba(9, 17, 36, 0.09);
    /* Ambient backdrop blobs the glass refracts */
    --blob-1: rgba(105, 170, 255, 0.55);
    --blob-2: rgba(196, 152, 255, 0.45);
    --blob-3: rgba(255, 170, 214, 0.40);
    --blob-opacity: 0.85;
}

html[data-theme="dark"] {
    --bg:            #000000;
    --bg-elevated:   #0a0a0a;
    --bg-section:    #101010;
    --text:          #f5f5f7;
    --text-muted:    #a1a1a6;
    --text-strong:   #ffffff;
    --accent:        #2997ff;
    --accent-hover:  #3aa3ff;
    --accent-active: #1d86f0;
    --border:        rgba(255, 255, 255, 0.1);
    --nav-bg:        rgba(22, 22, 23, 0.72);
    --card-bg:       #1d1d1f;
    --input-bg:      #1d1d1f;
    --input-border:  rgba(255, 255, 255, 0.12);
    --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md:     0 8px 24px rgba(0, 0, 0, 0.4);
    --success:       #30d158;
    --error:         #ff453a;
    /* Liquid glass material */
    --glass-bg:        rgba(22, 22, 26, 0.40);
    --glass-bg-strong: rgba(28, 28, 32, 0.55);
    --glass-edge-dim:  rgba(255, 255, 255, 0.10);
    --glass-hl:        rgba(255, 255, 255, 0.30);
    --glass-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.45);
    /* Ambient backdrop blobs the glass refracts */
    --blob-1: rgba(29, 78, 216, 0.40);
    --blob-2: rgba(124, 58, 237, 0.32);
    --blob-3: rgba(14, 165, 233, 0.26);
    --blob-opacity: 0.9;
}

/* Smooth global theme transition — only enabled during the swap so hover/scroll animations aren't affected. */
html.is-theming,
html.is-theming *,
html.is-theming *::before,
html.is-theming *::after {
    transition:
        background-color 0.8s ease,
        border-color 0.8s ease,
        color 0.8s ease,
        fill 0.8s ease,
        stroke 0.8s ease,
        box-shadow 0.8s ease !important;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

[id] { scroll-margin-top: 88px; }

/* ---------- Ambient backdrop — gives the glass something to refract ---------- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.ambient .blob {
    position: absolute;
    width: 58vmax;
    height: 58vmax;
    border-radius: 50%;
    opacity: var(--blob-opacity);
    will-change: transform;
}
.ambient .blob-1 { top: -20vmax; left: -14vmax; background: radial-gradient(circle, var(--blob-1) 0%, transparent 62%); animation: blob-drift-1 26s ease-in-out infinite alternate; }
.ambient .blob-2 { top: -8vmax; right: -18vmax; background: radial-gradient(circle, var(--blob-2) 0%, transparent 62%); animation: blob-drift-2 34s ease-in-out infinite alternate; }
.ambient .blob-3 { bottom: -26vmax; left: 20vw;  background: radial-gradient(circle, var(--blob-3) 0%, transparent 62%); animation: blob-drift-3 40s ease-in-out infinite alternate; }
@keyframes blob-drift-1 { to { transform: translate3d(9vw, 8vh, 0) scale(1.12); } }
@keyframes blob-drift-2 { to { transform: translate3d(-8vw, 11vh, 0) scale(0.94); } }
@keyframes blob-drift-3 { to { transform: translate3d(7vw, -9vh, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .ambient .blob { animation: none; } }

/* ---------- Liquid glass material ----------
   Layering per aave.com/design/building-glass-for-the-web: a refraction layer
   (backdrop-filter; on Chromium JS swaps in an SVG feDisplacementMap lens with
   chromatic aberration), a tint layer (translucent background), and a specular
   layer (inset rim light, brighter on top where the virtual light source sits). */
.glass {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-edge-dim);
    box-shadow:
        inset 0 1px 0 0 var(--glass-hl),
        inset 0 -1px 0 0 color-mix(in srgb, var(--glass-hl) 30%, transparent),
        var(--glass-shadow-sm);
}

/* Nav — floating glass capsule */
.nav {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(960px, calc(100% - 24px));
    height: 54px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-inner {
    width: 100%;
    padding: 0 12px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    text-decoration: none;
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 24px; }
.nav-link {
    font-size: 12px;
    color: var(--text);
    opacity: 0.88;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 1; }
@media (max-width: 600px) {
    .nav { height: 48px; }
    .nav-inner { padding: 0 10px 0 16px; }
    .nav-brand { font-size: 15px; }
    .nav-links { display: none; }
    .nav-right { gap: 10px; }
}

/* Theme switcher — inspired by codepen.io/jamiewilsonict/pen/LYKGjdb, refined with Apple-style depth. */
.theme-switcher-grid {
    --ts-sun-core:   #ffe58a;
    --ts-sun:        #ffc84a;
    --ts-sun-edge:   #f4a623;
    --ts-moon-core:  #ffffff;
    --ts-moon:       #f4f2e6;
    --ts-moon-edge:  #cfccbd;
    --ts-day-top:    #bfe4f6;
    --ts-day-bot:    #5ec1ec;
    --ts-night-top:  #303449;
    --ts-night-bot:  #15182a;
    --ts-cloud:      #ffffff;
    --ts-star:       #ffffff;
    display: grid;
    grid-template-columns: repeat(54, 1px);
    grid-template-rows: repeat(24, 1px);
    gap: 0;
    position: relative;
    background: linear-gradient(180deg, var(--ts-day-top) 0%, var(--ts-day-bot) 100%);
    border-radius: 999px;
    border: none;
    cursor: pointer;
    appearance: none;
    padding: 0;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(16, 64, 112, 0.18),
        0 4px 10px rgba(16, 64, 112, 0.12);
    transition:
        background 0.8s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
}
.theme-switcher-grid:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 2px 4px rgba(16, 64, 112, 0.22),
        0 8px 18px rgba(16, 64, 112, 0.16);
}
.theme-switcher-grid:active {
    transform: translateY(0);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(16, 64, 112, 0.18);
}
.theme-switcher-grid:focus-visible {
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 0 0 4px rgba(10, 132, 255, 0.28),
        0 2px 6px rgba(16, 64, 112, 0.18);
}
html[data-theme="dark"] .theme-switcher-grid {
    background: linear-gradient(180deg, var(--ts-night-top) 0%, var(--ts-night-bot) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .theme-switcher-grid:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.55),
        0 8px 18px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .theme-switcher-grid:focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 0 0 4px rgba(10, 132, 255, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.4);
}
.theme-switcher-grid .ts-sun {
    background: radial-gradient(circle at 35% 30%, var(--ts-sun-core) 0%, var(--ts-sun) 55%, var(--ts-sun-edge) 100%);
    grid-column: 3 / 23;
    grid-row: 3 / 23;
    border-radius: 50%;
    height: 20px;
    box-shadow:
        0 0 6px rgba(255, 200, 74, 0.55),
        0 0 14px rgba(255, 200, 74, 0.3);
    transition:
        grid-column 0.8s ease,
        background 0.8s ease,
        box-shadow 0.8s ease;
}
html[data-theme="dark"] .theme-switcher-grid .ts-sun {
    grid-column: 33 / 53;
    background: radial-gradient(circle at 35% 30%, var(--ts-moon-core) 0%, var(--ts-moon) 60%, var(--ts-moon-edge) 100%);
    box-shadow:
        0 0 4px rgba(244, 242, 230, 0.5),
        0 0 10px rgba(244, 242, 230, 0.22);
}
.theme-switcher-grid .ts-moon-overlay {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    background: transparent;
    transition: left 0.8s ease, background 0.8s ease;
}
html[data-theme="dark"] .theme-switcher-grid .ts-moon-overlay {
    display: block;
    left: calc(28 / 54 * 100%);
    top: calc(4 / 29 * 100%);
    width: 18px;
    height: 18px;
    background: var(--ts-night-top);
}
.theme-switcher-grid .ts-ball {
    background-color: var(--ts-cloud);
    border-radius: 50%;
    width: 9px;
    height: 9px;
    position: absolute;
    z-index: 2;
    transition: all 0.8s ease;
}
.theme-switcher-grid .ts-ball-1 { top: calc((8 / 24) * 100%); left: calc((12 / 54) * 100%); }
.theme-switcher-grid .ts-ball-2 { top: calc((8 / 24) * 100%); left: calc((17 / 54) * 100%); }
.theme-switcher-grid .ts-ball-3 { top: calc((8 / 24) * 100%); left: calc((22 / 54) * 100%); }
.theme-switcher-grid .ts-ball-4 { top: calc((6 / 24) * 100%); left: calc((17 / 54) * 100%); }
html[data-theme="dark"] .theme-switcher-grid .ts-ball-1 { top: calc((16 / 24) * 100%); left: calc((16 / 54) * 100%); width: 2px; height: 2px; }
html[data-theme="dark"] .theme-switcher-grid .ts-ball-2 { top: calc((3 / 24) * 100%);  left: calc((22 / 54) * 100%); width: 2px; height: 2px; }
html[data-theme="dark"] .theme-switcher-grid .ts-ball-3 { top: calc((10 / 24) * 100%); left: calc((29 / 54) * 100%); width: 2px; height: 2px; }
html[data-theme="dark"] .theme-switcher-grid .ts-ball-4 { top: calc((5 / 24) * 100%);  left: calc((34 / 54) * 100%); width: 2px; height: 2px; }
.theme-switcher-grid .ts-star {
    background-color: var(--ts-star);
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
    border-radius: 50%;
    transition: opacity 0.8s ease;
}
.theme-switcher-grid .ts-star-1 { top: calc((7 / 24) * 100%);  left: calc((10 / 54) * 100%); }
.theme-switcher-grid .ts-star-2 { top: calc((9 / 24) * 100%);  left: calc((16 / 54) * 100%); }
.theme-switcher-grid .ts-star-3 { top: calc((13 / 24) * 100%); left: calc((23 / 54) * 100%); }
.theme-switcher-grid .ts-star-4 { top: calc((18 / 24) * 100%); left: calc((29 / 54) * 100%); }
html[data-theme="dark"] .theme-switcher-grid .ts-star { opacity: 1; }

/* Language switcher */
.lang-switcher { position: relative; display: inline-flex; }
.lang-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    height: 26px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.lang-btn:hover {
    background: var(--bg-section);
    color: var(--text-strong);
}
.lang-btn svg {
    width: 13px;
    height: 13px;
    opacity: 0.75;
}
.lang-btn .lang-code { font-variant-caps: all-small-caps; letter-spacing: 0.08em; }
.lang-btn .lang-caret {
    width: 8px;
    height: 8px;
    opacity: 0.5;
    transition: transform 0.2s ease;
}
.lang-switcher.is-open .lang-btn .lang-caret { transform: rotate(180deg); }
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    padding: 6px;
    background: color-mix(in srgb, var(--card-bg) 80%, transparent);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid var(--glass-edge-dim);
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 0 color-mix(in srgb, var(--glass-hl) 60%, transparent),
        var(--shadow-md);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 200;
}
.lang-switcher.is-open .lang-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.lang-menu-item {
    display: flex;
    width: 100%;
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}
.lang-menu-item:hover { background: var(--bg-section); }
.lang-menu-item .check {
    width: 14px;
    opacity: 0;
    color: var(--accent);
    font-weight: 700;
    transition: opacity 0.15s ease;
}
.lang-menu-item.is-active { color: var(--accent); font-weight: 600; }
.lang-menu-item.is-active .check { opacity: 1; }
@media (max-width: 600px) {
    .lang-btn { padding: 3px 8px; height: 24px; gap: 5px; }
    .lang-btn svg { width: 12px; height: 12px; }
    .lang-btn .lang-code { font-size: 11px; }
    .lang-btn .lang-caret { width: 7px; height: 7px; }
    .lang-menu { min-width: 144px; }
}

/* Hero */
.hero {
    text-align: center;
    padding: 152px 22px 80px;
    overflow: hidden;
}
.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--text-strong);
}
.headline-gradient {
    background: linear-gradient(92deg, #2997ff 0%, #0071e3 45%, #af52de 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
/* Hero badge — small glass capsule floating above the headline. */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text);
}
.hero-badge .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px color-mix(in srgb, var(--success) 70%, transparent);
}
.hero .subhead {
    margin: 16px auto 0;
    max-width: 620px;
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 400;
    line-height: 1.38;
    color: var(--text-muted);
    letter-spacing: -0.015em;
}

/* Fetch form */
.fetch-wrap {
    margin: 44px auto 0;
    max-width: 680px;
    padding: 0 4px;
}
.fetch-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-edge-dim);
    border-radius: 980px;
    padding: 7px 7px 7px 22px;
    box-shadow:
        inset 0 1px 0 0 var(--glass-hl),
        inset 0 -1px 0 0 color-mix(in srgb, var(--glass-hl) 30%, transparent),
        var(--glass-shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.fetch-form:focus-within {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    box-shadow:
        inset 0 1px 0 0 var(--glass-hl),
        inset 0 -1px 0 0 color-mix(in srgb, var(--glass-hl) 30%, transparent),
        0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent),
        var(--glass-shadow-sm);
}
.fetch-form .field-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.fetch-form:focus-within .field-icon {
    color: var(--accent);
    opacity: 1;
}
.fetch-form input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 18px;
    font-weight: 400;
    font-family: inherit;
    letter-spacing: -0.012em;
    padding: 14px 4px;
}
.fetch-form input::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 12px 22px;
    border-radius: 980px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 84%, #ffffff) 0%, var(--accent) 52%, var(--accent-active) 100%);
    color: #fff;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12),
        0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
    transition: filter 0.2s ease, transform 0.08s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.btn:hover {
    filter: brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12),
        0 6px 20px color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn:active { filter: brightness(0.94); transform: scale(0.97); }
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}
/* Secondary button — glass capsule instead of an outline. */
.btn.btn-secondary {
    background: var(--glass-bg-strong);
    color: var(--accent);
    border: 1px solid var(--glass-edge-dim);
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    box-shadow:
        inset 0 1px 0 0 color-mix(in srgb, var(--glass-hl) 70%, transparent),
        var(--glass-shadow-sm);
}
.btn.btn-secondary:hover {
    filter: none;
    background: color-mix(in srgb, var(--glass-bg-strong) 85%, var(--accent));
    box-shadow:
        inset 0 1px 0 0 var(--glass-hl),
        var(--glass-shadow-sm);
}
.fetch-form .btn {
    padding: 13px 24px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 113, 227, 0.25);
}
.fetch-form .btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}
.fetch-form .btn:hover svg { transform: translateX(2px); }
.fetch-form .btn[disabled] svg { display: none; }

/* Status pill — centered, animates in; error/ok/info each get a tinted pill with a matching icon. */
.status {
    margin: 18px auto 0;
    min-height: 22px;
    font-size: 14px;
    text-align: center;
    letter-spacing: -0.005em;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    transition:
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(0.22, 1.4, 0.36, 1),
        color 0.28s ease,
        background 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}
.status.is-shown .status-pill {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.status.error .status-pill,
.status.ok .status-pill,
.status.info .status-pill {
    padding: 8px 14px 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 500;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
}
.status.error .status-pill {
    background: color-mix(in srgb, var(--error) 12%, transparent);
    border-color: color-mix(in srgb, var(--error) 28%, transparent);
    color: var(--error);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--error) 14%, transparent);
}
.status.ok .status-pill {
    background: color-mix(in srgb, var(--success) 12%, transparent);
    border-color: color-mix(in srgb, var(--success) 28%, transparent);
    color: var(--success);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--success) 14%, transparent);
}
.status.info .status-pill {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent) 22%, transparent);
    color: var(--text);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 12%, transparent);
}
.status-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: none;
    background: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 16px 16px;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 16px 16px;
}
.status.error .status-icon,
.status.ok .status-icon,
.status.info .status-icon { display: inline-block; }
.status.error .status-icon {
    mask-image:         url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1 5.6h2V14h-2V7.6ZM12 18.4a1.3 1.3 0 1 1 0-2.6 1.3 1.3 0 0 1 0 2.6Z'/></svg>");
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1 5.6h2V14h-2V7.6ZM12 18.4a1.3 1.3 0 1 1 0-2.6 1.3 1.3 0 0 1 0 2.6Z'/></svg>");
}
.status.ok .status-icon {
    mask-image:         url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.4 14.4L6.2 12l1.4-1.4 3 3 6-6L18 9l-7.4 7.4Z'/></svg>");
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.4 14.4L6.2 12l1.4-1.4 3 3 6-6L18 9l-7.4 7.4Z'/></svg>");
}
/* Loading replaces the mask icon with a ring spinner. */
.status.is-loading .status-icon {
    mask-image: none;
    -webkit-mask-image: none;
    background: transparent;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    width: 14px;
    height: 14px;
}
/* Wiggle the pill briefly when transitioning into error so it catches the eye. */
@keyframes status-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-4px); }
    40%      { transform: translateX(4px); }
    60%      { transform: translateX(-2px); }
    80%      { transform: translateX(2px); }
}
.status.error.is-shown .status-pill { animation: status-shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

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

/* Reveal — declared early so later component rules (e.g. .feature hover) can override the `transition` shorthand on the same element. */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Section */
.section { padding: 88px 22px; }
.section.alt { background: color-mix(in srgb, var(--bg-section) 68%, transparent); }
.section h2 {
    margin: 0 0 16px;
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-align: center;
    color: var(--text-strong);
}
.section .lede {
    max-width: 640px;
    margin: 0 auto 56px;
    font-size: clamp(18px, 1.7vw, 21px);
    line-height: 1.45;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: -0.01em;
}

/* Features */
.features {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
/* Glass card — apple.com store-card hover (scale3d on an ease-out curve) over a frosted pane. */
.feature {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid var(--glass-edge-dim);
    border-radius: 22px;
    padding: 44px 36px 40px;
    min-height: 340px;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 0 color-mix(in srgb, var(--glass-hl) 70%, transparent),
        var(--glass-shadow-sm);
    transition: all 0.3s cubic-bezier(0, 0, 0.5, 1);
}
/* Pointer-tracked specular sheen — the "light source" follows the cursor. */
.feature::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%),
                color-mix(in srgb, var(--glass-hl) 40%, transparent) 0%, transparent 62%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
@media (hover: hover) {
    .feature:hover {
        transform: scale3d(1.012, 1.012, 1.012);
        box-shadow:
            inset 0 1px 0 0 var(--glass-hl),
            0 6px 18px rgba(0, 0, 0, 0.08),
            0 24px 48px rgba(0, 0, 0, 0.1);
    }
    .feature:hover::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .feature, .feature:hover { transform: none; }
}
.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 22px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--glass-hl) 55%, transparent),
        inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
}
.feature-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.5;
}
.feature-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
    opacity: 0.92;
}
.feature h3 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.2vw, 28px);
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.14;
    color: var(--text-strong);
}
.feature p {
    margin: 0;
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.012em;
    color: var(--text-muted);
    font-weight: 400;
}

/* Shortcut split */
.split {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}
.split h2 { text-align: left; }
.split .lede { text-align: left; margin: 0 0 28px; }
@media (max-width: 860px) {
    .split h2, .split .lede { text-align: center; }
}
.split-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
@media (max-width: 860px) { .split-cta { justify-content: center; } }
.qr-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid var(--glass-edge-dim);
    border-radius: 22px;
    padding: 28px;
    text-align: center;
    box-shadow:
        inset 0 1px 0 0 color-mix(in srgb, var(--glass-hl) 70%, transparent),
        var(--glass-shadow-sm);
}
.qr-card img {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto 14px;
}
.qr-label {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: -0.005em;
}

/* Footer */
footer {
    padding: 28px 22px 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Back to top — floating glass disc, appears after the hero scrolls away. */
.to-top {
    position: fixed;
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    font-family: inherit;
    color: var(--text-strong);
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.to-top.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.to-top svg { width: 18px; height: 18px; }
@media (hover: hover) {
    .to-top.is-shown:hover { transform: translateY(-2px); }
}
.to-top.is-shown:active { transform: scale(0.94); }

/* Accessibility: solid surfaces when the user opts out of transparency. */
@media (prefers-reduced-transparency: reduce) {
    .ambient { display: none; }
    .glass, .fetch-form, .feature, .qr-card, .lang-menu, .btn.btn-secondary {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--card-bg) !important;
    }
    .section.alt { background: var(--bg-section); }
}

/* ===== 多页面站点组件 ===== */
:root, html[data-theme="light"] {
    --warn:        #b25000;
    --pro-1:       #f5b942;
    --pro-2:       #e2702d;
    --chip-bg:     rgba(0, 0, 0, 0.05);
    --x-color:     #111111;
    --yt-color:    #ff0033;
    --tt-color:    #111111;
    --bili-color:  #00a1d6;
}
html[data-theme="dark"] {
    --warn:        #ffb340;
    --chip-bg:     rgba(255, 255, 255, 0.08);
    --x-color:     #f5f5f7;
    --tt-color:    #f5f5f7;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 300; padding: 8px 14px; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; transition: top 0.2s ease; }
.skip-link:focus { top: 12px; }
.muted { color: var(--text-muted); }
a { color: var(--accent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }
.btn-small { padding: 9px 16px; font-size: 14px; }
.center-link { text-align: center; margin: 28px 0 0; font-size: 16px; }
.center-link a { text-decoration: none; font-weight: 500; }

/* Nav */
.nav { width: min(1120px, calc(100% - 24px)); }
.nav-brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(140deg, #2997ff, #0071e3 50%, #af52de); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }
.brand-mark svg { width: 15px; height: 15px; }
.nav-links { align-items: center; gap: 22px; }
.nav-link { font-size: 13px; white-space: nowrap; }
.nav-link.is-active { color: var(--accent); opacity: 1; font-weight: 600; }
.nav-more { position: relative; }
.more-btn { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 4px; }
.more-btn .caret { width: 10px; height: 10px; opacity: 0.6; transition: transform 0.2s ease; }
.nav-more.is-open .caret { transform: rotate(180deg); }
.pop-menu, .lang-menu {
    position: absolute; top: calc(100% + 12px); min-width: 190px; padding: 6px;
    background: color-mix(in srgb, var(--card-bg) 82%, transparent);
    backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid var(--glass-edge-dim); border-radius: 16px;
    box-shadow: inset 0 1px 0 0 color-mix(in srgb, var(--glass-hl) 60%, transparent), var(--shadow-md);
    opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; z-index: 200;
}
.pop-menu { left: 50%; translate: -50% 0; }
.nav-more.is-open .pop-menu { opacity: 1; transform: none; pointer-events: auto; }
.pop-menu a, .lang-menu-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 9px; font-size: 13px; color: var(--text); text-decoration: none; }
.pop-menu a:hover, .lang-menu-item:hover { background: var(--bg-section); }
.lang-menu { max-height: min(70vh, 520px); overflow-y: auto; }
.lang-btn .lang-code { font-variant-caps: normal; letter-spacing: 0; }
.nav-right { gap: 12px; }
.pro-chip { appearance: none; border: 1px solid var(--border); background: transparent; color: var(--text); font-weight: 600; font-size: 12px; line-height: 1; font-family: inherit; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pro-chip .pro-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); opacity: 0.5; }
.pro-chip.is-pro { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--pro-1), var(--pro-2)); box-shadow: 0 2px 10px color-mix(in srgb, var(--pro-2) 40%, transparent); }
.pro-chip.is-pro .pro-dot { background: #fff; opacity: 1; }
.menu-btn { display: none; appearance: none; border: 0; background: transparent; color: var(--text); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; padding: 6px; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu { position: fixed; z-index: 99; top: calc(70px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; border-radius: 22px; padding: 16px; max-height: calc(100vh - 100px); overflow-y: auto; }
.mobile-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-link { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--chip-bg); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.mobile-menu-list { display: grid; margin-top: 12px; }
.mobile-menu-list a { padding: 12px 6px; color: var(--text); text-decoration: none; border-top: 1px solid var(--border); font-size: 15px; }
@media (max-width: 960px) {
    .nav-links { display: none; }
    .menu-btn { display: inline-flex; }
}
@media (max-width: 600px) {
    .lang-btn .lang-code { display: none; }
    .pro-chip .pro-text { font-size: 11px; }
    .nav-brand { font-size: 15px; }
    .brand-mark { width: 22px; height: 22px; }
}

/* 平台图标 */
.picon { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; }
.picon svg { width: 100%; height: 100%; }
.picon.big { width: 34px; height: 34px; }
.picon-x { color: var(--x-color); }
.picon-youtube { color: var(--yt-color); }
.picon-tiktok { color: var(--tt-color); }
.picon-bilibili { color: var(--bili-color); }
.picon-other { color: var(--accent); }
.badge-icon { width: 15px; height: 15px; }
.badge-dot.pro { background: var(--pro-2); box-shadow: 0 0 8px var(--pro-1); }

/* 工具区 */
.tool-hero { padding: 136px 20px 40px; }
.tool-hero h1, .page-hero h1 { font-size: clamp(32px, 5.4vw, 64px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 auto 6px; max-width: 980px; }
.page-hero { text-align: center; padding: 136px 22px 40px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.fetch-form { padding-left: 20px; }
.fetch-form input { font-size: 17px; }
.icon-btn { appearance: none; border: 0; background: transparent; color: var(--text-muted); width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; transition: background 0.2s ease, color 0.2s ease; }
.icon-btn:hover { background: var(--chip-bg); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.fetch-btn .btn-label { white-space: nowrap; }
@media (max-width: 600px) {
    .tool-hero { padding-top: 112px; }
    .fetch-form { flex-wrap: wrap; border-radius: 26px; padding: 8px 8px 8px 16px; }
    .fetch-form input { flex: 1 1 calc(100% - 120px); padding: 12px 2px; font-size: 16px; }
    .fetch-form .fetch-btn { flex: 1 1 100%; padding: 14px; }
}
.parse-progress { margin: 14px auto 0; max-width: 560px; }
.parse-bar { height: 6px; border-radius: 999px; background: var(--chip-bg); overflow: hidden; position: relative; }
.parse-bar::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #2997ff, #af52de); transition: width 0.3s ease; }
.parse-text { display: block; margin-top: 8px; font-size: 13px; color: var(--text-muted); text-align: center; }
.platform-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px auto 0; }
.strip-item { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--chip-bg); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; border: 1px solid transparent; transition: background 0.2s ease, border-color 0.2s ease; }
.strip-item:hover { background: color-mix(in srgb, var(--chip-bg) 60%, var(--accent) 12%); }
.strip-item.is-active { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.strip-item .picon { width: 15px; height: 15px; }
.fine-print { margin: 16px auto 0; font-size: 12px; color: var(--text-muted); max-width: 560px; }
.fine-print a { color: inherit; }

/* 历史记录 */
.history-panel { position: relative; max-width: 680px; margin: 10px auto 0; text-align: left; border-radius: 20px; padding: 12px; background: color-mix(in srgb, var(--card-bg) 86%, transparent); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); border: 1px solid var(--glass-edge-dim); box-shadow: var(--shadow-md); z-index: 20; }
.history-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.history-head input { flex: 1; min-width: 0; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; }
.history-head button { appearance: none; border: 0; background: var(--chip-bg); color: var(--text); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.history-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.history-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; }
.history-list li:hover, .history-list li:focus-visible { background: var(--bg-section); }
.history-list img { width: 56px; height: 32px; object-fit: cover; border-radius: 6px; background: var(--chip-bg); flex: 0 0 auto; }
.history-list .h-main { min-width: 0; flex: 1; }
.history-list .h-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-list .h-sub { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-list .h-del { opacity: 0; }
.history-list li:hover .h-del { opacity: 1; }
.history-empty { padding: 16px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* iOS 提示 */
.ios-tip { width: min(760px, calc(100% - 32px)); margin: 0 auto 24px; border-radius: 20px; padding: 14px 16px 14px 20px; display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.ios-tip-text { display: grid; gap: 2px; font-size: 14px; }
.ios-tip-text span { color: var(--text-muted); font-size: 13px; }

/* 结果 */
.result-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px 24px; scroll-margin-top: 90px; }
.result-card { border-radius: 26px; padding: 22px; }
.result-head { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 22px; align-items: start; }
@media (max-width: 760px) { .result-head { grid-template-columns: 1fr; } }
.cover { position: relative; border-radius: 16px; overflow: hidden; background: var(--chip-bg); aspect-ratio: 16 / 9; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,0.72); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 7px; }
.cover .plat { position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,0.9); border-radius: 999px; padding: 5px; display: flex; }
html[data-theme="dark"] .cover .plat { background: rgba(0,0,0,0.6); }
.result-title:focus { outline: none; }
.result-title { margin: 0 0 8px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.35; font-weight: 650; color: var(--text-strong); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.meta-row a { color: var(--accent); text-decoration: none; font-weight: 500; }
.stat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.stat-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--chip-bg); color: var(--text); }
.stat-chip svg { width: 13px; height: 13px; opacity: 0.7; }
.desc { font-size: 13px; line-height: 1.6; color: var(--text-muted); white-space: pre-wrap; word-break: break-word; max-height: 4.8em; overflow: hidden; position: relative; }
.desc.is-open { max-height: none; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip-btn { appearance: none; border: 1px solid var(--border); background: var(--glass-bg-strong); color: var(--text); border-radius: 999px; padding: 7px 12px; font-weight: 500; font-size: 12px; line-height: 1; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chip-btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.chip-btn svg { width: 14px; height: 14px; }
.chip-btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.best-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin: 20px 0 6px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.best-bar .best-text { font-size: 14px; }
.best-bar .best-text small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.groups { display: grid; gap: 18px; margin-top: 18px; }
.group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 650; color: var(--text-strong); }
.group h3 .count { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.group h3 svg { width: 17px; height: 17px; color: var(--accent); }
.group-hint { font-size: 12px; color: var(--text-muted); margin: -4px 0 8px; }
.rows { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--glass-bg-strong); border: 1px solid var(--glass-edge-dim); }
.row-main { flex: 1; min-width: 0; }
.row-label { font-size: 14px; font-weight: 600; color: var(--text-strong); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.badge { font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; padding: 2px 6px; border-radius: 6px; background: var(--chip-bg); color: var(--text-muted); }
.badge.ok { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
.badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.badge.pro { color: #fff; background: linear-gradient(135deg, var(--pro-1), var(--pro-2)); }
.badge.rec { color: #fff; background: var(--accent); }
.row-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.dl-btn { appearance: none; border: 0; cursor: pointer; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 84%, #fff) 0%, var(--accent) 52%, var(--accent-active) 100%); box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform 0.08s ease, filter 0.2s ease; }
.dl-btn:hover { filter: brightness(1.07); }
.dl-btn:active { transform: scale(0.94); }
.dl-btn.is-pro { background: linear-gradient(135deg, var(--pro-1), var(--pro-2)); box-shadow: 0 3px 10px color-mix(in srgb, var(--pro-2) 35%, transparent); }
.dl-btn svg { width: 18px; height: 18px; }
.ghost-btn { appearance: none; border: 1px solid var(--border); background: transparent; color: var(--text-muted); width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.ghost-btn:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.ghost-btn svg { width: 16px; height: 16px; }
.more-toggle { appearance: none; border: 0; background: none; color: var(--accent); font-weight: 500; font-size: 13px; font-family: inherit; cursor: pointer; padding: 6px 2px; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.thumb { position: relative; border-radius: 14px; overflow: hidden; background: var(--chip-bg); aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .dl-btn { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; }
.thumb .thumb-label { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,0.55); border-radius: 6px; padding: 2px 6px; }
.result-note { margin: 18px 0 0; font-size: 12px; color: var(--text-muted); }
.result-error { text-align: center; padding: 28px 20px; }
.result-error h3 { margin: 0 0 6px; color: var(--error); }
.result-error p { margin: 0 auto; max-width: 560px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* 下载面板 */
.dl-panel { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100vw - 32px)); max-height: 60vh; overflow: hidden; display: flex; flex-direction: column; border-radius: 20px; z-index: 150; }
.dl-panel header { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px 16px; font-size: 14px; }
.dl-panel ul { list-style: none; margin: 0; padding: 0 10px 10px; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.dl-item { padding: 10px 12px; border-radius: 14px; background: var(--glass-bg-strong); border: 1px solid var(--glass-edge-dim); }
.dl-item .dl-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-item .dl-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }
.dl-item .dl-bar { height: 5px; border-radius: 999px; background: var(--chip-bg); margin-top: 7px; overflow: hidden; }
.dl-item .dl-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2997ff, #af52de); border-radius: inherit; transition: width 0.25s ease; }
.dl-item.is-indeterminate .dl-bar span { width: 35%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-110%); } 100% { transform: translateX(310%); } }
.dl-item.is-done .dl-bar span { background: var(--success); width: 100% !important; }
.dl-item.is-error .dl-bar span { background: var(--error); width: 100% !important; }
.dl-item .dl-cancel { appearance: none; border: 0; background: none; color: var(--text-muted); cursor: pointer; font: inherit; font-size: 11.5px; padding: 0; }
.dl-item .dl-cancel:hover { color: var(--error); }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card { width: min(420px, 100%); border-radius: 26px; padding: 24px; background: color-mix(in srgb, var(--card-bg) 88%, transparent); }
.modal-card h3 { margin: 0 0 6px; font-size: 20px; color: var(--text-strong); }
.modal-text { margin: 0 0 14px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.captcha-row img { border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.text-input { width: 100%; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; }
.text-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.modal-actions .btn { padding: 10px 18px; font-size: 15px; }
.modal-foot { margin: 14px 0 0; font-size: 13px; text-align: center; }
.modal-foot a { text-decoration: none; }
.pro-perks { margin: 0 0 14px; padding-left: 20px; font-size: 14px; line-height: 1.7; }

/* Toast */
.toasts { position: fixed; top: calc(76px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 500; display: grid; gap: 8px; width: min(92vw, 460px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; background: color-mix(in srgb, var(--card-bg) 90%, transparent); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); border: 1px solid var(--glass-edge-dim); box-shadow: var(--shadow-md); animation: toast-in 0.32s cubic-bezier(0.22, 1.4, 0.36, 1); }
.toast.ok { border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.toast.error { border-color: color-mix(in srgb, var(--error) 40%, transparent); }
.toast .t-icon { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.toast.ok .t-icon { color: var(--success); }
.toast.error .t-icon { color: var(--error); }
.toast.info .t-icon { color: var(--accent); }
.toast a { font-weight: 600; }
.toast.out { opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* 赞助位 */
.sponsor-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px 20px; }
.sponsor-box { border-radius: 22px; padding: 16px; }
.sponsor-box h2 { font-size: 15px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; color: var(--text-strong); }
.ad-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.sponsor { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--glass-bg-strong); border: 1px solid var(--glass-edge-dim); text-decoration: none; color: var(--text); transition: transform 0.2s ease, border-color 0.2s ease; }
.sponsor:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.sponsor img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--chip-bg); flex: 0 0 auto; }
.sponsor strong { display: block; font-size: 14px; }
.sponsor span { font-size: 12px; color: var(--text-muted); }

/* 首页平台卡片 / 步骤 / 教程卡片 */
.platform-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.platform-card { border-radius: 22px; padding: 22px; text-decoration: none; color: var(--text); display: grid; gap: 8px; align-content: start; transition: transform 0.3s cubic-bezier(0, 0, 0.5, 1); }
.platform-card:hover { transform: translateY(-3px); }
.platform-card h3 { margin: 6px 0 0; font-size: 17px; color: var(--text-strong); }
.platform-card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.card-cta { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.steps { list-style: none; max-width: 1080px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { border-radius: 22px; padding: 24px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(140deg, #2997ff, #af52de); margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 18px; color: var(--text-strong); }
.step p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.features { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { min-height: 0; padding: 32px 28px; }
.feature h3 { font-size: clamp(20px, 2vw, 24px); }
.feature p { font-size: 15.5px; }
.site-chips { list-style: none; max-width: 900px; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.site-chips li { padding: 7px 13px; border-radius: 999px; background: var(--chip-bg); font-size: 13px; }
.tut-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tut-card { border-radius: 20px; padding: 20px; text-decoration: none; color: var(--text); display: grid; gap: 6px; align-content: start; transition: transform 0.25s ease; }
.tut-card:hover { transform: translateY(-2px); }
.tut-card h3 { margin: 0; font-size: 16px; line-height: 1.4; color: var(--text-strong); }
.tut-card p { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.section h2 + .faq-list, .section h2 + .tut-grid { margin-top: 28px; }

/* FAQ */
.faq-list { max-width: 860px; margin: 28px auto 0; display: grid; gap: 10px; }
.faq-item { border-radius: 18px; padding: 0; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; font-size: 15.5px; position: relative; color: var(--text-strong); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 20px 18px; color: var(--text-muted); font-size: 15px; line-height: 1.65; }
.faq-a p { margin: 0 0 8px; }
.faq-group { font-size: clamp(22px, 3vw, 30px) !important; margin-top: 40px !important; }
.faq-page .faq-list { margin-top: 16px; }

/* Pro 对比表 */
.compare { max-width: 760px; margin: 28px auto 0; border-radius: 22px; overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare .pro-col { color: var(--pro-2); font-weight: 650; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* 文章 / 正文 */
.prose { max-width: 820px; margin: 0 auto; border-radius: 24px; padding: clamp(22px, 4vw, 40px); font-size: 16.5px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 24px; margin: 1.6em 0 0.5em; text-align: left; letter-spacing: -0.02em; color: var(--text-strong); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 1.4em 0 0.4em; color: var(--text-strong); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--chip-bg); padding: 2px 6px; border-radius: 6px; }
.prose .note { padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); font-size: 15px; }
.article { max-width: 900px; margin: 0 auto; padding: 120px 20px 20px; }
.article > h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; letter-spacing: -0.03em; margin: 12px 0 8px; color: var(--text-strong); }
.article-meta { color: var(--text-muted); font-size: 13px; margin: 0 0 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-muted); }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.article-cta { margin: 28px auto 0; max-width: 820px; border-radius: 22px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-cta p { margin: 0; font-weight: 600; }
.qr-inline { max-width: 260px; margin: 32px auto 0; }

/* 页脚 */
.site-footer { padding: 48px 22px 40px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); text-align: left; }
.footer-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { margin: 0 0 10px; font-size: 13px; color: var(--text-strong); }
.site-footer a { display: block; color: var(--text-muted); text-decoration: none; padding: 4px 0; }
.site-footer a:hover { color: var(--text); }
.lang-cloud { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lang-cloud a { display: inline; }
.lang-cloud a[aria-current] { color: var(--accent); font-weight: 600; }
.lang-cloud.center { justify-content: center; margin-top: 28px; }
.footer-disclaimer, .copyright { max-width: 1080px; margin: 24px auto 0; line-height: 1.6; }
.copyright { margin-top: 8px; }

@media (prefers-reduced-transparency: reduce) {
    .history-panel, .pop-menu, .mobile-menu, .modal-card, .toast, .dl-panel, .result-card, .sponsor-box, .faq-item, .step, .platform-card, .tut-card, .prose, .compare {
        backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: var(--card-bg) !important;
    }
}
