/* ============================================================
   YIZHENAI 鍐呴儴闂ㄦ埛 路 璁捐绯荤粺 v3
   妗岄潰绾у唴閮ㄥ簲鐢ㄧ晫闈細楂樺姣斻€佷綆瑁呴グ銆佹竻鏅颁换鍔℃祦
   ============================================================ */

@font-face {
  font-family: 'Outfit';
  src: url('/public/fonts/outfit-400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/public/fonts/outfit-600.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/public/fonts/outfit-800.woff2') format('woff2');
  font-weight: 800; font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0d0f;
  --card: rgba(255, 255, 255, .055);
  --card-solid: #14171a;
  --glass-2: rgba(255, 255, 255, .075);
  --chrome: rgba(17, 19, 22, .94);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --row-hover: rgba(255, 255, 255, .045);
  --text: #f4f5f7;
  --muted: #a3aab4;
  --indigo: #2dd4bf;
  --cyan: #2dd4bf;
  --violet: #fb7185;
  --grad: linear-gradient(100deg, #2dd4bf, #fbbf24 56%, #fb7185);
  --title-grad: linear-gradient(180deg, #ffffff, #d7dde6);
  --ok: #34d399;
  --no: #fb7185;
  --pending: #fbbf24;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  --btn-text: #0d1117;
  --r-lg: 8px;
  --r-md: 8px;
  --r-sm: 6px;
  --font-disp: 'Outfit', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
  --side-w: 248px;
  --scheme: dark;
}

html[data-theme="light"] {
  --bg: #f4f6f8;
  --card: rgba(255, 255, 255, .9);
  --card-solid: #ffffff;
  --glass-2: rgba(17, 24, 39, .055);
  --chrome: rgba(255, 255, 255, .92);
  --line: rgba(17, 24, 39, .1);
  --line-2: rgba(17, 24, 39, .18);
  --row-hover: rgba(17, 24, 39, .035);
  --text: #111827;
  --muted: #606976;
  --title-grad: linear-gradient(180deg, #111827, #475569);
  --shadow: 0 18px 40px -22px rgba(15, 23, 42, .28);
  --scheme: light;
}

html { scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

body {
  font-family: 'Outfit', 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(45, 212, 191, .3); }
a { color: var(--cyan); text-decoration: none; }
html[data-theme="light"] a { color: #047c72; }

/* ---------- 鑳屾櫙锛氫綆瑁呴グ銆佷綆娓叉煋璐熸媴 ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 260px),
    linear-gradient(90deg, rgba(45, 212, 191, .055), rgba(251, 191, 36, .025), rgba(251, 113, 133, .04));
}
html[data-theme="light"] .aurora {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, .045), rgba(17, 24, 39, 0) 260px),
    linear-gradient(90deg, rgba(45, 212, 191, .06), rgba(251, 191, 36, .035), rgba(251, 113, 133, .04));
}
.aurora i { display: none; }

/* ---------- 渚ц竟鏍忥紙妗岄潰锛?---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 50;
  display: flex; flex-direction: column; padding: 26px 18px 18px;
  background: var(--chrome);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(45, 212, 191, .18), rgba(251, 191, 36, .08));
  border: 1px solid var(--line-2); flex: none; }
.brand-text { font-family: var(--font-disp); font-weight: 800; font-size: 19px; letter-spacing: .14em; color: var(--text); }
.brand-text b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text-cn { font-size: 16px; letter-spacing: .08em; line-height: 1.2; }
.brand-sub { font-size: 10.5px; letter-spacing: .34em; color: var(--muted); opacity: .75; margin: 10px 0 22px 2px; }

.sidenav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.navlink {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-md);
  color: var(--muted); font-size: 14.5px; position: relative; border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.navlink .ic { opacity: .85; flex: none; }
.navlink:hover { color: var(--text); background: var(--glass-2); }
.navlink.active { color: var(--text); background: linear-gradient(110deg, rgba(45,212,191,.14), rgba(251,191,36,.07));
  border-color: rgba(45, 212, 191, .38); }
.navlink.active::before { content: ''; position: absolute; left: -19px; top: 50%; translate: 0 -50%;
  width: 3px; height: 22px; border-radius: 99px; background: var(--grad); }
.navlink .nbadge { margin-left: auto; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 99px;
  background: var(--no); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.side-foot { display: flex; flex-direction: column; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 600; font-size: 15px; color: #0b0f1c; background: var(--grad); }
.avatar-notify-badge {
  position: absolute; right: -7px; top: -7px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; display: grid; place-items: center; background: var(--no); color: #fff;
  border: 2px solid var(--card-solid); font-size: 11px; font-weight: 800; line-height: 1;
  box-shadow: 0 8px 18px rgba(251, 113, 133, .28);
}
.side-user-info { flex: 1; min-width: 0; }
.side-user-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-role { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--muted); transition: all .2s; flex: none; }
.iconbtn:hover { color: var(--text); border-color: var(--line); background: var(--glass-2); }
.chat-svg { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; flex: none; }

.theme-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 9px; border-radius: var(--r-md); cursor: pointer; font-size: 13px; font-family: inherit;
  background: var(--glass-2); border: 1px solid var(--line); color: var(--muted); transition: all .2s; }
.theme-toggle:hover { color: var(--text); border-color: var(--line-2); }
.theme-toggle .t-moon, .theme-toggle .t-sun { display: inline-flex; align-items: center; gap: 8px; }
.theme-toggle .t-sun, html[data-theme="light"] .theme-toggle .t-moon { display: none; }
html[data-theme="light"] .theme-toggle .t-sun { display: inline-flex; }

/* ---------- 绉诲姩绔?---------- */
.mobile-top { display: none; }
.mobile-menu { display: none; }
.tabbar { display: none; }

/* ---------- 涓诲唴瀹?---------- */
.page {
  margin-left: var(--side-w);
  width: calc(100% - var(--side-w));
  padding: 38px clamp(28px, 3vw, 56px) 60px;
  max-width: none;
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.eyebrow { font-family: var(--font-disp); font-size: 11px; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
html[data-theme="light"] .eyebrow { color: #047c72; }
h1.display { font-family: var(--font-disp); font-size: 34px; font-weight: 800; line-height: 1.15;
  background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head-extra { color: var(--muted); font-size: 13px; }
.home-greeting-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.home-greeting-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.home-greeting-avatar-wrap {
  position: relative; display: grid; place-items: center; width: 76px; height: 76px; flex: none;
  border-radius: 50%; border: 1px solid var(--line-2); background: var(--card);
  box-shadow: var(--shadow); color: inherit; text-decoration: none;
}
.home-greeting-avatar {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  object-fit: cover; font-size: 26px; font-weight: 800; color: #0b0f1c; background: var(--grad);
}
.home-greeting-copy { min-width: 0; }
.home-greeting-head h1.display {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; overflow-wrap: anywhere;
}
.home-greeting-head h1.display strong { font-weight: 800; }
.home-meal-v {
  position: absolute; right: 1px; bottom: 1px; display: grid; place-items: center;
  width: 25px; height: 25px; border-radius: 50%; border: 2px solid var(--card-solid);
  background: linear-gradient(135deg, #b45309, #f59e0b 52%, #fde68a);
  color: #fff7ed; font-size: 12px; font-weight: 900; line-height: 1;
  box-shadow: 0 8px 18px rgba(245, 158, 11, .28);
}
.home-paid-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 10px;
  border-radius: 999px; border: 1px solid rgba(245, 158, 11, .68);
  background: linear-gradient(135deg, #92400e, #d97706 55%, #fbbf24);
  color: #fff7ed; -webkit-text-fill-color: #fff7ed; font-size: 12px; font-weight: 800;
  line-height: 1; -webkit-background-clip: border-box; background-clip: border-box;
  box-shadow: 0 8px 18px rgba(245, 158, 11, .16);
}
.home-paid-chip b {
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #b45309; -webkit-text-fill-color: #b45309;
  font-size: 11px; line-height: 1;
}

/* ---------- 鍗＄墖 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 26px; margin-bottom: 20px;
  transition: border-color .25s;
}
.card:hover { border-color: var(--line-2); }
.card h2 { font-family: var(--font-disp); font-size: 16px; font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card h2::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--cyan); }

/* ---------- 鏁版嵁鍗＄墖 ---------- */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.stat:hover { transform: translateY(-3px); border-color: rgba(45,212,191,.42); box-shadow: var(--shadow); }
.stat a { display: block; color: inherit; }
.stat .num {
  font-family: var(--font-disp); font-size: 31px; font-weight: 800; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat .label { color: var(--muted); font-size: 13px; margin-top: 6px; letter-spacing: .03em; }

/* ---------- 杩涘害鏉?---------- */
.progress { height: 8px; background: var(--glass-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.task-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.task-row:last-child { border-bottom: none; }
.task-row .grow { flex: 1; min-width: 140px; }
.task-done { color: var(--muted); text-decoration: line-through; }
.due-tag { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.due-soon { color: var(--pending); background: rgba(251, 191, 36, .12); }
.due-over { color: var(--no); background: rgba(251, 113, 133, .14); }

/* ---------- 琛ㄦ牸 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: .1em; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--row-hover); }
.num-cell { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-disp); }

/* ---------- 琛ㄥ崟 ---------- */
form.stack { display: flex; flex-direction: column; gap: 15px; max-width: 560px; }
label { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 5px; letter-spacing: .04em; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=file], select, textarea {
  width: 100%; padding: 10px 13px; border-radius: var(--r-md); font-size: 14.5px; font-family: inherit;
  background: var(--glass-2); border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  color-scheme: var(--scheme);
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .6; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(45, 212, 191, .62);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .14);
}
select option { background: var(--card-solid); color: var(--text); }
.form-row { display: flex; gap: 13px; }
.form-row > div { flex: 1; }

/* ---------- 鎸夐挳 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--r-md); border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; font-family: inherit; color: var(--btn-text);
  background: var(--grad);
  transition: opacity .2s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn-ok { background: linear-gradient(110deg, #34d399, #2dd4bf); }
.btn-danger { background: linear-gradient(110deg, #fb7185, #f472b6); }
.btn-ghost { background: var(--glass-2); color: var(--text); border: 1px solid var(--line-2); }
.btn-link { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; font-family: inherit; }
.btn-link:hover { color: var(--text); }
.inline { display: inline; }

/* ---------- 寰界珷 ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .09); }
.badge-no { color: var(--no); border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .09); }
.badge-pending { color: var(--pending); border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .09); }
.badge-neutral { color: var(--muted); border-color: var(--line-2); background: var(--glass-2); }
html[data-theme="light"] .badge-pending { color: #b45309; }
html[data-theme="light"] .badge-ok { color: #047857; }
html[data-theme="light"] .badge-no { color: #be123c; }

/* ---------- 鍒楄〃椤?---------- */
.item { padding: 15px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: none; padding-bottom: 4px; }
.item .meta { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }

/* ---------- 鏂囨。閾哄紑棰勮 ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.doc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .25s, transform .25s; display: flex; flex-direction: column; }
.doc-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.doc-preview { background: var(--glass-2); height: 380px; }
.doc-preview iframe, .doc-preview img { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }
.doc-noview { height: 130px; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); font-size: 13px; background: var(--glass-2); }
.doc-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.doc-info .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-info .title { font-weight: 600; font-size: 14.5px; flex: 1; min-width: 0; }

/* ---------- 绉佷俊 ---------- */
.msg-thread {
  display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto;
  padding: 14px; border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
}
.msg { max-width: 78%; padding: 10px 13px; border-radius: 8px; font-size: 14px; line-height: 1.6; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.msg .m-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.msg-mine { align-self: flex-end; background: rgba(45, 212, 191, .18);
  border: 1px solid rgba(45,212,191,.38); border-bottom-right-radius: 4px; }
.msg-theirs { align-self: flex-start; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.aa-preview { padding: 11px 14px; border: 1px solid rgba(45, 212, 191, .35); background: rgba(45, 212, 191, .08);
  border-radius: var(--r-md); color: var(--text); font-size: 14px; }

/* ---------- 璧勬枡搴?---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.video-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.video-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.video-card video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.video-card .info { padding: 14px 16px 16px; }
.resource-preview { aspect-ratio: 16/9; background: rgba(0, 0, 0, .24); display: grid; place-items: center; overflow: hidden; }
.resource-preview > img, .resource-preview > iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }
.resource-preview > video { width: 100%; height: 100%; object-fit: contain; }
.resource-file { width: 100%; height: 100%; display: grid; place-items: center; gap: 8px; padding: 18px; text-align: center; }
.resource-file span { font-size: 42px; line-height: 1; }
.resource-file b { color: var(--muted); font-size: 13px; }
.resource-file audio { width: min(260px, 90%); }

/* ---------- 鎻愮ず ---------- */
.flash { background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .35); color: var(--cyan);
  padding: 12px 18px; border-radius: var(--r-md); margin-bottom: 18px; font-size: 14px; }
html[data-theme="light"] .flash { color: #0369a1; background: rgba(14,165,233,.08); border-color: rgba(14,165,233,.3); }
.error-msg { background: rgba(251, 113, 133, .09); border: 1px solid rgba(251, 113, 133, .4); color: var(--no);
  padding: 12px 18px; border-radius: var(--r-md); margin-bottom: 18px; font-size: 14px; }
.muted { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 38px 0; font-size: 14px; letter-spacing: .04em; }
.empty::before { content: ''; display: block; font-size: 26px; opacity: .4; margin-bottom: 6px; }

/* ---------- 鏍囩椤?---------- */
.tabs { display: inline-flex; gap: 4px; margin-bottom: 18px; padding: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); flex-wrap: wrap; }
.tabs a { padding: 8px 20px; border-radius: var(--r-sm); color: var(--muted); font-size: 14px; font-weight: 500;
  transition: all .2s; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--grad); color: var(--btn-text); font-weight: 600; }

.footer { text-align: center; color: var(--muted); opacity: .55; font-size: 12px; padding: 34px 0 0; letter-spacing: .12em; line-height: 1.9; }
.footer .beian-link, .auth-beian a { color: inherit; text-decoration: none; letter-spacing: .06em; }
.footer .beian-link:hover, .auth-beian a:hover { text-decoration: underline; opacity: .9; }
.auth-beian { text-align: center; margin: 18px 0 6px; color: var(--muted); opacity: .5; font-size: 12px; letter-spacing: .06em; position: relative; z-index: 2; }

/* ---------- 鐧诲綍 / 娉ㄥ唽 ---------- */
.auth-page {
  background:
    radial-gradient(circle at var(--mx, 64%) var(--my, 24%), rgba(45,212,191,.18), transparent 28vw),
    radial-gradient(circle at 18% 82%, rgba(251,191,36,.11), transparent 30vw),
    var(--bg);
}
.auth-code-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: .34;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.auth-code-bg pre {
  position: absolute; right: 6vw; top: 8vh; width: min(520px, 86vw);
  color: rgba(244,245,247,.42); font: 600 14px/1.9 Consolas, 'Cascadia Code', monospace;
  transform: rotate(-2deg); white-space: pre-wrap;
  animation: codeFloat 9s ease-in-out infinite;
}
.auth-code-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,15,.08), var(--bg) 92%);
}
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.auth-box {
  width: min(1080px, 100%);
  display: grid; grid-template-columns: minmax(320px, .95fr) minmax(360px, .78fr);
  gap: 18px; align-items: stretch;
}
.auth-hero, .auth-card {
  border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.055);
  box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.auth-hero {
  min-height: 560px; padding: 30px; display: grid; grid-template-rows: auto 1fr auto; gap: 28px;
  background:
    linear-gradient(135deg, rgba(45,212,191,.11), rgba(251,191,36,.055) 48%, rgba(251,113,133,.07)),
    rgba(255,255,255,.045);
}
.auth-logo { display: flex; align-items: center; gap: 14px; }
.auth-logo .logo-mark { width: 58px; height: 58px; border-radius: 8px; }
.auth-title { font-family: var(--font-disp); font-weight: 800; font-size: 30px; letter-spacing: .15em; line-height: 1; }
.auth-title b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-sub { color: var(--muted); font-size: 11px; letter-spacing: .28em; margin-top: 8px; }
.auth-hero-copy { align-self: center; max-width: 560px; }
.auth-pill {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(45,212,191,.36); background: rgba(45,212,191,.09); color: var(--cyan);
  font-size: 12px; font-weight: 700; margin-bottom: 16px;
}
.auth-hero-copy h2 { font-family: var(--font-disp); font-size: clamp(30px, 4vw, 52px); line-height: 1.05; max-width: 650px; }
.auth-hero-copy p { color: var(--muted); margin-top: 16px; max-width: 560px; font-size: 14.5px; }
.auth-terminal {
  display: grid; gap: 8px; padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px;
  background: rgba(0,0,0,.2); font: 600 12px/1.4 Consolas, 'Cascadia Code', monospace;
}
.auth-terminal div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.auth-terminal b { color: var(--text); font-weight: 700; }
.auth-terminal b::before { content: '$ '; color: var(--cyan); }
.auth-card { padding: 28px; align-self: center; }
.auth-card-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 20px; }
.auth-card h1 { font-family: var(--font-disp); font-size: 24px; font-weight: 800; line-height: 1.2; }
.auth-cert-mini {
  flex: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); font-size: 12px; background: var(--glass-2);
}
.auth-cert-mini:hover { color: var(--text); border-color: var(--line-2); }
.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 44px; box-sizing: border-box; }
.pw-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: none; background: none; color: var(--muted); cursor: pointer;
  padding: 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: color .2s, background .2s;
}
.pw-eye svg { width: 20px; height: 20px; }
.pw-eye:hover { color: var(--ink); background: rgba(124,131,253,.1); }
/* fallback for old toggle buttons without .pw-eye */
.password-field button:not(.pw-eye) {
  border: 1px solid var(--line); border-radius: 8px; background: var(--glass-2); color: var(--muted);
  font: inherit; cursor: pointer; position: absolute; right: 0; top: 0; bottom: 0; width: 58px;
}
.password-field button:not(.pw-eye):hover { color: var(--text); border-color: var(--line-2); }
.auth-security-note {
  margin-top: 14px; padding: 13px; border: 1px solid rgba(251,191,36,.35); border-radius: 8px;
  background: rgba(251,191,36,.075); display: grid; gap: 8px;
}
.auth-security-note strong { color: var(--text); font-size: 13.5px; }
.auth-security-note span { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.auth-security-note div { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
/* 登录页底部操作按钮 */
.auth-actions { display: flex; justify-content: center; gap: 18px; margin-top: 20px; }
.auth-act {
  display: flex; align-items: center; gap: 5px;
  padding: 0; border: none; background: none;
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600;
  transition: color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.auth-act:hover { color: var(--ink); transform: translateY(-1px); }
.auth-act:active { transform: scale(.96); }
.auth-act-ic { font-size: 15px; line-height: 1; }
/* 登录页 - 双通道选择器 */
.login-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.lch {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 14px 8px 12px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: rgba(255,255,255,.03);
  cursor: pointer; text-align: center;
  transition: border-color .35s ease, background .35s ease, box-shadow .35s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lch:hover { border-color: rgba(124,131,253,.4); background: rgba(124,131,253,.06); }
.lch:active { transform: scale(.96); }
.lch.is-active {
  border-color: rgba(124,131,253,.7);
  background: linear-gradient(135deg, rgba(124,131,253,.12) 0%, rgba(45,212,191,.08) 100%);
  box-shadow: 0 0 0 3px rgba(124,131,253,.13), 0 4px 18px rgba(124,131,253,.12);
  animation: lchPop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes lchPop { 0% { transform: scale(.92); } 50% { transform: scale(1.04); } 100% { transform: scale(1); } }
.lch.is-active::after {
  content: ''; position: absolute; top: -1px; left: 20%; right: 20%; height: 2.5px;
  background: var(--grad); border-radius: 0 0 4px 4px;
  animation: lchBar .35s ease both;
}
@keyframes lchBar { from { left: 48%; right: 48%; opacity: 0; } to { left: 20%; right: 20%; opacity: 1; } }
.lch-icon { font-size: 24px; line-height: 1; margin-bottom: 2px; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.lch.is-active .lch-icon { transform: scale(1.18); }
.lch-label { font-size: 14.5px; font-weight: 700; color: var(--ink); transition: color .3s; }
.lch.is-active .lch-label { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lch-desc { font-size: 11px; color: var(--muted); line-height: 1.3; transition: color .3s; }
.lch.is-active .lch-desc { color: var(--ink); }
[data-theme="light"] .lch { background: rgba(0,0,0,.02); }
[data-theme="light"] .lch.is-active { background: linear-gradient(135deg, rgba(124,131,253,.08) 0%, rgba(45,212,191,.05) 100%); }
@media (prefers-reduced-motion: reduce) { .lch, .lch.is-active, .lch.is-active::after { animation: none; } }
.auth-ips {
  grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.8;
}
.auth-entry-grid { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.auth-entry-grid a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 11px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--glass-2); color: var(--text);
}
.auth-ips code { background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; color: var(--muted); }
.auth-fallback { margin-bottom: 5px; }
.cert-guide { display: grid; gap: 14px; }
.cert-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-steps { display: grid; gap: 8px; }
.cert-steps section {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04);
}
.cert-steps b { color: var(--text); }
.cert-steps span { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
@keyframes codeFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(18px) rotate(-2deg); } }

/* ---------- 鍏ュ満鍔ㄦ晥锛堜粎妗岄潰锛岀Щ鍔ㄧ鍏抽棴浠ヤ繚娴佺晠锛?---------- */
@media (min-width: 941px) {
  .reveal, .card, .stat, .video-card, .doc-card { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
  .stat:nth-child(2) { animation-delay: .05s; }
  .stat:nth-child(3) { animation-delay: .1s; }
  .stat:nth-child(4) { animation-delay: .15s; }
  .card:nth-of-type(2) { animation-delay: .07s; }
  .card:nth-of-type(3) { animation-delay: .14s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   绉诲姩绔?鈮?940px
   ============================================================ */
@media (max-width: 1180px) {
  .sidebar { display: none; }
  .page { margin-left: 0; width: 100%; padding: 16px 14px calc(92px + env(safe-area-inset-bottom)); }

  .mobile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px;
    position: sticky; top: 0; z-index: 40; margin: -16px 0 16px; padding: 12px 12px;
    padding-top: calc(12px + env(safe-area-inset-top));
    background: var(--chrome);
    border-bottom: 1px solid var(--line); }
  .mobile-top .logo-mark { width: 34px; height: 34px; border-radius: 8px; }
  .mobile-top .brand-text { font-size: 16px; }
  .mobile-top .brand-text-cn { font-size: 14px; letter-spacing: .06em; }
  .mobile-top .mt-actions { display: flex; align-items: center; gap: 4px; }
  .mobile-avatar-link {
    position: relative; display: grid; place-items: center; width: 34px; height: 34px;
    border-radius: 8px; border: 1px solid var(--line); background: var(--glass-2); flex: none;
    padding: 0; color: inherit; cursor: pointer;
  }
  .mobile-avatar-link .avatar { width: 26px; height: 26px; font-size: 12px; }
  .mobile-avatar-link .avatar-img { border-width: 0; }
  .mobile-avatar-link .avatar-notify-badge { right: -5px; top: -5px; min-width: 18px; height: 18px; font-size: 10px; border-width: 2px; }

  .mobile-menu {
    display: none; position: fixed; left: 10px; right: 10px;
    top: calc(62px + env(safe-area-inset-top)); z-index: 80;
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 10px;
    max-height: calc(100dvh - 156px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto; background: var(--card-solid); border: 1px solid var(--line-2);
    border-radius: 8px; box-shadow: var(--shadow);
  }
  .mobile-menu.open { display: grid; }
  .mobile-menu .navlink { display: flex; flex-direction: row; justify-content: flex-start; gap: 9px;
    padding: 10px 11px; font-size: 13px; color: var(--text); background: var(--glass-2);
    border: 1px solid var(--line); border-radius: 8px; }
  .mobile-menu .navlink .ic { width: 19px; height: 19px; }
  .mobile-menu .navlink.active { border-color: rgba(45, 212, 191, .55); }
  .mobile-menu .navlink.active::before { display: none; }
  .mobile-menu .navlink .nbadge { margin-left: auto; }

  .tabbar { display: flex; position: fixed; left: 10px; right: 10px; z-index: 50;
    bottom: calc(10px + env(safe-area-inset-bottom));
    background: var(--chrome);
    border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 5px;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .5);
    gap: 3px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; }
  .tabbar::-webkit-scrollbar { display: none; }
  .tabbar .navlink { flex-direction: column; gap: 3px; padding: 6px 3px;
    font-size: 10.5px; border-radius: 8px; text-align: center; min-width: 66px; flex: 0 0 66px; }
  .tabbar .navlink span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabbar .navlink .ic { width: 21px; height: 21px; }
  .tabbar .navlink.active::before { display: none; }
  .tabbar .navlink .nbadge { position: absolute; top: 2px; right: 8px; margin: 0; }

  .page-head { margin-bottom: 18px; }
  .home-greeting-head { align-items: flex-start; margin-bottom: 20px; }
  .home-greeting-main { gap: 12px; }
  .home-greeting-avatar-wrap { width: 62px; height: 62px; }
  .home-greeting-avatar { width: 50px; height: 50px; font-size: 22px; }
  .home-greeting-head h1.display { font-size: 28px; gap: 9px; }
  .card { padding: 18px 16px; border-radius: var(--r-lg); }
  .stat { padding: 16px; }
  .stat .num { font-size: 26px; }
  .form-row { flex-direction: column; gap: 15px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 11px; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-preview { height: 300px; }
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .auth-wrap { padding: 16px; align-items: start; }
  .auth-box { grid-template-columns: 1fr; max-width: 620px; }
  .auth-hero { min-height: auto; padding: 22px; gap: 20px; }
  .auth-hero-copy h2 { font-size: 30px; }
  .auth-terminal { display: none; }
  .auth-card { padding: 25px 20px; }
  .auth-code-bg pre { right: -10vw; top: 4vh; font-size: 12px; opacity: .7; }
  .msg { max-width: 88%; }
}

/* ---------- 浼欓鎶ュ悕椤荤煡 闃呰鍖?---------- */
.notice-scroll { max-height: 380px; overflow-y: auto; padding: 2px 18px 2px 2px; line-height: 1.9; }
.notice-scroll h3 { margin: 18px 0 6px; font-size: 15px; }
.notice-scroll p { margin: 0 0 10px; }
.notice-intro { font-weight: 600; }
.notice-end { text-align: center; color: var(--muted); padding: 14px 0 4px; letter-spacing: .25em; font-size: 12.5px; }
.read-progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.signup-done { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- 寮圭獥 ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  background: rgba(4, 6, 12, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 18px; }
.modal-overlay.open { display: grid; }
.modal { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--card-solid); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 26px 28px; box-shadow: var(--shadow); animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }
.modal-center { text-align: center; max-width: 420px; }
.modal-title { font-family: var(--font-disp); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.modal-x:hover { color: var(--text); background: var(--glass-2); }
.modal .notice-scroll { max-height: 44vh; }
.success-ic { width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 14px; display: grid;
  place-items: center; font-size: 30px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #34d399, #2dd4bf); }
.meal-success-modal { position: relative; overflow: hidden; }
.meal-success-modal::before {
  content: ''; position: absolute; left: 50%; top: 34px; width: 180px; height: 180px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,.18), rgba(45,212,191,0) 68%);
  pointer-events: none; animation: mealGlow 1.8s ease-in-out infinite;
}
.meal-success-ic { position: relative; z-index: 1; animation: mealPop .62s cubic-bezier(.2, 1.2, .28, 1) both; }
.meal-success-ic span { display: inline-block; animation: mealCheck .72s ease-out .12s both; }
.meal-success-orbit {
  position: absolute; left: 50%; top: 24px; width: 96px; height: 96px; margin-left: -48px;
  border-radius: 50%; border: 1px solid rgba(45,212,191,.28); pointer-events: none;
  animation: mealOrbit 2.4s linear infinite;
}
.meal-success-orbit i {
  position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--pending);
  box-shadow: 0 0 18px rgba(251,191,36,.65);
}
.meal-success-orbit i:nth-child(1) { left: 10px; top: 14px; }
.meal-success-orbit i:nth-child(2) { right: 8px; top: 36px; background: var(--cyan); }
.meal-success-orbit i:nth-child(3) { left: 45px; bottom: 4px; }
@keyframes mealPop { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
@keyframes mealCheck { from { opacity: 0; transform: translateY(8px) scale(.76); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes mealOrbit { to { transform: rotate(360deg); } }
@keyframes mealGlow { 0%, 100% { opacity: .65; transform: translateX(-50%) scale(.94); } 50% { opacity: 1; transform: translateX(-50%) scale(1.05); } }
.payqr-img { width: min(260px, 70vw); border-radius: 8px; background: #fff; padding: 10px; }

/* ---------- 棣栭〉婊氬姩鍏憡鏍?---------- */
.annc-bar { display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px 16px; margin-bottom: 18px; }
.annc-label { flex: none; color: var(--cyan); font-weight: 600; font-size: 13px; letter-spacing: .1em; }
html[data-theme="light"] .annc-label { color: #0d7fd8; }
.annc-viewport { overflow: hidden; flex: 1; }
.annc-track { display: inline-flex; gap: 56px; white-space: nowrap; font-size: 13.5px;
  animation: marquee 20s linear infinite; padding-right: 56px; }
.annc-bar:hover .annc-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 棣栭〉鎿嶄綔鍙?---------- */
.home-priority-grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  gap: 14px; align-items: start; margin-bottom: 18px;
}
.home-priority-grid .shoot-board,
.home-priority-grid .home-pay-board { margin-bottom: 0; }
.home-priority-grid .home-pay-board { grid-template-columns: 1fr; }
.home-priority-grid .home-pay-card { max-height: 330px; overflow-y: auto; }
.home-priority-grid .pay-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.home-priority-grid .pay-row .num-cell { grid-column: 1; text-align: left; }
.home-priority-grid .pay-row .btn { grid-column: 2; justify-self: end; }
.home-priority-grid .shoot-project-row {
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: start;
}
.home-priority-grid .shoot-title { grid-column: 2 / 3; }
.home-priority-grid .shoot-status,
.home-priority-grid .shoot-owner,
.home-priority-grid .shoot-date,
.home-priority-grid .shoot-progress-cell { grid-column: 2 / -1; }
.home-priority-grid .shoot-action { grid-column: 3; grid-row: 1; }
.home-priority-grid .shoot-claim-form,
.home-priority-grid .shoot-claim-btn { grid-column: 3; grid-row: 1; }

.shoot-board {
  margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card);
}
.shoot-board-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap;
}
.shoot-board-head h2 { font-family: var(--font-disp); font-size: 26px; line-height: 1.2; margin-bottom: 7px; }
.shoot-board-head p { color: var(--muted); font-size: 13.5px; max-width: 720px; line-height: 1.65; }
.shoot-project-list { display: grid; gap: 8px; }
.shoot-project-row {
  display: grid; grid-template-columns: 14px minmax(220px, 1.45fr) minmax(118px, .75fr) minmax(150px, .9fr) minmax(130px, .8fr) minmax(120px, .7fr) 72px;
  align-items: center; gap: 10px; min-height: 72px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: rgba(255,255,255,.045); color: var(--text);
  transition: transform .18s, border-color .18s, background .18s;
}
.shoot-project-row:hover { transform: translateY(-1px); border-color: rgba(45,212,191,.45); background: rgba(255,255,255,.07); }
.shoot-project-row.is-unclaimed {
  border-color: rgba(251, 191, 36, .62); background: rgba(251, 191, 36, .085);
  animation: shootClaimJump 1.45s ease-in-out infinite;
}
.shoot-live-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted);
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .12);
}
.shoot-project-row.is-unclaimed .shoot-live-dot {
  background: var(--pending); box-shadow: 0 0 0 5px rgba(251, 191, 36, .14);
  animation: shootDotPulse 1.05s ease-in-out infinite;
}
.shoot-title, .shoot-owner, .shoot-date, .shoot-progress-cell, .pay-person { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.shoot-title strong { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.shoot-title em, .shoot-owner em, .shoot-date em, .shoot-progress-cell em, .pay-person em {
  color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.35;
}
.shoot-status { display: flex; gap: 5px; flex-wrap: wrap; }
.shoot-owner, .shoot-date { color: var(--text); font-size: 12.5px; line-height: 1.35; }
.shoot-progress-cell .progress { width: 100%; }
.shoot-action { justify-self: end; color: var(--pending); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.shoot-claim-form, .shoot-claim-btn { justify-self: end; }
.shoot-claim-btn { white-space: nowrap; }
.claim-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px; border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, .36); background: rgba(251, 191, 36, .075);
}
.claim-panel strong { display: block; margin-bottom: 3px; }
.claim-panel span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
@keyframes shootDotPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.65); opacity: .55; } }
@keyframes shootClaimJump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.home-pay-board { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 14px; margin-bottom: 18px; }
.home-pay-card {
  padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card);
}
.home-pay-card.is-primary { border-color: rgba(251, 191, 36, .38); background: linear-gradient(135deg, rgba(251,191,36,.08), rgba(255,255,255,.035)); }
.home-pay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.home-pay-head h2 { font-family: var(--font-disp); font-size: 22px; line-height: 1.2; }
.pay-kpi {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 10px;
  border-radius: 999px; border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.08);
  color: var(--muted); font-size: 12.5px; white-space: nowrap;
}
.pay-kpi b { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.pay-alert {
  margin-bottom: 10px; padding: 9px 11px; border: 1px solid rgba(251,191,36,.35); border-radius: 8px;
  background: rgba(251,191,36,.08); color: var(--pending); font-size: 13px;
}
.meal-status-summary { display: grid; gap: 7px; margin-bottom: 12px; }
.meal-status-line {
  display: grid; grid-template-columns: minmax(122px, auto) minmax(0, 1fr); gap: 8px; align-items: start;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04);
  font-size: 12.5px;
}
.meal-status-line b { display: inline-flex; align-items: center; gap: 8px; color: var(--text); white-space: nowrap; }
.meal-status-line b em { color: var(--muted); font-style: normal; font-weight: 700; }
.meal-status-line span { color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.meal-status-line.is-paid { border-color: rgba(245, 158, 11, .5); background: linear-gradient(135deg, rgba(245,158,11,.16), rgba(255,255,255,.035)); }
.meal-status-line.is-unpaid { border-color: rgba(239,68,68,.48); background: rgba(239,68,68,.08); }
.meal-status-line.is-missing { border-color: rgba(148,163,184,.28); }
.meal-cert-badge, .meal-danger-badge, .meal-wait-badge, .meal-muted-badge {
  display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 8px;
  border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.meal-cert-badge {
  color: #fffbeb; border: 1px solid rgba(245,158,11,.72);
  background: linear-gradient(135deg, #d97706, #f59e0b 48%, #fde68a);
  box-shadow: 0 0 0 1px rgba(245,158,11,.14), 0 6px 16px rgba(245,158,11,.14);
}
.meal-cert-badge b {
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #b45309; font-size: 11px; line-height: 1;
}
.meal-danger-badge { color: #fecaca; border: 1px solid rgba(239,68,68,.58); background: rgba(239,68,68,.14); }
.meal-wait-badge { color: var(--pending); border: 1px solid rgba(251,191,36,.42); background: rgba(251,191,36,.1); }
.meal-muted-badge { color: var(--muted); border: 1px solid rgba(148,163,184,.28); background: rgba(148,163,184,.08); }
.pay-section-title {
  margin: 12px 0 7px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em;
}
.pay-list { display: grid; gap: 7px; }
.pay-row {
  display: grid; grid-template-columns: minmax(150px, 1.1fr) auto minmax(88px, .75fr) 88px auto;
  align-items: center; gap: 9px; min-height: 58px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); font-size: 12.5px;
}
.pay-row.is-unpaid { border-color: rgba(239,68,68,.42); background: rgba(239,68,68,.055); }
.pay-row.is-paid { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.06); }
.pay-row.is-missing { opacity: .86; }

.my-projects-row { margin-top: 18px; margin-bottom: 18px; }
.my-project-ledger { margin-top: 18px; }
.project-money-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.project-money-card {
  min-height: 96px; padding: 13px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 6px;
}
.project-money-card span { color: var(--muted); font-size: 12px; }
.project-money-card b { color: var(--text); font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.project-money-card em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.35; }
.project-money-card.is-ok { border-color: rgba(52,211,153,.42); background: rgba(52,211,153,.08); }
.project-money-card.is-warn { border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.08); }
.project-money-card.is-danger { border-color: rgba(251,113,133,.48); background: rgba(251,113,133,.08); }
.project-overdue-alert {
  display: grid; gap: 4px; margin-bottom: 12px; padding: 11px 13px; border-radius: 8px;
  border: 1px solid rgba(251,113,133,.45); background: rgba(251,113,133,.08);
}
.project-overdue-alert strong { color: var(--no); }
.project-overdue-alert span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.project-ledger-list { display: grid; gap: 8px; }
.project-ledger-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035);
}
.project-ledger-row.is-overdue { border-color: rgba(251,113,133,.46); background: rgba(251,113,133,.07); }
.project-ledger-row strong { display: block; margin-bottom: 3px; overflow-wrap: anywhere; }
.project-ledger-row em { display: block; color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.42; overflow-wrap: anywhere; }
.project-bill-list { display: grid; gap: 8px; }
.project-bill-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  min-height: 58px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04);
}
.project-bill-row.is-pending { border-color: rgba(251,191,36,.38); background: rgba(251,191,36,.07); }
.project-bill-row span:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.project-bill-row span:first-child em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.35; overflow-wrap: anywhere; }

.home-command {
  display: grid; grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr); gap: 18px;
  margin-bottom: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.03));
}
.home-command-copy h2 { font-family: var(--font-disp); font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
.home-command-copy p { color: var(--muted); font-size: 14px; max-width: 580px; }
.home-command-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.home-command-stats span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--glass-2); color: var(--muted); font-size: 12.5px;
}
.home-command-stats b { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.home-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-action {
  display: grid; grid-template-rows: auto 1fr auto; min-height: 128px; padding: 15px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.045);
  color: var(--text); transition: transform .2s, border-color .2s, background .2s;
}
.home-action:hover { transform: translateY(-2px); border-color: rgba(45,212,191,.45); background: rgba(255,255,255,.07); }
.home-action-title { font-weight: 700; font-size: 16px; }
.home-action-desc { color: var(--muted); font-size: 13px; margin-top: 7px; line-height: 1.55; }
.home-action-meta { align-self: end; width: fit-content; margin-top: 12px; padding: 3px 9px; border-radius: 999px;
  color: var(--pending); border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.08); font-size: 12px; font-weight: 700; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding-top: 2px; }
