/* ============================================================
   3M直连 — 独立产品线样式（黑白高级风）
   ============================================================ */
:root {
  --m3-bg: #0a0a0b;
  --m3-bg-2: #0e0e10;
  --m3-card: rgba(255, 255, 255, 0.045);
  --m3-line: rgba(255, 255, 255, 0.09);
  --m3-line-strong: rgba(255, 255, 255, 0.18);
  --m3-text: #f4f4f2;
  --m3-text-2: #a8a8a3;
  --m3-text-3: #6e6e6a;
  --m3-glass: rgba(255, 255, 255, 0.055);
  --m3-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --m3-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --m3-latin: "Outfit", "Noto Sans SC", sans-serif;
  --m3-cjk: "Noto Sans SC", sans-serif;
  --m3-serif: "Noto Serif SC", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.m3-body {
  background: var(--m3-bg); color: var(--m3-text);
  font-family: var(--m3-cjk); line-height: 1.7;
  min-height: 100dvh; -webkit-font-smoothing: antialiased;
}
.m3-body button { font-family: inherit; cursor: pointer; }
.m3-body input, .m3-body textarea, .m3-body select { font-family: inherit; }
.m3-body a { color: inherit; text-decoration: none; }
.m3-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }
.m3-hide { display: none !important; }

/* ---------- 通用组件 ---------- */
.m3-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 999px; color: var(--m3-text);
  font-size: 15px; font-weight: 500; letter-spacing: 0.03em; padding: 13px 28px;
  background: var(--m3-glass); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid var(--m3-line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.11), 0 10px 34px rgba(0,0,0,0.42);
  overflow: hidden; transition: transform 0.35s var(--m3-ease), background 0.35s, border-color 0.35s;
}
.m3-btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.16) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--m3-ease);
}
.m3-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.26); transform: translateY(-2px); }
.m3-btn:hover::before { transform: translateX(120%); }
.m3-btn:active { transform: scale(0.97); }
.m3-btn:disabled { opacity: 0.45; pointer-events: none; }
.m3-btn-lg { padding: 16px 36px; font-size: 16px; }
.m3-btn-sm { padding: 9px 18px; font-size: 13px; }
.m3-btn-primary { background: rgba(255,255,255,0.92); color: #0a0a0b; border-color: transparent; }
.m3-btn-primary:hover { background: #fff; }
.m3-btn-ghost { background: transparent; border-color: var(--m3-line-strong); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.m3-btn-ghost:hover { background: rgba(255,255,255,0.05); }
.m3-btn-block { width: 100%; }

.m3-card {
  border-radius: 22px; background: var(--m3-card);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--m3-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 20px 60px rgba(0,0,0,0.32);
}
.m3-kicker {
  font-family: var(--m3-latin); font-size: 12.5px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--m3-text-3); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.m3-kicker::before { content: ""; width: 30px; height: 1px; background: var(--m3-text-3); }
.m3-fade-in { animation: m3Fade 0.6s var(--m3-ease); }
@keyframes m3Fade { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 3M 顶栏 ---------- */
.m3-nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(10,10,11,0.7); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--m3-line);
}
.m3-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--m3-latin); font-weight: 700; letter-spacing: 0.06em; font-size: 18px; }
.m3-logo-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--m3-line-strong); background: rgba(255,255,255,0.05);
  font-size: 12px; font-weight: 700; letter-spacing: 0;
}
.m3-nav-links { display: flex; gap: 26px; }
.m3-nav-links a { font-size: 14px; color: var(--m3-text-2); transition: color 0.3s; }
.m3-nav-links a:hover, .m3-nav-links a.is-active { color: var(--m3-text); }
.m3-nav-right { display: flex; align-items: center; gap: 12px; }
.m3-host-chip {
  font-family: var(--m3-latin); font-size: 12px; color: var(--m3-text-2);
  border: 1px solid var(--m3-line-strong); border-radius: 999px; padding: 5px 14px;
  display: inline-flex; align-items: center; gap: 8px; max-width: 300px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.m3-host-chip i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: m3Pulse 1.8s infinite; flex: none; }
