/* =====================================================================
   御火机器人 · 全站样式 V2 · 工业摄影杂志风
   = 自托管字体 / Direction A 配色 / 极简版面 / CMS 编辑器兼容 =
   ===================================================================== */

/* ============ FOCUS STYLES (keyboard accessibility) ============ */
:focus-visible {
  outline: 2px solid var(--fire);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============ FONT FACE ============ */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/manrope-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/manrope-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./assets/fonts/manrope-latin-800-normal.woff2") format("woff2");
}

/* ============ TOKENS ============ */
:root {
  --bg: #122035;
  --bg-deep: #16263d;
  --bg-raised: #1c2e48;
  --line: #2a3a55;
  --line-strong: #384a68;
  --ink: #f4f6fa;
  --ink-mid: #aab2bf;
  --ink-dim: #6b7380;
  --fire: #ff3d2e;
  --fire-glow: #ff6a4d;
  --tech: #4ddbff;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: "Manrope", -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --content: min(1320px, calc(100vw - 64px));
  --nav-h: 76px;
}

/* ============ RESET ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
em { font-style: normal; color: var(--fire); }
button { font-family: inherit; }

body.content-loading main,
body.content-loading .site-footer { opacity: 0; }
body:not(.content-loading) main,
body:not(.content-loading) .site-footer { opacity: 1; transition: opacity .4s ease; }

/* ============ SHELL ============ */
.site-shell { display: flex; flex-direction: column; min-height: 100vh; }

/* ============ NAV / HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  background: linear-gradient(180deg, rgba(18,32,53,0.92), rgba(18,32,53,0.65) 70%, rgba(18,32,53,0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.brand-name { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: 0.04em; }
.brand-tag {
  font-family: var(--mono); font-size: 10px; color: var(--ink-dim);
  letter-spacing: 0.16em; text-transform: uppercase;
}

.main-nav { display: flex; gap: 24px; }
.main-nav a {
  font-size: 13px; color: var(--ink-mid);
  padding: 6px 0; position: relative; transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -4px;
  width: 4px; height: 4px; background: var(--fire);
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--fire);
}

.header-contact { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.header-contact > span {
  font-family: var(--mono); color: var(--ink-mid); letter-spacing: 0.06em;
}
.header-button {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--line-strong);
  padding: 10px 18px; transition: all .2s;
}
.header-button:hover { border-color: var(--fire); color: var(--fire); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px; background: transparent; border: 1px solid var(--line-strong);
  cursor: pointer; padding: 0; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============ GENERIC SECTION ============ */
main { padding-top: var(--nav-h); }
.section { padding: 160px 32px; position: relative; }
.section-surface { background: var(--bg-deep); }
.container, .section > .section-heading, .section > .grid, .section > .workflow,
.section > .solutions-layout, .section > .platform-panel, .section > .contact-layout,
.section > div:not(.editor-toolbar) {
  max-width: var(--content); margin-left: auto; margin-right: auto;
}

.section-heading { max-width: var(--content); margin: 0 auto 80px; }
.section-heading .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--ink-dim); text-transform: uppercase; margin: 0 0 28px;
  display: inline-flex; align-items: center; gap: 12px;
}
.section-heading .eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--fire);
  box-shadow: 0 0 10px var(--fire);
}
.section-heading h2 {
  font-size: clamp(32px, 4vw, 56px); line-height: 1.15;
  max-width: 22ch; margin: 0 0 32px;
}
.section-heading h2 em { color: var(--fire); }
.section-heading > p:not(.eyebrow) {
  max-width: 60ch; font-size: 16px; line-height: 1.75; color: var(--ink-mid);
}

