:root {
  /* 三S统一视觉契约 */
  --tm-red: #d71c20;
  --tm-red-deep: #b81418;
  --tm-orange: #d27028;
  --tm-blue: #1769e0;
  --tm-navy: #163a68;
  --tm-ink: #181818;
  --tm-muted: #666666;
  --tm-line: #e6e6e6;
  --tm-bg: #f7f7f7;
  --tm-card: #ffffff;
  --tm-green: #499c60;
  --tm-shadow: 0 12px 36px rgba(39, 52, 73, .08);
  --tm-radius: 12px;
  --tm-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

/* 无障碍隐藏工具类：只给读屏软件。缺这条规则时，带 sr-only 的边界说明会按普通文本排版，
   把分类页筛选条和右侧栏撑成多列文字块，参考工具条的单行结构随之被破坏。 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--tm-ink); background: var(--tm-bg); font-family: var(--tm-font); font-size: 14px; line-height: 1.79; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 0; }
.tm-shell { min-height: 100vh; }
.tm-topbar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--tm-line); box-shadow: 0 2px 10px rgba(24,32,44,.04); }
.tm-topbar-inner { width: min(1240px, 94vw); margin: 0 auto; }
.tm-nav-utility { display: flex; align-items: center; gap: 20px; height: 72px; }
.tm-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; white-space: nowrap; }
.tm-brand-logo { width: 104px; height: 42px; display: block; object-fit: contain; object-position: left center; flex: 0 0 auto; }
.tm-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 11px; background: var(--tm-red); box-shadow: 0 4px 12px rgba(24,24,24,.08); }
.tm-location { display: inline-flex; align-items: center; gap: 5px; color: var(--tm-ink); font-size: 14px; white-space: nowrap; }
.tm-loc-ico { color: var(--tm-red); font-size: 15px; }
.tm-loc-select { padding: 5px 22px 5px 8px; border: 1px solid var(--tm-line); border-radius: 8px; color: var(--tm-ink); background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.tm-global-search { display: flex; align-items: center; flex: 1; max-width: 620px; height: 46px; padding: 0 18px; gap: 10px; border: 2px solid var(--tm-orange); border-radius: 24px; background: #fff; box-shadow: 0 3px 12px rgba(210,112,40,.08); }
.tm-global-search input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--tm-ink); }
.tm-search-ico { color: var(--tm-red); font-size: 16px; font-weight: 800; }
.tm-nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 14px; color: #333; white-space: nowrap; }
.tm-nav-link { color: #444; transition: color .15s; }
.tm-nav-link:hover { color: var(--tm-red); }
.tm-nav-login { padding: 8px 18px; border-radius: 999px; color: var(--tm-orange); background: #fff3ec; font-weight: 700; font-size: 13px; }
.tm-nav-login:hover { filter: brightness(.96); }
.tm-nav-right > .tm-nav-link:last-child { padding: 10px 20px; border-radius: 999px; color: #fff; background: var(--tm-orange); font-weight: 700; }
.tm-nav-right > .tm-nav-link:last-child:hover { color: #fff; filter: brightness(.96); }
.tm-topnav { display: flex; align-items: center; gap: 30px; height: 46px; border-top: 1px solid #f2f2f2; color: #333; font-size: 15px; overflow-x: auto; }
.tm-topnav a { color: #333; white-space: nowrap; }
.tm-topnav a:hover { color: var(--tm-red); }
.tm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; color: #fff; background: var(--tm-red); font-weight: 700; }
.tm-shell [hidden] { display: none !important; }
.tm-btn:hover { filter: brightness(.96); }
.tm-btn.ghost { color: var(--tm-red); background: #fdecec; }
.tm-btn.dark { background: var(--tm-ink); }
.tm-btn.small { min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
.tm-container { width: min(1240px, 94vw); margin: 0 auto; }
.tm-hero { padding: 48px 0 30px; background: var(--tm-bg); }
.tm-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; }
.tm-eyebrow { color: var(--tm-red); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.tm-hero h1 { margin: 12px 0 16px; font-size: clamp(34px, 5vw, 58px); line-height: 1.12; letter-spacing: -.04em; }
.tm-hero p { max-width: 580px; margin: 0; color: var(--tm-muted); font-size: 17px; line-height: 1.8; }
.tm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.tm-map-art { min-height: 280px; position: relative; overflow: hidden; border: 1px solid var(--tm-line); border-radius: 28px; background: var(--tm-bg); box-shadow: var(--tm-shadow); }
.tm-map-art:before, .tm-map-art:after { content: ""; position: absolute; inset: 12% -8%; border: 2px solid rgba(255,255,255,.8); border-radius: 48%; transform: rotate(-18deg); }
.tm-map-art:after { inset: 28% -10%; transform: rotate(22deg); }
.tm-pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; color: #fff; border: 4px solid #fff; border-radius: 50% 50% 50% 0; background: var(--tm-red); transform: rotate(-45deg); box-shadow: 0 5px 15px rgba(232,59,59,.25); }
.tm-pin span { transform: rotate(45deg); font-size: 17px; }
.tm-pin.one { top: 25%; left: 24%; } .tm-pin.two { top: 55%; left: 58%; background: var(--tm-orange); } .tm-pin.three { top: 36%; right: 17%; background: var(--tm-green); }
.tm-section { padding: 34px 0 58px; }
.tm-section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.tm-section-title h2 { margin: 0; font-size: 28px; }
.tm-section-title p { margin: 0; color: var(--tm-muted); }
.tm-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tm-filter, .tm-search { height: 42px; border: 1px solid var(--tm-line); border-radius: 10px; color: var(--tm-ink); background: #fff; transition: border-color .18s, box-shadow .18s; }
.tm-filter { padding: 0 14px; }
.tm-search { width: min(280px, 100%); padding: 0 14px; }
.tm-filter:focus, .tm-search:focus { border-color: var(--tm-red); outline: 0; box-shadow: 0 0 0 3px rgba(215,28,32,.08); }
.tm-content-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.tm-list { display: grid; gap: 14px; }
.tm-card { padding: 18px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: var(--tm-card); box-shadow: 0 4px 18px rgba(39,52,73,.04); transition: border-color .18s, box-shadow .18s, transform .18s; }
.tm-card:hover { border-color: rgba(215,28,32,.28); box-shadow: 0 12px 28px rgba(39,52,73,.08); transform: translateY(-1px); }
.tm-card-row { display: flex; justify-content: space-between; gap: 14px; }
.tm-card h3 { margin: 0 0 8px; font-size: 18px; }
.tm-card p { margin: 4px 0; color: var(--tm-muted); font-size: 14px; line-height: 1.6; }
.tm-tag { display: inline-flex; padding: 4px 8px; margin: 3px 4px 0 0; color: #d27028; border-radius: 6px; background: #fdf0e6; font-size: 12px; }
.tm-rating { color: #d27028; font-weight: 800; }
.tm-price { color: var(--tm-red); font-weight: 800; white-space: nowrap; }
.tm-mini-map { min-height: 420px; position: sticky; top: 18px; overflow: hidden; padding: 18px; border-radius: 18px; background: #eaf4ee; }
.tm-mini-map .tm-map-label { position: absolute; padding: 7px 10px; color: #3a3a3a; border-radius: 8px; background: rgba(255,255,255,.84); font-size: 12px; }
.tm-map-label.a { top: 22%; left: 16%; } .tm-map-label.b { top: 46%; right: 16%; } .tm-map-label.c { bottom: 20%; left: 35%; }
.tm-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; color: var(--tm-green); background: #eaf4ee; font-size: 12px; }
.tm-category-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tm-category-item { display: grid; place-items: center; gap: 7px; min-height: 82px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); color: var(--tm-ink); background: #fff; font-size: 13px; transition: .18s; }
.tm-category-item span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--tm-navy); font-weight: 800; }
.tm-category-item:nth-child(2) span { background: var(--tm-red); } .tm-category-item:nth-child(3) span { background: var(--tm-orange); } .tm-category-item:nth-child(4) span { background: var(--tm-green); } .tm-category-item:nth-child(5) span { background: var(--tm-blue); } .tm-category-item:nth-child(6) span { background: var(--tm-navy); }
.tm-category-item:hover { color: var(--tm-red); border-color: rgba(215,28,32,.34); transform: translateY(-2px); }
.tm-list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; color: var(--tm-muted); font-size: 13px; }
.tm-list-toolbar strong { color: var(--tm-ink); }
.tm-map-tools { display: flex; gap: 8px; margin-top: 12px; }
.tm-map-tool { padding: 8px 10px; border: 1px solid rgba(22,58,104,.12); border-radius: 8px; color: var(--tm-navy); background: rgba(255,255,255,.8); font-size: 12px; }
.tm-blood { width: 100%; height: 26px; display: grid; grid-template-columns: repeat(100, minmax(0, 1fr)); gap: 0; align-items: center; padding: 4px; margin-top: 8px; overflow: hidden; border: 2px solid #221818; border-radius: 8px; background: #221818; box-shadow: inset 0 0 0 1px #f5d37a, 0 3px 8px rgba(34,24,24,.16); }
.tm-blood i { width: auto; min-width: 0; height: 14px; border-radius: 1px; background: #5d5d5d; }
.tm-discovery-score-line .tm-blood { flex: 1 1 220px; min-width: 220px; }
.tm-blood i.on.tier-purple { background: #A855F7; } .tm-blood i.on.tier-blue { background: #1769E0; } .tm-blood i.on.tier-green { background: #499C60; } .tm-blood i.on.tier-yellow { background: #FFD020; } .tm-blood i.on.tier-red { background: #E02222; }
.tm-blood-label { color: var(--tm-muted); font-size: 12px; }
.tm-list-blood { max-width: 360px; margin-top: 7px; }
.tm-list-blood .tm-blood { height: 20px; margin-top: 0; padding: 3px; }
.tm-list-blood .tm-blood i { height: 10px; }
.tm-list-blood .tm-blood-label { display: block; margin-top: 3px; }
.tm-list-blood-inline { display: inline-flex; align-items: center; gap: 6px; min-width: 190px; max-width: 250px; vertical-align: middle; }
.tm-list-blood-inline .tm-blood { flex: 1 1 auto; width: 168px; height: 14px; margin: 0; padding: 2px; border-width: 1px; border-radius: 4px; box-shadow: inset 0 0 0 1px #f5d37a; }
.tm-list-blood-inline .tm-blood i { height: 6px; }
.tm-list-blood-value { min-width: 30px; color: var(--tm-red); font-size: 13px; font-weight: 800; white-space: nowrap; }
.tm-discovery-score-line #coach-blood-bar, .tm-discovery-score-line #detail-blood-bar { flex: 1 1 240px; min-width: 220px; }
.tm-discovery-score-line #coach-blood-bar .tm-blood, .tm-discovery-score-line #detail-blood-bar .tm-blood { margin-top: 0; }
.tm-radar-chart { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid var(--sss-border); border-radius: var(--sss-radius-panel); background: var(--sss-white); }
.tm-radar-visual { width: 100%; max-width: 260px; aspect-ratio: 1; justify-self: center; }
.tm-radar-visual svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tm-radar-grid { fill: none; stroke: #d9dee5; stroke-width: 1; }
.tm-radar-spoke { stroke: #e7eaee; stroke-width: 1; }
.tm-radar-fill { fill: rgba(215, 28, 32, .18); stroke: var(--sss-red); stroke-width: 2; }
.tm-radar-dot { fill: var(--sss-red); stroke: var(--sss-white); stroke-width: 1.5; }
.tm-radar-label { fill: var(--sss-text); font-size: 10px; }
.tm-radar-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.tm-radar-values .tm-radar-axis { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--sss-border); color: var(--sss-muted); font-size: 12px; }
.tm-radar-values .tm-radar-axis strong { color: var(--sss-black); font-size: 12px; }
@media (max-width: 640px) { .tm-radar-chart { grid-template-columns: 1fr; } .tm-radar-values { grid-template-columns: 1fr 1fr; } }
.tm-login { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; background: #f7f7f7; }
.tm-login-grid { width: min(960px, 100%); display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--tm-shadow); }
.tm-login-intro { padding: 46px; color: #fff; background: #d71c20; }
.tm-login-intro h1 { margin: 20px 0 14px; font-size: 38px; }
.tm-login-intro p { color: rgba(255,255,255,.85); line-height: 1.8; }
.tm-login-points { margin: 30px 0 0; padding: 0; list-style: none; line-height: 2.4; color: rgba(255,255,255,.9); }
.tm-login-card { padding: 40px 46px; }
.tm-login-card h2 { margin: 0 0 22px; }
.tm-tabs { display: flex; gap: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--tm-line); }
.tm-tab { padding: 0 0 12px; color: var(--tm-muted); background: transparent; }
.tm-tab.active { color: var(--tm-red); border-bottom: 2px solid var(--tm-red); font-weight: 800; }
.tm-form { display: grid; gap: 13px; }
.tm-field { display: grid; gap: 7px; color: var(--tm-muted); font-size: 13px; }
.tm-field input, .tm-field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--tm-line); border-radius: 9px; outline: none; }
.tm-field input:focus, .tm-field select:focus { border-color: var(--tm-red); box-shadow: 0 0 0 3px rgba(232,59,59,.1); }
.tm-field-inline { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.tm-tip { min-height: 22px; color: var(--tm-muted); font-size: 13px; }
.tm-tip.success { color: var(--tm-green); }
.tm-qr { display: grid; place-items: center; gap: 14px; min-height: 210px; border: 1px dashed #e6e6e6; border-radius: 14px; background: #f7f7f7; }
.tm-qr-box { width: 130px; height: 130px; display: grid; place-items: center; color: #fff; background: #181818; font-size: 12px; }
.tm-console { min-height: 100vh; display: grid; grid-template-columns: 200px 1fr; }
.tm-sidebar { padding: 24px 16px; color: #999999; background: #181818; }
.tm-sidebar .tm-brand { color: #fff; margin: 0 8px 35px; }
.tm-side-label { margin: 20px 10px 8px; color: #999999; font-size:12px; letter-spacing: .12em; }
.tm-side-link { display: flex; justify-content: space-between; padding: 12px 12px; margin: 3px 0; border-radius: 9px; font-size: 14px; }
.tm-side-link:hover { color: #fff; background: rgba(255,255,255,.1); } .tm-side-link.active { color: #fff; background: #d71c20; }
.tm-console-main { min-width: 0; }
.tm-console-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 30px; background: #fff; border-bottom: 1px solid var(--tm-line); }
.tm-console-top h1 { margin: 0; font-size: 22px; }
.tm-user { color: var(--tm-muted); font-size: 14px; }
.tm-console-body { padding: 28px 30px 50px; }
.tm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tm-kpi strong { display: block; margin-top: 10px; font-size: 28px; }
.tm-kpi small { color: var(--tm-muted); }
.tm-console-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 18px; }
.tm-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tm-card-head h2 { margin: 0; font-size: 17px; }
.tm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tm-table th, .tm-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--tm-line); }
.tm-table th { color: var(--tm-muted); font-weight: 500; }
.tm-status { color: var(--tm-green); }
.tm-banner { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 20px; margin-bottom: 18px; border: 1px solid #e6e6e6; border-radius: 15px; background:#f7f7f7; }
.tm-banner strong { display: block; margin-bottom: 6px; }
.tm-banner span { color: var(--tm-muted); font-size: 13px; }
.tm-modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 18px; background: rgba(24,32,44,.46); }
.tm-modal { width: min(480px, 100%); padding: 26px; border-radius: 18px; background: #fff; box-shadow: var(--tm-shadow); }
.tm-modal h2 { margin: 0 0 8px; }
.tm-modal-close { float: right; color: var(--tm-muted); background: transparent; font-size: 22px; }
.tm-hidden { display: none !important; }
.tm-footer { padding: 24px 0; color: var(--tm-muted); text-align: center; font-size: 12px; }
.tm-breadcrumb { padding: 18px 0 0; color: var(--tm-muted); font-size: 13px; }
.tm-detail-head { display: grid; grid-template-columns: 250px 1fr auto; gap: 24px; align-items: center; padding: 28px 0; }
.tm-detail-cover { min-height: 180px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; color: #fff; background: #2d465f; font-size: 30px; font-weight: 900; letter-spacing: .08em; }
.tm-detail-title h1 { margin: 0 0 10px; font-size: 30px; }
.tm-detail-meta { color: var(--tm-muted); line-height: 1.9; }
.tm-detail-score { min-width: 205px; padding: 18px; border-radius: 14px; background: #f7f7f7; }
.tm-detail-score strong { display: block; color: var(--tm-red); font-size: 34px; }
.tm-detail-score span { color: var(--tm-muted); font-size: 13px; }
.tm-detail-nav { display: flex; gap: 26px; margin-top: 18px; padding: 0 18px; border: 1px solid var(--dp-line); border-radius: var(--dp-radius-sm); background: #fff; box-shadow: var(--dp-card-shadow); }
.tm-detail-nav a { padding: 14px 0; color: var(--tm-muted); font-weight: 700; }
.tm-detail-nav a.active, .tm-detail-nav a:hover { color: var(--tm-red); border-bottom: 2px solid var(--tm-red); }
.tm-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; padding: 24px 0 58px; }
.tm-power-list { display: grid; gap: 12px; margin-top: 14px; }
.tm-power-row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; color: var(--tm-muted); font-size: 13px; }
.tm-power-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e6e6e6; }
.tm-power-fill { height: 100%; border-radius: inherit; background: #d71c20; }
.tm-power-main { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 13px 14px 12px; margin: 14px 0 18px; border: 3px solid #2d465f; border-radius: 6px; background: #eaf0f5; box-shadow: inset 0 0 0 2px #2d465f, 0 4px 0 rgba(11,67,143,.08); }
.tm-power-main-label { color: #2d465f; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.tm-power-main-track { height: 18px; padding: 3px; border: 2px solid #2d465f; background: #f7f7f7; box-shadow: inset 0 1px 2px rgba(0,0,0,.12); }
.tm-power-main-fill { height: 100%; background: #b8954c; }
.tm-power-main-value { color: #2d465f; font-size: 18px; font-weight: 900; white-space: nowrap; }
.tm-detail-course { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--tm-line); }
.tm-detail-course h3 { margin: 0 0 5px; font-size: 16px; }
.tm-detail-course p { margin: 0; color: var(--tm-muted); font-size: 13px; line-height: 1.6; }
.tm-gallery { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: 110px 110px; gap: 8px; margin-top: 14px; }
.tm-media-card { display: grid; place-items: end start; min-height: 0; padding: 12px; overflow: hidden; color: #fff; border-radius: 10px; background: #2d465f; font-weight: 700; }
.tm-media-card.main { grid-row: span 2; background: #b8954c; }
.tm-media-card.video { position: relative; background: #2d465f; }
.tm-media-card.video:before { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: #fff; }
.tm-media-card.tm-media-placeholder { color: var(--sss-muted); background: var(--sss-bg); border: 1px solid var(--sss-border); font-weight: 600; }
.tm-media-card.tm-media-placeholder.main, .tm-media-card.tm-media-placeholder.video { background: var(--sss-bg); }
.tm-media-card.tm-media-placeholder.video:before { display: none; }
.tm-media-card img, .tm-discovery-media-main img, .tm-discovery-media-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-media-placeholder-text, .tm-discovery-media-placeholder { white-space: pre-line; }
.tm-discovery-media-main.tm-media-placeholder, .tm-discovery-media-thumb.tm-media-placeholder { color: var(--sss-muted); background: var(--sss-bg); }
.tm-sticky-book { position: sticky; top: 18px; height: max-content; }
.tm-sticky-book .tm-price { display: block; margin: 10px 0 16px; font-size: 26px; }
.tm-review { padding: 14px 0; border-bottom: 1px solid var(--tm-line); }
.tm-review p { margin: 6px 0 0; color: var(--tm-muted); line-height: 1.6; font-size: 13px; }
/* 评价标签云：对齐参考“评价(N)”标题下的分面条，胶囊形、计数与标签同色系，选中用三S标准红。 */
.tm-discovery-review-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.tm-review-tag { padding: 6px 14px; border: 0; border-radius: 999px; background: #f2f2f2; color: #444; font-size: 13px; line-height: 1.4; }
.tm-review-tag em { margin-left: 6px; font-style: normal; color: #999; }
.tm-review-tag:hover { background: #ebebeb; }
.tm-review-tag.active { background: var(--tm-red); color: #fff; }
.tm-review-tag.active em { color: rgba(255, 255, 255, .82); }
@media (max-width: 800px) { .tm-detail-head, .tm-detail-layout { grid-template-columns: 1fr; } .tm-detail-cover { min-height: 150px; } .tm-sticky-book { position: static; } }
@media (max-width: 900px) {
  .tm-nav-utility { height: 56px; gap: 10px; }
  .tm-brand-name { font-size: 16px; }
  .tm-brand-logo { width: 80px; height: 32px; }
  .tm-nav-right .tm-nav-link, .tm-location { display: none; }
  .tm-global-search { max-width: none; height: 36px; }
  .tm-topnav { gap: 20px; font-size: 14px; }
}
@media (max-width: 800px) {
  .tm-topbar { position: static; box-shadow: none; }
  .tm-hero-grid, .tm-content-grid, .tm-login-grid, .tm-console-grid { grid-template-columns: 1fr; }
  .tm-hero { padding-top: 38px; } .tm-mini-map { min-height: 250px; position: static; }
  .tm-login-intro, .tm-login-card { padding: 30px 24px; }
  .tm-console { grid-template-columns: 1fr; } .tm-sidebar { display: none; }
  .tm-console-top, .tm-console-body { padding-left: 18px; padding-right: 18px; }
  .tm-kpis { grid-template-columns: repeat(2, 1fr); }
  .tm-table { min-width: 560px; } .tm-card.table-wrap { overflow-x: auto; }
  .tm-category-nav { grid-template-columns: repeat(3, 1fr); }
}

/* ---- 首页一级业务入口：当前基线为 7 个，参考统一发现式卡片密度，品牌层仍使用三S ---- */
.tm-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.tm-entry { display: grid; grid-template-columns: 50px 1fr; grid-template-rows: auto 1fr auto; column-gap: 14px; min-height: 132px; padding: 20px; border: 1px solid var(--tm-line); border-radius: 14px; background: #fff; color: var(--tm-ink); text-decoration: none; box-shadow: 0 4px 18px rgba(39,52,73,.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tm-entry:hover { transform: translateY(-2px); border-color: rgba(215,28,32,.28); box-shadow: 0 12px 28px rgba(39,52,73,.10); }
.tm-entry-mark { grid-row: 1 / 4; display: grid; place-items: center; width: 50px; height: 50px; margin: 0; border-radius: 14px; background: #d71c20; color: #fff; font-size: 22px; font-weight: 900; }
.tm-entry:nth-child(2) .tm-entry-mark { background: #b8954c; }
.tm-entry:nth-child(3) .tm-entry-mark { background: #0e7d4d; }
.tm-entry:nth-child(4) .tm-entry-mark { background: #2d6fc4; }
.tm-entry:nth-child(5) .tm-entry-mark { background: #7a4db8; }
.tm-entry:nth-child(6) .tm-entry-mark { background: #c2571a; }
.tm-entry h3 { margin: 0 0 4px; font-size: 16px; }
.tm-entry p { margin: 0; color: var(--tm-muted, #3a5a77); font-size: 12px; line-height: 1.5; }
.tm-entry .tm-badge { align-self: end; margin-top: 10px; }
@media (max-width: 800px) { .tm-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tm-entry-grid { grid-template-columns: 1fr; } }

/* ---- 赛事中心 / 在线学习 / 课程详情 / 上门教练 共用 ---- */
.tm-state-box { margin: 18px 0; padding: 18px; border: 2px dashed #b8954c; border-radius: 8px; background: #fbf6e9; color: #3a5a77; font-size: 13px; line-height: 1.7; }
.tm-state-box b { color: #0a253c; }
.tm-card-list { display: grid; gap: 14px; margin-top: 14px; }
.tm-item-card { padding: 16px; }
.tm-item-card h3 { margin: 0 0 6px; font-size: 17px; }
.tm-item-card p { margin: 4px 0; color: var(--tm-muted, #3a5a77); font-size: 13px; line-height: 1.6; }
.tm-item-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tm-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eaf0f5; color: #0a253c; font-size: 12px; }
.tm-mode-tabs { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.tm-mode-tab { padding: 6px 12px; border: 2px solid #2d465f; border-radius: 999px; background: #fff; color: #0a253c; font-size: 13px; cursor: pointer; }
.tm-mode-tab.active { background: #2d465f; color: #fff; }
.tm-rule-card { margin: 10px 0; padding: 14px; border: 1px solid var(--tm-line, #dbe5ee); border-radius: 8px; background: #f7fafc; }
.tm-rule-card h4 { margin: 0 0 8px; font-size: 14px; color: #0a253c; }
.tm-rule-card ol { margin: 0; padding-left: 20px; color: var(--tm-muted, #3a5a77); font-size: 13px; line-height: 1.8; }
.tm-rule-card li { margin: 4px 0; }
.tm-note { margin-top: 6px; color: var(--tm-muted, #3a5a77); font-size: 12px; }

/* ---- 第二批：国家项目主库多级分类 / 运动商城 / 统一收费规则 ---- */
.tm-project-tree { display: grid; gap: 10px; }
.tm-project-major { border: 1px solid var(--tm-line, #dbe5ee); border-radius: 12px; padding: 14px; background: #fff; }
.tm-project-major > h3 { margin: 0 0 4px; font-size: 17px; color: #0a253c; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tm-project-major > p { margin: 0 0 10px; color: var(--tm-muted, #3a5a77); font-size: 12px; }
.tm-project-subs { display: grid; gap: 8px; }
.tm-project-sub { border: 1px dashed var(--tm-line, #cbd7e3); border-radius: 10px; padding: 10px 12px; background: #f7fafc; }
.tm-project-sub h4 { margin: 0 0 6px; font-size: 14px; color: #0a253c; }
.tm-minor-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-minor-chip { display: inline-flex; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--tm-line, #dbe5ee); background: #fff; color: #0a253c; font-size: 12px; text-decoration: none; cursor: pointer; }
.tm-minor-chip:hover, .tm-minor-chip.active { border-color: var(--tm-red, #d71c20); color: var(--tm-red, #d71c20); }
.tm-project-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eaf4ee; color: var(--tm-green, #0e7d4d); }
.tm-project-status.trial { background: #fdf0e6; color: #c2571a; }
.tm-category-leaves { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-leaf-chip { display: inline-flex; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--tm-line, #dbe5ee); background: #fff; color: #0a253c; font-size: 13px; text-decoration: none; cursor: pointer; }
.tm-leaf-chip:hover, .tm-leaf-chip.active { border-color: var(--tm-red, #d71c20); background: #fdf0f5; color: var(--tm-red, #d71c20); }
.tm-leaf-tags { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: middle; }
.tm-leaf-tags .tm-tag { margin: 0; padding: 1px 6px; font-size: 11px; border-radius: 999px; background: #eaf0f5; color: #0a253c; border: 0; }
.tm-mall-status { margin: 14px 0; padding: 14px; border: 1px dashed var(--tm-line, #cbd7e3); border-radius: 10px; background: #fff; font-size: 13px; color: var(--tm-muted, #3a5a77); line-height: 1.7; }
.tm-mall-status strong { color: #0a253c; }
.tm-mall-sections { display: grid; gap: 14px; }
.tm-mall-section { border: 1px solid var(--tm-line, #dbe5ee); border-radius: 12px; padding: 14px; background: #fff; }
.tm-mall-section > h3 { margin: 0 0 4px; font-size: 16px; color: #0a253c; }
.tm-mall-section > p { margin: 0 0 10px; color: var(--tm-muted, #3a5a77); font-size: 12px; }
.tm-mall-goods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tm-mall-good { border: 1px solid var(--tm-line, #dbe5ee); border-radius: 10px; padding: 12px; background: #f7fafc; }
.tm-mall-good h4 { margin: 0 0 4px; font-size: 14px; color: #0a253c; }
.tm-mall-good p { margin: 2px 0; color: var(--tm-muted, #3a5a77); font-size: 12px; line-height: 1.5; }
.tm-mall-good .tm-price { font-size: 15px; font-weight: 800; color: var(--tm-red, #d71c20); margin-top: 6px; }
.tm-mall-good .tm-actions .tm-btn.small { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; text-decoration: none; }
.tm-fee-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.tm-fee-table th, .tm-fee-table td { border: 1px solid var(--tm-line, #dbe5ee); padding: 8px 10px; text-align: left; color: #0a253c; }
.tm-fee-table th { background: #f0f5fa; font-weight: 700; }
.tm-fee-table td { color: var(--tm-muted, #3a5a77); }
.tm-status-config { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #fdf0e6; color: #c2571a; font-size: 12px; font-weight: 700; }

/* ---- C 端页面串联：统一顶部导航激活态与统一状态盒变体 ---- */
.tm-topnav a.active { color: var(--tm-red, #d71c20); font-weight: 800; }
.tm-topnav a.active::after { content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--tm-red, #d71c20); }
.tm-state-box.ok { border-color: #0e7d4d; background: #f1f8f3; }
.tm-state-box.error { border-color: #b3261e; background: #fdf1f0; }
.tm-state-box.config { border-color: #c2571a; background: #fdf6ec; }
.tm-return-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 4px; font-size: 13px; color: var(--tm-muted, #3a5a77); }
.tm-return-bar a { color: var(--tm-red, #d71c20); font-weight: 700; }

/* ---- 地图页：场馆坐标投影（正式地图供应商未配置时按坐标投影）---- */
.tm-map-canvas { position: relative; height: 460px; margin-top: 14px; border: 1px solid var(--tm-line, #dbe5ee); border-radius: 12px; background: #eef4f8; overflow: hidden; }
.tm-map-venue-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--tm-red, #d71c20); box-shadow: 0 0 10px rgba(215, 28, 32, .55); }
.tm-map-venue-tag { position: absolute; font-size: 12px; color: #0a253c; background: rgba(255, 255, 255, .92); border: 1px solid var(--tm-line, #dbe5ee); border-radius: 6px; padding: 2px 8px; white-space: nowrap; text-decoration: none; box-shadow: 0 2px 8px rgba(30, 45, 55, .12); }
.tm-map-venue-tag:hover { border-color: var(--tm-red, #d71c20); color: var(--tm-red, #d71c20); }
.tm-map-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tm-muted, #3a5a77); font-size: 13px; text-align: center; padding: 20px; line-height: 1.8; }

/* ---- 地图状态说明 ---- */
.tm-config-note { margin-top: 8px; color: var(--tm-muted, #3a5a77); font-size: 12px; line-height: 1.7; }

/* =====================================================================
 * 统一发现式排版层（2026-08-21）：统一 C 端首页/列表/详情页的尺寸、圆角、间距与信息层级。
 * 只使用三S自有色系/图标/字体/文案，不复制统一发现模块品牌资源。
 * ===================================================================== */
:root {
  --dp-max: 1240px;
  --dp-radius: 16px;
  --dp-radius-sm: 12px;
  --dp-card-shadow: 0 2px 10px rgba(24, 32, 44, .05);
  --dp-card-hover: 0 10px 24px rgba(24, 32, 44, .10);
  --dp-bg: #f5f6f7;
  --dp-ink: #222;
  --dp-muted: #888;
  --dp-line: #ececec;
  --dp-price: #ff5339;
}
body { background: var(--dp-bg); }
.tm-shell { background: var(--dp-bg); }

/* ---- 首页内容骨架 ---- */
.tm-discovery-body { padding-bottom: 46px; }
.tm-discovery-container { width: min(1240px, 94vw); margin: 0 auto; }
.tm-discovery-section { padding: 22px 0 6px; }
.tm-discovery-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.tm-discovery-section-head h2 { margin: 0; font-size: 22px; color: var(--dp-ink); }
.tm-discovery-section-head p { margin: 0; color: var(--dp-muted); font-size: 13px; }

/* ---- 首页：5 列 × 2 行一级业务/项目分类大卡片（图标左 · 文字右 · 约 150-170px 高）---- */
.tm-discovery-cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
/* 项目主库由现有 home-feed.js 注入到既有容器；让注入卡片参与同一层五列网格。 */
#project-cards { display: contents; }
.tm-discovery-cat-card {
  position: relative; display: flex; align-items: center; gap: 16px;
  min-height: 80px; padding: 0 18px; border-radius: var(--dp-radius);
  background: #fff; border: 1px solid var(--dp-line); box-shadow: var(--dp-card-shadow);
  text-decoration: none; color: var(--dp-ink);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.tm-discovery-cat-card:hover { border-color: rgba(215,28,32,.30); box-shadow: var(--dp-card-hover); transform: translateY(-2px); }
.tm-discovery-cat-ico {
  flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 0; color: #fff; font-size: 0; font-weight: 900;
  background: transparent; box-shadow: none;
}
.tm-discovery-cat-ico img { display: block; width: 48px; height: 48px; object-fit: contain; }
.tm-discovery-cat-card:nth-child(2) .tm-discovery-cat-ico { background: #b8954c; box-shadow: none; }
.tm-discovery-cat-card:nth-child(3) .tm-discovery-cat-ico { background: #499c60; box-shadow: none; }
.tm-discovery-cat-card:nth-child(4) .tm-discovery-cat-ico { background: #2d465f; box-shadow: none; }
.tm-discovery-cat-card:nth-child(5) .tm-discovery-cat-ico { background: #d27028; box-shadow: none; }
.tm-discovery-cat-card:nth-child(6) .tm-discovery-cat-ico { background: #d71c20; box-shadow: none; }
.tm-discovery-cat-card:nth-child(7) .tm-discovery-cat-ico { background: #2d465f; box-shadow: none; }
.tm-discovery-cat-card:nth-child(8) .tm-discovery-cat-ico { background: #499c60; box-shadow: none; }
.tm-discovery-cat-card:nth-child(9) .tm-discovery-cat-ico { background: #d27028; box-shadow: none; }
.tm-discovery-cat-card:nth-child(10) .tm-discovery-cat-ico { background: #b8954c; box-shadow: none; }
.tm-discovery-cat-body { min-width: 0; }
.tm-discovery-cat-body h3 { margin: 0 0 6px; font-size: 17px; color: var(--dp-ink); }
.tm-discovery-cat-body p { margin: 0; color: var(--dp-muted); font-size: 12px; line-height: 1.55; }
.tm-discovery-cat-config { border-style: dashed; border-color: #d8c19a; background: #fffaf2; }
.tm-discovery-cat-config .tm-discovery-cat-ico { background: #b8954c; box-shadow: none; color: #fff; }

/* ---- 首页：5 列瀑布流体育内容卡片 ---- */
.tm-discovery-waterfall { column-count: 5; column-gap: 18px; }
.tm-discovery-waterfall.tm-discovery-feed-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  columns: auto;
}
.tm-discovery-waterfall.tm-discovery-feed-grid .tm-discovery-feed { margin: 0; }
.tm-discovery-feed {
  display: inline-block; width: 100%; margin: 0 0 18px; break-inside: avoid;
  border-radius: var(--dp-radius); background: #fff; border: 1px solid var(--dp-line);
  box-shadow: var(--dp-card-shadow); overflow: hidden; text-decoration: none; color: var(--dp-ink);
  transition: box-shadow .18s, transform .18s;
}
.tm-discovery-feed:hover { box-shadow: var(--dp-card-hover); transform: translateY(-2px); }
.tm-discovery-feed-media { position: relative; display: block; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #eef1f4; }
.tm-discovery-feed-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-discovery-media-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #8c8c8c; background: #eef1f4; font-size: 13px; font-weight: 600; }
.tm-discovery-feed-media .tm-discovery-media-tag { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(215,28,32,.9); color: #fff; font-size: 11px; font-weight: 700; }
.tm-discovery-feed-body { padding: 13px 14px 14px; }
.tm-discovery-feed-body { display: block; }
.tm-discovery-feed-body h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.45; color: var(--dp-ink); }
.tm-discovery-feed-body p { margin: 0 0 9px; color: var(--dp-muted); font-size: 12px; line-height: 1.55; }
.tm-discovery-feed-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-width: 0; color: var(--dp-muted); font-size: 12px; line-height: 1.5; }
.tm-discovery-feed-meta b { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dp-muted); font-weight: 600; }
.tm-discovery-feed-meta .tm-discovery-feed-time { flex: 1 0 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-discovery-feed-meta .tm-discovery-feed-like { flex: 0 0 auto; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-discovery-config-block { display: block; margin: 0 0 18px; padding: 22px; border: 1px dashed #d8c19a; border-radius: var(--dp-radius); background: #fffaf2; color: #8a7346; font-size: 13px; line-height: 1.8; }

/* ---- 频道/列表页：统一发现式类型切换 + 筛选条 + 结果卡片 ---- */
.tm-discovery-channel-head { margin-top: 12px; padding: 0 0 16px; }
.tm-discovery-channel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--dp-ink); font-size: 18px; font-weight: 700; }
.tm-discovery-facets { border: 1px solid var(--dp-line); border-radius: var(--dp-radius-sm); background: #fff; box-shadow: var(--dp-card-shadow); overflow: hidden; }
.tm-discovery-facet-row { display: flex; align-items: flex-start; gap: 10px; min-height: 52px; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; }
.tm-discovery-facet-row:last-child { border-bottom: 0; }
.tm-discovery-project-subrow { padding-top: 8px; padding-bottom: 8px; background: #fafafa; }
.tm-discovery-project-subrow .tm-discovery-facet-chip { color: #666; }
.tm-discovery-project-subrow .tm-discovery-facet-chip.active { color: #fff; background: var(--tm-orange); }
.tm-discovery-facet-label { flex: 0 0 44px; padding-top: 4px; color: #888; font-size: 13px; }
.tm-discovery-facet-chip, .tm-discovery-facet-tab, .tm-discovery-facet-more { padding: 4px 12px; border: 0; border-radius: 999px; color: #555; background: transparent; font-size: 13px; white-space: nowrap; }
.tm-discovery-facet-chip:hover, .tm-discovery-facet-tab:hover, .tm-discovery-facet-more:hover { color: var(--tm-red); }
.tm-discovery-facet-chip.active, .tm-discovery-facet-tab.active { color: #fff; background: var(--tm-orange); }
.tm-discovery-facet-more { margin-left: auto; color: var(--tm-orange); cursor: pointer; }
.tm-discovery-location-row { align-items: stretch; }
.tm-discovery-location-list { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 2px 0 0 54px; padding: 10px 14px; border: 1px solid #f0f0f0; background: #fafafa; color: #666; }
.tm-discovery-location-list a { white-space: nowrap; }
.tm-discovery-location-list a:hover { color: var(--tm-red); }
.tm-discovery-project-directory { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--dp-line); border-radius: var(--dp-radius-sm); background: #fff; box-shadow: var(--dp-card-shadow); }
.tm-discovery-project-directory-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tm-discovery-project-directory-head .tm-tip { flex: 1; min-height: 0; }
.tm-discovery-project-leaves { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.tm-discovery-channel-head + .tm-discovery-section { padding-top: 0; }
.tm-discovery-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 14px; }
.tm-discovery-type-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px; border: 1px solid var(--dp-line); border-radius: var(--dp-radius-sm); background: #fff; box-shadow: var(--dp-card-shadow); }
.tm-discovery-type-tab { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--dp-line); background: #fff; color: #444; font-size: 13px; font-weight: 600; cursor: pointer; }
.tm-discovery-type-tab:hover { border-color: var(--tm-red); color: var(--tm-red); }
.tm-discovery-type-tab.active { background: var(--tm-red); border-color: var(--tm-red); color: #fff; }
.tm-discovery-filter-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--dp-radius-sm); background: #fff; border: 1px solid var(--dp-line); box-shadow: var(--dp-card-shadow); }
.tm-discovery-filter-group { display: flex; align-items: center; gap: 8px; }
.tm-discovery-filter-label { color: #888; font-size: 12px; white-space: nowrap; }
.tm-discovery-filter-group .tm-filter, .tm-discovery-filter-group .tm-search { border-radius: 8px; height: 38px; }

.tm-discovery-results { display: grid; gap: 12px; }
.tm-discovery-result {
  display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 16px;
  padding: 14px; border-radius: var(--dp-radius-sm); background: #fff;
  border: 1px solid var(--dp-line); box-shadow: var(--dp-card-shadow);
  text-decoration: none; color: var(--dp-ink); transition: box-shadow .18s, transform .18s;
}
.tm-discovery-result:hover { box-shadow: var(--dp-card-hover); transform: translateY(-1px); }
.tm-discovery-result-thumb { position: relative; width: 168px; height: 118px; border-radius: 10px; overflow: hidden; background: #eef1f4; }
.tm-discovery-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tm-discovery-result-thumb .tm-discovery-media-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #8c8c8c; background: #eef1f4; font-size: 13px; font-weight: 600; }
.tm-discovery-result-info { min-width: 0; }
.tm-discovery-result-info h3 { margin: 0 0 6px; font-size: 16px; color: var(--dp-ink); }
.tm-discovery-result-info h3 a { color: inherit; }
.tm-discovery-result-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #666; }
.tm-discovery-result-line .tm-discovery-rating { color: var(--tm-red); font-weight: 800; }
.tm-discovery-result-line .tm-discovery-count { color: #999; }
.tm-discovery-result-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.tm-discovery-result-tags .tm-tag { background: #f6f8fa; color: #555; border: 1px solid var(--dp-line); }
.tm-discovery-result-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.tm-discovery-result-right .tm-discovery-price { color: var(--dp-price); font-size: 18px; font-weight: 800; white-space: nowrap; }
.tm-discovery-result-right .tm-discovery-status { font-size: 12px; color: #999; }
.tm-discovery-pager { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: #888; font-size: 13px; }

/* ---- 详情内页：统一发现式主体首屏（主体信息 + 主图/媒体区）---- */
.tm-discovery-store-head { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 26px; align-items: stretch; padding: 28px; margin-top: 10px; border: 1px solid var(--dp-line); border-radius: var(--dp-radius); background: #fff; box-shadow: var(--dp-card-shadow); }
.tm-discovery-media { display: grid; grid-template-columns: 1fr; grid-template-rows: 210px 78px; gap: 8px; order: 2; }
.tm-discovery-media-main { border-radius: var(--dp-radius-sm); overflow: hidden; display: grid; place-items: center; color: #fff; background: #2d465f; font-size: 26px; font-weight: 900; }
.tm-discovery-media-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tm-discovery-media-thumb { border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: #fff; background: #7a8794; font-size: 15px; font-weight: 700; }
.tm-discovery-store-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; order: 1; }
.tm-discovery-store-info h1 { margin: 10px 0 8px; font-size: 28px; color: var(--dp-ink); }
.tm-discovery-score-line[hidden] { display: none !important; }
.tm-discovery-store-meta { color: #666; font-size: 13px; line-height: 1.9; }
.tm-discovery-score-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0 6px; }
.tm-discovery-score-num { font-size: 30px; font-weight: 800; color: var(--tm-red); }
.tm-discovery-score-lab { color: #999; font-size: 12px; }
.tm-discovery-score-price { color: #333; font-size: 14px; font-weight: 700; }
/* 榜单徽章：对齐参考店铺详情“XX榜·第N名”的位置与形态，用三S标准红描边胶囊。 */
.tm-discovery-board { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 5px 12px; border: 1px solid rgba(215, 28, 32, .28); border-radius: 999px; background: rgba(215, 28, 32, .06); color: var(--tm-red); font-size: 13px; font-weight: 700; line-height: 1.4; }
.tm-discovery-board::before { content: "榜"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--tm-red); color: #fff; font-size: 11px; font-weight: 700; }
.tm-discovery-board::after { content: "›"; color: rgba(215, 28, 32, .6); font-weight: 700; }
.tm-discovery-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tm-discovery-store-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tm-discovery-store-actions .tm-btn { min-height: 42px; padding: 0 22px; border-radius: 10px; }
.tm-discovery-store-note { margin: 10px 0 0; color: #999; font-size: 12px; line-height: 1.7; }
.tm-discovery-sidebar { position: sticky; top: 76px; height: max-content; }
.tm-discovery-partition { margin-bottom: 18px; }
.tm-discovery-partition .tm-card-head h2 { font-size: 18px; }
.tm-discovery-map-block { margin-top: 12px; padding: 30px 16px; text-align: center; border-radius: 10px; background: #eaf0f5; color: #40515c; font-size: 13px; }
.tm-discovery-empty { padding: 18px 0; color: #999; font-size: 13px; line-height: 1.8; }

/* ---- 卡片与文字统一令牌（首页/列表/详情共用）---- */
.tm-card { border-radius: var(--dp-radius-sm); box-shadow: var(--dp-card-shadow); }
.tm-item-card { border-radius: var(--dp-radius-sm); }
.tm-card-list { gap: 12px; }
.tm-section-title h2 { font-size: 22px; }
.tm-detail-head { grid-template-columns: 340px minmax(0, 1fr) auto; gap: 24px; padding: 26px 0 8px; }
.tm-detail-cover { border-radius: var(--dp-radius-sm); }
.tm-detail-score { border-radius: var(--dp-radius-sm); }
.tm-detail-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; padding: 22px 0 50px; }
.tm-sticky-book { border-radius: var(--dp-radius-sm); box-shadow: var(--dp-card-shadow); }
.tm-breadcrumb { padding: 18px 0 0; }

@media (max-width: 1024px) {
  .tm-discovery-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm-discovery-waterfall { column-count: 3; }
  .tm-discovery-store-head { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 800px) {
  .tm-discovery-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-discovery-waterfall { column-count: 2; }
  .tm-discovery-store-head { grid-template-columns: 1fr; padding: 20px; }
  .tm-discovery-media { order: 2; }
  .tm-discovery-result { grid-template-columns: 118px minmax(0, 1fr); }
  .tm-discovery-result-thumb { width: 118px; height: 92px; }
  .tm-discovery-result-right { align-items: flex-start; }
  .tm-discovery-sidebar { position: static; }
}
@media (max-width: 520px) {
  .tm-discovery-cat-grid { grid-template-columns: 1fr; }
  .tm-discovery-waterfall { column-count: 1; }
  .tm-discovery-result { grid-template-columns: 1fr; }
  .tm-discovery-result-thumb { width: 100%; height: 150px; }
}

/* ---- 首页瀑布流来源状态条与辅助样式 ---- */
.tm-discovery-feed-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tm-discovery-source { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--dp-line); color: #777; font-size: 12px; }
.tm-discovery-source .tm-status-badge { font-size: 11px; }
.tm-discovery-source i { font-style: normal; color: var(--tm-red); font-weight: 700; }
.tm-discovery-feed-like { color: #666; font-weight: 600; }
.tm-state-box.config { border: 1px dashed #d8c19a; border-radius: var(--dp-radius-sm); background: #fffaf2; padding: 18px 20px; color: #8a7346; font-size: 13px; line-height: 1.9; }
#category-status .tm-state-box { margin-top: 14px; }
#home-feed-status .tm-state-box, #home-feed > .tm-state-box { margin-top: 0; }

/* =====================================================================
 * 三S设计规范覆盖层（2026-08-22）
 * 只覆盖现有 C 端公共样式，不改变 DOM、路由、接口和业务状态。
 * ===================================================================== */
:root {
  --sss-red: #d71c20;
  --sss-black: #181818;
  --sss-text: #3a3a3a;
  --sss-muted: #666666;
  --sss-placeholder: #999999;
  --sss-bg: #f7f7f7;
  --sss-white: #ffffff;
  --sss-border: #e6e6e6;
  --sss-gold: #b8954c;
  --sss-navy: #2d465f;
  --sss-green: #499c60;
  --sss-orange: #d27028;
  --sss-radius-card: 16px;
  --sss-radius-panel: 14px;
  --sss-radius-modal: 16px;
  --sss-radius-control: 999px;
  --sss-control-height: 40px;
  --sss-nav-item-height: 36px;
  --sss-card-padding: 20px;
  --sss-card-gap: 16px;
  --sss-card-shadow: 0 4px 18px rgba(24, 24, 24, .08);
}

body { color: var(--sss-black); background: var(--sss-bg); }
.tm-topbar { background: var(--sss-white); border-bottom-color: var(--sss-border); box-shadow: 0 2px 10px rgba(24, 24, 24, .04); }
.tm-brand-mark { background: var(--sss-red); box-shadow: 0 4px 12px rgba(24, 24, 24, .08); }
.tm-global-search { flex: 0 1 330px; max-width: 330px; height: 32px; border: 1px solid var(--sss-border); border-radius: var(--sss-radius-control); background: var(--sss-bg); box-shadow: none; }
.tm-search-ico { color: var(--sss-muted); }
.tm-nav-login { color: var(--sss-red); border: 1px solid var(--sss-border); background: var(--sss-white); }
.tm-nav-right > .tm-nav-link:last-child { color: var(--sss-white); background: var(--sss-red); }
.tm-nav-right > .tm-nav-link:last-child:hover { color: var(--sss-white); }
.tm-btn, .tm-btn.small { min-width: 104px; height: var(--sss-control-height); min-height: var(--sss-control-height); padding: 0 18px; border-radius: var(--sss-radius-control); color: var(--sss-white); background: var(--sss-red); font-size: 15px; line-height: 1; font-weight: 600; box-shadow: none; }
.tm-btn:hover { filter: brightness(.92); box-shadow: none; }
.tm-btn.ghost { color: var(--sss-black); border: 1px solid var(--sss-border); background: var(--sss-white); }
.tm-discovery-store-actions .tm-btn { min-width: 104px; height: var(--sss-control-height); min-height: var(--sss-control-height); padding: 0 18px; border-radius: var(--sss-radius-control); }
.tm-nav-login, .tm-nav-right > .tm-nav-link:last-child { min-width: 104px; height: var(--sss-control-height); display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: var(--sss-radius-control); font-size: 15px; }
.tm-discovery-type-tab, .tm-mode-tab, .tm-map-tool { min-width: 104px; height: var(--sss-control-height); min-height: var(--sss-control-height); padding: 0 18px; border-radius: var(--sss-radius-control); font-size: 15px; line-height: 1; }
.tm-discovery-type-tab { border-color: var(--sss-border); color: var(--sss-text); background: var(--sss-white); }
.tm-discovery-type-tab.active { border-color: var(--sss-red); color: var(--sss-white); background: var(--sss-red); }
.tm-map-tool { border: 1px solid var(--sss-border); color: var(--sss-text); background: var(--sss-white); }
.tm-filter, .tm-search { height: var(--sss-control-height); border-color: var(--sss-border); border-radius: var(--sss-radius-control); background: var(--sss-white); }
.tm-filter:focus, .tm-search:focus, .tm-global-search:focus-within { border-color: var(--sss-red); box-shadow: 0 0 0 3px rgba(24, 24, 24, .08); }
.tm-card, .tm-entry, .tm-discovery-cat-card, .tm-discovery-feed, .tm-discovery-result, .tm-discovery-store-head, .tm-discovery-type-tabs, .tm-discovery-filter-bar, .tm-sticky-book { border-color: var(--sss-border); border-radius: var(--sss-radius-card); box-shadow: var(--sss-card-shadow); }
.tm-card { padding: var(--sss-card-padding); }
.tm-card:hover, .tm-entry:hover, .tm-discovery-cat-card:hover, .tm-discovery-feed:hover, .tm-discovery-result:hover { box-shadow: var(--sss-card-shadow); }
.tm-hero { background: var(--sss-bg); }
.tm-map-art { border-color: var(--sss-border); background: var(--sss-bg); box-shadow: var(--sss-card-shadow); }
.tm-pin { box-shadow: 0 4px 12px rgba(24, 24, 24, .08); }
.tm-discovery-cat-ico { background: var(--sss-red); box-shadow: none; }
.tm-discovery-cat-card:nth-child(2) .tm-discovery-cat-ico { background: var(--sss-gold); box-shadow: none; }
.tm-discovery-cat-card:nth-child(3) .tm-discovery-cat-ico { background: var(--sss-green); box-shadow: none; }
.tm-discovery-cat-card:nth-child(4) .tm-discovery-cat-ico { background: var(--sss-navy); box-shadow: none; }
.tm-discovery-cat-card:nth-child(5) .tm-discovery-cat-ico { background: var(--sss-orange); box-shadow: none; }
.tm-discovery-cat-card:nth-child(6) .tm-discovery-cat-ico { background: var(--sss-red); box-shadow: none; }
.tm-discovery-cat-card:nth-child(7) .tm-discovery-cat-ico { background: var(--sss-navy); box-shadow: none; }
.tm-discovery-cat-card:nth-child(8) .tm-discovery-cat-ico { background: var(--sss-green); box-shadow: none; }
.tm-discovery-cat-card:nth-child(9) .tm-discovery-cat-ico { background: var(--sss-orange); box-shadow: none; }
.tm-discovery-cat-card:nth-child(10) .tm-discovery-cat-ico { background: var(--sss-gold); box-shadow: none; }
.tm-discovery-cat-config, .tm-discovery-config-block, .tm-state-box.config { border-color: var(--sss-gold); background: var(--sss-bg); color: var(--sss-text); }
.tm-discovery-media-main { background: var(--sss-navy); }
.tm-badge, .tm-project-status, .tm-status-config { background: var(--sss-bg); color: var(--sss-green); }
.tm-tag, .tm-rating, .tm-price { color: var(--sss-orange); }
.tm-detail-nav { border-color: var(--sss-border); border-radius: var(--sss-radius-panel); box-shadow: var(--sss-card-shadow); }
.tm-discovery-map-block, .tm-mini-map, .tm-power-main { background: var(--sss-bg); }
.tm-power-main { border-color: var(--sss-navy); box-shadow: none; }
/* C 端不提供软件菜单；详情页的 .tm-discovery-sidebar 仍是购买/预约内容卡，不是左侧菜单。 */
.tm-console { display: block; min-height: 100vh; }
.tm-sidebar { display: none; }

/* ---- C 端第二层页面统一：列表 / 地图 / 商城 / 交易 / 会员 ----
   这些页面沿用现有 HTML 与脚本，只把信息层级、卡片尺寸和控件视觉收拢到
   统一发现式内容流；不引入后台侧栏，也不改变跨系统接口边界。 */
.tm-section { padding: 22px 0 46px; }
.tm-section-title { align-items: end; margin-bottom: 16px; }
.tm-section-title h1 { color: var(--sss-black); font-size: 28px !important; line-height: 1.25; }
.tm-section-title h2 { color: var(--sss-black); font-size: 22px; line-height: 1.35; }
.tm-section-title p { color: var(--sss-muted); line-height: 1.7; }
.tm-filters { gap: 10px; margin-bottom: 16px; }
.tm-filter, .tm-search { height: var(--sss-control-height); border-radius: var(--sss-radius-control); }
.tm-card-list { gap: var(--sss-card-gap); margin-top: 16px; }
.tm-item-card { min-height: 132px; padding: var(--sss-card-padding); border: 1px solid var(--sss-border); border-radius: var(--sss-radius-card); background: var(--sss-white); box-shadow: var(--sss-card-shadow); }
.tm-item-card:hover { border-color: var(--sss-border); box-shadow: var(--sss-card-shadow); transform: none; }
.tm-item-card h3 { margin-bottom: 8px; color: var(--sss-black); font-size: 17px; }
.tm-item-card p { color: var(--sss-muted); font-size: 13px; line-height: 1.7; }
.tm-item-meta { gap: 8px; margin-top: 12px; }
.tm-tag { padding: 3px 9px; border: 1px solid var(--sss-border); background: var(--sss-bg); color: var(--sss-text); }
.tm-mode-tabs { gap: 8px; margin: 14px 0 16px; padding: 8px; border: 1px solid var(--sss-border); border-radius: var(--sss-radius-panel); background: var(--sss-white); box-shadow: var(--sss-card-shadow); }
.tm-mode-tab { border: 1px solid transparent; background: transparent; color: var(--sss-text); }
.tm-mode-tab:hover { color: var(--sss-red); background: var(--sss-bg); }
.tm-mode-tab.active { border-color: var(--sss-red); background: var(--sss-red); color: var(--sss-white); }
.tm-state-box { margin: 16px 0; padding: 16px 18px; border: 1px solid var(--sss-border); border-radius: var(--sss-radius-panel); background: var(--sss-bg); color: var(--sss-text); }
.tm-state-box.ok { border-color: var(--sss-green); background: var(--sss-bg); }
.tm-state-box.error { border-color: var(--sss-red); background: var(--sss-bg); }
.tm-state-box.config { border-color: var(--sss-gold); background: var(--sss-bg); }

.vm-filter-bar { margin: 14px 0 8px !important; color: var(--sss-muted) !important; }
.vm-filter-bar a { color: var(--sss-red) !important; }
.vm-chip { padding: 3px 10px !important; border-color: var(--sss-border) !important; border-radius: var(--sss-radius-control) !important; background: var(--sss-bg) !important; color: var(--sss-text) !important; }
.vm-list { gap: var(--sss-card-gap) !important; margin-top: 16px !important; }
.vm-venue { padding: var(--sss-card-padding) !important; border-color: var(--sss-border) !important; border-radius: var(--sss-radius-card) !important; background: var(--sss-white) !important; box-shadow: var(--sss-card-shadow) !important; }
.vm-venue h3 { color: var(--sss-black); }
.vm-venue p { color: var(--sss-muted) !important; }

.tm-mall-status, .tm-mall-section, .tm-mall-good { border-color: var(--sss-border) !important; border-radius: var(--sss-radius-card) !important; box-shadow: var(--sss-card-shadow); }
.tm-mall-status { background: var(--sss-bg) !important; color: var(--sss-muted) !important; }
.tm-mall-status strong, .tm-mall-section > h3, .tm-mall-good h4 { color: var(--sss-black) !important; }
.tm-mall-section { padding: var(--sss-card-padding) !important; background: var(--sss-white) !important; }
.tm-mall-section > p, .tm-mall-good p { color: var(--sss-muted) !important; }
.tm-mall-good { background: var(--sss-bg) !important; }
.tm-fee-table th, .tm-fee-table td { border-color: var(--sss-border) !important; color: var(--sss-text) !important; }
.tm-fee-table th { background: var(--sss-bg) !important; }
.tm-status-config { background: var(--sss-bg) !important; color: var(--sss-orange) !important; }

/* ---- 统一发现式详情页首屏：沿用参考页的“品牌条 + 打开App”结构 ---- */
.tm-topbar-detail { position: relative; box-shadow: 0 1px 6px rgba(24,24,24,.06); }
.tm-topbar-detail .tm-topbar-inner { width: min(1240px, 94vw); }
.tm-detail-utility { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tm-detail-links { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.tm-detail-links a { color: var(--sss-text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tm-detail-links a:hover { color: var(--sss-red); }
.tm-topbar-detail .tm-brand { gap: 10px; color: var(--sss-black); font-size: 20px; }
.tm-topbar-detail .tm-brand-logo { width: 150px; height: 48px; }
.tm-detail-app-cta { min-width: 104px; height: var(--sss-control-height); display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: var(--sss-radius-control); color: var(--sss-white); background: var(--sss-red); font-size: 15px; font-weight: 600; }
.tm-detail-app-cta:hover { color: var(--sss-white); filter: brightness(.92); }
.tm-app-dialog[hidden] { display: none; }
.tm-app-dialog { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.tm-app-dialog-mask { position: absolute; inset: 0; background: rgba(0,0,0,.78); }
.tm-app-dialog-panel { position: relative; z-index: 1; width: min(668px, calc(100vw - 32px)); min-height: 493px; padding: 28px 48px 34px; border-radius: 18px; background: linear-gradient(135deg, #fff 0 65%, #fff7ed); box-shadow: 0 18px 60px rgba(0,0,0,.28); text-align: center; }
.tm-app-dialog-close { position: absolute; top: -34px; right: -2px; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: transparent; font-size: 25px; line-height: 20px; font-weight: 300; }
.tm-app-dialog-panel h2 { margin: 0 0 24px; color: var(--sss-black); font-size: 26px; line-height: 1.55; letter-spacing: -.02em; }
.tm-app-dialog-content { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; min-height: 318px; padding: 28px 30px; border-radius: 20px; background: #f7f7f7; }
.tm-app-preview, .tm-app-qr { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 1px dashed #c9c9c9; border-radius: 14px; color: #999; background: #fff; font-size: 14px; line-height: 1.7; }
.tm-app-preview { max-width: 220px; justify-self: center; }
.tm-app-qr { max-width: 220px; justify-self: center; }
.tm-app-qr img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.tm-app-dialog-arrow { color: #c8c8c8; font-size: 30px; }
.tm-app-dialog-note { margin: 20px 0 0; color: #999; font-size: 13px; line-height: 1.7; }
body.tm-app-dialog-open { overflow: hidden; }
@media (max-width: 640px) {
  .tm-app-dialog-panel { min-height: 0; padding: 24px 18px 26px; }
  .tm-app-dialog-close { top: -34px; right: 0; }
  .tm-app-dialog-panel h2 { font-size: 21px; }
  .tm-app-dialog-content { grid-template-columns: 1fr; gap: 12px; min-height: 0; padding: 18px; }
  .tm-app-dialog-arrow { transform: rotate(90deg); }
}
.tm-discovery-detail .tm-breadcrumb { display: none; }
.tm-discovery-detail .tm-discovery-store-head { margin-top: 14px; }
.tm-discovery-detail .tm-discovery-store-head { border-radius: var(--sss-radius-card); }
.tm-discovery-detail .tm-discovery-media-main { min-height: 0; }
.tm-discovery-detail .tm-discovery-store-info h1 { letter-spacing: -.02em; }
.tm-discovery-detail .tm-detail-nav { border-radius: var(--sss-radius-panel); }
.tm-discovery-detail .tm-discovery-sidebar { border-radius: var(--sss-radius-card); }
.tm-discovery-deal-list { margin-top: 4px; }
.tm-discovery-deal-list .tm-detail-course { grid-template-columns: 116px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 112px; padding: 14px 0; border-bottom: 1px solid var(--sss-border); }
.tm-discovery-deal-list .tm-detail-course:last-child { border-bottom: 0; }
.tm-discovery-deal-thumb { width: 116px; height: 88px; display: grid; place-items: center; border-radius: 10px; color: var(--sss-white); background: var(--sss-navy); font-size: 24px; font-weight: 800; }
.tm-discovery-deal-list .tm-detail-course h3 { margin: 5px 0 6px; color: var(--sss-black); font-size: 18px; }
.tm-discovery-deal-list .tm-detail-course p { margin: 0; color: var(--sss-muted); font-size: 13px; line-height: 1.65; }
.tm-discovery-deal-list .tm-detail-course small { color: var(--sss-placeholder); }
.tm-discovery-deal-list .tm-detail-course > div:last-child { min-width: 104px; display: flex; align-items: center; justify-content: flex-end; }
.tm-discovery-deal-empty { min-height: 112px; }
@media (max-width: 640px) {
  .tm-discovery-deal-list .tm-detail-course { grid-template-columns: 88px minmax(0, 1fr); }
  .tm-discovery-deal-thumb { width: 88px; height: 72px; }
  .tm-discovery-deal-list .tm-detail-course > div:last-child { grid-column: 2; justify-content: flex-start; }
}

/* ---- 三类 C 端页面统一视觉收口：只换品牌层，不改变统一发现式排版 ---- */
body, button, input, select, textarea { font-family: var(--tm-font); }
.tm-discovery-body, .tm-discovery-container, .tm-section, .tm-container { color: var(--sss-black); }
.tm-discovery-cat-card, .tm-discovery-feed, .tm-discovery-result, .tm-discovery-store-head, .tm-discovery-filter-bar, .tm-card, .tm-entry, .tm-item-card, .vm-venue, .tm-mall-section, .tm-mall-good, .checkout-card, .order-card, .member-card { border-radius: var(--sss-radius-card) !important; }
.tm-discovery-result-thumb, .tm-discovery-media-main, .tm-discovery-media-thumb, .tm-discovery-map-block, .tm-discovery-deal-thumb, .tm-media-card, .tm-detail-cover, .tm-detail-score { border-radius: var(--sss-radius-panel) !important; }
.tm-discovery-filter-group .tm-filter, .tm-discovery-filter-group .tm-search, .tm-filter, .tm-search, .tm-loc-select { border-radius: var(--sss-radius-control) !important; }
.tm-btn, .tm-btn.small, .tm-detail-app-cta, .tm-nav-login, .tm-nav-right > .tm-nav-link:last-child, .tm-discovery-type-tab, .tm-mode-tab, .tm-map-tool { border-radius: var(--sss-radius-control) !important; }
.tm-btn, .tm-btn.small, .tm-detail-app-cta { background: var(--sss-red); color: var(--sss-white); border-color: var(--sss-red); }
.tm-btn.ghost, .tm-map-tool, .tm-discovery-type-tab, .tm-mode-tab { background: var(--sss-white); color: var(--sss-text); border-color: var(--sss-border); }
.tm-discovery-type-tab.active, .tm-mode-tab.active { background: var(--sss-red); color: var(--sss-white); border-color: var(--sss-red); }
.tm-btn.ghost:hover, .tm-map-tool:hover, .tm-discovery-type-tab:hover, .tm-mode-tab:hover { color: var(--sss-red); border-color: var(--sss-red); }
.tm-card h2, .tm-card h3, .tm-discovery-result-info h3, .tm-discovery-store-info h1, .tm-section-title h1, .tm-section-title h2 { font-family: var(--tm-font); color: var(--sss-black); }
.tm-global-search, .tm-filter:focus, .tm-search:focus, .tm-global-search:focus-within { border-color: var(--sss-red); }
.tm-discovery-score-num, .tm-discovery-result-line .tm-discovery-rating, .tm-price, .tm-rating { color: var(--sss-red); }

/* ---- 三类原型页的尺寸皮肤：只调高度、间距和显示层，不改 DOM/路由 ---- */
body:has(.tm-discovery-cat-grid) .tm-topnav,
body:has(.tm-discovery-type-tabs) .tm-topnav,
body:has(.tm-discovery-store-head) .tm-topnav { display: none; }

body:has(.tm-discovery-cat-grid) .tm-global-search,
body:has(.tm-discovery-type-tabs) .tm-global-search { flex-basis: 520px; max-width: 520px; height: 44px; }
body:has(.tm-discovery-cat-grid) .tm-brand-logo,
body:has(.tm-discovery-type-tabs) .tm-brand-logo { width: 150px; height: 48px; }

body:has(.tm-discovery-cat-grid) .tm-discovery-section:nth-of-type(1) .tm-discovery-section-head,
body:has(.tm-discovery-cat-grid) .tm-discovery-section:nth-of-type(2) .tm-discovery-section-head { display: none; }
body:has(.tm-discovery-cat-grid) .tm-discovery-section:nth-of-type(1) { padding-top: 18px; }
body:has(.tm-discovery-cat-grid) .tm-discovery-section:first-of-type { background: #f7f7f7; padding-bottom: 14px; }
body:has(.tm-discovery-cat-grid) .tm-discovery-cat-grid { gap: 16px; }
body:has(.tm-discovery-cat-grid) .tm-discovery-cat-card { min-height: 80px; padding: 0 18px; border: 0; border-radius: 10px !important; box-shadow: 0 1px 4px rgba(25,35,45,.04); }
body:has(.tm-discovery-cat-grid) .tm-discovery-cat-card:hover { transform: none; box-shadow: 0 3px 12px rgba(25,35,45,.08); }
body:has(.tm-discovery-cat-grid) .tm-discovery-cat-ico { width: 48px; height: 48px; font-size: 0; background: transparent !important; box-shadow: none !important; border-radius: 0; }
body:has(.tm-discovery-cat-grid) .tm-discovery-cat-ico img { width: 48px; height: 48px; }
body:has(.tm-discovery-cat-grid) .tm-discovery-cat-body h3 { font-size: 16px; }
body:has(.tm-discovery-cat-grid) .tm-discovery-cat-body p { display: none; }
body:has(.tm-discovery-cat-grid) .tm-discovery-section:nth-of-type(2) { padding-top: 16px; }
body:has(.tm-discovery-cat-grid) .tm-discovery-waterfall { column-gap: 16px; }
body:has(.tm-discovery-cat-grid) .tm-discovery-waterfall.tm-discovery-feed-grid { gap: 16px; }
body:has(.tm-discovery-cat-grid) .tm-discovery-feed { margin-bottom: 16px; border: 0; border-radius: 14px !important; box-shadow: 0 1px 5px rgba(25,35,45,.08); }
body:has(.tm-discovery-cat-grid) .tm-discovery-section:first-child { padding-bottom: 0; }
body:has(.tm-discovery-cat-grid) .tm-discovery-feed-media { aspect-ratio: 3 / 4; }

body:not(.tm-public-header-page):has(.tm-discovery-store-head) .tm-location,
body:not(.tm-public-header-page):has(.tm-discovery-store-head) .tm-global-search,
body:not(.tm-public-header-page):has(.tm-discovery-store-head) .tm-nav-right > .tm-nav-link:not(:last-child),
body:not(.tm-public-header-page):has(.tm-discovery-store-head) .tm-nav-login { display: none; }
body:has(.tm-discovery-store-head) .tm-nav-utility { justify-content: space-between; }
body:has(.tm-discovery-store-head) .tm-nav-right { display: flex; margin-left: auto; }
body:has(.tm-discovery-store-head) .tm-nav-right > .tm-nav-link:last-child { font-size: 0; min-width: 104px; }
body:has(.tm-discovery-store-head) .tm-nav-right > .tm-nav-link:last-child::after { content: "打开APP"; font-size: 15px; }

/* 详情内页顶部沿用评价实页的紧凑品牌条：只收回高度与按钮尺寸，不改变母壳机制、路由或业务结构。 */
body:has(.tm-discovery-store-head) .tm-detail-utility {
  min-height: 48px;
  height: 48px;
}
body:has(.tm-discovery-store-head) .tm-topbar-detail .tm-brand-logo {
  width: 112px;
  height: 36px;
}
body:has(.tm-discovery-store-head) .tm-detail-app-cta {
  min-width: 104px !important;
  height: 30px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
}

/* 订单、结算、会员页仍是 C 端内容卡，不是管理后台。 */
.checkout-grid, .order-grid, .member-grid { gap: var(--sss-card-gap) !important; }
.checkout-card, .order-card, .member-card { border: 1px solid var(--sss-border) !important; border-radius: var(--sss-radius-card) !important; background: var(--sss-white) !important; box-shadow: var(--sss-card-shadow) !important; }
.checkout-card { padding: var(--sss-card-padding) !important; }
.checkout-muted, .order-row p, .order-empty, .member-muted, .member-row p { color: var(--sss-muted) !important; }
.checkout-fact, .order-fact, .order-row, .member-row { border-color: var(--sss-border) !important; }
.checkout-notice, .order-notice, .member-notice { border: 1px solid var(--sss-border); border-radius: var(--sss-radius-panel) !important; background: var(--sss-bg) !important; color: var(--sss-text) !important; }
.checkout-notice.error, .order-notice.error, .member-notice.error { border-color: var(--sss-red); background: var(--sss-bg) !important; color: var(--sss-red) !important; }
.checkout-notice.pending, .order-notice { color: var(--sss-text) !important; }
.member-fact { border: 1px solid var(--sss-border); border-radius: var(--sss-radius-panel) !important; background: var(--sss-bg) !important; }
.checkout-code, .order-code, .member-code { color: var(--sss-navy) !important; }

/* 三S 控件收口：沿用评价原位置与尺寸关系，只替换品牌皮肤。按钮不再被拉成大块。 */
.tm-btn, .tm-btn.small, .tm-discovery-store-actions .tm-btn,
.tm-discovery-type-tab, .tm-mode-tab, .tm-map-tool {
  min-width: 0 !important;
  width: auto;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap;
}
.tm-detail-app-cta, .tm-nav-login, .tm-nav-right > .tm-nav-link:last-child {
  min-width: 0 !important;
  height: 34px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
}

/* 分类分页：只把现有元素收回评价分页的原始层级，不增加业务模块。 */
.tm-category-utility { height: 36px; background: #f7f7f7; border-bottom: 1px solid #ededed; }
.tm-category-main { height: 78px; background: #fff; }
.tm-category-inner { width: min(1240px, 94vw); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.tm-category-links { display: flex; align-items: center; gap: 24px; margin-left: auto; color: #555; font-size: 13px; }
.tm-category-main .tm-brand { flex: 0 0 auto; font-size: 19px; }
.tm-category-main .tm-brand-logo { width: 132px; height: 44px; }
.tm-category-main .tm-global-search { flex: 1 1 480px; max-width: 540px; height: 36px; border-width: 1px; box-shadow: none; }
.tm-category-search-btn { height: 36px; padding: 0 20px; border: 1px solid var(--sss-red); border-radius: 0; color: #fff; background: var(--sss-red); font-size: 13px; white-space: nowrap; }
.tm-category-search-btn.secondary { color: var(--sss-red); background: #fff; }
.tm-category-app { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px; border-radius: var(--sss-radius-control); color: #fff; background: var(--sss-red); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tm-category-channel { height: 44px; background: #fff; border-bottom: 2px solid var(--sss-red); }
.tm-category-channel .tm-category-inner { justify-content: flex-start; }
.tm-category-channel a { display: inline-flex; align-items: center; height: 44px; padding: 0 24px; color: #fff; background: var(--sss-red); font-weight: 700; }
.tm-discovery-category-page .tm-discovery-body { background: #f5f5f5; }
.tm-discovery-category-page .tm-discovery-container { width: min(1240px, 94vw); }
.tm-discovery-category-page .tm-breadcrumb { display: block; padding: 14px 0 10px; color: #666; font-size: 13px; }
.tm-discovery-category-page .tm-discovery-channel-head { margin-top: 0; padding-bottom: 14px; }
.tm-discovery-category-page .tm-discovery-channel-title { display: none; }
.tm-discovery-category-page .tm-discovery-facets { border-radius: 0; box-shadow: none; }
.tm-discovery-category-page .tm-discovery-facet-row { min-height: 48px; padding: 10px 18px; gap: 14px; }
.tm-discovery-category-page .tm-discovery-facet-chip, .tm-discovery-category-page .tm-discovery-facet-tab, .tm-discovery-category-page .tm-discovery-facet-more { border-radius: 0; padding: 3px 10px; }
.tm-discovery-category-page .tm-discovery-facet-chip.active, .tm-discovery-category-page .tm-discovery-facet-tab.active { border-radius: 999px; }
.tm-discovery-category-page .tm-discovery-project-subrow { padding-left: 70px; background: #fafafa; }
.tm-discovery-category-page .tm-discovery-location-list { border-radius: 0; }
/* Existing controls are operable in the authorized discovery completion batch. */
.tm-discovery-category-page .tm-discovery-type-tabs,
.tm-discovery-category-page .tm-discovery-filter-bar,
.tm-discovery-category-page .tm-discovery-toolbar,
.tm-discovery-category-page .tm-map-toggle { display: flex; flex-wrap: wrap; }
.tm-discovery-reference-toolbar {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--sss-border);
  border-bottom: 0;
  background: #fff;
  color: #999;
  font-size: 13px;
}
.tm-discovery-reference-toolbar label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tm-discovery-reference-toolbar input { accent-color: var(--sss-orange); }
.tm-discovery-reference-sort { padding: 4px 0; color: #555; white-space: nowrap; cursor: default; }
.tm-discovery-reference-sort.is-active { color: var(--sss-orange); font-weight: 600; }
.tm-discovery-category-page .tm-content-grid { grid-template-columns: minmax(0, 1fr) 225px; gap: 12px; align-items: start; }
.tm-discovery-category-page #map-view { display: none !important; }
.tm-discovery-category-page .tm-discovery-results { gap: 0; border: 1px solid #e8e8e8; background: #fff; }
.tm-discovery-category-page .tm-discovery-result { border: 0; border-bottom: 1px solid #ededed; border-radius: 0 !important; box-shadow: none; padding: 20px 18px; }
.tm-discovery-category-page .tm-discovery-result:last-child { border-bottom: 0; }
.tm-discovery-category-page .tm-discovery-result:hover { transform: none; box-shadow: none; }
.tm-discovery-category-page .tm-discovery-category-side { display: block; }
.tm-discovery-side-offer { position: sticky; top: 18px; min-height: 150px; padding: 18px; border: 1px solid #e8e8e8; background: #fff; color: #555; font-size: 13px; }
.tm-discovery-side-offer p { margin: 6px 0 14px; }
.tm-discovery-side-offer b { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; margin-right: 8px; color: #fff; background: var(--sss-orange); font-weight: 700; }
.tm-discovery-qr-placeholder { display: grid; place-items: center; width: 112px; height: 112px; margin: 12px auto 0; border: 1px dashed #ccc; color: #999; font-size: 12px; }
.tm-discovery-category-page .tm-discovery-pager { justify-content: center; padding: 14px 0; }

/* 参考分类页首屏没有独立的“更多项目”入口；项目筛选仍由现有分类行承载。 */
body.tm-discovery-category-page #project-directory-toggle { display: none !important; }

/* 首页保持参考首屏：7 个一级入口与内容流，内部状态面板不占用主页面排版。 */
body:has(.tm-discovery-cat-grid) #category-status,
body:has(.tm-discovery-cat-grid) #home-feed-status,
body:has(.tm-discovery-cat-grid) #venue-section,
body:has(.tm-discovery-cat-grid) #about,
body:has(.tm-discovery-cat-grid) #app-entry,
body:has(.tm-discovery-cat-grid) .tm-footer { display: none !important; }
body:has(.tm-discovery-cat-grid) .tm-discovery-section:nth-of-type(2) .tm-discovery-section-head { display: none; }
body:has(.tm-discovery-cat-grid) .tm-discovery-section:nth-of-type(2) { padding-top: 18px; }

/* 详情内页：评价首屏比例与顺序；三S只替换皮肤，不另造首屏组件。 */
.tm-discovery-detail .tm-discovery-store-head { grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); gap: 22px; padding: 24px; border-radius: 12px !important; box-shadow: none; }
.tm-discovery-detail .tm-discovery-store-note,
.tm-discovery-detail #detail-tip { display: none !important; }
.tm-discovery-detail .tm-discovery-optional-section { display: none !important; }
.tm-discovery-detail .tm-discovery-optional-section.tm-discovery-live-section { display: block !important; }
.tm-discovery-detail .tm-discovery-media { height: 280px; align-self: start; grid-template-rows: 280px; }
.tm-discovery-detail .tm-discovery-media-thumbs { display: none; }
.tm-discovery-detail .tm-discovery-media-main { min-height: 280px; border: 1px solid var(--sss-border); background: var(--sss-bg); color: var(--sss-muted); font-size: 22px; }
.tm-discovery-detail #cert-badge { display: none; }
.tm-discovery-detail .tm-discovery-store-info h1 { margin-top: 0; font-size: 24px; }
.tm-discovery-detail .tm-discovery-score-line { gap: 8px; flex-wrap: nowrap; margin: 8px 0; }
.tm-discovery-detail .tm-discovery-score-num { font-size: 22px; }
.tm-discovery-detail .tm-discovery-score-lab { white-space: nowrap; }
.tm-discovery-detail .tm-detail-nav { display: none; }
.tm-discovery-detail .tm-detail-layout { grid-template-columns: 1fr; padding-top: 16px; }
.tm-discovery-detail .tm-detail-layout > div { display: flex; flex-direction: column; }
.tm-discovery-detail .tm-discovery-sidebar { display: none; }
.tm-discovery-detail #courses { order: 1; }
.tm-discovery-detail #reviews { order: 2; }
.tm-discovery-detail #campus { order: 3; }
.tm-discovery-detail #coaches { order: 4; }
.tm-discovery-detail #facility-power { order: 5; }
.tm-discovery-detail #recommend { order: 6; }
.tm-discovery-detail #venue-info { order: 7; }
.tm-discovery-detail .tm-discovery-deal-thumb { background: var(--sss-bg); color: var(--sss-muted); border: 1px solid var(--sss-border); }
.tm-discovery-detail .tm-discovery-partition { border-radius: 12px !important; box-shadow: none; }
.tm-discovery-review-score { display: inline-block; margin-left: 10px; color: var(--sss-red); font-size: 14px; font-weight: 700; }

/* 首页按评价首页首屏收口：保留已有入口与内容，只把两行头部收回单行。
   不增加控件；首页隐藏分类页专用的两个搜索动作按钮。 */
body:has(.tm-discovery-cat-grid) .tm-category-channel { display: none; }
body:has(.tm-discovery-cat-grid) .tm-topbar-category {
  height: 64px;
  position: relative;
  background: var(--sss-white);
}
body:has(.tm-discovery-cat-grid) .tm-category-utility,
body:has(.tm-discovery-cat-grid) .tm-category-main {
  position: absolute;
  inset: 0;
  height: 64px;
}
/* 两层是同一条统一发现式顶栏的布局复用，不应让后渲染的主行盖住定位和右侧入口。 */
body:has(.tm-discovery-cat-grid) .tm-category-utility {
  z-index: 2;
  pointer-events: none;
  background: transparent;
  border-bottom: 0;
}
body:has(.tm-discovery-cat-grid) .tm-category-main { z-index: 1; }
body:has(.tm-discovery-cat-grid) .tm-category-inner {
  position: relative;
  width: min(1145px, calc(100vw - 120px));
  height: 64px;
  margin: 0 auto;
}
body:has(.tm-discovery-cat-grid) .tm-category-main .tm-brand {
  position: absolute;
  left: 0;
  top: 0;
  height: 64px;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  pointer-events: auto;
}
body:has(.tm-discovery-cat-grid) .tm-category-main .tm-brand-logo { width: 125px; height: 40px; }
body:has(.tm-discovery-cat-grid) .tm-category-utility .tm-location {
  position: absolute;
  left: 145px;
  top: 0;
  height: 64px;
  margin: 0;
  pointer-events: auto;
}
body:has(.tm-discovery-cat-grid) .tm-category-main .tm-global-search {
  position: absolute;
  left: 260px;
  top: 16px;
  width: 330px;
  max-width: none;
  height: 32px;
  border: 1px solid var(--sss-card-border);
  box-shadow: none;
  margin: 0;
  pointer-events: auto;
}
body:has(.tm-discovery-cat-grid) .tm-category-search-btn { display: none; }
body:has(.tm-discovery-cat-grid) .tm-category-utility .tm-category-links {
  position: absolute;
  right: 154px;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 13px;
  color: var(--tm-muted);
  pointer-events: auto;
}
body:has(.tm-discovery-cat-grid) .tm-category-utility .tm-category-links a:nth-child(1) { order: 2; }
body:has(.tm-discovery-cat-grid) .tm-category-utility .tm-category-links a:nth-child(2) { order: 1; }
body:has(.tm-discovery-cat-grid) .tm-category-utility .tm-category-links a:nth-child(3) { order: 3; }
body:has(.tm-discovery-cat-grid) .tm-category-app {
  position: absolute;
  right: 0;
  top: 12px;
  height: var(--sss-control-height);
  font-size: 15px;
  font-weight: 600;
  padding: 0 16px;
  margin-right: 0;
  pointer-events: auto;
}

/* 评价首页分类卡是 5 列 × 2 行、每格约 80px；三S只改圆角与品牌皮肤。 */
/* 首页APP弹窗：沿已采集参考的面板/关闭入口/左右媒体位置，应用三S纯色和字号。 */
body:has(.tm-discovery-cat-grid) .tm-app-dialog-mask { background: rgba(24,24,24,.8); }
body:has(.tm-discovery-cat-grid) .tm-app-dialog-panel {
  width: min(676px, calc(100vw - 32px));
  min-height: 498px;
  padding: 22px 50px 48px;
  border: 1px solid var(--sss-card-border);
  border-radius: var(--sss-radius-modal);
  background: var(--sss-white);
  box-shadow: var(--sss-card-shadow);
}
body:has(.tm-discovery-cat-grid) .tm-app-dialog-panel h2 { font-size: 28px; font-weight: 600; line-height: 1.25; margin-bottom: 30px; }
body:has(.tm-discovery-cat-grid) .tm-app-dialog-close { top: -32px; right: -32px; }
body:has(.tm-discovery-cat-grid) .tm-app-dialog-content { min-height: 320px; padding: 40px 58px 80px; grid-template-columns: 1fr 60px 1fr; border-radius: var(--sss-radius-panel); }
body:has(.tm-discovery-cat-grid) .tm-app-preview,
body:has(.tm-discovery-cat-grid) .tm-app-qr { max-width: 200px; border-color: var(--sss-card-border); border-radius: var(--sss-radius-panel); }
body:has(.tm-discovery-cat-grid) .tm-app-dialog-arrow { color: var(--tm-muted); }
body:has(.tm-discovery-cat-grid) .tm-app-dialog-note { position: absolute; top: 380px; bottom: auto; left: 50px; right: 50px; margin: 0; color: var(--tm-muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 760px) {
  body:has(.tm-discovery-cat-grid) .tm-app-dialog-panel { min-height: 0; padding: 24px 18px 26px; }
  body:has(.tm-discovery-cat-grid) .tm-app-dialog-close { right: 0; }
  body:has(.tm-discovery-cat-grid) .tm-app-dialog-panel h2 { font-size: 24px; }
  body:has(.tm-discovery-cat-grid) .tm-app-dialog-content { grid-template-columns: 1fr; min-height: 0; padding: 18px; }
  body:has(.tm-discovery-cat-grid) .tm-app-dialog-note { position: static; margin-top: var(--sss-card-gap); }
}
body:has(.tm-discovery-cat-grid) .tm-discovery-container,
body:has(.tm-discovery-cat-grid) .tm-discovery-section .tm-discovery-container {
  width: min(1077px, calc(100vw - 120px));
}
body:has(.tm-discovery-cat-grid) .tm-discovery-section:nth-of-type(1) { padding-top: 20px; padding-bottom: 0; }
body:has(.tm-discovery-cat-grid) .tm-discovery-cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
body:has(.tm-discovery-cat-grid) .tm-discovery-cat-card {
  min-height: 80px;
  height: 80px;
  padding: 0 14px;
  gap: 12px;
  border: 0;
  border-radius: var(--sss-radius-card) !important;
  box-shadow: 0 1px 5px rgba(25,35,45,.06);
}
body:has(.tm-discovery-cat-grid) .tm-discovery-cat-ico { width: 50px; height: 50px; font-size: 26px; }
body:has(.tm-discovery-cat-grid) .tm-discovery-cat-body h3 { margin: 0; font-size: 16px; }
body:has(.tm-discovery-cat-grid) .tm-discovery-section:nth-of-type(2) { padding-top: 20px; }
body:has(.tm-discovery-cat-grid) .tm-discovery-waterfall { column-gap: 20px; }

/* 三S圆角皮肤只改外观，不改变评价分页的筛选/列表位置和内容顺序。列表行仍用分隔线保持评价的信息密度。 */
.tm-discovery-category-page .tm-discovery-facets,
.tm-discovery-category-page .tm-discovery-results,
.tm-discovery-category-page .tm-discovery-reference-toolbar,
.tm-discovery-category-page .tm-discovery-side-offer {
  border-radius: var(--sss-radius-card) !important;
  box-shadow: var(--sss-card-shadow);
}
.tm-discovery-category-page .tm-discovery-facet-chip,
.tm-discovery-category-page .tm-discovery-facet-tab,
.tm-discovery-category-page .tm-discovery-facet-more,
.tm-category-search-btn {
  border-radius: var(--sss-radius-control) !important;
}
.tm-discovery-category-page .tm-discovery-result {
  border-radius: 0 !important;
  box-shadow: none;
}

/* 详情页和分类页不追加说明性页脚；可见内容只保留评价原型中的主体区域。 */
body.tm-discovery-category-page .tm-footer,
body:has(.tm-discovery-detail) .tm-footer { display: none !important; }

/* 兼容接线只服务既有请求，不参与评价页面排版。 */
.tm-discovery-compat-controls.tm-hidden,
.tm-detail-compat { display: none !important; }

/* 评价血槽替换评价星级的位置，保持原评分行的紧凑比例。 */
.tm-discovery-detail .tm-discovery-score-line #detail-blood-bar {
  flex: 0 0 250px;
  min-width: 250px;
}
.tm-discovery-detail .tm-discovery-score-line .tm-discovery-score-num { display: none; }

@media (max-width: 900px) {
  .tm-section-title { align-items: start; flex-direction: column; gap: 8px; }
  .tm-section-title h1 { font-size: 24px !important; }
}

/* 分类页实测校准：参考排序字段保持原顺序，选中态及搜索尺寸遵循三S规范。 */
body.tm-discovery-category-page .tm-category-main { height: 64px; }
body.tm-discovery-category-page .tm-category-main .tm-global-search {
  flex: 0 1 330px; width: 330px; max-width: 330px; height: 32px; min-height: 32px;
}
body.tm-discovery-category-page .tm-discovery-facet-chip.active,
body.tm-discovery-category-page .tm-discovery-facet-tab.active { background: var(--sss-red); }
body.tm-discovery-category-page .tm-discovery-reference-sort.is-active { color: var(--sss-red); }
body.tm-discovery-category-page .tm-discovery-reference-toolbar input { accent-color: var(--sss-red); }

/* 授权分类参考：1190px主体，排序属于左侧结果列，优惠与排序顶部对齐。 */
body.tm-discovery-category-page .tm-discovery-container,
body.tm-discovery-category-page .tm-category-inner { width: min(1190px, calc(100% - 40px)); }
body.tm-discovery-category-page .tm-content-grid { grid-template-columns: minmax(0, 950px) 230px; gap: 10px; }
body.tm-discovery-category-page .tm-discovery-reference-toolbar { gap: 16px; }
body.tm-discovery-category-page .tm-discovery-reference-sort {
  border: 0; background: none; font: inherit; color: var(--sss-text); cursor: pointer;
}
body.tm-discovery-category-page .tm-discovery-reference-sort:first-of-type { margin-left: auto; }
body.tm-discovery-category-page .tm-discovery-reference-sort.is-active { color: var(--sss-red); }
body.tm-discovery-category-page .tm-discovery-reference-sort:focus-visible { outline: 2px solid var(--sss-red); outline-offset: 2px; }
body.tm-discovery-category-page .tm-discovery-side-offer { display: grid; grid-template-columns: 1fr 80px; grid-template-rows: 1fr 1fr; min-height: 104px; padding: 12px; column-gap: 8px; }
body.tm-discovery-category-page .tm-discovery-side-offer p { margin: 0; align-self: center; white-space: nowrap; }
body.tm-discovery-category-page .tm-discovery-qr-placeholder { grid-column: 2; grid-row: 1 / 3; width: 80px; height: 80px; margin: 0; text-align: center; }
@media (max-width: 760px) {
 body.tm-discovery-category-page .tm-content-grid { grid-template-columns: minmax(0, 1fr); }
 body.tm-discovery-category-page .tm-discovery-reference-toolbar { flex-wrap: wrap; gap: 12px; }
}

/* 分类列表按参考保留标题、评分/评价/价格、分类/地点、活动的顺序。 */
body.tm-discovery-category-page .tm-discovery-result { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; min-height: 172px; }
body.tm-discovery-category-page .tm-discovery-result-thumb { width: 170px; height: 129px; }
body.tm-discovery-category-page .tm-discovery-result-line .tm-discovery-price { font-size: 13px; font-weight: 400; color: #999999; }
body.tm-discovery-category-page .tm-discovery-result-detail { margin: 6px 0 0; color: #999999; font-size: 13px; }
body.tm-discovery-category-page .tm-discovery-result-activity { margin: 12px 0 0; padding-top: 8px; border-top: 1px solid #e6e6e6; font-size: 13px; color: #666666; }
@media (max-width: 760px) {
 body.tm-discovery-category-page .tm-discovery-result { grid-template-columns: 118px minmax(0, 1fr); gap: 16px; }
 body.tm-discovery-category-page .tm-discovery-result-thumb { width: 118px; height: 92px; }
}

/* 分类筛选实测：子分类与地点内容从主体155px起，首项内缩19px。 */
@media (min-width: 761px) {
 body.tm-discovery-category-page .tm-discovery-facet-row:first-child { padding-left: 20px; gap: 20px; border-bottom: 0; }
 body.tm-discovery-category-page .tm-discovery-project-subrow { margin: 0 20px 0 154px; padding: 8px 19px; min-height: 43px; border: 1px solid #e6e6e6; background: #f7f7f7; }
 body.tm-discovery-category-page .tm-discovery-project-subrow .tm-discovery-facet-label { display: none; }
 body.tm-discovery-category-page .tm-discovery-location-row { padding: 12px 20px 18px; gap: 0 20px; }
 body.tm-discovery-category-page .tm-discovery-location-list { margin: 0 0 0 134px; padding: 12px 19px; min-height: 66px; background: #f7f7f7; border-color: #e6e6e6; }
}

/* 详情参考实测主体975px；标题与圆角采用唯一三S标准。 */
.tm-discovery-detail .tm-discovery-container { width: min(975px, calc(100% - 40px)); }
.tm-discovery-detail .tm-discovery-store-head { grid-template-columns: minmax(0, 1fr) 416px; gap: 40px; padding: 24px 56px 0; border-radius: var(--sss-radius-card) !important; }
.tm-discovery-detail .tm-discovery-store-info { justify-content: flex-start; }
.tm-discovery-detail .tm-discovery-store-info h1 { font-size: 28px; font-weight: 600; line-height: 1.25; }
.tm-discovery-detail .tm-discovery-partition { border-radius: var(--sss-radius-card) !important; }
@media (max-width: 900px) {
 .tm-discovery-detail .tm-discovery-store-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 20px; }
}
@media (max-width: 760px) {
 .tm-discovery-detail .tm-discovery-store-head { grid-template-columns: minmax(0, 1fr); }
 .tm-discovery-detail .tm-discovery-store-info h1 { font-size: 24px; }
}

/* 详情公开评分与发现列表使用同一已发布rating，不把质量评分换算为星级。 */
.tm-discovery-detail .tm-discovery-score-line #detail-score { display: inline; font-size: 14px; color: var(--sss-red); }
.tm-discovery-detail .tm-discovery-score-line { order: -1; }
.tm-discovery-detail .tm-discovery-store-info h1 { order: -2; }

/* 参考分类排序下拉：沿原排序入口向下展开，不新增卡片区块。 */
.tm-sort-dropdown { position: relative; flex: 0 0 91px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
body.tm-discovery-category-page .tm-sort-dropdown > .tm-discovery-reference-sort { margin-left: 0; }
.tm-sort-menu { position: absolute; top: -1px; right: -1px; z-index: 20; width: 94px; padding: 0; background: #ffffff; border: 1px solid #e6e6e6; border-radius: var(--sss-radius-panel); box-shadow: var(--sss-card-shadow); }
.tm-sort-menu[hidden] { display: none; }
.tm-sort-menu > button { display: block; width: 100%; min-height: var(--sss-control-height); padding: 0 8px; border: 0; background: #ffffff; text-align: left; font: inherit; color: #666666; cursor: pointer; }
.tm-sort-menu > .tm-sort-menu-title { height: 44px; text-align: center; border-radius: var(--sss-radius-panel) var(--sss-radius-panel) 0 0; }
.tm-price-range { display: flex; gap: 3px; align-items: center; margin-top: 8px; }
.tm-price-range input { min-width: 0; width: calc((100% - 15px) / 2); height: var(--sss-control-height); border: 1px solid #e6e6e6; border-radius: var(--sss-radius-control); padding: 4px; font-size: 12px; }
.tm-price-range-actions { display: flex; gap: 4px; margin-top: 6px; }
.tm-price-range-actions button { border: 1px solid #e6e6e6; border-radius: var(--sss-radius-control); background: #ffffff; min-height: var(--sss-control-height); padding: 0 7px; font-size: 12px; cursor: pointer; }
.tm-price-range-actions button[type=submit] { color: #d71c20; }

/* 分类参考正常态没有搜索完成说明行；加载及错误提示仍保留。 */
body.tm-discovery-category-page #search-status:empty { display: none; }

body.tm-discovery-category-page #reference-pagination { justify-content: flex-end; gap: 10px; margin: 10px 0; padding: 0; }
#reference-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--sss-control-height); height: var(--sss-control-height); padding: 0 10px; border: 1px solid var(--sss-border); border-radius: var(--sss-radius-control); color: #666; background: #fff; }
#reference-pagination [aria-current="page"] { background: var(--sss-red); border-color: var(--sss-red); color: #fff; }
#reference-pagination:empty { display: none; }

/* 分类参考顶部随页面滚动；三S规范仅替换视觉属性，不新增吸顶行为。 */
body.tm-discovery-category-page .tm-topbar-category { position: static; }

body.tm-discovery-category-page .tm-discovery-side-offer { position: static; }

/* 分类参考评分图形66×12；保留已批准的连续血槽与评分数值。 */
body.tm-discovery-category-page .tm-list-blood-inline { min-width: 0; max-width: none; flex: 0 0 auto; }
body.tm-discovery-category-page .tm-list-blood-inline .tm-blood { flex: 0 0 66px; width: 66px; height: 12px; }

/* 总分与好评共用参考向下方向，选中仅更换强调色。 */
body.tm-discovery-category-page .tm-score-direction { display: inline-block; }

/* 三S规范第二节：H3 16/500/1.75，Small 13/400/1.6。 */
body.tm-discovery-category-page .tm-discovery-result-info h3 { font-weight: 500; line-height: 1.75; }
body.tm-discovery-category-page .tm-discovery-result-line,
body.tm-discovery-category-page .tm-discovery-result-detail { line-height: 1.6; }

/* 已实测场馆EMPTY：面包屑后为全宽208px提示；推荐来源另行验收。 */
body.tm-discovery-category-page:has(.tm-empty-reference) .tm-discovery-channel-head,
body.tm-discovery-category-page:has(.tm-empty-reference) .tm-discovery-reference-toolbar,
body.tm-discovery-category-page:has(.tm-empty-reference) .tm-discovery-category-side,
body.tm-discovery-category-page:has(.tm-empty-reference) .tm-map-toggle { display: none; }
body.tm-discovery-category-page:has(.tm-empty-reference) .tm-content-grid { grid-template-columns: minmax(0, 1fr); }
body.tm-discovery-category-page .tm-discovery-results:has(.tm-empty-reference) { border: 0; background: transparent; box-shadow: none; }
body.tm-discovery-category-page .tm-empty-reference { min-height: 208px; padding: 56px 20px 0 247px; }
body.tm-discovery-category-page .tm-empty-reference p:first-child { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.4; color: var(--sss-text); }
body.tm-discovery-category-page .tm-empty-reference p + p { margin: 40px 0 0; font-size: 13px; line-height: 1.6; color: #666666; }
@media (max-width: 760px) {
  body.tm-discovery-category-page .tm-empty-reference { padding-left: var(--sss-card-padding); }
}

/* 课程学习页（PC 学习端）：进度条与学习区容器 */
.tm-study-progress-bar{height:8px;border-radius:999px;background:#e6e6e6;overflow:hidden}
.tm-study-progress-bar > span{display:block;height:100%;border-radius:999px;background:#d71c20;transition:width .2s}
.tm-study-player{min-height:240px;display:flex;align-items:center;padding:16px}
.tm-study-catalog-item{display:flex;justify-content:space-between;gap:10px;padding:10px 16px;border-top:1px solid #e6e6e6;font-size:13px;color:#3a3a3a}
.tm-study-catalog-item:first-child{border-top:0}

/*
 * C 端窄屏收口（2026-09-26）
 *
 * 大众点评当前移动首页在同一视口下使用“品牌/应用入口 + 紧凑搜索 +
 * 5 列图标分类 + 2 列内容流”。三S保留 7 个业务分类和自有品牌皮肤，
 * 只在窄屏恢复同类信息密度。本段放在文件末尾，用来覆盖上方的桌面端定宽校准，
 * 避免 390px 视口被 543–783px 内容反向撑宽后整页缩小。
 */
@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: hidden; }

  .tm-topbar-inner,
  .tm-container,
  .tm-discovery-container,
  .tm-discovery-detail .tm-discovery-container,
  body.tm-discovery-category-page .tm-discovery-container,
  body.tm-discovery-category-page .tm-category-inner {
    width: calc(100% - 32px) !important;
    max-width: none;
  }

  /* 频道页头：保留 Logo、搜索、登录和 App 入口，其余入口在横向频道行内滚动。 */
  .tm-nav-utility { width: 100%; height: 60px; gap: 8px; overflow: hidden; }
  .tm-nav-utility .tm-brand { min-width: 0; flex: 0 0 auto; gap: 0; font-size: 0; }
  .tm-nav-utility .tm-brand-logo { width: 76px; height: 32px; }
  .tm-nav-utility .tm-global-search {
    min-width: 0;
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    height: 32px;
    padding: 0 10px;
  }
  .tm-nav-utility .tm-global-search input { min-width: 0; font-size: 12px; }
  .tm-nav-right { flex: 0 0 auto; gap: 6px; margin-left: 0; }
  .tm-nav-login,
  .tm-nav-right > .tm-nav-link:last-child {
    display: inline-flex;
    min-width: 0 !important;
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
  .tm-topnav { width: 100%; min-width: 0; gap: 20px; padding: 0 2px; overflow-x: auto; }

  /* 分类型页头：取消桌面端绝对定位，避免 Logo/搜索/按钮相互覆盖。 */
  .tm-topbar-category {
    display: flex;
    flex-direction: column;
    height: auto !important;
    overflow: hidden;
  }
  .tm-topbar-category .tm-category-main,
  .tm-topbar-category .tm-category-utility {
    position: static !important;
    inset: auto !important;
    width: 100%;
  }
  .tm-topbar-category .tm-category-main { order: 1; height: 56px !important; }
  .tm-topbar-category .tm-category-utility { order: 2; height: 40px !important; }
  .tm-topbar-category .tm-category-channel { order: 3; }
  .tm-topbar-category .tm-category-inner {
    position: static !important;
    width: calc(100% - 32px) !important;
    height: 100% !important;
    margin: 0 auto !important;
  }
  .tm-category-main .tm-category-inner {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .tm-topbar-category .tm-category-main .tm-brand {
    position: static !important;
    min-width: 0;
    height: auto !important;
    gap: 0;
    font-size: 0;
  }
  .tm-topbar-category .tm-category-main .tm-brand-logo { width: 76px; height: 32px; }
  .tm-topbar-category .tm-category-main .tm-global-search,
  body.tm-discovery-category-page .tm-category-main .tm-global-search {
    position: static !important;
    min-width: 0;
    width: auto;
    max-width: none;
    height: 32px;
    margin: 0;
    padding: 0 10px;
  }
  body:has(.tm-discovery-cat-grid) .tm-category-main .tm-brand-logo {
    width: 76px;
    height: 32px;
  }
  body:has(.tm-discovery-cat-grid) .tm-category-main .tm-global-search {
    position: static !important;
    min-width: 0;
    width: auto;
    max-width: none;
    height: 32px;
    margin: 0;
    padding: 0 10px;
  }
  .tm-topbar-category .tm-global-search input { min-width: 0; font-size: 12px; }
  .tm-topbar-category .tm-category-search-btn { display: none; }
  .tm-topbar-category .tm-category-app {
    position: static !important;
    height: 32px !important;
    padding: 0 10px !important;
    margin: 0;
    font-size: 12px !important;
  }
  .tm-topbar-category .tm-category-utility .tm-location {
    position: static !important;
    display: inline-flex;
    height: 40px;
    margin: 0;
  }
  body:has(.tm-discovery-cat-grid) .tm-category-utility .tm-location {
    position: static !important;
    left: auto;
    top: auto;
    height: 40px;
    margin: 0;
  }
  .tm-topbar-category .tm-category-links { display: none !important; }

  /* 首页：7 个分类保持 5 列图标密度，内容流改为参考站窄屏的 2 列。 */
  body:has(.tm-discovery-cat-grid) .tm-discovery-container,
  body:has(.tm-discovery-cat-grid) .tm-discovery-section .tm-discovery-container {
    width: calc(100% - 32px) !important;
  }
  body:has(.tm-discovery-cat-grid) .tm-discovery-section:nth-of-type(1) { padding-top: 14px; }
  body:has(.tm-discovery-cat-grid) .tm-discovery-cat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  body:has(.tm-discovery-cat-grid) .tm-discovery-cat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 82px;
    height: auto;
    padding: 7px 2px;
    gap: 4px;
    text-align: center;
  }
  body:has(.tm-discovery-cat-grid) .tm-discovery-cat-ico,
  body:has(.tm-discovery-cat-grid) .tm-discovery-cat-ico img { width: 38px; height: 38px; }
  body:has(.tm-discovery-cat-grid) .tm-discovery-cat-body h3 {
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
  }
  body:has(.tm-discovery-cat-grid) .tm-discovery-waterfall,
  body:has(.tm-discovery-cat-grid) .tm-discovery-waterfall.tm-discovery-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    columns: auto;
  }
  body:has(.tm-discovery-cat-grid) .tm-discovery-feed { min-width: 0; margin: 0; }
  body:has(.tm-discovery-cat-grid) .tm-discovery-feed-media { aspect-ratio: 1 / 1; }
  body:has(.tm-discovery-cat-grid) .tm-discovery-feed-body { padding: 10px; }
  body:has(.tm-discovery-cat-grid) .tm-discovery-feed-body h3 { font-size: 14px; line-height: 1.45; }
  body:has(.tm-discovery-cat-grid) .tm-discovery-feed-time { display: none; }

  /* 详情页：评分行和返回头在窄屏可换行，不再用 220/250px 最小宽度撑开页面。 */
  .tm-topbar-detail .tm-topbar-inner { width: calc(100% - 24px) !important; }
  .tm-detail-utility { min-width: 0; gap: 8px; }
  .tm-topbar-detail .tm-brand { min-width: 0; gap: 0; font-size: 0; }
  .tm-topbar-detail .tm-brand-logo { width: 76px !important; height: 32px !important; }
  .tm-detail-links { min-width: 0; gap: 8px; margin-left: auto; }
  .tm-detail-links a { font-size: 12px; }
  .tm-detail-app-cta { height: 32px !important; padding: 0 10px !important; font-size: 12px !important; }
  .tm-discovery-detail .tm-discovery-store-head { min-width: 0; padding: 16px; }
  .tm-discovery-detail .tm-discovery-store-info { min-width: 0; }
  .tm-discovery-detail .tm-discovery-score-line { min-width: 0; flex-wrap: wrap; }
  .tm-discovery-detail .tm-discovery-score-line #detail-blood-bar,
  .tm-discovery-detail .tm-discovery-score-line #coach-blood-bar,
  .tm-discovery-score-line #coach-blood-bar,
  .tm-discovery-score-line #detail-blood-bar {
    flex: 1 1 100%;
    min-width: 0 !important;
    width: 100%;
  }
  .tm-list-blood-inline { min-width: 0; max-width: 100%; }
  .tm-list-blood-inline .tm-blood { min-width: 0; width: auto; }
  .tm-list-blood-value { min-width: 0; }

  /* 商城分区在手机上保留原层级，商品卡独占一列，避免三列把名称和购买按钮挤成窄条。 */
  .tm-mall-goods { grid-template-columns: minmax(0, 1fr); }
  .tm-mall-good { min-width: 0; }

  /* 参考站窄屏不保留桌面右侧优惠栏。 */
  body.tm-discovery-category-page .tm-discovery-category-side { display: none; }
}

/* BOSS 2026-09-26：全地图公共顶部以15号用户协议页为准。
   固定白色带、同一原始Logo、无额外Logo动画；保留11的定位/搜索/经营/登录/APP动作。 */
body.tm-public-header-page .tm-shell { padding-top: 64px; }
body.tm-public-header-page .tm-topbar-category {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: #fff;
  border-bottom: 0;
  box-shadow: none;
  animation: none;
  transition: none;
}
/* 官网分隔线在白色头部下沿之外；独立绘制，避免内部导航白底遮住。 */
body.tm-public-header-page .tm-topbar-public::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(221, 227, 234, .78);
  z-index: 3;
  pointer-events: none;
}
body.tm-public-header-page .tm-topbar-public .tm-category-main,
body.tm-public-header-page .tm-topbar-public .tm-category-utility {
  position: absolute;
  inset: 0;
  height: 64px;
}
body.tm-public-header-page .tm-topbar-public .tm-category-main { z-index: 1; }
body.tm-public-header-page .tm-topbar-public .tm-category-utility { z-index: 2; background: transparent; border: 0; pointer-events: none; }
body.tm-public-header-page .tm-topbar-public .tm-location,
body.tm-public-header-page .tm-topbar-public .tm-category-links { pointer-events: auto; }
body.tm-public-header-page .tm-topbar-public .tm-brand { font-size: 0; }
body.tm-public-header-page .tm-topbar-public .tm-global-search {
  display: flex;
  border: 0;
  border-radius: 999px;
  background: #f7f7f7;
  color: #181818;
  box-shadow: none;
}
body.tm-public-header-page .tm-topbar-public .tm-category-links { font-size: 13px; font-weight: 400; color: #666; }
body.tm-public-header-page .tm-topbar-public .tm-category-links a { order: 0; }
body.tm-public-header-page .tm-topbar-public .tm-category-app { font-size: 15px; font-weight: 600; }
.tm-page-context { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 12px 0; color: var(--sss-muted); font-size: 13px; }
.tm-breadcrumb .tm-page-context { display: inline-flex; width: auto; margin: 0 0 0 18px; padding: 0; }
.tm-discovery-container > .tm-page-context { width: 100%; margin: 0; }
@media (min-width: 769px) {
  body.tm-public-header-page .tm-category-inner {
    display: grid;
    grid-template-columns: 95px 178px minmax(100px, 1fr) 246px 112px;
    gap: 18px;
    width: min(1200px, calc(100vw - 40px));
    height: 64px;
    margin: 0;
    margin-left: max(20px, calc((100vw - 1200px) / 2));
  }
  body.tm-public-header-page .tm-category-main .tm-brand,
  body.tm-public-header-page .tm-category-utility .tm-location,
  body.tm-public-header-page .tm-category-main .tm-global-search,
  body.tm-public-header-page .tm-category-utility .tm-category-links,
  body.tm-public-header-page .tm-category-app {
    position: static;
    min-width: 0;
    margin: 0;
    width: auto;
    max-width: none;
    align-self: center;
  }
  body.tm-public-header-page .tm-category-main .tm-brand {
    grid-column: 1;
    grid-row: 1;
    height: 55px;
    padding: 0;
  }
  body.tm-public-header-page .tm-category-main .tm-brand-logo {
    width: 95px;
    height: 55px;
    object-position: center;
    animation: none;
    transition: none;
  }
  body.tm-public-header-page .tm-category-utility .tm-location { grid-column: 2; grid-row: 1; height: 40px; }
  body.tm-public-header-page .tm-loc-select { min-width: 0; max-width: 150px; }
  body.tm-public-header-page .tm-category-main .tm-global-search { grid-column: 3; grid-row: 1; height: 32px; }
  body.tm-public-header-page .tm-global-search input { min-width: 0; }
  body.tm-public-header-page .tm-category-utility .tm-category-links { grid-column: 4; grid-row: 1; height: 40px; gap: 18px; justify-content: flex-end; white-space: nowrap; }
  body.tm-public-header-page .tm-category-app { grid-column: 5; grid-row: 1; height: 40px; padding: 0 12px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  body.tm-public-header-page .tm-topbar-category,
  body.tm-public-header-page .tm-category-main,
  body.tm-public-header-page .tm-category-utility,
  body.tm-public-header-page .tm-category-inner { height: 74px; min-height: 74px; }
  body.tm-public-header-page .tm-shell { padding-top: 74px; }
  body.tm-public-header-page .tm-category-inner {
    width: calc(100vw - 32px);
    grid-template-columns: 84px 126px minmax(80px, 1fr) 230px 108px;
    gap: 10px;
    margin-left: 16px;
  }
  body.tm-public-header-page .tm-category-main .tm-brand { align-self: start; margin-top: 14px; height: 48px; }
  body.tm-public-header-page .tm-category-main .tm-brand-logo { width: 84px; height: 48px; }
}
@media (max-width: 768px) {
  /* 窄屏同74px：定位在搜索下方，均避开Logo，不删定位交互。 */
  body.tm-public-header-page .tm-shell { padding-top: 74px; }
  body.tm-public-header-page .tm-topbar-category { height: 74px !important; display: block; }
  body.tm-public-header-page .tm-category-main { height: 74px !important; position: static !important; }
  body.tm-public-header-page .tm-topbar-public .tm-category-inner { position: static !important; width: calc(100% - 32px) !important; margin: 0 16px !important; height: 100% !important; }
  body.tm-public-header-page .tm-category-main .tm-category-inner { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 8px; }
  body.tm-public-header-page .tm-category-main .tm-brand { position: static !important; align-self: start; margin-top: 14px; height: 48px !important; }
  body.tm-public-header-page .tm-category-main .tm-brand-logo { width: 84px; height: 48px; object-position: center; animation: none; transition: none; }
  body.tm-public-header-page .tm-category-main .tm-global-search,
  body.tm-public-header-page .tm-category-app { position: static !important; align-self: start; margin-top: 8px; width: auto; min-width: 0; max-width: none; height: 32px; }
  body.tm-public-header-page .tm-topbar-public .tm-global-search { padding: 0 10px; }
  body.tm-public-header-page .tm-topbar-public .tm-category-app { padding: 0 10px; font-size: 12px !important; }
  body.tm-public-header-page .tm-topbar-public .tm-category-utility {
    position: absolute !important;
    top: 40px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: 28px !important;
  }
  body.tm-public-header-page .tm-category-utility .tm-category-inner { padding-left: 92px; }
  body.tm-public-header-page .tm-topbar-public .tm-location { position: static !important; display: inline-flex; height: 28px; min-width: 0; }
  body.tm-public-header-page .tm-topbar-public .tm-category-links { display: none !important; }
  body.tm-public-header-page .tm-topbar-public .tm-loc-select { height: 26px; min-width: 0; max-width: 140px; padding-top: 2px; padding-bottom: 2px; font-size: 12px; }
}
