/* =====================================================================
   NeonStory 风格 H5 主题 · OnlyFace
   深色底 / 霓虹粉紫渐变 / 双列竖版视频流 / 底部四 Tab
   加载顺序：style.css 之后加载，用覆盖方式统一前台与用户中心
   ===================================================================== */

:root {
    --peach: #ff3d9a;
    --cyan: #00e5ff;
    --violet: #9b5cff;
    --bg: #090a12;
    --panel: #171126;
    --panel-2: #211b32;
    --ink: #f7f5ff;
    --muted: #c9c3d9;
    --faint: #8b849f;
    --line: #393148;
    --ok: #37e6a1;
    --warn: #ffb84d;
    --err: #ff536d;
    --grad: linear-gradient(90deg, #ff3d9a 0%, #9b5cff 52%, #00e5ff 100%);
    --grad-soft: linear-gradient(135deg, rgba(255, 61, 154, .16), rgba(155, 92, 255, .14) 55%, rgba(0, 229, 255, .10));
    --glow-peach: 0 0 14px rgba(255, 61, 154, .55), 0 0 42px rgba(255, 61, 154, .22);
    --glow-violet: 0 0 14px rgba(155, 92, 255, .5), 0 0 42px rgba(155, 92, 255, .2);
    --r-card: 18px;
    --r-panel: 22px;
    --topbar: 56px;
    --nav: 58px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --font: "Sora", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
    --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
}

* { -webkit-tap-highlight-color: transparent; }

html { background: var(--bg); }

body,
body.user-layout-body,
body.pub-theme {
    background: var(--bg) !important;
    color: var(--ink);
    font-family: var(--font);
    min-height: 100vh;
    overscroll-behavior-y: auto;
}

html, body {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(60% 38% at 12% 0%, rgba(255, 61, 154, .14), transparent 70%),
        radial-gradient(55% 35% at 92% 8%, rgba(0, 229, 255, .10), transparent 70%),
        radial-gradient(70% 45% at 50% 100%, rgba(155, 92, 255, .12), transparent 72%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
::selection { background: rgba(255, 61, 154, .35); color: #fff; }

/* ============================= 页面骨架 ============================= */
.h5-app {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: calc(var(--nav) + 18px + var(--safe-bottom));
}

.h5-main { position: relative; z-index: 1; }

/* ============================= 顶栏 ============================= */
.h5-top {
    position: sticky;
    top: 0;
    z-index: 60;
    height: calc(var(--topbar) + var(--safe-top));
    padding: var(--safe-top) 14px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(9, 10, 18, .86);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(57, 49, 72, .7);
}

.h5-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.h5-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--grad);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -.02em;
    box-shadow: var(--glow-peach);
    flex: none;
    overflow: hidden;
}

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

.h5-brand-mark--rainbow {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.h5-brand-mark--rainbow svg { filter: drop-shadow(0 0 10px rgba(255, 61, 154, .45)); }

.h5-brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.h5-top-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.h5-lang {
    display: inline-flex;
    height: 30px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(33, 27, 50, .7);
}

.h5-lang a {
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--faint);
    letter-spacing: .02em;
}

.h5-lang a.on { color: #fff; background: var(--grad); box-shadow: var(--glow-peach); }

.h5-credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, .38);
    background: rgba(155, 92, 255, .12);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.h5-credit-pill svg { width: 13px; height: 13px; color: var(--cyan); }

.h5-login-link {
    height: 34px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 61, 154, .62);
    background: rgba(255, 61, 154, .06);
    color: #ffe3f0;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(255, 61, 154, .22), inset 0 0 12px rgba(255, 61, 154, .08);
}
.h5-login-link:hover { border-color: #ff3d9a; box-shadow: 0 0 22px rgba(255, 61, 154, .38); }

/* ============================= 分类胶囊 ============================= */
.h5-cats {
    position: sticky;
    top: calc(var(--topbar) + var(--safe-top));
    z-index: 55;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(9, 10, 18, .72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(57, 49, 72, .55);
}

.h5-cat-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-width: 0;
    padding-bottom: 2px;
}

.h5-cat-scroll::-webkit-scrollbar { display: none; }

.h5-chip {
    flex: none;
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .12s, box-shadow .18s, border-color .18s;
}

.h5-chip:active { transform: translateY(1px) scale(.98); }

.h5-chip.on {
    color: var(--ink);
    border-color: var(--violet);
    box-shadow: var(--glow-violet);
    background: rgba(155, 92, 255, .14);
}

.h5-cat-more {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid var(--line);
    color: var(--muted);
    display: grid;
    place-items: center;
    background: var(--panel-2);
}

/* ============================= 视频流卡片 ============================= */
.h5-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 14px 10px;
}

.h5-section-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}

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

.h5-section-sub { font-size: 12px; color: var(--faint); }

.h5-more-link { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }

.h5-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.h5-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 0;
    border-radius: var(--r-card);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: transform .16s, border-color .2s, box-shadow .2s;
    isolation: isolate;
}

.h5-card:active { transform: scale(.975); border-color: var(--violet); box-shadow: var(--glow-violet); }

@media (hover: hover) {
    .h5-card:hover { border-color: var(--violet); box-shadow: 0 0 0 1px rgba(155, 92, 255, .3), var(--glow-violet); }
}

.h5-card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(160deg, #1b1430, #0c0d16);
}

.h5-card-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--faint);
    font-size: 26px;
}

.h5-card-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(9, 10, 18, .55) 0%, rgba(9, 10, 18, 0) 32%, rgba(9, 10, 18, .12) 55%, rgba(9, 10, 18, .92) 100%);
}

.c-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    height: 20px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.c-badge--pro {
    color: #fff;
    background: var(--grad);
    box-shadow: var(--glow-peach);
}

.c-badge--free {
    color: var(--muted);
    background: rgba(9, 10, 18, .66);
    border: 1px solid rgba(201, 195, 217, .35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.c-dur {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    height: 20px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    background: rgba(9, 10, 18, .66);
    border: 1px solid rgba(201, 195, 217, .22);
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
    font-family: var(--mono);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.h5-card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 34px 10px 10px;
    pointer-events: none;
}

.h5-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    min-height: 2.7em;
    text-shadow: 0 1px 8px rgba(9, 10, 18, .8);
}

.h5-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: var(--muted);
    font-family: var(--mono);
    letter-spacing: .02em;
}

.h5-card-meta .heat { display: inline-flex; align-items: center; gap: 3px; color: var(--faint); }

.h5-card-meta svg { width: 11px; height: 11px; color: var(--peach); }

/* 作品 / 分页 */
.h5-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px 24px;
    flex-wrap: wrap;
}

.h5-pager a, .h5-pager span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--muted);
    font-size: 13px;
}

.h5-pager .on { color: #fff; border-color: var(--violet); background: rgba(155, 92, 255, .2); box-shadow: var(--glow-violet); }

.h5-empty {
    margin: 18px 14px;
    padding: 48px 18px;
    border: 1px dashed var(--line);
    border-radius: var(--r-card);
    text-align: center;
    color: var(--faint);
    background: linear-gradient(180deg, rgba(23, 17, 38, .9), rgba(23, 17, 38, .55));
}

.h5-empty-ico { font-size: 34px; margin-bottom: 10px; }
.h5-empty-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.h5-empty-sub { font-size: 13px; }

/* ============================= 底部导航 ============================= */
.h5-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    max-width: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: calc(var(--nav) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(9, 10, 18, .94);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border-top: 1px solid rgba(57, 49, 72, .85);
}

.h5-nav-item {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .01em;
    position: relative;
}

.h5-nav-item svg { width: 22px; height: 22px; stroke-width: 1.8; }

.h5-nav-item.on { color: var(--ink); }

.h5-nav-item.on svg { color: var(--peach); filter: drop-shadow(0 0 8px rgba(255, 61, 154, .55)); }

.h5-nav-item.on::before {
    content: "";
    position: absolute;
    top: 0;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    box-shadow: var(--glow-peach);
}

/* ============================= 条款 / 年龄提示 ============================= */
.h5-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 5, 10, .78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.h5-gate[hidden] { display: none; }

.h5-gate-card {
    width: 100%;
    max-width: 360px;
    padding: 24px 22px 20px;
    border-radius: var(--r-card);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #1a1229, #130e20);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(155, 92, 255, .15);
    animation: gate-in .3s cubic-bezier(.2, .8, .3, 1);
}

@keyframes gate-in { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

.h5-gate-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid transparent;
    background: linear-gradient(#150f24, #150f24) padding-box, var(--grad) border-box;
    box-shadow: var(--glow-peach);
    color: var(--ink);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: .02em;
}

.h5-gate-title {
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 4px;
}

.h5-gate-sub {
    text-align: center;
    font-size: 11px;
    color: var(--faint);
    margin-bottom: 16px;
}

.h5-gate-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }

.h5-gate-rules li {
    position: relative;
    padding-left: 16px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
}

.h5-gate-rules li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 8px rgba(155, 92, 255, .8);
}