/* ============ HERO (首页) ============ */
.hero {
  padding: 0; min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; isolation: isolate;
}
.hero .hero-visual {
  position: absolute; inset: 0; z-index: 0;
}
.hero .hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) saturate(0.85);
}
.hero .hero-visual .image-action { z-index: 3; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18,32,53,0.55) 0%, rgba(18,32,53,0.35) 40%, var(--bg) 100%),
    linear-gradient(90deg, rgba(18,32,53,0.6) 0%, transparent 55%);
}
.hero .hero-copy {
  position: relative; z-index: 2;
  max-width: var(--content); margin: 0 auto;
  width: 100%; padding: 140px 32px 180px;
}
.hero .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-mid); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 32px;
}
.hero .eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--fire);
  box-shadow: 0 0 10px var(--fire);
}
.hero h1 {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.1; max-width: 18ch;
  margin: 0 0 36px;
}
.hero h1 span, .hero h1 em { color: var(--fire); font-style: normal; font-weight: 800; }
.hero-text {
  max-width: 56ch; font-size: 17px; line-height: 1.7;
  color: var(--ink-mid); margin: 0 0 48px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 72px; }

.hero-metrics {
  display: flex; gap: 64px; margin: 0;
  padding-top: 28px; border-top: 1px solid rgba(244,246,250,0.12);
  max-width: 720px;
}
.hero-metrics > div { display: flex; flex-direction: column; gap: 6px; }
.hero-metrics dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-dim); text-transform: uppercase;
}
.hero-metrics dd {
  margin: 0; font-family: var(--mono); font-size: 22px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.01em;
}

/* 隐藏所有遗留装饰元素 */
.hero-kv-arches, .hero-kv-manifesto, .hero-status-ticker, .hero-signal-board,
.hero-orbit-stage, .hero-diagonal-screen, .hero-beacon-spine, .floating-panel,
.hero-command-stack, .hero-side-ledger,
.visual-tech, .section-frame, .section-heading-meta, .section-status-bar,
.footer-system-bar, .page-hero-hud, .page-visual-badge, .iot-network,
.hero-kv-title-shadow { display: none !important; }

/* ============ BUTTONS ============ */
.primary-button, .secondary-button {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 18px 32px; border: 1px solid transparent;
  cursor: pointer; transition: all .2s;
  background: transparent;
}
.primary-button {
  background: var(--fire); color: #fff; border-color: var(--fire);
}
.primary-button:hover { background: var(--fire-glow); border-color: var(--fire-glow); }
.primary-button::after { content: "→"; display: inline-block; transition: transform .25s; }
.primary-button:hover::after { transform: translateX(4px); }
.secondary-button { color: var(--ink); border-color: var(--line-strong); }
.secondary-button:hover { border-color: var(--ink); }

/* ============ GRID / FEATURE CARDS ============ */
.grid { display: grid; margin-top: 0; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.feature-card {
  background: var(--bg);
  padding: 56px 44px;
  transition: background .25s;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.section-surface .feature-card { background: var(--bg-deep); }
.feature-card:hover { background: var(--bg-raised); }
.feature-card .card-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-dim); text-transform: uppercase;
}
.feature-card h3 {
  font-size: 22px; line-height: 1.3; color: var(--ink);
  max-width: 18ch;
}
.feature-card p {
  font-size: 14px; line-height: 1.75; color: var(--ink-mid);
}
.feature-card-wide { grid-column: 1 / -1; }

.inline-stats { display: flex; gap: 56px; margin-top: auto; padding-top: 32px; border-top: 1px solid var(--line); }
.inline-stats > div { display: flex; flex-direction: column; gap: 6px; }
.inline-stats strong {
  font-family: var(--mono); font-size: 36px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em;
}
.inline-stats span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-dim); text-transform: uppercase;
}

/* ============ WORKFLOW (AI 四步) ============ */
.workflow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.workflow-step {
  background: var(--bg); padding: 56px 40px;
  display: flex; flex-direction: column; gap: 20px; transition: background .25s;
}
.section-surface .workflow-step { background: var(--bg-deep); }
.workflow-step:hover { background: var(--bg-raised); }
.step-index {
  font-family: var(--mono); font-size: 32px; font-weight: 800;
  color: var(--fire); letter-spacing: -0.02em;
}
.workflow-step h3 { font-size: 22px; line-height: 1.3; }
.workflow-step p { font-size: 14px; line-height: 1.75; color: var(--ink-mid); }