.quick-card {
  display: flex; flex-direction: column; gap: 4px; min-height: 76px; padding: 12px;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--glass-2); color: var(--text);
}
.quick-card:hover { border-color: var(--line-2); }
.quick-card strong { font-size: 14px; }
.quick-card span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* ---------- 浼欓鎶ュ悕鎿嶄綔娴?---------- */
.meal-hero {
  display: grid; grid-template-columns: minmax(360px, 1.15fr) minmax(320px, .85fr); gap: 18px;
  margin-bottom: 16px;
}
.meal-summary, .meal-action-card, .meal-flow {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: none;
}
.meal-summary { padding: 24px; }
.meal-summary h2 { font-family: var(--font-disp); font-size: 25px; line-height: 1.24; margin-bottom: 8px; }
.meal-summary p { color: var(--muted); font-size: 14px; max-width: 680px; }
.meal-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-top: 20px; }
.meal-metric { min-height: 78px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--glass-2); }
.meal-metric b { display: block; color: var(--text); font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.meal-metric span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.aa-watch-card h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.aa-watch-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.aa-watch-summary span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-md); border: 1px solid rgba(251, 191, 36, .32);
  background: rgba(251, 191, 36, .07); color: var(--muted); font-size: 12.5px;
}
.aa-watch-summary b { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.meal-action-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.meal-action-primary { background: linear-gradient(135deg, rgba(45,212,191,.13), rgba(251,191,36,.08)); }
.meal-action-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meal-state-label { color: var(--muted); font-size: 12px; letter-spacing: .16em; }
.meal-action-card h2 { font-family: var(--font-disp); font-size: 23px; line-height: 1.25; }
.meal-action-card p { color: var(--muted); font-size: 14px; }
.meal-facts { display: grid; gap: 8px; margin: 2px 0; }
.meal-facts span { display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 11px; border-radius: var(--r-md); background: var(--glass-2); border: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px; }
.meal-facts b { color: var(--text); font-size: 14px; }
.meal-action-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.meal-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-bottom: 20px; }
.meal-step { position: relative; min-height: 112px; padding: 16px 16px 14px; background: rgba(255,255,255,.035); }
.meal-step-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--muted); font-weight: 800; font-size: 12px; margin-bottom: 10px; }
.meal-step strong { display: block; font-size: 14px; margin-bottom: 5px; }
.meal-step span:last-child { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.meal-step.done .meal-step-num, .meal-step.active .meal-step-num { background: var(--grad); color: var(--btn-text); border-color: transparent; }
.meal-step.active { background: rgba(45,212,191,.095); }
.meal-space-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.meal-space-status h3 { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; flex-wrap: wrap; }
.meal-space-status h3 > span {
  font-family: var(--font-disp); font-size: 28px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (max-width: 940px) {
  h1.display { font-size: 28px; }
  .home-priority-grid { grid-template-columns: 1fr; }
  .shoot-board { padding: 16px; }
  .shoot-board-head { flex-direction: column; align-items: stretch; }
  .shoot-board-head h2 { font-size: 24px; }
  .shoot-project-row {
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: start;
  }
  .shoot-title { grid-column: 2 / 3; }
  .shoot-status, .shoot-owner, .shoot-date, .shoot-progress-cell { grid-column: 2 / -1; }
  .shoot-action { grid-column: 3; grid-row: 1; }
  .shoot-claim-form, .shoot-claim-btn { grid-column: 3; grid-row: 1; }
  .home-pay-board { grid-template-columns: 1fr; }
  .home-command { grid-template-columns: 1fr; padding: 16px; }
  .home-command-copy h2, .meal-summary h2 { font-size: 22px; }
  .home-action { min-height: 118px; }
  .meal-hero { grid-template-columns: 1fr; }
  .meal-summary, .meal-action-card { padding: 18px 16px; }
  .meal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meal-flow { grid-template-columns: 1fr; gap: 0; }
  .meal-step { min-height: auto; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: start; }
  .meal-step-num { grid-row: span 2; margin-bottom: 0; }
}

@media (max-width: 560px) {
  .auth-wrap { padding: 10px; }
  .auth-hero, .auth-card { padding: 16px; }
  .auth-logo .logo-mark { width: 46px; height: 46px; }
  .auth-title { font-size: 22px; }
  .auth-sub { letter-spacing: .16em; }
  .auth-hero-copy h2 { font-size: 24px; }
  .auth-card-head { align-items: flex-start; }
  .auth-entry-grid { flex-direction: column; }
  .auth-entry-grid a { justify-content: space-between; }
  .cert-steps section { grid-template-columns: 1fr; }
  .password-field { grid-template-columns: minmax(0, 1fr) 54px; }
  .shoot-board, .home-pay-card { padding: 14px; }
  .shoot-project-row { grid-template-columns: 10px minmax(0, 1fr); gap: 8px; }
  .shoot-action { grid-column: 2; grid-row: auto; justify-self: start; }
  .shoot-claim-form, .shoot-claim-btn { grid-column: 2; grid-row: auto; justify-self: start; }
  .home-pay-head { flex-direction: column; }
  .pay-row { grid-template-columns: 1fr auto; align-items: start; }
  .pay-row .num-cell { text-align: left; }
  .meal-status-line, .project-bill-row, .project-ledger-row { grid-template-columns: 1fr; }
  .home-command-stats, .home-action-grid, .quick-grid, .meal-metrics, .aa-watch-summary, .project-money-board { grid-template-columns: 1fr; }
  .home-command-stats span, .meal-facts span { align-items: flex-start; flex-direction: column; gap: 3px; }
  .aa-watch-summary span { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .shoot-project-row.is-unclaimed,
  .shoot-project-row.is-unclaimed .shoot-live-dot,
  .meal-success-modal::before,
  .meal-success-ic,
  .meal-success-ic span,
  .meal-success-orbit { animation: none; }
}

/* ---------- 娆㈣繋鎻愮ず ---------- */
.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 120;
  background: var(--card-solid); border: 1px solid var(--line-2); border-radius: 99px;
  padding: 10px 24px; box-shadow: var(--shadow); font-size: 14px; animation: toastIn .45s both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast.hide { opacity: 0; transition: opacity .6s; }

/* ---------- 绠＄悊鍛橀€氱煡 ---------- */
.notify-widget { position: fixed; right: 20px; bottom: 20px; z-index: 160; }
.notify-btn {
  display: inline-flex; align-items: center; gap: 9px; min-width: 92px; height: 42px; padding: 0 14px;
  border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--card-solid);
  color: var(--text); box-shadow: var(--shadow); cursor: pointer; font-family: inherit; font-weight: 700;
}
.notify-btn b {
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--no); color: #fff; font-size: 12px; font-style: normal;
}
.notify-panel {
  display: none; position: absolute; right: 0; bottom: 50px; width: min(360px, calc(100vw - 28px));
  max-height: min(460px, calc(100vh - 120px)); overflow: hidden; border: 1px solid var(--line-2);
  border-radius: var(--r-lg); background: var(--card-solid); box-shadow: var(--shadow);
}
.notify-widget.open .notify-panel { display: block; animation: rise .18s both; }
.notify-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.notify-panel-head button { border: none; background: transparent; color: var(--cyan); cursor: pointer; font-family: inherit; font-size: 12.5px; }
.notify-list { max-height: 390px; overflow-y: auto; }
.notify-item {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--line);
  color: var(--text); background: transparent;
}
.notify-item:hover { background: var(--row-hover); }
.notify-item.unread { background: rgba(45, 212, 191, .07); }
.notify-item strong { font-size: 14px; }
.notify-item span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.notify-item em { color: var(--muted); font-size: 11.5px; font-style: normal; opacity: .8; }
.notify-empty { color: var(--muted); padding: 24px 14px; text-align: center; font-size: 13px; }
.admin-notify-toast {
  position: fixed; right: 20px; top: 20px; z-index: 170; display: flex; flex-direction: column; gap: 4px;
  width: min(360px, calc(100vw - 28px)); padding: 13px 15px; border: 1px solid rgba(45,212,191,.42);
  border-radius: var(--r-lg); background: var(--card-solid); box-shadow: var(--shadow); animation: toastSlide .25s both;
}
.admin-notify-toast strong { font-size: 14.5px; }
.admin-notify-toast span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.admin-notify-toast.hide { opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s; }
@keyframes toastSlide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .notify-widget { right: 14px; bottom: calc(88px + env(safe-area-inset-bottom)); }
  body[data-active="/chat"] .notify-widget { bottom: calc(148px + env(safe-area-inset-bottom)); }
  .notify-panel { bottom: 50px; }
  .admin-notify-toast { right: 14px; top: calc(12px + env(safe-area-inset-top)); }
}