@keyframes m3Pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- 落地页 ---------- */
.m3-hero {
  position: relative; overflow: hidden;
  padding: clamp(70px, 9vw, 130px) 0 clamp(60px, 7vw, 100px);
  background:
    radial-gradient(900px 520px at 72% 12%, rgba(255,255,255,0.06), transparent 62%),
    radial-gradient(700px 480px at 6% 92%, rgba(255,255,255,0.04), transparent 60%),
    var(--m3-bg);
}
.m3-hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}
.m3-hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.m3-slogan {
  font-family: var(--m3-serif); font-weight: 900;
  font-size: clamp(40px, 5.6vw, 74px); line-height: 1.14; letter-spacing: 0.02em;
}
.m3-slogan .line { display: block; overflow: hidden; }
.m3-slogan .line em { font-style: normal; display: inline-block; transform: translateY(110%); animation: m3Line 1s var(--m3-ease) forwards; }
.m3-slogan .line:nth-child(2) em { animation-delay: 0.12s; }
@keyframes m3Line { to { transform: none; } }
.m3-hero-sub { color: var(--m3-text-2); font-weight: 300; margin: 26px 0 36px; max-width: 48ch; }
.m3-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.m3-hero-stats { display: flex; gap: clamp(16px, 3vw, 34px); margin-top: 46px; }
.m3-hero-stats b { display: block; font-family: var(--m3-latin); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
.m3-hero-stats span { font-size: 12px; color: var(--m3-text-3); letter-spacing: 0.08em; }

/* 主机示意卡 */
.m3-host-visual {
  border-radius: 22px; padding: 26px; position: relative;
  background: var(--m3-card); border: 1px solid var(--m3-line-strong);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 30px 80px rgba(0,0,0,0.5);
}
.m3-hv-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--m3-text-3); font-family: var(--m3-latin); letter-spacing: 0.1em; margin-bottom: 18px; }
.m3-hv-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--m3-line); font-size: 13px; color: var(--m3-text-2); }
.m3-hv-row:last-child { border-bottom: 0; }
.m3-hv-row b { color: var(--m3-text); font-weight: 500; font-family: var(--m3-latin); }
.m3-hv-ledger { margin-top: 16px; font-family: var(--m3-latin); font-size: 12px; color: var(--m3-text-3); line-height: 2; }
.m3-hv-ledger i { font-style: normal; color: #fff; }

/* 特性区 */
.m3-section { padding: clamp(64px, 8vw, 110px) 0; }
.m3-section-alt { background: var(--m3-bg-2); border-top: 1px solid var(--m3-line); border-bottom: 1px solid var(--m3-line); }
.m3-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.m3-feature { padding: 30px 28px; border-radius: 20px; background: var(--m3-card); border: 1px solid var(--m3-line); transition: transform 0.5s var(--m3-ease), border-color 0.5s; }
.m3-feature:hover { transform: translateY(-5px); border-color: var(--m3-line-strong); }
.m3-feature-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--m3-line-strong); display: grid; place-items: center; margin-bottom: 18px; background: rgba(255,255,255,0.04); }
.m3-feature-icon svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.m3-feature h3 { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.m3-feature p { font-size: 13.5px; color: var(--m3-text-2); font-weight: 300; }

/* 工作流步骤 */
.m3-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; counter-reset: flow; }
.m3-flow-step { padding: 26px 24px; border-radius: 18px; border: 1px solid var(--m3-line); background: var(--m3-card); position: relative; }
.m3-flow-step::before {
  counter-increment: flow; content: "0" counter(flow);
  font-family: var(--m3-latin); font-size: 13px; color: var(--m3-text-3); letter-spacing: 0.2em;
}
.m3-flow-step h4 { font-size: 15.5px; font-weight: 500; margin: 10px 0 6px; }
.m3-flow-step p { font-size: 13px; color: var(--m3-text-2); font-weight: 300; }

