/* 铭浪软件官网首页（2026-10 动态版）。协议、隐私、404 页仍使用 site.css。
   站点 CSP 为 style-src 'self'：页面里不写 style 属性，动态数值由 home.js 通过 CSSOM 设置 CSS 变量。 */

:root {
  --ink: #0f1f38;
  --ink-2: #33435a;
  --muted: #5c687a;
  --line: #dfe5ec;
  --paper: #f7f9fc;
  --white: #ffffff;
  --blue: #0877df;
  --blue-deep: #0659ad;
  --sky: #19a7f5;
  --blue-soft: #e8f3fd;
  --coral: #ff684f;
  --amber: #ffb547;
  --ok: #17a673;
  --shadow: 0 24px 60px -24px rgba(15, 31, 56, 0.28), 0 4px 14px rgba(15, 31, 56, 0.06);
  font-family: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); font-size: 16px; line-height: 1.7; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffad33; outline-offset: 4px; border-radius: 6px; }
[id] { scroll-margin-top: 84px; }

.hp-shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.hp-skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; transform: translateY(-160%); }
.hp-skip:focus { transform: none; }

/* ---------- 顶栏 ---------- */
.hp-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 249, 252, 0.82); border-bottom: 1px solid transparent; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: border-color 0.3s ease, background 0.3s ease; }
.hp-header.is-scrolled { border-bottom-color: rgba(15, 31, 56, 0.08); background: rgba(247, 249, 252, 0.94); }
.hp-header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hp-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.hp-brand span { display: flex; min-width: 0; flex-direction: column; line-height: 1.3; }
.hp-brand strong { font-size: 18px; letter-spacing: 0.02em; }
.hp-brand small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hp-nav { display: flex; align-items: center; gap: 30px; }
.hp-nav a { position: relative; padding: 8px 0; color: var(--ink-2); font-weight: 700; font-size: 15px; text-decoration: none; transition: color 0.2s ease; }
.hp-nav a::after { content: ""; position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform 0.25s ease; }
.hp-nav a:hover, .hp-nav a[aria-current="true"] { color: var(--blue); }
.hp-nav a:hover::after, .hp-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.hp-nav .hp-nav__cta { padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.hp-nav .hp-nav__cta::after { display: none; }
.hp-nav .hp-nav__cta:hover, .hp-nav .hp-nav__cta[aria-current="true"] { background: var(--blue); color: #fff; }
.hp-nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.hp-nav-toggle__close { display: none; }

/* ---------- 首屏 ---------- */
.hp-hero { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 36px; }
.hp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 46% at 78% 42%, rgba(25, 167, 245, 0.16), rgba(25, 167, 245, 0) 70%),
    radial-gradient(30% 40% at 12% 90%, rgba(255, 104, 79, 0.08), rgba(255, 104, 79, 0) 70%);
}
.hp-hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hp-hero__grid { min-height: min(760px, calc(100vh - 72px)); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr); gap: 40px; align-items: center; padding-block: 56px 32px; }
.hp-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.hp-eyebrow { color: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: 0.14em; }
.hp-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px 4px 10px; border: 1px solid rgba(8, 119, 223, 0.25); border-radius: 999px; background: rgba(255, 255, 255, 0.75); color: var(--blue-deep); font-size: 13px; font-weight: 800; }
.hp-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(23, 166, 115, 0.18); animation: hp-blink 2.4s ease-in-out infinite; }
@keyframes hp-blink { 50% { opacity: 0.35; } }
.hp-hero h1 { margin-bottom: 24px; font-size: clamp(42px, 4.8vw, 66px); line-height: 1.16; letter-spacing: -0.04em; }
.hp-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hp-line > * { display: inline-block; }
.hp-js .hp-line { animation: hp-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hp-js .hp-line + .hp-line { animation-delay: 0.12s; }
@keyframes hp-rise { from { opacity: 0; transform: translateY(40%); } }
.hp-mark { position: relative; color: var(--blue); white-space: nowrap; }
.hp-mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.04em; height: 0.2em; z-index: -1; border-radius: 0.1em;
  background: linear-gradient(90deg, rgba(25, 167, 245, 0.35), rgba(8, 119, 223, 0.15)); transform-origin: left; animation: hp-draw 0.9s 0.55s cubic-bezier(0.6, 0, 0.2, 1) both;
}
.hp-mark--warm { color: var(--coral); }
.hp-mark--warm::after { background: linear-gradient(90deg, rgba(255, 104, 79, 0.32), rgba(255, 181, 71, 0.2)); animation-delay: 0.8s; }
@keyframes hp-draw { from { transform: scaleX(0); } }
.hp-lead { max-width: 600px; color: var(--muted); font-size: 18px; line-height: 1.85; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 12px; font-size: 17px; font-weight: 800; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.hp-btn--primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px -12px rgba(8, 119, 223, 0.7); }
.hp-btn--primary img { transition: transform 0.2s ease; }
.hp-btn--primary:hover { background: var(--blue-deep); transform: translateY(-2px); }
.hp-btn--primary:hover img { transform: translateX(3px); }
.hp-btn--ghost { border: 1.5px solid rgba(8, 119, 223, 0.45); background: rgba(255, 255, 255, 0.7); color: var(--blue); }
.hp-btn--ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.hp-note { max-width: 560px; margin-top: 30px; padding-left: 14px; border-left: 3px solid var(--blue); color: var(--muted); font-size: 14px; line-height: 1.7; }