/* ---------- 閫氳褰?---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.contact-card { display: flex; gap: 12px; align-items: center; background: var(--glass-2);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px;
  transition: border-color .25s, transform .25s; }
.contact-card:hover { border-color: rgba(45, 212, 191, .42); transform: translateY(-2px); }
.contact-dept { margin-bottom: 22px; }
.contact-dept-title { font-family: var(--font-disp); font-size: 17px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 8px; }
.contact-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.contact-pos { font-size: 13.5px; font-weight: 400; }
.contact-line { font-size: 15px; margin-top: 3px; }
.contact-phone { font-family: var(--font-disp); font-variant-numeric: tabular-nums; letter-spacing: .03em; }

/* ---------- 鍒嗙被绛圭爜锛堝埗搴﹂〉锛?---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 16px; border-radius: 99px; font-size: 13.5px; color: var(--muted);
  background: var(--glass-2); border: 1px solid var(--line); transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.active { background: var(--grad); color: var(--btn-text); font-weight: 600; border-color: transparent; }
.policy-content { line-height: 2; font-size: 14.5px; white-space: normal; }

/* ---------- 鏄熺骇璇勫垎 ---------- */
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-row .star input { display: none; }
.star-row .star span { font-size: 26px; color: var(--line-2); cursor: pointer; transition: color .15s; }
.star-row .star input:checked ~ span, .star-row .star:hover span, .star-row .star:hover ~ .star span,
.star-row .star input:checked + span { color: var(--pending); }
.star-row .star:has(input:checked) span, .star-row .star:has(input:checked) ~ .star span { color: var(--pending); }
.star-static { color: var(--pending); letter-spacing: 2px; }

/* ---------- 蹇屽彛閫夐」 ---------- */
.diet-row { display: flex; gap: 8px; flex-wrap: wrap; }
.diet-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px;
  background: var(--glass-2); border: 1px solid var(--line); font-size: 13.5px; cursor: pointer;
  transition: all .2s; margin: 0 !important; }
.diet-chip input { width: auto !important; }
.diet-chip:has(input:checked) { background: rgba(45, 212, 191, .18); border-color: rgba(45, 212, 191, .5); color: var(--text); }

/* ============================================================
   鎴戠殑缃戠洏 路 璧勬簮绠＄悊鍣?   ============================================================ */
.explorer-card { padding: 0; overflow: hidden; }
.exp-toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.exp-toolbar .iconbtn { border: 1px solid var(--line); font-size: 16px; }
.exp-toolbar .iconbtn:disabled { opacity: .35; cursor: default; }
.exp-crumbs { flex: 1; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 120px;
  font-size: 14px; }
.crumb { color: var(--muted); padding: 3px 8px; border-radius: 7px; }
.crumb:hover { color: var(--text); background: var(--glass-2); }
.crumb:last-child { color: var(--text); font-weight: 600; }
.crumb-sep { color: var(--muted); opacity: .5; }
.exp-actions { display: flex; gap: 8px; }
.exp-actions .btn { white-space: nowrap; }

.exp-area { position: relative; min-height: 340px; max-height: 64vh; overflow-y: auto; padding: 16px; user-select: none; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 6px; }
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  position: relative; padding: 26px 6px 10px; border-radius: 8px; border: 1px solid transparent; cursor: default; outline: none; }
.tile:hover { background: var(--glass-2); }
.tile.sel { background: rgba(45, 212, 191, .16); border-color: rgba(45, 212, 191, .45); }
.tile.dropover { background: rgba(45, 212, 191, .14); border-color: rgba(45, 212, 191, .6); }
.tile-check { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; display: grid; place-items: center;
  margin: 0 !important; cursor: pointer; z-index: 2; }
.tile-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tile-check span { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-2);
  background: rgba(4, 6, 12, .58); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.tile-check input:checked + span { background: var(--grad); border-color: transparent; }
.tile-check input:checked + span::after { content: '\2713'; display: block; color: var(--btn-text); font-size: 13px;
  line-height: 18px; font-weight: 800; text-align: center; }
.tile-ic { font-size: 42px; line-height: 1.15; height: 52px; display: grid; place-items: center; }
.tile-thumb { width: 76px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.tile-name { font-size: 12.5px; line-height: 1.35; max-width: 100%; word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta { font-size: 11px; color: var(--muted); }

.rubber { display: none; position: absolute; z-index: 5; pointer-events: none;
  background: rgba(45, 212, 191, .14); border: 1px solid rgba(45, 212, 191, .55); border-radius: 4px; }
.exp-area .drop-hint { display: none; position: sticky; bottom: 8px; margin: 8px auto 0; width: fit-content;
  padding: 9px 22px; border-radius: 99px; background: var(--grad); color: var(--btn-text);
  font-weight: 600; font-size: 13.5px; pointer-events: none; }
.exp-area.dragging { outline: 2px dashed rgba(45, 212, 191, .6); outline-offset: -6px; }
.exp-area.dragging .drop-hint { display: block; }
.exp-area.dragging-move { outline: 2px dashed rgba(251, 191, 36, .6); outline-offset: -6px; }
.exp-area.dragging-move .move-hint { display: block; background: linear-gradient(135deg, #fbbf24, #2dd4bf); }
.exp-area.dragging-move .drop-hint:not(.move-hint) { display: none; }
.crumb.dropover, .exp-toolbar .iconbtn.dropover, #moveParentBtn.dropover {
  color: var(--btn-text); background: var(--grad); border-color: transparent; }
.exp-status { padding: 9px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

.upitem { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.upitem .upname { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.upitem .uppct { width: 44px; text-align: right; font-size: 12px; }
.upitem.upfail .uppct { color: var(--no); }
.uperr { padding: 8px 16px; color: var(--no); font-size: 13px; border-bottom: 1px solid var(--line);
  background: rgba(251, 113, 133, .06); }

/* 鍙抽敭鑿滃崟 */
.ctx { position: fixed; z-index: 200; min-width: 190px; display: none; padding: 6px;
  background: var(--card-solid); border: 1px solid var(--line-2); border-radius: 8px;
  box-shadow: var(--shadow); }
.ctx.open { display: block; animation: rise .15s both; }
.ctx-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  font-size: 13.5px; cursor: pointer; }
.ctx-item:hover { background: var(--glass-2); }
.ctx-item.danger { color: var(--no); }
.ctx-item.disabled { opacity: .4; cursor: default; }
.ctx-item.disabled:hover { background: none; }
.ctx-ic { width: 20px; text-align: center; }
.ctx-hint { margin-left: auto; font-size: 11px; color: var(--muted); }
.ctx-sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* 棰勮鍣?*/
.viewer { width: min(1080px, 96vw); height: min(82vh, 900px); display: flex; flex-direction: column;
  background: var(--card-solid); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden; animation: rise .3s both; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.viewer-body { flex: 1; display: grid; place-items: center; overflow: auto; background: rgba(0, 0, 0, .25); }
.viewer-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-body iframe { width: 100%; height: 100%; border: none; }
.viewer-body pre { width: 100%; height: 100%; padding: 20px; overflow: auto; font-size: 13px;
  white-space: pre-wrap; word-break: break-all; }

@media (max-width: 940px) {
  .exp-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .exp-area { max-height: none; }
  .viewer { width: 100vw; height: 92vh; }
}

/* ============================================================
   鍥㈤槦鑱婂ぉ + 鑷畾涔夊ご鍍?   ============================================================ */
.avatar-img { object-fit: cover; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card-solid); }
.side-avatar-action {
  position: relative; display: inline-grid; place-items: center; cursor: pointer; flex: none;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit;
}
.profile-avatar-pick { position: relative; display: inline-grid; place-items: center; flex: none; cursor: pointer; }
.profile-avatar-pick > span {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--card-solid);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
}
.profile-avatar-pick:hover .avatar,
.side-avatar-action:hover .avatar,
.mobile-avatar-link:hover .avatar { border-color: rgba(45, 212, 191, .75); }

.chat-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 66vh; min-height: 420px; }
.chat-list { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; gap: 10px; max-width: 78%; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; flex: none; object-fit: cover;
  border: 1px solid var(--line-2); background: var(--card-solid); }
.chat-ava-text { display: grid; place-items: center; font-weight: 600; font-size: 15px;
  color: #0b0f1c; background: var(--grad); border: none; }
.chat-body { min-width: 0; }
.chat-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; margin-bottom: 3px; }
.chat-meta b { font-size: 12.5px; }
.chat-msg.mine .chat-meta { flex-direction: row-reverse; }
.chat-bubble { padding: 9px 13px; border-radius: 12px; background: var(--glass-2);
  border: 1px solid var(--line); font-size: 14.5px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word; width: fit-content; max-width: 100%; }
.chat-msg.mine .chat-bubble { background: linear-gradient(110deg, rgba(45,212,191,.18), rgba(251,191,36,.1));
  border-color: rgba(45, 212, 191, .4); margin-left: auto; }
.chat-sys {
  align-self: center;
  max-width: 86%;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
html[data-theme="light"] .chat-sys { background: rgba(15, 23, 42, .045); }

.chat-input { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px;
  border-top: 1px solid var(--line); background: var(--card); }
.chat-input textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; }
.chat-avatar-btn { cursor: pointer; flex: none; border: 0; padding: 0; background: transparent; color: inherit; }
.chat-avatar-btn img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); display: block; }

/* 鑱婂ぉ锛氭枃浠舵秷鎭?*/
.chat-bubble.chat-file { display: flex; align-items: center; gap: 12px; min-width: min(320px, 60vw); }
.cf-ic { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 8px;
  color: var(--text); background: rgba(45, 212, 191, .1); border: 1px solid var(--line); }
.cf-ic .chat-svg { width: 22px; height: 22px; }
.cf-info { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.cf-name { font-size: 13.5px; word-break: break-all; }
.cf-info .muted { font-size: 11.5px; }
.cf-acts { display: flex; gap: 6px; margin-left: auto; flex: none; flex-wrap: wrap; }

/* 鑱婂ぉ宸ュ叿鎸夐挳 + 寰呭鏍稿ご鍍忚鏍?*/
.chat-tool { border: 1px solid var(--line) !important; width: 38px; height: 38px; }
.chat-tool .chat-svg { width: 20px; height: 20px; }
.chat-avatar-btn { position: relative; }
.chat-avatar-btn.pending::after { content: ''; position: absolute; right: -2px; top: -2px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--pending);
  border: 2px solid var(--card-solid); }

/* 鑱婂ぉ锛氬唴宓屽獟浣撻瑙?*/
.chat-bubble.has-media { flex-direction: column; align-items: stretch; gap: 8px; }
.chat-media { max-width: min(380px, 56vw); max-height: 300px; border-radius: 10px; display: block;
  object-fit: contain; background: rgba(0, 0, 0, .25); }
.cf-row { display: flex; align-items: center; gap: 10px; }

/* 缇よ亰锛氭垚鍛樻潯锛堢偣鍑荤淇★級 */
.member-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.member-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 7px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer;
  font-size: 13px; color: var(--text); font-family: inherit; transition: border-color .2s, transform .2s; }