/* ---------- 订阅页 ---------- */
.m3-plan-wrap { max-width: 560px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0; }
.m3-plan {
  border-radius: 26px; padding: clamp(30px, 4vw, 44px); position: relative;
  background: var(--m3-card); border: 1px solid var(--m3-line-strong);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 30px 80px rgba(0,0,0,0.45);
}
.m3-plan-badge { position: absolute; top: 22px; right: 24px; font-size: 11px; letter-spacing: 0.16em; border: 1px solid var(--m3-line-strong); border-radius: 999px; padding: 4px 13px; color: var(--m3-text-2); }
.m3-plan h2 { font-family: var(--m3-serif); font-weight: 900; font-size: clamp(26px, 3.4vw, 36px); }
.m3-plan-price { font-family: var(--m3-latin); font-size: 46px; font-weight: 600; margin: 14px 0 4px; }
.m3-plan-price small { font-size: 14px; color: var(--m3-text-3); font-weight: 400; }
.m3-plan ul { list-style: none; margin: 24px 0 30px; }
.m3-plan li { font-size: 14px; color: var(--m3-text-2); padding: 9px 0 9px 26px; position: relative; border-top: 1px solid var(--m3-line); }
.m3-plan li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.m3-plan-disabled { opacity: 0.4; pointer-events: none; filter: grayscale(1); }

/* ---------- 授权页（另一个网站） ---------- */
.m3-auth-site {
  min-height: 100dvh; display: grid; place-items: center; padding: 30px 20px;
  background:
    radial-gradient(1000px 600px at 50% -10%, rgba(255,255,255,0.07), transparent 60%),
    linear-gradient(180deg, #0c0c0e, #08080a);
  position: relative; overflow: hidden;
}
.m3-auth-site::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, #000 20%, transparent 70%);
}
.m3-auth-card {
  position: relative; width: min(520px, 100%);
  border-radius: 28px; padding: clamp(34px, 5vw, 52px); text-align: center;
  background: rgba(16,16,18,0.88); -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid var(--m3-line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.11), 0 40px 110px rgba(0,0,0,0.65);
  animation: m3CardIn 0.7s var(--m3-elastic);
}
@keyframes m3CardIn { from { transform: scale(0.92) translateY(20px); opacity: 0; } }
.m3-auth-logo { font-family: var(--m3-latin); font-weight: 700; font-size: 30px; letter-spacing: 0.1em; }
.m3-auth-logo span { display: inline-block; animation: m3Fade 0.8s var(--m3-ease) backwards; }
.m3-auth-slogan { font-family: var(--m3-serif); font-weight: 600; font-size: clamp(20px, 2.6vw, 26px); margin: 14px 0 8px; }
.m3-auth-desc { font-size: 13.5px; color: var(--m3-text-2); margin-bottom: 30px; }
.m3-auth-steps { text-align: left; margin-bottom: 28px; }
.m3-auth-step { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--m3-line); font-size: 13.5px; color: var(--m3-text-2); align-items: flex-start; }
.m3-auth-step b { color: var(--m3-text); font-weight: 500; font-family: var(--m3-latin); flex: none; }
.m3-auth-corner { position: absolute; top: 22px; right: 24px; font-size: 11px; color: var(--m3-text-3); letter-spacing: 0.2em; font-family: var(--m3-latin); }