/* ============ PLATFORM PANEL ============ */
.platform-panel {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 0;
  margin-top: 80px; border: 1px solid var(--line); background: var(--line);
  column-gap: 1px;
}
.platform-copy {
  background: var(--bg-deep); padding: 72px 56px;
  display: flex; flex-direction: column; gap: 20px; justify-content: center;
}
.platform-copy .card-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--ink-dim); text-transform: uppercase;
}
.platform-copy h3 { font-size: 26px; line-height: 1.3; max-width: 22ch; }
.platform-copy p { font-size: 15px; line-height: 1.7; color: var(--ink-mid); max-width: 48ch; }
.platform-visual { position: relative; min-height: 420px; background: var(--bg); }
.platform-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* ============ SOLUTIONS LAYOUT ============ */
.solutions-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-top: 80px; }
.solution-highlight {
  position: relative; min-height: 520px; overflow: hidden;
  background: var(--bg-deep); border: 1px solid var(--line);
}
.solution-highlight img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  filter: saturate(0.8) contrast(1.05);
}
.solution-highlight::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,32,53,0.2) 0%, rgba(18,32,53,0.92) 85%);
}
.solution-highlight-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 48px 44px; display: flex; flex-direction: column; gap: 16px;
}
.solution-highlight-copy .card-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--ink-dim); text-transform: uppercase;
}
.solution-highlight-copy h3 { font-size: 22px; line-height: 1.3; max-width: 22ch; }
.solution-highlight-copy p { font-size: 14px; line-height: 1.7; color: var(--ink-mid); max-width: 42ch; }
.compact-grid { gap: 1px !important; background: var(--line); border: 1px solid var(--line); }

/* ============ CASE CARDS ============ */
.case-card {
  position: relative; min-height: 480px; overflow: hidden;
  background: var(--bg-deep);
}
.case-card img {
  width: 100%; height: 260px; object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}
.case-copy {
  padding: 40px 44px; display: flex; flex-direction: column; gap: 16px;
}
.case-copy .card-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--ink-dim); text-transform: uppercase;
}
.case-copy h3 { font-size: 22px; line-height: 1.3; max-width: 22ch; }
.case-copy p { font-size: 14px; line-height: 1.7; color: var(--ink-mid); }

/* ============ CONTACT ============ */
.contact-layout {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 80px;
}
.contact-card {
  background: var(--bg-deep); padding: 56px 48px;
  display: flex; flex-direction: column; gap: 18px; position: relative;
}
.contact-card .card-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--ink-dim); text-transform: uppercase;
}
.contact-card h3 {
  font-family: var(--mono); font-size: 32px; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--ink);
}
.contact-card p { font-size: 14px; line-height: 1.7; color: var(--ink-mid); max-width: 38ch; }
.contact-card img { max-width: 180px; margin: 0 auto; }

/* ============ COOPERATION / CTA ============ */
.cooperation-panel {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; flex-wrap: wrap;
  padding-top: 180px; padding-bottom: 180px;
}
.cooperation-panel > div:first-child { max-width: 40ch; }
.cooperation-panel .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--ink-dim); text-transform: uppercase; margin: 0 0 28px;
  display: inline-flex; align-items: center; gap: 12px;
}
.cooperation-panel .eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--fire);
  box-shadow: 0 0 10px var(--fire);
}
.cooperation-panel h2 {
  font-size: clamp(36px, 4.4vw, 64px); line-height: 1.1; margin: 0 0 32px;
}
.cooperation-panel h2 em { color: var(--fire); }
.cooperation-panel p { font-size: 16px; line-height: 1.7; color: var(--ink-mid); }
.cooperation-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.site-footer {
  padding: 72px 32px 56px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 48px; flex-wrap: wrap;
  max-width: var(--content); margin: 0 auto; width: 100%;
}
.site-footer > div:first-child { max-width: 36ch; display: flex; flex-direction: column; gap: 12px; }
.site-footer strong { font-size: 16px; color: var(--ink); letter-spacing: 0.04em; }
.footer-logo { width: 200px; height: auto; display: block; }
.site-footer p { font-size: 14px; color: var(--ink-mid); line-height: 1.7; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 24px 32px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-dim); text-transform: uppercase;
}
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--fire); }

