/* ============================================================
   维创云盘 - 页面级样式
   ============================================================ */

/* ---------------- 首页 ---------------- */
.site-nav {
    height: 64px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-nav .container { height: 64px; display: flex; align-items: center; gap: 32px; }
.site-nav .brand { margin-right: auto; }
.site-nav .nav-links { display: flex; gap: 28px; }
.site-nav .nav-links a { color: var(--text-muted); font-size: 14px; }
.site-nav .nav-links a:hover { color: var(--text); }

.hero {
    position: relative;
    padding: 76px 0 84px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 640px;
    background: radial-gradient(closest-side, rgba(36, 87, 230, .13), rgba(238, 243, 255, 0));
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 5fr 5fr;
    gap: 48px;
    align-items: center;
}
.hero h1 {
    font-size: 52px;
    line-height: 1.25;
    letter-spacing: .01em;
    margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 46ch;
    margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.hero-trust svg { color: var(--accent); flex: none; }

/* Hero 界面示意 */
.hero-visual { position: relative; }
.mock-folder {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .1);
    padding: 16px;
    position: relative;
    z-index: 2;
}
.mock-folder-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #F1F4F9; }
.mock-folder-head .name { font-size: 14px; font-weight: 600; }
.mock-folder-head .meta { font-size: 12px; color: var(--text-muted); }
.mock-folder-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.mock-share-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
}
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mock-thumb {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: #EEF3FF;
    position: relative;
    overflow: hidden;
}
.mock-thumb:nth-child(2) { background: #F0F6FF; }
.mock-thumb:nth-child(3) { background: #EAF7F4; }
.mock-thumb::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: 14%;
    width: 80%;
    height: 8px;
    border-radius: 4px;
    background: rgba(36, 87, 230, .16);
}
.mock-thumb.video::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .16);
}
.mock-panel {
    position: relative;
    z-index: 3;
    margin: -6px 0 0 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .1);
    padding: 16px;
}
.mock-panel-title { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.mock-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 0; }
.mock-row .chip {
    margin-left: auto;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 999px;
}
.mock-link {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F7F9FC;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: ui-monospace, Menlo, monospace;
}
.mock-link .copy {
    margin-left: auto;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 7px;
}
.mock-watermark {
    position: absolute;
    right: -18px;
    bottom: -26px;
    width: 190px;
    font-size: 11px;
    color: rgba(36, 87, 230, .3);
    transform: rotate(-12deg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    z-index: 1;
    pointer-events: none;
}

/* 首页区块 */
.section { padding: 68px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 34px; letter-spacing: .01em; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); margin: 0; font-size: 15px; }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.cap-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-lift); }
.cap-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.cap-icon.accent { background: var(--accent-soft); color: var(--accent); }
.cap-card h3 { font-size: 16px; margin-bottom: 8px; }
.cap-card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { text-align: center; padding: 0 18px; position: relative; }
.step::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.step:last-child::after { display: none; }
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
}
.step.accent .step-num { background: var(--accent); }
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 13px; color: var(--text-muted); }

.split { display: grid; grid-template-columns: 5fr 5fr; gap: 56px; align-items: center; }
.split h2 { font-size: 34px; margin-bottom: 14px; }
.split .lead { color: var(--text-muted); font-size: 15px; line-height: 1.8; margin: 0 0 22px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; font-size: 14px; color: var(--text); }
.check-list svg { flex: none; color: var(--accent); margin-top: 3px; }

