:root {
  color-scheme: light;
  --bg: #eef5f9;
  --panel: #ffffff;
  --soft: #f6fafc;
  --ink: #172635;
  --muted: #667789;
  --line: #d7e3eb;
  --brand: #169bd5;
  --blue: #0f6fbd;
  --orange: #b86618;
  --red: #bd3f3f;
  --sidebar-width: 188px;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button, .button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 6px;
  padding: 7px 11px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
button:hover, .button:hover { transform: translateY(-1px); border-color: #a9d8ea; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.primary, .button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.ghost { background: transparent; }
button.danger { color: var(--red); }
button.active, .filter.active { background: #e4f5fc; border-color: #b9e4f5; color: #0877a8; }
.hidden { display: none !important; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(460px, 100%); background: rgba(255,255,255,.98); border: 1px solid #cfe1ea; border-radius: 10px; padding: 18px; box-shadow: 0 18px 50px rgba(23, 38, 53, .12); }
.brand-block { background: var(--brand); color: #fff; border-radius: 8px; padding: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 68px; height: 68px; object-fit: contain; background: #fff; border-radius: 7px; padding: 5px; flex: 0 0 auto; }
.brand-copy { min-width: 0; }
.brand-block b { display: block; font-size: 22px; margin-bottom: 8px; }
.brand-block span { color: #eaf7ff; font-size: 14px; }
.tabs, .periods, .toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.period-navigation { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:-4px 0 14px; padding:9px 10px; border:1px solid var(--line); background:#fff; border-radius:7px; }
.period-navigation strong { min-width:190px; text-align:center; font-size:14px; }
.period-navigation .period-shift { width:34px; height:34px; padding:0; font-size:22px; line-height:1; }
.period-navigation label { display:flex; align-items:center; gap:7px; margin:0 0 0 auto; white-space:nowrap; }
.period-navigation input { width:auto; margin:0; padding:6px 8px; }
.tabs button { border-radius: 7px; }
.small-tabs button { flex: 1; }
.panel, .page, .subpanel { display: none; }
.panel.active, .page.active, .subpanel.active { display: block; }
label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0; }
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 88px; resize: vertical; }
.message { color: var(--muted); font-size: 14px; min-height: 20px; }
.workspace { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background:#126eae; padding:0 9px 10px; display:flex; flex-direction:column; gap:5px; position:sticky; top:0; height:100vh; overflow:hidden; box-shadow:6px 0 22px rgba(19,66,98,.11); }
.sidebar-brand { min-height:72px; margin:0 -9px 6px; padding:11px 12px; display:flex; align-items:center; gap:9px; color:#fff; background:#1387c8; border-bottom:1px solid rgba(255,255,255,.2); }
.sidebar-brand img { width:36px; height:36px; padding:4px; object-fit:contain; flex:0 0 auto; border-radius:6px; background:#fff; }
.sidebar-brand b { min-width:0; font-size:15px; font-weight:700; line-height:1.45; white-space:normal; }
#nav { min-height:0; flex:1; overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.28) transparent; padding:2px 0 6px; }
.nav-group { margin-bottom:7px; border:1px solid rgba(255,255,255,.13); border-radius:7px; overflow:hidden; background:rgba(4,68,112,.15); }
.nav-group.system-group { margin-top:0; }
.sidebar .nav-group-toggle { width:100%; min-height:43px; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 11px; border:0; border-radius:0; color:#fff; background:rgba(255,255,255,.08); font-size:15px; font-weight:700; }
.sidebar .nav-group-toggle:hover { transform:none; background:rgba(255,255,255,.14); }
.nav-group-toggle svg { width:17px; height:17px; flex:0 0 auto; transition:transform .2s ease; }
.nav-group.expanded .nav-group-toggle svg { transform:rotate(180deg); }
.nav-group-items { display:grid; gap:3px; max-height:420px; padding:5px; opacity:1; transition:max-height .22s ease, opacity .16s ease, padding .22s ease; }
.nav-group.collapsed .nav-group-items { max-height:0; padding-top:0; padding-bottom:0; opacity:0; overflow:hidden; pointer-events:none; }
.sidebar .nav-item { position:relative; width:100%; min-height:38px; color:rgba(255,255,255,.88); background:transparent; border-color:transparent; border-radius:5px; text-align:left; padding:8px 10px 8px 18px; font-size:14px; font-weight:500; }
.sidebar .nav-item::before { content:""; position:absolute; left:8px; top:50%; width:4px; height:4px; margin-top:-2px; border-radius:50%; background:rgba(255,255,255,.5); }
.sidebar .nav-item:hover { transform:none; background:rgba(255,255,255,.1); }
.sidebar .nav-item.active { background:rgba(255,255,255,.2); color:#fff; box-shadow:inset 3px 0 0 #fff; font-weight:700; }
.sidebar .nav-item.active::before { background:#fff; box-shadow:0 0 0 3px rgba(255,255,255,.16); }
.sidebar-account { flex:0 0 auto; padding:10px 2px 0; border-top:1px solid rgba(255,255,255,.18); }
.sidebar-account span { display:block; padding:0 7px 8px; color:rgba(255,255,255,.78); font-size:11px; line-height:1.45; overflow-wrap:anywhere; }
.sidebar-account button { width:100%; display:flex; align-items:center; justify-content:center; gap:6px; padding:7px; border-color:rgba(255,255,255,.22); background:rgba(255,255,255,.08); }
.sidebar-account button:hover { background:rgba(255,255,255,.16); }
.sidebar-account svg { width:15px; height:15px; }
.content { padding: 18px 20px; overflow: auto; width: 100%; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dashboard-head h1, .dashboard-head button { display:flex; align-items:center; gap:8px; }
.dashboard-head h1 svg { width:22px; height:22px; color:#118bc0; }
.dashboard-head button svg { width:16px; height:16px; }
.dashboard-head button:hover svg { animation:refreshSpin .7s ease; }
h1 { font-size: 24px; font-weight: 700; margin: 0; }
h2 { font-size: 17px; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 16px; font-weight: 700; margin: 12px 0 8px; }
.card { background: rgba(255,255,255,.98); border: 1px solid #d7e5ec; border-radius: 8px; padding: 14px; min-width: 0; margin-bottom: 12px; box-shadow: 0 8px 18px rgba(23, 38, 53, .035); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: minmax(360px, .8fr) minmax(520px, 1.2fr); }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; width: 100%; }
.is-user .page-layout.has-side:has(.side-panel.user-only),
.is-admin .page-layout.has-side:has(.side-panel.admin-only) { grid-template-columns: minmax(0, 1fr) 320px; }
.main-card { min-width: 0; width: 100%; }
.side-panel { background: rgba(255,255,255,.98); border: 1px solid #d7e5ec; border-radius: 8px; padding: 14px; box-shadow: 0 8px 18px rgba(23, 38, 53, .035); position: sticky; top: 76px; }
.side-panel .full { width: 100%; }
.toolbar-card { margin-bottom: 12px; }
.toolbar.tight { margin-bottom: 8px; }
.stock-summary { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.stock-summary span { background: #f0f8fc; border: 1px solid #d3e9f2; border-radius: 999px; padding: 4px 9px; }
.mall-filters { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.filter-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-line b { color: #496272; margin-right: 2px; }
.announcement-bar { margin-bottom: 12px; }
.proof-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 12px; }
.proof-gallery img { display: block; width: 100%; height: 240px; object-fit: contain; background: #edf3f8; border: 1px solid var(--line); }
.announcement-carousel { position: relative; background: #fff; border-block: 1px solid var(--line); }
.announcement-slides { height: 202px; }
.announcement-slide { width: 100%; height: 100%; display: grid; grid-template-columns: 32% minmax(0, 1fr); align-items: center; gap: 28px; padding: 0; text-align: left; border: 0; border-radius: 0; cursor: pointer; background: #fff; }
.announcement-slide:hover { transform: none; }
.announcement-slide img { width: 100%; height: 202px; object-fit: contain; background: #eaf3fa; }
.announcement-copy { padding: 18px 30px 48px 0; min-width: 0; }
.announcement-kicker { display:flex!important; align-items:center; gap:6px; width:fit-content; margin-bottom:8px; color:#0b82b7!important; font-size:12px; font-weight:600; }
.announcement-kicker svg { width:15px; height:15px; animation:softPulse 2.4s ease-in-out infinite; }
.announcement-copy strong { display: block; margin-bottom: 12px; font-size: 22px; color: #152f43; }
.announcement-copy > span { color: #536879; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-controls { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }
.carousel-controls > button { width: 28px; height: 28px; padding: 0; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dot { width: 8px; height: 8px; min-width: 8px; border-radius: 50%; padding: 0; background: #c7d4df; border: 0; }
.carousel-dot.active { background: var(--blue); }
.announcement-gallery { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.announcement-gallery > div { position: relative; width: 100px; height: 74px; }
.announcement-gallery img { width: 100%; height: 100%; object-fit: contain; background: var(--soft); border: 1px solid var(--line); }
.announcement-gallery button { position: absolute; right: 0; top: 0; padding: 1px 6px; }
.rank-section { margin-top: 20px; }
.rank-highlight-carousel { position: relative; min-height: 190px; margin-bottom: 18px; overflow: hidden; border: 1px solid #c7e4ef; background: #fff; }
.rank-highlight-track { min-height: 190px; }
.rank-highlight-slide { position: relative; min-height: 190px; display: grid; grid-template-columns: 138px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 34px 54px 30px; background: linear-gradient(115deg, #eefaff 0%, #fff 56%, #fff8e8 100%); animation: rankSlideIn .38s ease both; }
.rank-highlight-slide:nth-child(2) { background: linear-gradient(115deg, #edf9f4 0%, #fff 56%, #f3effd 100%); }
.rank-highlight-badge { position: absolute; left: 18px; top: 16px; display: flex; align-items: center; gap: 7px; color: #9b5a08; font-size: 13px; font-weight: 700; }
.rank-highlight-badge svg { width: 17px; height: 17px; }
.rank-winner-avatar { width: 112px; height: 112px; object-fit: cover; border-radius: 8px; border: 4px solid #fff; box-shadow: 0 10px 24px rgba(23,38,53,.14); }
.rank-winner-avatar.fallback { display: grid; place-items: center; background: #169bd5; color: #fff; font-size: 46px; font-weight: 700; }
.rank-winner-copy span { color: var(--muted); font-size: 13px; }
.rank-winner-copy h2 { margin: 7px 0; font-size: 28px; color: #17354a; }
.rank-winner-copy p { margin: 0; color: #5d7282; }
.rank-winner-value { min-width: 190px; text-align: right; }
.rank-winner-value strong, .rank-winner-value span { display: block; }
.rank-winner-value strong { color: #b66c10; font-size: 30px; }
.rank-winner-value span { margin-top: 8px; color: var(--muted); font-size: 13px; }
.rank-highlight-controls { position: absolute; right: 22px; bottom: 14px; display: flex; gap: 7px; }
.rank-highlight-dot { width: 24px; height: 6px; min-width: 24px; padding: 0; border: 0; border-radius: 3px; background: #cbd8df; }
.rank-highlight-dot.active { background: #169bd5; }
@keyframes rankSlideIn { from { opacity: .25; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
.rank-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.rank-filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.rank-filter-bar .message { margin: 0; }
.filter-dropdown { position: relative; min-width: 156px; }
.filter-dropdown summary { padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: #fff; font-size: 14px; }
.filter-dropdown > .filter-options, .filter-menu { position: absolute; top: calc(100% + 4px); left: 0; width: 240px; z-index: 5; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px #1726351a; }
.filter-options { max-height: 270px; overflow: auto; }
.filter-options label { display: flex; align-items: center; gap: 8px; padding: 6px; margin: 0; color: var(--ink); }
.filter-options input { width: auto; margin: 0; }
.filter-menu > input { margin: 0 0 8px; }
.filter-count { display: inline-block; margin-left: 6px; font-size: 12px; color: var(--muted); }
.order-empty { padding: 26px; text-align: center; color: var(--muted); }
.home-hero { position: relative; min-height: 168px; border-radius: 10px; overflow: hidden; margin-bottom: 12px; border: 1px solid #c8e5f1; background: #dff4fc; }
.home-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero div { position: relative; z-index: 1; padding: 28px; width: min(540px, 70%); color: #103047; }
.home-hero span { display: inline-block; color: #0877a8; background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.88); border-radius: 999px; padding: 5px 10px; margin-bottom: 10px; }
.home-hero h2 { font-size: 26px; margin-bottom: 8px; }
.home-hero p { margin: 0; color: #35566e; }
.quick-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.quick-card { min-height: 88px; display:grid; grid-template-columns:42px minmax(0,1fr) 18px; align-items:center; gap:11px; text-align: left; padding: 13px; background: #fff; border-color: #cfe5ee; box-shadow: 0 8px 18px rgba(23, 38, 53, .035); animation:dashboardRise .45s both; animation-delay:var(--delay,0s); }
.quick-icon { width:42px; height:42px; display:grid!important; place-items:center; border-radius:8px; background:#e6f6fc; color:#087bac; }
.quick-icon svg { width:21px; height:21px; transition:transform .18s ease; }
.quick-copy { min-width:0; }
.quick-arrow { width:17px; height:17px; color:#94a9b5; transition:transform .18s ease,color .18s ease; }
.quick-card:hover .quick-icon svg { transform:scale(1.1); }
.quick-card:hover .quick-arrow { transform:translateX(3px); color:#087bac; }
.quick-card { --accent:#1498c8; --accent-soft:#e5f6fc; border-top:3px solid var(--accent); }
.quick-card .quick-icon { background:var(--accent-soft); color:var(--accent); }
.quick-card:nth-child(2) { --accent:#18a17c; --accent-soft:#e5f7f1; }
.quick-card:nth-child(3) { --accent:#d99524; --accent-soft:#fff4dd; }
.quick-card:nth-child(4) { --accent:#e46c62; --accent-soft:#fff0ee; }
.quick-card:nth-child(5) { --accent:#8069bf; --accent-soft:#f1edfb; }
.quick-card b, .quick-card span { display: block; }
.quick-card b { margin-bottom: 7px; color: var(--ink); }
.quick-card span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.marquee { overflow: hidden; border: 1px solid #b9e4f5; background: #ecf9fd; color: #096f9c; border-radius: 8px; padding: 9px 12px; white-space: nowrap; }
.marquee span { display: inline-block; min-width: 100%; animation: marquee 26s linear infinite; }
.marquee.static span { animation: none; }
@keyframes marquee { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.announce-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.announce-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 7px 12px;
  align-items: start;
  text-align: left;
  padding: 10px;
  background: #fff;
  border-color: #c8e5f1;
}
.announce-card img,
.promo-card img { width: 100%; height: 92px; object-fit: cover; border-radius: 6px; grid-row: 1 / span 2; background: #e7f5fb; }
.announce-card strong { font-size: 16px; color: #123047; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce-card em,
.promo-card em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-style: normal; line-height: 1.5; }
.announce-placeholder { display: grid; place-items: center; height: 92px; border-radius: 6px; background: #e7f5fb; color: var(--brand); font-weight: 700; grid-row: 1 / span 2; }
.promo-entry { margin-top: 10px; background: #fff7ed; border-color: #fed7aa; color: #9a4c12; }
.promo-list { display: grid; gap: 10px; }
.promo-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; text-align: left; align-items: center; width: 100%; background: #fff; }
.promo-card b { display: block; color: var(--ink); margin-bottom: 6px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric { position:relative; overflow:hidden; background: linear-gradient(180deg, #fff, #f8fcfd); border: 1px solid #d7e5ec; border-radius: 8px; padding: 13px; box-shadow: 0 8px 18px rgba(23, 38, 53, .035); }
.metric.lively { padding-right:56px; animation:dashboardRise .5s both; animation-delay:var(--delay,0s); }
.metric.lively { --metric-accent:#1498c8; --metric-soft:#e5f6fc; border-top:3px solid var(--metric-accent); background:linear-gradient(180deg,#fff,var(--metric-soft)); }
.metric.lively:nth-child(4n+2) { --metric-accent:#18a17c; --metric-soft:#eaf8f3; }
.metric.lively:nth-child(4n+3) { --metric-accent:#d99524; --metric-soft:#fff7e7; }
.metric.lively:nth-child(4n+4) { --metric-accent:#8069bf; --metric-soft:#f4f1fb; }
.metric-icon { position:absolute; top:12px; right:12px; width:34px; height:34px; display:grid; place-items:center; border-radius:8px; background:var(--metric-soft); color:var(--metric-accent); animation:metricFloat 3.2s ease-in-out infinite; animation-delay:var(--delay,0s); }
.metric-icon svg { width:18px; height:18px; }
.metric-spark { position:absolute; right:13px; bottom:12px; height:18px; display:flex; align-items:end; gap:3px; opacity:.55; }
.metric-spark b { display:block; width:4px; border-radius:2px 2px 0 0; background:var(--metric-accent); animation:sparkBar 1.8s ease-in-out infinite; }
.metric-spark b:nth-child(1) { height:7px; }
.metric-spark b:nth-child(2) { height:14px; animation-delay:.18s; }
.metric-spark b:nth-child(3) { height:10px; animation-delay:.34s; }
.metric .label { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.metric .value { font-size: 24px; font-weight: 600; }
.metric .sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
@keyframes dashboardRise { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes metricFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-3px); } }
@keyframes sparkBar { 0%,100% { transform:scaleY(.65); transform-origin:bottom; } 50% { transform:scaleY(1); transform-origin:bottom; } }
@keyframes softPulse { 0%,100% { opacity:.65; transform:scale(.94); } 50% { opacity:1; transform:scale(1.08); } }
@keyframes refreshSpin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .quick-card, .metric.lively, .metric-icon, .metric-spark b, .announcement-kicker svg { animation:none!important; }
}
.table-wrap { overflow: auto; width: 100%; }
.table-wrap.wide { max-width: calc(100vw - var(--sidebar-width) - 60px); }
.table-wrap.limited { max-height: 520px; border: 1px solid var(--line); border-radius: 8px; }
.rank-scroll { max-height: 430px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 8px; vertical-align: middle; white-space: nowrap; }
th { color: #496272; font-weight: 600; font-size: 13px; background: #f7fbfd; }
.table-wrap.limited th, .rank-scroll th { position: sticky; top: 0; z-index: 1; }
tbody tr:hover { background: #f7fbfd; }
.status { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 13px; background: #e6f4f1; color: #0f806f; }
.status.wait { background: #fff3df; color: var(--orange); }
.status.bad { background: #fde8e8; color: var(--red); }
.status.off { background: #edf0f2; color: var(--muted); }
.muted { color: var(--muted); font-size: 12px; }
.order-filter-bar { margin-bottom: 12px; }
.order-filter { background: #fff; }
.order-filter.active { background: #e4f5fc; border-color: #9fd6eb; color: #0877a8; }
.order-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.order-steps span { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 9px 8px; text-align: center; color: var(--muted); background: #f8fcfd; font-size: 13px; }
.order-steps span.active { border-color: #8fd3ec; background: #eaf8fd; color: #0877a8; font-weight: 600; }
.goods-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.goods-card { border: 1px solid #d7e5ec; border-radius: 8px; overflow: hidden; background: var(--panel); box-shadow: 0 8px 16px rgba(23, 38, 53, .035); min-height: 0; }
.goods-card.off { opacity: .58; }
.goods-image { width: 100%; aspect-ratio: 1 / .68; background: linear-gradient(135deg, #dff4fc, #f3f9fc); color: var(--brand); display: grid; place-items: center; font-size: 28px; border: 0; border-radius: 0; padding: 0; overflow: hidden; }
.goods-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goods-body { padding: 10px; }
.goods-title { font-weight: 600; margin-bottom: 5px; }
.goods-meta { color: var(--muted); font-size: 13px; margin-bottom: 9px; }
.price-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 5px; }
.price-row strong { color: #e24c1a; font-size: 18px; }
.price-row span { color: #94a3af; text-decoration: line-through; font-size: 12px; }
.price-row em { color: #0f6fbd; font-style: normal; font-size: 13px; }
.stock-row { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.goods-body p { color: var(--muted); font-size: 13px; line-height: 1.55; min-height: 40px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.form-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.form-row.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-only, .user-only { display: none; }
.page.admin-only, .page.user-only { display: none; }
.is-admin .admin-only:not(.page) { display: block; }
.is-user .user-only:not(.page) { display: block; }
.is-admin .page.admin-only.active, .is-user .page.user-only.active { display: block; }
.inline-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); }
.inline-check input { width: auto; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.actions button { padding: 5px 8px; font-size: 13px; }
.clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.thumb { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; display: inline-grid; place-items: center; background: #e7f5fb; color: var(--brand); font-size: 12px; text-align: center; padding: 2px; }
.thumb-btn { width: 46px; height: 46px; padding: 0; border: 0; background: transparent; }
.large-thumb { width: 72px; height: 72px; flex: 0 0 auto; }
.thumb.text { font-weight: 700; }
.thumb.placeholder { background: linear-gradient(135deg, #e7f5fb, #ffffff); border: 1px solid #cfe5ee; }
.image-empty { width: 100%; height: 100%; display: grid; place-items: center; color: #5f8ca4; font-size: 13px; background: linear-gradient(135deg, #e7f5fb, #fff); }
.org-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.limited-org { max-height: 310px; overflow: auto; padding-right: 4px; }
.org-list div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #f8fcfd; }
.org-list b, .org-list span { display: block; }
.org-list span { color: var(--muted); font-size: 13px; margin-top: 6px; }
.org-list button { margin-top: 10px; }
.section-title { margin-top: 16px; }
.empty { border: 1px dashed #bdd6e2; border-radius: 8px; padding: 18px; color: var(--muted); background: #f8fcfd; }
.plain { color: #34495a; line-height: 1.7; white-space: pre-wrap; }
.notice { border: 1px solid #b9e4f5; background: #ecf9fd; color: #096f9c; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.disabled-link { opacity: .48; cursor: not-allowed; }
.order-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); }
.review-image { width: 100%; max-height: 360px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #f7fbfd; margin-bottom: 12px; }
.business-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px; align-items: center; border: 1px solid #d7e5ec; border-radius: 8px; padding: 16px; background: linear-gradient(135deg, #f8fcfd, #ffffff); }
.business-card-with-qr { grid-template-columns: 128px minmax(0, 1fr) 150px; }
.avatar { width: 128px; height: 128px; border-radius: 8px; background: #169bd5; color: #fff; display: grid; place-items: center; font-size: 46px; font-weight: 700; }
.avatar.image, .person-avatar.image { object-fit: cover; display: block; }
.business-card .company { color: var(--muted); margin-bottom: 6px; }
.business-card h2 { font-size: 24px; margin-bottom: 8px; }
.business-card p { margin: 5px 0; color: #34495a; }
.card-qr { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.card-qr img { width: 132px; height: 132px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px; }
.card-actions { margin: 14px 0; }
.invite-layout { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 12px; }
.qr-box {
  width: 168px;
  height: 168px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  place-items: stretch;
  border: 1px solid #b9e4f5;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  position: relative;
}
.qr-box span { background: repeating-linear-gradient(45deg, #169bd5 0 8px, #fff 8px 14px); border-radius: 5px; }
.qr-box b {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(255,255,255,.94);
  border: 1px solid #d7e5ec;
  border-radius: 6px;
  text-align: center;
  padding: 5px;
  font-size: 13px;
}
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 32, 45, .38); }
.modal-panel { position: relative; width: min(760px, 96vw); max-height: 88vh; overflow: auto; background: #fff; border-radius: 10px; border: 1px solid #d7e5ec; box-shadow: 0 24px 80px rgba(17,32,45,.22); padding: 16px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.order-cell-lines { display: grid; gap: 4px; min-width: 138px; white-space: normal; }
.order-cell-lines > span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.order-action-list { display: grid; gap: 8px; }
.order-action-list > button { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 13px 12px; text-align: left; background: #fff; border-color: var(--line); }
.order-action-list > button:hover { background: #f1f9fd; border-color: #8dcfe9; transform: none; }
.order-action-list svg { width: 20px; height: 20px; color: var(--blue); }
.order-action-list span { min-width: 0; }
.order-action-list b, .order-action-list small { display: block; }
.order-action-list small { margin-top: 4px; color: var(--muted); font-weight: 400; }
.order-action-list > button > svg:last-child { width: 16px; color: var(--muted); }
.order-after-sale-list { display: grid; gap: 10px; }
.order-after-sale-list article { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.order-after-sale-list p { margin: 5px 0; }
.order-after-sale-list small { color: var(--muted); }
.dashboard-task-section { margin: 16px 0; padding: 16px; border: 1px solid #b9e4f5; border-radius: 8px; background: linear-gradient(100deg,#f1fbff,#fff8ec); }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.section-heading h2 { margin:0; font-size:18px; }
.eyebrow { display:block; margin-bottom:3px; color:#0877a8; font-size:12px; font-weight:700; }
.task-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.task-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.task-card { display:grid; grid-template-rows:126px 1fr auto; min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 5px 16px rgba(28,69,91,.07); }
.task-card.compact { grid-template-rows:88px 1fr auto; }
.task-card-media { position:relative; display:grid; place-items:center; overflow:hidden; background:linear-gradient(135deg,#dff5ff,#fff1d6); }
.task-card-media > img { width:100%; height:100%; object-fit:cover; }
.task-card-media > b { position:absolute; left:8px; top:8px; padding:4px 7px; border-radius:5px; color:#fff; background:rgba(8,119,168,.9); font-size:11px; }
.task-card-body { padding:12px; min-width:0; }
.task-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.task-card h3 { margin:10px 0 6px; font-size:16px; }
.task-card p { margin:0 0 10px; color:var(--muted); font-size:13px; line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.task-deadline { display:flex; gap:6px; align-items:flex-start; color:#526b79; font-size:12px; line-height:1.5; }
.task-deadline svg { width:15px; flex:0 0 auto; margin-top:1px; color:#e08b2d; }
.task-rewards { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
.task-rewards span { padding:4px 6px; border-radius:5px; background:#eef8fc; color:#0877a8; font-size:11px; }
.task-card > .task-open { margin:0 12px 12px; }
.task-card-body > small { display:block; margin-top:7px; color:var(--muted); }
.task-progress { height:6px; margin-top:10px; overflow:hidden; border-radius:4px; background:#e7eef2; }
.task-progress span { display:block; height:100%; background:#22a06b; }
.task-empty-success { grid-column:1/-1; display:flex; align-items:center; justify-content:center; gap:12px; min-height:100px; color:#318464; }
.task-empty-success svg { width:30px; height:30px; }
.task-empty-success b,.task-empty-success span { display:block; }
.task-empty-success span { margin-top:4px; color:var(--muted); font-size:13px; }
.task-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.task-summary > div { padding:14px; border-left:4px solid #169bd5; background:#f4fafc; }
.task-summary b,.task-summary span { display:block; }
.task-summary b { font-size:24px; }
.task-summary span { color:var(--muted); font-size:13px; }
.task-filter-bar button.active { color:#fff; border-color:#169bd5; background:#169bd5; }
.task-detail-head { display:grid; grid-template-columns:180px minmax(0,1fr); gap:16px; align-items:center; margin-bottom:16px; }
.task-detail-head > img,.task-detail-head > div:first-child { width:180px; height:120px; object-fit:cover; display:grid; place-items:center; border-radius:8px; background:#eef8fc; }
.task-detail-head h2 { margin:5px 0; }
.task-detail-head p { color:var(--muted); }
.task-submission-list { display:grid; gap:8px; }
.task-submission-list article { display:grid; grid-template-columns:minmax(140px,1fr) minmax(120px,auto) auto; gap:12px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:7px; }
.task-submission-list b,.task-submission-list span { display:block; }
.task-submission-list span { margin-top:3px; color:var(--muted); font-size:12px; }
.performance-toolbar { margin-bottom:14px; }
.performance-columns { display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,1fr); gap:16px; margin-top:16px; }
.performance-columns > section,.performance-rank { padding:16px; border:1px solid var(--line); background:#fff; }
.performance-rank { margin-top:16px; }
.level-summary-grid { display:grid; gap:8px; }
.level-summary-grid > div { display:grid; grid-template-columns:52px 1fr auto; align-items:center; gap:8px; padding:11px; border:1px solid var(--line); border-radius:7px; }
.level-summary-grid strong { font-size:18px; }
.level-summary-grid span { color:var(--muted); font-size:12px; }
.task-link-label { display:block; margin-bottom:4px; color:#0877a8; font-size:11px; }
.dashboard-todos { margin-top:20px; padding-top:18px; border-top:1px solid var(--line); }
.dashboard-todos.todo-page { margin-top:0; padding-top:0; border-top:0; }
.dashboard-todos .section-heading h2 { display:flex; align-items:center; gap:8px; }
#todoTotal { display:inline-grid; place-items:center; min-width:28px; height:24px; padding:0 7px; border-radius:12px; background:#e6534b; color:#fff; font-size:13px; }
.todo-indicators { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.todo-indicator { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:72px; padding:11px; text-align:left; border-color:#dbe6ec; background:#fff; }
.todo-indicator:nth-child(4n+2) .todo-icon { color:#986113; background:#fff2d8; }
.todo-indicator:nth-child(4n+3) .todo-icon { color:#8a4dad; background:#f5eafb; }
.todo-indicator:nth-child(4n+4) .todo-icon { color:#237b59; background:#e4f6ed; }
.todo-indicator.has-items { border-color:#a9d7e9; box-shadow:0 4px 12px rgba(25,99,132,.07); }
.todo-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:7px; color:#0877a8; background:#e5f5fc; }
.todo-icon svg { width:19px; }
.todo-indicator b,.todo-indicator small { display:block; }
.todo-indicator small { margin-top:3px; color:var(--muted); font-weight:400; }
.todo-indicator strong { font-size:22px; color:#26495b; }
.todo-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.todo-group { min-width:0; border:1px solid var(--line); border-radius:8px; background:#fff; overflow:hidden; }
.todo-group-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 14px; background:#f5fafc; border-bottom:1px solid var(--line); }
.todo-group-head > div { display:flex; align-items:center; gap:9px; min-width:0; }
.todo-group-head svg { width:19px; color:#0877a8; }
.todo-group-head h3 { margin:0; font-size:15px; }
.todo-group-head small { display:block; margin-top:2px; color:var(--muted); }
.todo-group-head button { padding:7px 10px; background:#fff; }
.todo-list { display:grid; }
.todo-item { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto 16px; align-items:center; gap:10px; padding:12px 14px; text-align:left; border:0; border-bottom:1px solid #edf2f5; border-radius:0; background:#fff; }
.todo-item:hover { background:#f7fbfd; transform:none; }
.todo-item b,.todo-item small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.todo-item small { margin-top:4px; color:var(--muted); font-weight:400; }
.todo-item time { color:var(--muted); font-size:11px; white-space:nowrap; }
.todo-item svg { width:15px; color:#8aa0ad; }
.todo-more { width:100%; border:0; border-radius:0; color:#0877a8; background:#f8fcfd; }
.todo-all-done { grid-column:1/-1; min-height:140px; display:flex; align-items:center; justify-content:center; gap:14px; border:1px dashed #a9d9c7; background:#f3fbf7; color:#237b59; }
.todo-all-done svg { width:34px; height:34px; }
.todo-all-done b,.todo-all-done span { display:block; }
.todo-all-done span { margin-top:5px; color:var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-grid div { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #f8fcfd; }
.detail-grid b, .detail-grid span { display: block; }
.detail-grid b { color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.large-image { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; background: #f7fbfd; }
.large-placeholder, .detail-placeholder { display: grid; place-items: center; background: #e6f5fb; color: var(--brand); border-radius: 8px; font-size: 64px; font-weight: 700; min-height: 260px; }
.goods-detail-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.detail-image { width: 100%; max-height: 280px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
select[multiple] { min-height: 116px; }
.summary-toolbar { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; flex-wrap: wrap; }
.summary-toolbar h2, .summary-toolbar .periods { margin: 0; }
.catalog-navigation { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.catalog-tabs { display: flex; gap: 22px; overflow-x: auto; }
.catalog-tabs button { padding: 12px 2px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; white-space: nowrap; font-weight: 600; }
.catalog-tabs button:hover { transform: none; }
.catalog-tabs button.active { border-bottom-color: var(--blue); color: var(--blue); }
.catalog-navigation .mall-filters { padding: 12px 0; }
.catalog-navigation .filter-line { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.catalog-navigation .filter-line button { white-space: nowrap; flex-shrink: 0; }
.catalog-list-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.catalog-list-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; min-width: 0; }
.catalog-list-filters h2 { margin: 0 6px 0 0; }
.catalog-list-filters input[type="search"] { width: 220px; margin: 0; }
.catalog-list-filters select { width: 130px; margin: 0; }
.inline-check.user-only { display: none; }
.is-user .inline-check.user-only { display: inline-flex; }
.catalog-list-head > button { flex-shrink: 0; }
.goods-title, .goods-meta { overflow-wrap: anywhere; }
.card-directory-filters { gap: 14px; }
.is-admin .card-directory-filters { display: flex; }
.card-directory-filters label { width: 220px; margin-top: 0; }
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.person-card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0; }
.person-heading { display: flex; align-items: center; gap: 12px; }
.person-heading h2 { margin: 0 0 4px; font-size: 17px; overflow-wrap: anywhere; }
.person-heading span, .person-card p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.person-avatar { flex: 0 0 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: #e4f5fc; color: #0f6fbd; font-size: 22px; }
.person-avatar.image { width: 44px; }
.person-contact { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-avatar-preview { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.profile-avatar-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.card-role { color: #0877a8 !important; font-weight: 700; }
.qr-preview { display: grid; justify-items: center; gap: 12px; padding: 18px; text-align: center; color: var(--muted); }
.qr-preview img { width: min(280px, 72vw); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; }
.person-counts { display: flex; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; margin-top: 12px; font-size: 13px; color: var(--muted); }
.person-counts b { color: var(--ink); }
.person-share { width: 100%; }
.person-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.person-card-actions .person-share { width: auto; }
.role-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.role-summary { position: relative; min-height: 130px; padding: 18px; border: 1px solid var(--line); border-top: 4px solid #169bd5; background: #fff; }
.role-summary.user { border-top-color: #18a17c; }
.role-summary h2 { margin-bottom: 9px; font-size: 18px; }
.role-summary p { margin: 0 100px 0 0; color: var(--muted); line-height: 1.6; }
.role-summary strong { position: absolute; right: 18px; top: 48px; color: #0877a8; font-size: 24px; }
.log-filters { grid-template-columns: repeat(3, minmax(180px, 1fr)) auto; align-items: end; }
.filter-action { display: flex; gap: 8px; padding-bottom: 10px; }
.role-assignment { min-width: 112px; margin: 0; padding: 6px 8px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; align-items: center; margin-top: 18px; color: var(--muted); font-size: 13px; }
.share-history-list { max-height: 300px; overflow: auto; }
.share-record { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.share-record > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.share-record span, .share-record small { color: var(--muted); font-size: 13px; }
.share-record p { margin: 6px 0; font-size: 14px; }
#cardRecordForm { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.mobile-nav, .mobile-my-menu, .mobile-my-backdrop { display: none; }
.wallet-entry { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.wallet-entry small { display: block; color: var(--muted); margin-top: 8px; }
.content-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.is-user .content-channel-grid.user-only { display: grid; }
.content-channel-card {
  position: relative;
  min-height: 138px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 10px 14px;
  align-items: center;
  overflow: hidden;
  padding: 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  text-align: left;
  box-shadow: 0 10px 24px rgba(25, 52, 70, .14);
}
.content-channel-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -38px;
  top: -48px;
  border: 18px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}
.content-channel-card:hover { color: #fff; border-color: transparent; transform: translateY(-2px); }
.content-channel-card.douyin { background: linear-gradient(125deg, #15171b, #282b31); box-shadow: inset 4px 0 #25f4ee, 0 10px 24px rgba(21, 23, 27, .18); }
.content-channel-card.douyin::before { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, #25f4ee 0 50%, #fe2c55 50%); }
.content-channel-card.xiaohongshu { background: linear-gradient(125deg, #ff2442, #ed1535); }
.content-channel-card.wechat { background: linear-gradient(125deg, #20b95a, #079542); }
.channel-logo {
  grid-row: 1 / 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .26);
}
.channel-logo img { width: 31px; height: 31px; display: block; }
.channel-card-copy { min-width: 0; align-self: end; }
.channel-card-copy strong { display: block; font-size: 17px; margin-bottom: 6px; }
.channel-card-copy > span { display: block; color: rgba(255, 255, 255, .83); font-size: 12px; line-height: 1.55; }
.channel-card-action { align-self: start; width: fit-content; padding: 4px 9px; border-radius: 5px; background: rgba(255, 255, 255, .17); color: #fff; font-size: 12px; font-weight: 600; }
.channel-badge { display: inline-flex; align-items: center; gap: 7px; min-width: 88px; font-weight: 600; white-space: nowrap; }
.channel-badge-icon { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 7px; color: #fff; background: #6e8290; flex: 0 0 auto; }
.channel-badge-icon img { width: 16px; height: 16px; display: block; }
.channel-badge.douyin .channel-badge-icon { background: #17191d; box-shadow: inset 2px 0 #25f4ee, inset -2px 0 #fe2c55; }
.channel-badge.xiaohongshu .channel-badge-icon { background: #ff2442; }
.channel-badge.wechat .channel-badge-icon { background: #14ad51; }
.selected-content-channel { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 12px; border: 1px solid #b9e4f5; border-radius: 7px; background: #effaff; color: #376274; }
.content-list-tabs { display: flex; gap: 0; overflow-x: auto; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.content-list-tabs button { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 150px; justify-content: center; padding: 11px 16px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #536878; font-weight: 600; }
.content-list-tabs button:hover { transform: none; background: #f5fafc; }
.content-list-tabs button.active { background: #f2faff; color: #0877a8; border-bottom-color: var(--brand); }
.content-list-tabs button img { width: 20px; height: 20px; padding: 4px; border-radius: 5px; background: #718593; }
.content-list-tabs button.douyin img { background: #17191d; box-shadow: inset 1px 0 #25f4ee, inset -1px 0 #fe2c55; }
.content-list-tabs button.xiaohongshu img { background: #ff2442; }
.content-list-tabs button.wechat img { background: #14ad51; }
.content-list-tabs button span { min-width: 23px; padding: 2px 6px; border-radius: 999px; background: #e4eef3; color: #667b89; font-size: 11px; }
.content-list-tabs button.active span { background: #d8f1fb; color: #0877a8; }
@media (max-width: 1280px) {
  .goods-grid, .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .rank-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display:block; padding:6px; overflow:visible; }
  .sidebar-brand,.sidebar-account { display:none; }
  #nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; }
  .nav-group { display:contents; }
  .nav-group-toggle { display:none!important; }
  .nav-group-items,.nav-group.collapsed .nav-group-items { display:contents; max-height:none; opacity:1; padding:0; pointer-events:auto; }
  .grid.two, .metrics, .form-row, .form-row.two-cols, .org-list, .detail-grid, .goods-detail-layout, .quick-actions, .is-user .page-layout.has-side:has(.side-panel.user-only), .is-admin .page-layout.has-side:has(.side-panel.admin-only) { grid-template-columns: 1fr; }
  .announce-strip, .announce-card, .promo-card { grid-template-columns: 1fr; }
  .announce-card img, .promo-card img, .announce-placeholder { grid-row: auto; height: 150px; }
  .goods-grid, .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invite-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .table-wrap.wide { max-width: 100%; }
  .content-channel-grid { grid-template-columns: 1fr; }
  .content-channel-card { min-height: 104px; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-rows: 1fr; }
  .role-summary-grid, .log-filters { grid-template-columns: 1fr; }
  .task-strip,.task-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .performance-columns { grid-template-columns:1fr; }
  .todo-indicators { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .todo-groups { grid-template-columns:1fr; }
  .role-summary p { margin-right: 0; padding-right: 0; }
  .role-summary strong { position: static; display: block; margin-top: 14px; }
  .content-channel-card .channel-logo { grid-row: auto; width: 52px; height: 52px; }
  .channel-card-copy { align-self: center; }
  .channel-card-action { align-self: center; }
}
@media (max-width: 720px) {
  .rank-highlight-carousel, .rank-highlight-track { min-height: 230px; }
  .rank-highlight-slide { min-height: 230px; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; padding: 44px 18px 54px; }
  .rank-winner-avatar { width: 72px; height: 72px; }
  .rank-winner-copy h2 { font-size: 21px; }
  .rank-winner-value { grid-column: 1 / -1; min-width: 0; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .rank-winner-value strong { font-size: 24px; }
  .rank-highlight-controls { right: 14px; bottom: 14px; }
  .period-navigation strong { order:-1; width:100%; min-width:0; text-align:left; }
  .period-navigation label { margin-left:0; }
  .is-user .sidebar { display: none; }
  .is-user .mobile-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; left:0; right:0; bottom:0; z-index:55; padding:8px 6px calc(8px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid var(--line); }
  .mobile-nav button { padding:14px 4px; background:transparent; border:0; font-size:14px; border-radius:6px; }
  .mobile-nav button.active { color:#0877a8; background:#e3f2fb; }
  .is-user .mobile-my-backdrop:not(.hidden) { display:block; position:fixed; inset:0; background:#14334850; z-index:53; }
  .is-user .mobile-my-menu:not(.hidden) { display:grid; position:fixed; right:12px; bottom:calc(76px + env(safe-area-inset-bottom)); width:min(260px,calc(100vw - 24px)); padding:8px 16px; background:#fff; border:1px solid var(--line); border-radius:8px; z-index:54; box-shadow:0 8px 25px #14334825; }
  .mobile-my-menu button { text-align:left; background:#fff; border:0; border-bottom:1px solid var(--line); padding:17px 3px; border-radius:0; }
  .is-user :is(#contentTable,#leadTable,#redemptionTable) { min-width:0; width:100%; display:block; }
  .is-user :is(#contentTable,#leadTable,#redemptionTable) thead { display:none; }
  .is-user :is(#contentTable,#leadTable,#redemptionTable) tbody { display:block; }
  .is-user :is(#contentTable,#leadTable,#redemptionTable) tr { display:block; margin:0 0 16px; padding:12px; border:1px solid var(--line); border-radius:8px; background:#fff; }
  .is-user :is(#contentTable,#leadTable,#redemptionTable) td { display:grid; grid-template-columns:76px minmax(0,1fr); gap:10px; white-space:normal; overflow-wrap:anywhere; max-width:none; border:0; padding:7px 0; }
  .is-user :is(#contentTable,#leadTable,#redemptionTable) td::before { content:attr(data-label); color:var(--muted); font-size:12px; }
  .is-user :is(#contentTable,#leadTable,#redemptionTable) td.actions { display:flex; flex-wrap:wrap; }
  .is-user :is(#contentTable,#leadTable,#redemptionTable) td.actions::before { display:none; }
  .is-user .table-wrap { border:0; background:transparent; }
  .is-user .table-wrap.limited { max-height:none; }
  .is-user .mobile-unframed { border:0; box-shadow:none; background:transparent; padding:0; min-height:0; }
  .is-user #contentTable td:nth-child(3), .is-user #contentTable td:nth-child(4) { display:none; }
  .is-user :is(#contentTable,#redemptionTable) .thumb { width:64px; height:64px; }
  .is-user #redemptionFilters { flex-wrap:nowrap; overflow-x:auto; padding-bottom:8px; }
  .is-user #redemptionFilters button { flex-shrink:0; }
  .is-user .content { padding-bottom:calc(90px + env(safe-area-inset-bottom)); }
  .dashboard-task-section { padding:12px; }
  .task-strip,.task-grid { grid-template-columns:1fr; }
  .task-card.compact { grid-template-columns:88px minmax(0,1fr); grid-template-rows:auto auto; }
  .task-card.compact .task-card-media { grid-row:1 / 3; min-height:132px; }
  .task-card.compact > .task-open { grid-column:2; margin:0 12px 12px; }
  .task-summary { gap:7px; }
  .task-summary > div { padding:10px; }
  .task-summary b { font-size:19px; }
  .task-detail-head { grid-template-columns:1fr; }
  .task-detail-head > img,.task-detail-head > div:first-child { width:100%; height:160px; }
  .task-submission-list article { grid-template-columns:1fr; }
  .todo-indicators { grid-template-columns:1fr 1fr; gap:7px; }
  .todo-indicator { grid-template-columns:32px minmax(0,1fr) auto; min-height:64px; padding:8px; }
  .todo-icon { width:32px; height:32px; }
  .todo-indicator small { display:none; }
  .todo-indicator strong { font-size:18px; }
  .todo-item { grid-template-columns:minmax(0,1fr) 16px; }
  .todo-item time { grid-column:1; grid-row:2; }
  .order-after-sale-list article { grid-template-columns: 52px minmax(0, 1fr); }
  .order-after-sale-list article > .actions { grid-column: 1 / -1; }
  .announcement-slides { height: 176px; }
  .announcement-slide { grid-template-columns: 38% minmax(0, 1fr); gap: 12px; }
  .announcement-slide img { height: 176px; }
  .announcement-copy { padding: 8px 10px 42px 0; }
  .announcement-copy strong { font-size: 17px; margin-bottom: 6px; }
  .announcement-copy > span { font-size: 12px; -webkit-line-clamp: 3; }
  .carousel-controls { gap: 7px; right: 8px; bottom: 8px; }
  .filter-dropdown { min-width: 0; width: calc(50% - 5px); }
  #rankPersonDropdown .filter-menu { left: auto; right: 0; }
  .rank-filter-bar .message { flex-basis: 100%; font-size: 12px; }
  .workspace { min-height: 100vh; }
  .sidebar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 58px; z-index: 10; display: block; overflow-x: auto; overflow-y:hidden; padding: 6px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 22px rgba(23,38,53,.08); }
  .sidebar-brand,.sidebar-account { display:none; }
  #nav { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(76px,1fr); overflow:visible; }
  .sidebar .nav-item { color:#496272; text-align:center; font-size:12px; padding:6px 4px; white-space:nowrap; }
  .sidebar .nav-item::before { display:none; }
  .sidebar .nav-item.active { background:#e4f5fc; color:#0877a8; box-shadow:none; }
  .content { padding: 12px 10px 72px; }
  .page-head h1 { font-size: 19px; }
  .content-channel-grid { gap: 10px; }
  .content-channel-card { min-height: 94px; padding: 13px; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; }
  .content-channel-card .channel-logo { width: 46px; height: 46px; }
  .content-channel-card .channel-logo img { width: 26px; height: 26px; }
  .channel-card-copy strong { font-size: 15px; margin-bottom: 3px; }
  .channel-card-copy > span { font-size: 11px; line-height: 1.4; }
  .channel-card-action { padding: 4px 7px; }
  .content-list-tabs button { min-width: 128px; padding: 10px 12px; }
  .home-hero { min-height: 156px; }
  .home-hero div { width: 82%; padding: 18px; }
  .home-hero h2 { font-size: 21px; }
  .business-card-with-qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-card { min-height: 74px; }
  .quick-card { grid-template-columns:36px minmax(0,1fr) 15px; gap:8px; padding:10px; }
  .quick-icon { width:36px; height:36px; }
  .quick-icon svg { width:18px; height:18px; }
  .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .goods-body { padding: 9px; }
  .goods-title { font-size: 14px; }
  .goods-meta, .goods-body p, .stock-row { font-size: 12px; }
  .price-row strong { font-size: 16px; }
  .catalog-list-head { flex-wrap: wrap; }
  .catalog-list-filters { gap: 10px; flex: 1 1 100%; }
  .catalog-list-filters h2 { width: 100%; }
  .catalog-list-filters input[type="search"] { width: auto; min-width: 100px; flex: 1; }
  .catalog-list-head > button { margin-left: auto; }
  .summary-toolbar { gap: 10px; }
  .summary-toolbar .periods { flex-wrap: nowrap; width: 100%; overflow-x: auto; }
  .summary-toolbar .periods button { flex-shrink: 0; }
  #leadMetrics, #dashboardMetrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid { grid-template-columns: 1fr; }
  .card-directory-filters label { width: 100%; }
  .modal { padding: 10px; }
  .modal-panel { width: 100%; max-height: 92dvh; }
  .business-card .avatar { width: 64px; height: 64px; font-size: 30px; }
  th, td { padding: 8px 7px; }
}
@media print {
  .topbar, .sidebar, .page-head .actions, button, .tabs { display: none !important; }
  .workspace { display: block; }
  .content { padding: 0; }
  .page { display: none !important; }
  .page.active { display: block !important; }
  .card, .metric { box-shadow: none; border-color: #ccc; }
}