/* 授权页：账号读取 / 3M 网站选择 */
.m3-read-box { text-align: left; border-radius: 16px; border: 1px solid var(--m3-line-strong); background: rgba(255,255,255,0.04); padding: 16px 18px; margin-bottom: 12px; }
.m3-read-box > span { font-size: 11px; color: var(--m3-text-3); letter-spacing: 0.18em; display: block; margin-bottom: 8px; }
.m3-read-account { display: flex; align-items: center; gap: 13px; }
.m3-read-avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--m3-line-strong); display: grid; place-items: center; font-family: var(--m3-latin); font-weight: 600; font-size: 16px; background: rgba(255,255,255,0.06); flex: none; }
.m3-read-account b { display: block; font-size: 14.5px; font-weight: 500; }
.m3-read-account span { font-size: 12.5px; color: var(--m3-text-3); }
.m3-read-ok { margin-left: auto; font-size: 11px; color: var(--m3-text-2); border: 1px solid var(--m3-line-strong); border-radius: 999px; padding: 3px 11px; flex: none; }
.m3-site-opt { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 15px 17px; border-radius: 16px; margin-bottom: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--m3-line-strong); color: var(--m3-text); }
.m3-site-opt.is-sel { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.5); }
.m3-site-opt i { width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--m3-line-strong); flex: none; position: relative; }
.m3-site-opt.is-sel i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.m3-site-opt b { display: block; font-size: 14.5px; font-weight: 500; }
.m3-site-opt span { font-size: 12px; color: var(--m3-text-3); }
.m3-site-opt em { margin-left: auto; font-style: normal; font-family: var(--m3-latin); font-size: 12.5px; color: var(--m3-text-2); flex: none; }
.m3-auth-warn { text-align: left; font-size: 13px; color: var(--m3-text-2); border-radius: 14px; border: 1px dashed rgba(255,255,255,0.25); padding: 16px 18px; margin-bottom: 14px; }
.m3-auth-warn b { color: #fff; font-weight: 500; }
.m3-link-btn { background: none; border: 0; color: var(--m3-text-3); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; padding: 0; margin-top: 12px; }
.m3-link-btn:hover { color: var(--m3-text); }

/* ---------- 激活向导 ---------- */
.m3-wizard { max-width: 640px; margin: 0 auto; padding: clamp(36px, 5vw, 70px) 0 80px; }
.m3-wz-head { text-align: center; margin-bottom: 34px; }
.m3-wz-head h1 { font-family: var(--m3-serif); font-weight: 900; font-size: clamp(26px, 3.6vw, 38px); }
.m3-wz-head p { color: var(--m3-text-2); font-size: 14px; margin-top: 8px; }
.m3-wz-steps { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; }
.m3-wz-dot { display: flex; align-items: center; gap: 10px; }
.m3-wz-dot i {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--m3-line-strong);
  display: grid; place-items: center; font-style: normal; font-size: 11px; font-family: var(--m3-latin);
  color: var(--m3-text-3); transition: all 0.4s var(--m3-ease);
}
.m3-wz-dot.is-done i, .m3-wz-dot.is-cur i { background: #fff; color: #0a0a0b; border-color: #fff; }
.m3-wz-dot span { font-size: 12px; color: var(--m3-text-3); }
.m3-wz-dot.is-cur span { color: var(--m3-text); }
.m3-wz-sep { width: 26px; height: 1px; background: var(--m3-line-strong); }

.m3-wz-panel { display: none; }
.m3-wz-panel.is-active { display: block; animation: m3Fade 0.55s var(--m3-ease); }
.m3-wz-panel > h2 { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.m3-wz-panel > .m3-wz-tip { font-size: 13.5px; color: var(--m3-text-2); margin-bottom: 24px; }

.m3-account-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: 16px; margin-bottom: 12px;
  background: var(--m3-card); border: 1px solid var(--m3-line); color: var(--m3-text);
  transition: border-color 0.3s, background 0.3s;
}
.m3-account-opt:hover { border-color: var(--m3-line-strong); }
.m3-account-opt.is-sel { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.09); }
.m3-account-opt i {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--m3-line-strong);
  flex: none; position: relative;
}
.m3-account-opt.is-sel i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.m3-account-opt b { display: block; font-size: 14.5px; font-weight: 500; }
.m3-account-opt span { font-size: 12.5px; color: var(--m3-text-3); }

.m3-service-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; border-radius: 16px; margin-bottom: 12px; width: 100%; text-align: left;
  background: var(--m3-card); border: 1px solid var(--m3-line); color: var(--m3-text);
  transition: border-color 0.3s, background 0.3s;
}
.m3-service-opt.is-sel { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.09); }
.m3-service-opt b { font-size: 15px; font-weight: 500; display: block; }
.m3-service-opt span { font-size: 12.5px; color: var(--m3-text-3); }
.m3-service-opt em { font-style: normal; font-family: var(--m3-latin); color: var(--m3-text-2); font-size: 13px; }

