/* 墨览云：纸张质感、墨色文字与克制的靛蓝。零构建、零外部依赖。 */
:root {
  color-scheme: light;
  --primary: #3c4bb0;
  --primary-hover: #2e3c9a;
  /* 实心主色（按钮底）：与 --primary 分开，深色主题下 --primary 太浅不能压白字 */
  --primary-solid: #4657c5;
  --primary-solid-hover: #3546ab;
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --bg-soft: #f1f3f8;
  --border-soft: #e9ecf2;
  --border-input: #dfe3ec;
  --text-main: #20242e;
  --text-sub: #626c7c;
  --text-faint: #697487;
  --icon-bg: #eef0fb;
  --danger: #bd414a;
  --ok: #168368;
  --warn: #956319;
  --radius-card: 18px;
  --radius-input: 10px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(22, 28, 45, .025), 0 10px 30px -22px rgba(22, 28, 45, .22);
  --shadow-float: 0 18px 50px -20px rgba(22, 28, 45, .28);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Code", ui-monospace, Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #a4aeff;
  --primary-hover: #c1c8ff;
  --primary-solid: #4f5fd0;
  --primary-solid-hover: #5d6ddc;
  --bg-page: #12151c;
  --bg-card: #1b1f29;
  --bg-soft: #242935;
  --border-soft: #2d3340;
  --border-input: #3c4555;
  --text-main: #edf0f7;
  --text-sub: #b1b9c8;
  --text-faint: #99a4b7;
  --icon-bg: #2b3049;
  --danger: #ef959c;
  --ok: #72cbb1;
  --warn: #deb36d;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .15), 0 12px 30px -20px rgba(0, 0, 0, .65);
  --shadow-float: 0 18px 50px -20px rgba(0, 0, 0, .8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #a4aeff; --primary-hover: #c1c8ff;
    --primary-solid: #4f5fd0; --primary-solid-hover: #5d6ddc;
    --bg-page: #12151c; --bg-card: #1b1f29; --bg-soft: #242935;
    --border-soft: #2d3340; --border-input: #3c4555;
    --text-main: #edf0f7; --text-sub: #b1b9c8; --text-faint: #99a4b7;
    --icon-bg: #2b3049; --danger: #ef959c; --ok: #72cbb1; --warn: #deb36d;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .15), 0 12px 30px -20px rgba(0, 0, 0, .65);
    --shadow-float: 0 18px 50px -20px rgba(0, 0, 0, .8);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans); background: var(--bg-page); color: var(--text-main);
  font-size: 15px; line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img, svg { vertical-align: middle; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.35; letter-spacing: -.025em; }
.muted { color: var(--text-sub); }
.center { text-align: center; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.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; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 18px; background: var(--bg-card); border: 1px solid var(--border-input); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
/* 全站导航 */
.topbar {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--bg-page) 86%, transparent);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 680; font-size: 16px; color: var(--text-main); flex: none; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--text-main); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: #4657c5; box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); }
.brand-mark .icon { width: 22px; height: 22px; }
.brand small { display: block; font-size: 10px; line-height: 1.3; letter-spacing: .09em; font-weight: 500; color: var(--text-faint); margin-top: 1px; }
.topnav { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; }
.topnav > .nav-spacer { display: block; }
.topnav > a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 12px; font-size: 14px; border-radius: 9px; white-space: nowrap; transition: color .16s, background .16s; }
.topnav > a:not(.btn) { color: var(--text-sub); }
.topnav > a:not(.btn):hover { color: var(--text-main); background: var(--bg-soft); text-decoration: none; }
.topnav > a:not(.btn).on { color: var(--primary); background: var(--icon-bg); font-weight: 600; }
.nav-spacer { flex: 1; }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 10px; color: var(--text-sub); background: transparent; cursor: pointer; transition: color .16s, background .16s, border-color .16s; }
.icon-btn:hover { color: var(--text-main); background: var(--bg-soft); }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; max-width: 140px; color: var(--text-sub); font-size: 13px; padding: 4px; }
/* 头像菜单：hover / 点击 / 键盘三通道都能唤起 */
.user-menu { position: relative; }
.user-menu-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 190px; padding: 4px 8px 4px 4px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--text-main); font-size: 13px; font-weight: 540; cursor: pointer; transition: background .16s, border-color .16s, color .16s; }
.user-menu-btn:hover, .user-menu.is-open .user-menu-btn { background: var(--bg-soft); border-color: var(--border-soft); }
.user-menu-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.user-menu-caret { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; color: var(--text-faint); transition: transform .16s; }
.user-menu-caret .icon { width: 14px; height: 14px; }
.user-menu.is-open .user-menu-caret { transform: rotate(180deg); }
.user-menu-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: 232px; padding: 7px; background: var(--bg-card); border: 1px solid var(--border-input); border-radius: 14px; box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; }
.user-menu.is-open .user-menu-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-head { padding: 9px 11px 11px; margin-bottom: 3px; border-bottom: 1px solid var(--border-soft); }
.user-menu-head strong { display: block; font-size: 13px; font-weight: 600; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-head span { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--text-sub); font-size: 13px; text-align: left; cursor: pointer; }
.user-menu-item .icon { width: 16px; height: 16px; color: var(--text-faint); }
.user-menu-item:hover { background: var(--bg-soft); color: var(--text-main); text-decoration: none; }
.user-menu-item:hover .icon { color: var(--primary); }
.user-menu-sep { height: 1px; margin: 6px 4px; background: var(--border-soft); }
.user-menu-logout { color: var(--danger); }
.user-menu-logout .icon { color: var(--danger); }
.user-menu-logout:hover { background: color-mix(in srgb, var(--danger) 9%, transparent); color: var(--danger); }
.user-menu-logout:hover .icon { color: var(--danger); }
.nav-user-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; background: var(--icon-bg); color: var(--primary); border-radius: 50%; font-size: 12px; font-weight: 650; }
.nav-user-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-toggle { display: none; }
.announce { background: var(--icon-bg); color: var(--text-sub); text-align: center; padding: 9px 20px; font-size: 13px; border-bottom: 1px solid var(--border-soft); }
/* 布局与卡片 */
.container { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 48px 32px 80px; }
.container:has(.auth-wrap) { display: flex; flex-direction: column; justify-content: center; }
.card { min-width: 0; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 26px; }
.card > h3:first-child { margin-bottom: 20px; font-size: 17px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 30px; }
.account-layout { --account-column: 280px; }
@media (max-width: 600px) { .account-head > .btn-primary { order: 3; } }
.page-heading h1 { font-size: 28px; margin: 0; }
/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: var(--radius-input); font-size: 14px; font-weight: 580; border: 1px solid transparent; cursor: pointer; background: #4657c5; color: #fff; transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s; white-space: nowrap; }
.btn .icon { width: 17px; height: 17px; }
.btn:hover:not(:disabled):not([aria-disabled="true"]) { background: #3546ab; text-decoration: none; color: #fff; }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: var(--bg-card); color: var(--text-main); border-color: var(--border-input); }
.btn-ghost:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--bg-soft); color: var(--text-main); border-color: var(--text-faint); box-shadow: none; }
.btn-danger { background: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger); filter: brightness(.92); color: #fff; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.btn-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-row.center { justify-content: center; }
/* 表单 */
.field { margin-bottom: 19px; min-width: 0; }
.field label { display: block; font-size: 13px; font-weight: 560; margin-bottom: 8px; color: var(--text-main); }
.field input, .field select, .field textarea { width: 100%; height: 46px; padding: 0 13px; border-radius: var(--radius-input); border: 1px solid var(--border-input); background: var(--bg-card); color: var(--text-main); font-size: 14px; transition: border-color .16s, box-shadow .16s; }
.field textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.field input::placeholder, textarea::placeholder, input::placeholder { color: var(--text-faint); opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--icon-bg); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.form-msg { min-height: 20px; font-size: 13px; color: var(--danger); margin: 8px 0; }
.form-msg.ok { color: var(--ok); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.password-toggle { position: absolute; top: 4px; right: 4px; width: 38px; height: 38px; }
.password-toggle .icon { width: 17px; height: 17px; }
/* 认证 */
.auth-wrap { width: 100%; max-width: 440px; margin: 20px auto; }
.auth-wrap .card { padding: 36px; border-radius: 22px; }
.auth-header { margin-bottom: 28px; }
.auth-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: var(--icon-bg); color: var(--primary); margin-bottom: 20px; }
.auth-title { margin: 0 0 8px; font-size: 26px; font-weight: 660; color: var(--text-main); }
.auth-sub { margin: 0; font-size: 14px; color: var(--text-sub); }
.auth-footer { margin-top: 18px; font-size: 14px; color: var(--text-sub); }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 0; }
.divider-line { flex: 1; height: 1px; background: var(--border-soft); }
.divider-text { font-size: 12px; color: var(--text-faint); }
/* 首页 */
.home-page { padding-top: 0; }
.home-hero { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; min-height: 548px; padding: 66px 0 54px; }
.home-hero::before { content: ""; position: absolute; top: 20px; left: -100px; width: 420px; height: 420px; pointer-events: none; background: radial-gradient(circle, var(--icon-bg), transparent 68%); opacity: .65; z-index: -1; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; color: var(--primary); background: var(--icon-bg); border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent); border-radius: 999px; font-size: 12px; font-weight: 570; }
.home-eyebrow i { width: 5px; height: 5px; background: var(--primary); border-radius: 50%; }
.home-copy h1 { font-size: clamp(38px, 4.2vw, 58px); font-weight: 640; line-height: 1.18; letter-spacing: -.055em; margin: 22px 0 20px; }
.home-copy h1 span { color: var(--primary); }
.home-copy > p { color: var(--text-sub); font-size: 16px; line-height: 1.85; max-width: 30em; }
.home-cta { margin-top: 30px; }
.home-cta .btn { min-height: 46px; padding-left: 20px; padding-right: 20px; }
/* 一行元信息：分隔点挂在后一项前面，换行时不会留下孤立的小圆点 */
.meta-dots { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; color: var(--text-faint); font-size: 12px; }
.meta-dots > span { display: inline-flex; align-items: center; }
.meta-dots > span + span::before { content: ""; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: var(--border-input); flex: none; }
.meta-dots a { color: var(--text-sub); text-decoration: underline; text-underline-offset: 2px; }
.meta-dots a:hover { color: var(--primary); }
.home-cta-secondary { display: flex; gap: 22px; align-items: center; margin-top: 16px; }
.home-cta-secondary a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-sub); }
.home-cta-secondary a:hover { color: var(--primary); }
.home-cta-secondary .icon { width: 15px; height: 15px; }
.home-caption { display: flex; gap: 20px; margin-top: 22px; color: var(--text-faint); font-size: 12px; }
.home-caption span { display: inline-flex; gap: 6px; align-items: center; }
.home-caption .icon { width: 14px; height: 14px; }
.home-workspace { position: relative; padding: 22px 0; }
.home-workspace::before { content: ""; position: absolute; inset: 0 12px; border-radius: 28px; background: var(--icon-bg); transform: rotate(3deg); opacity: .75; }
.workspace-window { position: relative; overflow: hidden; border: 1px solid var(--border-input); background: var(--bg-card); border-radius: 16px; box-shadow: 0 26px 70px -30px rgba(35, 44, 92, .32); }
.workspace-bar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); }
.workspace-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-input); }
.workspace-bar span { margin-left: auto; color: var(--text-faint); font-size: 10px; letter-spacing: .04em; }
.workspace-body { display: grid; grid-template-columns: 110px 1fr; min-height: 285px; }
.workspace-side { padding: 24px 16px; border-right: 1px solid var(--border-soft); background: var(--bg-soft); }
.workspace-side b { display: block; margin: 0 0 15px 5px; font-size: 11px; color: var(--text-faint); font-weight: 550; }
.workspace-side span { display: flex; align-items: center; gap: 7px; padding: 8px; font-size: 10px; color: var(--text-sub); border-radius: 6px; margin-bottom: 3px; }
.workspace-side span.active { color: var(--primary); background: var(--icon-bg); }
.workspace-side .icon { width: 12px; height: 12px; }
.workspace-doc { padding: 30px 34px; }
.workspace-doc .doc-label { color: var(--primary); font-size: 10px; letter-spacing: .08em; }
.workspace-doc h2 { margin: 13px 0; font-family: Georgia, "Songti SC", SimSun, serif; font-size: 26px; font-weight: 500; letter-spacing: .02em; }
.workspace-doc p { font-family: Georgia, "Songti SC", SimSun, serif; color: var(--text-sub); font-size: 12px; line-height: 2.1; }
.workspace-doc hr { border: 0; border-top: 1px solid var(--border-soft); margin: 22px 0; }
.workspace-doc small { font-size: 10px; color: var(--text-faint); }
.workspace-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border-soft); padding: 10px 16px; color: var(--text-faint); font-size: 10px; }
.workspace-foot i { width: 5px; height: 5px; background: var(--ok); border-radius: 50%; }
.workspace-foot span:last-child { margin-left: auto; }
.home-trust { display: flex; gap: 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 22px 0; }
.home-trust > div { flex: 1; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 13px; color: var(--text-sub); }
.home-trust > div + div { border-left: 1px solid var(--border-soft); }
.home-trust .icon { color: var(--primary); width: 18px; height: 18px; }
.home-section { padding-top: 78px; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.home-section-head h2 { margin: 0 0 6px; font-size: 27px; font-weight: 630; }
.home-section-head p { margin: 0; font-size: 13px; color: var(--text-sub); }
.home-section-head > a { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; white-space: nowrap; }
.home-section-head > a .icon { width: 15px; height: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 25px; position: relative; }
.feature-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--icon-bg); color: var(--primary); margin-bottom: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; font-weight: 620; }
.feature p { margin: 0; color: var(--text-sub); font-size: 13px; line-height: 1.85; }
.home-market { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.market-tile { display: flex; align-items: center; gap: 18px; padding: 23px; color: var(--text-main); }
.market-tile:hover { color: var(--text-main); text-decoration: none; border-color: var(--border-input); transform: translateY(-2px); box-shadow: var(--shadow-float); }
.market-tile .feature-icon { margin: 0; width: 42px; height: 42px; flex: none; }
.market-tile h3 { margin: 0 0 5px; font-size: 16px; }
.market-tile p { margin: 0; font-size: 12px; color: var(--text-sub); }
.market-tile > .icon { margin-left: auto; color: var(--text-faint); width: 16px; height: 16px; }
.home-cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 78px; padding: 32px; background: var(--bg-card); }
.home-cta-panel h2 { margin: 0 0 8px; font-size: 22px; }
.home-cta-panel p { margin: 0; font-size: 13px; color: var(--text-sub); }
/* 个人中心 */
.me-page { display: flex; flex-direction: column; gap: 18px; }
.me-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; }
.me-hero-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.me-avatar { width: 58px; height: 58px; font-size: 22px; border-radius: 17px; }
.me-hero-text h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 6px; font-size: 25px; font-weight: 650; }
.me-role { font-weight: 500; }
.me-hero-text p { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; color: var(--text-sub); font-size: 13px; }
.me-hero-text p i { width: 3px; height: 3px; border-radius: 50%; background: var(--border-input); }
.me-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: none; }
.me-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; color: var(--text-sub); font-size: 13px; }
.me-link .icon { width: 15px; height: 15px; }
.me-link:hover { color: var(--primary); background: var(--bg-soft); text-decoration: none; }
.me-logout .icon { width: 15px; height: 15px; }
.me-logout:hover:not(:disabled) { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 7%, transparent); }
.me-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.me-stat { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 17px 22px; }
.me-stat + .me-stat { border-left: 1px solid var(--border-soft); }
.me-stat span { color: var(--text-faint); font-size: 11.5px; }
.me-stat strong { font-size: 21px; font-weight: 620; line-height: 1.25; letter-spacing: -.02em; }
.me-stat strong i { margin-left: 5px; color: var(--text-sub); font-size: 11.5px; font-style: normal; font-weight: 500; letter-spacing: 0; }
.me-stat small { color: var(--text-sub); font-size: 11px; }
.account-content .empty { text-align: center; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 30px; }
.account-identity { display: flex; align-items: center; gap: 16px; }
.account-identity .avatar { width: 52px; height: 52px; font-size: 19px; border-radius: 15px; }
.account-identity h1 { font-size: 27px; margin: 0 0 4px; }
.account-identity p { margin: 0; color: var(--text-sub); font-size: 13px; }
.account-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 18px; align-items: start; }
.account-side { padding: 24px; position: sticky; top: 96px; }
.account-side h2 { font-size: 14px; margin: 0; }
.account-side .section-heading { margin-bottom: 16px; }
.quota-summary { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.quota-summary strong { font-size: 21px; font-weight: 620; letter-spacing: -.02em; }
.quota-summary span { color: var(--text-faint); font-size: 12px; }
.account-side-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border-soft); color: var(--text-faint); font-size: 11.5px; line-height: 1.75; }
.account-docs-count { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); margin-bottom: 20px; color: var(--text-sub); font-size: 12px; }
.account-docs-count strong { display: block; color: var(--text-main); font-size: 24px; font-weight: 600; line-height: 1.3; }
.quota-bar { height: 6px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; margin: 12px 0 20px; }
.quota-bar i { display: block; height: 100%; background: var(--primary-solid); border-radius: 4px; }
.quota-text { font-size: 12px; color: var(--text-sub); margin-bottom: 20px; }
.quota-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.quota-grid div { min-width: 0; }
.quota-grid span { display: block; font-size: 11px; color: var(--text-faint); margin-bottom: 3px; }
.quota-grid strong { font-size: 13px; font-weight: 570; }
.account-content { display: grid; gap: 20px; min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { font-size: 17px; margin: 0; }
.section-heading > span { color: var(--text-faint); font-size: 12px; }
.table-scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { padding: 13px 12px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: middle; }
table.grid th { color: var(--text-faint); font-weight: 520; font-size: 12px; white-space: nowrap; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid td.muted { color: var(--text-sub); }
.row-title { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.row-subtitle { display: block; color: var(--text-faint); font-size: 11px; margin-top: 4px; }
.share-actions { display: flex; gap: 4px; align-items: center; justify-content: end; }
.share-actions .icon { width: 15px; height: 15px; }
.share-actions .badge .icon { width: 11px; height: 11px; }
.share-revoke:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 7%, transparent); }
.quota-warning { margin-bottom: 12px; }
.version-item { margin-bottom: 9px; }
.version-item .tag { margin-left: 6px; }
/* ---------- 我的上传：管理台（上传入口 / 状态终态 / 行操作） ---------- */
.section-heading-side { display: flex; align-items: center; gap: 12px; flex: none; }
.upload-panel { margin-bottom: 18px; padding: 16px 18px; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--bg-soft); }
.upload-panel[hidden], .upload-confirm-row[hidden] { display: none; }
.upload-panel-title { font-size: 14px; font-weight: 570; margin-bottom: 12px; }
.upload-panel-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.upload-panel-row .field { flex: 1 1 220px; min-width: 0; }
.upload-panel .field > span { display: block; color: var(--text-sub); font-size: 12px; margin-bottom: 6px; }
.upload-panel input[type="file"], .upload-panel select, .upload-panel textarea { width: 100%; max-width: 100%; }
.upload-panel-hint { color: var(--text-faint); font-size: 12px; margin: 10px 0 0; }
.upload-panel-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.upload-panel-foot .form-msg { flex: 1; min-width: 160px; }
.upload-empty .btn { margin-top: 12px; }
.upload-status { display: inline-block; margin-top: 8px; }
.upload-reject { margin: 6px 0 0; padding: 8px 10px; border-left: 2px solid color-mix(in srgb, var(--danger) 55%, transparent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: color-mix(in srgb, var(--danger) 9%, transparent); color: var(--danger); font-size: 12px; line-height: 1.6; word-break: break-word; }
/* 历史版本的驳回只是记录，作品已重新提交/上架时不再用危险色制造「还有问题」的错觉 */
.upload-reject-history { border-left-color: var(--border-soft); background: var(--bg-soft); color: var(--text-sub); }
.upload-next { margin: 8px 0 0; color: var(--text-faint); font-size: 12px; }
/* 5 列后操作区必须同排：给末列内容宽度、日期不折断，否则「删除」被挤到第二行 */
.upload-table th:last-child, .upload-table td:last-child { width: 1%; white-space: nowrap; }
.upload-table .col-num { white-space: nowrap; }
.upload-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.upload-actions .btn { min-height: 30px; padding: 4px 8px; font-size: 12px; white-space: nowrap; }
.upload-delete { color: var(--danger); }
.upload-delete:hover:not(:disabled) { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.upload-confirm-row > td { padding-top: 0; }
.upload-confirm { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--danger) 7%, transparent); color: var(--danger); font-size: 12px; }
.upload-confirm > span:first-child { flex: 1; min-width: 200px; }
.upload-confirm .btn-ghost { color: var(--text-main); }
@media (max-width: 700px) {
  /* 窄屏转卡片：5 列表格挤成竖排不可读，改为「作品 → 版本 → 操作」纵向堆叠 */
  .upload-table thead { display: none; }
  .upload-table, .upload-table tbody, .upload-table tr, .upload-table td { display: block; width: 100% !important; }
  .upload-table tr { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
  .upload-table tr:last-child { border-bottom: 0; }
  .upload-table tr td { padding: 4px 8px; border: 0; }
  .upload-table .col-num { display: none; }
  .upload-table th:last-child, .upload-table td:last-child { white-space: normal; }
  .upload-actions { flex-wrap: wrap; justify-content: flex-start; margin-top: 8px; }
  .upload-confirm-row { padding: 0 0 12px; }
}
.profile-form { max-width: 600px; }
.profile-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-form-foot .form-msg { margin: 0; }
/* ---------- 账号设置：资料概览 / 安全 / 同步 ---------- */
.account-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--bg-soft); }
.account-facts div { min-width: 0; }
.account-facts dt { margin-bottom: 4px; color: var(--text-faint); font-size: 11.5px; }
.account-facts dd { margin: 0; font-size: 13px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-facts dd .muted { color: var(--text-faint); font-weight: 400; }
.security-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border-soft); }
.security-row:first-of-type { padding-top: 0; border-top: 0; }
.security-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--bg-soft); color: var(--text-sub); }
.security-icon .icon { width: 18px; height: 18px; }
.security-main { flex: 1; min-width: 0; }
.security-main strong { display: block; margin-bottom: 3px; font-size: 13.5px; font-weight: 570; }
.security-main p { margin: 0; color: var(--text-sub); font-size: 12.5px; line-height: 1.65; }
.security-main b { color: var(--text-main); font-weight: 600; }
.security-actions { display: flex; align-items: center; justify-content: flex-end; flex: none; flex-wrap: wrap; gap: 8px; }
.security-actions .icon { width: 14px; height: 14px; margin-left: 4px; }
.security-actions .btn:disabled { opacity: .5; cursor: default; }
.security-link { padding: 4px 2px; font-size: 12px; text-decoration: underline; text-decoration-color: var(--border-input); text-underline-offset: 3px; }
.security-link:hover { background: transparent; color: var(--primary); text-decoration-color: currentColor; }
.session-list { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--border-soft); }
.session-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border-soft); }
.session-item:last-child { border-bottom: 0; }
.session-item.is-current .session-icon { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.session-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--bg-soft); color: var(--text-sub); }
.session-icon .icon { width: 16px; height: 16px; }
.session-main { flex: 1; min-width: 0; }
.session-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.session-title strong { font-size: 13px; font-weight: 570; }
.session-meta { margin: 3px 0 0; color: var(--text-faint); font-size: 11.5px; }
.session-item .btn { flex: none; }
.sync-form { max-width: 600px; }
.rule-add { display: flex; align-items: center; gap: 8px; }
.rule-add input { flex: 1; min-width: 0; }
.rule-add .btn { flex: none; height: 46px; padding: 0 18px; }
.rule-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.rule-item { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 5px 6px 5px 10px; border: 1px solid var(--border-soft); border-radius: 999px; background: var(--bg-soft); font-size: 12px; }
.rule-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rule-remove { flex: none; width: 22px; height: 22px; color: var(--text-faint); }
.rule-remove:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.rule-remove .icon { width: 12px; height: 12px; }
.rule-empty { margin: 12px 0 0; color: var(--text-faint); font-size: 12px; }
.rule-empty[hidden] { display: none; }
.account-hint { display: flex; align-items: flex-start; gap: 6px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--border-soft); color: var(--text-faint); font-size: 11.5px; line-height: 1.7; }
.account-hint .icon { flex: none; width: 13px; height: 13px; margin-top: 2px; }
.account-hint code { font-size: 11px; }
.sync-form .profile-form-foot { margin-top: 16px; }
.empty { color: var(--text-faint); padding: 26px 10px; font-size: 13px; }
.empty .icon { display: block; margin: 0 auto 12px; width: 24px; height: 24px; }
/* 通用 */
.badge, .tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge-green, .tag-approved, .tag-active { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); }
.badge-yellow, .tag-pending { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.badge-red, .tag-rejected, .tag-disabled { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.badge-gray { background: var(--bg-soft); color: var(--text-sub); }
.check-list { margin: 16px 0; }
.check-item { padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: 6px; font-size: 14px; background: var(--bg-soft); }
.check-item span { display: inline-block; width: 22px; font-weight: 700; }
.check-item.ok span { color: var(--ok); }
.check-item.bad span { color: var(--danger); }
.install-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 13px; color: var(--text-faint); flex-wrap: wrap; }
.install-steps li { padding: 4px 10px; border-radius: 12px; background: var(--bg-soft); }
.install-steps li.on { color: #fff; background: #4657c5; }
.install-steps li.done { color: var(--ok); }
.db-choice { display: flex; gap: 10px; margin-bottom: 16px; }
.db-opt { flex: 1; border: 1px solid var(--border-input); border-radius: var(--radius-input); padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.db-opt.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.db-opt input { display: none; }
.db-opt span { font-size: 12px; color: var(--text-sub); }
.done-icon { font-size: 36px; margin: 8px 0; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 28px; font-size: 13px; color: var(--text-sub); }
.pager .pager-info { padding: 0 8px; }
code, pre { font-family: var(--font-mono); }
code { background: var(--bg-soft); padding: 2px 5px; border-radius: 4px; font-size: .92em; }
pre code { padding: 0; }
.footer { border-top: 1px solid var(--border-soft); padding: 26px 32px; color: var(--text-faint); font-size: 12px; }
.footer-inner { max-width: 1176px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text-sub); }
.footer-brand .icon { width: 16px; height: 16px; color: var(--primary); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-sub); }
.footer-links a:hover { color: var(--primary); }
.mdv-toast { position: fixed; bottom: 28px; left: 50%; z-index: 100; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 10px; background: var(--text-main); color: var(--bg-card); box-shadow: var(--shadow-float); font-size: 13px; opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; }
.mdv-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1100px) { .nav-toggle { display: none !important; } }
@media (max-width: 1099px) {
  .topbar-inner { gap: 16px; }
  .topnav { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; border: 1px solid var(--border-input); border-radius: 16px; background: var(--bg-card); box-shadow: var(--shadow-float); max-height: calc(100dvh - 104px); overflow-y: auto; }
  .topnav.is-open { display: flex; }
  .topnav > a { justify-content: flex-start; padding: 11px 13px; }
  .topnav > a.btn { justify-content: center; margin-top: 4px; }
  .topnav > .nav-spacer { display: none; }
  .nav-spacer { display: none; }
  .nav-tools { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .home-hero { gap: 36px; }
  .workspace-body { grid-template-columns: 90px 1fr; }
  .workspace-doc { padding: 24px; }
  .home-copy h1 { font-size: 43px; }
}
@media (max-width: 860px) {
  .container { padding: 32px 24px 60px; }
  .topbar-inner { height: 68px; padding: 0 24px; }
  .home-page { padding-top: 0; }
  .home-hero { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 34px; min-height: 0; }
  .home-copy { max-width: 550px; }
  .home-workspace { max-width: 650px; width: 100%; }
  .workspace-body { grid-template-columns: 110px 1fr; }
  .home-trust > div { font-size: 12px; gap: 7px; }
  .home-section { padding-top: 56px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .me-hero { flex-wrap: wrap; }
  .me-stats { grid-template-columns: 1fr 1fr; }
  .me-stat:nth-child(3) { border-left: 0; }
  .me-stat:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
  .footer { padding: 24px; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 600px) {
  .container { padding: 28px 20px 52px; }
  .topbar-inner { padding: 0 20px; }
  .brand small { display: none; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand { gap: 9px; font-size: 15px; }
  .nav-user { display: none; }
  .user-menu-btn { padding: 2px; gap: 0; }
  .user-menu-btn .nav-user-name, .user-menu-btn .user-menu-caret { display: none; }
  .nav-tools { gap: 4px; }
  .nav-register { display: none; }
  .topnav .nav-register { display: inline-flex; }
  .nav-tools > .btn { padding: 6px 11px; }
  .nav-tools > .nav-register { display: none; }
  .home-hero { padding-top: 38px; gap: 26px; }
  .home-copy h1 { font-size: 38px; }
  .home-copy > p { font-size: 14px; }
  .home-caption { gap: 12px; font-size: 11px; }
  .home-workspace { padding: 12px 0; }
  .home-workspace::before { border-radius: 20px; }
  .workspace-body { grid-template-columns: 1fr; min-height: 245px; }
  .workspace-side { display: none; }
  .workspace-doc { padding: 28px; }
  .home-trust { flex-direction: column; gap: 14px; align-items: center; padding: 20px 0; }
  .home-trust > div { justify-content: flex-start; width: 180px; }
  .home-trust > div + div { border: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .home-market { grid-template-columns: 1fr; }
  .home-market .market-tile { padding: 18px 22px; }
  .feature { display: grid; grid-template-columns: 36px 1fr; gap: 0 16px; padding: 20px; }
  .feature-icon { margin: 0; grid-row: span 2; }
  .feature h3 { margin: 1px 0 5px; }
  .home-section-head { align-items: start; }
  .home-section-head h2 { font-size: 24px; }
  .home-section-head p { font-size: 12px; }
  .home-section-head > a { margin-top: 6px; }
  .home-cta-panel { flex-direction: column; align-items: flex-start; padding: 24px; margin-top: 56px; gap: 20px; }
  .home-cta-panel h2 { font-size: 20px; }
  .auth-wrap { margin: 4px auto; }
  .auth-wrap .card { padding: 26px 22px; }
  .card { padding: 21px; }
  .account-head { align-items: flex-start; gap: 16px; }
  .account-head > .btn { padding: 7px 12px; font-size: 12px; }
  .me-hero { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; }
  .me-hero-text h1 { font-size: 22px; }
  .me-avatar { width: 50px; height: 50px; font-size: 19px; border-radius: 14px; }
  .me-hero-actions { width: 100%; gap: 8px; }
  .me-link { padding-left: 0; }
  .me-stat { padding: 14px 16px; }
  .me-stat strong { font-size: 19px; }
  .account-identity { gap: 12px; }
  .account-identity .avatar { width: 44px; height: 44px; }
  .account-identity h1 { font-size: 23px; }
  .account-head { flex-wrap: wrap; }
  .account-head > .btn-primary { margin-left: 0; }
  .account-side { display: block; }
  .profile-form .field-row { flex-direction: column; gap: 0; }
  .account-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .security-row { align-items: flex-start; flex-wrap: wrap; }
  .security-actions { width: 100%; justify-content: flex-start; padding-left: 52px; }
  .session-item { align-items: flex-start; }
  .session-item .btn { align-self: center; }
  .account-side h2 { margin-bottom: 0; }
  .account-docs-count { margin-bottom: 20px; }
  .page-heading { margin-bottom: 22px; }
  .page-heading h1 { font-size: 25px; }
  .footer { padding: 22px 20px; }
  .footer-inner { gap: 15px; }
  .footer-links { justify-content: center; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