.member-chip:hover { border-color: rgba(45, 212, 191, .55); transform: translateY(-1px); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.online-dot.on { background: var(--ok); }

/* 绉佷俊鐙珛绐楀彛 */
body.dm-window { overflow: hidden; height: 100vh; height: 100dvh; max-height: 100dvh; display: flex; flex-direction: column; }
.dm-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--chrome); }
.dm-head .chat-ava { width: 38px; height: 38px; }
.dm-body { flex: 1 1 auto; min-height: 0; height: 100%; overflow: hidden; padding: 14px; display: flex; flex-direction: column; }
.dm-window .chat-card { flex: 1 1 auto; height: auto; min-height: 0; max-height: 100%; margin-bottom: 0; overflow: hidden; animation: none; transform: none; }
.dm-window .chat-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.dm-window .chat-input { flex: none; position: relative; z-index: 2; }
.dm-window .modal-overlay { padding: 10px; }
.dm-window.dm-embedded .dm-head { display: none; }
.dm-window.dm-embedded .dm-body { padding: 0; }
.dm-window.dm-embedded .chat-card { border: 0; border-radius: 0; background: transparent; }

/* 缇よ亰鍐呯淇￠潰鏉?*/
.dm-popover { position: fixed; inset: 0; z-index: 220; display: none; place-items: center; padding: 22px; }
.dm-popover.open { display: grid; }
.dm-popover-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .52); backdrop-filter: blur(10px); }
.dm-popover-box { position: relative; z-index: 1; width: min(920px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 48px)); height: min(820px, calc(100dvh - 48px));
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-2);
  border-radius: 8px; background: var(--card-solid); box-shadow: var(--shadow); }
.dm-popover-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 52px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--chrome); }
.dm-popover-head strong { font-size: 15px; }
.dm-popover iframe { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: var(--bg); }

.dm-toast {
  position: fixed; right: 22px; top: 22px; z-index: 240; width: min(360px, calc(100vw - 28px));
  display: flex; flex-direction: column; gap: 4px; padding: 13px 15px; text-align: left;
  border: 1px solid rgba(45, 212, 191, .45); border-radius: 8px; background: var(--card-solid);
  color: var(--text); box-shadow: var(--shadow); cursor: pointer; font-family: inherit; animation: toastSlide .2s both;
}
.dm-toast strong { font-size: 14.5px; }
.dm-toast span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.dm-toast.hide { opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s; }

/* 杞瓨鐩殑鍦伴€夐」 */
.save-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); cursor: pointer; margin: 0 !important; line-height: 1.5; transition: border-color .2s; }
.save-opt input { width: auto !important; margin-top: 4px; }
.save-opt:has(input:checked) { border-color: rgba(45, 212, 191, .55); background: rgba(45, 212, 191, .07); }
.save-cat { padding: 0 6px; }

.chat-doc { min-width: min(360px, 72vw); }
.doc-cardline { display: flex; align-items: center; gap: 12px; min-width: 0; }
.doc-ic { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex: none; background: rgba(45, 212, 191, .12); color: var(--text); border: 1px solid var(--line); }
.doc-ic .chat-svg { width: 21px; height: 21px; }
.btn-ic { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: none; }
.btn-ic .chat-svg { width: 16px; height: 16px; vertical-align: 0; }
.doc-info { min-width: 0; display: grid; gap: 2px; flex: 1; }
.doc-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-edit-body { min-height: 100vh; background: var(--bg); color: var(--text); overflow: hidden; }
.doc-edit-shell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 14px; gap: 12px; }
.doc-edit-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-edit-state { display: flex; gap: 12px; align-items: center; min-width: 0; font-size: 13px; }
.doc-edit-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-title-input { flex: none; font-size: 24px; font-weight: 800; border-radius: 8px; }
.doc-body-input { flex: 1 1 auto; min-height: 0; width: 100%; resize: none; line-height: 1.7; font-size: 15px; border-radius: 8px; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.doc-conflict { border: 1px solid rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .09); border-radius: 8px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
/* 缃戠洏鏂囦欢閫夋嫨鍣?*/
.picker-crumbs { font-size: 12.5px; margin-bottom: 8px; }
.picker-list { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.picker-item { display: flex; gap: 9px; align-items: center; padding: 10px 12px; border-radius: 8px;
  cursor: pointer; font-size: 14px; border: 1px solid transparent; }
.picker-item:hover { background: var(--glass-2); border-color: var(--line); }

@media (max-width: 1180px) {
  .page-chat {
    height: calc(100dvh - 58px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .dm-popover {
    align-items: center;
    justify-items: center;
    padding: max(12px, env(safe-area-inset-top)) 10px calc(12px + env(safe-area-inset-bottom));
  }
  .dm-popover-box {
    width: min(760px, calc(100vw - 20px));
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  .chat-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .page-chat .page-head {
    flex: none;
    margin-bottom: 10px;
  }
  .page-chat h1.display { font-size: 30px; }
  .page-chat .member-strip {
    flex: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .page-chat .member-strip::-webkit-scrollbar { display: none; }
  .page-chat .member-chip { flex: 0 0 auto; }
  .page-chat .chat-card { flex: 1 1 auto; height: auto; min-height: 0; margin-bottom: 0; }
  .page-chat .chat-list { padding: 12px 14px 8px; }
  .page-chat .chat-input { padding: 10px; gap: 8px; align-items: center; }
  .page-chat .chat-input textarea { min-height: 40px; max-height: 76px; }
  .page-chat #chatSend { min-width: 76px; height: 42px; padding: 0 18px; flex: none; }
  .page-chat .chat-tool { width: 36px; height: 36px; }
  .page-chat .chat-avatar-btn img,
  .page-chat .chat-avatar-btn .avatar { width: 36px !important; height: 36px !important; }
  .page-chat .chat-help {
    flex: none;
    margin: 7px 3px 0;
    line-height: 1.35;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page-chat .footer { display: none; }
  .chat-card { height: clamp(340px, 48dvh, 560px); min-height: 0; }
  @supports not (height: 100dvh) {
    .page-chat { height: calc(100vh - 58px); }
  }
  .chat-msg { max-width: 92%; }
  .chat-bubble.chat-file { flex-wrap: wrap; min-width: 0; }
  .cf-acts { margin-left: 0; }
}

@media (max-width: 1180px) and (orientation: landscape) {
  .page-chat {
    padding-top: 10px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
  .dm-popover { padding: 8px 12px; }
  .dm-popover-box {
    width: min(920px, calc(100vw - 24px));
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
  }
  body[data-active="/chat"] .notify-widget { bottom: calc(166px + env(safe-area-inset-bottom)); }
  .page-chat .page-head {
    align-items: center;
    margin-bottom: 8px;
  }
  .page-chat h1.display { font-size: 28px; }
  .page-chat .member-strip { margin-bottom: 8px; }
  .page-chat .chat-help { display: none; }
}

@media (max-width: 560px) {
  .page { padding-left: 10px; padding-right: 10px; }
  .page-head { align-items: flex-start; gap: 10px; }
  .page-head-extra { width: 100%; }
  .home-greeting-head { gap: 10px; }
  .home-greeting-main { align-items: flex-start; }
  .home-greeting-avatar-wrap { width: 54px; height: 54px; }
  .home-greeting-avatar { width: 44px; height: 44px; font-size: 19px; }
  .home-meal-v { width: 20px; height: 20px; font-size: 10px; border-width: 2px; }
  .home-paid-chip { min-height: 24px; padding: 3px 8px; font-size: 11px; }
  .card { padding: 16px 12px; }
  .btn { white-space: normal; }
  input[type=text], input[type=password], input[type=number], input[type=date], input[type=file], select, textarea { font-size: 16px; }
  table.mobile-card-table {
    display: block;
    overflow: visible;
    white-space: normal;
    border-collapse: separate;
    border-spacing: 0;
  }
  table.mobile-card-table tbody,
  table.mobile-card-table tr,
  table.mobile-card-table td {
    display: block;
    width: 100%;
  }
  table.mobile-card-table tr.mobile-table-head { display: none; }
  table.mobile-card-table tr {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--glass-2);
  }
  table.mobile-card-table td {
    display: grid;
    grid-template-columns: minmax(82px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    white-space: normal;
    word-break: break-word;
    text-align: left;
  }
  table.mobile-card-table td:last-child { border-bottom: 0; }
  table.mobile-card-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
  }
  table.mobile-card-table td.num-cell { text-align: left; }
  table.mobile-card-table td form.inline { display: inline-flex; flex-wrap: wrap; gap: 6px; }
  table.mobile-card-table td .btn-sm { width: fit-content; max-width: 100%; }
  .modal-overlay { padding: 10px; }
  .modal { max-height: calc(100dvh - 28px); }
  .notify-widget { right: 10px; }
  .notify-panel { width: calc(100vw - 20px); right: 0; }
  .mobile-top .notify-widget,
  body[data-active="/chat"] .mobile-top .notify-widget {
    position: relative;
    right: auto;
    bottom: auto;
    top: auto;
    left: auto;
    z-index: auto;
  }
  .mobile-top .notify-btn {
    width: 42px;
    min-width: 42px;
    height: 34px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }
  .mobile-top .notify-btn > span { display: block; font-size: 11px; }
  .mobile-top .notify-btn b {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
  }
  .mobile-top .notify-panel,
  body[data-active="/chat"] .mobile-top .notify-panel {
    position: fixed;
    top: calc(62px + env(safe-area-inset-top));
    right: 10px;
    bottom: auto;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 92px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  .dm-popover {
    padding: 0;
    place-items: stretch;
  }
  .dm-popover-box {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .dm-popover-head {
    min-height: calc(52px + env(safe-area-inset-top));
    padding-top: calc(10px + env(safe-area-inset-top));
  }
  .dm-toast {
    left: 10px;
    right: 10px;
    top: calc(10px + env(safe-area-inset-top));
    width: auto;
  }
  .page-chat { padding-left: 10px; padding-right: 10px; }
  .page-chat .chat-input { gap: 7px; padding-left: 8px; padding-right: 8px; }
  .page-chat .chat-input textarea { min-width: 0; }
  .page-chat #chatSend { min-width: 66px; padding: 0 12px; }
  .page-chat .chat-tool { width: 34px; height: 34px; }
  .page-chat .chat-avatar-btn img,
  .page-chat .chat-avatar-btn .avatar { width: 34px !important; height: 34px !important; }
}

/* ---------- 聊天：联系人栏 + 会话区 ---------- */
.chat-shell {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px;
  height: min(760px, calc(100dvh - 132px)); min-height: 560px;
}
.chat-roster, .chat-conversation {
  min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); overflow: hidden;
}
.chat-roster { display: flex; flex-direction: column; }
.chat-roster-head {
  flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.035);
}
.chat-roster-head b { display: block; font-size: 15px; }
.chat-roster-head span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.chat-roster-head em { font-style: normal; max-width: 130px; text-align: right; line-height: 1.35; }
.chat-conversation { display: flex; flex-direction: column; }
.chat-conversation-head {
  flex: none; display: flex; align-items: center; gap: 12px; min-height: 66px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.035);
}
.chat-room-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px;
  color: #0b0f1c; background: var(--grad); font-weight: 900;
}
.chat-conversation-head h1 { font-size: 18px; line-height: 1.2; margin: 0; }
.chat-conversation-head p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.chat-conversation .chat-card, .dm-window .chat-card {
  flex: 1 1 auto; height: auto; min-height: 0; margin: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none;
}
.chat-list {
  padding: 18px 18px 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012)),
    radial-gradient(circle at 12% 0, rgba(45,212,191,.055), transparent 32%);
}
.chat-msg { max-width: min(74%, 760px); align-items: flex-start; }
.chat-msg.mine { align-self: flex-end; }
.chat-ava-wrap {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
}
.chat-ava-wrap.is-small { width: 34px; height: 34px; }
.chat-ava-wrap.is-small .chat-ava { width: 30px; height: 30px; font-size: 13px; }
.chat-credit-v {
  position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--card-solid);
  background: linear-gradient(135deg, #b45309, #f59e0b 58%, #fde68a);
  color: #fff7ed; font-size: 9px; font-weight: 900; line-height: 1;
}
.chat-meta { color: var(--muted); margin-bottom: 5px; }
.chat-meta b { color: var(--muted); font-weight: 600; }
.chat-bubble {
  border-radius: 8px; border-bottom-left-radius: 4px; background: rgba(255,255,255,.08);
  box-shadow: 0 7px 18px rgba(0,0,0,.1);
}
.chat-msg.mine .chat-bubble {
  border-radius: 8px; border-bottom-right-radius: 4px; background: rgba(45, 212, 191, .2);
  border-color: rgba(45,212,191,.45);
}
html[data-theme="light"] .chat-list { background: #f3f5f7; }
html[data-theme="light"] .chat-bubble { background: #fff; border-color: rgba(15,23,42,.08); }
html[data-theme="light"] .chat-msg.mine .chat-bubble { background: #d9fdd3; border-color: rgba(22,163,74,.18); }
.chat-input {
  flex: none; padding: 12px; border-top: 1px solid var(--line);
  background: var(--card-solid); align-items: center;
}
.chat-input textarea {
  min-height: 42px; border-radius: 8px; background: rgba(255,255,255,.07);
}
.chat-tool { border-radius: 8px; background: rgba(255,255,255,.04); }
.member-strip {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column;
  gap: 4px; flex-wrap: nowrap; margin: 0; padding: 8px;
}
.member-chip {
  position: relative; width: 100%; justify-content: flex-start; gap: 9px; padding: 9px 10px;
  border-radius: 8px; background: transparent; border-color: transparent; font-size: 13px;
}
.member-chip:hover { transform: none; background: var(--glass-2); border-color: var(--line); }
.member-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-dot { width: 9px; height: 9px; box-shadow: 0 0 0 3px rgba(148,163,184,.12); }
.online-dot.on { box-shadow: 0 0 0 3px rgba(52,211,153,.16); }
.dm-head {
  min-height: 62px; background: var(--card-solid);
}
.dm-popover-box {
  width: min(980px, calc(100vw - 48px)); height: min(820px, calc(100dvh - 48px));
}
.dm-popover-head {
  min-height: 58px; background: var(--card-solid);
}

@media (max-width: 1180px) {
  .page-chat .chat-shell {
    flex: 1 1 auto; min-height: 0; height: auto; display: flex; flex-direction: column; gap: 8px;
  }
  .page-chat .chat-roster {
    flex: none; border-radius: 8px; overflow: hidden;
  }
  .page-chat .chat-roster-head {
    min-height: 42px; padding: 9px 10px; align-items: center;
  }
  .page-chat .chat-roster-head span { display: none; }
  .page-chat .chat-roster-head em { max-width: 58%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-chat .member-strip {
    flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 8px; gap: 7px;
  }
  .page-chat .member-chip {
    width: auto; min-width: 104px; max-width: 150px; flex: 0 0 auto; padding: 7px 9px;
  }
  .page-chat .chat-conversation {
    flex: 1 1 auto; min-height: 0; height: auto;
  }
  .page-chat .chat-conversation-head {
    min-height: 54px; padding: 9px 12px;
  }
  .page-chat .chat-room-mark { width: 34px; height: 34px; }
  .page-chat .chat-conversation-head h1 { font-size: 16px; }
  .page-chat .chat-conversation-head p { display: none; }
  .page-chat .chat-card { flex: 1 1 auto; height: auto; min-height: 0; }
  .page-chat .chat-list { padding: 12px 10px 8px; }
  .page-chat .chat-msg { max-width: 92%; }
}

@media (max-width: 560px) {
  .brand-text-cn { font-size: 14px; }
  .page-chat .chat-roster-head em { display: none; }
  .page-chat .member-chip { min-width: 92px; max-width: 126px; }
  .page-chat .chat-msg { max-width: 96%; gap: 7px; }
  .page-chat .chat-ava-wrap { width: 34px; height: 34px; }
  .page-chat .chat-ava { width: 34px; height: 34px; }
  .page-chat .chat-input { align-items: flex-end; }
}

/* ============================================================
   团队聊天 · 微信式单页（左会话列表 + 右对话框就地切换）
   ============================================================ */
.wx-shell {
  display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 14px;
  height: min(780px, calc(100dvh - 132px)); min-height: 560px;
}
.wx-roster, .wx-main {
  min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); overflow: hidden; display: flex; flex-direction: column;
}
.wx-roster-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.035);
}
.wx-roster-head b { font-size: 16px; }
.wx-roster-head em { font-style: normal; color: var(--muted); font-size: 12px; }
html[data-theme="light"] .wx-roster-head { background: rgba(15,23,42,.025); }

.wx-conv-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px; }
.conv-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; cursor: pointer; color: var(--text); font: inherit;
}
.conv-item:hover { background: var(--glass-2); }
.conv-item.active { background: linear-gradient(110deg, rgba(45,212,191,.16), rgba(251,191,36,.08)); border-color: rgba(45,212,191,.4); }
.conv-group { margin-bottom: 2px; }
.conv-ava {
  position: relative; flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px;
}
.conv-ava-group {
  width: 40px; height: 40px; border-radius: 9px; color: #0b0f1c; font-weight: 900; font-size: 16px;
  background: var(--grad);
}
.conv-ava .online-dot {
  position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px;
  border: 2px solid var(--card); border-radius: 50%; background: var(--muted); box-shadow: none;
}
.conv-ava .online-dot.on { background: var(--ok); }
.conv-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conv-name { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; min-width: 0; }
.conv-name { overflow: hidden; }
.conv-preview { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-pin { flex: none; font-size: 10.5px; font-weight: 700; color: var(--pending);
  border: 1px solid rgba(251,191,36,.45); border-radius: 5px; padding: 0 5px; }
.conv-tag { flex: none; font-size: 10.5px; font-weight: 700; color: var(--cyan);
  border: 1px solid rgba(45,212,191,.45); border-radius: 5px; padding: 0 5px; }
.conv-unread {
  flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--no); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}
.conv-unread[hidden] { display: none; }

.wx-main-head {
  flex: none; display: flex; align-items: center; gap: 12px; min-height: 60px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.035);
}
html[data-theme="light"] .wx-main-head { background: rgba(15,23,42,.025); }
.wx-main-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wx-main-title b { font-size: 16px; }
.conv-back { display: none; flex: none; width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  background: var(--glass-2); border: 1px solid var(--line); color: var(--text); font-size: 22px; line-height: 1; }
.wx-main .chat-list { flex: 1 1 auto; min-height: 0; }
.wx-main .chat-input { flex: none; }
.wx-main { position: relative; }
.chat-drop-zone {
  position: absolute; inset: 60px 0 66px; z-index: 8; display: none; place-items: center;
  padding: 18px; text-align: center; pointer-events: none;
  background: rgba(7, 9, 12, .7); backdrop-filter: blur(10px);
}
.chat-drop-zone::before {
  content: ''; position: absolute; inset: 18px; border: 2px dashed rgba(45, 212, 191, .7);
  border-radius: 8px; background: linear-gradient(135deg, rgba(45,212,191,.12), rgba(251,191,36,.09));
}
.chat-drop-zone strong,
.chat-drop-zone span {
  position: relative; z-index: 1; display: block;
}
.chat-drop-zone strong { color: var(--text); font-size: 22px; line-height: 1.2; }
.chat-drop-zone span { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.chat-drop-zone b { color: var(--cyan); }
.wx-main.is-dragging .chat-drop-zone { display: grid; }
html[data-theme="light"] .chat-drop-zone { background: rgba(248, 250, 252, .78); }

@media (max-width: 720px) {
  .wx-shell {
    grid-template-columns: 1fr; height: calc(100dvh - 120px); min-height: 0;
    position: relative;
  }
  .wx-roster, .wx-main { grid-column: 1; grid-row: 1; }
  .wx-shell .wx-main { display: none; }
  .wx-shell.show-conv .wx-roster { display: none; }
  .wx-shell.show-conv .wx-main { display: flex; }
  .conv-back { display: grid; place-items: center; }
}

/* ============================================================
   YIZHENAI · AURORA OS — v5 全站视觉重塑层
   ------------------------------------------------------------
   追加在原文件末尾，仅通过「重定义设计变量 + 叠加增强」生效。
   原有规则与全部类名 100% 保留；删除本段即可回退到 v3。
   品牌不变：深空底色 · teal→amber→rose 极光 · Outfit · 玻璃拟态。
   ============================================================ */

/* ---------- 1. 设计令牌升级（全站连锁生效） ---------- */
:root {
  --bg: #07090c;                          /* 更深的深空底 */
  --card: rgba(255, 255, 255, .052);
  --card-solid: #14181d;
  --glass-2: rgba(255, 255, 255, .07);
  --chrome: rgba(13, 16, 20, .72);        /* 半透明 + 模糊后更轻盈 */
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --grad: linear-gradient(105deg, #2dd4bf 0%, #51c9a8 28%, #fbbf24 60%, #fb7185 100%);
  --r-lg: 16px;                           /* 大容器更圆润、更现代 */
  --r-md: 11px;
  --r-sm: 8px;
  --shadow: 0 30px 70px -34px rgba(0, 0, 0, .9);
  --shadow-soft: 0 16px 40px -24px rgba(0, 0, 0, .7);
}
html[data-theme="light"] {
  --bg: #eef1f5;
  --chrome: rgba(255, 255, 255, .74);
  --card: rgba(255, 255, 255, .82);
  --line: rgba(17, 24, 39, .09);
  --line-2: rgba(17, 24, 39, .16);
  --shadow: 0 30px 70px -38px rgba(15, 23, 42, .34);
}

/* ---------- 2. 影院感极光背景（多色晕 + 缓慢漂移 + 暗角） ---------- */
.aurora {
  background:
    radial-gradient(46% 60% at 82% -8%, rgba(45, 212, 191, .20), transparent 60%),
    radial-gradient(40% 55% at 4% 8%, rgba(251, 191, 36, .12), transparent 58%),
    radial-gradient(60% 75% at 50% 118%, rgba(251, 113, 133, .16), transparent 64%),
    radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0, 0, 0, .42)),
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 320px);
}
html[data-theme="light"] .aurora {
  background:
    radial-gradient(46% 60% at 82% -8%, rgba(45, 212, 191, .16), transparent 60%),
    radial-gradient(40% 55% at 4% 8%, rgba(251, 191, 36, .12), transparent 58%),
    radial-gradient(60% 75% at 50% 118%, rgba(251, 113, 133, .10), transparent 64%),
    linear-gradient(180deg, rgba(17, 24, 39, .04), transparent 300px);
}
@media (prefers-reduced-motion: no-preference) {
  .aurora { animation: yznDrift 30s ease-in-out infinite alternate; will-change: transform; }
  @keyframes yznDrift {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to   { transform: scale(1.14) translate3d(0, -2.2%, 0); }
  }
}