.m3-speed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.m3-speed-opt {
  padding: 26px 16px; border-radius: 18px; text-align: center;
  background: var(--m3-card); border: 1px solid var(--m3-line); color: var(--m3-text);
  transition: transform 0.4s var(--m3-ease), border-color 0.3s, background 0.3s;
}
.m3-speed-opt:hover { transform: translateY(-4px); border-color: var(--m3-line-strong); }
.m3-speed-opt.is-sel { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.1); }
.m3-speed-opt b { display: block; font-family: var(--m3-latin); font-size: 30px; font-weight: 600; }
.m3-speed-opt span { font-size: 12px; color: var(--m3-text-3); line-height: 1.5; display: block; margin-top: 6px; }

.m3-verify-box { padding: 26px; border-radius: 20px; background: var(--m3-card); border: 1px solid var(--m3-line); }
.m3-verify-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.m3-verify-meta div { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.035); border: 1px solid var(--m3-line); }
.m3-verify-meta span { font-size: 11px; color: var(--m3-text-3); letter-spacing: 0.14em; display: block; margin-bottom: 4px; }
.m3-verify-meta b { font-family: var(--m3-latin); font-size: 13.5px; font-weight: 500; word-break: break-all; }
.m3-captcha-q { font-family: var(--m3-latin); font-size: 26px; font-weight: 600; letter-spacing: 0.1em; text-align: center; padding: 18px 0; }
.m3-captcha-input { text-align: center; }
.m3-captcha-input input {
  width: 130px; padding: 12px; text-align: center; font-size: 20px; font-family: var(--m3-latin);
  border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--m3-line-strong);
  color: #fff; outline: none;
}
.m3-captcha-input input:focus { border-color: rgba(255,255,255,0.5); }
.m3-verify-note { font-size: 12px; color: var(--m3-text-3); margin-top: 16px; text-align: center; }

.m3-waiting { text-align: center; padding: 44px 0; }
.m3-waiting-ring { width: 74px; height: 74px; margin: 0 auto 22px; position: relative; }
.m3-waiting-ring i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--m3-line); border-top-color: #fff;
  animation: m3Spin 0.9s linear infinite;
}
@keyframes m3Spin { to { transform: rotate(360deg); } }
.m3-waiting p { color: var(--m3-text-2); font-size: 14.5px; }
.m3-waiting-bar { width: 220px; height: 3px; background: var(--m3-line); border-radius: 3px; margin: 20px auto 0; overflow: hidden; }
.m3-waiting-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; transition: width 0.4s linear; }

