:root {
  --bg: #f2f5f4;
  --bg2: #ffffff;
  --bg3: #e9f0ed;
  --ink: #17212b;
  --ink2: #2e3d47;
  --muted: #6b7883;
  --rule: #e0e7e4;
  --rule2: #cfdad6;
  --accent: #0b6e63;
  --accent-dark: #084f47;
  --accent-soft: #e4f1ee;
  --accent2: #c9862b;
  --accent2-soft: #fbf1e3;
  --blue: #2f5d8a;
  --blue-soft: #e9f0f7;
  --danger: #b4453c;
  --danger-soft: #f8e9e7;
  --ok: #2e7d4f;
  --ok-soft: #e8f3ec;
  --sidebar: #0b2b27;
  --sidebar-ink: #d9e7e2;
  --shadow: 0 1px 2px rgba(16, 35, 30, .04), 0 10px 28px rgba(16, 35, 30, .05);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent-soft); }

.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }

/* ---------- sidebar ---------- */
.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-ink);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.15rem .85rem 1rem;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: .65rem; padding: .2rem .4rem 1.15rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #139983, #0b6e63);
  color: #fff; font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.brand-name { font-size: 1rem; font-weight: 800; letter-spacing: .02em; color: #fff; line-height: 1.2; }
.brand-sub { font-size: .68rem; color: #8faeaa; letter-spacing: .04em; margin-top: .1rem; }
.nav { display: flex; flex-direction: column; gap: .18rem; margin-top: .3rem; }
.nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .58rem .62rem; border-radius: 9px;
  color: #b9cfca; font-size: .86rem; font-weight: 600;
  transition: .15s ease;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(19,153,131,.22); color: #fff; box-shadow: inset 2px 0 0 #2fbfa6; }
.nav-no { font-family: var(--mono); font-size: .64rem; color: #6f918b; width: 1.3rem; }
.nav a.active .nav-no { color: #5fd7c4; }
.sidebar-foot { margin-top: auto; padding: .9rem .4rem .2rem; border-top: 1px solid rgba(255,255,255,.08); }
.data-chip { display: flex; align-items: center; gap: .42rem; font-size: .75rem; color: #cfe0dc; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3fd3b8; box-shadow: 0 0 0 3px rgba(63,211,184,.12); }
.side-note { margin-top: .45rem; font-size: .66rem; line-height: 1.55; color: #7c9b96; }
.user-chip { display: flex; align-items: center; gap: .38rem; margin-top: .55rem; padding-top: .55rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .72rem; color: #cfe0dc; }
.user-avatar { width: 18px; height: 18px; border-radius: 50%; background: #1f6f62; color: #8fe0d1; display: inline-flex; align-items: center; justify-content: center; font-size: .5rem; }
.logout-link { margin-left: auto; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #9fbdb7; border-radius: 6px; padding: .1rem .35rem; font-size: .66rem; }
.logout-link:hover { color: #fff; border-color: rgba(255,255,255,.32); }
.mobile-only { display: none; }

/* ---------- topbar ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 30;
}
.crumb { font-size: .88rem; font-weight: 800; color: var(--ink2); white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.global-search {
  display: flex; align-items: center; gap: .45rem;
  background: #f4f7f6; border: 1px solid var(--rule);
  border-radius: 10px; padding: .38rem .55rem;
  min-width: 290px;
}
.global-search svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.global-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: .82rem; color: var(--ink); }
.global-search input::placeholder { color: #97a5a0; }
.global-search kbd {
  font-family: var(--mono); font-size: .6rem; color: #8a9994;
  border: 1px solid var(--rule2); border-radius: 4px; padding: .08rem .28rem; background: #fff;
}
.date-select {
  border: 1px solid var(--rule); background: #fff; color: var(--ink2);
  border-radius: 9px; padding: .42rem .55rem; font-size: .78rem; outline: none;
}
.btn {
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: 9px; padding: .46rem .82rem; font-size: .8rem; font-weight: 700;
  transition: .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: #fff; color: var(--accent-dark); border-color: var(--rule2); }
.btn.ghost:hover { background: var(--accent-soft); border-color: #b9d8d1; }
.btn.soft { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; }
.btn.soft:hover { background: #d4e9e4; }
.btn.amber { background: var(--accent2); border-color: var(--accent2); }
.btn.amber:hover { background: #a96d1c; border-color: #a96d1c; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.sm { padding: .3rem .58rem; font-size: .74rem; border-radius: 7px; }

.view { padding: 1.45rem 1.5rem 3rem; max-width: 1480px; width: 100%; margin: 0 auto; }

/* ---------- common ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.page-head h1 { margin: 0; font-size: 1.65rem; letter-spacing: -.02em; line-height: 1.25; }
.page-head .sub { color: var(--muted); font-size: .84rem; margin-top: .25rem; }
.page-head .right { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.section { margin-top: 1.55rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.section-head h2 { margin: 0; font-size: 1.02rem; letter-spacing: -.01em; }
.section-head .more { font-size: .76rem; color: var(--accent); font-weight: 700; }
.section-head .more:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: .78rem; }
.mono { font-family: var(--mono); }
.hr { height: 1px; background: var(--rule); margin: 1.2rem 0; }

.card {
  background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad { padding: 1rem 1.1rem; }
.card h3 { margin: 0 0 .35rem; font-size: .95rem; }
.card h4 { margin: 0 0 .25rem; font-size: .84rem; }
.card p { margin: 0; color: var(--muted); font-size: .8rem; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.kpi {
  background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .95rem 1rem .85rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.kpi.amber::before { background: var(--accent2); }
.kpi.blue::before { background: var(--blue); }
.kpi.red::before { background: var(--danger); }
.kpi .label { font-size: .74rem; color: var(--muted); font-weight: 600; }
.kpi .value { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin: .18rem 0 .12rem; }
.kpi .value small { font-size: .72rem; color: var(--muted); font-weight: 600; margin-left: .18rem; letter-spacing: 0; }
.kpi .note { font-size: .72rem; color: var(--muted); line-height: 1.45; }
.kpi .note b { color: var(--accent-dark); }
.kpi .trend { color: var(--ok); font-weight: 700; }
.kpi .trend.down { color: var(--danger); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 1rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }

.tag {
  display: inline-flex; align-items: center; gap: .18rem;
  padding: .1rem .46rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: .68rem; font-weight: 700; line-height: 1.6; white-space: nowrap;
}
.tag.amber { background: var(--accent2-soft); color: #8a5a17; }
.tag.blue { background: var(--blue-soft); color: #234a70; }
.tag.red { background: var(--danger-soft); color: var(--danger); }
.tag.gray { background: #eef2f3; color: var(--muted); }
.tag.dark { background: #1d3b35; color: #d8eee8; }

/* ---------- overview ---------- */
.hero {
  background: linear-gradient(135deg, #0b4f47 0%, #0b6e63 65%, #14806f 100%);
  color: #fff; border-radius: 16px; padding: 1.4rem 1.5rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  position: relative; overflow: hidden; margin-bottom: 1rem;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -100px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.15), rgba(255,255,255,0) 68%);
}
.hero h1 { margin: 0; font-size: 1.55rem; line-height: 1.3; letter-spacing: -.02em; }
.hero p { margin: .32rem 0 0; color: rgba(255,255,255,.78); font-size: .82rem; max-width: 720px; }
.hero .hero-right { text-align: right; font-size: .74rem; color: rgba(255,255,255,.78); white-space: nowrap; }
.hero .hero-right b { display: block; color: #fff; font-size: 1rem; margin-bottom: .1rem; }

.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .72rem 0; border-bottom: 1px solid var(--rule);
}
.list-item:last-child { border-bottom: 0; }
.list-item .main-col { min-width: 0; flex: 1; }
.list-item .title { font-size: .84rem; font-weight: 700; line-height: 1.45; color: var(--ink); }
.list-item .title:hover { color: var(--accent); }
.list-item .meta { margin-top: .2rem; color: var(--muted); font-size: .72rem; display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.list-item .amount { text-align: right; white-space: nowrap; font-size: .82rem; font-weight: 800; color: var(--accent-dark); }
.list-item .amount small { display: block; font-weight: 500; color: var(--muted); font-size: .68rem; }
.rank-no {
  width: 20px; height: 20px; border-radius: 6px; background: var(--bg3);
  color: var(--accent-dark); font-size: .66rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}

.status-strip { display: flex; gap: .5rem; flex-wrap: wrap; }
.status-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .55rem; border-radius: 999px; background: var(--bg3);
  font-size: .7rem; color: var(--ink2); font-weight: 600;
}
.status-pill b { color: var(--accent-dark); }

/* ---------- charts ---------- */
.chart { width: 100%; min-height: 250px; }
.chart.tall { min-height: 330px; }

/* ---------- table / project list ---------- */
.toolbar {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .7rem .75rem; box-shadow: var(--shadow); margin-bottom: .8rem;
}
.toolbar .field { display: flex; align-items: center; gap: .35rem; }
.toolbar label { font-size: .7rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.toolbar input, .toolbar select {
  border: 1px solid var(--rule); border-radius: 8px; background: #fbfcfc;
  padding: .34rem .48rem; font-size: .76rem; outline: none; color: var(--ink2);
}
.toolbar input:focus, .toolbar select:focus { border-color: #9fc9c1; box-shadow: 0 0 0 3px rgba(11,110,99,.08); }
.toolbar .search-wide { min-width: 230px; }
.toolbar .grow { flex: 1; }
.toolbar .count { font-size: .74rem; color: var(--muted); margin-left: auto; white-space: nowrap; }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; margin: .2rem 0 .8rem; }
.chip {
  font-size: .7rem; border: 1px solid var(--rule2); background: #fff;
  color: var(--muted); border-radius: 999px; padding: .18rem .55rem; font-weight: 600;
}
.chip.on { background: var(--accent-soft); border-color: #b9d8d1; color: var(--accent-dark); }

.table-wrap { background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 860px; }
table.data th {
  text-align: left; padding: .62rem .7rem; background: #f7faf9; color: var(--muted);
  font-size: .68rem; font-weight: 800; letter-spacing: .03em; border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
table.data td { padding: .62rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: middle; color: var(--ink2); }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fbfdfc; }
table.data tr.clickable { cursor: pointer; }
table.data .p-title { font-weight: 700; color: var(--ink); line-height: 1.4; min-width: 280px; }
table.data .p-title:hover { color: var(--accent); }
table.data .p-sub { color: var(--muted); font-size: .7rem; margin-top: .12rem; }
table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data .amount { font-weight: 800; color: var(--accent-dark); }
table.data .arrow { color: var(--rule2); font-weight: 800; }

.pager { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; padding: .55rem .7rem; font-size: .76rem; color: var(--muted); background: var(--bg2); border: 1px solid var(--rule); border-radius: 10px; margin-top: .55rem; }
.pager button { border: 1px solid var(--rule); background: #fff; border-radius: 7px; padding: .28rem .55rem; color: var(--ink2); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- project detail ---------- */
.back-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); margin-bottom: .55rem; }
.back-link:hover { color: var(--accent); }
.detail-head {
  background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem 1.25rem;
}
.detail-head h1 { margin: 0; font-size: 1.35rem; line-height: 1.4; letter-spacing: -.01em; }
.detail-head .meta { color: var(--muted); font-size: .78rem; margin-top: .35rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.detail-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.mini-kpi { background: #f7faf9; border: 1px solid var(--rule); border-radius: 10px; padding: .65rem .75rem; }
.mini-kpi .label { font-size: .68rem; color: var(--muted); }
.mini-kpi .value { font-size: 1rem; font-weight: 800; margin-top: .1rem; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--rule); margin: 1rem 0 .9rem; overflow-x: auto; }
.tabs button {
  border: 0; background: transparent; padding: .55rem .7rem; font-size: .8rem; font-weight: 700;
  color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs button.on { color: var(--accent-dark); border-bottom-color: var(--accent); }
.tab-panel { animation: fade .18s ease; }
@keyframes fade { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .75fr); gap: 1rem; align-items: start; }
.info-row { display: flex; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); font-size: .8rem; }
.info-row:last-child { border-bottom: 0; }
.info-row .k { color: var(--muted); width: 90px; flex: 0 0 auto; }
.info-row .v { color: var(--ink2); }
.timeline { margin: .4rem 0; padding-left: 1.1rem; border-left: 2px solid var(--rule2); }
.timeline-item { position: relative; padding: 0 0 1rem .35rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -1.55rem; top: .35rem; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg2), 0 0 0 4px var(--accent-soft);
}
.timeline-item .when { font-size: .7rem; color: var(--accent); font-weight: 700; }
.timeline-item .what { font-size: .82rem; font-weight: 700; margin-top: .12rem; }
.timeline-item .desc { font-size: .75rem; color: var(--muted); margin-top: .18rem; }
.notice-card { border: 1px solid var(--rule); border-radius: 10px; padding: .7rem .75rem; margin-bottom: .55rem; background: #fbfcfc; }
.notice-card .t { font-size: .8rem; font-weight: 700; }
.notice-card .m { font-size: .7rem; color: var(--muted); margin-top: .15rem; }
.notice-card .excerpt { font-size: .74rem; color: var(--ink2); margin-top: .3rem; max-height: 100px; overflow: hidden; }
.ai-card {
  background: linear-gradient(135deg, #0b4f47, #0b6e63);
  color: #fff; border-radius: var(--radius); padding: 1rem 1.1rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.ai-card::after {
  content: ""; position: absolute; right: -30px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 70%);
}
.ai-card h3 { color: #fff; margin: 0 0 .2rem; font-size: .95rem; }
.ai-card p { color: rgba(255,255,255,.8); font-size: .76rem; margin: 0; }
.ai-card .ai-actions { display: flex; gap: .45rem; margin-top: .65rem; position: relative; z-index: 1; }
.ai-card .btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.24); color: #fff; }
.ai-card .btn:hover { background: rgba(255,255,255,.22); }
.ai-body { margin-top: .8rem; position: relative; z-index: 1; }
.ai-body .one-liner { font-size: .9rem; font-weight: 700; line-height: 1.5; }
.ai-body .block { margin-top: .65rem; }
.ai-body .block-title { font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: #8fe0d1; text-transform: uppercase; margin-bottom: .2rem; }
.ai-body ul { margin: 0; padding-left: 1.05rem; }
.ai-body li { font-size: .78rem; color: rgba(255,255,255,.9); margin: .15rem 0; }
.ai-source { display: inline-flex; font-size: .62rem; color: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .08rem .4rem; margin-left: .35rem; }

/* ---------- mobile list cards ---------- */
.project-mobile-list, .supplier-mobile-list { display: none; }
.m-card {
  display: block; background: var(--bg2); border: 1px solid var(--rule);
  border-radius: 12px; padding: .78rem .85rem; box-shadow: var(--shadow);
}
.m-card:hover { border-color: #a9cec6; }
.m-card-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .3rem; }
.m-card-title { font-size: .87rem; font-weight: 800; line-height: 1.45; color: var(--ink); }
.m-card-sub { font-size: .7rem; color: var(--muted); margin-top: .2rem; line-height: 1.5; }
.m-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-top: .55rem; }
.m-card-amount { font-size: .9rem; font-weight: 800; color: var(--accent-dark); }
.m-card-amount small { display: block; font-size: .62rem; color: var(--muted); font-weight: 500; }
.m-card-tags { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .45rem; }

/* ---------- buyer/supplier cards ---------- */
.entity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.entity-card {
  background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .9rem 1rem; box-shadow: var(--shadow); cursor: pointer; transition: .15s ease;
}
.entity-card:hover { border-color: #a9cec6; transform: translateY(-1px); }
.entity-card .name { font-size: .86rem; font-weight: 800; line-height: 1.4; }
.entity-card .sub { font-size: .7rem; color: var(--muted); margin-top: .18rem; }
.entity-card .stats { display: flex; gap: 1rem; margin-top: .6rem; }
.entity-card .stat .v { font-size: .92rem; font-weight: 800; color: var(--accent-dark); }
.entity-card .stat .l { font-size: .64rem; color: var(--muted); }

/* ---------- briefing ---------- */
.brief-head {
  background: linear-gradient(135deg, #0b4f47, #0b6e63);
  color: #fff; border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow);
}
.brief-head h1 { margin: 0; font-size: 1.35rem; }
.brief-head p { color: rgba(255,255,255,.78); font-size: .8rem; margin: .3rem 0 0; }
.brief-head .actions { display: flex; gap: .45rem; margin-top: .8rem; }
.brief-head .btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.24); color: #fff; }
.brief-section { background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); }
.brief-section h3 { margin: 0 0 .5rem; font-size: .9rem; }
.brief-section .item { padding: .45rem 0; border-bottom: 1px solid var(--rule); font-size: .8rem; }
.brief-section .item:last-child { border-bottom: 0; }
.brief-section .item .t { font-weight: 700; }
.brief-section .item .m { color: var(--muted); font-size: .7rem; margin-top: .1rem; }

/* ---------- quality ---------- */
.source-card { background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius); padding: .8rem .9rem; box-shadow: var(--shadow); }
.source-card .top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.source-card .name { font-size: .82rem; font-weight: 800; }
.source-card .note { font-size: .7rem; color: var(--muted); margin-top: .3rem; }
.source-card .stats { display: flex; gap: .8rem; margin-top: .5rem; font-size: .68rem; color: var(--muted); }
.feedback-form { display: grid; grid-template-columns: 140px minmax(0, 1fr) 90px; gap: .5rem; align-items: center; }
.feedback-form select, .feedback-form input, .feedback-form textarea {
  border: 1px solid var(--rule); border-radius: 8px; padding: .4rem .5rem; font-size: .76rem; outline: none; background: #fbfcfc;
}
.feedback-form textarea { grid-column: 1 / -1; min-height: 60px; resize: vertical; }

/* ---------- login ---------- */
body.login-mode .sidebar, body.login-mode .topbar { display: none; }
body.login-mode .app { display: block; }
body.login-mode .main { min-height: 100vh; }
body.login-mode .view { max-width: none; padding: 0; }
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 18% 12%, rgba(19,153,131,.22), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(201,134,43,.14), transparent 30%),
    linear-gradient(145deg, #0b2b27, #0b4f47 60%, #0b6e63);
}
.login-card {
  width: 100%; max-width: 390px; background: #fff; border-radius: 18px;
  padding: 1.6rem 1.5rem 1.3rem; box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.login-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.2rem; }
.login-brand .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.login-brand b { display: block; font-size: 1rem; line-height: 1.2; }
.login-brand span { display: block; font-size: .66rem; color: var(--muted); margin-top: .08rem; }
.login-card h1 { font-size: 1.25rem; margin: 0 0 .3rem; letter-spacing: -.02em; }
.login-card .intro { font-size: .78rem; color: var(--muted); line-height: 1.6; margin: 0 0 1rem; }
.login-field { display: block; margin-bottom: .7rem; }
.login-field span { display: block; font-size: .7rem; font-weight: 700; color: var(--ink2); margin-bottom: .25rem; }
.login-field input {
  width: 100%; border: 1px solid var(--rule2); border-radius: 9px;
  padding: .62rem .7rem; font-size: 16px; outline: none; background: #fbfcfc; color: var(--ink);
}
.login-field input:focus { border-color: #8fc5bb; box-shadow: 0 0 0 3px rgba(11,110,99,.1); }
.login-submit { width: 100%; margin-top: .35rem; padding: .62rem .8rem; font-size: .86rem; }
.login-error { min-height: 1.2rem; font-size: .72rem; color: var(--danger); margin-top: .45rem; }
.login-hint { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--rule); font-size: .66rem; color: var(--muted); line-height: 1.6; }
.login-hint b { color: var(--accent-dark); }

/* ---------- misc ---------- */
.loading { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 300px; color: var(--muted); font-size: .82rem; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--rule2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 2.2rem 1rem; text-align: center; color: var(--muted); font-size: .82rem; }
.empty b { display: block; color: var(--ink2); margin-bottom: .25rem; }
.error-box { background: var(--danger-soft); color: var(--danger); border: 1px solid #e4bdb8; border-radius: 10px; padding: .8rem 1rem; font-size: .8rem; }
.toast {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 100;
  background: #17212b; color: #fff; border-radius: 10px; padding: .55rem .8rem;
  font-size: .78rem; opacity: 0; transform: translateY(6px); pointer-events: none; transition: .2s ease;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: none; }
.mask { position: fixed; inset: 0; background: rgba(10,30,26,.35); z-index: 60; display: flex; align-items: center; justify-content: center; }
.modal { background: #fff; border-radius: 14px; padding: 1rem 1.1rem; max-width: 460px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal h3 { margin: 0 0 .4rem; }
.modal p { color: var(--muted); font-size: .8rem; }
.modal .actions { display: flex; justify-content: flex-end; gap: .4rem; margin-top: .8rem; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .two-col { grid-template-columns: 1fr; }
  .entity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static; height: auto; width: 100%; max-width: 100vw; min-width: 0;
    flex-direction: row; align-items: center; gap: .4rem; padding: .6rem .7rem;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .brand { padding: 0 .4rem 0 0; flex: 0 0 auto; }
  .brand-sub { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; margin: 0; overflow: visible; max-width: 100%; row-gap: .2rem; }
  .nav a { padding: .4rem .5rem; white-space: nowrap; }
  .nav-no { display: none; }
  .sidebar-foot { display: none; }
  .mobile-only { display: inline-flex; }
  .topbar { height: auto; padding: .55rem .8rem; flex-wrap: wrap; }
  .crumb { display: none; }
  .top-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .global-search { min-width: 0; flex: 1 1 100%; order: -1; }
  .date-select { flex: 0 0 auto; }
  .desktop-only-table { display: none; }
  .project-mobile-list, .supplier-mobile-list { display: flex; flex-direction: column; gap: .55rem; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: .55rem; }
  .toolbar .field { min-width: 0; flex-direction: column; align-items: stretch; gap: .18rem; }
  .toolbar .field:first-child { grid-column: 1 / -1; }
  .toolbar .field label { font-size: .66rem; }
  .toolbar input, .toolbar select { width: 100%; }
  .toolbar .search-wide { width: 100%; min-width: 0; }
  .toolbar .count { grid-column: 1 / -1; margin-left: 0; }
  .toolbar .btn { justify-self: start; }
  .login-wrap { padding: .8rem; }
  .login-card { max-width: 100%; padding: 1.3rem 1.1rem; }
  .login-field input, .toolbar input, .toolbar select, .global-search input, .date-select,
  #buyer-search, #supplier-search, .feedback-form select, .feedback-form input, .feedback-form textarea {
    font-size: 16px;
  }
  .view { padding: 1rem .8rem 2.2rem; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero .hero-right { text-align: left; }
  .detail-kpis { grid-template-columns: 1fr 1fr; }
  .entity-grid { grid-template-columns: 1fr; }
  .feedback-form { grid-template-columns: 1fr; }
  .feedback-form textarea { grid-column: auto; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 1.25rem; }
  .toolbar .search-wide { min-width: 0; width: 100%; }
  .toolbar .count { margin-left: 0; }
}

/* ================= v3 新增：模块/反馈/气泡/我的市场/AI投标/管理端 ================= */
.nav-group { font-size: .6rem; font-weight: 800; letter-spacing: .14em; color: #6f918b; margin: .8rem .35rem .28rem; text-transform: uppercase; }
.nav-badge { background: #c9862b; color: #fff; font-size: .56rem; font-weight: 800; border-radius: 5px; padding: .06rem .26rem; margin-left: .15rem; }
.nav a.preview-link { color: #8faeaa; }
.nav a.preview-link:hover { color: #cfe0dc; }

/* 常驻反馈按钮 */
.btn.feedback-float { background: var(--accent2); border-color: var(--accent2); color: #fff; font-weight: 800; }
.btn.feedback-float:hover { background: #a96d1c; border-color: #a96d1c; }

/* 名词解释气泡 */
.term { border-bottom: 1px dashed #9fc9c1; cursor: help; color: var(--accent-dark); font-weight: 700; }
.term-tip {
  position: fixed; z-index: 120; max-width: 300px; background: #17212b; color: #eef6f3;
  border-radius: 10px; padding: .6rem .75rem; font-size: .74rem; line-height: 1.6;
  box-shadow: 0 12px 32px rgba(0,0,0,.25); pointer-events: none; opacity: 0; transition: opacity .12s ease;
}
.term-tip.show { opacity: 1; }
.term-tip b { color: #8fe0d1; display: block; margin-bottom: .15rem; }

/* 模块预览页 */
.preview-hero {
  background: linear-gradient(135deg, #12352f, #0b6e63 70%);
  color: #fff; border-radius: 16px; padding: 1.6rem 1.5rem; position: relative; overflow: hidden;
}
.preview-hero::after { content: ""; position: absolute; right: -50px; top: -90px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 68%); }
.preview-hero h1 { margin: 0 0 .4rem; font-size: 1.5rem; }
.preview-hero p { color: rgba(255,255,255,.82); font-size: .84rem; max-width: 640px; margin: 0 0 .9rem; }
.preview-badge { display: inline-flex; align-items: center; gap: .3rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: .18rem .6rem; font-size: .7rem; font-weight: 700; }
.planned-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .7rem; margin: 1rem 0; }
.planned-card { background: var(--bg2); border: 1px solid var(--rule); border-radius: 12px; padding: .8rem .9rem; box-shadow: var(--shadow); }
.planned-card .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: .45rem; }
.planned-card b { font-size: .84rem; display: block; margin-bottom: .1rem; }
.planned-card span { font-size: .7rem; color: var(--muted); }
.waitlist-box { background: var(--bg2); border: 1px solid var(--rule); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.waitlist-form { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) auto; gap: .55rem; align-items: center; }
.waitlist-form input, .waitlist-form textarea { border: 1px solid var(--rule2); border-radius: 9px; padding: .5rem .6rem; font-size: .8rem; outline: none; background: #fbfcfc; }
.waitlist-form textarea { grid-column: 1 / -1; min-height: 56px; resize: vertical; }

/* 我的市场弹窗 */
.market-dialog { display: grid; gap: .65rem; }
.market-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.market-chip { background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; padding: .14rem .55rem; font-size: .7rem; font-weight: 700; }
.market-chip.region { background: var(--blue-soft); color: #234a70; }

/* AI 投标助手 */
.bid-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.bid-input-card { background: var(--bg2); border: 1px solid var(--rule); border-radius: 14px; padding: 1rem 1.05rem; box-shadow: var(--shadow); }
.bid-input-card h3 { margin: 0 0 .5rem; font-size: .95rem; }
.bid-input-card textarea {
  width: 100%; min-height: 130px; resize: vertical; border: 1px solid var(--rule2); border-radius: 10px;
  padding: .6rem .7rem; font-size: .78rem; line-height: 1.6; outline: none; background: #fbfcfc; color: var(--ink);
}
.bid-input-card textarea:focus { border-color: #8fc5bb; box-shadow: 0 0 0 3px rgba(11,110,99,.08); }
.bid-input-card .file-hint { font-size: .68rem; color: var(--muted); margin-top: .3rem; }
.bid-report { background: var(--bg2); border: 1px solid var(--rule); border-radius: 14px; padding: 1rem 1.05rem; box-shadow: var(--shadow); }
.bid-report h4 { margin: .8rem 0 .3rem; font-size: .88rem; }
.bid-report .block-title { font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; margin: .75rem 0 .25rem; }
.bid-report ul { margin: 0; padding-left: 1.05rem; }
.bid-report li { font-size: .8rem; color: var(--ink2); margin: .14rem 0; }
.bid-report .markdown { font-size: .8rem; color: var(--ink2); line-height: 1.75; white-space: pre-wrap; }
.bid-q-item { border: 1px solid var(--rule); border-radius: 10px; padding: .6rem .7rem; margin-bottom: .5rem; background: #fbfcfc; }
.bid-q-item b { font-size: .82rem; }
.bid-q-item .why { font-size: .68rem; color: var(--muted); margin-top: .1rem; }
.bid-q-item textarea { width: 100%; margin-top: .4rem; min-height: 44px; }
.bid-actions-bar { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .8rem; }
.badge-beta { background: var(--accent2-soft); color: #8a5a17; border-radius: 999px; font-size: .66rem; font-weight: 800; padding: .1rem .5rem; }

/* 管理端 */
.admin-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .7rem; }
.admin-kpi { background: var(--bg2); border: 1px solid var(--rule); border-radius: 12px; padding: .8rem .85rem; box-shadow: var(--shadow); }
.admin-kpi .label { font-size: .68rem; color: var(--muted); font-weight: 700; }
.admin-kpi .value { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin-top: .12rem; }
.admin-kpi .sub { font-size: .64rem; color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
.plan-card { background: var(--bg2); border: 1px solid var(--rule); border-radius: 14px; padding: 1rem 1.05rem; box-shadow: var(--shadow); position: relative; }
.plan-card.hot { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11,110,99,.08); }
.plan-card .pname { font-weight: 800; font-size: .95rem; }
.plan-card .price { font-size: 1.6rem; font-weight: 800; color: var(--accent-dark); margin: .3rem 0 .05rem; }
.plan-card .price small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.plan-card ul { padding-left: 1.05rem; margin: .55rem 0; }
.plan-card li { font-size: .76rem; color: var(--ink2); margin: .18rem 0; }
.promo-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.promo-chip { border: 1px dashed var(--rule2); border-radius: 10px; padding: .45rem .7rem; font-size: .74rem; color: var(--ink2); background: #fbfcfc; }
.promo-chip b { display: block; font-size: .78rem; }
.promo-chip .reserved { color: var(--accent2); font-weight: 700; font-size: .64rem; }

/* 信源共建 */
.src-form { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.4fr) minmax(0,.9fr) minmax(0,.9fr) auto; gap: .5rem; }
.src-form input, .src-form select { border: 1px solid var(--rule2); border-radius: 9px; padding: .45rem .55rem; font-size: .76rem; outline: none; background: #fbfcfc; }
.src-form .full { grid-column: 1 / -1; }
.src-item { display: flex; align-items: center; gap: .55rem; padding: .5rem .2rem; border-bottom: 1px solid var(--rule); font-size: .78rem; }
.src-item:last-child { border-bottom: 0; }
.src-item .st { margin-left: auto; }

@media (max-width: 1100px) {
  .bid-layout { grid-template-columns: 1fr; }
  .planned-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .plan-grid { grid-template-columns: 1fr; }
  .src-form { grid-template-columns: 1fr 1fr; }
  .src-form .full { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-group { display: none; }
  .waitlist-form { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ================= v4 内测/订阅/微信登录/支付 ================= */
.beta-mini { background:#c9862b; color:#fff; font-size:.56rem; font-weight:800; border-radius:5px; padding:.06rem .28rem; margin-left:.2rem; vertical-align:.12em; }
.beta-banner {
  display:flex; align-items:center; gap:.55rem; flex-wrap:wrap;
  background:linear-gradient(90deg, #fbf1e3, #f7e8cf); color:#7a4f12;
  border-bottom:1px solid #ecd7b4; padding:.42rem 1.5rem; font-size:.74rem; line-height:1.4;
}
.beta-banner .beta-tag { background:#c9862b; color:#fff; font-weight:800; font-size:.66rem; border-radius:5px; padding:.1rem .4rem; white-space:nowrap; }
.beta-banner b { color:#9a6210; }
.beta-link { margin-left:auto; color:#9a6210; font-weight:700; white-space:nowrap; }
@media (max-width:820px){ .beta-banner { padding:.4rem .8rem; } .beta-link { margin-left:0; } }

/* 微信登录 */
.wx-btn {
  width:100%; border:0; border-radius:10px; padding:.68rem .8rem;
  background:#07c160; color:#fff; font-size:.9rem; font-weight:800;
  display:flex; align-items:center; justify-content:center; gap:.45rem; transition:.15s;
}
.wx-btn:hover { background:#06ad56; }
.wx-btn svg { width:18px; height:18px; fill:#fff; }
.login-or { display:flex; align-items:center; gap:.6rem; color:var(--muted); font-size:.7rem; margin:.9rem 0 .7rem; }
.login-or::before, .login-or::after { content:""; flex:1; height:1px; background:var(--rule); }

/* 定价页（06 卡片风格） */
.pricing-head { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1rem; }
.pcards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.pcard { position:relative; background:#fff; border:1px solid var(--rule); border-radius:14px; padding:20px; display:flex; flex-direction:column; }
.pcard.hot { border-color:var(--accent); box-shadow:0 0 0 3px rgba(11,110,99,.10); }
.pbadge { position:absolute; top:-11px; left:18px; background:var(--accent); color:#fff; font-size:11px; font-weight:700; border-radius:999px; padding:3px 10px; }
.pbadge.amber { background:var(--accent2); }
.pname { font-size:16px; font-weight:800; }
.ptag { font-size:11px; color:#999; margin-top:2px; }
.pprice { display:flex; align-items:baseline; gap:6px; margin:12px 0 2px; }
.pprice .cur { font-size:15px; font-weight:700; color:var(--ink2); }
.pprice .num { font-size:30px; font-weight:800; letter-spacing:-.02em; }
.pprice .per { font-size:13px; color:var(--muted); }
.pprice .was { font-size:13px; color:#aaa; text-decoration:line-through; }
.pnote { font-size:11px; color:var(--accent2); font-weight:700; min-height:16px; margin-bottom:10px; }
.pdiv { height:1px; background:var(--rule); margin:4px 0 12px; }
.pfeats { list-style:none; margin:0; padding:0; flex:1; }
.pfeats li { display:flex; gap:8px; align-items:flex-start; font-size:12.5px; color:var(--ink2); margin-bottom:9px; }
.pfeats li.dim { color:#bbb; }
.pfeats .ic { flex:0 0 15px; color:var(--accent); font-weight:800; }
.pfeats li.dim .ic { color:#ccc; }
.pfeats b { color:var(--ink); }
.pcta { margin-top:14px; width:100%; border:0; border-radius:10px; padding:10px; font-size:14px; font-weight:700; cursor:pointer; background:#17212b; color:#fff; }
.pcta:hover { background:#000; }
.pcta.soft { background:var(--accent-soft); color:var(--accent-dark); }
.pcta.current { background:var(--ok-soft); color:var(--ok); cursor:default; }
.beta-strip { background:linear-gradient(90deg,#fbf1e3,#f7e8cf); border:1px solid #ecd7b4; color:#7a4f12; border-radius:12px; padding:.65rem .9rem; font-size:.78rem; margin-bottom:1rem; line-height:1.6; }
@media (max-width:1024px){ .pcards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){ .pcards { grid-template-columns:1fr; } }

/* ============ v5 ============ */
/* 左侧导航：我的市场置顶高亮 */
.nav-group-star { color:#d9a94e; letter-spacing:.05em; }
.nav a.nav-star { background:linear-gradient(90deg, rgba(19,153,131,.28), rgba(19,153,131,.10)); color:#fff; font-weight:800; border:1px solid rgba(47,191,166,.35); }
.nav a.nav-star:hover { background:rgba(19,153,131,.34); }
.nav a.nav-star.active { background:rgba(19,153,131,.42); box-shadow:inset 2px 0 0 #2fbfa6; }
.nav-star-ic { font-size:1rem; line-height:1; color:#2fbfa6; }
.nav-badge.star { background:#c9862b; margin-left:auto; }

/* 登录页：手机号 + 验证码 */
.phone-inline { display:flex; gap:.5rem; align-items:center; }
.phone-inline input { flex:1; min-width:0; }
.sms-send-btn { white-space:nowrap; padding:.42rem .8rem; font-size:.78rem; }
.sms-mock-tip { background:linear-gradient(90deg,#fbf1e3,#f7e8cf); border:1px solid #ecd7b4; color:#7a4f12; border-radius:9px; padding:.5rem .7rem; font-size:.78rem; margin:.4rem 0; }
.login-submit.alt { background:var(--accent-soft); color:var(--accent-dark); }

/* 我的市场页 / 账号页 */
.market-page-grid { display:grid; grid-template-columns:1.6fr 1fr; gap:16px; margin-top:1rem; }
.market-hero textarea { width:100%; border:1px solid var(--rule); border-radius:9px; padding:.6rem .7rem; font-size:.86rem; resize:vertical; font-family:inherit; }
.mkp-impact { margin:0; padding-left:1.1rem; line-height:2; font-size:.82rem; color:var(--text); }
.mkp-impact b { color:var(--accent-dark); }
.acct-grid { display:grid; grid-template-columns:1.4fr 1fr; gap:16px; margin-top:1rem; }
.acct-grid .login-field { margin-bottom:.55rem; }
@media (max-width:900px){ .market-page-grid, .acct-grid { grid-template-columns:1fr; } }

/* 首次引导弹窗 */
.onboard-step .onboard-hero { font-size:2.4rem; text-align:center; color:var(--accent); line-height:1; margin-bottom:.3rem; }
.onboard-step h3 { text-align:center; }
.onboard-actions { display:flex; justify-content:flex-end; gap:.6rem; margin-top:1rem; }
.onboard-step textarea { width:100%; border:1px solid var(--rule); border-radius:9px; padding:.6rem .7rem; font-size:.86rem; resize:vertical; font-family:inherit; margin-top:.5rem; }

/* 支付渠道选择 */
.pay-channels { display:inline-flex; gap:1rem; font-size:.84rem; }
.pay-channels label { display:inline-flex; align-items:center; gap:.3rem; cursor:pointer; }
.pay-status { text-align:center; padding:.4rem 0 .1rem; }

/* 刷新数据按钮：数据落后时提醒 */
.btn#refresh-btn.stale { background:#c9862b; border-color:#c9862b; color:#fff; font-weight:800; }
.btn#refresh-btn.stale:hover { background:#a96d1c; }
@media (max-width:640px){ .btn#refresh-btn { padding:.4rem .55rem; font-size:.74rem; } }

/* 支付弹窗 */
.pay-box { min-width:300px; }
.pay-title { font-weight:800; font-size:1rem; margin-bottom:.2rem; }
.pay-sub { font-size:.76rem; color:var(--muted); margin-bottom:.8rem; line-height:1.6; }
.pay-rows { border:1px solid var(--rule); border-radius:10px; overflow:hidden; margin-bottom:.9rem; }
.pay-row { display:flex; justify-content:space-between; align-items:center; padding:.55rem .75rem; font-size:.82rem; border-bottom:1px solid var(--rule); background:#fff; }
.pay-row:last-child { border-bottom:0; }
.pay-row.total { background:#f7faf9; font-weight:800; color:var(--accent-dark); }
.pay-row .k { color:var(--muted); }
.pay-channel { display:flex; gap:.5rem; margin:.6rem 0 .9rem; }
.pay-channel button { flex:1; border:1px solid var(--rule); background:#fff; border-radius:10px; padding:.55rem; font-size:.8rem; font-weight:700; color:var(--ink2); display:flex; align-items:center; justify-content:center; gap:.35rem; }
.pay-channel button.on { border-color:var(--accent); background:var(--accent-soft); color:var(--accent-dark); }
.pay-note { font-size:.7rem; color:var(--accent2); font-weight:700; margin-bottom:.6rem; }

/* 用户套餐 chip */
.plan-chip { display:inline-flex; align-items:center; gap:.2rem; background:#1f6f62; color:#8fe0d1; border-radius:6px; padding:.08rem .4rem; font-size:.6rem; font-weight:800; margin-left:.3rem; }
.plan-chip.free { background:rgba(255,255,255,.12); color:#9fbdb7; }

/* 管理端订单表 */
.admin-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.7rem; }
body.login-mode .beta-banner { display:none; }

/* ================= v6：三档定价 / 侧栏升级入口 / 引导勾选 / 模块预览页 ================= */
/* 定价卡：一次性时长三档 */
.ptiers { display:flex; flex-direction:column; gap:6px; margin:10px 0 4px; }
.ptier { display:flex; align-items:center; justify-content:space-between; gap:8px;
  border:1px solid var(--rule); border-radius:9px; padding:7px 10px; cursor:pointer;
  background:#fbfcfc; transition:.12s ease; }
.ptier:hover { border-color:#a9cec6; }
.ptier.on { border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 2px rgba(11,110,99,.08); }
.ptier .name { font-size:12px; font-weight:700; color:var(--ink2); white-space:nowrap; }
.ptier .price { font-size:13px; font-weight:800; color:var(--accent-dark); white-space:nowrap; }
.ptier .price s { color:#b0b0b0; font-weight:600; font-size:11px; margin-left:5px; }

/* 侧栏：付费类型 chip + 升级按钮 */
.side-plan-row { display:flex; align-items:center; gap:.4rem; padding:0 .4rem .95rem; flex:0 0 auto; }
.side-plan-row .plan-chip { margin-left:0; cursor:pointer; }
.upgrade-btn { margin-left:auto; border:0; border-radius:7px; padding:.26rem .58rem; font-size:.68rem; font-weight:800;
  background:linear-gradient(135deg,#139983,#0b6e63); color:#fff; cursor:pointer; white-space:nowrap; transition:.15s ease; }
.upgrade-btn:hover { background:linear-gradient(135deg,#0c8070,#084f47); }

/* 引导弹窗：不再显示勾选 */
.ob-check { display:inline-flex; align-items:center; gap:.35rem; font-size:.74rem; color:var(--muted); cursor:pointer; user-select:none; }
.ob-check input { cursor:pointer; accent-color:var(--accent); }
.onboard-actions .ob-check { margin-right:auto; }

/* 扩展模块预览页 */
.preview-banner { display:flex; align-items:center; justify-content:space-between; gap:.6rem; flex-wrap:wrap;
  background:linear-gradient(90deg,#fff7ec,#fdeecb); border:1px solid #f0d9ae; color:#8a5a17;
  border-radius:12px; padding:.6rem .9rem; font-size:.78rem; font-weight:600; line-height:1.5; }
.preview-banner .pv-btns { display:flex; gap:.4rem; flex:0 0 auto; }
.pv-demo-note { display:inline-block; font-size:.72rem; color:#8a5a17; background:var(--accent2-soft);
  border:1px dashed #ecd7b4; border-radius:8px; padding:.3rem .6rem; margin-bottom:.7rem; }
.pv-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-items:start; }
.pv-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; }
.pv-grid.pv-grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.pv-card { display:flex; flex-direction:column; gap:.5rem; background:var(--bg2); border:1px solid var(--rule);
  border-radius:var(--radius); padding:.9rem 1rem; box-shadow:var(--shadow); transition:.15s ease; }
a.pv-card:hover { border-color:#a9cec6; transform:translateY(-1px); }
.pv-card-top { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.pv-name { font-size:.86rem; font-weight:800; line-height:1.4; }
.pv-stats { display:flex; gap:1rem; flex-wrap:wrap; }
.pv-stats span { display:flex; flex-direction:column; }
.pv-stats b { font-size:.92rem; font-weight:800; color:var(--accent-dark); }
.pv-stats i { font-style:normal; font-size:.64rem; color:var(--muted); }
.pv-mini-bars { display:flex; align-items:flex-end; gap:4px; height:34px; margin-top:.2rem; }
.pv-mini-bars i { flex:1; display:block; min-height:2px; background:var(--accent); border-radius:2px 2px 0 0; opacity:.75; }
.pv-flow { display:flex; flex-direction:column; gap:.6rem; }
.pv-policy-item { background:var(--bg2); border:1px solid var(--rule); border-radius:12px; padding:.8rem .95rem; box-shadow:var(--shadow); }
.pv-policy-head { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.pv-date { font-size:.7rem; color:var(--muted); }
.pv-title { font-size:.86rem; font-weight:800; line-height:1.4; }
.pv-score { display:flex; align-items:baseline; gap:.4rem; }
.pv-stars { color:var(--accent2); font-size:.92rem; letter-spacing:.12em; }
.pv-score b { font-size:1.05rem; font-weight:800; }
.pv-kpis { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); }

@media (max-width:900px){
  .pv-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pv-two { grid-template-columns:1fr; }
}
@media (max-width:820px){
  .side-plan-row { padding:0 .2rem 0 .3rem; }
  .upgrade-btn { padding:.22rem .5rem; font-size:.64rem; }
}
@media (max-width:640px){
  .pv-grid, .pv-grid.pv-grid-2 { grid-template-columns:1fr; }
  .ptiers { gap:5px; }
}

/* ============ v7 合规 ============ */
.login-agree { display:flex; align-items:center; gap:.4rem; font-size:.76rem; color:var(--muted); margin:.45rem 0 .6rem; }
.login-agree input { margin:0; }
.login-agree a { color:var(--accent-dark); }
.ai-tag { font-size:.66rem; color:#8a5a17; background:var(--accent2-soft); border-radius:999px; padding:.08rem .45rem; margin-left:.4rem; font-weight:600; }
.ai-note { margin-top:.8rem; padding:.5rem .7rem; background:#fff8ec; border:1px solid #f0dfc0; color:#8a5a17; border-radius:8px; font-size:.74rem; line-height:1.6; }
.btn.danger, .btn.ghost.danger { color:#b23b3b; border-color:#e3b9b9; }
.btn.danger:hover, .btn.ghost.danger:hover { background:#b23b3b; color:#fff; border-color:#b23b3b; }
.danger-zone { border-color:#efd3d3; }

/* ============ v8 内测码登录 + 公司搜索链接 ============ */
.co-link { color: var(--accent-dark); font-weight: 700; text-decoration: none; border-bottom: 1px dashed var(--accent); }
.co-link:hover { border-bottom-style: solid; }
.co-ext { font-size: .68em; margin-left: .12em; opacity: .65; }
.co-search { font-size: .78rem; text-decoration: none; opacity: .55; margin-left: .25rem; }
.co-search:hover { opacity: 1; transform: scale(1.15); display: inline-block; }
.invite-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.invite-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border: 1px solid var(--rule); border-radius: 8px; padding: .4rem .6rem; font-size: .8rem; }
.invite-item .code { font-family: var(--mono); font-weight: 700; letter-spacing: .04em; }