/* ---------- 3. 玻璃化外壳：侧栏 / 顶栏 / 底部 Tab ---------- */
.sidebar, .mobile-top, .tabbar {
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
.sidebar {
  background-image: linear-gradient(180deg, rgba(45, 212, 191, .07), transparent 200px);
  border-right: 1px solid var(--line);
}
.sidebar::after {
  content: ''; position: absolute; inset: 0 0 0 auto; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(45, 212, 191, .35) 30%, rgba(251, 113, 133, .3) 70%, transparent);
  opacity: .5; pointer-events: none;
}
.brand-text { letter-spacing: .1em; }
.logo-mark {
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(45, 212, 191, .26), rgba(251, 113, 133, .14));
  box-shadow: 0 8px 22px -10px rgba(45, 212, 191, .5), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.brand-sub { letter-spacing: .38em; }

/* 导航项：激活态发光胶囊 */
.navlink { border-radius: 11px; }
.navlink.active {
  background: linear-gradient(110deg, rgba(45, 212, 191, .2), rgba(251, 191, 36, .08));
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .26), 0 8px 22px -14px rgba(45, 212, 191, .6);
}
.navlink.active::before { width: 3px; height: 26px; box-shadow: 0 0 12px rgba(45, 212, 191, .8); }
.navlink:hover { background: var(--glass-2); }

/* ---------- 4. 卡片：分层玻璃 + 顶部高光 + 悬浮辉光 ---------- */
.card, .stat, .doc-card, .video-card, .shoot-board, .home-pay-card,
.home-command, .annc-bar, .home-action, .explorer-card, .chat-card,
.chat-roster, .chat-conversation, .wx-roster, .wx-main {
  position: relative;
  border-radius: var(--r-lg);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 42%);
  background-color: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[data-theme="light"] .card,
html[data-theme="light"] .stat,
html[data-theme="light"] .shoot-board,
html[data-theme="light"] .home-command {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 44%);
}
.card { box-shadow: var(--shadow-soft); }
.card:hover { border-color: rgba(45, 212, 191, .32); box-shadow: 0 26px 56px -30px rgba(0, 0, 0, .8); }
.card > h2 { letter-spacing: .005em; }
.card > h2::before { width: 8px; height: 8px; box-shadow: 0 0 10px rgba(45, 212, 191, .7); }

/* 统计卡：渐变描边 + 数字辉光 */
.stat {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.stat::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(45, 212, 191, .4), transparent 40%, rgba(251, 113, 133, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -24px rgba(45, 212, 191, .34), var(--shadow); }
.stat:hover::after { opacity: 1; }
.stat .num { letter-spacing: -.01em; filter: drop-shadow(0 2px 14px rgba(45, 212, 191, .28)); }

/* ---------- 5. 按钮：渐变 + 高光扫过 + 品牌辉光 ---------- */
.btn { border-radius: var(--r-md); font-weight: 700; letter-spacing: .01em; position: relative; overflow: hidden; }
.btn:not(.btn-ghost):not(.btn-link) { box-shadow: 0 12px 26px -12px rgba(45, 212, 191, .6); }
.btn:not(.btn-ghost):not(.btn-link)::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s;
}
.btn:not(.btn-ghost):not(.btn-link):hover::after { transform: translateX(120%); }
.btn:not(.btn-ghost):not(.btn-link):hover { box-shadow: 0 16px 32px -12px rgba(251, 113, 133, .5); }
.btn:active { box-shadow: none; }
.btn-ghost { border-radius: var(--r-md); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--glass-2); border-color: rgba(45, 212, 191, .5); }

/* ---------- 6. 徽章 / 进度 / 输入 ---------- */
.badge { backdrop-filter: blur(3px); font-weight: 700; }
.progress { height: 9px; background: rgba(255, 255, 255, .06); }
.progress > i, .progress i { box-shadow: 0 0 14px rgba(45, 212, 191, .6); }
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=file], select, textarea {
  border-radius: var(--r-md); background: rgba(255, 255, 255, .05); backdrop-filter: blur(6px);
}
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(45, 212, 191, .2); }

/* ---------- 7. 表格 / 分割线 / 滚动条 ---------- */
table { border-radius: var(--r-md); overflow: hidden; }
th { text-transform: uppercase; font-size: 11px; }
tr:hover td { background: linear-gradient(90deg, rgba(45, 212, 191, .06), transparent); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(45, 212, 191, .5), rgba(251, 113, 133, .4)); border-radius: 99px; }
::selection { background: rgba(45, 212, 191, .32); }

/* ---------- 8. 滚动公告条：玻璃 + 渐变标签辉光 ---------- */
.annc-bar { border-radius: var(--r-lg); }
.annc-label { text-shadow: 0 0 14px rgba(45, 212, 191, .5); }

/* ---------- 9. 登录页：更具影院氛围 ---------- */
.auth-hero, .auth-card {
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -46px rgba(0, 0, 0, .9);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
.auth-hero {
  background:
    linear-gradient(135deg, rgba(45, 212, 191, .16), rgba(251, 191, 36, .07) 48%, rgba(251, 113, 133, .12)),
    rgba(255, 255, 255, .04);
}
.auth-title { letter-spacing: .1em; }
.auth-pill { box-shadow: 0 0 22px -6px rgba(45, 212, 191, .5); }
.auth-page {
  background:
    radial-gradient(circle at var(--mx, 64%) var(--my, 22%), rgba(45, 212, 191, .26), transparent 30vw),
    radial-gradient(circle at 16% 84%, rgba(251, 191, 36, .14), transparent 32vw),
    radial-gradient(circle at 88% 78%, rgba(251, 113, 133, .14), transparent 32vw),
    var(--bg);
}

/* ---------- 10. 聊天气泡：更柔和的玻璃 ---------- */
.chat-bubble { border-radius: 14px; border-bottom-left-radius: 5px; box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .5); }
.chat-msg.mine .chat-bubble {
  border-radius: 14px; border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, rgba(45, 212, 191, .24), rgba(251, 191, 36, .12));
  border-color: rgba(45, 212, 191, .45);
}
.chat-room-mark { box-shadow: 0 10px 24px -12px rgba(45, 212, 191, .6); }

/* ---------- 11. 模态框：更深的景深 ---------- */
.modal { border-radius: var(--r-lg); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .92); }
.modal-overlay { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- 12. 桌面端（≥1181px）排版气场——移动端布局不受影响 ---------- */
@media (min-width: 1181px) {
  h1.display { font-size: 40px; letter-spacing: -.015em; }
  .stat .num { font-size: 36px; }
  .page { padding-top: 44px; }
  .card { padding: 26px 30px; }
  .page-head { margin-bottom: 32px; }
}

/* ---------- 13. 入场动效更顺滑 ---------- */
@media (min-width: 941px) and (prefers-reduced-motion: no-preference) {
  .reveal, .card, .stat, .video-card, .doc-card {
    animation: yznRise .55s cubic-bezier(.2, .8, .2, 1) both;
  }
  @keyframes yznRise { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: none; } }
}

/* ---------- 14. 功能补丁：公告全屏查看 + iPad 伙食名单 ---------- */
.annc-pill {
  display: inline-flex; align-items: center; border: 0; padding: 0; background: transparent;
  color: inherit; font: inherit; cursor: pointer; white-space: nowrap;
}
.annc-pill:hover { color: var(--text); }
.annc-item {
  display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: inherit; cursor: pointer; font: inherit;
}
.annc-item:hover { background: var(--row-hover); }
.annc-open-hint {
  display: inline-flex; margin-left: 10px; color: var(--cyan); font-size: 12px; font-weight: 700;
}
.annc-full-overlay { z-index: 190; padding: 18px; }
.annc-full-modal {
  width: min(960px, calc(100vw - 36px)); max-width: 960px; max-height: calc(100dvh - 36px);
  display: flex; flex-direction: column; padding: clamp(20px, 3vw, 34px);
}
.annc-full-title { font-size: clamp(22px, 3vw, 34px); line-height: 1.25; padding-right: 44px; }
.annc-full-date { margin-bottom: 16px; font-size: 13px; }
.annc-full-content {
  flex: 1; min-height: 180px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  padding: 16px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255,255,255,.04); line-height: 1.9; font-size: 16px;
}

.meal-signup-table { table-layout: auto; }
.meal-diet-cell { max-width: 260px; white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  table.meal-signup-table {
    display: block; overflow: visible; white-space: normal; border-collapse: separate; border-spacing: 0;
  }
  table.meal-signup-table tbody { display: grid; gap: 10px; }
  table.meal-signup-table tr.meal-signup-head { display: none; }
  table.meal-signup-table tr {
    display: grid; gap: 0; padding: 10px; border: 1px solid var(--line);
    border-radius: 8px; background: var(--glass-2);
  }
  table.meal-signup-table td {
    display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start;
    padding: 8px 4px; border-bottom: 1px solid var(--line); white-space: normal; overflow-wrap: anywhere;
  }
  table.meal-signup-table td:last-child { border-bottom: 0; }
  table.meal-signup-table td::before {
    content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em;
  }
  table.meal-signup-table td.num-cell { text-align: left; }
  table.meal-signup-table td form.inline { display: inline-flex; flex-wrap: wrap; margin: 0 6px 6px 0; }
  table.meal-signup-table .btn-sm { width: fit-content; max-width: 100%; }
}

@media (max-width: 560px) {
  .annc-full-overlay { padding: 10px; }
  .annc-full-modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 18px; }
  .annc-full-content { font-size: 15px; padding: 12px; }
  table.meal-signup-table td { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
}

/* ---------- 15. 资料库：多分类、文件夹与批量拖拽上传 ---------- */
.library-upload-card .stack { max-width: none; }
.library-upload-drop {
  display: grid; place-items: center; gap: 9px; min-height: 178px; padding: 24px;
  border: 1px dashed rgba(45, 212, 191, .48); border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, .08), rgba(251, 191, 36, .035), rgba(251, 113, 133, .055)),
    rgba(255,255,255,.035);
  text-align: center; transition: border-color .2s, transform .2s, background .2s;
}
.library-upload-drop strong { font-size: 18px; }
.library-upload-drop span { max-width: 720px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.library-upload-drop.is-drag {
  transform: translateY(-2px); border-color: rgba(251, 191, 36, .85);
  background: linear-gradient(135deg, rgba(251,191,36,.13), rgba(45,212,191,.09));
}
.library-upload-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.library-upload-queue {
  display: grid; gap: 7px; max-height: 300px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px;
  background: rgba(255,255,255,.03);
}
.library-queue-head, .library-queue-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
}
.library-queue-head {
  padding: 4px 2px 9px; border-bottom: 1px solid var(--line); color: var(--text);
}
.library-queue-head span { color: var(--muted); font-size: 12.5px; }
.library-queue-row {
  min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255,255,255,.035); font-size: 13px;
}
.library-queue-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-queue-row em { color: var(--muted); font-style: normal; font-size: 12px; white-space: nowrap; }
.library-queue-row button {
  border: 0; background: transparent; color: var(--no); cursor: pointer; font: inherit; font-size: 12px;
}
.library-upload-progress { align-items: center; gap: 12px; }
.library-upload-progress .progress { flex: 1; min-width: 160px; }

@media (max-width: 560px) {
  .library-upload-drop { min-height: 154px; padding: 18px 12px; }
  .library-upload-actions .btn { width: 100%; }
  .library-queue-head, .library-queue-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .library-queue-row span { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- 16. Codex v6: real structural redesign ---------- */
.neo-home-hero,
.neo-project-command,
.neo-focus-panel,
.neo-meal-panel,
.neo-task-panel,
.neo-ops-strip,
.library-hero-v6,
.library-category-panel,
.library-upload-card,
.library-assets-panel {
  position: relative;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.025)),
    rgba(8, 10, 12, .72);
  box-shadow: 0 26px 60px -38px rgba(0,0,0,.86);
}

html[data-theme="light"] .neo-home-hero,
html[data-theme="light"] .neo-project-command,
html[data-theme="light"] .neo-focus-panel,
html[data-theme="light"] .neo-meal-panel,
html[data-theme="light"] .neo-task-panel,
html[data-theme="light"] .neo-ops-strip,
html[data-theme="light"] .library-hero-v6,
html[data-theme="light"] .library-category-panel,
html[data-theme="light"] .library-upload-card,
html[data-theme="light"] .library-assets-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.82)),
    #fff;
  border-color: rgba(17,24,39,.12);
  box-shadow: 0 22px 52px -38px rgba(15,23,42,.42);
}

.neo-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas:
    "main profile"
    "metrics metrics";
  gap: 18px;
  min-height: 280px;
  padding: 28px;
  overflow: hidden;
}
.neo-home-hero::before,
.library-hero-v6::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(45,212,191,.18), transparent 28%),
    linear-gradient(290deg, rgba(251,113,133,.13), transparent 34%),
    linear-gradient(180deg, transparent 58%, rgba(251,191,36,.06));
}
.neo-home-hero::after,
.library-hero-v6::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--grad);
}
.neo-hero-main,
.neo-hero-profile,
.neo-hero-date,
.neo-hero-metrics,
.library-hero-v6 > * {
  position: relative;
  z-index: 1;
}
.neo-hero-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.neo-hero-main h1,
.library-hero-v6 h1 {
  margin-top: 8px;
  font-family: var(--font-disp);
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--text);
}
.neo-hero-main p,
.library-hero-v6 p {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}
.neo-hero-actions,
.library-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.neo-hero-profile {
  grid-area: profile;
  align-self: center;
  justify-self: end;
  width: 220px;
  min-height: 174px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  text-align: center;
}
.neo-hero-profile .avatar,
.neo-hero-profile img.avatar {
  width: 82px;
  height: 82px;
  font-size: 28px;
}
.neo-hero-profile .home-meal-v {
  right: 58px;
  top: 68px;
}
.neo-hero-profile span {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.neo-hero-date {
  position: absolute;
  right: 28px;
  top: 18px;
  color: var(--muted);
  font-size: 12.5px;
}
.neo-hero-metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.neo-metric {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.neo-metric:hover {
  border-color: rgba(45,212,191,.44);
  background: rgba(255,255,255,.07);
}
.neo-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}
.neo-metric strong {
  font-size: 30px;
  line-height: 1;
}
.neo-metric em {
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
}

.neo-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(320px, .74fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.neo-project-command,
.neo-focus-panel,
.neo-meal-panel,
.neo-task-panel {
  padding: 20px;
}
.neo-project-command {
  min-width: 0;
}
.neo-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.neo-section-head.compact {
  align-items: center;
  margin-bottom: 12px;
}
.neo-section-head h2,
.neo-focus-panel h2,
.neo-task-panel h2,
.library-category-panel h2,
.library-upload-card h2,
.library-assets-panel h2 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}
.neo-section-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
}
.neo-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.neo-project-list {
  display: grid;
  gap: 10px;
}
.neo-project-list .shoot-project-row {
  display: grid;
  grid-template-columns: 12px minmax(220px, 1fr) minmax(118px, .46fr) minmax(150px, .58fr) minmax(120px, .46fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 13px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.038);
  color: var(--text);
  overflow: hidden;
}
.neo-project-list .shoot-project-row > * {
  min-width: 0;
}
.neo-project-list .shoot-project-row.is-unclaimed {
  border-color: rgba(251,191,36,.54);
  background:
    linear-gradient(90deg, rgba(251,191,36,.13), transparent 46%),
    rgba(255,255,255,.045);
}
.neo-project-list .shoot-title strong {
  font-size: 15.5px;
}
.neo-project-list .shoot-title em,
.neo-project-list .shoot-owner em,
.neo-project-list .shoot-date em,
.neo-project-list .shoot-progress-cell em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.neo-project-list .shoot-progress-cell {
  grid-column: 2 / -2;
  grid-row: 2;
  min-width: 0;
}
.neo-project-list .progress {
  min-width: 0;
}
.neo-project-list .shoot-claim-form,
.neo-project-list .shoot-action {
  grid-column: -2 / -1;
  grid-row: 1 / span 2;
  justify-self: end;
  margin: 0;
}
.neo-project-list .shoot-claim-btn,
.neo-project-list .shoot-action {
  justify-self: end;
  max-width: 100%;
  white-space: nowrap;
}