.m3-success { text-align: center; }
.m3-success-icon {
  width: 78px; height: 78px; margin: 0 auto 24px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45); display: grid; place-items: center;
  animation: m3Pop 0.8s var(--m3-elastic);
}
@keyframes m3Pop { from { transform: scale(0.3); opacity: 0; } }
.m3-success-icon svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m3-success h2 { font-family: var(--m3-serif); font-weight: 900; font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 10px; }
.m3-success > p { color: var(--m3-text-2); font-size: 14px; margin-bottom: 26px; }
.m3-host-result {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 16px;
  background: rgba(255,255,255,0.06); border: 1px dashed rgba(255,255,255,0.3);
  font-family: var(--m3-latin); font-size: 16px; letter-spacing: 0.04em; margin-bottom: 30px;
}
.m3-host-result a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 2px; }
.m3-host-result a:hover { border-bottom-color: #fff; }

.m3-alert {
  font-size: 13px; color: #ffb3b3; padding: 12px 16px; border-radius: 12px;
  background: rgba(255,120,120,0.08); border: 1px solid rgba(255,120,120,0.25);
  margin-bottom: 16px; display: none;
}
.m3-alert.is-show { display: block; animation: m3Fade 0.4s var(--m3-ease); }

/* ---------- 新手指引 ---------- */
.m3-guide-wrap { max-width: 780px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0; }
.m3-guide-step { display: grid; grid-template-columns: 110px 1fr; gap: 26px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--m3-line); }
.m3-guide-illu { height: 100px; border-radius: 16px; border: 1px solid var(--m3-line); background: rgba(255,255,255,0.03); display: grid; place-items: center; }
.m3-guide-illu svg { width: 44px; height: 44px; fill: none; stroke: rgba(255,255,255,0.75); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.m3-guide-step h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.m3-guide-step h3 em { font-style: normal; font-family: var(--m3-latin); color: var(--m3-text-3); margin-right: 10px; font-size: 13px; }
.m3-guide-step p { font-size: 13.5px; color: var(--m3-text-2); font-weight: 300; }

/* ---------- 控制盘 ---------- */
.m3-console { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100dvh - 62px); }
.m3-side {
  border-right: 1px solid var(--m3-line); padding: 22px 14px;
  background: rgba(255,255,255,0.015); position: sticky; top: 62px;
  height: calc(100dvh - 62px); overflow-y: auto;
}
.m3-side::-webkit-scrollbar { width: 4px; }
.m3-side::-webkit-scrollbar-thumb { background: var(--m3-line-strong); border-radius: 4px; }
.m3-side-group { margin-bottom: 20px; }
.m3-side-group > h5 { font-size: 10.5px; color: var(--m3-text-3); letter-spacing: 0.22em; padding: 0 12px 8px; font-weight: 400; }
.m3-side-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 10px; border: 0; background: none;
  color: var(--m3-text-2); font-size: 13.5px; transition: background 0.25s, color 0.25s;
}
.m3-side-item:hover { background: rgba(255,255,255,0.05); color: var(--m3-text); }
.m3-side-item.is-active { background: rgba(255,255,255,0.1); color: #fff; }
.m3-side-item i { width: 6px; height: 6px; border-radius: 2px; background: var(--m3-text-3); flex: none; }
.m3-side-item.is-active i { background: #fff; }
.m3-side-item .tag { margin-left: auto; font-size: 10px; color: var(--m3-text-3); border: 1px solid var(--m3-line); border-radius: 999px; padding: 1px 8px; }

.m3-main { padding: clamp(22px, 3vw, 36px); min-width: 0; }
.m3-main-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.m3-main-head h1 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; }
.m3-main-head p { font-size: 13px; color: var(--m3-text-3); margin-top: 4px; }

.m3-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.m3-stat { padding: 20px; border-radius: 16px; background: var(--m3-card); border: 1px solid var(--m3-line); }
.m3-stat span { font-size: 11.5px; color: var(--m3-text-3); letter-spacing: 0.16em; }
.m3-stat b { display: block; font-family: var(--m3-latin); font-size: 26px; font-weight: 600; margin-top: 8px; }
.m3-stat p { font-size: 11.5px; color: var(--m3-text-3); margin-top: 4px; }
.m3-panel-box { padding: 22px; border-radius: 18px; background: var(--m3-card); border: 1px solid var(--m3-line); margin-bottom: 18px; }
.m3-panel-box h3 { font-size: 14.5px; font-weight: 500; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.m3-panel-box h3 small { font-size: 11.5px; color: var(--m3-text-3); font-weight: 400; }
.m3-chart { width: 100%; height: 220px; display: block; }

/* 机器卡片 */
.m3-machine { padding: 22px; border-radius: 18px; background: var(--m3-card); border: 1px solid var(--m3-line); margin-bottom: 16px; transition: border-color 0.4s; }
.m3-machine.is-on { border-color: rgba(255,255,255,0.28); }
.m3-machine-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.m3-machine-head b { font-size: 15.5px; font-weight: 500; }
.m3-machine-host { font-family: var(--m3-latin); font-size: 12px; color: var(--m3-text-3); margin-top: 2px; word-break: break-all; }
.m3-machine-meta { display: flex; gap: 10px; align-items: center; }
.m3-badge { font-size: 11px; border: 1px solid var(--m3-line-strong); border-radius: 999px; padding: 3px 11px; color: var(--m3-text-2); font-family: var(--m3-latin); }
.m3-badge.on { color: #fff; border-color: rgba(255,255,255,0.45); }
.m3-power {
  width: 58px; height: 30px; border-radius: 999px; border: 1px solid var(--m3-line-strong);
  background: rgba(255,255,255,0.05); position: relative; transition: background 0.35s, border-color 0.35s;
  flex: none;
}
.m3-power i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--m3-text-3); transition: transform 0.35s var(--m3-elastic), background 0.35s; }
.m3-power.is-on { background: rgba(255,255,255,0.9); border-color: transparent; }
.m3-power.is-on i { transform: translateX(28px); background: #0a0a0b; }
.m3-toggles { display: grid; gap: 10px; margin-top: 18px; }
.m3-toggle {
  display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: 13px;
  background: rgba(255,255,255,0.028); border: 1px solid var(--m3-line);
}
.m3-toggle-main { flex: 1; min-width: 0; }
.m3-toggle-main b { font-size: 13.5px; font-weight: 500; display: block; }
.m3-toggle-main span { font-size: 11.5px; color: var(--m3-text-3); }
.m3-switch {
  width: 44px; height: 24px; border-radius: 999px; border: 1px solid var(--m3-line-strong);
  background: rgba(255,255,255,0.05); position: relative; flex: none; transition: background 0.3s, border-color 0.3s;
}
.m3-switch i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--m3-text-3); transition: transform 0.3s var(--m3-elastic), background 0.3s; }
.m3-switch.is-on { background: rgba(255,255,255,0.88); border-color: transparent; }
.m3-switch.is-on i { transform: translateX(20px); background: #0a0a0b; }

/* 接入引导代码 */
.m3-code-tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.m3-code-tab { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--m3-line); background: none; color: var(--m3-text-2); font-size: 13px; transition: all 0.3s; }
.m3-code-tab.is-active { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.35); }
.m3-code-block {
  position: relative; border-radius: 14px; border: 1px solid var(--m3-line);
  background: rgba(0,0,0,0.4); padding: 18px; margin-bottom: 16px;
}
.m3-code-block pre {
  font-family: "SFMono-Regular", Consolas, monospace; font-size: 12.5px; line-height: 1.8;
  color: var(--m3-text-2); white-space: pre-wrap; word-break: break-all; max-height: 300px; overflow-y: auto;
}
.m3-code-copy {
  position: absolute; top: 10px; right: 10px; font-size: 11.5px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--m3-line-strong); background: rgba(20,20,22,0.9);
  color: var(--m3-text-2); transition: color 0.3s, border-color 0.3s;
}
.m3-code-copy:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* 表格 */
.m3-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.m3-table th { text-align: left; font-weight: 400; color: var(--m3-text-3); font-size: 11.5px; letter-spacing: 0.12em; padding: 10px 12px; border-bottom: 1px solid var(--m3-line); }
.m3-table td { padding: 12px; border-bottom: 1px solid var(--m3-line); color: var(--m3-text-2); }
.m3-table tr:last-child td { border-bottom: 0; }
.m3-table td b { color: var(--m3-text); font-weight: 500; }
.m3-empty { text-align: center; padding: 36px 0; color: var(--m3-text-3); font-size: 13px; }

