/* MLNE · 3D 首页样式
   Palette: deep space navy + crystal cyan/violet
   -------------------------------------------------- */

:root {
  --bg: #05070c;
  --bg-soft: #080b12;
  --ink: #e8eef7;
  --ink-dim: #9fb0c6;
  --ink-faint: #64758c;
  --line: rgba(148, 178, 214, 0.14);
  --cyan: #67e8f9;
  --violet: #a78bfa;
  --lime: #a3e635;
  --card: rgba(12, 17, 26, 0.66);
  --card-line: rgba(120, 160, 205, 0.16);
  --radius: 18px;
  --shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.9);
  --sans: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(120% 80% at 70% -10%, #0d1524 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img, canvas { display: block; max-width: 100%; }

::selection { background: rgba(103, 232, 249, 0.28); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(to bottom, rgba(5, 7, 12, 0.72), rgba(5, 7, 12, 0.12));
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 7, 12, 0.86);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; }
.brand-text {
  font-weight: 650;
  letter-spacing: 0.14em;
  font-size: 15px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.brand-text small {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
  font-weight: 500;
}
.brand-text.small { font-size: 13px; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: right 0.3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn-primary {
  color: #041016;
  background: linear-gradient(120deg, var(--cyan), #7dd3fc 45%, var(--violet));
  box-shadow: 0 10px 34px -12px rgba(103, 232, 249, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -14px rgba(103, 232, 249, 0.7); }
.btn-ghost {
  color: var(--ink);
  border-color: rgba(148, 178, 214, 0.3);
  background: rgba(148, 178, 214, 0.05);
}
.btn-ghost:hover { border-color: rgba(167, 139, 250, 0.6); background: rgba(167, 139, 250, 0.1); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(84px, 11vh, 124px) clamp(18px, 5vw, 80px) clamp(36px, 7vh, 88px);
  overflow: hidden;
}

.hero-backdrop { position: absolute; inset: 0; z-index: 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 74% 46%, rgba(103, 232, 249, 0.10), transparent 70%),
    radial-gradient(45% 45% at 20% 70%, rgba(167, 139, 250, 0.10), transparent 72%),
    linear-gradient(100deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.58) 40%, rgba(5, 7, 12, 0.14) 68%, rgba(5, 7, 12, 0.42) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: 0.10; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; padding-bottom: 8px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: none;
  color: var(--cyan);
  margin: 0 0 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.16);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.14); }
  50% { box-shadow: 0 0 0 9px rgba(103, 232, 249, 0.04); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, min(5.9vw, 9.6vh), 78px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0 0 26px;
}
.hero-title .line { display: block; }
.hero-title .accent {
  background: linear-gradient(96deg, #d9f6ff 0%, var(--cyan) 38%, var(--violet) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(14px, min(1.3vw, 2.1vh), 18px);
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 0 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero-stats {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-stats dt { font-size: 12px; letter-spacing: 0.16em; color: var(--ink-faint); }
.hero-stats dd {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.hero-stats dd span { font-size: 0.5em; color: var(--ink-dim); margin-left: 4px; letter-spacing: 0.06em; }

.hero-scroll {
  position: absolute;
  left: clamp(18px, 5vw, 80px);
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin: 0;
}
.chev {
  width: 9px; height: 9px;
  border-right: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  transform: rotate(45deg);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(5px) rotate(45deg); } }

/* ---------- sections ---------- */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 132px) clamp(18px, 5vw, 80px);
  max-width: 1180px;
  margin: 0 auto;
}

.section-head { max-width: 660px; margin-bottom: clamp(34px, 4vw, 56px); }
.kicker {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 16px;
}
.section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.28;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.lede { color: var(--ink-dim); margin: 0; font-size: 15.5px; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 25, 38, 0.86), rgba(9, 13, 20, 0.9));
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 100% 0%, rgba(103, 232, 249, 0.12), transparent 60%);
  opacity: 0.9; pointer-events: none;
}
.card-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--cyan);
  border: 1px solid rgba(103, 232, 249, 0.35);
  background: rgba(103, 232, 249, 0.07);
  margin-bottom: 18px;
}
.card-tag.tag-alt { color: var(--violet); border-color: rgba(167, 139, 250, 0.4); background: rgba(167, 139, 250, 0.08); }
.card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: 0.01em; }
.card-desc { color: var(--ink-dim); margin: 0 0 22px; font-size: 14.5px; }

.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px dashed rgba(148, 178, 214, 0.16);
  font-size: 14px;
}
.spec-list li span { color: var(--ink-faint); }
.spec-list li b { font-weight: 560; color: var(--ink); font-variant-numeric: tabular-nums; }

.mini-card {
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--card-line);
  background: var(--card);
  transition: transform 0.35s ease, border-color 0.35s, background 0.35s;
}
.mini-card:hover { transform: translateY(-4px); border-color: rgba(103, 232, 249, 0.35); background: rgba(16, 23, 35, 0.85); }
.mini-ico { font-size: 22px; margin-bottom: 14px; filter: saturate(0.9); }
.mini-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.mini-card p { margin: 0; font-size: 13.5px; color: var(--ink-dim); }

