/* ============================================================
   净片 · 网页版
   ============================================================ */

:root {
    --ink: #0d1326;
    --ink-2: #4b5470;
    --ink-3: #8b93a9;
    --line: #e7ecf6;
    --bg: #f5f7fc;
    --card: #ffffff;
    --primary: #3b6dff;
    --violet: #7b5cff;
    --grad: linear-gradient(135deg, #3b6dff 0%, #7b5cff 100%);
    --radius: 24px;
    --shadow-sm: 0 2px 8px rgba(20, 30, 70, 0.06);
    --shadow-md: 0 14px 40px rgba(20, 30, 70, 0.08);
    --shadow-lg: 0 30px 80px rgba(16, 26, 64, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, p {
    margin: 0;
}

button {
    font: inherit;
    color: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

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

img {
    display: block;
    max-width: 100%;
}

.wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    position: relative;
    border-radius: 0 0 48px 48px;
    background: linear-gradient(158deg, #2b57e8 0%, #4b46e6 52%, #7a4df0 100%);
    color: #fff;
    padding-bottom: 8px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.75;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0 8px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 15px;
    font-weight: 600;
}

.brand-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.nav-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

/* 跟随鼠标移动的流体胶囊（流体提示气泡） */
.nav-pill {
    position: absolute;
    left: 0;
    top: 50%;
    height: 30px;
    margin-top: -15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.34s cubic-bezier(0.3, 1.2, 0.4, 1),
        width 0.34s cubic-bezier(0.3, 1.2, 0.4, 1),
        opacity 0.22s ease;
}

.nav-pill.is-on {
    opacity: 1;
}

.nav-links a {
    position: relative;
    z-index: 1;
    padding: 6px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.76);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-current {
    color: #ffffff;
}

.theme-toggle {
    position: relative;
    z-index: 1;
}

.nav-links a:hover {
    color: #fff;
}

.hero-copy {
    max-width: 720px;
    margin: 0 auto;
    padding: 52px 0 38px;
    text-align: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.92);
}

.dot-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7ef0c0;
    box-shadow: 0 0 0 3px rgba(126, 240, 192, 0.22);
}

.hero-copy h1 {
    margin-top: 26px;
    font-size: clamp(34px, 5.4vw, 58px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.hero-copy h1 span {
    color: rgba(255, 255, 255, 0.78);
}

.lede {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
}

/* ============================================================
   操作面板
   ============================================================ */

.panel {
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin: 0 auto -104px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-lg);
}

.tabs {
    position: relative;
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border-radius: 14px;
    background: #f2f5fb;
}

.tab {
    position: relative;
    z-index: 1;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-3);
    transition: color 0.22s;
}

.tab.is-active {
    color: var(--ink);
}

.tab-indicator {
    position: absolute;
    top: 5px;
    left: 0;
    height: calc(100% - 10px);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(20, 30, 70, 0.1);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.pane {
    margin-top: 16px;
}

.field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 10px 0 16px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: #f8faff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field:focus-within {
    border-color: rgba(59, 109, 255, 0.55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 109, 255, 0.1);
}

.field-icon {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--ink-3);
}

.field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    font-size: 15px;
    color: var(--ink);
    outline: none;
}

.field input::placeholder {
    color: #a8b0c3;
}

.btn-paste {
    flex: none;
    padding: 8px 14px;
    border-radius: 10px;
    background: #eef3ff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-paste:hover {
    background: #e3ebff;
}

.btn-primary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    margin-top: 12px;
    border-radius: 16px;
    background: var(--grad);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    /* 立体按压：下面垫一层实心投影当"厚度" */
    box-shadow: 0 5px 0 #2b4fd0, 0 14px 28px rgba(43, 79, 208, 0.26);
    transform: translateY(0);
    transition: transform 0.14s cubic-bezier(0.2, 0.9, 0.3, 1.3), box-shadow 0.14s ease, filter 0.2s ease;
}

.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 0 #2b4fd0, 0 18px 34px rgba(43, 79, 208, 0.3);
}

