/* 美探 · 商家端（暖色调，和小程序同一套色） */
:root {
  --brand: #f25e0a; --brand-bright: #ff8c42; --brand-strong: #b24608; --brand-soft: #fff0e5; --brand-line: #ffd6b8;
  --ink: #2a1c12; --ink-2: #6b5a4d; --ink-muted: #776657; --line: #ece4dc; --bg: #faf6f1; --card: #fffcf9; --sunken: #f3ece5;
  --ok: #167d47; --ok-soft: #e4f4ea; --warn: #9a5b00; --warn-soft: #fff3d6; --bad: #d4332a; --bad-soft: #fdeceb; --info: #3466d6; --info-soft: #e9effb;
  --radius: 14px; --shadow: 0 1px 2px rgba(74, 46, 26, .05), 0 6px 20px rgba(74, 46, 26, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
[v-cloak] { display: none; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
.muted { color: var(--ink-muted); }

.logo { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-bright), var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; box-shadow: 0 6px 16px rgba(242, 94, 10, .25); }
.logo--sm { width: 32px; height: 32px; font-size: 14px; border-radius: 9px; }

/* ---- 登录 ---- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 15% -10%, #ffe1cc 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #ffd9c2 0%, transparent 55%), var(--bg); }
.login__card { width: 420px; max-width: 100%; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 36px 36px 26px; }
.login__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login__title { font-size: 21px; font-weight: 800; }
.login__sub { color: var(--ink-muted); font-size: 12px; }
.login__err { color: var(--bad); font-size: 13px; margin: -6px 0 12px; }
.login__tip { margin-top: 14px; font-size: 12px; color: var(--ink-muted); text-align: center; }
.login__adv { margin-top: 12px; font-size: 12px; color: var(--ink-muted); }
.login__adv summary { cursor: pointer; }

/* ---- 表单 ---- */
.field { margin-bottom: 16px; }
.field__label { font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.input, .select { width: 100%; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(242, 94, 10, .12); }
.input--sm, .select { height: 36px; border-radius: 10px; padding: 0 12px; }
.select { width: auto; min-width: 180px; }
.btn { height: 38px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; white-space: nowrap; transition: filter .15s, transform .08s; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn--primary { background: linear-gradient(90deg, var(--brand-bright), var(--brand)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(242, 94, 10, .22); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--brand-strong); }
.btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn--lg { height: 48px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---- 顶栏 ---- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: rgba(255, 252, 249, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.top__shop { flex: 1; display: flex; align-items: center; gap: 10px; }
.top__shopname { font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.top__right { display: flex; align-items: center; gap: 4px; }
.top__user { color: var(--ink-muted); font-size: 13px; margin-right: 8px; }
.main { max-width: 1200px; margin: 0 auto; padding: 20px 24px 60px; }

/* ---- 统计 ---- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; cursor: pointer; border: 1.5px solid transparent; transition: border-color .15s; }
.stat:hover { border-color: var(--brand-line); }
.stat--active { border-color: var(--brand); background: var(--brand-soft); }
.stat__num { font-size: 28px; font-weight: 800; color: var(--brand-strong); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

/* ---- 筛选 ---- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: var(--sunken); padding: 4px; border-radius: 999px; flex-wrap: wrap; }
.tab { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--ink-2); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tab--active { background: #fff; color: var(--brand-strong); box-shadow: 0 1px 3px rgba(74, 46, 26, .12); }
.tab__n { font-size: 11px; background: var(--brand-soft); color: var(--brand-strong); border-radius: 999px; padding: 0 6px; line-height: 18px; }
.toolbar__right { display: flex; gap: 8px; align-items: center; }
.toolbar__search { width: 240px; }

/* ---- 列表 ---- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--ink-muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { cursor: pointer; transition: background .12s; }
.table tbody tr:hover { background: var(--brand-soft); }
.who { display: flex; align-items: center; gap: 10px; }
.who__name { font-weight: 700; }
.who__sub { font-size: 12px; color: var(--ink-muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--sunken); flex: 0 0 36px; }
.plat__tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--sunken); color: var(--ink-2); }
.plat--1 { background: #fff4d6; color: #8a5a00; } .plat--2 { background: #1f1f1f; color: #fff; } .plat--3 { background: #ffe3e6; color: #c2173a; } .plat--4 { background: #ffe6dd; color: #d03a0c; } .plat--5 { background: #e3effe; color: #1c5ec7; }
.media-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.media-sum span { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--sunken); color: var(--ink-muted); }
.media-sum span.is-on { background: var(--ok-soft); color: var(--ok); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.tag--ok { background: var(--ok-soft); color: var(--ok); } .tag--warn { background: var(--warn-soft); color: var(--warn); } .tag--bad { background: var(--bad-soft); color: var(--bad); } .tag--info { background: var(--info-soft); color: var(--info); } .tag--muted { background: var(--sunken); color: var(--ink-muted); }
.empty { padding: 48px 16px; text-align: center; color: var(--ink-muted); }
.empty--sm { padding: 14px; font-size: 13px; background: var(--sunken); border-radius: 10px; }
.loading { padding: 32px; text-align: center; color: var(--ink-muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; border-top: 1px solid var(--line); }
.pager__info { font-size: 13px; color: var(--ink-muted); }
.cards { display: none; }

/* ---- 弹窗 ---- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(42, 28, 18, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__box { width: 460px; max-width: 100%; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal__box--wide { width: 900px; }
.modal__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.modal__head > div:first-child { flex: 1; }
.modal__title { font-size: 17px; font-weight: 800; }
.modal__close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--sunken); font-size: 20px; cursor: pointer; line-height: 1; }
.modal__body { padding: 18px 22px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 20px; }
.detail__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; margin-bottom: 12px; }
.kv { display: flex; flex-direction: column; }
.kv span { font-size: 12px; color: var(--ink-muted); }
.kv b { font-weight: 600; }
.note { margin: 8px 0; padding: 10px 14px; border-radius: 10px; background: var(--sunken); font-size: 13px; }
.note--bad { background: var(--bad-soft); color: var(--bad); }
.sec { font-size: 15px; font-weight: 800; margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
.sec::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--brand-bright), var(--brand)); }
.sec small { font-weight: 500; color: var(--ink-muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.grid__item { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--sunken); cursor: zoom-in; }
.grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.grid__item:hover img { transform: scale(1.03); }
.video { background: #16110e; border-radius: 14px; overflow: hidden; }
.video video { display: block; width: 100%; max-height: 520px; background: #000; }
.video__bar { display: flex; gap: 16px; align-items: center; padding: 10px 14px; font-size: 12px; color: #d8cfc7; background: #221a15; overflow: hidden; white-space: nowrap; }
.video__bar a { color: var(--brand-bright); }
.video__bar .muted { color: #8f847b; overflow: hidden; text-overflow: ellipsis; }
.link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--sunken); border-radius: 10px; word-break: break-all; }
.link a { flex: 1; }

/* ---- 灯箱 ---- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; outline: none; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 30px; cursor: pointer; }
.lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox__nav--l { left: 20px; } .lightbox__nav--r { right: 20px; }
.lightbox__bar { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; align-items: center; color: #fff; font-size: 13px; }
.lightbox__bar a { color: var(--brand-bright); }
.lightbox__close { height: 32px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); background: rgba(42, 28, 18, .92); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; z-index: 70; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }

/* ---- 手机 ---- */
@media (max-width: 760px) {
  .top { padding: 10px 14px; gap: 10px; }
  .top__brand span { display: none; }
  .top__shop .select { min-width: 0; max-width: 46vw; }
  .top__user { display: none; }
  .main { padding: 14px 14px 50px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stats .stat:last-child { grid-column: span 2; }
  .stat__num { font-size: 22px; }
  .toolbar__right { width: 100%; }
  .toolbar__search { flex: 1; width: auto; }
  .table { display: none; }
  .cards { display: block; }
  .ocard { padding: 14px; border-bottom: 1px solid var(--line); }
  .ocard__head { display: flex; align-items: center; gap: 10px; }
  .ocard__title { flex: 1; min-width: 0; }
  .ocard__thumbs { display: flex; gap: 6px; margin-top: 10px; position: relative; }
  .ocard__thumbs img { width: calc((100% - 18px) / 4); aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--sunken); }
  .ocard__more { position: absolute; right: 0; bottom: 0; width: calc((100% - 18px) / 4); aspect-ratio: 1; border-radius: 8px; background: rgba(42, 28, 18, .55); color: #fff; display: grid; place-items: center; font-weight: 700; }
  .ocard__foot { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
  .modal { padding: 0; align-items: flex-end; }
  .modal__box { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; }
  .detail__grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
  .lightbox__nav--l { left: 8px; } .lightbox__nav--r { right: 8px; }
}