.panel-demo {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 22px;
}
.panel-demo .panel-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #EDF1F7; font-size: 14px; }
.panel-demo .panel-row:last-of-type { border-bottom: none; }
.switch {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: var(--primary);
    position: relative;
    flex: none;
}
.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 21px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
}
.switch.off { background: #CBD5E1; }
.switch.off::after { left: 3px; }

.scene-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.scene-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.scene-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-lift); }
.scene-card .cap-icon { margin-bottom: 0; flex: none; width: 38px; height: 38px; }
.scene-card h3 { font-size: 15px; margin-bottom: 6px; }
.scene-card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.cta {
    background: var(--bg-glow);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
}
.cta h2 { font-size: 30px; margin-bottom: 12px; }
.cta p { color: var(--text-muted); margin: 0 0 24px; }

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 40px;
}
.site-footer .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 20px; margin-left: auto; font-size: 13px; color: var(--text-muted); }
.site-footer .links a { color: var(--text-muted); }
.site-footer .links a:hover { color: var(--primary); }

/* ---------------- 登录页 ---------------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(900px 480px at 50% -8%, rgba(36, 87, 230, .1), transparent 70%), var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
    padding: 32px;
}
.auth-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-title); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.auth-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; }
.auth-note { font-size: 13px; color: var(--text-muted); margin-top: 18px; line-height: 1.7; }
.auth-back { display: block; text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.auth-back:hover { color: var(--primary); }
.admin-strip { height: 6px; background: var(--text); border-radius: 6px 6px 0 0; margin: -32px -32px 24px; }

.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; }
.code-row .btn { flex: none; min-width: 118px; }
.code-timer { font-variant-numeric: tabular-nums; }

/* ---------------- 工作台布局 ---------------- */
.work {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}
.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar .brand { padding: 4px 10px 20px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-control);
    color: var(--text-muted);
    font-size: 14px;
    transition: background .22s var(--ease), color .22s var(--ease);
}
.side-nav a:hover { background: #F5F7FB; color: var(--text); }
.side-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.side-foot { margin-top: 26px; border-top: 1px solid #F1F4F9; padding-top: 16px; }

.main { min-width: 0; padding: 0 0 40px; }
.main-top {
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    padding: 0 12px;
    height: 38px;
    width: 320px;
    max-width: 42vw;
    color: var(--text-muted);
    transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36, 87, 230, .1); }
.search-box input { border: none; background: transparent; outline: none; font-size: 14px; width: 100%; font-family: var(--font-body); color: var(--text); }
.account { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex: none;
}
.main-body { padding: 24px 28px; }

.overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 16px 18px;
}
.stat .num { font-size: 28px; font-weight: 600; line-height: 1.2; color: var(--text); }
.stat .lbl { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); padding: 3px; }
.segmented button {
    border: none;
    background: transparent;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    font-size: 13px;
    font-family: var(--font-body);
    transition: background .22s var(--ease), color .22s var(--ease);
}
.segmented button.active { background: var(--primary-soft); color: var(--primary); }