/* ============ PAGE HERO (内页) ============ */
.page-hero {
  position: relative; padding: 180px 32px 120px; overflow: hidden;
  border-bottom: 1px solid var(--line);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 80px; align-items: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 30%, rgba(255, 61, 46, 0.12), transparent 60%),
    radial-gradient(600px 400px at 85% 70%, rgba(77, 219, 255, 0.08), transparent 60%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero > div:first-child { padding-left: max(0px, calc((100vw - var(--content)) / 2)); }
.page-breadcrumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--ink-dim); text-transform: uppercase; margin: 0 0 32px;
  display: inline-flex; align-items: center; gap: 12px;
}
.page-breadcrumb::before {
  content: ""; width: 6px; height: 6px; background: var(--fire);
  box-shadow: 0 0 10px var(--fire);
}
.page-breadcrumb a { color: var(--ink-mid); transition: color .2s; }
.page-breadcrumb a:hover { color: var(--fire); }
.page-hero h1 {
  font-size: clamp(32px, 3.8vw, 52px); line-height: 1.15;
  max-width: 22ch; margin: 0 0 32px;
}
.page-hero h1 em { color: var(--fire); }
.page-hero > div:first-child > p:not([class]) {
  max-width: 58ch; font-size: 16px; line-height: 1.75; color: var(--ink-mid);
}
.page-visual {
  position: relative; min-height: 440px; overflow: hidden;
  background: var(--bg-deep); border-left: 1px solid var(--line);
}
.page-visual img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  filter: saturate(0.85) contrast(1.05);
}
.page-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,32,53,0.5) 0%, transparent 30%, transparent 70%, rgba(18,32,53,0.3) 100%);
}

/* ============ SECTION ACTIONS (buttons in page-hero) ============ */
.section-actions {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px;
}

/* ============ DETAIL LIST (红点列表) ============ */
.detail-list {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.detail-list li {
  position: relative; padding-left: 20px;
  font-size: 13px; line-height: 1.65; color: var(--ink-mid);
}
.detail-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; background: var(--fire);
  box-shadow: 0 0 6px rgba(255, 61, 46, 0.6);
}

/* 隐藏内页遗留装饰 */
.scene-network-map, .ai-chain-map, .case-briefing-board,
.scene-network-track, .scene-network-node,
.iot-grid-overlay { display: none !important; }
.iot-grid-shell { position: relative; }

/* ============ CMS IMAGE EDITOR HOOKS ============ */
.editable-image { position: relative; }
.editable-image input[type="file"] { display: none; }
.image-action {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  padding: 8px 14px; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer;
  background: rgba(18, 32, 53, 0.9); color: var(--ink);
  border: 1px solid var(--line-strong);
  opacity: 0; transition: opacity .2s;
}
body.edit-mode .image-action { opacity: 1; }
body.edit-mode .image-action:hover { border-color: var(--fire); color: var(--fire); }

/* Hero 全屏背景图：hero-visual 自身 z-index:0 创建了独立堆叠上下文，
   导致内部 .image-action 被 hero-copy(z-index:2) 遮挡不可点击。
   编辑模式下将 hero-visual 提升到最高层，同时关闭自身指针事件，
   只对 .image-action 按钮恢复点击能力，不影响 hero-copy 的文字/按钮交互。 */
body.edit-mode .hero .hero-visual { z-index: 5; pointer-events: none; }
body.edit-mode .hero .hero-visual .image-action { pointer-events: auto; }

/* Footer logo wrap */
.footer-logo-wrap { position: relative; display: inline-block; }

body.edit-mode [data-editable] {
  outline: 1px dashed rgba(255, 61, 46, 0.45);
  outline-offset: 4px; cursor: text;
}
body.edit-mode [data-editable]:focus { outline-color: var(--fire); outline-style: solid; }

