:root {
    --pink-50: #fff7fb;
    --pink-100: #ffe8f3;
    --pink-200: #ffc9e1;
    --pink-400: #ee6ba6;
    --pink-600: #c8417d;
    --plum-900: #3b1730;
    --ink: #47293d;
    --muted: #866f7d;
    --line: #f0dbe6;
    --mint: #4da78b;
    --amber: #c98937;
    --danger: #c94f62;
    --shadow: 0 16px 38px rgba(117, 37, 83, .10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, "Microsoft YaHei", sans-serif; color: var(--ink); background: linear-gradient(135deg, #fffafb 0%, #fff7fb 42%, #f7f4ff 100%); min-height: 100vh; }
a { color: inherit; }
.shell { max-width: 1400px; margin: 0 auto; padding: 26px 24px 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(145deg, var(--pink-400), #a956c9); color: white; font-size: 22px; box-shadow: 0 8px 20px rgba(200, 65, 125, .24); }
.brand h1 { margin: 0; font-size: 21px; letter-spacing: .1px; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.userbar { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.notification-wrap { position: relative; flex: 0 0 auto; }
.notification-trigger { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--pink-200); border-radius: 50%; background: #fff; color: var(--pink-600); }
.notification-trigger:hover { background: var(--pink-50); box-shadow: 0 5px 14px rgba(200, 65, 125, .16); }
.notification-icon { display: grid; place-items: center; }
.notification-icon svg { width: 18px; height: 18px; }
.notification-badge { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10px; line-height: 1; font-weight: 800; }
.notification-badge[hidden] { display: none; }
.notification-panel { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: min(360px, calc(100vw - 28px)); padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 42px rgba(117, 37, 83, .18); }
.notification-panel[hidden] { display: none; }
.notification-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--plum-900); }
.notification-mark-all { margin-left: auto; padding: 4px 7px; border: 0; background: transparent; color: var(--pink-600); font-size: 12px; font-weight: 700; }
.notification-mark-all:hover { background: var(--pink-50); color: var(--plum-900); }
.notification-close { width: 28px; height: 28px; padding: 0; border-radius: 50%; background: var(--pink-50); color: var(--muted); font-size: 20px; font-weight: 400; line-height: 1; }
.notification-close:hover { color: var(--pink-600); background: var(--pink-100); }
.notification-list { max-height: 320px; overflow-y: auto; padding-top: 2px; }
.notification-item { display: grid; gap: 4px; padding: 10px 2px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.notification-item:last-child { border-bottom: 0; }
.notification-item b { color: var(--plum-900); font-size: 13px; }
.notification-item small { color: var(--muted); font-size: 11px; }
.notification-empty { padding: 18px 2px 8px; color: var(--muted); font-size: 12px; text-align: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-200); color: var(--pink-600); font-weight: 700; }
.button, button { border: 0; border-radius: 10px; padding: 10px 14px; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover, button:hover { transform: translateY(-1px); }
.primary { background: var(--pink-600); color: white; box-shadow: 0 8px 18px rgba(200, 65, 125, .20); }
.secondary { background: white; color: var(--pink-600); border: 1px solid var(--pink-200); }
.ghost { background: transparent; color: var(--muted); padding: 7px 10px; }
.danger { color: var(--danger); background: #fff0f2; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: rgba(255,255,255,.90); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font-size: 25px; font-weight: 800; margin-top: 7px; color: var(--plum-900); }
.layout { display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 16px; padding: 19px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 14px; font-size: 17px; }
.panel h3 { margin: 20px 0 10px; font-size: 14px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #68495c; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: #fffafe; color: var(--ink); border-radius: 9px; padding: 10px 11px; font: inherit; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--pink-400); box-shadow: 0 0 0 3px rgba(238,107,166,.12); }
textarea { min-height: 78px; resize: vertical; }
.dropzone { border: 1.5px dashed var(--pink-400); background: var(--pink-50); border-radius: 12px; padding: 17px; text-align: center; color: var(--muted); cursor: pointer; }
.dropzone strong { display: block; color: var(--pink-600); margin-bottom: 5px; }
.dropzone input { display: none; }
.progress { height: 7px; border-radius: 99px; background: #f4e6ed; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--pink-400), #a956c9); border-radius: inherit; transition: width .25s; }
.upload-item { margin-top: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.toolbar .filters { display: flex; gap: 8px; flex: 1; }
.toolbar input { max-width: 260px; }
.job { border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: #fff; margin-bottom: 11px; }
.job-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job-title { font-size: 15px; font-weight: 800; word-break: break-word; }
.job-meta { color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.55; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-queued { background: #fff3d9; color: #9b6a13; }
.status-processing, .status-downloading, .status-analyzing { background: #e9f1ff; color: #4063a7; }
.status-completed { background: #e4f7ef; color: #2a7f62; }
.status-failed, .status-cancelled { background: #ffebee; color: #b44559; }
.job-progress { margin: 11px 0 9px; display: flex; align-items: center; gap: 10px; }
.job-progress .progress { flex: 1; }
.job-progress b { font-size: 12px; color: var(--pink-600); min-width: 42px; text-align: right; }
.job-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.job-actions .button, .job-actions button { font-size: 12px; padding: 7px 9px; }
.urls { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
.url-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }
.url-row input { font-size: 11px; padding: 7px 8px; color: #6f4b62; }
.notice { padding: 10px 12px; border-radius: 10px; background: #fff4db; color: #805e22; font-size: 12px; margin-bottom: 10px; }
.notice.success { background: #e4f7ef; color: #286c56; }
.empty { text-align: center; color: var(--muted); padding: 46px 20px; border: 1px dashed var(--line); border-radius: 12px; }
.login-shell { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login-card { width: min(420px, 100%); background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: 0 22px 60px rgba(117,37,83,.14); }
.login-card .brand { margin-bottom: 22px; }
.login-links { margin-top: 18px; text-align: center; font-size: 12px; color: var(--pink-600); }
.login-links a { text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.landing { max-width: 1240px; min-height: 100vh; margin: 0 auto; padding: 26px 24px 30px; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 70px; align-items: center; padding: 78px 0 68px; }
.landing-copy { max-width: 620px; }
.landing-eyebrow { color: var(--pink-600); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.landing-copy h2 { margin: 14px 0 18px; color: var(--plum-900); font-size: 52px; line-height: 1.12; letter-spacing: 0; }
.landing-copy h2 strong { color: var(--pink-600); font-weight: 800; }
.landing-copy p { max-width: 560px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.landing-actions .button { min-width: 126px; text-align: center; }
.landing-note { margin-top: 15px; color: var(--muted); font-size: 12px; }
.landing-preview { max-width: 470px; justify-self: end; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.7); box-shadow: 0 24px 60px rgba(117,37,83,.14); transform: rotate(1.5deg); }
.preview-top { display: flex; align-items: center; gap: 6px; padding: 7px 8px 13px; color: var(--muted); font-size: 11px; }
.preview-top span { width: 7px; height: 7px; border-radius: 50%; background: var(--pink-200); }
.preview-top span:first-child { background: var(--pink-400); }
.preview-top b { margin-left: auto; font-size: 11px; font-weight: 700; }
.preview-screen { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(145deg, #4d2648, #b95787 62%, #ed9dbd); overflow: hidden; position: relative; }
.preview-screen::before { content: ''; width: 170px; height: 170px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; position: absolute; }
.preview-play { display: grid; place-items: center; width: 54px; height: 54px; padding-left: 3px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--pink-600); font-size: 18px; z-index: 1; }
.preview-line { position: absolute; left: 20px; bottom: 31px; width: 27%; height: 5px; border-radius: 5px; background: rgba(255,255,255,.48); }
.preview-line.wide { bottom: 43px; width: 45%; background: rgba(255,255,255,.7); }
.preview-progress { position: absolute; left: 20px; right: 20px; bottom: 18px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; }
.preview-progress span { display: block; width: 68%; height: 100%; background: white; }
.preview-meta { display: flex; justify-content: space-between; padding: 13px 7px 3px; color: var(--muted); font-size: 12px; }
.preview-meta strong { color: var(--pink-600); }
.landing-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.landing-feature { padding: 19px 17px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.78); }
.feature-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 10px; background: var(--pink-100); color: var(--pink-600); font-weight: 800; }
.landing-feature h3 { margin: 0 0 8px; color: var(--plum-900); font-size: 14px; }
.landing-feature p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.landing-footer { padding-top: 34px; color: var(--muted); font-size: 11px; text-align: center; }
.landing .brand-mark { flex: 0 0 auto; }
@media (max-width: 980px) { .landing-hero { grid-template-columns: 1fr; gap: 34px; padding: 56px 0 45px; } .landing-preview { justify-self: start; max-width: 560px; } .landing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .landing { padding: 18px 14px 24px; } .landing-nav .button { padding: 8px 10px; font-size: 12px; } .landing-nav .brand h1 { font-size: 17px; } .landing-nav .brand small { display: none; } .landing-hero { padding: 58px 0 42px; } .landing-copy h2 { font-size: 39px; } .landing-copy p { font-size: 14px; } .landing-preview { transform: none; } .landing-features { grid-template-columns: 1fr; } }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; padding: 12px 15px; border-radius: 10px; background: var(--plum-900); color: white; box-shadow: var(--shadow); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .shell { padding: 18px 13px 32px; } .topbar { align-items: flex-start; } .userbar > span { display: none; } .stats { gap: 9px; } .stat { padding: 13px; } .stat-value { font-size: 21px; } .toolbar, .toolbar .filters { align-items: stretch; flex-direction: column; } .toolbar input { max-width: none; } .job-head { flex-direction: column; } .url-row { grid-template-columns: 62px minmax(0, 1fr); } .url-row button { grid-column: 2; justify-self: start; } }
