/* ============================================================
   方案 A · 工业暗黑（Industrial Dark）
   炭黑底 + 工业橙 + 直角 + 细网格，力量感，像重型刀具品牌官网
   ============================================================ */
:root {
  --bg: #0b0d10;
  --bg-alt: #0f1317;
  --panel: #14181d;
  --panel-2: #171c22;
  --line: #232a33;
  --line-2: #313a45;
  --ink: #edf0f4;
  --muted: #8b95a3;
  --accent: #ff6a00;
  --accent-soft: rgba(255, 106, 0, .12);
  --radius: 2px;
  --mono: "Consolas", "SFMono-Regular", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 48px 48px;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--muted); }
.wrap { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(11, 13, 16, .8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(11, 13, 16, .95); }
.nav-inner { display: flex; align-items: center; gap: 30px; height: 72px; }

.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 2px; display: grid; place-items: center;
  background: var(--accent); color: #0b0d10; font-size: 17px; font-weight: 800;
  box-shadow: 0 6px 20px rgba(255, 106, 0, .25);
}
.menu { display: flex; gap: 28px; margin-left: auto; }
.menu a { color: var(--muted); font-size: 14px; letter-spacing: .04em; position: relative; padding: 6px 0; transition: color .2s; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .25s; }
.menu a:hover { color: var(--ink); }
.menu a:hover::after { width: 100%; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius);
  border: 1px solid var(--accent); background: var(--accent); color: #0b0d10;
  font-size: 15px; font-weight: 700; letter-spacing: .03em; cursor: pointer;
  font-family: inherit; transition: background .22s, color .22s, transform .22s, border-color .22s;
}
.btn:hover { background: transparent; color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-block { width: 100%; }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: 172px 0 108px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 10% -12%, rgba(255, 106, 0, .16), transparent 65%),
    radial-gradient(700px 400px at 92% -5%, rgba(90, 140, 255, .09), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; right: -120px; top: 60px; width: 520px; height: 520px;
  border: 1px solid rgba(255, 106, 0, .14); transform: rotate(45deg);
}
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; margin-bottom: 22px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  color: var(--muted); font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
}
.pill::before { content: ""; width: 6px; height: 6px; background: var(--accent); }