.h5-gate-note { margin: 16px 0 14px; text-align: center; font-size: 11px; color: var(--faint); }

.h5-gate-actions { display: grid; gap: 10px; }

/* ============================= 通用按钮 / 面板 ============================= */
.h5-btn {
    height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    transition: transform .12s, box-shadow .2s;
    cursor: pointer;
}

.h5-btn:active { transform: translateY(1px) scale(.99); }

.h5-btn--primary {
    border: 0;
    color: #fff;
    background: var(--grad);
    box-shadow: var(--glow-peach);
}

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

.h5-btn--block { width: 100%; }

.h5-btn--sm { height: 36px; padding: 0 14px; font-size: 12px; border-radius: 11px; }

.h5-panel {
    margin: 12px;
    padding: 16px;
    border-radius: var(--r-panel);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(23, 17, 38, .92), rgba(23, 17, 38, .62));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.h5-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.h5-panel-title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.h5-panel-sub { font-size: 12px; color: var(--faint); }

.h5-divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

.h5-toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--nav) + 20px + var(--safe-bottom));
    transform: translate(-50%, 10px);
    z-index: 120;
    max-width: 86vw;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(23, 17, 38, .96);
    color: var(--ink);
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

.h5-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================= 视频详情浮层 ============================= */
.h5-sheet {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #05060b;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s;
}

.h5-sheet.show { opacity: 1; visibility: visible; }

.h5-sheet-inner {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #05060b;
    overflow: hidden;
}

.h5-sheet-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: calc(var(--safe-top) + 10px) 12px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(5, 6, 11, .8), transparent);
}

.h5-sheet-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(9, 10, 18, .7);
    border: 1px solid rgba(201, 195, 217, .25);
    color: var(--ink);
}

.h5-sheet-tag {
    height: 26px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(9, 10, 18, .6);
    border: 1px solid rgba(201, 195, 217, .22);
    font-size: 10px;
    font-family: var(--mono);
    color: var(--muted);
}

.h5-sheet-media {
    flex: 1;
    min-height: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.h5-sheet-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.h5-sheet-info {
    position: relative;
    z-index: 2;
    margin-top: -10px;
    padding: 18px 16px calc(18px + var(--safe-bottom));
    background: linear-gradient(180deg, rgba(5, 6, 11, 0) 0%, rgba(9, 10, 18, .92) 18%, #090a12 55%);
}

.h5-sheet-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.h5-sheet-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: var(--faint);
    font-family: var(--mono);
}

.h5-sheet-meta span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); }

.h5-sheet-actions { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; margin-top: 14px; }

/* ============================= 登录 / 注册 ============================= */
.h5-auth {
    padding: 20px 18px 32px;
    max-width: 460px;
    margin: 0 auto;
}

.h5-auth-head { padding: 18px 0 26px; }

.h5-auth-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--peach);
    margin-bottom: 8px;
}

.h5-auth-title { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }

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

.h5-auth-sub { margin-top: 8px; font-size: 13px; color: var(--faint); line-height: 1.6; }

.h5-field { margin-bottom: 14px; }

.h5-label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--faint);
    text-transform: uppercase;
}

.h5-input,
.h5-textarea,
.gen-form-control,
.user-form-control,
.pub-form-control {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(15, 12, 26, .9);
    color: var(--ink);
    font-size: 14px;
    padding: 12px 14px;
    transition: border-color .2s, box-shadow .2s;
}

.h5-input:focus,
.h5-textarea:focus,
.gen-form-control:focus,
.user-form-control:focus {
    border-color: var(--violet);
    box-shadow: var(--glow-violet);
    outline: none;
}

.h5-input::placeholder,
.h5-textarea::placeholder,
.gen-form-control::placeholder { color: #6f6980; }

.gen-form-control,
.user-form-control { background: rgba(15, 12, 26, .9) !important; color: var(--ink) !important; }
.gen-form-control:focus,
.user-form-control:focus { background: rgba(15, 12, 26, .98) !important; }

.gen-radio-body { background: var(--panel-2) !important; border-color: var(--line) !important; }
.gen-radio-card:hover .gen-radio-body { background: rgba(155, 92, 255, .1) !important; }
.gen-radio-card input:checked ~ .gen-radio-body { background: rgba(255, 61, 154, .12) !important; border-color: var(--peach) !important; }

.gen-ratio-card:hover,
.gen-model-select-card:hover,
.gen-mode-card:hover { background: var(--panel-2) !important; }

.user-task-thumb { position: relative; }

.h5-alert {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 11px 13px;
    margin-bottom: 14px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.5;
    border: 1px solid rgba(255, 83, 109, .35);
    background: rgba(255, 83, 109, .1);
    color: #ffb3c1;
}

.h5-alert--ok { border-color: rgba(55, 230, 161, .35); background: rgba(55, 230, 161, .1); color: #9ff3cf; }

.h5-auth-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 12.5px;
    color: var(--faint);
    line-height: 2;
}

.h5-auth-foot a { color: var(--ink); font-weight: 700; }

.h5-auth-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }

.h5-benefit {
    padding: 12px 8px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    text-align: center;
}

.h5-benefit b { display: block; font-size: 15px; color: var(--ink); }
.h5-benefit span { font-size: 10px; color: var(--faint); }

/* ============================= 价格 / 公告 ============================= */
.h5-price-note {
    margin: 0 14px 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
}

.h5-price-grid { display: grid; gap: 12px; padding: 0 14px 18px; }

.h5-price-card {
    position: relative;
    padding: 18px;
    border-radius: var(--r-panel);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(23, 17, 38, .94), rgba(23, 17, 38, .6));
    overflow: hidden;
}

.h5-price-card.hot { border-color: rgba(255, 61, 154, .55); box-shadow: var(--glow-peach); }

.h5-price-card.hot::after {
    content: "";
    position: absolute;
    inset: -40% -30% auto auto;
    height: 140px;
    width: 140px;
    background: radial-gradient(circle, rgba(255, 61, 154, .25), transparent 65%);
    pointer-events: none;
}

.h5-price-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.h5-price-name { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }

.h5-price-hot {
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--grad);
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    color: #fff;
    box-shadow: var(--glow-peach);
}

.h5-price-amount { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; }
.h5-price-amount b { font-size: 30px; letter-spacing: -.03em; }
.h5-price-amount .cur { font-size: 14px; color: var(--muted); }
.h5-price-amount del { font-size: 12px; color: var(--faint); margin-left: 4px; }

.h5-price-credits {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}

.h5-price-credits b { color: var(--cyan); font-family: var(--mono); }

.h5-price-desc { margin-top: 8px; font-size: 11.5px; color: var(--faint); line-height: 1.6; min-height: 1.6em; }

.h5-price-card .h5-btn { margin-top: 14px; }

.h5-acc { padding: 0 14px 20px; display: grid; gap: 10px; }

.h5-acc-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(23, 17, 38, .9), rgba(23, 17, 38, .6));
    overflow: hidden;
}