.neo-side-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.neo-signal-list {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}
.neo-signal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.neo-signal:hover {
  border-color: rgba(45,212,191,.38);
  background: rgba(255,255,255,.065);
}
.neo-signal span {
  font-weight: 700;
}
.neo-signal b {
  font-size: 20px;
}
.neo-signal em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
}
.neo-pay-preview {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.neo-pay-preview .pay-list {
  display: grid;
  gap: 8px;
}
.neo-pay-preview .pay-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.neo-pay-preview .pay-row > span:nth-child(3),
.neo-pay-preview .pay-row .num-cell,
.neo-pay-preview .pay-row .btn {
  grid-column: 1 / -1;
  justify-self: start;
  text-align: left;
}
.neo-pay-preview .pay-row .btn {
  margin-top: 2px;
}
.neo-action-dock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.neo-action-dock .home-action {
  min-height: 116px;
}
.neo-ops-strip {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(6, minmax(104px, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  align-items: center;
}
.neo-ops-strip h2 {
  font-size: 20px;
  letter-spacing: 0;
}
.neo-ops-strip span {
  display: grid;
  gap: 3px;
  min-height: 72px;
  align-content: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 12px;
}
.neo-ops-strip span b {
  color: var(--text);
  font-size: 17px;
}
.neo-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.neo-task-panel .quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.neo-task-panel .annc-item {
  border-radius: 8px;
  padding: 12px;
}

.library-hero-v6 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  min-height: 236px;
  padding: 28px;
  overflow: hidden;
}
.library-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.library-stats span {
  display: inline-grid;
  gap: 2px;
  min-width: 118px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
}
.library-stats b {
  color: var(--text);
  font-size: 22px;
  line-height: 1.05;
}
.library-studio-v6 {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}
.library-category-panel {
  padding: 18px;
  position: sticky;
  top: 22px;
}
.library-category-rail {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}
.library-category-rail a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--text);
}
.library-category-rail a:hover {
  border-color: rgba(45,212,191,.38);
  background: rgba(255,255,255,.065);
}
.library-category-rail a.active {
  color: var(--btn-text);
  background: var(--grad);
  border-color: transparent;
}
.library-category-rail a b {
  min-width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  font-size: 12px;
}
.library-workbench {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.library-upload-card,
.library-assets-panel {
  padding: 20px;
}
.library-assets-panel .video-grid {
  margin-top: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.library-assets-panel .video-card {
  border-radius: 8px;
}
.library-upload-card .form-row {
  align-items: end;
}

@media (prefers-reduced-motion: no-preference) {
  .neo-project-list .shoot-project-row.is-unclaimed {
    animation: yznClaimPulse 1.8s ease-in-out infinite;
  }
  @keyframes yznClaimPulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 0 rgba(251,191,36,0); }
    50% { transform: translateY(-3px); box-shadow: 0 18px 34px -30px rgba(251,191,36,.78); }
  }
}

@media (max-width: 1320px) {
  .neo-project-list .shoot-project-row {
    grid-template-columns: 12px minmax(0, 1fr) auto;
  }
  .neo-project-list .shoot-status,
  .neo-project-list .shoot-owner,
  .neo-project-list .shoot-date,
  .neo-project-list .shoot-progress-cell {
    grid-column: 2 / -1;
  }
  .neo-project-list .shoot-progress-cell {
    grid-row: auto;
  }
  .neo-project-list .shoot-claim-form,
  .neo-project-list .shoot-action {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (min-width: 761px) and (max-width: 1320px) {
  .neo-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .neo-project-list .shoot-project-row {
    grid-template-columns: 12px minmax(220px, 1fr) minmax(118px, .46fr) minmax(150px, .58fr) minmax(120px, .46fr) auto;
  }
  .neo-project-list .shoot-status,
  .neo-project-list .shoot-owner,
  .neo-project-list .shoot-date {
    grid-column: auto;
  }
  .neo-project-list .shoot-progress-cell {
    grid-column: 2 / -2;
    grid-row: 2;
  }
  .neo-project-list .shoot-claim-form,
  .neo-project-list .shoot-action {
    grid-column: -2 / -1;
    grid-row: 1 / span 2;
    justify-self: end;
  }
}

@media (max-width: 1180px) {
  .neo-home-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "profile"
      "metrics";
  }
  .neo-hero-profile {
    justify-self: stretch;
    width: auto;
    min-height: 128px;
    grid-template-columns: auto minmax(0, 1fr);
    text-align: left;
  }
  .neo-hero-date {
    display: none;
  }
  .neo-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .neo-dashboard-grid,
  .library-studio-v6 {
    grid-template-columns: minmax(0, 1fr);
  }
  .library-category-panel {
    position: relative;
    top: auto;
  }
  .library-category-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .neo-ops-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .neo-ops-strip > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .neo-home-hero,
  .library-hero-v6,
  .neo-project-command,
  .neo-focus-panel,
  .neo-meal-panel,
  .neo-task-panel,
  .library-upload-card,
  .library-assets-panel {
    padding: 16px;
  }
  .neo-hero-main h1,
  .library-hero-v6 h1 {
    font-size: 34px;
  }
  .neo-hero-actions .btn,
  .library-hero-actions .btn {
    flex: 1 1 138px;
    justify-content: center;
  }
  .neo-action-dock,
  .neo-lower-grid,
  .neo-task-panel .quick-grid,
  .library-category-rail,
  .library-hero-v6 {
    grid-template-columns: minmax(0, 1fr);
  }
  .neo-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .neo-metric {
    min-height: 86px;
    padding: 12px;
  }
  .neo-metric strong {
    font-size: 24px;
  }
  .neo-project-list .shoot-project-row {
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }
  .neo-project-list .shoot-status,
  .neo-project-list .shoot-owner,
  .neo-project-list .shoot-date,
  .neo-project-list .shoot-progress-cell,
  .neo-project-list .shoot-claim-form,
  .neo-project-list .shoot-claim-btn,
  .neo-project-list .shoot-action {
    grid-column: 2;
    justify-self: start;
  }
  .neo-ops-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-hero-actions {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .neo-home-hero,
  .library-hero-v6 {
    min-height: 0;
    gap: 12px;
  }
  .neo-hero-main h1,
  .library-hero-v6 h1 {
    font-size: 30px;
  }
  .neo-hero-main {
    width: 100%;
    justify-self: stretch;
  }
  .neo-hero-profile {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 86px;
    padding: 12px;
    text-align: left;
  }
  .neo-hero-profile .avatar,
  .neo-hero-profile img.avatar {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  .neo-hero-actions { width: 100%; margin-top: 14px; gap: 8px; flex-wrap: nowrap; }
  .neo-hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
  .neo-hero-main p, .library-hero-v6 p { margin-top: 10px; line-height: 1.65; }
  .neo-metric { min-height: 72px; padding: 10px; }
  .neo-metric strong { font-size: 21px; }
  .neo-metric em { font-size: 11.5px; }
  .neo-ops-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .library-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .library-stats span { min-width: 0; padding: 8px; }
  .library-stats b { font-size: 18px; }
}

/* ---------- 17. Admin project center ---------- */
.admin-project-hero,
.admin-project-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    var(--card);
  box-shadow: var(--shadow-soft);
}
.admin-project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: 18px;
  align-items: end;
  padding: 26px;
  margin-bottom: 14px;
}
.admin-project-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}
.admin-project-hero p {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
}
.admin-project-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-project-metrics a {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.admin-project-metrics b {
  font-size: 30px;
  line-height: 1;
}
.admin-project-metrics span {
  color: var(--muted);
  font-size: 13px;
}
.admin-project-nav {
  position: sticky;
  top: 12px;
  z-index: 15;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12,14,17,.82);
  backdrop-filter: blur(14px);
}
html[data-theme="light"] .admin-project-nav {
  background: rgba(255,255,255,.88);
}
.admin-project-nav a {
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}
.admin-project-nav a:hover {
  color: var(--text);
  background: var(--glass-2);
}
.admin-project-section {
  padding: 20px;
  margin-bottom: 16px;
}
.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.admin-section-head h2 {
  font-size: 24px;
  letter-spacing: 0;
}
.admin-section-head > span {
  color: var(--muted);
  white-space: nowrap;
}
.admin-approval-list,
.admin-project-list {
  display: grid;
  gap: 10px;
}
.admin-approval-card,
.admin-project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.admin-approval-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .44fr);
  gap: 14px;
  padding: 14px;
}
.admin-approval-card.is-hot {
  border-color: rgba(251,191,36,.5);
  background: linear-gradient(90deg, rgba(251,191,36,.09), rgba(255,255,255,.04));
}
.admin-approval-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.admin-approval-title strong {
  font-size: 16px;
}
.admin-approval-money,
.admin-project-kpis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.admin-approval-money span,
.admin-project-kpis span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 12.5px;
}
.admin-approval-money b,
.admin-project-kpis b {
  color: var(--text);
}
.admin-project-kpis .is-danger {
  border-color: rgba(251,113,133,.48);
  color: var(--no);
}
.admin-approval-desc {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.admin-approval-action {
  display: grid;
  align-content: start;
  gap: 10px;
}
.admin-decision-form {
  display: grid;
  gap: 8px;
}
.admin-decision-form label,
.admin-project-edit label,
.admin-create-project label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.admin-decision-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-project-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.admin-project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.admin-project-title {
  font-size: 17px;
  font-weight: 800;
}
.admin-project-edit,
.admin-create-project {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
}
.admin-project-edit .wide,
.admin-create-project .wide {
  grid-column: span 2;
}
.admin-create-project textarea {
  min-height: 92px;
}
.admin-task-add {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 150px auto;
  gap: 8px;
  align-items: center;
  padding-top: 4px;
}
.admin-project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

@media (max-width: 1320px) {
  .admin-project-hero,
  .admin-approval-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-project-edit,
  .admin-create-project {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-task-add {
    grid-template-columns: minmax(0, 1fr) 180px 150px;
  }
  .admin-task-add .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .admin-project-hero,
  .admin-project-section {
    padding: 16px;
  }
  .admin-project-metrics,
  .admin-project-edit,
  .admin-create-project,
  .admin-task-add {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-project-edit .wide,
  .admin-create-project .wide,
  .admin-task-add .btn {
    grid-column: auto;
  }
  .admin-project-card-head,
  .admin-section-head {
    flex-direction: column;
  }
  .admin-section-head > span {
    white-space: normal;
  }
}

/* ============================================================
   2026-06-15 增量：项目私信 / 伙食真实金额 / 资料库多选移动 / 文档正在编辑
   ============================================================ */
/* 项目：私信对接人 */
.claim-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.project-contact-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* 伙食：真实金额配色 */
.meal-metric.is-ok b { color: var(--ok); }
.meal-metric.is-pending b { color: var(--pending); }
.meal-metric.is-danger b { color: var(--no); }

/* 资料库：勾选 + 批量移动 */
.library-assets-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.resource-card { position: relative; }
.res-check { position: absolute; top: 10px; left: 10px; z-index: 3; cursor: pointer; }
.res-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.res-check span { display: block; width: 22px; height: 22px; border-radius: 6px;
  background: rgba(11,13,15,.55); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); transition: all .15s; }
.res-check input:checked + span { background: var(--ok); border-color: var(--ok); }
.res-check input:checked + span::after { content: '✓'; color: #fff; font-size: 14px; font-weight: 900;
  display: grid; place-items: center; width: 100%; height: 100%; }
.resource-card.is-picked { outline: 2px solid var(--ok); outline-offset: 1px; }
.res-bulkbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px;
  padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--glass-2);
  position: sticky; top: 8px; z-index: 5; }
.res-bulkbar[hidden] { display: none; }
.res-bulkbar select, .res-bulkbar input { height: 34px; min-width: 120px; }
.res-bulkbar #resSelCount { font-weight: 700; }

/* 协作文档：谁正在编辑 */
.doc-editing { color: var(--cyan); font-size: 12.5px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.doc-editing.on { opacity: 1; }
html[data-theme="light"] .doc-editing { color: #047c72; }

/* ============================================================
   2026-06-15 增量②：金色资金动画 / 醒目日期 / 本月收入排行榜 / 分享到群
   ============================================================ */
.gold-money {
  font-weight: 800; font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #b45309, #fcd34d 30%, #fffbeb 50%, #fcd34d 70%, #b45309);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: goldShimmer 3.4s linear infinite;
}
.gold-money-lg { font-size: 22px; }
@keyframes goldShimmer { 0% { background-position: 0% 0; } 100% { background-position: 220% 0; } }
@media (prefers-reduced-motion: reduce) { .gold-money { animation: none; } }

/* 首页看板：金色资金 + 醒目拍摄/截止 */
.shoot-money-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.shoot-money-line .gold-money { font-size: 18px; }
.shoot-money-line u { text-decoration: none; color: var(--muted); font-size: 11px; }
.shoot-date-chips { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.shoot-date-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 12px; }
.shoot-date-chip i { color: var(--muted); font-style: normal; font-size: 10.5px; }
.shoot-date-chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.shoot-date-chip.is-soon { border-color: rgba(251,191,36,.55); background: rgba(251,191,36,.1); }
.shoot-date-chip.is-soon b { color: var(--pending); }
.shoot-date-chip.is-over { border-color: rgba(251,113,133,.55); background: rgba(251,113,133,.1); }
.shoot-date-chip.is-over b { color: var(--no); }
.shoot-due-text { display: block; margin-top: 3px; font-size: 11.5px; font-style: normal; color: var(--muted); }
.shoot-due-text.is-soon { color: var(--pending); }
.shoot-due-text.is-over { color: var(--no); }

/* 项目页：醒目信息条 */
.project-prom-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 12px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: linear-gradient(100deg, rgba(251,191,36,.09), rgba(45,212,191,.05)); }
.prom-money { display: flex; flex-direction: column; }
.prom-money em { color: var(--muted); font-size: 11px; font-style: normal; margin-top: 2px; }
.prom-date { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px;
  background: var(--card-solid); border: 1px solid var(--line); }
.prom-date i { color: var(--muted); font-style: normal; font-size: 11.5px; }
.prom-date b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.prom-date.is-soon { border-color: rgba(251,191,36,.5); } .prom-date.is-soon b { color: var(--pending); }
.prom-date.is-over { border-color: rgba(251,113,133,.5); } .prom-date.is-over b { color: var(--no); }
.prom-share { margin-left: auto; }

/* 本月收入排行榜 */
.neo-rank-panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.rank-myline { font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.rank-myline b { color: var(--pending); font-size: 15px; }
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,.03); border: 1px solid transparent; }
.rank-row.is-top { background: linear-gradient(100deg, rgba(251,191,36,.1), transparent 60%); }
.rank-row.is-me { border-color: rgba(45,212,191,.5); background: rgba(45,212,191,.08); }
.rank-badge { width: 28px; text-align: center; font-size: 18px; flex: none; }
.rank-badge b { font-size: 14px; color: var(--muted); font-weight: 800; }
.rank-ava { width: 30px; height: 30px; flex: none; }
.rank-ava-img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.rank-ava-text { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #0b0f1c; font-weight: 700; font-size: 13px; }
.rank-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name em { margin-left: 6px; font-style: normal; font-size: 11px; color: var(--cyan); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; }
.rank-income { flex: none; font-size: 15px; }
.rank-foot { margin-top: 10px; font-size: 11.5px; }
html[data-theme="light"] .rank-row { background: rgba(15,23,42,.03); }

/* ============================================================================
   壹帧千应 YIZHENAI · 门户改造 —— 石墨原生 (Graphite) 皮肤层
   --------------------------------------------------------------------------
   用法：把本文件【整段追加到 public/style.css 的最末尾】即可。
   原理：门户几乎全部样式由 CSS 变量(tokens)驱动，本文件先重定义这些
        变量，再做少量组件精炼。因此：
          · 不删除任何现有 class
          · 不改动任何 HTML 结构
          · 追加在最后，靠层叠顺序覆盖旧值（同优先级后者生效）
   方向：深色为主、中性石墨实色面板、清晰层级，保留青绿→金→玫红极光渐变
        （强度不变，仍用于 logo / 数字 / 进度条 / 主按钮 / 导航激活）。
   ============================================================================ */

/* ─────────────────────────────────────────────
   1. TOKENS · 深色（石墨）
   把"玻璃半透明"改成"实色石墨面"，发丝线更细更克制。
   只覆盖需要变的变量，其余（teal/amber/rose/grad/字号/圆角）保持原值。
   ───────────────────────────────────────────── */
:root {
  /* 表面 —— 由半透明玻璃改为实色石墨 */
  --bg:         #0e1012;   /* 页面画布 */
  --card:       #16191d;   /* 卡片 / 面板（原为 rgba 玻璃，现为实色） */
  --card-solid: #16191d;   /* 弹窗 / 浮层 / select */
  --glass-2:    #1b2026;   /* 输入框 / chip / 次级凸起面 */
  --chrome:     #121417;   /* 侧栏 / 顶栏 / 底部 tab 栏 */
  --row-hover:  rgba(255,255,255,.04);

  /* 发丝线 —— 两档，更细 */
  --line:   rgba(255,255,255,.07);
  --line-2: rgba(255,255,255,.14);

  /* 文字 */
  --text:  #f4f5f7;
  --muted: #9aa1ab;

  /* 阴影 —— 收掉大范围发光，改为克制的桌面级投影 */
  --shadow:     0 12px 30px -16px rgba(0,0,0,.72);
  --shadow-pop: 0 14px 34px -12px rgba(0,0,0,.6);

  /* 焦点环保持青绿 */
  --focus-ring: 0 0 0 3px rgba(45,212,191,.16);

  /* 卡片内边距略收紧，桌面级密度 */
  --pad-card: 20px 22px;
}

/* ─────────────────────────────────────────────
   1b. TOKENS · 浅色（中性纸面，可选）
   ───────────────────────────────────────────── */
html[data-theme="light"] {
  --bg:         #f3f4f6;
  --card:       #ffffff;
  --card-solid: #ffffff;
  --glass-2:    #eef0f3;
  --chrome:     #fbfbfc;
  --row-hover:  rgba(17,24,39,.03);

  --line:   rgba(17,24,39,.09);
  --line-2: rgba(17,24,39,.16);

  --text:  #111827;
  --muted: #5b6675;

  --shadow: 0 12px 30px -18px rgba(15,23,42,.22);
}

/* ─────────────────────────────────────────────
   2. 极光背景 —— 石墨方向几乎抹平，只留极淡顶部光
   （仍保留 .aurora 元素，不删除）
   ───────────────────────────────────────────── */
.aurora {
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 220px);
}
html[data-theme="light"] .aurora {
  background:
    linear-gradient(180deg, rgba(17,24,39,.02), rgba(17,24,39,0) 220px);
}

/* ─────────────────────────────────────────────
   3. 组件精炼（轻触，全部基于现有 class）
   ───────────────────────────────────────────── */

/* 侧栏：右侧分隔线更克制；激活态由"渐变染色"改为"中性高亮 + 渐变竖条" */
.navlink.active {
  background: rgba(255,255,255,.06);
  border-color: transparent;
}
html[data-theme="light"] .navlink.active {
  background: rgba(17,24,39,.05);
}
.navlink.active .ic { color: var(--teal); opacity: 1; }
.navlink.active::before { left: -15px; height: 20px; }  /* 竖条贴边，避免错位 */

/* 卡片：实色面后去掉多余发光，hover 只抬边框 */
.card { box-shadow: none; }