/* ============ EDITOR TOOLBAR ============ */
.editor-toolbar {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  background: var(--bg-deep); border: 1px solid var(--line-strong);
  padding: 20px 22px; width: 300px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.editor-toolbar[hidden] { display: none; }
.toolbar-head { display: flex; justify-content: space-between; align-items: center; }
.toolbar-head strong { font-size: 13px; color: var(--ink); letter-spacing: 0.06em; }
.toolbar-head span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-dim); text-transform: uppercase;
}
.editor-toolbar > p { font-size: 12px; color: var(--ink-mid); line-height: 1.6; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar-actions button, .import-button {
  flex: 1 1 calc(50% - 4px);
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 10px 12px;
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong);
  cursor: pointer; transition: all .2s; text-align: center;
}
.toolbar-actions button:hover, .import-button:hover { border-color: var(--fire); color: var(--fire); }
.toolbar-actions .danger:hover { border-color: #ff5a4b; color: #ff5a4b; }
.toolbar-actions button:disabled, .import-button.is-disabled {
  opacity: .5; cursor: not-allowed;
}
.import-button { display: block; flex: 1 0 100%; }
#import-content { display: none; }

.message {
  position: fixed; left: 50%; top: 32px; transform: translateX(-50%);
  background: var(--bg-deep); border: 1px solid var(--fire);
  padding: 12px 24px; font-size: 13px; color: var(--ink);
  z-index: 200; animation: msgIn .3s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.edit-hint-bubble {
  position: absolute; z-index: 150;
  background: var(--bg-deep); border: 1px solid var(--line-strong);
  padding: 8px 12px; font-size: 11px; color: var(--ink-mid);
  max-width: 240px; line-height: 1.5; pointer-events: none;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready.revealed { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(18, 32, 53, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--line);
    z-index: 999;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a {
    padding: 14px 28px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .header-contact > span { display: none; }
  .section { padding: 120px 28px; }
  .section-heading { margin-bottom: 56px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .platform-panel { grid-template-columns: 1fr; }
  .platform-visual { min-height: 280px; }
  .solutions-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero .hero-copy { padding: 120px 0 140px; }
  .hero-metrics { gap: 40px; flex-wrap: wrap; }
  .page-hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 160px 28px 96px;
  }
  .page-hero > div:first-child { padding-left: 0; }
  .page-visual { min-height: 320px; border-left: none; border-top: 1px solid var(--line); }
  .site-header { padding: 16px 20px; }
  .brand-tag { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 96px 20px; }
  .hero { padding: 0 20px; }
  .hero .hero-copy { padding: 100px 0 120px; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(18,32,53,0.72) 0%, rgba(18,32,53,0.55) 35%, var(--bg) 95%),
      linear-gradient(90deg, rgba(18,32,53,0.4) 0%, transparent 80%);
  }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); max-width: 14ch; }
  .hero-text { font-size: 15px; }
  .workflow { grid-template-columns: 1fr; }
  .feature-card, .workflow-step { padding: 40px 28px; }
  .platform-copy { padding: 48px 28px; }
  .solution-highlight-copy { padding: 32px 28px; }
  .case-copy { padding: 32px 28px; }
  .contact-card { padding: 40px 28px; }
  .cooperation-panel { padding: 120px 20px; flex-direction: column; align-items: flex-start; }
  .site-footer { padding: 56px 20px 40px; flex-direction: column; }
  .editor-toolbar { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .hero-metrics dd { font-size: 18px; }
  .page-hero h1 { max-width: 100%; }
}

/* ============ VIDEO EMBED ============ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
.video-item {
  background: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.video-item-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fire);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.video-item-label::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--fire);
  border-radius: 50%;
}
.video-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.video-item p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
}
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: var(--bg-deep);
  border: 1px solid var(--line);
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-dim);
}
.video-placeholder-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder-icon::after {
  content: "";
  display: block;
  width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 16px solid var(--ink-dim);
  margin-left: 4px;
}
.video-placeholder span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* 单列视频（全宽） */
.video-grid.cols-1 { grid-template-columns: 1fr; }
.video-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) {
  .video-grid, .video-grid.cols-3 { grid-template-columns: 1fr; }
}

/* ============ ADMIN PAGE OVERRIDE ============ */
body.admin-page { background: var(--bg); }
body.admin-page .site-header { position: static; background: var(--bg-deep); }
body.admin-page main { padding-top: 0; }