.h5-acc summary {
    list-style: none;
    cursor: pointer;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.h5-acc summary::-webkit-details-marker { display: none; }

.h5-acc-date {
    flex: none;
    width: 40px;
    text-align: center;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--faint);
    line-height: 1.35;
}

.h5-acc-date b { display: block; font-size: 16px; color: var(--ink); font-weight: 700; }

.h5-acc-title { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.4; }

.h5-acc-arrow { color: var(--faint); transition: transform .2s; }
.h5-acc-item[open] .h5-acc-arrow { transform: rotate(180deg); color: var(--peach); }

.h5-acc-body {
    padding: 0 14px 16px;
    border-top: 1px dashed var(--line);
    margin-top: 0;
    padding-top: 12px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    white-space: pre-wrap;
    word-break: break-word;
}

.h5-acc-body a { color: var(--cyan); }

/* ============================= 我的 / 用户中心 ============================= */
body.user-layout-body {
    --user-bg: #090a12;
    --user-bg-soft: #0f0c18;
    --user-surface: #15101f;
    --user-surface-2: #211b32;
    --user-border: #393148;
    --user-border-strong: #4a3f5e;
    --user-text: #f7f5ff;
    --user-text-muted: #c9c3d9;
    --user-text-faint: #8b849f;
    --user-primary: #ff3d9a;
    --user-primary-dark: #9b5cff;
    --user-primary-soft: rgba(255, 61, 154, .14);
    --user-accent: #9b5cff;
    --user-success: #37e6a1;
    --user-success-soft: rgba(55, 230, 161, .12);
    --user-warning: #ffb84d;
    --user-warning-soft: rgba(255, 184, 77, .12);
    --user-danger: #ff536d;
    --user-danger-soft: rgba(255, 83, 109, .12);
    --user-info: #00e5ff;
    --user-info-soft: rgba(0, 229, 255, .12);
    --user-shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --user-shadow-sm: 0 2px 6px rgba(0, 0, 0, .3);
    --user-shadow-md: 0 6px 18px rgba(0, 0, 0, .35);
    --user-shadow-lg: 0 18px 40px rgba(0, 0, 0, .45);
    background: #090a12 !important;
    color: var(--ink);
}

.user-main { padding: 0 !important; overflow: visible !important; min-height: 0 !important; }

body.user-layout-body::before { opacity: .8; }

.h5-profile {
    margin: 14px 12px 0;
    padding: 18px;
    border-radius: var(--r-panel);
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 61, 154, .18), transparent 55%),
        radial-gradient(120% 100% at 100% 0%, rgba(0, 229, 255, .12), transparent 55%),
        linear-gradient(180deg, #1b1330, #130f22);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.h5-avatar {
    width: 58px;
    height: 58px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    background: var(--grad);
    box-shadow: 0 0 0 1px rgba(247, 245, 255, .2), var(--glow-peach);
}

.h5-profile-body { flex: 1; min-width: 0; }

.h5-profile-name {
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.h5-tier {
    height: 19px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--grad);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    display: inline-flex;
    align-items: center;
    color: #fff;
}

.h5-profile-sub { margin-top: 3px; font-size: 11px; color: var(--faint); font-family: var(--mono); }

.h5-profile-actions { display: flex; gap: 8px; margin-top: 10px; }

.h5-profile-actions .h5-btn { height: 32px; padding: 0 12px; font-size: 11px; border-radius: 10px; }

.h5-me-cards { display: grid; gap: 10px; padding: 12px; }

.h5-me-credit {
    border-radius: var(--r-panel);
    border: 1px solid rgba(0, 229, 255, .3);
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(0, 229, 255, .18), transparent 60%),
        linear-gradient(135deg, rgba(23, 17, 38, .96), rgba(23, 17, 38, .7));
    padding: 18px;
}

.h5-me-credit-label { font-size: 10px; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; font-weight: 700; }
.h5-me-credit-value { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; margin-top: 2px; }
.h5-me-credit-value span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.h5-me-credit-row { display: flex; gap: 10px; margin-top: 14px; }
.h5-me-credit-row .h5-btn { flex: 1; height: 40px; font-size: 13px; }

.h5-me-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.h5-me-tile {
    padding: 14px 10px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    display: grid;
    gap: 4px;
    justify-items: center;
}

.h5-me-tile b { font-size: 20px; font-weight: 800; font-family: var(--mono); }
.h5-me-tile span { font-size: 10px; color: var(--faint); }

.h5-menu { display: grid; gap: 1px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }

.h5-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #15101f;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.h5-menu a .ic {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(155, 92, 255, .14);
    color: var(--violet);
    flex: none;
}

.h5-menu a span.line { flex: 1; }
.h5-menu a .chev { color: var(--faint); font-size: 16px; }

.h5-me-title { padding: 18px 16px 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }

.h5-me-videos { padding: 0 12px; }

/* 旧用户中心组件深色化 */
.user-panel {
    margin: 12px;
    padding: 16px;
    border-radius: var(--r-panel);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(23, 17, 38, .94), rgba(23, 17, 38, .62)) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.user-panel-head { margin-bottom: 12px; }
.user-panel-title { color: var(--ink) !important; font-size: 15px !important; font-weight: 800 !important; }
.user-panel-sub { color: var(--faint) !important; font-size: 12px !important; }

.user-panel-head .user-panel-more,
.user-panel-action { color: var(--muted) !important; border-color: var(--line) !important; background: var(--panel-2) !important; }
.user-panel-action.primary { color: #fff !important; background: var(--grad) !important; border: 0 !important; }

.user-hero {
    margin: 14px 12px 0;
    border-radius: var(--r-panel);
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(255, 61, 154, .22), transparent 60%),
        linear-gradient(135deg, #1c1332, #120e1f) !important;
    border: 1px solid var(--line);
    padding: 20px !important;
    overflow: hidden;
}

.user-hero-blob { opacity: .35; }

.user-hero-greet { color: var(--muted) !important; font-size: 12px !important; }
.user-hero-title { color: var(--ink) !important; font-size: 23px !important; letter-spacing: -.02em; }
.user-hero-sub { color: var(--faint) !important; font-size: 12px !important; }

.user-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.user-hero-btn {
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line) !important;
    background: var(--panel-2) !important;
    color: var(--ink) !important;
    font-size: 11.5px !important;
    font-weight: 700;
}

.user-hero-btn.primary {
    border: 0 !important;
    background: var(--grad) !important;
    box-shadow: var(--glow-peach);
}

.user-hero-illu { display: none !important; }

.user-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin: 12px !important;
}

.user-stat-card {
    border-radius: 16px !important;
    border: 1px solid var(--line) !important;
    background: var(--panel-2) !important;
    padding: 12px !important;
    box-shadow: none !important;
}

.user-stat-label { color: var(--faint) !important; font-size: 10px !important; }
.user-stat-value { color: var(--ink) !important; font-size: 22px !important; }
.user-stat-extra { color: var(--faint) !important; font-size: 10px !important; }
.user-stat-icon { width: 30px !important; height: 30px !important; border-radius: 9px !important; }

.user-two-col { display: block !important; }

.user-notice-item { border-color: var(--line) !important; background: var(--panel-2) !important; }
.user-notice-title { color: var(--ink) !important; }
.user-notice-text, .user-notice-date { color: var(--faint) !important; }

.user-quick-card { border-color: var(--line) !important; background: var(--panel-2) !important; }
.user-quick-name { color: var(--ink) !important; }
.user-quick-desc { color: var(--faint) !important; }

.user-task-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.user-task-card {
    border-radius: 16px !important;
    border: 1px solid var(--line) !important;
    background: var(--panel-2) !important;
    overflow: hidden;
}

