/* mini3D 官网 — 近黑 #0e0f10 / 暖白 #ecece6 / 沙金 #c9a86a */

:root {
  --bg: #0e0f10;
  --bg-alt: #121314;
  --panel: #17181a;
  --raise: #1d1f21;
  --line: rgba(236, 236, 230, 0.10);
  --line-strong: rgba(236, 236, 230, 0.18);
  --text: #ecece6;
  --text-dim: #a6a69c;
  --text-faint: #7c7c74;
  --accent: #c9a86a;
  --accent-strong: #e0c48e;
  --accent-ink: #14100a;
  --serif: "Georgia", "Songti SC", "STSong", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --shell: 1180px;
  --radius: 12px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell { width: min(var(--shell), 100% - 2 * clamp(18px, 4vw, 48px)); margin-inline: auto; }

.band, .hero { scroll-margin-top: 72px; }

.mono { font-family: var(--mono); font-size: 0.92em; }

::selection { background: rgba(201, 168, 106, 0.35); }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 10px 20px; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-outline { color: var(--text); border-color: var(--line-strong); background: var(--raise); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 16, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: 0.01em; }
.brand-sm .brand-mark { width: 22px; height: 22px; }
.brand-sm .brand-name { font-size: 18px; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.site-nav > a:not(.btn) {
  color: var(--text-dim); text-decoration: none; font-size: 15px;
  transition: color 0.15s ease;
}
.site-nav > a:not(.btn):hover { color: var(--text); }
.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: var(--raise); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 8px 14px; font-size: 14px; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px clamp(18px, 4vw, 48px) 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 10px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 10px; }
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px);
}
.eyebrow {
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px; font-weight: 600;
}
.display {
  font-family: var(--serif);
  font-size: clamp(32px, 4.05vw, 51px);
  line-height: 1.16; letter-spacing: 0.005em;
  margin: 0 0 18px; font-weight: 500;
}
.display em { font-style: italic; color: var(--accent-strong); }
.lede { color: var(--text-dim); font-size: 17px; margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-meta {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin: 0; padding: 0; color: var(--text-faint); font-size: 13.5px;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-block: 40px 48px; }
  .lede { max-width: 44em; }
}

/* ---------- 应用窗口示意 ---------- */
.hero-stage { min-width: 0; }
.stage-cap { color: var(--text-faint); font-size: 13px; text-align: center; margin: 12px 0 0; }