/* 统计卡：hover 用中性边框 + 克制投影，不再发青光 */
.stat:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

/* 拍摄行：hover 用中性边框，去掉位移，桌面级"稳" */
.shoot-row:hover { border-color: var(--line-2); transform: none; }

/* 公告条：实色面、更克制 */
.annc-bar { background: var(--card); }

/* 表格：表头标签更轻 */
th { font-weight: 600; color: var(--muted); }
tbody tr:hover td { background: var(--row-hover); }

/* 网盘磁贴 / 卡片：hover 中性化，去掉青光位移堆叠 */
.tile:hover,
.doc-card:hover,
.video-card:hover,
.contact-card:hover { border-color: var(--line-2); transform: none; }

/* 按钮：防止窄屏文字溢出 */
.btn { white-space: nowrap; max-width: 100%; }
.btn-ghost:hover { border-color: var(--line-2); }   /* 不再整条描白 */

/* 图标：统一不参与挤压，避免错位 */
.ic, svg.ic { flex: none; }
svg.ic { display: inline-block; vertical-align: middle; }

/* 聊天气泡：保持青绿/灰，但贴合石墨实色面 */
.msg-theirs .msg { background: var(--glass-2); border-color: var(--line); }

/* ─────────────────────────────────────────────
   4. 响应式 —— iPhone 竖/横 · iPad 横 · Mac/Win
   仅针对已确认存在的内容类（不碰侧栏/底栏 chrome——
   那部分由 layout.js 既有逻辑 + 上面的 token 自动重皮肤）。
   ───────────────────────────────────────────── */

/* iPad 横屏 / 小桌面：四联统计两列 */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* 平板竖屏 / 大手机横屏 */
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
  .meal-hero { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(3, 1fr); }
  .contact-grid, .doc-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* iPhone 竖屏 */