/* 右侧舞台 */
.hp-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.hp-orbit { position: absolute; inset: 0; pointer-events: none; }
.hp-node {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow); font-size: 14px; font-weight: 800; color: var(--ink-2);
  animation: hp-float 6s ease-in-out infinite; transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hp-node img { padding: 3px; border-radius: 8px; background: var(--blue-soft); }
.hp-node--org { top: 9%; left: 0; }
.hp-node--teacher { bottom: 18%; left: -2%; animation-delay: -2s; }
.hp-node.is-pulse { box-shadow: 0 0 0 6px rgba(25, 167, 245, 0.18), var(--shadow); }
@keyframes hp-float { 50% { transform: translateY(-10px); } }

.hp-phone {
  --mp-s: 0.736;
  position: relative; z-index: 1; width: 300px; height: 560px; border-radius: 48px;
  background: #0f1f38; box-shadow: 0 0 0 1px #2b3a52, 0 40px 80px -30px rgba(15, 31, 56, 0.55), 0 0 0 10px rgba(255, 255, 255, 0.0);
  transform: perspective(1200px) rotateY(var(--tilt-y, -8deg)) rotateX(var(--tilt-x, 4deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- 手机里的小程序：按家长端首页 375 逻辑宽度还原，再整体缩放 ---------- */
.mp {
  position: absolute; left: 12px; top: 12px; width: 375px; height: 728px; overflow: hidden; border-radius: 48px;
  transform: scale(var(--mp-s)); transform-origin: 0 0; background: #fff6ee; color: #2d2520;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif; line-height: 1.4; text-align: left;
}
.mp-num { font-family: "DIN Alternate", "DIN Condensed", Roboto, "Helvetica Neue", Arial, sans-serif; }
.mp-status { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 34px; color: #fff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mp-island { position: absolute; top: 10px; left: 50%; width: 112px; height: 32px; border-radius: 18px; background: #000; transform: translateX(-50%); }
.mp-sys { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.mp-sys i { width: 3px; border-radius: 1px; background: #fff; }
.mp-sys i:nth-child(1) { height: 5px; }
.mp-sys i:nth-child(2) { height: 8px; }
.mp-sys i:nth-child(3) { width: 20px; height: 10px; margin-left: 5px; border-radius: 3px; }
.mp-capsule { position: absolute; z-index: 3; top: 54px; right: 12px; width: 88px; height: 32px; border-radius: 16px; background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(0, 0, 0, 0.06); }
.mp-capsule i { position: absolute; top: 14px; left: 24px; width: 5px; height: 5px; border-radius: 50%; background: #1d1d1f; box-shadow: -8px 0 #1d1d1f, 8px 0 #1d1d1f; }
.mp-capsule b { position: absolute; top: 7px; right: 14px; width: 18px; height: 18px; border: 2.5px solid #1d1d1f; border-radius: 50%; box-sizing: border-box; }
.mp-capsule b::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: #1d1d1f; }

.mp-hero { position: relative; overflow: hidden; padding: 96px 18px 96px; color: #fff; background: linear-gradient(170deg, #ffb48a 0%, #ff8a65 60%, #f26a3d 100%); }
.mp-hero::before { content: ""; position: absolute; top: -60px; right: -50px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 66%); }
.mp-hero small { position: relative; display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; opacity: 0.92; }
.mp-greet { position: relative; display: block; margin: 5px 0 4px; font-size: 20px; font-weight: 800; }
.mp-date { position: relative; display: block; font-size: 11.5px; opacity: 0.88; }
.mp-bell { position: absolute; top: 96px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.4); }
.mp-bell i { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #ffe066; box-shadow: 0 0 0 2px #ff8a65; opacity: 0; transform: scale(0); transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.5); }
.mp-bell.is-on i { opacity: 1; transform: none; }
.mp-bell.is-ring img { animation: mp-ring 0.9s ease; }
@keyframes mp-ring { 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.mp-kids { position: relative; display: flex; gap: 8px; margin-top: 16px; }
.mp-kids span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 15px 0 5px; border-radius: 17px; background: rgba(255, 255, 255, 0.22); color: #fff; font-size: 13.5px; font-weight: 800; }
.mp-kids b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.3); font-size: 11px; }
.mp-kids .is-on { background: #fff; color: #2d2520; }
.mp-kids .is-on b { background: linear-gradient(135deg, #ffb48a, #f26a3d); color: #fff; }

.mp-card { background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(60, 40, 20, 0.05), 0 14px 28px -9px rgba(60, 40, 20, 0.26); }
.mp-child { position: relative; margin: -80px 14px 0; padding: 16px; background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(60, 40, 20, 0.05), 0 14px 28px -9px rgba(60, 40, 20, 0.26); }
.mp-child__top { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.mp-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 18px; font-weight: 800; background: linear-gradient(135deg, #ffb48a, #f26a3d); box-shadow: 0 0 0 3px #fff4ec; }
.mp-child__top strong { display: block; font-size: 17px; font-weight: 800; }
.mp-child__top small { display: block; margin-top: 2px; color: #8b7e73; font-size: 11.5px; }
.mp-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: #faf6f1; color: #8b7e73; font-size: 11.5px; font-weight: 800; transition: background 0.3s ease, color 0.3s ease; }
.mp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mp-pill.is-good { background: #e8f2d9; color: #4f7a22; }
.mp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.mp-tile { padding: 11px 12px 12px; border: 1px solid #f0e6de; border-radius: 13px; background: #faf6f1; }
.mp-tile.is-bump { animation: mp-bump 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.3); }
@keyframes mp-bump { 40% { transform: scale(1.04); background: #fff4ec; } }
.mp-tile__h { display: flex; align-items: center; gap: 7px; color: #5c4f44; font-size: 12px; font-weight: 700; }
.mp-ico { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #ffe9dd; }
.mp-ico--good { background: #e8f2d9; }
.mp-tile__v { display: flex; align-items: baseline; gap: 3px; margin: 9px 0 3px; }
.mp-tile__v b { font-family: "DIN Alternate", "DIN Condensed", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 27px; font-weight: 800; line-height: 1; }
.mp-tile__v small { color: #5c4f44; font-size: 12px; font-weight: 700; }
.mp-hw { margin: 12px 0 6px; color: #8b7e73; font-size: 17px; font-weight: 800; line-height: 1.1; transition: color 0.3s ease; }
.mp-hw.is-done { color: #4f7a22; }
.mp-tile__sub { display: block; overflow: hidden; color: #8b7e73; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.mp-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; padding-top: 13px; border-top: 1px solid #f0e6de; }
.mp-quick span { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #5c4f44; font-size: 12px; font-weight: 800; }
.mp-quick i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #fff4ec; border: 1px solid #ffe9dd; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.mp-quick .is-tap i { transform: scale(0.92); box-shadow: 0 0 0 4px rgba(242, 106, 61, 0.18); }

.mp-photos { margin: 12px 14px 0; padding: 14px 16px 16px; background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(60, 40, 20, 0.05), 0 14px 28px -9px rgba(60, 40, 20, 0.2); }
.mp-photos__h { display: flex; align-items: flex-start; justify-content: space-between; }
.mp-photos__h strong { display: block; font-size: 15.5px; font-weight: 800; }
.mp-photos__h small { display: block; margin-top: 2px; color: #8b7e73; font-size: 11px; }
.mp-photos__h > span { display: inline-flex; align-items: center; gap: 2px; padding-top: 3px; color: #f26a3d; font-size: 12.5px; font-weight: 800; }
.mp-photos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }
.mp-photos__grid:empty::before { content: "老师打卡后，照片会出现在这里"; grid-column: 1 / -1; height: 112px; display: grid; place-items: center; border: 1.5px dashed #ead9cb; border-radius: 13px; color: #b8ada2; font-size: 11.5px; }
.mp-photo { position: relative; height: 112px; overflow: hidden; border-radius: 13px; }
.mp-photo.is-new { animation: mp-photo-in 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.2) both; }
@keyframes mp-photo-in { from { opacity: 0; transform: scale(0.85); } }
.mp-photo__art { position: absolute; inset: 0; background: linear-gradient(180deg, #cdddf6, #5b6f96); }
.mp-photo--meal .mp-photo__art { background: linear-gradient(180deg, #f7d8b2, #93603a); }
.mp-photo--play .mp-photo__art { background: linear-gradient(180deg, #dcefc9, #6e8e4e); }
.mp-photo__art i { position: absolute; top: 20px; left: 26%; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); }
.mp-photo__art b { position: absolute; top: 46px; left: 50%; width: 52px; height: 44px; border-radius: 10px; background: rgba(255, 255, 255, 0.35); }
.mp-photo::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, rgba(30, 20, 12, 0), rgba(30, 20, 12, 0.5)); }
.mp-photo__meta { position: absolute; z-index: 1; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; }
.mp-photo__meta em { padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: #2d2520; font-size: 10.5px; font-style: normal; font-weight: 800; }
.mp-photo__meta time { color: #fff; font-size: 11px; font-weight: 700; }

.mp-dock {
  position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 2; height: 62px; padding: 6px; display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; align-items: center;
  border-radius: 31px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 2px 4px rgba(60, 40, 20, 0.05), 0 18px 36px -12px rgba(60, 40, 20, 0.3);
}
.mp-dock span { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8b7e73; font-size: 10.5px; font-weight: 700; }
.mp-dock .is-on { flex-direction: row; justify-content: center; gap: 6px; height: 50px; border-radius: 25px; background: linear-gradient(135deg, #ff9670, #f26a3d); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 8px 18px -6px rgba(242, 106, 61, 0.6); }

/* 微信服务号提醒横幅（小书包提醒） */
.mp-banner {
  position: absolute; z-index: 5; top: 10px; left: 10px; right: 10px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 11px 13px; border-radius: 22px; background: rgba(250, 250, 250, 0.94); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transform: translateY(-140%); transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}
.mp-banner.is-show { transform: none; }
.mp-banner img { padding: 3px; border-radius: 9px; background: #fff; border: 1px solid #e8e8ea; }
.mp-banner strong { display: block; font-size: 13px; font-weight: 800; }
.mp-banner__text { display: -webkit-box; overflow: hidden; color: #3a3a3c; font-size: 12.5px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mp-banner time { align-self: start; color: #8e8e93; font-size: 11px; }
.mp.is-reset { animation: mp-reset 0.9s ease; }
@keyframes mp-reset { 40% { opacity: 0; } }
.hp-stage__caption { position: absolute; bottom: -4px; color: #98a2b3; font-size: 12px; }

.hp-ticker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.hp-ticker li { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.7); color: var(--ink-2); font-weight: 800; transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease; }
.hp-ticker li.is-on { border-color: rgba(8, 119, 223, 0.45); background: #fff; color: var(--blue); transform: translateY(-3px); }

/* ---------- 通用段落 ---------- */
.hp-section { padding-block: 110px; }
.hp-head { max-width: 760px; margin-bottom: 52px; }
.hp-kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: 0.12em; }
.hp-kicker span { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; letter-spacing: 0.04em; }
.hp-section h2, .hp-afternoon h2, .hp-contact h2 { margin-bottom: 18px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.22; letter-spacing: -0.03em; }
.hp-head > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.85; }
.hp-js .hp-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--delay, 0s); }
.hp-js .hp-reveal.is-in { opacity: 1; transform: none; }

/* 产品三支柱：鼠标跟随的光斑 */
.hp-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hp-pillar {
  position: relative; overflow: hidden; padding: 34px 30px 32px; border: 1px solid var(--line); border-radius: 22px; background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.hp-pillar::before {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(25, 167, 245, 0.14), transparent 70%);
}
.hp-pillar:hover { border-color: rgba(8, 119, 223, 0.35); box-shadow: var(--shadow); transform: translateY(-4px); }
.hp-pillar:hover::before { opacity: 1; }
.hp-pillar__no { position: absolute; top: 18px; right: 24px; color: #e6ebf2; font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.hp-pillar__icon { position: relative; width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 16px; background: var(--blue-soft); transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.3); }
.hp-pillar:hover .hp-pillar__icon { transform: rotate(-8deg) scale(1.08); }
.hp-pillar h3 { position: relative; margin-bottom: 10px; font-size: 22px; }
.hp-pillar p { position: relative; color: var(--muted); }

/* ---------- 一个下午：滚动进度 --p（0~1）由 home.js 设置 ---------- */
.hp-afternoon {
  --p: 0;
  position: relative; padding-block: 110px; color: var(--ink);
  background: linear-gradient(180deg, #fff7ec 0%, #fdeedd calc(40% - var(--p) * 30%), #e9f1fb calc(100% - var(--p) * 40%), #dbe8f8 100%);
}
.hp-afternoon__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.hp-afternoon__head { position: sticky; top: 120px; }
.hp-afternoon__head > p { color: var(--muted); font-size: 17px; line-height: 1.85; }
.hp-sky { position: relative; height: 150px; margin-top: 36px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, var(--sky-top, #ffd9a8), var(--sky-bottom, #fff3e2)); transition: background 0.4s linear; }
.hp-sky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: rgba(15, 31, 56, 0.08); clip-path: polygon(0 60%, 12% 30%, 22% 55%, 36% 20%, 50% 50%, 64% 25%, 78% 55%, 90% 35%, 100% 50%, 100% 100%, 0 100%); }
.hp-sun {
  position: absolute; left: calc(8% + var(--p) * 76%); top: calc(18% + var(--p) * var(--p) * 70%); width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d6, var(--sun, #ffb547)); box-shadow: 0 0 0 10px rgba(255, 181, 71, 0.2), 0 0 40px rgba(255, 181, 71, 0.6);
}
.hp-sky__time { position: absolute; right: 16px; top: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hp-timeline { position: relative; display: grid; gap: 22px; padding-left: 40px; }
.hp-timeline::before, .hp-timeline::after { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: rgba(15, 31, 56, 0.1); }
.hp-timeline::after { background: linear-gradient(180deg, var(--amber), var(--coral) 45%, var(--blue)); transform-origin: top; transform: scaleY(var(--p)); }
.hp-step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 24px 26px; border-radius: 20px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(15, 31, 56, 0.06); transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, opacity 0.4s ease; }
.hp-js .hp-step { opacity: 0.55; }
.hp-step::before { content: ""; position: absolute; left: -36px; top: 30px; width: 17px; height: 17px; border-radius: 50%; border: 3px solid #cfd8e3; background: #fff; transition: border-color 0.3s ease, transform 0.3s ease; }
.hp-step.is-on { opacity: 1; background: #fff; box-shadow: var(--shadow); transform: translateX(6px); }
.hp-step.is-on::before { border-color: var(--coral); transform: scale(1.15); }
.hp-step time { padding-top: 2px; color: var(--blue); font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.hp-step h3 { margin-bottom: 6px; font-size: 20px; }
.hp-step p { color: var(--muted); }

/* ---------- 关于我们 ---------- */
.hp-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px 64px; align-items: center; }
.hp-about__text { max-width: 620px; margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hp-shield { position: relative; width: 300px; height: 300px; justify-self: center; }
.hp-shield__ring { position: absolute; inset: 0; border: 2px dashed rgba(8, 119, 223, 0.3); border-radius: 50%; animation: hp-spin 40s linear infinite; }
.hp-shield__ring--2 { inset: 46px; border-style: solid; border-color: rgba(25, 167, 245, 0.18); animation-duration: 26s; animation-direction: reverse; }
.hp-shield__core { position: absolute; inset: 92px; display: grid; place-items: center; border-radius: 34px; background: linear-gradient(145deg, #fff, var(--blue-soft)); box-shadow: var(--shadow); }
.hp-shield__sat { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px; display: grid; place-items: center; border-radius: 16px; background: #fff; box-shadow: var(--shadow); animation: hp-sat 18s linear infinite; }
.hp-shield__sat--2 { animation-delay: -6s; }
.hp-shield__sat--3 { animation-delay: -12s; }
@keyframes hp-spin { to { transform: rotate(360deg); } }
@keyframes hp-sat { from { transform: rotate(0deg) translateX(150px) rotate(0deg); } to { transform: rotate(360deg) translateX(150px) rotate(-360deg); } }
.hp-trust { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hp-trust li { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.hp-trust img { flex: none; }
.hp-trust h3 { margin-bottom: 4px; font-size: 17px; }
.hp-trust p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- 联系我们 ---------- */
.hp-contact { padding-block: 0 110px; }
.hp-contact__grid {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 56px; border-radius: 30px; background: linear-gradient(130deg, #0b2c55, var(--blue) 60%, var(--sky)); color: #fff;
}
.hp-contact__grid::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, 0.06); }
.hp-contact h2 { color: #fff; }
.hp-contact__grid > div > p:last-child { color: rgba(255, 255, 255, 0.82); font-size: 17px; }
.hp-kicker--light { color: rgba(255, 255, 255, 0.85); }
.hp-kicker--light span { background: #fff; color: var(--blue); }
.hp-contact__list { position: relative; display: grid; gap: 14px; }
.hp-contact__item { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); transition: background 0.25s ease; }
.hp-contact__item:hover { background: rgba(255, 255, 255, 0.18); }
.hp-contact__item a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.hp-contact__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #fff; }
.hp-contact__item small { display: block; color: rgba(255, 255, 255, 0.75); font-size: 13px; }
.hp-contact__item strong { display: block; overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.hp-copy { flex: none; min-width: 64px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: #fff; color: var(--blue); font-weight: 800; cursor: pointer; transition: transform 0.2s ease; }
.hp-copy:hover { transform: translateY(-1px); }
.hp-copy.is-done { background: var(--ok); color: #fff; }

/* ---------- 页脚 ---------- */
.hp-footer { border-top: 1px solid var(--line); background: #fff; }
.hp-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; color: var(--muted); font-size: 14px; }
.hp-footer__inner strong { color: var(--ink); }
.hp-footer__inner p { margin-top: 2px; }
.hp-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hp-footer__links a { text-decoration: none; }
.hp-footer__links a:hover { color: var(--blue); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hp-hero__grid { grid-template-columns: minmax(0, 1fr); padding-block: 40px 20px; }
  .hp-stage { min-height: 600px; }
  .hp-afternoon__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hp-afternoon__head { position: static; }
  .hp-about__grid { grid-template-columns: minmax(0, 1fr); }
  .hp-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-contact__grid { grid-template-columns: minmax(0, 1fr); padding: 40px; }
}
@media (max-width: 760px) {
  .hp-shell { width: calc(100% - 32px); }
  .hp-nav-toggle { display: inline-flex; }
  .hp-nav {
    position: fixed; inset: 72px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 20px 40px -20px rgba(15, 31, 56, 0.25);
  }
  .hp-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .hp-nav .hp-nav__cta { margin-top: 12px; padding: 12px; border-radius: 12px; border: 0; text-align: center; }
  .nav-open .hp-nav { display: flex; }
  .nav-open .hp-nav-toggle__open { display: none; }
  .nav-open .hp-nav-toggle__close { display: block; }
  .hp-brand small { display: none; }
  .hp-hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .hp-lead { font-size: 16px; }
  .hp-actions .hp-btn { flex: 1; }
  .hp-stage { min-height: 520px; }
  .hp-phone { --mp-s: 0.656; width: 270px; height: 500px; }
  .hp-orbit { display: none; }
  .hp-ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-section, .hp-afternoon { padding-block: 72px; }
  .hp-pillars, .hp-trust { grid-template-columns: minmax(0, 1fr); }
  .hp-timeline { padding-left: 30px; }
  .hp-step { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 20px; }
  .hp-step::before { left: -26px; }
  .hp-timeline::before, .hp-timeline::after { left: 3px; }
  .hp-shield { width: 240px; height: 240px; }
  .hp-shield__core { inset: 72px; }
  @keyframes hp-sat { from { transform: rotate(0deg) translateX(120px) rotate(0deg); } to { transform: rotate(360deg) translateX(120px) rotate(-360deg); } }
  .hp-contact { padding-bottom: 72px; }
  .hp-contact__grid { padding: 28px 20px; border-radius: 24px; }
  .hp-contact__item strong { font-size: 16px; }
  .hp-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hp-js .hp-reveal { opacity: 1; transform: none; }
  .hp-phone { transform: none; }
}
