@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&display=swap');

:root {
    --ink: #2d1b4e;
    --ink-soft: #5c4a7a;
    --paper: #fff9fd;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-solid: #ffffff;
    --line: rgba(155, 93, 229, 0.18);
    --muted: #8b7aa8;
    --pink: #ff6b9d;
    --pink-2: #ff8fb8;
    --purple: #9b5de5;
    --purple-2: #b185f2;
    --cyan: #00d4ff;
    --cyan-2: #5cefff;
    --yellow: #ffe066;
    --mint: #7bf1d8;
    --danger: #ff5c7a;
    --warn: #ffb347;
    --ok: #4ade80;
    --sider: linear-gradient(180deg, #2a1454 0%, #1a0f33 55%, #120822 100%);
    --glow-pink: 0 0 24px rgba(255, 107, 157, 0.35);
    --glow-purple: 0 0 28px rgba(155, 93, 229, 0.35);
    --shadow: 0 18px 50px rgba(42, 20, 84, 0.12);
    --radius: 22px;
    --radius-sm: 14px;
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    min-height: 100%;
    font-family: "M PLUS Rounded 1c", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ========== 登录 / 注册 ========== */
.user-auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 107, 157, 0.35), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(0, 212, 255, 0.28), transparent 24%),
        radial-gradient(circle at 70% 80%, rgba(155, 93, 229, 0.32), transparent 30%),
        linear-gradient(160deg, #1a0f33 0%, #2d1458 45%, #120822 100%);
    overflow: hidden;
    position: relative;
}

.user-auth-body::before,
.user-auth-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.user-auth-body::before {
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,.9), transparent),
        radial-gradient(1.5px 1.5px at 30% 70%, rgba(255,255,255,.7), transparent),
        radial-gradient(2px 2px at 55% 15%, rgba(255,255,255,.8), transparent),
        radial-gradient(1px 1px at 75% 45%, rgba(255,255,255,.6), transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(255,255,255,.75), transparent),
        radial-gradient(1.5px 1.5px at 20% 90%, rgba(255,255,255,.65), transparent);
    animation: twinkle 4s ease-in-out infinite alternate;
}

.user-auth-body::after {
    background:
        radial-gradient(ellipse 500px 180px at 50% 110%, rgba(255, 107, 157, 0.18), transparent 70%);
}

@keyframes twinkle {
    from { opacity: .55; }
    to { opacity: 1; }
}

.user-auth-wrap {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    z-index: 1;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), var(--glow-purple);
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.user-auth-hero {
    padding: 42px 36px;
    background:
        linear-gradient(145deg, rgba(255, 107, 157, 0.25), rgba(155, 93, 229, 0.15)),
        linear-gradient(180deg, #3d1f72, #25124a);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.user-auth-hero::before {
    content: "✦";
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 48px;
    color: rgba(255, 224, 102, 0.35);
    animation: float 3s ease-in-out infinite;
}

.user-auth-hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    right: -40px;
    bottom: -50px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.25), transparent 70%);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(12deg); }
}

.user-auth-mascot {
    font-size: 64px;
    line-height: 1;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.25));
}

.user-auth-hero h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .04em;
    background: linear-gradient(90deg, #fff, #ffd6e8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.user-auth-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    font-size: 14px;
    max-width: 280px;
}

.user-auth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.user-auth-badges span {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.user-auth-card {
    padding: 38px 34px;
    background: rgba(255, 249, 253, 0.96);
    color: var(--ink);
}

.user-kicker {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--purple);
    background: linear-gradient(90deg, rgba(155, 93, 229, 0.12), rgba(255, 107, 157, 0.12));
    border: 1px solid rgba(155, 93, 229, 0.2);
}

.user-auth-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    color: var(--ink);
}

.user-lead {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.user-form { display: grid; gap: 14px; }
.user-form label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
}
.user-form input {
    border: 2px solid rgba(155, 93, 229, 0.15);
    background: #fff;
    color: var(--ink);
    border-radius: var(--radius-sm);
    padding: 13px 14px;
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.user-form input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
}
.user-form button {
    margin-top: 4px;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 14px;
    font: inherit;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 10px 24px rgba(155, 93, 229, 0.35);
    transition: transform .15s, box-shadow .15s;
}
.user-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 107, 157, 0.4);
}