.m3-input, .m3-textarea, .m3-select {
  width: 100%; padding: 12px 15px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--m3-line-strong);
  color: #fff; font-size: 14px; outline: none; transition: border-color 0.3s;
}
.m3-input:focus, .m3-textarea:focus { border-color: rgba(255,255,255,0.5); }
.m3-textarea { min-height: 110px; resize: vertical; }
.m3-label { display: block; font-size: 12.5px; color: var(--m3-text-2); margin: 14px 0 7px; }
.m3-form-row { margin-bottom: 14px; }

.m3-soon { text-align: center; padding: 60px 20px; }
.m3-soon-icon { width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 16px; border: 1px solid var(--m3-line-strong); display: grid; place-items: center; background: rgba(255,255,255,0.04); }
.m3-soon-icon svg { width: 24px; height: 24px; fill: none; stroke: rgba(255,255,255,0.7); stroke-width: 1.4; stroke-linecap: round; }
.m3-soon h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.m3-soon p { font-size: 13px; color: var(--m3-text-3); max-width: 40ch; margin: 0 auto; }

/* ---------- 3M 登录弹窗 ---------- */
.m3-login-mask {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(5,5,6,0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  visibility: hidden; opacity: 0; transition: opacity 0.4s, visibility 0.4s;
}
.m3-login-mask.is-open { visibility: visible; opacity: 1; }
.m3-login-box {
  width: min(430px, 100%); border-radius: 24px; padding: 36px;
  background: rgba(17,17,19,0.9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--m3-line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.11), 0 40px 110px rgba(0,0,0,0.65);
  transform: translateY(20px) scale(0.97); transition: transform 0.5s var(--m3-ease);
  max-height: calc(100dvh - 40px); overflow-y: auto;
}
.m3-login-mask.is-open .m3-login-box { transform: none; }
.m3-login-box h3 { font-family: var(--m3-serif); font-weight: 600; font-size: 21px; text-align: center; }
.m3-login-box > p { font-size: 12.5px; color: var(--m3-text-3); text-align: center; margin: 6px 0 22px; }
.m3-login-step { display: none; }
.m3-login-step.is-active { display: block; animation: m3Fade 0.5s var(--m3-ease); }
.m3-code-row { display: flex; gap: 8px; }
.m3-code-row input {
  width: 100%; aspect-ratio: 3/4; max-height: 56px; text-align: center; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--m3-line-strong);
  color: #fff; font-size: 21px; font-family: var(--m3-latin); outline: none;
}
.m3-code-row input:focus { border-color: rgba(255,255,255,0.5); }
.m3-login-demo { margin-top: 18px; font-size: 12px; color: var(--m3-text-3); border: 1px dashed rgba(255,255,255,0.22); border-radius: 10px; padding: 9px 13px; }
.m3-login-demo b { color: #fff; font-family: var(--m3-latin); letter-spacing: 0.3em; }
.m3-login-err { font-size: 12.5px; color: #ff8f8f; min-height: 18px; margin-top: 6px; }

/* ---------- Toast ---------- */
.m3-toasts { position: fixed; top: 20px; right: 20px; z-index: 300; display: grid; gap: 10px; }
.m3-toast {
  min-width: 220px; padding: 12px 17px; border-radius: 13px; font-size: 13px;
  background: rgba(20,20,22,0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--m3-line-strong); box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  animation: m3ToastIn 0.5s var(--m3-elastic);
}
.m3-toast.is-out { animation: m3ToastOut 0.4s var(--m3-ease) forwards; }
@keyframes m3ToastIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes m3ToastOut { to { transform: translateX(30px); opacity: 0; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .m3-hero-inner { grid-template-columns: 1fr; }
  .m3-host-visual { display: none; }
  .m3-features { grid-template-columns: 1fr 1fr; }
  .m3-flow { grid-template-columns: 1fr 1fr; }
  .m3-console { grid-template-columns: 1fr; }
  .m3-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--m3-line); display: flex; flex-wrap: wrap; gap: 4px; }
  .m3-side-group { margin-bottom: 8px; }
  .m3-side-group > h5 { display: none; }
  .m3-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .m3-features, .m3-flow { grid-template-columns: 1fr; }
  .m3-speed-grid { grid-template-columns: 1fr; }
  .m3-nav-links { display: none; }
  .m3-guide-step { grid-template-columns: 1fr; }
  .m3-guide-illu { display: none; }
  .m3-stats { grid-template-columns: 1fr; }
  .m3-wz-dot span { display: none; }
  .m3-host-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== 新增工具类 ===== */
.mono { font-family: var(--m3-latin); }
.m3-side-item { position: relative; }
.m3-side-dot { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.m3-console.is-compact .m3-panel-box { padding: 16px 18px; }
.m3-console.is-compact .m3-stat { padding: 12px 14px; }
.m3-console.is-compact .m3-stats { gap: 10px; }
.m3-machine-host a { text-decoration: none; }
.m3-machine-host a:hover { text-decoration: underline; }