.btn-primary:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #2b4fd0, 0 4px 10px rgba(43, 79, 208, 0.2);
}

.btn-primary[disabled] {
    opacity: 0.45;
    box-shadow: 0 3px 0 #2b4fd0;
    transform: translateY(2px);
    filter: grayscale(0.3);
    cursor: default;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    background: #f1f4fb;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.btn-ghost:hover {
    background: #e8edf9;
    color: var(--ink);
}

.panel-hint {
    margin-top: 12px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-3);
}

/* 拖拽上传 */

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 38px 24px;
    border: 1.5px dashed #d3dcef;
    border-radius: 18px;
    background: #f9fbff;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover,
.dropzone.is-over {
    border-color: rgba(59, 109, 255, 0.6);
    background: #f2f7ff;
}

.dz-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #eaf1ff;
    color: var(--primary);
}

.dz-icon svg {
    width: 24px;
    height: 24px;
}

.dropzone strong {
    font-size: 15px;
    font-weight: 600;
}

.dropzone small {
    font-size: 12.5px;
    color: var(--ink-3);
}

/* ============================================================
   工作区
   ============================================================ */

.work {
    padding-top: 148px;
}

.work:empty {
    padding-top: 96px;
}

.card {
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-md);
    animation: rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* 首屏元素依次入场 */
.hero-copy .pill,
.hero-copy h1,
.hero-copy .lede,
.panel {
    animation: rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy h1 {
    animation-delay: 0.07s;
}

.hero-copy .lede {
    animation-delay: 0.14s;
}

.panel {
    animation-delay: 0.22s;
}

/* 滚动入场 */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* 加载 */

.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 44px 24px 52px;
}

.loading-card canvas {
    width: 128px;
    height: 128px;
}

.loading-card p {
    margin-top: 18px;
    font-size: 16px;
    font-weight: 600;
}

.loading-card small {
    margin-top: 6px;
    font-size: 13px;
    color: var(--ink-3);
}

/* 错误 */

.error-card {
    padding: 36px 32px;
}

.error-card h3 {
    font-size: 18px;
    font-weight: 600;
}

.error-card p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--ink-2);
}

.error-card .btn-ghost {
    margin-top: 20px;
}

/* 视频结果 */

.video-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0;
    overflow: hidden;
}

.video-cover {
    position: relative;
    background: #0f1526;
    min-height: 220px;
}

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

.video-cover .tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(10, 14, 26, 0.55);
    color: #fff;
    font-size: 12px;
    backdrop-filter: blur(6px);
}

.video-main {
    padding: 26px 28px 24px;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-author {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--ink-2);
}

.video-author img,
.video-author .avatar-fallback {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef3ff;
}

.video-author .avatar-fallback {
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--primary);
}

.video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
}

.video-actions .btn-primary {
    width: auto;
    height: 46px;
    margin-top: 0;
    padding: 0 26px;
    font-size: 14px;
}

/* 图集 */

.gallery {
    margin-top: 18px;
}

.gallery-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.gallery-head h3 {
    font-size: 15px;
    font-weight: 600;
}

.gallery-head span {
    font-size: 12.5px;
    color: var(--ink-3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #eef1f7;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gallery-item button {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(10, 14, 26, 0.55);
    color: #fff;
    font-size: 12px;
    backdrop-filter: blur(6px);
}

/* ============================================================
   图片编辑器
   ============================================================ */

.editor {
    padding: 18px;
}

.editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 6px 14px;
    flex-wrap: wrap;
}

.editor-head h3 {
    font-size: 15px;
    font-weight: 600;
}

.editor-head small {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--ink-3);
    font-weight: 400;
}

.brush-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brush-group span {
    font-size: 12.5px;
    color: var(--ink-3);
}

.brush {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f2f5fb;
    transition: background 0.18s;
}

.brush i {
    display: block;
    border-radius: 50%;
    background: #c3cde1;
}

.brush[data-level="0"] i { width: 6px; height: 6px; }
.brush[data-level="1"] i { width: 10px; height: 10px; }
.brush[data-level="2"] i { width: 15px; height: 15px; }

