:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #15202b;
  --muted: #667085;
  --line: #e4e7ec;
  --brand: #0f766e;
  --brand-2: #115e59;
  --accent: #d97706;
  --danger: #b42318;
  --ok: #067647;
  --blue: #175cd3;
  --shadow: 0 8px 28px rgba(16, 24, 40, .07);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #14b8a6); color: #fff; display: grid; place-items: center; font-size: 16px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a, .linklike { color: var(--muted); padding: 7px 9px; border-radius: 8px; font-size: 14px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav a.active, .linklike:hover { color: var(--brand-2); background: #ecfdf5; text-decoration: none; }
.inline { display: inline; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 22px 18px 50px; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px 18px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 12px; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-title h2, .card-title h3 { margin: 0; }
.hero { background: linear-gradient(135deg, #0f766e, #134e4a); color: #fff; border-radius: 18px; padding: 34px 26px; box-shadow: var(--shadow); }
.hero h1 { font-size: 30px; margin-bottom: 8px; }
.hero p { color: #ccfbf1; max-width: 720px; }
.hero .btn { margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--brand); background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 40px; }
.btn:hover { background: var(--brand-2); text-decoration: none; color: #fff; }
.btn.secondary { background: #fff; color: var(--brand-2); }
.btn.secondary:hover { background: #ecfdf5; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn.ghost:hover { background: #f9fafb; color: var(--ink); }
.btn.sm { padding: 5px 9px; min-height: 30px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.req { color: var(--danger); margin-left: 2px; }
input[type=text], input[type=tel], input[type=password], input[type=date], input[type=month], input[type=number], select, textarea {
  width: 100%; border: 1px solid #d0d5dd; background: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; color: var(--ink); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
textarea { min-height: 120px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 180px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #f2f4f7; color: #475467; white-space: nowrap; }
.badge.green { background: #ecfdf3; color: var(--ok); }
.badge.blue { background: #eff8ff; color: var(--blue); }
.badge.orange { background: #fffaeb; color: #b54708; }
.badge.red { background: #fef3f2; color: var(--danger); }
.badge.gray { background: #f2f4f7; color: #475467; }
.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.alert.ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.alert.err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.empty { text-align: center; padding: 36px 12px; color: var(--muted); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat .n { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat .l { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.file-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; }
.file-thumb { height: 110px; background: #f2f4f7; border-radius: 8px; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.file-thumb img { max-width: 100%; max-height: 100%; object-fit: cover; }
.file-meta { font-size: 12px; color: var(--muted); margin-top: 6px; word-break: break-all; }
.chat { display: grid; gap: 12px; }
.msg { max-width: 82%; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.msg.mine { margin-left: auto; background: #ecfdf5; border-color: #a7f3d0; }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg .files { margin-top: 8px; display: grid; gap: 6px; }
.msg .files a { font-size: 13px; }
.chat-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chat-form input[type=text] { flex: 1 1 240px; }
.chat-form input[type=file] { flex: 1 1 200px; padding: 7px; border: 1px dashed #d0d5dd; border-radius: 10px; background: #fff; }
.qr { width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 12px; object-fit: contain; background: #fff; }
.notice { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.danger-zone { border-color: #fecdca; background: #fffbfa; }
.list { display: grid; gap: 10px; }
.list-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.list-item .main { min-width: 220px; flex: 1; }
.list-item .side { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.split { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.sticky { position: sticky; top: 78px; align-self: start; }
.pre { white-space: pre-wrap; word-break: break-word; }
.login-wrap { max-width: 420px; margin: 8vh auto 0; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; }
.login-card h1 { text-align: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--muted); margin-bottom: 20px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row button { white-space: nowrap; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nowrap { white-space: nowrap; }
@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .hero { padding: 24px 18px; }
  .hero h1 { font-size: 24px; }
  .topbar-inner { align-items: flex-start; flex-direction: column; gap: 6px; }
  .nav { margin-left: 0; width: 100%; }
  .nav a, .linklike { padding: 6px 7px; }
  .wrap { padding: 16px 12px 40px; }
  .card { padding: 14px; }
  .kv { grid-template-columns: 88px 1fr; }
  .msg { max-width: 95%; }
}

/* ---------- 2026-11-22 UI v2: 折叠、服务卡片、移动端 ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { min-width: 0; }
img, svg, video, canvas { max-width: 100%; height: auto; }
p, li, dd, td, th, div, span, strong, a { overflow-wrap: anywhere; word-break: break-word; }
.card, .list-item, .stat, .msg, .notice, .alert, .file-card { min-width: 0; }
.card { max-width: 100%; }
.wrap { width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.page-head .sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.btn { white-space: normal; text-align: center; max-width: 100%; }
.badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

details.fold {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin: 10px 0;
  overflow: hidden;
}
details.fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: #fbfcfd;
  transition: background .15s;
}
details.fold > summary:hover { background: #f4f6f8; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before {
  content: '+';
  width: 20px; height: 20px; flex: 0 0 20px;
  border-radius: 6px;
  background: #eef2f6;
  color: var(--brand-2);
  display: inline-grid; place-items: center;
  font-size: 16px; line-height: 1;
}
details.fold[open] > summary::before { content: '−'; }
details.fold[open] > summary { border-bottom: 1px solid var(--line); }
details.fold > summary .summary-meta { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--muted); }
.fold-body { padding: 14px; }
.fold-body > :last-child { margin-bottom: 0; }

/* 服务档位卡片 */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  box-shadow: 0 3px 12px rgba(16,24,40,.04);
}
.service-card.featured { border-color: #0f766e; box-shadow: 0 6px 20px rgba(15,118,110,.12); }
.service-card.archived { opacity: .62; }
.service-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.service-card h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.service-card .subtitle { color: var(--muted); font-size: 13px; margin: 0; }
.service-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.service-price strong { color: #b54708; font-size: 22px; line-height: 1.2; }
.service-price .orig { color: var(--muted); text-decoration: line-through; font-size: 12px; }
.service-features { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.service-features li { margin: 2px 0; }
.service-card .desc { color: var(--muted); font-size: 13px; margin: 0; }
.service-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.service-actions .btn { flex: 1 1 auto; }

/* 总台数据条 */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat-strip .stat { padding: 12px; border-radius: 12px; }
.stat-strip .stat .n { font-size: 22px; }
.stat-strip .stat .l { font-size: 12px; }

/* 待审列表 */
.pending-list { display: grid; gap: 8px; }
.pending-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.pending-row .main { min-width: 0; }
.pending-row .title { font-weight: 600; font-size: 14px; }
.pending-row .meta { color: var(--muted); font-size: 12px; }
.pending-row .side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* 移动端适配 */
@media (max-width: 820px) {
  .wrap { padding: 14px 10px 36px; }
  .page-head { gap: 8px; margin-bottom: 12px; }
  .page-head h1 { font-size: 21px; }
  .card { padding: 13px; border-radius: 12px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 12px; }
  .pending-row { grid-template-columns: 1fr; gap: 6px; }
  .pending-row .side { justify-content: flex-start; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { font-size: 12px; margin-top: 6px; }
  .kv dd { margin: 0 0 6px; }
  .nowrap { white-space: normal; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table { min-width: 620px; font-size: 13px; }
  th, td { padding: 8px 6px; white-space: normal; word-break: break-word; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .file-thumb { height: 88px; }
  .qr { width: 100%; max-width: 230px; height: auto; }
  .actions { gap: 6px; }
  .actions .btn { flex: 1 1 auto; }
  .chat-form { flex-direction: column; align-items: stretch; }
  .chat-form input[type=text], .chat-form input[type=file], .chat-form .btn { width: 100%; flex: 1 1 auto; }
  .msg { max-width: 100%; }
  .code-row { flex-direction: column; }
  .code-row button { width: 100%; }
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: minmax(0, 1fr); }
  .topbar-inner { padding: 9px 10px; }
  .nav { gap: 2px; }
  .nav a, .linklike { padding: 6px 6px; font-size: 13px; }
  .hero { border-radius: 14px; }
}
@media (max-width: 420px) {
  .service-grid { grid-template-columns: 1fr; }
  .file-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { padding: 9px 11px; font-size: 13px; }
}

/* ---------- 2026-11-22 UI v3: 动效与专业感 ---------- */
body {
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(15,118,110,.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(217,119,6,.07), transparent 55%),
    linear-gradient(180deg, #f6f8fa 0%, #f2f5f7 45%, #f5f7f9 100%);
  background-attachment: fixed;
}
.topbar {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(16,24,40,.05), 0 8px 30px rgba(16,24,40,.04);
}
.brand-mark {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #22c55e 100%);
  box-shadow: 0 6px 16px rgba(15,118,110,.28);
  animation: markBreath 4.5s ease-in-out infinite;
}
@keyframes markBreath {
  0%, 100% { box-shadow: 0 6px 16px rgba(15,118,110,.24); transform: translateY(0); }
  50% { box-shadow: 0 9px 24px rgba(15,118,110,.40); transform: translateY(-1px); }
}
.card, .service-card, .stat, .pending-row, .list-item, .file-card {
  animation: cardIn .38s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (hover: hover) {
  .card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(16,24,40,.10); border-color: #cfd8df; }
  .service-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
  .service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(16,24,40,.12); border-color: #b9d8d3; }
  .stat { transition: transform .2s ease, box-shadow .2s ease; }
  .stat:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(16,24,40,.09); }
  .file-card { transition: transform .2s ease, box-shadow .2s ease; }
  .file-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.08); }
  .nav a, .linklike { transition: background .18s ease, color .18s ease, transform .18s ease; }
  .nav a:hover { transform: translateY(-1px); }
  .table tbody tr { transition: background .15s ease; }
  .table tbody tr:hover { background: #f8fafb; }
}
.btn {
  background-image: linear-gradient(135deg, #0f766e, #15803d);
  background-size: 160% 160%;
  background-position: 0% 50%;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(15,118,110,.20);
  transition: transform .18s ease, box-shadow .18s ease, background-position .35s ease, filter .18s ease;
}
.btn:hover { background-image: linear-gradient(135deg, #115e59, #166534); background-position: 100% 50%; box-shadow: 0 9px 22px rgba(15,118,110,.28); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: 0 4px 10px rgba(15,118,110,.20); }
.btn.secondary { background-image: linear-gradient(135deg, #ffffff, #f4fbf9); color: var(--brand-2); border-color: #b9d8d3; box-shadow: 0 4px 12px rgba(16,24,40,.05); }
.btn.secondary:hover { background-image: linear-gradient(135deg, #ecfdf5, #dff7ef); border-color: #8fd3c6; }
.btn.ghost { background-image: none; box-shadow: none; }
.btn.danger { background-image: linear-gradient(135deg, #b42318, #d92d20); box-shadow: 0 6px 16px rgba(180,35,24,.20); }
.stat {
  background-image: linear-gradient(160deg, #ffffff 0%, #f8fbfa 60%, #f3faf7 100%);
  border-top: 3px solid #0f766e;
  position: relative;
  overflow: hidden;
}
.stat .n { color: #0f3d38; letter-spacing: -.02em; }
.stat::after {
  content: '';
  position: absolute;
  right: -28px; top: -28px;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.14), transparent 70%);
}
.hero { position: relative; overflow: hidden; background: linear-gradient(125deg, #0b4f4a 0%, #0f766e 52%, #115e59 100%); }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 340px; height: 340px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(45,212,191,.34), transparent 68%); }
.hero::after { width: 240px; height: 240px; left: -80px; bottom: -150px; background: radial-gradient(circle, rgba(250,204,21,.16), transparent 70%); }
.hero > * { position: relative; z-index: 1; }
details.fold { transition: border-color .2s ease, box-shadow .2s ease; }
details.fold[open] { border-color: #cfe0dc; box-shadow: 0 6px 24px rgba(16,24,40,.06); }
details.fold > summary::before { transition: transform .2s ease, background .2s ease, color .2s ease; }
details.fold > summary:hover::before { background: #d7f1ea; transform: scale(1.06); }
details.fold[open] > summary::before { background: #0f766e; color: #fff; }
details.fold[open] .fold-body { animation: foldIn .24s ease both; }
@keyframes foldIn { from { opacity: .35; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
.tabs a { transition: transform .16s ease, background .16s ease, color .16s ease; }
.tabs a:hover { transform: translateY(-1px); }
.tabs a.active { background: linear-gradient(135deg, #0f766e, #15803d); border-color: transparent; box-shadow: 0 5px 14px rgba(15,118,110,.22); }
input[type=text], input[type=tel], input[type=password], input[type=date], input[type=month], input[type=number], select, textarea {
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:hover, select:hover, textarea:hover { border-color: #b6c2cc; }
input[type=file] { background: #fbfcfd; border: 1px dashed #b8c5cf; border-radius: 10px; padding: 9px; width: 100%; transition: border-color .18s ease, background .18s ease; }
input[type=file]:hover { border-color: #0f766e; background: #f2fbf8; }
.upload-board {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px dashed #b9d8d3;
  background: linear-gradient(135deg, #f3fbf8, #fbfdfc);
  border-radius: 14px;
  padding: 16px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.upload-board:hover { border-color: #0f766e; background: linear-gradient(135deg, #ecfdf5, #f7fffc); transform: translateY(-1px); }
.upload-icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff; font-size: 24px; line-height: 1;
  box-shadow: 0 6px 16px rgba(15,118,110,.24);
}
.alert { animation: alertIn .25s ease both; }
@keyframes alertIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.badge { transition: transform .15s ease; }
.page-head h1 { background: linear-gradient(90deg, #102a2a, #0f766e); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (max-width: 820px) {
  .upload-board { padding: 12px; }
  .stat { border-top-width: 2px; }
  body { background-attachment: scroll; }
}

/* WeChat user login */
.login-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0 10px; }
.login-or::before, .login-or::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.wechat-login {
  background-image: linear-gradient(135deg, #07c160, #06ad56) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(7,193,96,.24) !important;
}
.wechat-login:hover { background-image: linear-gradient(135deg, #06ad56, #059648) !important; }
.wechat-logo {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: #fff; color: #07c160;
  font-size: 11px; font-weight: 700;
}

/* 六类资料上传位置 */
.upload-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.upload-slot {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 5px 9px;
  align-items: center;
  padding: 12px;
  border: 1.5px dashed #c4d3d8;
  border-radius: 12px;
  background: linear-gradient(160deg, #fbfdfd, #f5faf8);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.upload-slot > input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.upload-slot:hover { border-color: #0f766e; background: linear-gradient(160deg, #f0fbf7, #e8f8f2); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(15,118,110,.10); }
.upload-slot.filled { border-style: solid; border-color: #0f766e; background: linear-gradient(160deg, #ecfdf5, #f8fffc); }
.slot-icon {
  width: 34px; height: 34px; grid-row: 1 / span 2;
  border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(15,118,110,.18);
}
.slot-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.slot-main strong { font-size: 13px; line-height: 1.35; }
.slot-main small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.slot-state { grid-column: 2; font-size: 11px; color: var(--brand-2); font-weight: 600; }
.slot-files { grid-column: 1 / -1; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-slot.filled .slot-state { color: var(--ok); }
@media (max-width: 820px) {
  .upload-grid { grid-template-columns: 1fr; gap: 8px; }
  .upload-slot { padding: 10px; }
}
@media (max-width: 420px) {
  .upload-grid { grid-template-columns: 1fr; }
}

/* 上传位置 v2：文件管理器 + 相册双入口 */
.upload-slot {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 6px 9px;
  align-items: center;
  cursor: default;
  padding: 12px;
}
.upload-slot > input[type=file],
.upload-slot input[type=file] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  z-index: 0 !important;
  inset: auto !important;
}
.slot-icon { grid-row: 1 / span 2; }
.slot-main { grid-column: 2; grid-row: 1 / span 2; }
.slot-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.slot-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #0f766e;
  border-radius: 9px;
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex: 1 1 auto;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.slot-btn:hover { background: #115e59; transform: translateY(-1px); box-shadow: 0 5px 12px rgba(15,118,110,.18); }
.slot-btn.ghost { background: #fff; color: var(--brand-2); border-color: #b9d8d3; }
.slot-btn.ghost:hover { background: #ecfdf5; }
.slot-files {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.upload-slot.filled .slot-files { color: var(--ok); }
.upload-slot.filled { background: linear-gradient(160deg, #ecfdf5, #f8fffc); border-style: solid; }
@media (max-width: 820px) {
  .upload-grid { grid-template-columns: 1fr; }
  .upload-slot { padding: 10px; }
  .slot-btn { min-height: 36px; font-size: 13px; }
}

/* ---------- 2026-11-22 UI v4: 首页 / 服务卡 / 弹窗 ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(120deg, #0b4f4a 0%, #0f766e 58%, #15803d 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(15,118,110,.20);
  margin-bottom: 18px;
}
.home-hero::before {
  content: ''; position: absolute; width: 280px; height: 280px; right: -90px; top: -150px;
  border-radius: 50%; background: radial-gradient(circle, rgba(45,212,191,.36), transparent 68%);
}
.home-hero::after {
  content: ''; position: absolute; width: 200px; height: 200px; left: 28%; bottom: -160px;
  border-radius: 50%; background: radial-gradient(circle, rgba(250,204,21,.14), transparent 70%);
}
.home-hero-main, .home-hero-action { position: relative; z-index: 1; }
.home-hero .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .16em;
  color: #99f6e4; text-transform: uppercase; margin-bottom: 7px;
}
.home-hero h1 { font-size: 28px; margin: 0 0 5px; color: #fff; background: none; -webkit-text-fill-color: #fff; }
.home-hero p { margin: 0; color: #ccfbf1; font-size: 13px; max-width: 560px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hero-chip {
  padding: 7px 11px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.20);
  color: #eafffb; font-size: 12px; backdrop-filter: blur(6px);
}
.hero-chip strong { font-size: 15px; color: #fff; }
.home-hero-action .btn { background-image: linear-gradient(135deg, #fff, #eafffb); color: #0f5e57; border-color: transparent; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.home-hero-action .btn:hover { background-image: linear-gradient(135deg, #f0fdfa, #d7f7ec); color: #0b4f4a; }

.empty-state {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 20px;
  box-shadow: var(--shadow);
}
.empty-visual {
  width: 74px; height: 74px; margin: 0 auto 14px;
  border-radius: 22px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #d7f7ec, #ecfdf5);
  color: #0f766e;
  font-size: 30px; font-weight: 700;
  box-shadow: inset 0 0 0 1px #b9e8da, 0 10px 24px rgba(15,118,110,.12);
}
.empty-state h2 { font-size: 21px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 460px; margin: 0 auto 16px; }
.empty-tips { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 12px; }

.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.case-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  color: var(--ink); text-decoration: none;
  box-shadow: 0 5px 18px rgba(16,24,40,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.case-card:hover { text-decoration: none; color: var(--ink); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(16,24,40,.11); border-color: #c9d7d3; }
.case-cover {
  position: relative;
  min-height: 92px;
  padding: 12px;
  display: flex; align-items: flex-start; justify-content: space-between;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.case-cover.cover-approved { background: linear-gradient(135deg, #15803d, #22c55e); }
.case-cover.cover-rejected { background: linear-gradient(135deg, #9f1239, #e11d48); }
.case-cover.cover-need { background: linear-gradient(135deg, #b45309, #f59e0b); }
.case-cover.cover-pending { background: linear-gradient(135deg, #1d4ed8, #06b6d4); }
.case-cover-mark {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 21px; font-weight: 700;
  backdrop-filter: blur(4px);
}
.case-cover .badge { background: rgba(255,255,255,.92); color: #0f172a; }
.case-body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.case-title { font-weight: 700; font-size: 15px; line-height: 1.4; min-height: 21px; }
.case-meta { font-size: 11px; color: var(--muted); }
.case-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; }
.case-price { color: #b54708; font-size: 16px; font-weight: 700; }
.case-files { font-size: 11px; color: var(--muted); }
.case-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; border-top: 1px solid #f0f3f5; padding-top: 8px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.case-go { color: var(--brand-2); font-weight: 600; }

/* 管理端服务卡 */
.admin-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-service-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0;
  box-shadow: 0 5px 18px rgba(16,24,40,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.admin-service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16,24,40,.10); }
.admin-service-card.featured { border-color: #99d5c9; }
.admin-service-card.archived { opacity: .72; }
.admin-svc-cover {
  min-height: 74px; padding: 12px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  background: linear-gradient(135deg, #0b4f4a, #0f766e 60%, #15803d);
}
.admin-svc-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.26);
  color: #fff; font-size: 18px; font-weight: 700;
}
.admin-svc-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.admin-svc-badges .badge { background: rgba(255,255,255,.92); }
.admin-svc-body { padding: 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.admin-svc-body h3 { margin: 0; font-size: 16px; }
.admin-svc-sub { margin: 0; color: var(--muted); font-size: 12px; }
.admin-svc-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.admin-svc-price strong { color: #b54708; font-size: 21px; }
.admin-svc-price .orig { color: var(--muted); text-decoration: line-through; font-size: 11px; }
.admin-svc-desc { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.admin-svc-features { margin: 2px 0 0; padding-left: 17px; color: var(--muted); font-size: 12px; }
.admin-svc-features li { margin: 1px 0; }
.admin-svc-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.admin-svc-actions .btn { flex: 1 1 auto; }

/* 弹窗 */
dialog.modal {
  width: min(760px, calc(100vw - 28px));
  max-height: min(88vh, 820px);
  padding: 0;
  border: 1px solid #d7e2df;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(16,24,40,.28);
  overflow: hidden;
  background: #fff;
  color: var(--ink);
}
dialog.modal::backdrop { background: rgba(9,20,26,.48); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fff,#f8fbfa); }
.modal-head h2 { margin: 0 0 2px; font-size: 18px; }
.modal-close { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-close:hover { background: #f2f4f7; color: var(--ink); }
.modal-body { padding: 16px 18px 18px; max-height: calc(88vh - 70px); overflow-y: auto; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.modal-actions .btn { flex: 1 1 auto; }

@media (max-width: 980px) {
  .case-grid, .admin-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home-hero { padding: 18px; border-radius: 16px; }
  .home-hero h1 { font-size: 23px; }
  .home-hero-action { width: 100%; }
  .home-hero-action .btn { width: 100%; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .case-cover { min-height: 78px; padding: 9px; }
  .case-cover-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
  .case-body { padding: 10px; gap: 3px; }
  .case-title { font-size: 13px; line-height: 1.35; min-height: 18px; }
  .case-meta { font-size: 10px; }
  .case-price { font-size: 14px; }
  .case-files { font-size: 10px; }
  .case-foot { font-size: 10px; padding-top: 6px; }
  .admin-service-grid { grid-template-columns: 1fr; }
  .empty-state { padding: 24px 16px; border-radius: 16px; }
  .empty-state h2 { font-size: 19px; }
  dialog.modal { width: calc(100vw - 16px); max-height: 92vh; border-radius: 16px; }
  .modal-body { max-height: calc(92vh - 68px); padding: 14px; }
  .modal-head { padding: 13px 14px; }
  .modal-actions { position: sticky; bottom: 0; background: #fff; padding-bottom: 2px; }
}

/* 主体库搜索 */
.search-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.search-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.search-title strong { font-size: 15px; }
.search-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 10px; }
.search-panel .form-row { margin-bottom: 0; }
.search-panel .actions { margin-top: 12px; }
.region-line { font-size: 13px; color: #344054; }
@media (max-width: 820px) {
  .search-grid { grid-template-columns: 1fr; gap: 8px; }
  .search-panel { padding: 13px; }
}

/* 自动发货 */
.delivery-card {
  border: 1px solid #b9e8da;
  border-radius: 16px;
  background: linear-gradient(150deg, #f1fcf8, #ffffff 60%);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(15,118,110,.08);
  margin-top: 16px;
}
.delivery-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.delivery-head .eyebrow { color: #0f766e; font-size: 11px; letter-spacing: .12em; }
.delivery-head h2 { margin: 3px 0 0; font-size: 18px; }
.delivery-text { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; }

/* 自动发货配置 */
.delivery-editor {
  margin: 12px 0 4px;
  padding: 12px;
  border: 1px solid #cfe0dc;
  border-radius: 12px;
  background: #f7fcf9;
}
.delivery-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.delivery-editor-head strong { display: block; font-size: 14px; }
.delivery-editor-head .delivery-type-select { max-width: 180px; }
.delivery-editor .form-row { margin-bottom: 10px; }
.delivery-editor .form-row:last-child { margin-bottom: 0; }

/* 用户管理名称 */
.user-cell { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.user-avatar { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: #eef2f1; }
.user-avatar.avatar-fallback { display: grid; place-items: center; color: #0f766e; font-weight: 700; font-size: 14px; background: linear-gradient(135deg,#d7f7ec,#ecfdf5); }

/* 自动发货视频/图片 */
.video-frame { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #0b1220; margin-top: 8px; }
.video-frame video { display: block; width: 100%; max-height: 70vh; background: #000; }
.video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.delivery-image { max-width: 100%; max-height: 520px; border-radius: 12px; border: 1px solid var(--line); margin-top: 8px; display: block; }
@media (max-width: 600px) {
  .video-frame iframe { aspect-ratio: 16 / 10; }
}

/* 文件预览 */
.file-thumb-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.file-thumb-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.file-type-label { display: grid; place-items: center; width: 100%; height: 100%; min-height: 88px; color: var(--brand-2); font-weight: 700; background: #eef8f4; border-radius: 10px; }
.file-preview-modal { width: min(960px, calc(100vw - 24px)); }
.file-preview-body { padding: 14px; background: #0f172a; display: grid; place-items: center; max-height: calc(88vh - 70px); overflow: auto; }
.preview-image { max-width: 100%; max-height: calc(88vh - 100px); object-fit: contain; border-radius: 8px; background: #fff; }
.preview-pdf { width: 100%; height: min(72vh, 760px); border: 0; border-radius: 8px; background: #fff; }
@media (max-width: 600px) {
  .file-preview-body { padding: 8px; }
  .preview-pdf { height: 70vh; }
}

/* 省市区级联选择 */
.region-picker { margin: 8px 0 10px; padding: 10px; border: 1px solid #d7e2df; border-radius: 12px; background: #f8fbfa; }
.region-picker .form-row { margin-bottom: 8px; }
.region-picker .form-row:last-child { margin-bottom: 0; }
.region-search { width: 100%; }
.region-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.region-selects select { width: 100%; }
@media (max-width: 640px) {
  .region-selects { grid-template-columns: 1fr; gap: 7px; }
  .region-picker { padding: 9px; }
}

/* 九宫格文件区 */
.file-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
.file-card { padding: 7px !important; min-width: 0; }
.file-thumb { height: auto !important; aspect-ratio: 1 / 1; }
.file-thumb-btn { height: 100%; }
.file-thumb img { object-fit: cover; }
.file-meta { font-size: 10px; line-height: 1.35; max-height: 2.7em; overflow: hidden; }
.file-card .actions { gap: 4px; }
.file-card .actions .btn { padding: 5px 6px; font-size: 11px; min-height: 28px; flex: 0 1 auto; }
.file-extra { display: none !important; }
.file-more {
  border: 1px dashed #9fd3c7;
  border-radius: 12px;
  background: linear-gradient(145deg, #f0fbf7, #e8f8f2);
  color: #0f766e;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; aspect-ratio: 1 / 1; padding: 8px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.file-more span { font-size: 22px; font-weight: 700; line-height: 1; }
.file-more small { font-size: 11px; color: #3f6f66; }
.file-more:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15,118,110,.12); }
@media (max-width: 600px) {
  .file-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .file-card { padding: 5px !important; border-radius: 10px; }
  .file-card .small, .file-meta { font-size: 9px; }
  .file-card .actions .btn { font-size: 10px; min-height: 25px; padding: 4px 5px; }
}

/* 主体搜索下拉 */
.subject-search-results { display: grid; gap: 4px; margin-top: 5px; max-height: 230px; overflow-y: auto; }
.subject-search-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  width: 100%; text-align: left; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--ink); cursor: pointer;
}
.subject-search-item:hover { background: #f0fbf7; border-color: #9fd3c7; }
.subject-search-item strong { font-size: 13px; }
.subject-search-item small { font-size: 11px; color: var(--muted); }

/* 未读小红点 */
.nav-dot {
  display: inline-grid; place-items: center;
  min-width: 17px; height: 17px; padding: 0 4px;
  margin-left: 4px; border-radius: 999px;
  background: #e11d48; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(225,29,72,.35);
}

/* 群二维码预览按钮 */
.qr-preview-btn { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.qr-preview-btn .qr { display: block; }

/* 工作台统计卡可点击 */
a.stat { display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.stat:hover { text-decoration: none; border-color: #9fd3c7; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,118,110,.10); }

/* 聊天附件选择 */
.chat-file-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 6px 0; }
.chat-file-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 6px 10px; border-radius: 9px;
  background: #0f766e; color: #fff; border: 1px solid #0f766e;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.chat-file-btn.ghost { background: #fff; color: var(--brand-2); border-color: #b9d8d3; }
.chat-file-btn input[type=file] {
  position: absolute !important; width: 1px !important; height: 1px !important;
  opacity: 0 !important; overflow: hidden !important;
}
.chat-file-name { font-size: 11px; color: var(--muted); word-break: break-all; }

/* 用户底部导航 */
body { padding-bottom: 74px; }
.has-bottom-nav .nav { display: none; }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(16,24,40,.06);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 5px 2px; border-radius: 10px;
  color: #667085; font-size: 11px; text-decoration: none;
}
.bottom-nav a.active { color: #0f766e; background: #ecfdf5; font-weight: 600; }
.bottom-icon { font-size: 18px; line-height: 1; }
.admin-page .bottom-nav { display: none; }
@media (max-width: 600px) { body { padding-bottom: 76px; } }

/* 我的页面 */
.profile-links { display: grid; gap: 8px; }
.profile-link { display: flex; justify-content: space-between; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); text-decoration: none; font-size: 14px; }
.profile-link span:last-child { color: var(--muted); font-size: 12px; text-align: right; }
.profile-link:hover { background: #f0fbf7; border-color: #9fd3c7; text-decoration: none; }

/* QQ 风格消息会话页 */
body.chat-page { padding-bottom: 0; background: #ededed; }
body.chat-page .topbar { display: none; }
body.chat-page main.wrap { padding: 0; width: 100%; max-width: none; }
body.chat-page .bottom-nav { display: none; }
.qq-chat { height: 100dvh; display: flex; flex-direction: column; background: #ededed; }
.qq-chat-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top));
  background: #f7f7f7; border-bottom: 1px solid #d9d9d9; position: relative;
}
.qq-back { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #111; font-size: 30px; line-height: 1; text-decoration: none; }
.qq-chat-title { display: flex; flex-direction: column; min-width: 0; }
.qq-chat-title strong { font-size: 17px; }
.qq-chat-title span { font-size: 11px; color: #777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qq-chat-messages { flex: 1 1 auto; overflow-y: auto; padding: 14px 12px 18px; overscroll-behavior: contain; }
.qq-empty { text-align: center; color: #999; font-size: 13px; padding: 30px 0; }
.qq-msg-row { display: flex; flex-direction: column; margin-bottom: 14px; align-items: flex-start; }
.qq-msg-row.mine { align-items: flex-end; }
.qq-msg-meta { font-size: 11px; color: #999; margin-bottom: 4px; padding: 0 4px; }
.qq-bubble { max-width: 78%; background: #fff; border-radius: 4px 12px 12px 12px; padding: 9px 11px; font-size: 15px; line-height: 1.5; word-break: break-word; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.qq-msg-row.mine .qq-bubble { background: #95ec69; border-radius: 12px 4px 12px 12px; }
.qq-text { white-space: pre-wrap; }
.qq-files { display: grid; gap: 5px; margin-top: 5px; font-size: 12px; }
.qq-files a { color: #1d5f8a; text-decoration: none; }
.qq-composer { flex: 0 0 auto; background: #f7f7f7; border-top: 1px solid #d9d9d9; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.qq-file-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.qq-file-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 4px 10px; border-radius: 7px; background: #fff; border: 1px solid #d5d5d5; color: #444; font-size: 12px; cursor: pointer; }
.qq-file-btn input[type=file] { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; overflow: hidden !important; }
.qq-file-name { font-size: 11px; color: #888; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qq-input-row { display: flex; align-items: center; gap: 8px; }
.qq-input-row input[type=text] { flex: 1 1 auto; min-height: 40px; margin: 0; border-radius: 7px; border: 1px solid #d5d5d5; background: #fff; padding: 8px 10px; font-size: 15px; }
.qq-send-btn { flex: 0 0 auto; min-height: 40px; padding: 8px 18px; border: 0; border-radius: 7px; background: #0f766e; color: #fff; font-size: 14px; font-weight: 600; }
.qq-hint { font-size: 10px; color: #999; margin-top: 5px; }

/* 账号合并 */
.merge-option { display: flex; gap: 9px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 9px; cursor: pointer; }
.merge-option:hover { background: #f0fbf7; border-color: #9fd3c7; }
.merge-option input { margin-top: 3px; }
.merge-option strong { font-size: 14px; }

/* 聊天图片缩略图/全屏预览 */
.chat-images { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat-thumb {
  width: 92px; height: 92px; object-fit: cover; border-radius: 9px;
  border: 1px solid rgba(0,0,0,.08); cursor: zoom-in; display: block; background: #fff;
}
.qq-files .chat-images { margin-top: 6px; }
.image-viewer {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; background: #000; color: #fff;
}
.image-viewer::backdrop { background: rgba(0,0,0,.92); }
.image-viewer-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(0,0,0,.65), transparent);
}
.image-viewer-close { border: 0; background: rgba(255,255,255,.15); color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.image-viewer-download { color: #fff; background: #0f766e; border-radius: 9px; padding: 9px 14px; text-decoration: none; font-size: 13px; font-weight: 600; }
.image-viewer img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 多条自动发货 */
.existing-delivery-files { display: flex; flex-wrap: wrap; gap: 8px; }
.delivery-file-keep { display: flex; align-items: center; gap: 5px; font-size: 12px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* 多条自动发货 */
.delivery-item { padding: 10px 0; border-top: 1px dashed #d7e2df; }
.delivery-item:first-of-type { border-top: 0; padding-top: 6px; }
.delivery-item .video-frame { margin-top: 6px; }

/* 首页落地页 */
.landing { padding-bottom: 20px; }
.land-hero {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 28px; align-items: center;
  background: radial-gradient(circle at 88% 8%, rgba(45,212,191,.28), transparent 34%), linear-gradient(120deg, #073b37 0%, #0f766e 58%, #115e59 100%);
  color: #fff; border-radius: 24px; padding: 46px 42px;
  box-shadow: 0 24px 60px rgba(15,118,110,.22);
}
.land-eyebrow { font-size: 12px; letter-spacing: .18em; color: #99f6e4; text-transform: uppercase; }
.land-hero h1 { color: #fff; background: none; -webkit-text-fill-color: #fff; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.14; margin: 12px 0 16px; letter-spacing: -.02em; }
.land-lead { color: #ccfbf1; font-size: 15px; line-height: 1.8; max-width: 620px; margin: 0; }
.land-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.land-primary { background: #fff; color: #0b4f4a; border-color: #fff; font-weight: 700; box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.land-primary:hover { background: #ecfdf5; color: #0b4f4a; }
.land-ghost { background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.land-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.land-chips { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; color: #d5f5ee; font-size: 12px; }
.land-chips span::before { content: '✓'; color: #5eead4; margin-right: 5px; }
.land-hero-card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.20); border-radius: 18px; padding: 18px; backdrop-filter: blur(8px); }
.land-card-top { font-size: 12px; color: #99f6e4; letter-spacing: .08em; display: flex; align-items: center; gap: 7px; }
.land-dot { width: 7px; height: 7px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 0 4px rgba(94,234,212,.15); }
.land-flow { display: grid; gap: 12px; margin: 18px 0; }
.land-flow div { display: flex; align-items: center; gap: 10px; }
.land-flow b { color: #5eead4; font-size: 13px; font-weight: 600; }
.land-flow span { font-size: 14px; color: #f0fdfa; }
.land-card-foot { border-top: 1px solid rgba(255,255,255,.16); padding-top: 12px; font-size: 11px; line-height: 1.6; color: #b9e8e0; }
.land-section { margin: 60px 0; }
.land-section-head { max-width: 680px; margin-bottom: 22px; }
.land-kicker { font-size: 11px; letter-spacing: .16em; color: #0f766e; font-weight: 700; }
.land-section-head h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.3; margin: 8px 0 10px; letter-spacing: -.01em; }
.land-section-head p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
.land-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.land-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(16,24,40,.04); }
.land-num { font-size: 12px; color: #0f766e; font-weight: 700; letter-spacing: .08em; }
.land-card h3 { font-size: 17px; margin: 10px 0 6px; }
.land-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.land-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.land-step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.land-step span { font-size: 11px; color: #0f766e; letter-spacing: .12em; font-weight: 700; }
.land-step h3 { font-size: 18px; margin: 10px 0 6px; }
.land-step p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0; }
.land-promise { background: #f2faf7; border-radius: 20px; padding: 28px; border: 1px solid #d7ebe5; }
.land-promise .land-section-head { margin-bottom: 16px; }
.land-promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.land-promise-grid h3 { font-size: 17px; margin: 0 0 6px; }
.land-promise-grid p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0; }
.land-faq { max-width: 900px; }
.land-faq-item { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px; margin-bottom: 8px; }
.land-faq-item summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.land-faq-item p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 8px 0 0; }
.land-cta { text-align: center; background: linear-gradient(120deg, #0b4f4a, #0f766e); color: #fff; border-radius: 22px; padding: 46px 20px; }
.land-cta h2 { color: #fff; background: none; -webkit-text-fill-color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; }
.land-cta p { color: #ccfbf1; font-size: 14px; margin: 0 0 20px; }
@media (max-width: 900px) {
  .land-hero { grid-template-columns: 1fr; padding: 32px 24px; }
  .land-hero-card { max-width: 460px; }
  .land-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-steps { grid-template-columns: 1fr; }
  .land-promise-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 600px) {
  .land-hero { border-radius: 18px; padding: 26px 18px; }
  .land-hero h1 { font-size: 34px; }
  .land-section { margin: 42px 0; }
  .land-grid { grid-template-columns: 1fr; }
  .land-actions .btn { flex: 1 1 100%; }
  .land-promise { padding: 20px 16px; }
  .land-cta { border-radius: 16px; padding: 34px 16px; }
}

/* 聊天区域固定高度，内部滚动 */
.chat { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
body.chat-page { overflow: hidden; }
body.chat-page main.wrap { height: 100dvh; overflow: hidden; }
.qq-chat { overflow: hidden; }
.qq-chat-messages { min-height: 0; }
@media (max-width: 600px) {
  .chat { max-height: 46vh; }
}

/* 服务流程指导/官方群 */
.service-flow-card {
  background: linear-gradient(135deg, #f0fbf7, #ffffff 62%);
  border: 1px solid #cfe8df; border-radius: 18px; padding: 22px; margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15,118,110,.06);
}
.service-flow-head .eyebrow { color: #0f766e; font-size: 11px; letter-spacing: .14em; }
.service-flow-head h2 { margin: 5px 0 4px; font-size: 22px; }
.service-flow-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.service-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0 14px; }
.service-flow > div { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.service-flow b { color: #0f766e; font-size: 12px; }
.service-flow strong { font-size: 13px; }
.service-flow span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.official-group-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed #cfe8df; padding-top: 13px; }
.official-group-body { padding: 18px; display: grid; place-items: center; background: #f7fbfa; }
.official-group-body img { max-width: min(360px, 78vw); width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 760px) {
  .service-flow { grid-template-columns: 1fr 1fr; }
  .service-flow > div:last-child { grid-column: 1 / -1; }
  .service-flow-card { padding: 17px; }
}

/* 超管配置双卡片并排 */
.settings-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.settings-two-col .card { padding: 16px 18px; }
.settings-two-col .card-title { margin-bottom: 10px; }
.settings-two-col .form-row { margin-bottom: 9px; }
.settings-two-col .btn { padding: 8px 14px; }
@media (max-width: 860px) {
  .settings-two-col { grid-template-columns: 1fr; }
}

/* 双卡片等高对齐 */
.settings-two-col { align-items: stretch; }
.settings-two-col > .card { display: flex; flex-direction: column; height: 100%; }
.settings-two-col > .card > form { display: flex; flex-direction: column; flex: 1 1 auto; }
.settings-two-col > .card > form > .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) {
  .settings-two-col > .card { height: auto; }
}

/* 云文件选择 */
.cloud-file-picker { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; display: grid; gap: 4px; }
.cloud-file-option { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; border-radius: 7px; cursor: pointer; }
.cloud-file-option:hover { background: #f0fbf7; }
.cloud-file-option input { margin-top: 3px; }
.cloud-file-option span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cloud-file-option strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* 云文件列表 */
.cloud-file-list { display: grid; gap: 7px; }
.cloud-file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cloud-file-info { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.cloud-file-info strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-file-actions { display: flex; gap: 7px; flex-shrink: 0; }
@media (max-width: 600px) {
  .cloud-file-row { align-items: flex-start; flex-direction: column; }
  .cloud-file-actions { width: 100%; }
}