/* ---------- table ---------- */
.table-wrap {
  margin-top: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--card-line);
  overflow: auto;
  background: rgba(9, 13, 20, 0.7);
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.spec-table caption {
  text-align: left;
  padding: 16px 22px 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.spec-table th, .spec-table td { padding: 13px 22px; text-align: left; border-top: 1px solid rgba(148, 178, 214, 0.1); }
.spec-table th { font-weight: 560; color: var(--ink-dim); font-size: 12.5px; letter-spacing: 0.08em; }
.spec-table td { color: var(--ink); font-variant-numeric: tabular-nums; }
.spec-table tbody tr:hover { background: rgba(103, 232, 249, 0.04); }

/* ---------- quality ---------- */
.quality-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.check-list { list-style: none; margin: 26px 0 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink-dim);
  font-size: 14.5px;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

.quality-panel { display: grid; gap: 14px; }
.q-item {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--card-line);
  background: linear-gradient(140deg, rgba(18, 25, 38, 0.72), rgba(9, 13, 20, 0.8));
}
.q-num {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid rgba(103, 232, 249, 0.4);
  background: rgba(103, 232, 249, 0.07);
}
.q-item b { display: block; margin-bottom: 4px; font-weight: 560; }
.q-item p { margin: 0; font-size: 13.5px; color: var(--ink-dim); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact-inner {
  padding: clamp(40px, 6vw, 76px) clamp(22px, 4vw, 60px);
  border-radius: 26px;
  border: 1px solid rgba(148, 178, 214, 0.2);
  background:
    radial-gradient(80% 120% at 50% -20%, rgba(103, 232, 249, 0.14), transparent 62%),
    radial-gradient(60% 100% at 90% 110%, rgba(167, 139, 250, 0.12), transparent 64%),
    linear-gradient(160deg, rgba(16, 23, 35, 0.92), rgba(7, 10, 16, 0.94));
  box-shadow: var(--shadow);
}
.contact .section-head { margin-left: auto; margin-right: auto; }
.contact h2 { margin-bottom: 14px; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.contact-note { margin: 20px 0 0; font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.04em; }

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(18px, 5vw, 80px) 44px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 12.5px;
}
.footer-left, .footer-right { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-copy { color: var(--ink-faint); }
.footer-right a { color: var(--ink-dim); }
.footer-right a:hover { color: var(--cyan); }
.sep { opacity: 0.5; }
.footer-meta { letter-spacing: 0.06em; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- fallback ---------- */
.no-webgl .hero-backdrop::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 45% at 72% 46%, rgba(103, 232, 249, 0.18), transparent 70%),
    radial-gradient(40% 40% at 80% 58%, rgba(167, 139, 250, 0.16), transparent 70%);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quality-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; padding: 9px 16px; font-size: 13px; }
  .hero { padding-top: 104px; min-height: 92svh; }
  .hero-veil { background: linear-gradient(180deg, rgba(5,7,12,0.9) 0%, rgba(5,7,12,0.7) 60%, rgba(5,7,12,0.92) 100%); }
  .two-col, .four-col { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-scroll { display: none; }
  .site-footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow .dot, .chev { animation: none; }
}

/* 晶格数据标注（右下角，小字） */
.hero-credit {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  bottom: 26px;
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(120, 150, 180, 0.75);
  font-variant-numeric: tabular-nums;
  max-width: 52vw;
  text-align: right;
  line-height: 1.5;
}
@media (max-width: 1024px) { .hero-credit { display: none; } }

/* 3D 交互 */
.hero-canvas { cursor: grab; }
body.grabbing, body.grabbing .hero-canvas { cursor: grabbing; }
.drag-hint {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  bottom: 52px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(140, 190, 225, 0.72);
}
@media (max-width: 899px) {
  .hero-canvas { pointer-events: none; }
  .drag-hint { display: none; }
}


/* 左列内的 3D 操作提示（流内元素，不与 3D 重叠） */
.rotate-note {
  margin: -18px 0 26px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(130, 170, 205, 0.75);
}
.rotate-note::before {
  content: "";
  display: inline-block;
  width: 14px; height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: rgba(130, 170, 205, 0.6);
}
@media (max-width: 899px) { .rotate-note { display: none; } }
/* 矮窗口（浏览器缩放 / 小屏笔记本）压缩纵向节奏，保证一屏放下 */
@media (max-height: 720px) {
  .hero { padding-top: clamp(72px, 10vh, 96px); padding-bottom: clamp(20px, 4vh, 40px); }
  .hero-title { margin-bottom: 14px; }
  .hero-sub { margin-bottom: 18px; }
  .hero-actions { margin-bottom: 16px; gap: 10px; }
  .hero-actions .btn { padding: 10px 18px; font-size: 13px; }
  .rotate-note { margin: -6px 0 16px; font-size: 11px; }
  .hero-stats { padding-top: 14px; gap: 20px; }
  .hero-stats dd { font-size: clamp(22px, 2.4vw, 28px); }
  .hero-stats dt { font-size: 11px; }
}
@media (max-height: 600px) {
  .hero { padding-top: 70px; padding-bottom: 16px; }
  .hero-title { font-size: clamp(26px, 8vh, 52px); margin-bottom: 10px; }
  .hero-sub { margin-bottom: 14px; }
  .eyebrow { margin-bottom: 14px; }
  .hero-scroll { display: none; }
}