.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; margin-bottom: 14px; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { color: #C3CDDA; }
.crumbs .current { color: var(--text); }

.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 28px; letter-spacing: .01em; }
.page-head .meta { color: var(--text-muted); font-size: 13px; padding-bottom: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.share-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-control);
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.share-banner.ok { background: var(--accent-soft); border-color: #BFEDE6; color: #0B7F72; }
.share-banner.warn { background: var(--warning-soft); border-color: #F3DDA9; color: #9A5A06; }
.share-banner.info { background: #F4F6FA; border-color: var(--border); color: var(--text-muted); }

/* 文件网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
    gap: 16px;
}
.tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
    position: relative;
}
.tile:hover { border-color: #C3D2EE; box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.tile-thumb {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: #F4F7FC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    overflow: hidden;
    position: relative;
}
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-thumb.folder { background: var(--primary-soft); color: var(--primary); }
.tile-thumb .ext {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(255, 255, 255, .92);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10px;
    color: var(--text-muted);
    font-family: ui-monospace, Menlo, monospace;
}
.tile-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; }
.tile-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity .2s var(--ease);
}
.tile:hover .tile-menu, .tile:focus-within .tile-menu { opacity: 1; }
.icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }

/* 列表视图 */
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px 120px 150px 84px;
    gap: 14px;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid #F1F4F9;
    font-size: 14px;
    transition: background .18s var(--ease);
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--bg); }
.list-row.head { font-size: 12px; color: var(--text-muted); background: #FAFBFD; }
.list-row .fname { display: flex; align-items: center; gap: 10px; min-width: 0; }
.list-row .fname .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .fname a { color: var(--text); }
.list-row .fname a:hover { color: var(--primary); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; opacity: 0; transition: opacity .18s var(--ease); }
.list-row:hover .row-actions { opacity: 1; }

/* 上传队列 */
.upload-drop {
    border: 1.5px dashed #C7D4E8;
    background: #FAFBFE;
    border-radius: var(--radius-card);
    padding: 26px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .22s var(--ease), background .22s var(--ease);
}
.upload-drop:hover, .upload-drop.drag { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.queue { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.queue-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.queue-item .qname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 6px; border-radius: 3px; background: #E8EDF5; overflow: hidden; width: 90px; flex: none; }
.progress i { display: block; height: 100%; background: var(--primary); width: 0; transition: width .2s linear; }
.progress.done i { background: var(--success); }
.progress.fail i { background: var(--danger); }

/* 分享面板 */
.share-result {
    background: #F7F9FC;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-top: 12px;
}
.share-result .link { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Menlo, monospace; color: var(--text-muted); }

.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: border-color .2s var(--ease), background .2s var(--ease);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.radio-card input { margin: 3px 0 0; accent-color: var(--primary); }
.radio-card.active { border-color: var(--primary); background: var(--primary-soft); }
.radio-card .t { font-weight: 500; color: var(--text); }
.radio-card .d { color: var(--text-muted); font-size: 12px; }

/* 分享列表 */
.share-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) auto;
    gap: 16px;
    align-items: center;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.share-row:hover { border-color: #C3D2EE; box-shadow: var(--shadow-card); }
.share-row .fname { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.share-row .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.share-row .link-line {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F7F9FC;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 12px;
    color: var(--text-muted);
}
.share-row .link-line .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-actions { display: flex; gap: 6px; }

/* ---------------- 分享访问页 ---------------- */
.public-page { min-height: 100vh; display: flex; flex-direction: column; }
.public-head { height: 64px; border-bottom: 1px solid var(--border); background: var(--surface); }
.public-head .container { height: 64px; display: flex; align-items: center; gap: 12px; }
.public-head .from { font-size: 13px; color: var(--text-muted); }
.public-wrap { flex: 1; padding: 36px 0 60px; }
.public-inner { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.share-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    margin-bottom: 22px;
}
.share-hero h1 { font-size: 26px; margin-bottom: 8px; word-break: break-word; }
.share-hero .meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.gate {
    max-width: 420px;
    margin: 40px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.gate-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.state-card {
    max-width: 460px;
    margin: 60px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.state-card .badge-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; background: #F2F5FA; color: var(--text-muted); }
.state-card h1 { font-size: 22px; margin-bottom: 10px; }
.state-card p { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; }

.preview-only-bar {
    background: var(--accent-soft);
    border: 1px solid #BFEDE6;
    color: #0B7F72;
    border-radius: var(--radius-control);
    padding: 9px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------------- 后台 ---------------- */
.admin-work { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.admin-side {
    background: var(--text);
    color: #CBD5E1;
    padding: 20px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-side .brand { color: #fff; padding: 4px 10px 6px; }
.admin-side .brand-dot { background: var(--accent); }
.admin-side .sub { font-size: 12px; color: #8CA0B8; padding: 0 10px 20px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-control);
    color: #B6C2D3;
    font-size: 14px;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-foot { margin-top: 26px; padding: 16px 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.admin-foot a { color: #B6C2D3; }
.admin-foot a:hover { color: #fff; }

.admin-main { min-width: 0; padding-bottom: 40px; }
.admin-top {
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-top h1 { font-size: 18px; }
.admin-body { padding: 24px 28px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
}
.metric .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.metric .ico.accent { background: var(--accent-soft); color: var(--accent); }
.metric .num { font-size: 24px; font-weight: 600; line-height: 1.2; }
.metric .lbl { font-size: 12px; color: var(--text-muted); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); margin-bottom: 20px; overflow: hidden; }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.panel-head .actions { margin-left: auto; }
.panel-body { padding: 18px; }
.panel-body.flush { padding: 0; }

.split-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar .input, .filter-bar .select { min-height: 38px; width: auto; min-width: 160px; }

.wm-layout { display: grid; grid-template-columns: 5fr 5fr; gap: 24px; align-items: start; }
.wm-preview {
    background: #F7F9FC;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 14px;
}
.wm-preview img { width: 100%; border-radius: 8px; display: block; }
.wm-range { display: flex; align-items: center; gap: 10px; }
.wm-range input[type=range] { flex: 1; accent-color: var(--primary); }
.wm-range .val { width: 52px; text-align: right; font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.pager { display: flex; gap: 6px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1023px) {
    .hero-inner, .split { grid-template-columns: 1fr; gap: 36px; }
    .hero { padding: 48px 0 56px; }
    .hero h1 { font-size: 34px; }
    .hero .lead { font-size: 16px; }
    .cap-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wm-layout, .split-2 { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .section-head h2, .split h2 { font-size: 26px; }
    .work, .admin-work { grid-template-columns: 1fr; }
    .sidebar, .admin-side {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 12px;
        overflow-x: auto;
        padding: 10px 16px;
    }
    .sidebar .brand, .admin-side .brand, .admin-side .sub { display: none; }
    .side-nav, .admin-nav { flex-direction: row; gap: 6px; }
    .side-nav a, .admin-nav a { white-space: nowrap; padding: 7px 12px; }
    .side-foot, .admin-foot { display: none; }
    .main-body, .admin-body { padding: 18px 16px; }
    .main-top, .admin-top { padding: 0 16px; }
    .overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat .num { font-size: 22px; }
    .share-row { grid-template-columns: 1fr; }
    .list-row { grid-template-columns: minmax(0, 1fr) 96px 84px; }
    .list-row .hide-sm { display: none; }
    .row-actions { opacity: 1; }
}

@media (max-width: 767px) {
    .hero h1 { font-size: 32px; }
    .site-nav .nav-links { display: none; }
    .cap-grid, .scene-grid, .steps { grid-template-columns: 1fr; }
    .step { padding: 0; text-align: left; display: flex; gap: 14px; align-items: flex-start; }
    .step::after { display: none; }
    .step-num { margin: 0; flex: none; }
    .hero-trust { gap: 12px; }
    .hero-visual { display: none; }
    .overview { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .search-box { width: auto; flex: 1; max-width: none; }
    .account .email { display: none; }
    .page-head h1 { font-size: 22px; }
    .share-hero h1 { font-size: 20px; }
    .btn { min-height: 44px; }
    .radio-group { grid-template-columns: 1fr; }
    .queue-item .progress { width: 64px; }
    .toolbar .btn { flex: 1; }
    .list-row { grid-template-columns: minmax(0, 1fr) 72px; }
    .list-row .hide-sm, .list-row .col-date { display: none; }
}

/* 浮动操作菜单 */
.float-menu {
    position: absolute;
    z-index: 1200;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
    padding: 5px;
    display: flex;
    flex-direction: column;
}
.float-menu button {
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--text);
    cursor: pointer;
}
.float-menu button:hover { background: var(--bg); }
.float-menu button.danger { color: var(--danger); }
.float-menu button.danger:hover { background: var(--danger-soft); }

.queue-item .qactions { display: flex; gap: 4px; flex: none; }
.queue-item .qactions .btn { min-height: 26px; padding: 0 8px; }