.hero h1 { font-size: clamp(38px, 5vw, 66px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.hl { color: var(--accent); position: relative; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: 3px; background: var(--accent); }
.lead { font-size: 17px; max-width: 31em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 38px; }
.hero-stats { display: flex; list-style: none; padding: 0; margin: 0; }
.hero-stats li { padding: 0 34px; border-left: 1px solid var(--line); }
.hero-stats li:first-child { padding-left: 0; border-left: 0; }
.hero-stats b { display: block; font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.hero-stats span { font-size: 12px; color: var(--muted); letter-spacing: .06em; }

.hero-card { display: grid; place-items: center; }
.mock {
  width: 100%; max-width: 430px; padding: 24px; position: relative; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), #10141a);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.mock::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 3px; background: var(--accent); }
.mock-bar { display: flex; gap: 6px; margin-bottom: 20px; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2b333d; }
.mock-row { display: flex; justify-content: space-between; align-items: baseline; }
.mock-label { color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.mock-num { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.mock-chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin: 22px 0; }
.mock-chart span { flex: 1; border-radius: 1px; background: linear-gradient(180deg, var(--accent), #a33f00); animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.mock-chart span:nth-child(2) { animation-delay: .1s; }
.mock-chart span:nth-child(3) { animation-delay: .2s; }
.mock-chart span:nth-child(4) { animation-delay: .3s; }
.mock-chart span:nth-child(5) { animation-delay: .4s; }
.mock-chart span:nth-child(6) { animation-delay: .5s; }
.mock-tags { display: flex; gap: 8px; }
.mock-tags span {
  font-family: var(--mono); font-size: 11px; padding: 5px 10px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255, 106, 0, .24);
}

@keyframes grow { from { transform: scaleY(.1); opacity: .3; } to { transform: scaleY(1); opacity: 1; } }

/* ---------- 通用区块 ---------- */
.sec { padding: 108px 0; border-bottom: 1px solid var(--line); }
.sec-alt { background: var(--bg-alt); }
.sec-head { max-width: 660px; margin-bottom: 56px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.sec h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; margin-top: 14px; letter-spacing: -.02em; }
.sec-head p { font-size: 16px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 34px 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); transition: width .35s ease; }
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 24px 55px rgba(0, 0, 0, .55); }
.card:hover::before { width: 100%; }
.icon {
  width: 48px; height: 48px; margin-bottom: 18px; border-radius: var(--radius);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255, 106, 0, .3);
}
.card h3 { font-size: 20px; font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { font-size: 14px; color: var(--muted); padding-left: 18px; position: relative; }
.ticks li::before { content: "▪"; position: absolute; left: 0; color: var(--accent); }

.mini { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .3s, border-color .3s; }
.mini:hover { transform: translateY(-5px); border-color: var(--line-2); }
.mini b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
.mini h4 { font-size: 17px; margin: 8px 0 8px; }
.mini p { font-size: 14px; margin: 0; }

/* ---------- 合作方式 ---------- */
.coop { padding-top: 36px; }
.coop .tagline {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: var(--radius);
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(255, 106, 0, .28);
}
.coop h3 { font-size: 19px; }

/* ---------- 关于 ---------- */
.about { display: grid; grid-template-columns: 1.12fr .88fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-top: 14px; }
.about-text b { color: var(--ink); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.stat b { display: block; font-size: 34px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--muted); letter-spacing: .06em; }

/* ---------- 联系 ---------- */
.sec-dark { background: linear-gradient(160deg, #101419, #0b0d10 65%); }
.sec-dark h2, .sec-dark .kicker { color: var(--ink); }
.sec-dark .kicker { color: var(--accent); }
.sec-dark .sec-head p { color: var(--muted); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; }
.ci { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ci span { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ci a, .ci b { font-size: 18px; font-weight: 700; }
.ci a:hover { color: var(--accent); }

.contact-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; padding: 14px 15px; border-radius: var(--radius); font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); background: #0e1216; color: var(--ink); outline: none;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #5d6774; }
.field input:focus, .field textarea:focus { border-color: var(--accent); background: #11161b; }
.form-note { font-size: 13px; margin: 12px 0 0; color: var(--accent); min-height: 20px; }

/* ---------- 页脚 ---------- */
.foot { background: #07090b; border-top: 1px solid var(--line); color: var(--muted); padding: 56px 0 34px; }
.foot .logo-text { color: var(--ink); }
.foot-inner { display: grid; gap: 20px; }
.foot-desc { font-size: 13px; margin: 10px 0 0; letter-spacing: .04em; }
.foot-links { display: flex; gap: 24px; font-size: 13px; }
.foot-links a:hover { color: var(--accent); }
.copy { font-size: 12px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.js .fly {
  display: inline-block; opacity: 0;
  animation: flyIn .9s cubic-bezier(.2,.85,.25,1) both;
  animation-delay: var(--d, 0s);
}
.js .fly-title:not(.play) .fly { animation-play-state: paused; }
@keyframes flyIn {
  0%   { opacity: 0; transform: translate3d(0, 36px, 0) rotate(7deg) scale(.92); }
  55%  { opacity: 1; transform: translate3d(0, -7px, 0) rotate(-2.5deg) scale(1.03); }
  72%  { transform: translate3d(0, 3px, 0) rotate(1.4deg) scale(.995); }
  86%  { transform: translate3d(0, -2px, 0) rotate(-.6deg); }
  100% { opacity: 1; transform: none; }
}

.still .fly, .still .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
.still .mock, .still .mock-chart span { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .js .fly { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mock { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 手机 ---------- */
@media (max-width: 900px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero { padding: 130px 0 80px; }
  .nav-inner { height: 64px; }
  .menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #0d1014; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); padding: 8px 0;
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 6%; }
  .burger { display: block; margin-left: auto; }
  .nav .btn-sm { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .about-cards { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 18px 0; }
  .hero-stats li { padding: 0 22px; }
  .hero-stats b { font-size: 26px; }
  .sec { padding: 72px 0; }
}

/* ============================================================
   方案 D · 主视觉冲击（Hero Impact）
   深色满屏 + 一把立体铣刀缓慢浮动 + 底部磨削火花
   在 industrial.css 基础上覆盖首屏
   ============================================================ */

/* ---------- 首屏改成占满一屏 ---------- */
.hero {
  min-height: 100vh;
  padding: 148px 0 88px;
  overflow: hidden;
}
.hero-inner { width: min(1200px, 92%); margin: 0 auto; position: relative; z-index: 1; }

.hero-bg {
  background:
    radial-gradient(1000px 640px at 76% 44%, rgba(255, 92, 0, .22), transparent 62%),
    radial-gradient(820px 480px at 10% -4%, rgba(255, 150, 60, .11), transparent 66%),
    linear-gradient(180deg, #0a0c0f, #0b0d10 68%);
}
.hero-bg::after {
  right: -180px; top: 40px; width: 620px; height: 620px;
  border-color: rgba(255, 106, 0, .1);
}

/* ---------- 更大的主标题 ---------- */
.hero h1 { font-size: clamp(42px, 5.8vw, 84px); font-weight: 800; letter-spacing: -.035em; line-height: 1.03; }
.lead { font-size: 18px; max-width: 29em; }
.hero-actions { margin: 34px 0 48px; }
.hero-stats b { font-size: 38px; }

/* 这版首屏不放数据卡，换成产品主视觉 */
.mock { display: none; }

/* ---------- 刀刃处的磨削火星（纯 CSS，不依赖脚本） ---------- */
.hero-3d::after {
  content: "";
  position: absolute; left: 58%; top: 56%;
  width: 320px; height: 260px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 24% 84%, rgba(255, 208, 130, .95) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 37% 72%, rgba(255, 172, 60, .9) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 52% 88%, rgba(255, 228, 175, .95) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 65% 68%, rgba(255, 150, 40, .85) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 80%, rgba(255, 192, 95, .9) 0 1.3px, transparent 2.2px),
    radial-gradient(circle at 45% 60%, rgba(255, 140, 30, .7) 0 1px, transparent 1.8px),
    radial-gradient(circle at 86% 62%, rgba(255, 205, 120, .8) 0 1px, transparent 1.8px);
  animation: sparksUp 2.6s linear infinite;
}
@keyframes sparksUp {
  0%   { opacity: 0; transform: translateX(-50%) translateY(22px); }
  18%  { opacity: 1; }
  70%  { opacity: .65; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-165px); }
}
.still .hero-3d::after { animation: none; opacity: 1; transform: translateX(-50%); }
/* 截图时让首屏按内容高度，不然 100vh 会把整页撑满 */
.still .hero { min-height: auto; padding: 148px 0 88px; }

/* ---------- 3D 铣刀舞台（顶替下面那个纯 CSS 拼的） ---------- */
#tool3d-stage { position: absolute; inset: 0; display: none; cursor: grab; touch-action: none; }
#tool3d-stage:active { cursor: grabbing; }
.hero-3d.has-3d #tool3d-stage { display: block; }
.hero-3d.has-3d .tool,
.hero-3d.has-3d .tool-shadow { display: none; }

/* ---------- 3D 铣刀 ---------- */
.hero-3d {
  display: grid;
  position: relative;
  place-items: center;
  width: 100%;              /* 必须撑满，否则隐藏 CSS 版后宽度会塌成 0 */
  height: 580px;
  perspective: 1200px;
}

.tool {
  position: relative;
  width: 130px; height: 438px;
  transform: rotate(-24deg) rotateY(-6deg);
  animation: toolFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 44px 60px rgba(0, 0, 0, .7));
}
@keyframes toolFloat {
  0%, 100% { transform: translateY(0) rotate(-24deg) rotateY(-6deg); }
  50%      { transform: translateY(-18px) rotate(-24deg) rotateY(-6deg); }
}

/* 刀柄：金属圆柱 */
.tool-shank {
  position: absolute; left: 0; top: 0; width: 130px; height: 232px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(90deg,
    #171b20 0%, #39414b 13%, #8d98a5 33%, #e9f0f8 46%,
    #a9b4c0 55%, #474f59 73%, #14181c 100%);
}
.tool-shank::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, #12161a, #4b545e 40%, #9aa5b1 50%, #38404a 62%, #101418);
  opacity: .95;
}

/* 刃部：螺旋刃 */
.tool-flute {
  position: absolute; left: 0; bottom: 0; width: 130px; height: 214px;
  border-radius: 2px 2px 24px 24px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(255,255,255,.5) 44%, rgba(0,0,0,.82)),
    repeating-linear-gradient(122deg, #39414a 0 9px, #9aa5b2 9px 14px, #232930 14px 24px);
  background-blend-mode: overlay, screen;
  box-shadow: inset -16px 0 26px rgba(0,0,0,.62), inset 12px 0 22px rgba(255,255,255,.07);
}
.tool-flute::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 26px;
  border-radius: 0 0 46% 46% / 0 0 100% 100%;
  background: linear-gradient(180deg, #8d99a6, #1b2027);
}

/* 高光扫过，做出金属反光 */
.tool-shine {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 6px 6px 24px 24px; pointer-events: none;
}
.tool-shine::before {
  content: ""; position: absolute; top: -40%; left: -70%; width: 58%; height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: rotate(16deg);
  animation: shine 4.6s ease-in-out infinite;
}
@keyframes shine {
  0%   { left: -70%; }
  55%  { left: 135%; }
  100% { left: 135%; }
}

/* 底部橙色光晕 / 阴影 */
.tool-shadow {
  position: absolute; bottom: 26px; width: 320px; height: 64px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 110, 20, .3), transparent 76%);
  filter: blur(9px);
  animation: shadowPulse 7s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(.9); opacity: .6; }
}

/* ---------- 手机：让主视觉缩小别撑破 ---------- */
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 130px 0 70px; }
  .hero-3d { height: 380px; margin-top: 10px; }
  .tool { width: 96px; height: 322px; }
  .tool-shank { width: 96px; height: 170px; }
  .tool-flute { width: 96px; height: 158px; }
  .hero-3d::after { transform: translateX(-50%) scale(.7); }
}