.user-foot {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}
.user-foot a {
    color: var(--purple);
    font-weight: 700;
    text-decoration: none;
}
.user-foot a:hover { color: var(--pink); }

/* ========== 控制台 ========== */
.user-panel {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 107, 157, 0.12), transparent 30%),
        radial-gradient(circle at 100% 20%, rgba(0, 212, 255, 0.1), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(155, 93, 229, 0.1), transparent 35%),
        linear-gradient(180deg, #fff5fb 0%, #f3ecff 40%, #eef8ff 100%);
    color: var(--ink);
}

.user-sider {
    background: var(--sider);
    color: #fff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 8px 0 40px rgba(26, 15, 51, 0.15);
}

.user-sider::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.5), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,.4), transparent),
        radial-gradient(1.5px 1.5px at 80% 60%, rgba(255,255,255,.35), transparent);
    pointer-events: none;
}

.user-brand {
    position: relative;
    z-index: 1;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}
.user-brand strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #ffc8dd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.user-brand small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    letter-spacing: .08em;
}

.user-profile {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: var(--glow-pink);
    flex-shrink: 0;
}

.user-profile-info strong {
    display: block;
    font-size: 14px;
}
.user-profile-info span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.user-sider nav {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
}
.user-sider nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: background .2s, color .2s, transform .15s;
}
.user-sider nav a .nav-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
}
.user-sider nav a.on,
.user-sider nav a:hover {
    background: linear-gradient(90deg, rgba(255, 107, 157, 0.22), rgba(155, 93, 229, 0.18));
    color: #fff;
    transform: translateX(4px);
}
.user-sider nav a.on .nav-icon {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: var(--glow-pink);
}

.user-sider-foot {
    position: relative;
    z-index: 1;
    margin-top: auto;
    display: grid;
    gap: 8px;
    font-size: 13px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.user-sider-foot a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-weight: 600;
}
.user-sider-foot a:hover { color: var(--cyan-2); }

.user-main {
    padding: 28px 32px 56px;
    min-width: 0;
}