@media (max-width: 560px) {
  .page { padding: 20px 16px 24px; }          /* 收掉移动端底部大空白 */
  .footer { padding: 18px 0 6px; }
  h1.display { font-size: 24px; }
  .home-greeting-head { gap: 12px; margin-bottom: 16px; }
  .home-greeting-head .avatar { width: 48px; height: 48px; }
  .stat { padding: 16px 18px; }
  .stat .num { font-size: 26px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .doc-grid, .video-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .msg-body { max-width: 86%; }
  .page-head { gap: 10px; }

  /* 拍摄行：5 列网格在窄屏改为自适应两行流式，避免挤压错位 */
  .shoot-row {
    grid-template-columns: 12px 1fr auto;
    grid-auto-rows: auto;
    row-gap: 8px;
  }
  .shoot-row .progress { grid-column: 1 / -1; }
}

/* 极窄（小屏 iPhone） */
@media (max-width: 380px) {
  .grid-4, .admin-grid { grid-template-columns: 1fr; }
  .btn { padding: 9px 16px; }
}

/* 触屏热区：保证可点目标 ≥ 44px（iPhone/iPad） */
@media (pointer: coarse) {
  .navlink { padding: 12px 14px; }
  .tabs button, .tabs a { padding: 10px 18px; }
  .iconbtn { width: 40px; height: 40px; }
}


/* —— 石墨皮肤 · 真实类名精修（按 intranet-portal 实际 class 适配，由 Claude 接入） —— */
:root, html[data-theme="light"] { --teal: #2dd4bf; }
.shoot-project-row:hover,
.neo-project-list .shoot-project-row:hover { transform: none; border-color: var(--line-2); background: var(--row-hover); }
.chat-msg:not(.mine) .chat-bubble { background: var(--glass-2); border-color: var(--line); box-shadow: none; }
.chat-msg.mine .chat-bubble { box-shadow: none; }
.conv-item:hover { background: var(--row-hover); }
.resource-card:hover { transform: none; border-color: var(--line-2); }

/* —— 石墨皮肤②：侧栏分组小标题 + 聊天气泡贴合设计样张（Claude 接入）—— */
.nav-group-title {
  font-size: 11px; letter-spacing: .14em; color: var(--muted); opacity: .55;
  text-transform: uppercase; font-weight: 700; padding: 14px 14px 6px; user-select: none;
}
.sidenav > .nav-group-title:first-child { padding-top: 2px; }
.tabbar .nav-group-title { display: none; }

/* 聊天气泡：非对称圆角 + 青绿自己气泡 + 石墨中性对方气泡 */
.chat-bubble { border-radius: 10px; border-top-left-radius: 4px; }
.chat-msg:not(.mine) .chat-bubble {
  background: var(--glass-2); border: 1px solid var(--line);
  border-radius: 10px; border-top-left-radius: 4px; box-shadow: none;
}
.chat-msg.mine .chat-bubble {
  background: rgba(45,212,191,.18); border: 1px solid rgba(45,212,191,.38);
  border-radius: 10px; border-top-right-radius: 4px; box-shadow: none;
}
html[data-theme="light"] .chat-msg.mine .chat-bubble { background: rgba(45,212,191,.16); border-color: rgba(45,212,191,.42); }

/* 聊天撤回按钮（悬停显现；触屏常显） */
.chat-recall { margin-left: 8px; background: none; border: none; color: var(--muted);
  font-size: 11px; cursor: pointer; opacity: 0; transition: opacity .15s; padding: 0 2px; }
.chat-msg:hover .chat-recall { opacity: .7; }
.chat-recall:hover { opacity: 1; color: var(--no); }
@media (pointer: coarse) { .chat-recall { opacity: .55; } }

/* Word 文档高保真查看器 */
.doc-word-viewport { flex: 1 1 auto; min-height: 0; display: flex; background: #f0f0f3; }
.doc-word-frame { width: 100%; height: 100%; border: 0; background: #fff; }
html[data-theme="light"] .doc-word-viewport { background: #e9ebef; }

/* 协作文档列表 */
.doc-list-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 8px;
  border: 1px solid transparent; color: var(--text); text-decoration: none; }
.doc-list-row:hover { background: var(--glass-2); border-color: var(--line); }
.doc-list-ic { font-size: 24px; flex: none; }
.doc-list-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc-list-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.doc-list-meta { font-size: 12.5px; }

/* 消息表情回应 */
.rx-zone { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.chat-msg.mine .rx-zone { flex-direction: row-reverse; }
.rx-add { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-solid);
  color: var(--muted); font-size: 13px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; flex: none; padding: 0; }
.chat-msg:hover .rx-add { opacity: .75; }
.rx-add:hover { opacity: 1; color: var(--text); border-color: var(--line-2); }
.rx-bar { display: flex; gap: 5px; flex-wrap: wrap; }
.rx-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--glass-2); font-size: 12.5px; cursor: pointer; line-height: 1.6;
  color: var(--text); font-variant-numeric: tabular-nums; }
.rx-chip.mine { border-color: rgba(45,212,191,.55); background: rgba(45,212,191,.16); }
.rx-chip:hover { border-color: var(--line-2); }
.rx-picker { position: fixed; z-index: 300; display: flex; gap: 2px; padding: 6px; border-radius: 12px;
  background: var(--card-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.rx-picker button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; font-size: 19px; cursor: pointer; }
.rx-picker button:hover { background: var(--glass-2); }

/* 工作助手播报卡片 */
.chat-bot-line { display: flex; justify-content: center; margin: 8px 0; }
.chat-bot-card { display: inline-flex; align-items: center; gap: 10px; max-width: min(580px, 92%);
  padding: 9px 14px; border-radius: 12px; border: 1px solid rgba(251,191,36,.42);
  background: linear-gradient(100deg, rgba(251,191,36,.12), rgba(45,212,191,.06)); }
.chat-bot-card .bot-ic { font-size: 18px; flex: none; }
.chat-bot-card .bot-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.chat-bot-card .bot-body b { font-size: 11px; color: var(--pending); letter-spacing: .04em; }
.chat-bot-card .bot-text { color: var(--text); font-size: 13.5px; line-height: 1.5; }
.chat-bot-card .bot-link { flex: none; margin-left: 2px; }

/* 派活按钮 + 斜杠指令卡片 */
.chat-totask { font-size: 11px; color: var(--cyan); background: none; border: none; cursor: pointer; padding: 0 4px; opacity: 0; transition: opacity .15s; }
.chat-msg:hover .chat-totask { opacity: .85; }
.chat-totask:hover { opacity: 1; text-decoration: underline; }
html[data-theme="light"] .chat-totask { color: #047c72; }
.chat-slash-card { position: relative; align-self: center; margin: 8px 0; padding: 10px 30px 10px 14px; border-radius: 12px;
  border: 1px solid rgba(45,212,191,.38); background: var(--glass-2); max-width: min(580px, 94%); }
.slash-head { font-weight: 700; font-size: 13px; color: var(--cyan); margin-bottom: 6px; }
html[data-theme="light"] .slash-head { color: #047c72; }
.slash-text { font-size: 13px; color: var(--muted); }
.slash-item { display: block; padding: 6px 8px; border-radius: 7px; font-size: 13px; color: var(--text); text-decoration: none; }
a.slash-item:hover { background: var(--card-solid); }
.slash-close { position: absolute; top: 7px; right: 9px; border: none; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.slash-close:hover { color: var(--text); }

/* 群互动：接龙 / 投票 / 收集 */
.chat-poll-line { display: flex; justify-content: center; margin: 8px 0; }
.poll-card { width: min(560px, 94%); padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(124,131,253,.42); background: var(--glass-2); }
.poll-h { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.poll-closed { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-weight: 400; }
.poll-names { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.poll-name { font-size: 12.5px; padding: 2px 9px; border-radius: 9px; background: var(--card-solid); border: 1px solid var(--line); }
.poll-opts { display: flex; flex-direction: column; gap: 7px; margin-bottom: 8px; }
.poll-opt { position: relative; text-align: left; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--card-solid); cursor: pointer; overflow: hidden; display: flex; align-items: center; gap: 8px; }
.poll-opt:hover { border-color: var(--line-2); }
.poll-opt.mine { border-color: rgba(124,131,253,.7); }
.poll-opt[disabled] { cursor: default; opacity: .9; }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(124,131,253,.18); z-index: 0; transition: width .3s; }
.poll-opt-t { position: relative; z-index: 1; flex: 1; font-size: 13px; }
.poll-opt-n { position: relative; z-index: 1; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.poll-opt.mine .poll-opt-n { color: var(--text); }
.poll-collect { display: flex; gap: 6px; margin-bottom: 8px; }
.poll-collect input { flex: 1; }
.poll-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.poll-view { background: none; border: none; color: var(--cyan); cursor: pointer; font-size: 12.5px; padding: 0; }
.poll-view:hover { text-decoration: underline; }
html[data-theme="light"] .poll-view { color: #047c72; }
/* 发起互动弹窗 */
.seg { display: flex; gap: 6px; }
.seg-btn { flex: 1; padding: 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--card-solid); cursor: pointer; font-size: 13px; color: var(--text); }
.seg-btn.active { border-color: rgba(124,131,253,.7); background: rgba(124,131,253,.14); }
.poll-opt-row { display: flex; gap: 6px; margin-bottom: 6px; }
.poll-opt-row input { flex: 1; }
.poll-opt-del { width: 32px; border: 1px solid var(--line); background: var(--card-solid); border-radius: 8px; cursor: pointer; color: var(--muted); }
.radio-inline { display: inline-flex; align-items: center; gap: 4px; margin-right: 16px; font-size: 13px; }
.remind-row { padding: 3px 0; }
.remind-del { background: none; border: none; color: #fb7185; cursor: pointer; font-size: 12px; }

/* 项目分成行（提交完成弹窗） */
.cp-split-box { padding-top: 12px; border-top: 1px solid var(--line); }
.cp-split-row { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.cp-split-row select { flex: 1; }
.cp-split-del { width: 30px; height: 34px; flex: none; border: 1px solid var(--line); background: var(--card-solid); border-radius: 8px; cursor: pointer; color: var(--muted); }
.cp-split-del:hover { color: #fb7185; border-color: #fb7185; }

/* 项目交付成果展示墙 */
.delivery-showcase { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.dlv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dlv-head b { font-size: 14px; }
.dlv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.dlv-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--card-solid); display: flex; flex-direction: column; gap: 6px; }
.dlv-media-wrap { border-radius: 8px; overflow: hidden; background: rgba(0,0,0,.12); min-height: 40px; display: flex; align-items: center; justify-content: center; }
.dlv-media { width: 100%; max-height: 160px; object-fit: cover; display: block; border-radius: 8px; }
.dlv-meta { display: flex; align-items: center; justify-content: space-between; }
.dlv-kind { font-size: 12px; color: var(--muted); }
.dlv-state { font-size: 11px; padding: 1px 7px; border-radius: 7px; }
.dlv-state.is-pending { background: rgba(251,191,36,.16); color: #d99300; }
.dlv-state.is-ok { background: rgba(45,212,191,.16); color: #14b8a6; }
.dlv-title { font-size: 13px; font-weight: 600; word-break: break-all; }
.dlv-by { font-size: 11.5px; }
.dlv-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }

/* 逾期警告 + 违约金 */
.overdue-banner { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.42); font-size: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.overdue-banner b { color: #fb7185; }
.overdue-pill { margin-top: 5px; font-size: 12.5px; color: #fb7185; font-weight: 500; }
.overdue-pill b { font-size: 13px; }

/* 管理员项目卡：折叠"编辑设置/任务/删除"，默认只看干净摘要（去杂乱 + 移动端不再无尽下滑） */
.proj-manage { margin-top: 12px; border-top: 1px solid var(--line); }
.proj-manage > summary { cursor: pointer; padding: 10px 2px; font-size: 13px; color: var(--muted); list-style: none; user-select: none; }
.proj-manage > summary::-webkit-details-marker { display: none; }
.proj-manage > summary::before { content: '▸ '; }
.proj-manage[open] > summary::before { content: '▾ '; }
.proj-manage > summary:hover { color: var(--text); }

/* 移动端：管理台指标卡 2×2 紧凑（原本被压成单列、占满整屏） */
@media (max-width: 760px) {
  .admin-project-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-project-metrics a { min-height: 62px; padding: 10px 12px; }
  .admin-project-metrics b { font-size: 22px; }
  .admin-project-metrics span { font-size: 12px; }
  .admin-project-nav { top: 6px; gap: 6px; }
  .admin-project-nav a { padding: 6px 10px; font-size: 13px; }
}

/* ===== 2026-06-20 移动端通透 + 聊天输入框修复 ===== */
@media (max-width: 720px) {
  /* 通透：加大留白、卡片间距、行距 */
  .page { padding-left: 14px; padding-right: 14px; }
  .card { padding: 18px 16px; margin-bottom: 16px; border-radius: 16px; }
  .card h2 { margin-bottom: 14px; }
  .admin-project-section { margin-bottom: 16px; }
  .admin-project-card { margin-bottom: 14px; }
  .grid-4 { gap: 12px; }
  .task-row, .project-ledger-row { gap: 10px; }
  .form-row { gap: 12px; }

  /* 聊天输入框：打字框+发送一行，工具按钮整齐排到下一行，不再挤成一团 */
  .page-chat .chat-input { flex-wrap: wrap; align-items: center; gap: 9px; row-gap: 11px; padding: 11px 12px; }
  .page-chat .chat-input textarea { order: 1; flex: 1 1 0; min-width: 0; min-height: 42px; max-height: 88px; }
  .page-chat .chat-input #chatSend { order: 2; flex: none; padding-left: 20px; padding-right: 20px; }
  .page-chat .chat-input .chat-tools { order: 3; display: flex; flex-wrap: wrap; gap: 10px; flex-basis: 100%; }
  .page-chat .chat-input .chat-tool { width: 40px; height: 40px; }
}
/* 工具按钮包裹层：桌面端透明(保持原行内布局)，手机端变独立一行 */
.chat-tools { display: contents; }

/* 管理台总览仪表盘 */
.admin-dash { margin-bottom: 18px; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
.todo-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-solid); text-decoration: none; color: var(--text); transition: border-color .2s, transform .15s; }
.todo-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.todo-card.is-hot { border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.07); }
.todo-card.is-zero { opacity: .5; }
.todo-ic { font-size: 17px; }
.todo-card b { font-size: 26px; font-weight: 700; line-height: 1; }
.todo-card.is-hot b { color: #f5a623; }
.todo-label { font-size: 12.5px; color: var(--muted); }
.todo-label em { display: block; font-style: normal; color: var(--text); font-weight: 600; font-size: 12px; margin-top: 1px; }
.dash-overdue { font-size: 12.5px; color: #fb7185; margin-bottom: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(251,113,133,.08); border: 1px solid rgba(251,113,133,.3); line-height: 1.7; }
.dash-overdue a { color: #fb7185; text-decoration: none; }
.dash-overdue a:hover { text-decoration: underline; }
.dash-finance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fin-card { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-solid); }
.fin-card span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.fin-card b { font-size: 20px; font-weight: 700; }
.fin-card.is-ok b { color: #14b8a6; }
.fin-card.is-warn { border-color: rgba(251,113,133,.4); }
.fin-card.is-warn b { color: #fb7185; }
.fin-card .fin-top { font-size: 13px; font-weight: 600; line-height: 1.5; }
@media (max-width: 560px) {
  .todo-grid { grid-template-columns: 1fr 1fr; }
  .dash-finance { grid-template-columns: 1fr 1fr; }
}

/* 拍摄档期日历 */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.cal-month { font-size: 18px; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { margin-bottom: 6px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-cell { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--card-solid); display: flex; flex-direction: column; gap: 4px; }
.cal-cell.cal-empty { background: transparent; border: 0; }
.cal-cell.is-today { border-color: rgba(124,131,253,.7); }
.cal-cell.is-conflict { border-color: rgba(251,113,133,.5); background: rgba(251,113,133,.06); }
.cal-day { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cal-cell.is-today .cal-day { color: var(--text); }
.cal-warn { font-size: 10px; color: #fb7185; border: 1px solid rgba(251,113,133,.5); border-radius: 5px; padding: 0 4px; font-weight: 700; }
.cal-item { display: block; font-size: 11.5px; padding: 3px 6px; border-radius: 6px; text-decoration: none; color: var(--text); border-left: 3px solid var(--line-2); background: var(--card); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item.cal-on { border-left-color: #14b8a6; }
.cal-item.cal-wait { border-left-color: #f5a623; }
.cal-item.cal-done { border-left-color: var(--line-2); opacity: .6; }
.cal-item.cal-pause { border-left-color: #fb7185; }
.cal-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cal-legend .cal-item { display: inline-block; cursor: default; }
@media (max-width: 560px) {
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 62px; padding: 3px; border-radius: 7px; }
  .cal-item { font-size: 9px; padding: 1px 3px; border-left-width: 2px; }
  .cal-day { font-size: 10.5px; }
  .cal-wd { font-size: 10.5px; }
}

/* 撞档项目（同一人当天多个拍摄）红色描边 */
.cal-item.cal-clash { border-left-color: #fb7185 !important; box-shadow: inset 0 0 0 1px rgba(251,113,133,.4); }

/* 内部定价标准：折叠 + 分组卡片 */
.price-guide { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 16px; overflow: hidden; }
.price-guide > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 15px; }
.price-guide > summary::-webkit-details-marker { display: none; }
.price-guide > summary::after { content: '▾'; color: var(--muted); transition: transform .2s; font-size: 13px; }
.price-guide[open] > summary::after { transform: rotate(180deg); }
.price-guide > summary:hover { background: var(--card-solid); }
.pg-hint { font-size: 12px; font-weight: 400; white-space: nowrap; }
.pg-intro { padding: 0 20px; margin: 2px 0 14px; font-size: 12.5px; }
.pg-groups { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.pg-group-h { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; letter-spacing: .04em; }
.pg-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pg-item { border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; background: var(--card-solid); transition: border-color .2s; }
.pg-item:hover { border-color: var(--line-2); }
.pg-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.pg-name { font-size: 13.5px; font-weight: 600; }
.pg-price { font-size: 14px; font-weight: 700; color: var(--teal, #14b8a6); white-space: nowrap; }
.pg-price em { font-size: 11px; font-weight: 400; color: var(--muted); font-style: normal; }
.pg-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 560px) {
  .price-guide > summary { padding: 14px 16px; font-size: 14px; }
  .pg-groups, .pg-intro { padding-left: 16px; padding-right: 16px; }
  .pg-items { grid-template-columns: 1fr 1fr; }
}

/* 客户库 */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.client-card { display: flex; flex-direction: column; gap: 7px; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-solid); text-decoration: none; color: var(--text); transition: border-color .2s, transform .15s; }
.client-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.client-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.client-card-h b { font-size: 15px; }
.client-kpis { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.client-kpis b { color: var(--text); font-size: 14px; }
.client-gold { color: #f5a623; font-weight: 700; }
.client-proj-list { display: flex; flex-direction: column; gap: 8px; }
.client-proj { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-solid); text-decoration: none; color: var(--text); }
.client-proj:hover { border-color: var(--line-2); }
.client-proj .grow { flex: 1; min-width: 0; }
.proj-client { color: var(--cyan, #14b8a6); text-decoration: none; }
.proj-client:hover { text-decoration: underline; }

/* 项目任务模板 */
.tpl-tasks { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.tpl-tasks li { font-size: 13px; }
.tpl-apply { margin-top: 8px; }

/* 管理员项目卡：更强的分隔感（独立卡片，不再连成一条） */
.admin-project-list { gap: 18px; }
.admin-project-card {
  padding: 20px; border-radius: 16px; background: var(--card-solid);
  border: 1px solid var(--line-2);
  box-shadow: 0 2px 14px rgba(0,0,0,.16);
}
.admin-project-card-head { padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.admin-project-actions { margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-project-actions .btn-danger { font-weight: 600; }

/* 个人空间·逾期扣款提示 */
.ledger-pen { color: #fb7185 !important; font-weight: 500; }
.ledger-ext { color: var(--cyan, #14b8a6); text-decoration: underline; }

/* 网盘标签栏 */
.drive-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.drive-tab { padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--card-solid); text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; transition: border-color .2s; }
.drive-tab:hover { border-color: var(--line-2); }
.drive-tab.is-active { border-color: rgba(124,131,253,.6); background: rgba(124,131,253,.12); }
/* NAS 路径 + 复制按钮 */
.nas-path { background: var(--glass-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-family: ui-monospace, monospace; }
.copy-btn { margin-left: 6px; padding: 2px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--card-solid); color: var(--text); cursor: pointer; font-size: 12px; }
.copy-btn:hover { border-color: var(--line-2); }
/* 公共素材盘只读浏览 */
.ptile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.ptile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-solid); text-decoration: none; color: var(--text); position: relative; transition: border-color .2s, transform .15s; }
a.ptile:hover { border-color: rgba(124,131,253,.6); transform: translateY(-1px); }
.ptile-ic { font-size: 38px; line-height: 1.1; }
.ptile-open { display: block; }
.ptile-thumb { width: 100%; height: 92px; object-fit: cover; border-radius: 8px; background: rgba(0,0,0,.15); }
.ptile-name { font-size: 12.5px; text-align: center; word-break: break-all; line-height: 1.35; max-height: 3.4em; overflow: hidden; }
.ptile-meta { font-size: 11px; color: var(--muted); }
.ptile-dl { margin-top: 4px; }
@media (max-width: 560px) { .ptile-grid { grid-template-columns: 1fr 1fr; } }

/* 全局搜索 */
.side-search { padding: 0 14px 12px; }
.side-search input { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-solid); color: var(--text); font-size: 13px; }
.side-search input:focus { border-color: rgba(124,131,253,.6); outline: none; }
.search-bar { display: flex; gap: 8px; margin-bottom: 18px; max-width: 600px; }
.search-bar input { flex: 1; }
.search-group { margin-bottom: 18px; }
.search-group-h { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.search-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-solid); text-decoration: none; color: var(--text); margin-bottom: 7px; }
.search-item:hover { border-color: var(--line-2); }
.search-item-t { font-size: 14px; font-weight: 600; word-break: break-all; }
.search-item-m { font-size: 12px; color: var(--muted); white-space: nowrap; flex: none; }

/* 搜索·人员卡（在线状态 + 项目） */
.search-person { padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--card-solid); margin-bottom: 8px; }
.sp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-name { font-size: 14px; font-weight: 600; }
.sp-online { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; }
.sp-online.is-on { background: #34d399; box-shadow: 0 0 7px rgba(52,211,153,.8); }
.sp-dept { font-size: 12px; }
.sp-dm { margin-left: auto; }
.sp-projs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.sp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--text); font-size: 12px; }
.sp-chip:hover { border-color: var(--line-2); }
.sp-chip i { font-style: normal; color: var(--muted); font-size: 11px; }

/* 公共素材盘·内嵌播放器 */
.pv-open { background: none; border: 0; padding: 0; cursor: pointer; width: 100%; display: block; position: relative; }
.ptile-ic { position: relative; }
.pv-play { font-size: 12px; color: #fff; background: rgba(124,131,253,.85); border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 50%; top: 50%; transform: translate(50%,-50%); }
.pv-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 9999; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 20px; animation: pvIn .2s ease; }
.pv-overlay.open { display: flex; }
@keyframes pvIn { from { opacity: 0; } to { opacity: 1; } }
.pv-stage { display: flex; align-items: center; justify-content: center; }
.pv-stage video, .pv-stage img { max-width: 92vw; max-height: 82vh; border-radius: 10px; background: #000; object-fit: contain; }
.pv-stage audio { width: min(520px, 90vw); }
.pv-name { color: #dcdce0; font-size: 13px; max-width: 90vw; text-align: center; word-break: break-all; }
.pv-close { position: fixed; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.45); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.pv-close:hover { background: rgba(255,255,255,.15); }
.pv-fallback { color: #dcdce0; text-align: center; padding: 36px 20px; font-size: 14px; }
.pv-fallback a { color: #8b93ff; }

/* 登录/注册页美化 + 动画 */
.auth-wrap { position: relative; overflow: hidden; }
.auth-wrap::before, .auth-wrap::after { content: ''; position: absolute; border-radius: 50%; filter: blur(72px); opacity: .5; z-index: 0; animation: authFloat 15s ease-in-out infinite; pointer-events: none; }
.auth-wrap::before { width: 460px; height: 460px; background: radial-gradient(circle, rgba(45,212,191,.6), transparent 70%); top: -130px; left: -90px; }
.auth-wrap::after { width: 540px; height: 540px; background: radial-gradient(circle, rgba(251,113,133,.5), transparent 70%); bottom: -180px; right: -110px; animation-delay: -8s; animation-duration: 19s; }
@keyframes authFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(46px,-34px) scale(1.14); } }
.auth-box { position: relative; z-index: 1; }
.auth-hero, .auth-card { border-radius: 20px !important; }
.auth-hero { animation: authRise .7s cubic-bezier(.2,.8,.2,1) both; }
.auth-card { animation: authRise .7s cubic-bezier(.2,.8,.2,1) .12s both; }
.auth-ips { animation: authRise .7s ease .24s both; }
@keyframes authRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.auth-logo .logo-mark { animation: authGlow 3.6s ease-in-out infinite; }
@keyframes authGlow { 0%,100% { filter: drop-shadow(0 0 0 rgba(45,212,191,0)); } 50% { filter: drop-shadow(0 0 13px rgba(45,212,191,.65)); } }
.auth-pill { animation: authPulse 2.6s ease-in-out infinite; }
@keyframes authPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(45,212,191,.4); } 50% { box-shadow: 0 0 0 7px rgba(45,212,191,0); } }
.auth-card form > .btn { position: relative; overflow: hidden; background: var(--grad); color: #0b0d0f; font-weight: 800; letter-spacing: .12em; border: 0; transition: transform .15s, box-shadow .25s; }
.auth-card form > .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(124,131,253,.38); }
.auth-card form > .btn:active { transform: translateY(0); }
.auth-card form > .btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,.5) 50%, transparent 68%); transform: translateX(-130%); }
.auth-card form > .btn:hover::after { transform: translateX(130%); transition: transform .85s ease; }
.auth-card input:focus { border-color: rgba(124,131,253,.7); box-shadow: 0 0 0 3px rgba(124,131,253,.18); outline: none; }
@media (prefers-reduced-motion: reduce) { .auth-wrap::before, .auth-wrap::after, .auth-hero, .auth-card, .auth-ips, .auth-logo .logo-mark, .auth-pill { animation: none; } }

/* 通知面板·开启桌面提醒按钮 */
.notify-head-actions { display: flex; gap: 8px; align-items: center; }
#notifyEnablePush { font-size: 11.5px; padding: 3px 9px; border-radius: 7px; border: 1px solid rgba(124,131,253,.5); background: rgba(124,131,253,.12); color: var(--text); cursor: pointer; white-space: nowrap; }
#notifyEnablePush:hover { background: rgba(124,131,253,.2); }

/* 外采上传 */
.up-drop { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:36px 20px; border:2px dashed var(--line-2); border-radius:16px; cursor:pointer; text-align:center; transition:border-color .2s, background .2s; }
.up-drop:hover, .up-drop.drag { border-color:rgba(124,131,253,.7); background:rgba(124,131,253,.07); }
.up-drop-ic { font-size:38px; }
.up-drop-t { font-size:16px; font-weight:600; }
.up-drop-s { font-size:12.5px; }
.up-list { display:flex; flex-direction:column; gap:10px; margin-top:16px; }
.up-row { padding:11px 13px; border:1px solid var(--line); border-radius:12px; background:var(--card-solid); }
.up-row-top { display:flex; align-items:center; gap:8px; }
.up-name { font-size:13.5px; font-weight:600; word-break:break-all; flex:1; min-width:0; }
.up-size { font-size:12px; flex:none; }
.up-ok { color:#14b8a6; font-weight:700; flex:none; }
.up-bar { height:6px; border-radius:99px; background:var(--line); overflow:hidden; margin:8px 0 5px; }
.up-bar i { display:block; height:100%; border-radius:99px; background:var(--grad); width:0; transition:width .2s; }
.up-stat { font-size:12px; }

/* 外采上传 - 文件夹/取消/速度 */
.up-folder-bar { margin-bottom:16px; }
.up-folder-bar label { display:block; font-size:13.5px; font-weight:600; margin-bottom:7px; }
.up-folder-bar input { width:100%; padding:11px 13px; border:1.5px solid var(--line-2); border-radius:11px; background:var(--card-solid); color:var(--ink); font-size:14.5px; box-sizing:border-box; }
.up-folder-bar input:focus { outline:none; border-color:rgba(124,131,253,.7); }
.up-folder-bar input.up-folder-need { border-color:#fb7185; background:rgba(251,113,133,.06); animation:upShake .35s; }
@keyframes upShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
.up-folder-hint { font-size:11.5px; margin-top:6px; }
.up-cancel { flex:none; border:none; background:transparent; color:var(--muted); cursor:pointer; font-size:15px; line-height:1; padding:2px 6px; border-radius:6px; }
.up-cancel:hover { background:rgba(251,113,133,.14); color:#fb7185; }
/* 外采上传 - 总进度条 */
.up-summary { margin-top:16px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--card-solid); }
.up-summary-bar { height:8px; border-radius:99px; background:var(--line); overflow:hidden; margin-bottom:8px; }
.up-summary-bar i { display:block; height:100%; border-radius:99px; background:var(--grad); width:0; transition:width .3s; }
.up-summary span { font-size:13px; }
/* 资料库 - 文件夹分组 */
.folder-group { margin-bottom:22px; }
.folder-group-h { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; padding:8px 2px 12px; border-bottom:1px solid var(--line); margin-bottom:14px; }
.folder-group-h .fg-name { font-size:15.5px; font-weight:700; }
.folder-group-h .fg-meta { font-size:12.5px; }

/* 通知中心 */
.ntf-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.ntf-tabs { display:flex; gap:8px; }
.ntf-tab { border:1px solid var(--line); background:var(--card-solid); color:var(--muted); padding:7px 15px; border-radius:99px; cursor:pointer; font-size:13.5px; font-weight:600; transition:all .15s; }
.ntf-tab b { opacity:.7; font-weight:700; margin-left:3px; }
.ntf-tab:hover { color:var(--ink); }
.ntf-tab.active { background:var(--grad); color:#fff; border-color:transparent; }
.ntf-tab.active b { opacity:.95; }
.ntf-list { display:flex; flex-direction:column; gap:8px; }
.ntf-item { display:flex; align-items:flex-start; gap:13px; padding:14px 15px; border:1px solid var(--line); border-radius:14px; background:var(--card-solid); text-decoration:none; color:inherit; position:relative; transition:transform .12s, box-shadow .12s, border-color .12s; }
.ntf-item:hover { transform:translateY(-1px); box-shadow:0 6px 18px rgba(0,0,0,.07); border-color:var(--line-2); }
.ntf-item.unread { background:linear-gradient(90deg, rgba(124,131,253,.07), transparent 60%); border-color:rgba(124,131,253,.28); }
.ntf-ic { flex:none; width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:20px; }
.ntf-cyan { background:rgba(20,184,166,.14); }
.ntf-amber { background:rgba(251,191,36,.16); }
.ntf-green { background:rgba(34,197,94,.14); }
.ntf-rose { background:rgba(251,113,133,.15); }
.ntf-violet { background:rgba(124,131,253,.15); }
.ntf-slate { background:rgba(148,163,184,.16); }
.ntf-main { display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.ntf-title { font-size:14.5px; font-weight:650; line-height:1.35; }
.ntf-text { font-size:13px; color:var(--muted); line-height:1.45; word-break:break-word; }
.ntf-time { font-size:11.5px; color:var(--muted); opacity:.8; margin-top:2px; }
.ntf-dot { flex:none; width:9px; height:9px; border-radius:50%; background:var(--grad); margin-top:6px; box-shadow:0 0 0 3px rgba(124,131,253,.15); }
.ntf-empty { text-align:center; padding:60px 20px; }
.ntf-empty-ic { font-size:46px; opacity:.5; margin-bottom:10px; }
.ntf-empty p { font-size:16px; font-weight:600; margin:0 0 4px; }

/* ===== Login launch countdown + project showcase (temporary, July 1 launch) ===== */
.launch-countdown {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 18px; padding: 9px 18px;
  background: linear-gradient(90deg, rgba(45,212,191,.16), rgba(251,191,36,.12) 50%, rgba(251,113,133,.16));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 14px;
}
.launch-countdown .lc-spark { font-size: 17px; }
.launch-countdown .lc-text { letter-spacing: .02em; color: var(--text); }
.launch-countdown .lc-text b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.launch-countdown .lc-text em { font-style: normal; color: var(--muted); margin-left: 8px; }
.lc-timer { display: inline-flex; align-items: center; gap: 6px; }
.lc-unit { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 9px; border-radius: 8px;
  border: 1px solid var(--line-2); background: rgba(0,0,0,.18); font-variant-numeric: tabular-nums; }
.lc-unit b { font-family: var(--font-disp); font-weight: 800; font-size: 17px; color: var(--text); min-width: 1.1em; text-align: center; }
.lc-unit i { font-style: normal; font-size: 11px; color: var(--muted); }
.lc-sep { color: var(--muted); opacity: .55; }
.lc-live { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* showcase replaces the hero copy on the login page */
.auth-showcase { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
.auth-today { border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.16); padding: 16px 18px; }
.at-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.at-label { color: var(--cyan); font-weight: 700; font-size: 13px; letter-spacing: .14em; }
html[data-theme="light"] .at-label { color: #0d7fd8; }
.at-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 999px; background: var(--grad); color: #0b0d0f; font-weight: 800; font-size: 13px; }
.at-list { display: flex; flex-wrap: wrap; gap: 8px; }
.at-item { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.05); font-size: 13.5px; font-weight: 600; }
.at-empty { color: var(--muted); font-size: 14px; }
.auth-marquee { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.16); padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.am-track { display: inline-flex; gap: 14px; white-space: nowrap; padding-left: 14px; animation: marquee 32s linear infinite; }
.auth-marquee:hover .am-track { animation-play-state: paused; }
.am-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.05); font-size: 13.5px; font-weight: 600; }
.am-pill em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 500; }
.am-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #2dd4bf; }
.am-dot.is-on { background: #2dd4bf; box-shadow: 0 0 0 3px rgba(45,212,191,.18); }
.am-dot.is-wait { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.18); }
.am-dot.is-sign { background: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.18); }
.am-dot.is-pause { background: #fb7185; box-shadow: 0 0 0 3px rgba(251,113,133,.18); }
@media (max-width: 720px) {
  .launch-countdown { font-size: 12.5px; gap: 6px 10px; padding: 8px 12px; }
  .lc-unit { padding: 2px 7px; }
  .lc-unit b { font-size: 15px; }
  .auth-showcase { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .am-track { animation: none; } }

/* countdown bar inside the logged-in layout — shows on every page */
.page > .launch-countdown {
  position: sticky; top: 14px; z-index: 30;
  border: 1px solid var(--line); border-radius: 12px; margin: 0 0 18px;
}
@media (max-width: 1180px) {
  .page > .launch-countdown { position: static; top: auto; margin-bottom: 14px; }
}
.page.page-chat > .launch-countdown { margin-bottom: 12px; }

/* ---------- 页面进入过渡：内容淡入上浮，轻微错落，丝滑 ---------- */
@keyframes pageRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* 普通页面：每个主要内容块依次浮现（跳过 sticky 倒计时条与页脚） */
.page > *:not(.launch-countdown):not(.footer) {
  animation: pageRise .5s cubic-bezier(.22,.61,.36,1) both;
  will-change: opacity, transform;
}
.page > *:nth-child(2)      { animation-delay: .02s; }
.page > *:nth-child(3)      { animation-delay: .07s; }
.page > *:nth-child(4)      { animation-delay: .12s; }
.page > *:nth-child(5)      { animation-delay: .17s; }
.page > *:nth-child(6)      { animation-delay: .22s; }
.page > *:nth-child(n+7)    { animation-delay: .26s; }
/* 动画结束后清掉 will-change，避免占用合成层 */
.page > * { animation-fill-mode: both; }
/* 聊天页是满高 flex 布局：只做纯淡入，不位移，避免抖动 */
.page-chat > *:not(.launch-countdown):not(.footer) {
  animation: pageFade .4s ease both;
  transform: none;
  will-change: opacity;
}
@media (prefers-reduced-motion: reduce) {
  .page > *, .page-chat > * { animation: none !important; }
}

/* 注册短信验证码：输入框 + 获取按钮一行 */
.sms-code-line { display: flex; gap: 8px; align-items: stretch; }
.sms-code-line input { flex: 1; min-width: 0; }
.sms-code-line .sms-get { flex: none; white-space: nowrap; padding: 0 16px; font-size: 13px; }
.sms-code-line .sms-get:disabled { opacity: .6; cursor: default; }