.app-window {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.app-titlebar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--raise);
  border-bottom: 1px solid var(--line);
}
.traffic { display: inline-flex; gap: 6px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.traffic i:nth-child(1) { background: #ec6a5e; }
.traffic i:nth-child(2) { background: #f4bf4f; }
.traffic i:nth-child(3) { background: #61c554; }
.app-title {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 12.5px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.titlebar-badge {
  font-size: 11px; color: var(--accent); border: 1px solid rgba(201, 168, 106, 0.45);
  border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}

.app-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.tool-tab {
  background: transparent; border: 1px solid transparent; color: var(--text-dim);
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 8px; cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.tool-tab:hover { color: var(--text); background: var(--raise); }
.tool-tab[aria-selected="true"] { color: var(--accent-strong); background: rgba(201, 168, 106, 0.12); border-color: rgba(201, 168, 106, 0.4); }
.toolbar-right { margin-left: auto; color: var(--text-faint); font-size: 11.5px; white-space: nowrap; }

.app-body {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 208px;
  min-height: 430px;
}

/* 装配树 */
.app-sidebar { border-right: 1px solid var(--line); padding: 12px 10px; display: flex; flex-direction: column; }
.panel-cap {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint); margin: 0 0 10px; font-weight: 600;
}
.asm-tree { list-style: none; margin: 0; padding: 0; flex: 1; font-size: 13.5px; }
.asm-tree ul { list-style: none; margin: 0; padding-left: 16px; }
.asm-row {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  background: transparent; border: 0; color: var(--text-dim);
  font-family: var(--sans); font-size: 13.5px;
  padding: 6px 8px; border-radius: 7px; cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.asm-row:hover { background: var(--raise); color: var(--text); }
.asm-row[aria-current="true"] { background: rgba(201, 168, 106, 0.12); color: var(--accent-strong); }
.asm-row .node-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; transform: rotate(45deg); }
.asm-row .node-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eye-btn {
  background: transparent; border: 0; padding: 2px; cursor: pointer;
  color: var(--text-faint); border-radius: 5px; display: inline-flex;
  transition: color 0.12s ease;
}
.eye-btn:hover { color: var(--text); }
.eye-btn svg { width: 15px; height: 15px; }
.eye-btn.is-off { color: var(--text-faint); opacity: 0.55; }
.asm-row.is-hidden-row .node-name { opacity: 0.45; text-decoration: line-through; text-decoration-color: var(--text-faint); }
.sidebar-foot { margin: 10px 2px 0; color: var(--text-faint); font-size: 11.5px; font-family: var(--mono); }

/* 视口 */
.app-viewport {
  position: relative;
  background:
    linear-gradient(rgba(236, 236, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 236, 230, 0.045) 1px, transparent 1px),
    radial-gradient(120% 90% at 50% 30%, #17181a 0%, #101112 70%);
  background-size: 28px 28px, 28px 28px, auto;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
#scene { width: 100%; height: auto; display: block; }
#scene .part { transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.3, 1), opacity 0.3s ease; }
#scene .part.is-dim { opacity: 0.22; }
#scene .part.is-selected path,
#scene .part.is-selected ellipse { stroke: var(--accent-strong); stroke-width: 1.4; }
.vp-chip {
  position: absolute; left: 12px; bottom: 10px;
  background: rgba(14, 15, 16, 0.82); border: 1px solid var(--line-strong);
  color: var(--text-dim); font-size: 11.5px;
  padding: 5px 10px; border-radius: 7px; margin: 0; pointer-events: none;
}
.vp-chip b { color: var(--accent-strong); font-weight: 600; }

/* 右侧上下文面板 */
.app-panel { border-left: 1px solid var(--line); padding: 12px; background: var(--panel); }
.ctx-panel { display: flex; flex-direction: column; gap: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--raise); border: 1px solid var(--line-strong); color: var(--text-dim);
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
  transition: all 0.13s ease;
}
.chip.is-on { color: var(--accent-strong); border-color: rgba(201, 168, 106, 0.5); background: rgba(201, 168, 106, 0.1); }
.readouts { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.readouts div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; }
.readouts div + div { border-top: 1px solid var(--line); }
.readouts dt { color: var(--text-faint); font-size: 12px; font-family: var(--sans); }
.readouts dd { margin: 0; color: var(--accent-strong); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--text-dim); }
.field > span { display: flex; justify-content: space-between; align-items: baseline; }
.field b { color: var(--accent-strong); font-weight: 600; }
.field select {
  background: var(--raise); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 7px 10px; font-size: 13px; font-family: var(--sans);
}
.seg { display: flex; gap: 4px; background: var(--raise); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg-btn {
  flex: 1; background: transparent; border: 0; border-radius: 6px;
  color: var(--text-dim); font-family: var(--mono); font-size: 12.5px;
  padding: 6px 0; cursor: pointer; transition: all 0.13s ease;
}
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] { background: rgba(201, 168, 106, 0.16); color: var(--accent-strong); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 999px;
  background: var(--raise); border: 1px solid var(--line-strong);
  cursor: pointer; accent-color: var(--accent);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-strong);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
}
.panel-note { color: var(--text-faint); font-size: 11.5px; line-height: 1.6; margin: 0; }

/* 状态栏 */
.app-statusbar {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding: 8px 14px; border-top: 1px solid var(--line);
  background: var(--raise); color: var(--text-faint); font-size: 11.5px;
}
.app-statusbar b { color: var(--text-dim); font-weight: 600; }
.app-statusbar #stMode { margin-left: auto; color: var(--accent); }

/* 窄屏下的窗口重排 */
@media (max-width: 880px) {
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .app-panel { border-left: 0; border-top: 1px solid var(--line); }
  .toolbar-right { display: none; }
}

/* ---------- 通用区块 ---------- */
.band { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.band-alt { background: var(--bg-alt); }
.band-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.22;
  margin: 0 0 12px;
}
.band-sub { color: var(--text-dim); font-size: 16px; margin: 0; }
.foot-note { color: var(--text-faint); font-size: 13px; margin: 26px 0 0; max-width: 56em; }

/* 功能卡片 */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 20px;
  transition: border-color 0.2s ease;
}
.feature:hover { border-color: rgba(201, 168, 106, 0.35); }
.feature h3 {
  margin: 0 0 10px; font-size: 16.5px; font-weight: 650;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.feature p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.75; }
.tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-dim); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 1.5px 9px; font-family: var(--mono);
}
.tag-pro { color: var(--accent-strong); border-color: rgba(201, 168, 106, 0.45); }
@media (max-width: 1020px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* 格式 */
.fmt-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fmt-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.fmt-group h3 { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.fmt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fmt-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 9px; }
.fmt-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fmt-list b { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.fmt-list span { color: var(--text-faint); font-size: 12.5px; }
.fmt-planned b { color: var(--text-dim); font-weight: 500; }
@media (max-width: 900px) { .fmt-cols { grid-template-columns: 1fr; } }

/* 场景 */
.scene-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.scene {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; background: transparent;
}
.scene h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 0 0 10px; }
.scene p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.75; }
@media (max-width: 1020px) { .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .scene-grid { grid-template-columns: 1fr; } }

/* 演示说明 */
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.demo-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.demo-card h3 { margin: 0; font-size: 16.5px; font-weight: 650; }
.demo-card > p { margin: 0; color: var(--text-dim); font-size: 14px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-box { display: flex; flex-direction: column; gap: 8px; }
.sim-bar { display: flex; flex-direction: column; gap: 8px; }
.sim-track { height: 6px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); overflow: hidden; }
.sim-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width 0.5s ease; }
@media (max-width: 980px) { .demo-grid { grid-template-columns: 1fr; } }

/* 定价 */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 820px; margin-inline: auto; }
.price-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.price-card-pro { border-color: rgba(201, 168, 106, 0.45); }
.price-card h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.price { margin: 0; font-size: 34px; color: var(--text); }
.price-cap { font-size: 13px; color: var(--text-faint); font-family: var(--sans); }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { color: var(--text-dim); font-size: 14px; display: flex; gap: 10px; }
.price-card li::before { content: "—"; color: var(--accent); flex: none; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

/* 下载区 */
.band-final { background: var(--bg-alt); }
.download-wrap { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.download-wrap .h2 { margin: 0; }
.download-wrap .band-sub { max-width: 40em; }
.download-wrap .foot-note { margin-top: 4px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; }
.footer-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 18px; margin-left: auto; }
.footer-nav a { color: var(--text-dim); text-decoration: none; font-size: 13.5px; }
.footer-nav a:hover { color: var(--text); }
.footer-note { color: var(--text-faint); font-size: 12.5px; margin: 0; width: 100%; }
@media (max-width: 640px) {
  .footer-nav { margin-left: 0; }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 90; max-width: min(420px, calc(100vw - 40px));
  background: var(--raise); border: 1px solid rgba(201, 168, 106, 0.45);
  color: var(--text); border-radius: 12px; padding: 13px 18px;
  font-size: 14px; line-height: 1.6; text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