.user-top {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.user-top h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--ink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.user-top-sub {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* 统计卡片 */
.user-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.user-stats article {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    backdrop-filter: blur(12px);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow);
    transition: transform .2s;
}
.user-stats article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
}
.user-stats article:hover { transform: translateY(-4px); }
.user-stats small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}
.user-stats b {
    display: block;
    font-size: 30px;
    font-weight: 800;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.user-card {
    background: var(--panel);
    backdrop-filter: blur(12px);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.user-card h2,
.user-card h3 {
    margin-top: 0;
    font-weight: 800;
    color: var(--ink);
}
.user-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}
.user-card h2::before {
    content: "◆";
    color: var(--pink);
    font-size: 12px;
}

/* 等级横幅 */
.user-tier-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 24px 26px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    background:
        linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box,
        linear-gradient(135deg, var(--pink), var(--purple), var(--cyan)) border-box;
    box-shadow: var(--shadow), var(--glow-purple);
    position: relative;
    overflow: hidden;
}
.user-tier-banner::after {
    content: "★";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 72px;
    opacity: 0.06;
    pointer-events: none;
}
.user-tier-banner h2 {
    margin: 6px 0 8px;
    font-size: 26px;
    font-weight: 800;
}
.tier-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--purple);
}
.tier-link {
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid var(--line) !important;
    background: #fff !important;
    color: var(--purple) !important;
    font-weight: 800 !important;
}
.user-tier-banner.tier-free h2 { color: #7b8ba8; }
.user-tier-banner.tier-basic h2 { color: #2ba471; }
.user-tier-banner.tier-intermediate h2 { color: #5b7fd6; }
.user-tier-banner.tier-advanced h2 {
    background: linear-gradient(90deg, #c49a32, #ff6b9d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 配额条 */
.quota-bars { display: grid; gap: 16px; }
.quota-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 8px;
}
.quota-track {
    height: 14px;
    border-radius: 999px;
    background: rgba(155, 93, 229, 0.1);
    overflow: hidden;
    border: 1px solid rgba(155, 93, 229, 0.12);
}
.quota-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 0 12px rgba(255, 107, 157, 0.45);
    transition: width .4s ease;
}
.quota-fill.day {
    background: linear-gradient(90deg, var(--cyan), #5b8def);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

/* API Key */
.key-box {
    display: flex;
    gap: 10px;
    align-items: center;
    background: linear-gradient(135deg, #1a1033, #2a1454);
    color: var(--mint);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 12px 0;
    border: 2px solid rgba(123, 241, 216, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.08);
}
.key-box code {
    flex: 1;
    word-break: break-all;
    font-size: 13px;
    font-family: Consolas, monospace;
}

.btn-sm {
    border: 0;
    border-radius: 12px;
    padding: 9px 14px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    box-shadow: 0 6px 16px rgba(155, 93, 229, 0.3);
    transition: transform .15s;
}
.btn-sm:hover { transform: translateY(-1px); }
.btn-sm.ghost {
    background: #fff;
    border: 2px solid var(--line);
    color: var(--ink);
    box-shadow: none;
}
.btn-sm.warn {
    background: linear-gradient(135deg, #ffb347, #ff6b9d);
}
.inline-forms { display: inline-block; margin-right: 8px; margin-top: 6px; }

/* 表格 */
.user-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.user-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--purple);
    font-weight: 800;
    background: rgba(155, 93, 229, 0.08);
    border-bottom: 2px solid var(--line);
}
.user-table th:first-child { border-radius: 12px 0 0 0; }
.user-table th:last-child { border-radius: 0 12px 0 0; }
.user-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(155, 93, 229, 0.1);
    background: rgba(255, 255, 255, 0.5);
}
.user-table tbody tr:hover td {
    background: rgba(255, 107, 157, 0.06);
}

.code-block {
    background: linear-gradient(135deg, #1a1033, #22143f);
    color: #d9f7ff;
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow: auto;
    font-size: 12px;
    line-height: 1.65;
    border: 2px solid rgba(0, 212, 255, 0.15);
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}
.tag.ok { background: rgba(74, 222, 128, 0.18); color: #15803d; }
.tag.warn { background: rgba(255, 179, 71, 0.2); color: #b45309; }
.tag.bad { background: rgba(255, 92, 122, 0.18); color: #be123c; }

.hint, .empty { color: var(--muted); font-size: 13px; line-height: 1.6; }
.user-card a, .hint a {
    color: var(--purple);
    font-weight: 700;
    text-decoration: none;
}
.user-card a:hover, .hint a:hover { color: var(--pink); }

.flash {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid transparent;
}
.flash.ok {
    background: rgba(74, 222, 128, 0.12);
    color: #15803d;
    border-color: rgba(74, 222, 128, 0.25);
}
.flash.err {
    background: rgba(255, 92, 122, 0.1);
    color: #be123c;
    border-color: rgba(255, 92, 122, 0.25);
}

.pager { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pager a {
    padding: 8px 12px;
    border: 2px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    background: #fff;
}
.pager a.on {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--glow-pink);
}

/* 等级卡片 */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.tier-card {
    position: relative;
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow), var(--glow-purple);
}
.tier-card.current {
    border-color: var(--pink);
    box-shadow: var(--shadow), var(--glow-pink);
}
.tier-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 800;
}
.tier-card h3 {
    margin: 14px 0 8px;
    font-size: 13px;
    color: var(--purple);
    font-weight: 800;
    letter-spacing: .06em;
}
.tier-current-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    box-shadow: var(--glow-pink);
}
.tier-limits {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: grid;
    gap: 8px;
}
.tier-limits li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    padding: 10px 12px;
    background: rgba(155, 93, 229, 0.06);
    border-radius: 12px;
    font-weight: 600;
}
.tier-highlights {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}
.tier-card.tier-free { border-top: 4px solid #a8b4c8; }
.tier-card.tier-basic { border-top: 4px solid var(--mint); }
.tier-card.tier-intermediate { border-top: 4px solid var(--cyan); }
.tier-card.tier-advanced { border-top: 4px solid var(--yellow); }
.tier-compare .current-row td { background: rgba(255, 107, 157, 0.08) !important; }

/* 模拟调用 */
.simulate-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.simulate-label {
    flex: 1;
    min-width: 220px;
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
}
.simulate-label input {
    border: 2px solid rgba(155, 93, 229, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}
.simulate-label input:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.12);
}
.simulate-status {
    margin: 12px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--purple);
}
.simulate-status.err { color: var(--danger); }
.simulate-status.ok { color: #15803d; }

.simulate-candidates {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.simulate-pick {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color .2s, transform .15s;
}
.simulate-pick:hover {
    border-color: var(--pink);
    transform: translateX(4px);
}
.simulate-pick img {
    width: 52px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
}
.simulate-pick b { display: block; font-size: 14px; color: var(--ink); }
.simulate-pick small { color: var(--muted); font-size: 12px; }

.simulate-result { margin-top: 4px; }
.simulate-movie-head {
    display: flex;
    gap: 16px;
    align-items: center;
}
.simulate-movie-head img {
    width: 72px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.simulate-movie-head h2 { margin: 0 0 6px; font-size: 22px; }

.simulate-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.simulate-tabs button {
    border: 2px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    font-family: inherit;
    font-weight: 800;
    font-size: 13px;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all .15s;
}
.simulate-tabs button.on {
    border-color: transparent;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    box-shadow: var(--glow-pink);
}
.simulate-panel { display: none; }
.simulate-panel.on { display: block; }
.simulate-hint {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(155, 93, 229, 0.08);
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.6;
}
.simulate-field { margin-bottom: 14px; }
.simulate-field-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.simulate-field textarea {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: Consolas, "SF Mono", Menlo, monospace;
    font-size: 12px;
    line-height: 1.55;
    resize: vertical;
    background: #faf8ff;
    color: var(--ink);
}
.simulate-preview-wrap { margin-top: 8px; }
.simulate-preview-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--purple);
    letter-spacing: .06em;
}
.simulate-preview {
    border: 2px dashed var(--line);
    border-radius: var(--radius-sm);
    padding: 16px;
    background: #fff;
    font-size: 14px;
    line-height: 1.7;
    max-height: 360px;
    overflow: auto;
}
.simulate-preview img { max-width: 100%; height: auto; border-radius: 8px; }
.simulate-preview a { color: var(--purple); }

.tier-emoji {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.user-auth-wrap.single {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
}

.user-auth-card.wide {
    padding: 36px 32px 32px;
}

.user-form .check.agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.user-form .check.agree input {
    margin-top: 3px;
    flex-shrink: 0;
}

.user-form .check.agree a {
    color: var(--pink);
    text-decoration: none;
}

.user-form .check.agree a:hover {
    text-decoration: underline;
}

.user-hint {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 16px;
}

.legal-links {
    font-size: 12px;
    opacity: 0.85;
}

/* 响应式 */
@media (max-width: 900px) {
    .user-auth-wrap { grid-template-columns: 1fr; }
    .user-auth-hero { padding: 28px 24px; min-height: auto; }
    .user-auth-hero::before, .user-auth-hero::after { display: none; }
    .user-panel { grid-template-columns: 1fr; }
    .user-sider { border-right: 0; border-bottom: 2px solid rgba(255,255,255,.08); }
    .user-stats { grid-template-columns: 1fr 1fr; }
    .tier-grid { grid-template-columns: 1fr; }
    .user-tier-banner { flex-direction: column; align-items: flex-start; }
    .user-main { padding: 20px 16px 40px; }
}

@media (max-width: 520px) {
    .user-stats { grid-template-columns: 1fr; }
    .user-table { display: block; overflow-x: auto; white-space: nowrap; }
}
