/* AumTherm —— 虚构的工业加热设备品牌。整站样式一份，没有构建步骤。
   配色和头部跟同系列的另外两个原型（AumPower / AumFlow）一致。 */
:root {
  --blue: #003e7e;
  --orange: #ed6500;
  --ink: #1a1a1a;
  --muted: #777;
  --line: #e1e1e1;
  --paper: #faf8f6;
}
* { box-sizing: border-box; }
/* 🔴 别删。页面上大半的显示/隐藏靠 `hidden` 属性，而它只是 UA 样式，
   我们自己写的任何一条 `display: flex` 都会盖过去。 */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 14px/1.45 Manrope, Arial, sans-serif;
}
h1, h2, h3 { margin: 0; }

/* ── 站点头 ───────────────────────────────────────────── */
.site-header {
  height: 76px; display: flex; align-items: center; gap: 54px;
  padding: 0 max(34px, calc((100vw - 1400px) / 2 + 34px));
  border-bottom: 1px solid #e5e5e5; background: #fff;
}
.wordmark { display: flex; align-items: center; gap: 9px; color: #111; text-decoration: none; letter-spacing: 1.1px; font-size: 12px; }
.wordmark-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font: italic 15px Georgia, serif; }
.wordmark strong span { font-weight: 500; color: #777; }
.main-nav { display: flex; align-self: stretch; align-items: center; gap: 29px; flex: 1; }
.main-nav a { height: 100%; display: flex; align-items: center; position: relative; color: #676467; text-decoration: none; font-size: 11px; }
.main-nav a.active { color: #151515; font-weight: 700; }
.main-nav a.active:after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.header-actions > button[aria-label='Search'] { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 0; background: none; color: #252525; }
.header-actions > button[aria-label='Search'] svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.contact-button { display: flex; gap: 9px; align-items: center; padding: 10px 13px; border: 0; border-radius: 4px; background: #171717; color: #fff; font-size: 10px; font-weight: 700; cursor: pointer; }
.contact-button svg { width: 14px; height: 14px; fill: none; stroke: #ff984d; stroke-width: 1.8; }

/* ── 页面 ─────────────────────────────────────────────── */
.locator-shell { max-width: 1400px; margin: 0 auto; padding: 38px 34px 96px; }
.locator-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.eyebrow { font: 600 10px/1 monospace; letter-spacing: 1.1px; color: var(--muted); text-transform: uppercase; }
.locator-head h1 { margin-top: 12px; font-size: 38px; letter-spacing: -.9px; }
.lede { margin: 10px 0 0; max-width: 46ch; color: #5f5b58; font-size: 14px; line-height: 1.6; }
.net-stats { display: flex; gap: 30px; margin: 0; flex: none; }
.net-stats dt { font: 500 9px/1 monospace; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
.net-stats dd { margin: 8px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -.5px; }

/* ── 地图 ─────────────────────────────────────────────── */
.map-panel { margin-top: 26px; }
.map-frame { position: relative; border-radius: 12px; background: linear-gradient(165deg, #f7f5f2, #eceae6); padding: 18px 20px; }
#worldMap { display: block; width: 100%; height: auto; }
/* `r` 作为 CSS 属性用（SVG geometry property）—— 放大地图时让点反向缩小，
   否则 3.4 倍之后是一片圆饼。哪天遇到不支持的浏览器，退化成「点变大了」，
   难看但不影响演示，所以不值得为它写 JS 逐个改属性。 */
#mapDots circle { r: calc(.95px * var(--dot-scale, 1)); fill: #cfc9c2; transition: fill .5s, r .9s cubic-bezier(.4, 0, .2, 1); }
#mapDots circle.lit { fill: #a9a29a; }
#mapMarkers g { transition: opacity .5s, transform .5s; cursor: default; }
#mapMarkers g.out { opacity: .12; }
#mapMarkers circle.pin { fill: #55504c; }
#mapMarkers g.on circle.pin { fill: var(--orange); }
#mapMarkers circle.halo { fill: var(--orange); opacity: 0; }
#mapMarkers g.on circle.halo { opacity: .2; animation: halo 2.4s ease-out infinite; }
@keyframes halo { 0% { r: 2; opacity: .35; } 100% { r: 7; opacity: 0; } }
#mapMarkers text { font: 700 3px/1 Manrope, sans-serif; fill: #3d3936; opacity: 0; transition: opacity .4s; }
#mapMarkers g.named text { opacity: 1; }
#worldMap > g { transition: transform .9s cubic-bezier(.4, 0, .2, 1); transform-origin: 0 0; }
.map-region {
  position: absolute; top: 16px; left: 20px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 20px; background: #fff;
  font: 600 10px/1 monospace; letter-spacing: .6px; text-transform: uppercase; color: #3d3936;
  box-shadow: 0 4px 14px #0000000f;
  animation: fade-up .4s ease both;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(5px); } }

/* ── 伙伴列表 ─────────────────────────────────────────── */
.partner-section { margin-top: 34px; }
.partner-head { display: flex; align-items: baseline; gap: 14px; }
.partner-head h2 { font-size: 20px; letter-spacing: -.4px; }
.partner-head p { margin: 0; color: var(--muted); font-size: 12px; }
.partner-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.partner-card {
  padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: opacity .45s, border-color .45s, box-shadow .45s, background .45s;
}
.partner-card.dropped { opacity: .32; background: #fbfaf9; }
.partner-card.chosen { border-color: var(--orange); box-shadow: 0 8px 26px #ed650014; }
.partner-city { font: 500 9px/1 monospace; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; }
.partner-card h3 { margin: 9px 0 0; font-size: 15px; }
.partner-terr { margin: 7px 0 0; color: #6d6864; font-size: 11px; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.badge { padding: 4px 8px; border-radius: 4px; background: #f1eeea; font: 600 9px/1.4 monospace; letter-spacing: .3px; color: #55504c; text-transform: uppercase; }
.badge.cert { background: #e7f3ea; color: #256b3c; }
.badge.gone { background: #f6e9e6; color: #94493a; }
.partner-drop { display: flex; align-items: center; gap: 6px; margin: 11px 0 0; font-size: 11px; color: #94493a; }
.partner-drop i { width: 5px; height: 5px; border-radius: 50%; background: #c8705c; flex: none; }
.partner-contact { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding-top: 12px; border-top: 1px dashed #e3ded8; }
.partner-contact i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #22201e; color: #fff; font: 700 10px/1 Manrope, sans-serif; font-style: normal; }
.partner-contact b { display: block; font-size: 12px; }
.partner-contact em { font-style: normal; font-size: 10px; color: var(--muted); }

/* ── 浮动入口 + 路由面板 ──────────────────────────────── */
.route-trigger {
  position: fixed; z-index: 6; right: 26px; bottom: 26px;
  display: flex; align-items: center; gap: 9px;
  padding: 14px 20px; border: 0; border-radius: 30px;
  background: #171717; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 30px #0000002e;
}
.route-trigger svg { width: 17px; height: 17px; fill: none; stroke: #ff984d; stroke-width: 1.8; stroke-linecap: round; }

.route-panel {
  position: fixed; z-index: 7; right: 26px; bottom: 26px;
  display: flex; flex-direction: column;
  width: 470px; max-height: calc(100dvh - 52px);
  border-radius: 14px; background: #fff; box-shadow: 0 26px 70px #00000029;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .28s, transform .28s, visibility .28s;
}
.route-panel.open { opacity: 1; visibility: visible; transform: none; }
.route-panel header { display: flex; justify-content: space-between; gap: 14px; padding: 18px 22px 15px; border-bottom: 1px solid #f0ece8; }
.route-panel header span { font: 600 9px/1 monospace; letter-spacing: 1px; color: var(--orange); text-transform: uppercase; }
.route-panel header h2 { margin-top: 8px; font-size: 17px; letter-spacing: -.3px; }
.route-panel header > button { align-self: start; width: 26px; height: 26px; padding: 0; border: 0; background: none; color: #8b8580; cursor: pointer; }
.route-panel header > button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.route-content { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 22px 22px; }
.route-intro { margin: 0 0 14px; color: #5f5b58; font-size: 12px; line-height: 1.65; }

/* 四步。做完的收成一行摘要 —— 面板只有 500 多像素高，
   四个展开的选项组根本放不下，而每一步选完之后那些按钮就没用了。 */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.step { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; transition: border-color .3s, background .3s; }
.step.is-open { border-color: #cfc7bf; }
.step.done { background: #fbfaf9; }
.step-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 13px; border: 0; background: none; text-align: left; cursor: pointer; }
.step-head i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e6e2de; font: 700 10px/1 Manrope, sans-serif; font-style: normal; color: #6f6a66; flex: none; transition: background .3s, color .3s; }
.step.done .step-head i { background: #3f9c5d; color: #fff; }
.step.is-open .step-head i { background: var(--orange); color: #fff; }
.step-head span { font-size: 12px; font-weight: 700; flex: none; }
.step-head em { flex: 1; text-align: right; font-style: normal; font-size: 11px; color: var(--muted); }
.step-body { display: none; padding: 2px 13px 13px; }
.step.is-open .step-body { display: block; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; font-size: 11px; font-weight: 600; color: #45413e; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: #b9b2ab; }
.chip.on { border-color: var(--orange); background: #fff4ea; color: #a55a10; }
.step-note { display: flex; align-items: center; gap: 7px; margin: 11px 0 0; font-size: 11px; color: #256b3c; }
.step-note i { width: 6px; height: 6px; border-radius: 50%; background: #3f9c5d; flex: none; }

/* 路由结果 */
.routing { margin-top: 16px; animation: fade-up .45s ease both; }
.routing-banner { display: grid; gap: 5px; padding: 12px 14px; border-radius: 9px; background: #fff4ea; border: 1px solid #f3d7b9; margin-bottom: 10px; animation: fade-up .45s ease both; }
.routing-banner b { font-size: 12px; color: #a55a10; letter-spacing: .3px; text-transform: uppercase; }
.routing-banner span { font-size: 11px; line-height: 1.55; color: #6f5a45; }
.routed-card { padding: 16px; border: 1px solid #d8d2cb; border-radius: 10px; }
.routed-label { font: 600 9px/1 monospace; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; }
.routed-card > b { display: block; margin-top: 9px; font-size: 17px; letter-spacing: -.3px; }
.routed-card > em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--muted); }
.score { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.score > span { font: 500 9px/1 monospace; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
.score-bar { flex: 1; height: 5px; border-radius: 3px; background: #ece8e3; overflow: hidden; }
.score-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--orange); transition: width .8s cubic-bezier(.4, 0, .2, 1); }
.score > b { font-size: 13px; }
.reasons { margin: 13px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.reasons li { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #45413e; }
.reasons li:before { content: ''; width: 13px; height: 13px; border-radius: 50%; flex: none; background: #3f9c5d no-repeat center / 8px 8px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 6 3 3 5-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.local-support { display: flex; align-items: center; gap: 8px; margin: 13px 0 0; padding-top: 12px; border-top: 1px dashed #e3ded8; font-size: 11px; color: #5f5b58; }
.local-support i { width: 6px; height: 6px; border-radius: 50%; background: #b9b3ac; flex: none; }

.btn-primary { width: 100%; margin-top: 14px; padding: 13px; border: 0; border-radius: 6px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .3px; cursor: pointer; }
.btn-ghost { width: 100%; margin-top: 14px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; }

/* 提交后 */
.sent { padding: 20px 4px; text-align: center; animation: fade-up .45s ease both; }
.sent-mark { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto; border-radius: 50%; background: #e7f3ea; }
.sent-mark svg { width: 20px; height: 20px; fill: none; stroke: #3f9c5d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sent > b { display: block; margin-top: 12px; font-size: 17px; }
.sent > p { margin: 7px 0 0; font-size: 12px; color: #5f5b58; }
.sent code { padding: 2px 6px; border-radius: 4px; background: #f1eeea; font-size: 11px; }
.sent-trail { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed #e3ded8; list-style: none; display: grid; gap: 7px; text-align: left; }
.sent-trail li { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #45413e; }
.sent-trail li:before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #3f9c5d; flex: none; }

/* ── Toast ───────────────────────────────────────────── */
.toast {
  position: fixed; z-index: 20; left: 50%; bottom: 34px;
  padding: 12px 20px; border-radius: 8px; background: #1c1a18; color: #fff;
  font-size: 12px; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 窄屏 ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .site-header { gap: 20px; padding: 0 18px; }
  .main-nav { display: none; }
  .locator-shell { padding: 22px 18px 80px; }
  .locator-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .locator-head h1 { font-size: 28px; }
  .net-stats { gap: 22px; }
  .net-stats dd { font-size: 21px; }
  .route-panel { right: 12px; left: 12px; bottom: 12px; width: auto; max-height: calc(100dvh - 24px); }
  .route-trigger { right: 12px; bottom: 12px; }
}