.brush.is-active {
    background: #eaf1ff;
}

.brush.is-active i {
    background: var(--primary);
}

.canvas-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 340px;
    max-height: 62vh;
    padding: 14px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 30%, #1b2338 0%, #10162a 100%);
    overflow: hidden;
}

/* 跟随鼠标的笔刷预览圈 */
.brush-cursor {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(10, 16, 34, 0.45), inset 0 0 0 1px rgba(10, 16, 34, 0.25);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.16s ease, width 0.16s ease, height 0.16s ease;
    z-index: 3;
}

.brush-cursor.is-on {
    opacity: 1;
}

.canvas-stage canvas {
    max-width: 100%;
    max-height: 58vh;
    border-radius: 10px;
    touch-action: none;
    cursor: crosshair;
}

.editor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
}

.editor-actions .spacer {
    flex: 1;
}

.editor-actions .btn-primary {
    width: auto;
    margin-top: 0;
    padding: 0 30px;
    height: 46px;
    font-size: 14px;
}

/* 对比 */

.compare-card {
    padding: 18px;
}

.compare {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #10162a;
    touch-action: none;
    user-select: none;
    cursor: ew-resize;
}

.compare > img {
    display: block;
    width: 100%;
    max-height: 66vh;
    object-fit: contain;
}

.compare .cmp-top {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

.compare .cmp-top img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cmp-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.cmp-line path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 8px rgba(10, 16, 34, 0.4));
}

.cmp-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(10, 16, 34, 0.3);
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.5);
}

.cmp-handle::before,
.cmp-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -4px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.cmp-handle::before {
    left: 10px;
    border-right: 5px solid rgba(16, 26, 42, 0.42);
}

.cmp-handle::after {
    right: 10px;
    border-left: 5px solid rgba(16, 26, 42, 0.42);
}

.compare.is-dragging .cmp-handle {
    transform: scale(1.14);
}

.cmp-label {
    position: absolute;
    top: 14px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(10, 14, 26, 0.5);
    color: #fff;
    font-size: 12px;
    pointer-events: none;
    backdrop-filter: blur(6px);
}

.cmp-label.left {
    left: 14px;
}

.cmp-label.right {
    right: 14px;
}

.compare-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
}

.compare-actions .btn-primary {
    width: auto;
    height: 46px;
    margin-top: 0;
    padding: 0 30px;
    font-size: 14px;
}

/* ============================================================
   平台 / 特性 / 说明
   ============================================================ */

.platforms {
    padding: 92px 24px 0;
    text-align: center;
}

.kicker {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.platforms h2,
.faq h2 {
    margin-top: 10px;
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* 渐变卡片跟随：色团缓缓漂移，指针进入时跟着走 */
.plat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.plat-tile {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
    cursor: default;
}

.plat-tile::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.34) 0%,
        rgba(255, 255, 255, 0) 58%);
    animation: plat-drift 11s ease-in-out infinite alternate;
    transition: background 0.2s ease;
    pointer-events: none;
}

.plat-tile:nth-child(2)::before { animation-duration: 13s; animation-delay: -3s; }
.plat-tile:nth-child(3)::before { animation-duration: 9.5s; animation-delay: -6s; }
.plat-tile:nth-child(4)::before { animation-duration: 12.5s; animation-delay: -1.5s; }
.plat-tile:nth-child(5)::before { animation-duration: 10.5s; animation-delay: -8s; }
.plat-tile:nth-child(6)::before { animation-duration: 14s; animation-delay: -4.5s; }

@keyframes plat-drift {
    from {
        transform: translate(-6%, -5%);
    }
    to {
        transform: translate(7%, 6%);
    }
}

.plat-glyph {
    position: relative;
    z-index: 1;
    font-size: 74px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    user-select: none;
}