.user-task-thumb { aspect-ratio: 3 / 4; background: #0c0d16 !important; }
.user-task-thumb video { width: 100%; height: 100%; object-fit: cover; }
.user-task-body { padding: 9px 10px 10px !important; }
.user-task-prompt { color: var(--ink) !important; font-size: 12px !important; }
.user-task-meta { color: var(--faint) !important; font-size: 10px !important; }
.user-task-badge { border-radius: 999px !important; }

.user-panel-empty { border-color: var(--line) !important; color: var(--faint) !important; }
.user-empty-title { color: var(--ink) !important; }
.user-empty-sub { color: var(--faint) !important; }

.user-tabs { border-color: var(--line) !important; }
.user-tabs a { color: var(--muted) !important; }
.user-tabs a.active { color: var(--ink) !important; border-color: var(--peach) !important; }

.user-table-wrap { border-color: var(--line) !important; border-radius: 14px !important; }
.user-table th { background: var(--panel-2) !important; color: var(--faint) !important; border-color: var(--line) !important; }
.user-table td { color: var(--muted) !important; border-color: var(--line) !important; }

.user-alert { border-radius: 12px !important; }
.user-alert-success { background: rgba(55, 230, 161, .1) !important; color: #9ff3cf !important; border-color: rgba(55, 230, 161, .35) !important; }
.user-alert-danger { background: rgba(255, 83, 109, .1) !important; color: #ffb3c1 !important; border-color: rgba(255, 83, 109, .35) !important; }
.user-alert-warning { background: rgba(255, 184, 77, .1) !important; color: #ffd79e !important; border-color: rgba(255, 184, 77, .35) !important; }

.user-form-label { color: var(--faint) !important; }
.user-form-hint { color: var(--faint) !important; }
.user-form-actions .user-btn { border-radius: 13px !important; }

.user-btn-primary { background: var(--grad) !important; border: 0 !important; color: #fff !important; box-shadow: var(--glow-peach); }
.user-btn { border-radius: 13px !important; font-weight: 700 !important; }

.user-profile-avatar { background: var(--grad) !important; color: #fff !important; }
.user-profile-name { color: var(--ink) !important; }
.user-profile-id { color: var(--faint) !important; }

.user-breadcrumb { color: var(--faint) !important; padding: 14px !important; }
.user-video-wrap { background: #000 !important; border-radius: 16px !important; }
.user-detail-grid { display: block !important; }
.user-pager a, .user-pager span { background: var(--panel-2) !important; border-color: var(--line) !important; color: var(--muted) !important; }

.user-credit-balance-chip { background: var(--panel-2) !important; border-color: var(--line) !important; color: var(--ink) !important; }

.user-toast { background: rgba(23, 17, 38, .96) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }

/* ============================= 生成页深色化 ============================= */
.gen-topbar { display: none !important; }

.gen-notice {
    margin: 12px;
    border-radius: 16px;
    border: 1px solid var(--line) !important;
    background: linear-gradient(135deg, rgba(255, 61, 154, .12), rgba(155, 92, 255, .1)) !important;
    padding: 12px 14px !important;
}

.gen-notice-title { color: var(--ink) !important; font-size: 13px !important; }
.gen-notice-text { color: var(--faint) !important; font-size: 11px !important; }
.gen-notice-icon { color: var(--peach) !important; }

.gen-workbench {
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
}

.gen-form-wrap { display: block !important; }

.gen-panel-form {
    margin: 12px !important;
    padding: 16px !important;
    border-radius: var(--r-panel) !important;
    border: 1px solid var(--line) !important;
    background: linear-gradient(180deg, rgba(23, 17, 38, .94), rgba(23, 17, 38, .62)) !important;
}

.gen-mode-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }

.gen-mode-card {
    border-radius: 14px !important;
    border: 1px solid var(--line) !important;
    background: var(--panel-2) !important;
    padding: 12px !important;
    color: var(--ink) !important;
}

.gen-mode-card.active,
.gen-mode-card.selected {
    border-color: var(--peach) !important;
    box-shadow: var(--glow-peach);
    background: rgba(255, 61, 154, .08) !important;
}

.gen-mode-name { color: var(--ink) !important; }
.gen-mode-desc { color: var(--faint) !important; }

.gen-model-select-card {
    border-color: var(--line) !important;
    background: var(--panel-2) !important;
    color: var(--ink) !important;
    border-radius: 14px !important;
}

.gen-model-select-card.active,
.gen-model-select-card.selected,
.gen-model-select-card input:checked ~ * { border-color: var(--violet) !important; }

.gen-model-select-name { color: var(--ink) !important; }
.gen-model-select-desc { color: var(--faint) !important; }
.gen-model-badge { background: var(--grad) !important; color: #fff !important; }

.gen-form-label { color: var(--faint) !important; }
.gen-form-hint { color: var(--faint) !important; }
.gen-prompt { min-height: 120px; }

.gen-preset-chip {
    border-color: var(--line) !important;
    background: var(--panel-2) !important;
    color: var(--muted) !important;
    border-radius: 999px !important;
}

.gen-preset-chip:hover { border-color: var(--violet) !important; color: var(--ink) !important; }

.gen-upload-area {
    border: 1px dashed var(--line) !important;
    background: rgba(12, 10, 22, .7) !important;
    color: var(--faint) !important;
    border-radius: 14px !important;
}

.gen-upload-area:hover, .gen-upload-area.drag { border-color: var(--violet) !important; background: rgba(155, 92, 255, .08) !important; }
.gen-upload-text { color: var(--muted) !important; }
.gen-upload-tip { color: var(--faint) !important; }

.gen-ratio-card, .gen-radio-card {
    border-color: var(--line) !important;
    background: var(--panel-2) !important;
    color: var(--ink) !important;
    border-radius: 12px !important;
}

.gen-ratio-card.active, .gen-radio-card.active,
.gen-ratio-card input:checked ~ *, .gen-radio-card input:checked ~ * { border-color: var(--peach) !important; }

.gen-param-row { color: var(--muted) !important; border-color: var(--line) !important; }
.gen-param-key { color: var(--faint) !important; }
.gen-param-val { color: var(--ink) !important; }

.gen-preview-sticky { position: static !important; }

.gen-preview-panel {
    border: 1px solid var(--line) !important;
    border-radius: var(--r-panel) !important;
    background: linear-gradient(180deg, rgba(23, 17, 38, .94), rgba(23, 17, 38, .62)) !important;
    margin: 12px !important;
}

.gen-preview-head-title { color: var(--ink) !important; }
.gen-preview-head-sub { color: var(--faint) !important; }
.gen-preview-frame { background: #000 !important; border-color: var(--line) !important; }
.gen-preview-placeholder-text { color: var(--faint) !important; }
.gen-preview-tag { background: var(--panel-2) !important; border-color: var(--line) !important; color: var(--muted) !important; }
.gen-preview-prompt { color: var(--muted) !important; }
.gen-preview-cost { color: var(--faint) !important; }
.gen-preview-cost-val { color: var(--cyan) !important; }

.gen-submit-btn { border-radius: 14px !important; }

.gen-tips-card {
    background: rgba(255, 184, 77, .08) !important;
    border-color: rgba(255, 184, 77, .3) !important;
    border-radius: 16px !important;
    margin: 12px !important;
}

.gen-tips-title { color: #ffd79e !important; }
.gen-tips-list { color: var(--muted) !important; }

.spinner { border-color: rgba(255, 255, 255, .25) !important; border-top-color: var(--peach) !important; }

/* ============================= 404 ============================= */
.h5-404 { padding: 80px 20px; text-align: center; }
.h5-404-code { font-size: 64px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================= 首页工作室（参考 NeonStory 首页） ============================= */
body.h5-home-body .h5-brand-name {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(90deg, #ff6aa8 0%, #b06cff 48%, #39dcff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.h5-home-body .h5-brand-name em { background: none; color: #ff6aa8; -webkit-text-fill-color: #ff6aa8; }

.h5-home-body .h5-app { padding-bottom: calc(var(--nav) + 18px + var(--safe-bottom)); }

.h5-home-wrap { padding: 10px 18px 26px; }

.h5-home-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 22px 30px;
    min-height: 190px;
    border-radius: 18px;
    border: 1px solid rgba(96, 76, 128, .55);
    background:
        radial-gradient(120% 150% at -10% 0%, rgba(255, 61, 154, .30), transparent 52%),
        radial-gradient(90% 130% at 110% 10%, rgba(0, 229, 255, .16), transparent 55%),
        linear-gradient(135deg, #241a38 0%, #191225 55%, #120e1c 100%);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.h5-home-hero-glow {
    position: absolute;
    width: 240px; height: 240px;
    right: -90px; top: -110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 61, 154, .35), transparent 66%);
    filter: blur(8px);
    pointer-events: none;
}

.h5-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #ff86bd;
    text-transform: uppercase;
}

.h5-home-title {
    position: relative;
    margin: 16px 0 0;
    font-size: clamp(24px, 6.4vw, 30px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--ink);
}

.h5-home-sub {
    position: relative;
    margin: 12px 0 0;
    max-width: 92%;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

.h5-home-cta {
    margin-top: 18px;
    padding: 18px 18px 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 61, 154, .55);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(255, 61, 154, .10), transparent 55%),
        rgba(24, 18, 36, .72);
}

.h5-home-cta p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--ink);
}

.h5-home-cta-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(92deg, #ff6aa8, #ff2f90 55%, #ff4aa0);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 8px 24px rgba(255, 47, 144, .38), inset 0 1px 0 rgba(255, 255, 255, .35);
    white-space: nowrap;
}

.h5-home-cta-btn:active { transform: translateY(1px); }

.h5-home-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.h5-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 152px;
    padding: 18px 16px;
    border-radius: 16px;
    border: 1px solid rgba(92, 75, 120, .42);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(155, 92, 255, .09), transparent 55%),
        linear-gradient(160deg, #241b35 0%, #171122 72%);
    color: var(--ink);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.h5-tool-card:hover,
.h5-tool-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 61, 154, .55);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 61, 154, .18);
}

.h5-tool-ico {
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ff7ab6;
    background: linear-gradient(180deg, rgba(255, 61, 154, .22), rgba(155, 92, 255, .16));
    border: 1px solid rgba(255, 122, 182, .32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.h5-tool-title {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
}

.h5-tool-desc {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
}

.h5-vip-tag {
    position: absolute;
    left: 14px;
    bottom: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff3d9a, #ff6aa8);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .3px;
}

.h5-home-section { margin-top: 24px; }
.h5-home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.h5-home-section-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.h5-home-section-head a { color: #00e5ff; font-size: 12px; }
.h5-home-mini-empty {
    padding: 18px 14px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--faint);
    text-align: center;
    font-size: 12.5px;
}
.h5-home-reco {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}
.h5-home-reco-card {
    position: relative;
    flex: 0 0 128px;
    width: 128px;
    height: 184px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--panel-2);
    scroll-snap-align: start;
}
.h5-home-reco-card video, .h5-home-reco-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.h5-home-reco-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 8px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,.88));
    color: #fff;
    font-size: 11px;
    line-height: 1.35;
}
.h5-home-recent { display: grid; gap: 9px; }
.h5-home-recent-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px;
    border-radius: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
}
.h5-home-recent-item video, .h5-home-recent-item img {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    background: #000;
}
.h5-home-recent-item div { min-width: 0; display: grid; gap: 4px; }
.h5-home-recent-item strong { font-size: 12px; color: #ff6aa8; }
.h5-home-recent-item span {
    color: var(--faint);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.h5-home-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
    font-size: 12px;
    color: var(--faint);
}

.h5-home-foot a { color: var(--faint); }
.h5-home-foot a:hover { color: var(--ink); }

/* 生成页游客提示 */
.h5-guest-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 12px 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, .34);
    background: linear-gradient(120deg, rgba(155, 92, 255, .14), rgba(255, 61, 154, .08));
}
.h5-guest-note b { display: block; font-size: 13px; color: var(--ink); }
.h5-guest-note span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.h5-guest-note-btn {
    flex: none;
    height: 36px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

body.h5-home-body::after {
    content: "";
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 80px;
    background: linear-gradient(0deg, rgba(9, 10, 18, .92), transparent);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 400px) {
    .h5-home-wrap { padding: 8px 14px 24px; }
    .h5-home-hero { padding: 28px 18px 26px; min-height: 176px; }
    .h5-home-title { margin-top: 14px; }
    .h5-home-sub { font-size: 12px; max-width: 100%; }
    .h5-home-cta { padding: 15px 14px; gap: 10px; }
    .h5-home-cta p { font-size: 12.5px; }
    .h5-home-cta-btn { min-width: 100px; height: 40px; padding: 0 14px; font-size: 12.5px; }
    .h5-home-grid { gap: 10px; }
    .h5-tool-card { padding: 15px 13px; min-height: 146px; border-radius: 14px; }
    .h5-tool-ico { width: 42px; height: 42px; }
    .h5-tool-title { margin-top: 16px; font-size: 15px; }
    .h5-tool-desc { font-size: 11.5px; }
}

/* ============================= 法务页 ============================= */
.legal-page { padding: 22px 18px; color: #e8e8f2; }
.legal-page h1 { margin: 0 0 18px; font-size: 26px; }
.legal-page h2 { margin: 22px 0 8px; font-size: 17px; color: #ff6aa8; }
.legal-page p { margin: 0; color: #aaa8ba; font-size: 13.5px; line-height: 1.8; }

/* ============================= 长首页 Landing ============================= */
.h5-landing-body .h5-app { max-width: 560px; touch-action: pan-y pinch-zoom; }
.home-video-card video,
.h5-card-media {
    pointer-events: none;
    touch-action: pan-y pinch-zoom;
}
.h5-landing-body .landing {
    height: auto;
    min-height: 0;
    overflow: visible;
}
.landing {
    --lp-card: #11101d;
    --lp-line: rgba(255,255,255,.08);
    color: #f4f4fa;
}
.landing .eyebrow { margin: 0 0 12px; color: #ff6aa8; font-size: 11px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.landing .eyebrow--center { text-align: center; }
.lp-hero { padding: 34px 22px 30px; text-align: center; }
.lp-hero h1 { margin: 0; font-size: clamp(30px, 9vw, 42px); line-height: 1.18; font-weight: 950; letter-spacing: -1px; }
.grad-text {
    background: linear-gradient(90deg, #ff3d9a, #9b5cff 55%, #00e5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lp-lede { margin: 16px 0 0; color: #b7b5c8; font-size: 14px; line-height: 1.8; }
.lp-lede--center { text-align: center; }
.lp-cta-row { display: flex; justify-content: center; gap: 12px; margin: 24px 0 14px; }
.lp-cta-row .btn-primary, .lp-cta-row .btn-ghost, .blush-section .btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 128px; height: 46px; padding: 0 20px; border-radius: 13px;
    font-weight: 850; font-size: 14px;
}
.lp-cta-row .btn-primary, .blush-section .btn-primary { background: linear-gradient(90deg,#ff3d9a,#ff5aa8); color: #fff; box-shadow: 0 12px 28px rgba(255,61,154,.25); }
.lp-cta-row .btn-ghost { border: 1px solid var(--lp-line); color: #f4f4fa; background: rgba(255,255,255,.04); }
.age-chip { display: inline-block; color: #8e8ca0; font-size: 11px; line-height: 1.6; }
.s-divider { width: 100%; height: 46px; display: block; }
.lp-section { padding: 28px 18px 34px; }
.lp-section--tint { background: linear-gradient(180deg, rgba(155,92,255,.08), rgba(0,229,255,.035)); }
.lp-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-head-row h2 { margin: 0 0 12px; font-size: 22px; font-weight: 900; }
.lp-more { color: #00e5ff; font-size: 12px; white-space: nowrap; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.home-video-card {
    position: relative; display: block; min-height: 248px; border-radius: 16px; overflow: hidden;
    background: #0b0a14; border: 1px solid var(--lp-line);
}
.card-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b0a14; }
.card-cover--fallback { display: flex; align-items: center; justify-content: center; }
.card-cover--fallback span { font-size: 42px; font-weight: 950; color: rgba(255,255,255,.22); }
.lp-grad--0 { background: linear-gradient(135deg, rgba(255,61,154,.55), #151021); }
.lp-grad--1 { background: linear-gradient(135deg, rgba(155,92,255,.55), #151021); }
.lp-grad--2 { background: linear-gradient(135deg, rgba(0,229,255,.4), #151021); }
.lp-grad--3 { background: linear-gradient(135deg, rgba(255,180,90,.38), #151021); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.72)); pointer-events: none; }
.card-badges { position: absolute; z-index: 2; }
.card-badges--left { left: 9px; top: 9px; }
.tier-badge { padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.tier-badge--vip { background: linear-gradient(90deg,#ff3d9a,#9b5cff); color: #fff; }
.tier-badge--free { background: rgba(255,255,255,.14); color: #fff; }
.card-info { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; }
.card-info strong { display: block; font-size: 13px; line-height: 1.35; color: #fff; }
.chat-mock {
    margin-top: 18px; padding: 16px; border-radius: 18px; background: #0d0c17;
    border: 1px solid var(--lp-line);
}
.chat-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.chat-logo, .footer-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg,#ff3d9a,#9b5cff); color: #fff; font-weight: 900; }
.chat-top b { display: block; font-size: 14px; }
.chat-top span { color: #8e8ca0; font-size: 11px; }
.bubble { max-width: 86%; padding: 11px 13px; border-radius: 15px; margin-bottom: 10px; font-size: 13px; line-height: 1.55; }
.bubble--user { margin-left: auto; background: linear-gradient(90deg,#ff3d9a,#ff5aa8); color: #fff; border-bottom-right-radius: 5px; }
.bubble--bot { background: #191728; color: #d8d7e4; border-bottom-left-radius: 5px; }
.progress { display: block; height: 5px; margin-top: 10px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress i { display: block; width: 68%; height: 100%; background: linear-gradient(90deg,#ff3d9a,#00e5ff); }
.lp-features { display: grid; gap: 12px; margin-top: 18px; }
.p-feature { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: #11101d; border: 1px solid var(--lp-line); }
.p-feature .fi { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: rgba(255,61,154,.14); color: #ff6aa8; }
.p-feature h4 { margin: 0 0 5px; font-size: 15px; }
.p-feature p { margin: 0; color: #9e9cb0; font-size: 12.5px; line-height: 1.55; }
.lp-showcase { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.shot-fig { margin: 0; min-width: 0; }
.shot { position: relative; display: block; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; }
.shot-media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-tier { position: absolute; left: 7px; top: 7px; }
.shot-fig b { display: block; margin-top: 7px; font-size: 12px; line-height: 1.35; }
.shot-heat { color: #8e8ca0; font-size: 11px; }
.cap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.cap-chips span { padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--lp-line); font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.stat { padding: 18px 14px; border-radius: 16px; background: #11101d; border: 1px solid var(--lp-line); text-align: center; }
.stat-v {
    font-size: 26px;
    font-weight: 950;
    background: linear-gradient(90deg,#ff3d9a,#9b5cff 55%,#00e5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-k { margin-top: 5px; color: #9e9cb0; font-size: 12px; }
.flow { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; position: relative; }
.flow::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: linear-gradient(#ff3d9a, #9b5cff, #00e5ff);
    opacity: .7;
}
.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    position: relative;
}
.flow-idx {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: #11101d;
    border: 1px solid rgba(155,92,255,.7);
    color: #fff;
    font-weight: 900;
    z-index: 1;
}
.flow-step strong { display: block; margin-bottom: 4px; }
.flow-step span:not(.flow-idx) { color: #9e9cb0; font-size: 12px; }
.blush-section {
    padding: 26px 20px;
    border-radius: 22px;
    text-align: left;
    background: linear-gradient(160deg, #ffe3f1, #f7d8eb);
    border: 1px solid rgba(255,61,154,.22);
    color: #170b18;
}
.blush-section .eyebrow { color: #c51b78; text-align: center; }
.blush-section h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.35; color: #241027; }
.blush-section h2 em { display: inline; margin-top: 0; font-style: normal; color: #d51f82; }
.blush-section p { color: #3b2438; font-size: 13px; line-height: 1.75; }
.blush-section .blush-price { color: #d51f82; font-weight: 900; }
.blush-section .btn-primary {
    width: 100%;
    min-width: 0;
    height: 48px;
    border-radius: 999px;
    background: #d51482;
    box-shadow: none;
}
.lp-footer { padding: 30px 20px calc(var(--nav) + 24px); text-align: center; border-top: 1px solid var(--lp-line); }
.lp-footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.lp-footer-tagline { color: #9e9cb0; font-size: 12.5px; }
.lp-footer-links { display: flex; justify-content: center; gap: 16px; margin: 18px 0; flex-wrap: wrap; }
.lp-footer-links a { color: #d8d7e4; font-size: 12px; }
.lp-footer-legal { display: grid; gap: 5px; color: #77758a; font-size: 10.5px; }

/* ============================= 创作中心 ============================= */
.create-hub { padding: 10px 18px 0; }
.create-hub-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 20px;
    margin-bottom: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 61, 154, .22);
    background: linear-gradient(135deg, rgba(255,61,154,.16), rgba(15,12,28,.92) 55%, rgba(0,229,255,.1));
}
.create-hub-eyebrow { color: #ff6aa8; font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.create-hub-hero h1 { margin: 10px 0 8px; font-size: 24px; color: #fff; }
.create-hub-hero p { margin: 0; color: var(--faint); font-size: 13px; line-height: 1.6; }
.create-hub-grid .h5-tool-card--legacy { grid-column: 1 / -1; }
.create-hub-grid .h5-tool-card--legacy .h5-tool-ico { background: rgba(0,229,255,.12); color: #00e5ff; }

/* ============================= 作品详情 ============================= */
.work-page { min-height: 100vh; background: #05050a; }
.work-media-wrap {
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.work-media-wrap--portrait { height: 68vh; min-height: 430px; }
.work-media-wrap--landscape { height: 52vh; min-height: 300px; }
.work-media-wrap video, .work-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.work-back {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.45);
    color: #fff;
    backdrop-filter: blur(8px);
}
.work-sheet {
    position: relative;
    margin-top: -18px;
    padding: 10px 18px calc(var(--nav) + 26px);
    border-radius: 22px 22px 0 0;
    background: #11101a;
    border: 1px solid rgba(255,255,255,.06);
}
.work-sheet-handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
}
.work-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.work-title-row h1 { margin: 0; font-size: 20px; color: #fff; }
.work-free, .work-new {
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}
.work-free { background: rgba(255,255,255,.12); color: #fff; }
.work-new { background: #ff3d9a; color: #fff; }
.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 13px 0;
    color: #00e5ff;
    font-size: 12px;
}
.work-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0,229,255,.08);
    border: 1px solid rgba(0,229,255,.18);
}
.work-label { color: var(--faint); font-size: 12px; margin-bottom: 7px; }
.work-prompt-box {
    padding: 13px;
    border-radius: 14px;
    background: #0b0a13;
    border: 1px solid var(--line);
}
.work-prompt-box p { margin: 0; color: #e8e8f2; font-size: 13.5px; line-height: 1.7; }
.work-refs { margin-top: 16px; }
.work-ref-list { display: flex; gap: 10px; overflow-x: auto; }
.work-ref-item { flex: 0 0 76px; width: 76px; }
.work-ref-item video, .work-ref-item img {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: #000;
}
.work-ref-item span {
    display: block;
    margin-top: 5px;
    color: var(--faint);
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.work-produce-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    margin-top: 20px;
    border-radius: 14px;
    background: linear-gradient(90deg, #ff3d9a, #ff5aa8);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 12px 28px rgba(255,61,154,.28);
}

/* ============================= 模板库 ============================= */
.tpl-page { padding: 6px 14px 28px; }

.tpl-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 4px 16px;
}
.tpl-title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
.tpl-sub { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--faint); }
.tpl-create {
    flex: none;
    height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 61, 154, .5);
    color: #ffd9e9;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 61, 154, .08);
}

.tpl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tpl-card { display: block; color: var(--ink); }

.tpl-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(92, 75, 120, .42);
    background: linear-gradient(160deg, #2a1d3e, #14101e);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}
.tpl-cover img,
.tpl-cover video { width: 100%; height: 100%; object-fit: cover; display: block; }

.tpl-cover--portrait { background: radial-gradient(120% 100% at 20% 0%, #ff3d9a55, transparent 60%), linear-gradient(160deg, #2b1a39, #130f1d); }
.tpl-cover--city { background: radial-gradient(120% 100% at 80% 0%, #00e5ff44, transparent 60%), linear-gradient(160deg, #1a2438, #0e111b); }
.tpl-cover--anime { background: radial-gradient(120% 100% at 0% 100%, #9b5cff55, transparent 60%), linear-gradient(160deg, #261b3f, #130f20); }
.tpl-cover--commerce { background: radial-gradient(120% 100% at 50% 0%, #ffb3003d, transparent 60%), linear-gradient(160deg, #2c2418, #15110c); }
.tpl-cover--armor { background: radial-gradient(120% 100% at 50% 0%, #9fb4ff3d, transparent 62%), linear-gradient(160deg, #232a40, #10131d); }
.tpl-cover--lifestyle { background: radial-gradient(120% 100% at 0% 0%, #ff7a5955, transparent 60%), linear-gradient(160deg, #2d1c21, #150f12); }
.tpl-cover--landscape { background: radial-gradient(120% 100% at 50% 100%, #37e6a144, transparent 60%), linear-gradient(160deg, #1b2c27, #0f1513); }

.tpl-cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.tpl-cover-fallback span {
    font-size: 58px;
    font-weight: 900;
    color: rgba(255, 255, 255, .16);
    text-shadow: 0 0 30px rgba(255, 61, 154, .35);
}
.tpl-cover-fallback.large span { font-size: 96px; }

.tpl-badge {
    position: absolute;
    top: 9px; left: 9px;
    height: 20px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    background: rgba(9, 10, 18, .72);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
}
.tpl-dur {
    position: absolute;
    right: 9px; bottom: 9px;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(9, 10, 18, .72);
    font-size: 10px;
    color: #e9e4f5;
}

.tpl-info { padding: 10px 3px 2px; }
.tpl-name {
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tpl-desc {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--faint);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tpl-meta {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--faint);
}
.tpl-meta span:last-child { color: #ff86bd; font-weight: 700; }

/* 模板详情 */
.tpl-detail { padding: 6px 16px 30px; }
.tpl-back { display: inline-flex; height: 34px; align-items: center; font-size: 12px; color: var(--muted); }

.tpl-hero {
    position: relative;
    margin-top: 4px;
    aspect-ratio: 3 / 4;
    max-height: 64vh;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(92, 75, 120, .5);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}
.tpl-hero video,
.tpl-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tpl-detail-head { padding: 18px 4px 0; }
.tpl-detail-head h1 { margin: 0; font-size: 23px; line-height: 1.25; font-weight: 800; letter-spacing: -.03em; }
.tpl-detail-head p { margin: 9px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.tpl-detail-meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tpl-detail-meta span {
    height: 24px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(33, 27, 50, .7);
    font-size: 11px;
    color: var(--muted);
}

.tpl-prompt-box {
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, .28);
    background: rgba(25, 18, 40, .7);
}
.tpl-prompt-label { font-size: 11px; font-weight: 700; color: #c8a8ff; letter-spacing: .05em; text-transform: uppercase; }
.tpl-prompt-box p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); word-break: break-word; }

.tpl-detail-actions { margin-top: 18px; display: grid; gap: 10px; }

@media (max-width: 400px) {
    .tpl-grid { gap: 10px; }
    .tpl-title { font-size: 20px; }
    .tpl-head { align-items: flex-start; }
    .tpl-create { height: 32px; padding: 0 12px; font-size: 11.5px; }
    .tpl-name { font-size: 13.5px; }
    .tpl-desc { font-size: 11px; }
}

/* ============================= AI 图像 ============================= */
.img-page { padding: 8px 16px 28px; }
.img-head { padding: 10px 2px 18px; }
.img-eyebrow { font-size: 11px; letter-spacing: .1em; color: #c8a8ff; font-weight: 800; }
.img-head h1 { margin: 10px 0 0; font-size: 25px; line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
.img-head p { margin: 9px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--faint); }

.img-form {
    padding: 18px 16px;
    border-radius: 16px;
    border: 1px solid rgba(92, 75, 120, .45);
    background: linear-gradient(160deg, #21182f, #15101e);
}
.img-label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.img-label + .img-label { margin-top: 16px; }
.img-prompt { min-height: 120px; resize: vertical; }
.img-size-row { display: flex; gap: 8px; }
.img-size { flex: 1; position: relative; }
.img-size input { position: absolute; opacity: 0; pointer-events: none; }
.img-size span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(15, 12, 26, .8);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.img-size input:checked + span { border-color: var(--peach); color: #fff; background: rgba(255, 61, 154, .14); box-shadow: 0 0 16px rgba(255, 61, 154, .18); }
.img-cost { margin: 16px 0 12px; font-size: 12px; color: var(--faint); }
.img-cost b { color: #ffb3d2; font-size: 15px; }
.img-tip { margin: 10px 0 0; font-size: 11.5px; color: var(--faint); line-height: 1.5; }
.img-result {
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 61, 154, .35);
    background: #0f0b17;
}
.img-result img { width: 100%; display: block; }
.img-result-actions { display: flex; gap: 8px; padding: 12px; }
.img-result-actions .h5-btn { flex: 1; height: 42px; }
.img-recent { margin-top: 22px; }
.img-recent-title { font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.img-recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.img-recent-item { aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.img-recent-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 一键式盔甲：上传 + 后台预设选择 */
.armor-form .img-label:not(:first-child) { margin-top: 20px; }
.armor-upload {
    position: relative;
    display: flex;
    min-height: 150px;
    padding: 22px 14px;
    border: 1px dashed rgba(190, 137, 255, .55);
    border-radius: 14px;
    background: rgba(11, 9, 20, .52);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}
.armor-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.armor-upload-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #f2c9ff; background: rgba(155,92,255,.16); font-size: 25px; }
.armor-upload b { font-size: 13px; }
.armor-upload small { color: var(--faint); font-size: 10.5px; }
.armor-upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #08070e; }
.armor-upload img[hidden] { display: none !important; }
.armor-preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.armor-preset-card { position: relative; display: flex; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12,10,21,.75); flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.armor-preset-card input { position: absolute; opacity: 0; pointer-events: none; }
.armor-preset-card img,
.armor-preset-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; border-radius: 8px; object-fit: cover; background: linear-gradient(145deg,#30213f,#13101e); color: #d9b7ff; font-weight: 900; }
.armor-preset-card b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.armor-preset-card small { color: var(--faint); font-size: 9.5px; }
.armor-preset-card:has(input:checked) { border-color: #ff5ca8; background: rgba(255,61,154,.12); box-shadow: 0 0 18px rgba(255,61,154,.18); }
.armor-preset-card:has(input:checked)::after { content: "✓"; position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #ff3d9a; color: #fff; font-size: 12px; font-weight: 900; }

/* ============================= 桌面适配 ============================= */
@media (min-width: 900px) {
    body::before { background:
        radial-gradient(36% 40% at 8% 0%, rgba(255, 61, 154, .16), transparent 70%),
        radial-gradient(32% 38% at 94% 6%, rgba(0, 229, 255, .12), transparent 70%),
        radial-gradient(40% 40% at 50% 100%, rgba(155, 92, 255, .14), transparent 72%);
    }

    .h5-app {
        border-left: 1px solid rgba(57, 49, 72, .35);
        border-right: 1px solid rgba(57, 49, 72, .35);
        box-shadow: 0 0 80px rgba(0, 0, 0, .55);
    }
}

/* 减少动态 */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================= 人工智能视频·参考站布局 ============================= */
.video-ref-body { background: #090911; color: #f4f1fa; overscroll-behavior-y: auto; touch-action: pan-y pinch-zoom; }
.video-ref-page { width: 100%; max-width: 560px; min-height: 100vh; margin: 0 auto; padding-bottom: calc(104px + var(--safe-bottom)); background: #090911; }
.video-ref-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; height: 52px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.09); background: rgba(9,9,17,.96); backdrop-filter: blur(14px); }
.video-ref-header h1 { margin: 0; text-align: center; font-size: 16px; font-weight: 750; }
.video-ref-back { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; text-decoration: none; font-size: 31px; font-weight: 300; line-height: 1; }
.video-ref-main { padding: 14px 16px 20px; }
.video-vip-card { padding: 14px 16px; border: 1px solid rgba(255,71,157,.28); border-radius: 13px; background: linear-gradient(135deg,rgba(67,24,55,.42),rgba(29,17,39,.6)); }
.video-vip-card b { font-size: 12px; }
.video-vip-card p { margin: 7px 0 5px; font-size: 11px; line-height: 1.55; font-weight: 600; }
.video-vip-card a { color: #22d8ee; font-size: 11px; font-weight: 800; text-decoration: none; }
.video-section-title { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: #aaa4b5; text-align: center; font-size: 11px; font-weight: 700; }
.video-section-title::before,.video-section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg,transparent,rgba(255,255,255,.12)); }
.video-section-title::after { background: linear-gradient(90deg,rgba(255,255,255,.12),transparent); }
.video-method-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.video-method-tab { display: flex; min-width: 0; height: 64px; padding: 8px 3px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: #11101d; color: #eeeaf5; align-items: center; justify-content: center; flex-direction: column; gap: 7px; cursor: pointer; }
.video-method-tab b { font-size: 10.5px; white-space: nowrap; }
.video-method-tab span { padding: 1px 7px; border-radius: 999px; background: #e72b91; color: #fff; font-size: 9px; font-weight: 800; }
.video-method-tab.active { border-color: #ff55a6; background: rgba(255,61,154,.08); box-shadow: 0 0 0 2px rgba(255,61,154,.15),0 0 18px rgba(255,61,154,.15); }
.video-ref-notice { padding: 10px 12px; border: 1px solid rgba(184,150,69,.35); border-radius: 10px; background: rgba(69,51,20,.22); color: #c7af79; font-size: 9.5px; line-height: 1.55; }
.video-reference-card { padding: 13px; border: 1px solid rgba(164,122,210,.2); border-radius: 14px; background: #11101d; }
.video-reference-card[hidden] { display: none !important; }
.video-reference-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.video-reference-head i { color: #ff4f9f; font-style: normal; }
.video-reference-head span { color: #888294; font-family: var(--mono); font-size: 10px; }
.video-reference-card > p { margin: 6px 0 11px; color: #8d8799; font-size: 9.5px; }
.video-file-picker { display: flex; min-height: 48px; padding: 9px 10px; border: 1px dashed rgba(155,92,255,.48); border-radius: 10px; background: rgba(59,37,93,.2); align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; color: #e8e1f1; cursor: pointer; }
.video-file-picker > span { color: #a984ff; font-size: 18px; }
.video-file-picker b { font-size: 11px; }
.video-file-picker small { color: #858092; font-size: 8.5px; }
.video-file-list { display: grid; gap: 5px; margin-top: 8px; }
.video-file-item { overflow: hidden; padding: 7px 9px; border-radius: 7px; background: rgba(255,255,255,.045); color: #bdb6ca; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.video-prompt-wrap { position: relative; }
.video-prompt-wrap textarea { display: block; width: 100%; min-height: 164px; padding: 14px 14px 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; outline: none; resize: vertical; background: #0b0b14; color: #eeeaf5; font-size: 11px; line-height: 1.65; }
.video-prompt-wrap textarea:focus { border-color: rgba(255,74,160,.55); }
.video-prompt-wrap textarea::placeholder { color: #716c7c; }
.video-prompt-count { position: absolute; right: 12px; bottom: 11px; color: #8a8494; font-family: var(--mono); font-size: 9px; }
.video-settings-card { padding: 11px 12px; border: 1px solid rgba(174,114,207,.25); border-radius: 13px; background: #11101d; }
.video-settings-summary { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.video-settings-summary > span { display: flex; align-items: center; gap: 4px; color: #b2abbd; font-size: 9px; white-space: nowrap; }
.video-settings-summary b { padding: 3px 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #f2eaf6; background: #1a1626; font-size: 9px; }
.video-settings-summary button { padding: 4px 0 4px 5px; border: 0; background: none; color: #27d8ed; font-size: 10px; font-weight: 800; white-space: nowrap; }
.video-settings-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.08); }
.video-settings-detail[hidden] { display: none !important; }
.video-settings-detail label { display: grid; gap: 5px; color: #9d96aa; font-size: 10px; }
.video-settings-detail select { width: 100%; height: 36px; padding: 0 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: #0c0b14; color: #eeeaf5; font-size: 11px; }
.video-submit-bar { position: fixed; left: 50%; bottom: 0; z-index: 35; display: flex; width: 100%; max-width: 560px; min-height: 76px; padding: 11px 16px calc(11px + var(--safe-bottom)); border-top: 1px solid rgba(255,255,255,.09); background: rgba(9,9,17,.97); backdrop-filter: blur(16px); transform: translateX(-50%); align-items: center; justify-content: space-between; }
.video-submit-bar > div { display: grid; gap: 4px; }
.video-submit-bar > div b { color: #ff4c9e; font-size: 13px; }
.video-submit-bar > div span { color: #aaa3b5; font-size: 9px; }
.video-submit-bar > button { min-width: 104px; height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: linear-gradient(135deg,#fa3c9d,#e8298c); box-shadow: 0 0 24px rgba(255,49,151,.32); color: #fff; font-size: 12px; font-weight: 800; }
.video-submit-bar > button:disabled { opacity: .65; }
@media (max-width: 370px) { .video-ref-main { padding-left: 12px; padding-right: 12px; } .video-method-tab b { font-size: 9px; } .video-settings-summary > span { font-size: 8px; } }

/* VIP会员 */
.vip-page { padding: 14px 16px 28px; }
.vip-status-card { display: flex; align-items: center; gap: 16px; padding: 22px 18px; border: 1px solid rgba(155,92,255,.35); border-radius: 18px; background: linear-gradient(135deg,#251733,#12101d); }
.vip-status-card.active { border-color: rgba(255,193,88,.55); background: linear-gradient(135deg,#3a281d,#1b1423); }
.vip-crown { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; background: rgba(255,190,75,.12); font-size: 28px; }
.vip-status-text span { color: #c9a9e7; font-size: 9px; letter-spacing: .12em; }
.vip-status-text h1 { margin: 6px 0; font-size: 24px; }
.vip-status-text p { margin: 0; color: var(--faint); font-size: 11px; line-height: 1.5; }
.vip-benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 14px 0 22px; }
.vip-benefits > div { display: grid; place-items: center; gap: 5px; padding: 13px 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.vip-benefits b { color: #ffc2df; font-size: 16px; }
.vip-benefits span { color: var(--faint); font-size: 9px; }
.vip-plan-list { display: grid; gap: 10px; }
.vip-plan-card { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid rgba(255,84,164,.22); border-radius: 14px; background: linear-gradient(135deg,rgba(49,28,57,.88),rgba(19,15,29,.95)); }
.vip-plan-icon { font-size: 27px; }
.vip-plan-info { display: grid; flex: 1; min-width: 0; gap: 3px; }
.vip-plan-info b { font-size: 14px; }
.vip-plan-info span { color: #efb5d3; font-size: 10px; }
.vip-plan-info small { overflow: hidden; color: var(--faint); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.vip-plan-buy { display: grid; justify-items: end; gap: 7px; }
.vip-plan-buy > b { color: #fff; font-size: 19px; }
.vip-plan-buy .h5-btn { height: 32px; padding: 0 13px; font-size: 10px; }
.vip-note { margin: 16px 3px 0; color: var(--faint); font-size: 10px; line-height: 1.7; }