.p1 { background: linear-gradient(150deg, #17203f 0%, #2f3b63 100%); }
.p2 { background: linear-gradient(150deg, #8e1d2e 0%, #d24a5e 100%); }
.p3 { background: linear-gradient(150deg, #a03d12 0%, #e2762b 100%); }
.p4 { background: linear-gradient(150deg, #0f4a6e 0%, #2a8bbd 100%); }
.p5 { background: linear-gradient(150deg, #1b5f3a 0%, #35a86b 100%); }
.p6 { background: linear-gradient(150deg, #6a2154 0%, #b0407f 100%); }


.chips span {
    padding: 9px 18px;
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    font-size: 13.5px;
    color: var(--ink-2);
}

.chips .chip-more {
    background: #eef3ff;
    color: var(--primary);
    box-shadow: none;
    font-weight: 500;
}

.features {
    padding-top: 96px;
}

.features h2 {
    margin-top: 10px;
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

.feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 332px;
    border-radius: var(--radius);
    overflow: hidden;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(12, 20, 48, 0.3);
}

.feature-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* 对应文案的插画，压在点阵之上 */
.feature-art {
    position: absolute;
    z-index: 1;
    top: 48px;
    left: 50%;
    width: 188px;
    height: 136px;
    margin-left: -94px;
    pointer-events: none;
}

.feature-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

.fa-bob {
    animation: fa-bob 3.4s ease-in-out infinite;
}

@keyframes fa-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

.fa-pulse {
    animation: fa-pulse 3.8s ease-in-out infinite;
}

@keyframes fa-pulse {
    0%, 100% {
        opacity: 0.95;
    }
    50% {
        opacity: 0.5;
    }
}

.fa-draw {
    stroke-dasharray: 100;
    animation: fa-draw 5.6s ease-in-out infinite;
}

@keyframes fa-draw {
    0%, 18% {
        stroke-dashoffset: 100;
    }
    52%, 82% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 100;
    }
}

/* 底部压暗，让文字压得住点阵 */
.feature::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 54%;
    background: linear-gradient(to top,
        rgba(6, 10, 24, 0.86) 0%,
        rgba(6, 10, 24, 0.55) 38%,
        rgba(6, 10, 24, 0) 100%);
    pointer-events: none;
}

.feature-bg canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.f1 .feature-bg {
    background: linear-gradient(160deg, #16245c 0%, #3350d8 100%);
}

.f2 .feature-bg {
    background: linear-gradient(160deg, #0d3a45 0%, #1f8a8f 100%);
}

.f3 .feature-bg {
    background: linear-gradient(160deg, #321050 0%, #7d2fa8 100%);
}

.feature-index {
    position: absolute;
    z-index: 2;
    top: 22px;
    left: 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.5);
}

.feature-content {
    position: relative;
    z-index: 2;
    padding: 24px 24px 26px;
}

.feature h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.feature p {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.74);
}

.faq {
    padding-top: 92px;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 26px;
}

.faq-item {
    padding: 26px 26px 28px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.faq-item strong {
    font-size: 15px;
    font-weight: 600;
}

.faq-item p {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--ink-2);
}

/* ============================================================
   Toast
   ============================================================ */

#toast {
    position: fixed;
    left: 50%;
    bottom: 38px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(13, 19, 38, 0.92);
    color: #fff;
    font-size: 13.5px;
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

#toast.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    margin-top: 96px;
    padding: 30px 0 42px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12.5px;
    color: var(--ink-3);
}

/* ============================================================
   像素日夜开关
   ============================================================ */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0;
    flex: none;
}

.theme-track {
    position: relative;
    display: block;
    width: 56px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.theme-toggle:hover .theme-track {
    background: rgba(255, 255, 255, 0.26);
}

.theme-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(10, 16, 34, 0.3);
    transition: transform 0.44s cubic-bezier(0.34, 1.4, 0.5, 1);
}

[data-theme="dark"] .theme-knob {
    transform: translateX(28px);
}

/* 绕着滑块转动的光带 */
.theme-knob::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        rgba(255, 205, 110, 0) 0deg,
        rgba(255, 205, 110, 0.95) 70deg,
        rgba(255, 205, 110, 0) 150deg,
        rgba(255, 205, 110, 0) 360deg);
    -webkit-mask: radial-gradient(circle, transparent 56%, #000 60%);
    mask: radial-gradient(circle, transparent 56%, #000 60%);
    animation: theme-spin 2.8s linear infinite;
    pointer-events: none;
}

[data-theme="dark"] .theme-knob::after {
    background: conic-gradient(from 0deg,
        rgba(126, 160, 255, 0) 0deg,
        rgba(126, 160, 255, 0.95) 70deg,
        rgba(126, 160, 255, 0) 150deg,
        rgba(126, 160, 255, 0) 360deg);
}

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

.theme-pixels {
    position: relative;
    z-index: 1;
    display: block;
}

/* ============================================================
   多光标页面搭建
   ============================================================ */

.builder {
    padding-top: 96px;
    text-align: center;
}

.builder h2 {
    margin-top: 10px;
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.builder-stage {
    position: relative;
    max-width: 600px;
    margin: 40px auto 0;
    padding: 22px;
    border-radius: 26px;
    background: var(--card);
    box-shadow: var(--shadow-md);
}

.mock {
    display: flex;
    flex-direction: column;
    gap: 13px;
    text-align: left;
}

.mock-row {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 15px;
    border-radius: 13px;
    border: 1.5px solid var(--line);
    background: #f8faff;
    font-size: 13.5px;
    color: var(--ink-2);
}

.mock-field {
    white-space: nowrap;
    overflow: hidden;
}

.mock-field.is-empty::before {
    content: attr(data-placeholder);
    color: #a8b0c3;
}

.mock-field::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 14px;
    margin-left: 2px;
    vertical-align: -2px;
    background: var(--primary);
    animation: caret-blink 1.05s steps(1) infinite;
}

@keyframes caret-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.mock-result {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px;
    border-radius: 15px;
    border: 1.5px solid var(--line);
    background: #f8faff;
}

.mock-thumb {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    flex: none;
    background: linear-gradient(135deg, #b9cfff 0%, #d8c6ff 100%);
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.5, 0.5, 1);
}

.mock-thumb.is-in {
    opacity: 1;
    transform: none;
}

.mock-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mock-line {
    height: 9px;
    border-radius: 5px;
    background: #e2e8f5;
}

.mock-footer {
    display: flex;
    justify-content: flex-end;
}

.mock-btn {
    padding: 9px 20px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--grad);
    box-shadow: 0 3px 0 #2b4fd0;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.3s ease;
}

.mock-btn.is-press {
    transform: translateY(3px);
    box-shadow: 0 0 0 #2b4fd0;
}

.mock-btn.is-done {
    background: linear-gradient(135deg, #1f9d69 0%, #43c98d 100%);
    box-shadow: 0 3px 0 #17754e;
}

/* 多光标与框选 */
.cursor {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.72s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    will-change: transform;
}

.cursor.is-on {
    opacity: 1;
}

.cursor-arrow {
    display: block;
    width: 21px;
    height: 21px;
    filter: drop-shadow(0 2px 5px rgba(10, 16, 34, 0.3));
}

.cursor-tag {
    position: absolute;
    left: 17px;
    top: 18px;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(10, 16, 34, 0.18);
}

.selection {
    position: absolute;
    z-index: 4;
    border: 1.5px dashed currentColor;
    border-radius: 10px;
    opacity: 0;
    transform: scale(0.94);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.34s cubic-bezier(0.34, 1.3, 0.5, 1);
}

.selection.is-on {
    opacity: 0.9;
    transform: none;
}

.builder-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.bstep {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    color: var(--ink-2);
}

.bstep b {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--primary);
}

/* ============================================================
   夜间主题
   ============================================================ */

[data-theme="dark"] {
    --bg: #080b15;
    --card: #121728;
    --ink: #edf1fa;
    --ink-2: #a2adc7;
    --ink-3: #6c7793;
    --line: #212a44;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 16px 44px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
}

body,
.card,
.panel,
.tabs,
.tab-indicator,
.dropzone,
.chip,
.bstep,
.mock-row,
.mock-result,
.brush {
    transition-property: background-color, border-color, color;
    transition-duration: 0.35s;
    transition-timing-function: ease;
}

[data-theme="dark"] .hero {
    background: linear-gradient(158deg, #16205f 0%, #241a68 52%, #371a5c 100%);
}

[data-theme="dark"] .feature {
    border: 1px solid rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .panel,
[data-theme="dark"] .card,
[data-theme="dark"] .bstep,
[data-theme="dark"] .chip {
    border: 1px solid rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .field,
[data-theme="dark"] .mock-row,
[data-theme="dark"] .mock-result {
    background: #0d1220;
    border-color: #232c47;
}

[data-theme="dark"] .field:focus-within {
    background: #111a2e;
}

[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .mock-field.is-empty::before {
    color: #5c6788;
}

[data-theme="dark"] .mock-line {
    background: #1d2540;
}

[data-theme="dark"] .mock-thumb {
    background: linear-gradient(135deg, #2c3f78 0%, #3a2f6b 100%);
}

[data-theme="dark"] .tabs {
    background: #0d1220;
}

[data-theme="dark"] .tab-indicator {
    background: #1b2338;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .btn-paste {
    background: rgba(59, 109, 255, 0.16);
    color: #8db0ff;
}

[data-theme="dark"] .btn-ghost {
    background: #1a2136;
    color: #b7c2da;
}

[data-theme="dark"] .btn-ghost:hover {
    background: #232c46;
    color: #fff;
}

[data-theme="dark"] .dropzone {
    background: #0d1220;
    border-color: #263050;
}

[data-theme="dark"] .dropzone:hover,
[data-theme="dark"] .dropzone.is-over {
    background: #121b2f;
}

[data-theme="dark"] .dz-icon {
    background: rgba(59, 109, 255, 0.18);
}

[data-theme="dark"] .chip-more {
    background: rgba(59, 109, 255, 0.16);
}

[data-theme="dark"] .brush {
    background: #1a2136;
}

[data-theme="dark"] .brush i {
    background: #3a4566;
}

[data-theme="dark"] .brush.is-active {
    background: rgba(59, 109, 255, 0.2);
}

[data-theme="dark"] .avatar-fallback {
    background: rgba(59, 109, 255, 0.16);
}

[data-theme="dark"] .gallery-item,
[data-theme="dark"] .video-author img {
    background: #1a2136;
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 5px 0 #1f3aa6, 0 14px 28px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 6px 0 #1f3aa6, 0 18px 34px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .btn-primary:active {
    box-shadow: 0 0 0 #1f3aa6, 0 4px 10px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .mock-btn {
    box-shadow: 0 3px 0 #1f3aa6;
}

[data-theme="dark"] .mock-btn.is-done {
    box-shadow: 0 3px 0 #17754e;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 900px) {
    .video-card {
        grid-template-columns: 1fr;
    }

    .video-cover {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .faq-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        border-radius: 0 0 32px 32px;
    }

    .wrap {
        padding: 0 18px;
    }

    .nav-links {
        gap: 2px;
        font-size: 13px;
    }

    .nav-links a {
        padding: 6px 9px;
    }

    .nav-links a:nth-of-type(3) {
        display: none;
    }

    .theme-track {
        width: 50px;
    }

    .theme-knob {
        width: 18px;
        height: 18px;
    }

    [data-theme="dark"] .theme-knob {
        transform: translateX(24px);
    }

    .hero-copy {
        padding: 36px 0 28px;
    }

    .hero-copy h1 {
        font-size: 32px;
    }

    .lede {
        font-size: 14.5px;
    }

    .panel {
        margin-bottom: -76px;
        padding: 16px;
        border-radius: 20px;
    }

    .tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .field {
        height: 54px;
    }

    .field input {
        font-size: 14px;
    }

    .work {
        padding-top: 112px;
    }

    .video-main {
        padding: 20px;
    }

    .video-actions .btn-primary,
    .video-actions .btn-ghost {
        flex: 1;
    }

    .platforms,
    .features,
    .builder,
    .faq {
        padding-top: 64px;
    }

    .plat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .plat-glyph {
        font-size: 56px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
