/* ==========================================================================
   恒拓机械 · 官网样式
   深色科技风 / 青色强调 / 精密制造气质
   ========================================================================== */

:root {
  --bg: #05070b;
  --bg-elev: #080c13;
  --panel: #0b1119;
  --panel-2: #0e1622;
  --line: rgba(132, 178, 255, 0.13);
  --line-2: rgba(132, 178, 255, 0.26);
  --text: #e9eff8;
  --muted: #8a99ad;
  --dim: #5f6f84;
  --accent: #2fe4d0;
  --accent-soft: rgba(47, 228, 208, 0.12);
  --accent-2: #4f9dff;
  --danger: #ff6b6b;
  --font-sans: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(132, 178, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 178, 255, 0.04) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

main {
  position: relative;
  z-index: 1;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #04110f;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #05070b;
}
::-webkit-scrollbar-thumb {
  background: #1c2836;
  border: 2px solid #05070b;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2b3d52;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------- 基础布局 -------------------------------- */

.container {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section--tight {
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim);
  margin-right: 10px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.005em;
}

.section-title {
  font-size: clamp(30px, 3.5vw, 46px);
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-desc {
  max-width: 560px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  transition: color 0.25s, border-color 0.25s;
}

.link-more span {
  transition: transform 0.3s var(--ease);
}

.link-more:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.link-more:hover span {
  transform: translateX(5px);
}

/* -------------------------------- 按钮 ---------------------------------- */

.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--btn-bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.3s, transform 0.3s;
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--accent);
  color: #04110f;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #5ff0de;
  box-shadow: 0 12px 36px -10px rgba(47, 228, 208, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(47, 228, 208, 0.05);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-danger {
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ff8f8f;
  background: rgba(255, 107, 107, 0.06);
}

.btn-danger:hover {
  background: rgba(255, 107, 107, 0.14);
  border-color: rgba(255, 107, 107, 0.6);
}

/* -------------------------------- 页头 ---------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 11, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(47, 228, 208, 0.4);
  background: linear-gradient(145deg, rgba(47, 228, 208, 0.16), rgba(79, 157, 255, 0.06));
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(47, 228, 208, 0.12);
  pointer-events: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--dim);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  width: calc(100% - 32px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 10px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.25s;
}

.header-phone svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.header-phone:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* -------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 70px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 62% at 72% 42%, rgba(47, 228, 208, 0.11), transparent 62%),
    radial-gradient(45% 50% at 88% 12%, rgba(79, 157, 255, 0.1), transparent 65%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--accent);
  margin-bottom: 26px;
}

.hero-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero-eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.hero h1 .line {
  display: block;
}

.hero h1 .accent {
  background: linear-gradient(100deg, #f2f7ff 0%, var(--accent) 52%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 480px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 0;
  margin-top: 58px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.hero-stat {
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid var(--line);
}

.hero-stat:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.hero-stat .num {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-stat .num i {
  font-style: normal;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.hero-stat .label {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

/* Hero 视觉区 */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1.05;
  display: grid;
  place-items: center;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 228, 208, 0.14), transparent 62%);
  filter: blur(20px);
}

.hero-ring {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(132, 178, 255, 0.12);
  border-radius: 50%;
}

.hero-ring::before,
.hero-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-ring::before {
  inset: 9%;
  border: 1px dashed rgba(47, 228, 208, 0.18);
  animation: spin 48s linear infinite;
}

.hero-ring::after {
  inset: 22%;
  border: 1px solid rgba(132, 178, 255, 0.1);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-cross {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
}

.hero-cross::before,
.hero-cross::after {
  content: "";
  position: absolute;
  background: rgba(132, 178, 255, 0.1);
}

.hero-cross::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.hero-cross::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.hero-spindle {
  position: relative;
  z-index: 2;
  width: 92%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  background: rgba(8, 13, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
}

.hero-chip b {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero-chip--a {
  top: 16%;
  right: 0;
  animation: float 7s ease-in-out infinite 0.4s;
}

.hero-chip--b {
  bottom: 20%;
  left: -2%;
  animation: float 8s ease-in-out infinite 1.2s;
}

.hero-chip .led {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  box-shadow: 0 0 8px var(--accent);
  vertical-align: 1px;
}

/* ------------------------------- 跑马灯 --------------------------------- */

.marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 19, 0.6);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 0 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--dim);
  white-space: nowrap;
}

.marquee-item::after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  opacity: 0.5;
  transform: rotate(45deg);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ------------------------------ 产品分类 --------------------------------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px 26px;
  background: var(--bg-elev);
  transition: background 0.35s, transform 0.35s;
  overflow: hidden;
}

.cat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.cat-card:hover {
  background: var(--panel);
}

.cat-card:hover::before {
  transform: scaleX(1);
}

.cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.cat-num {
  font-size: 12px;
  color: var(--accent);
  opacity: 0.7;
}

.cat-name {
  margin-top: auto;
  padding-top: 42px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cat-desc {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--dim);
  transition: color 0.3s, gap 0.3s;
}

.cat-card:hover .cat-link {
  color: var(--accent);
  gap: 12px;
}

/* ------------------------------- 产品卡片 -------------------------------- */

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

.product-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--bg-elev));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.p-card::before,
.p-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 3;
  pointer-events: none;
}

.p-card::before {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}

.p-card::after {
  right: 8px;
  bottom: 8px;
  border-width: 0 1px 1px 0;
}

.p-card:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 228, 208, 0.35);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(47, 228, 208, 0.06);
}

.p-card:hover::before,
.p-card:hover::after {
  opacity: 1;
}

.p-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(47, 228, 208, 0.07), transparent 70%),
    linear-gradient(rgba(132, 178, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 178, 255, 0.045) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  border-bottom: 1px solid var(--line);
}

.p-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  transition: transform 0.6s var(--ease);
}

.p-media--art img {
  filter: brightness(1.5) contrast(1.04) drop-shadow(0 0 26px rgba(47, 228, 208, 0.1));
}

.p-card:hover .p-media img {
  transform: scale(1.05);
}

.p-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 9px;
  border: 1px solid rgba(47, 228, 208, 0.35);
  background: rgba(4, 12, 18, 0.78);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.p-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 18px;
}

.p-cat {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: uppercase;
}

.p-name {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.p-model {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.p-summary {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-specs {
  display: flex;
  gap: 22px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.p-spec {
  min-width: 0;
}

.p-spec span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.p-spec b {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.p-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.p-arrow svg {
  width: 13px;
  height: 13px;
}

.p-card:hover .p-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #04110f;
}

.p-more {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

/* ------------------------------- 制造能力 -------------------------------- */

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

.cap {
  position: relative;
  padding: 30px 26px 32px;
  border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.5), transparent);
  transition: border-color 0.35s, background 0.35s;
}

.cap:hover {
  border-top-color: var(--accent);
  background: linear-gradient(180deg, rgba(47, 228, 208, 0.05), transparent);
}

.cap-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.cap-icon {
  width: 40px;
  height: 40px;
  margin: 24px 0 20px;
  color: var(--accent);
  opacity: 0.85;
}

.cap h3 {
  font-size: 17px;
  font-weight: 700;
}

.cap-en {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.cap p {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* -------------------------------- 关于 ---------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
}

.about-text p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.95;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: var(--line);
  border: 1px solid var(--line);
}

.about-point {
  padding: 20px 18px;
  background: var(--bg-elev);
}

.about-point h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.about-point h4::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
}

.about-point p {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--dim);
}

.about-visual {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(47, 228, 208, 0.08), transparent 65%),
    var(--bg-elev);
  padding: 34px 32px 30px;
  overflow: hidden;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(132, 178, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 178, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 60% 30%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 60% 30%, #000, transparent 75%);
  pointer-events: none;
}

.av-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.av-head b {
  color: var(--accent);
  font-weight: 500;
}

.av-big {
  position: relative;
  margin: 30px 0 6px;
  font-family: var(--font-mono);
  font-size: clamp(40px, 4.6vw, 58px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.av-big span {
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-left: 6px;
}

.av-sub {
  position: relative;
  font-size: 12px;
  color: var(--muted);
}

.av-rows {
  position: relative;
  margin-top: 30px;
  display: grid;
  gap: 16px;
}

.av-row {
  display: grid;
  grid-template-columns: 88px 1fr 56px;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}

.av-bar {
  height: 3px;
  background: rgba(132, 178, 255, 0.1);
  overflow: hidden;
}

.av-bar i {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(47, 228, 208, 0.5);
}

.av-row b {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text);
}

.av-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

/* -------------------------------- 联系 ---------------------------------- */

.contact-section {
  position: relative;
  padding: 110px 0 120px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 80% at 80% 20%, rgba(47, 228, 208, 0.09), transparent 65%),
    radial-gradient(40% 60% at 10% 90%, rgba(79, 157, 255, 0.07), transparent 60%);
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: start;
}

.contact-title {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.25;
}

.contact-title em {
  font-style: normal;
  color: var(--accent);
}

.contact-lead {
  max-width: 460px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.contact-rows {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.contact-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}

.contact-row .v {
  font-size: 14px;
  color: var(--text);
}

.contact-row .v small {
  display: block;
  font-size: 11px;
  color: var(--dim);
  margin-top: 2px;
}

.contact-row a.v {
  transition: color 0.25s;
}

.contact-row a.v:hover {
  color: var(--accent);
}

.contact-card {
  padding: 30px;
  border: 1px solid var(--line-2);
  background: rgba(8, 13, 20, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.cc-head .led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s infinite;
}

.contact-card h3 {
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.4;
}

.contact-card > p {
  margin: 10px 0 22px;
  font-size: 12.5px;
  color: var(--muted);
}

.cc-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cc-list li {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.cc-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  margin-top: 8px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: 0.7;
}

.contact-card .btn {
  width: 100%;
}

.cc-note {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--dim);
}

/* -------------------------------- 页脚 ---------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: #04060a;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin: 18px 0 0;
  max-width: 300px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--dim);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a,
.footer-col li {
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  font-size: 11px;
  color: var(--dim);
}

.footer-bottom .admin-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #3d4a5c;
  transition: color 0.25s;
}

.footer-bottom .admin-link:hover {
  color: var(--accent);
}

/* ------------------------------ 内页头部 --------------------------------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 76px) 0 54px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 90% at 75% 0%, rgba(47, 228, 208, 0.09), transparent 60%),
    linear-gradient(180deg, rgba(8, 12, 19, 0.6), transparent);
  overflow: hidden;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 26px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb i {
  font-style: normal;
  opacity: 0.4;
}

.page-hero h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.12;
}

.page-hero .lead {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.page-count {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.page-count b {
  font-size: 22px;
  color: var(--accent);
  font-weight: 500;
}

/* ------------------------------ 产品列表页 -------------------------------- */

.catalog {
  padding: 46px 0 120px;
}

.catalog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 9px 18px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s;
}

.filter-pill:hover {
  color: var(--text);
  border-color: var(--line-2);
}

.filter-pill.is-active {
  color: #04110f;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.filter-pill span {
  font-family: var(--font-mono);
  font-size: 9px;
  margin-left: 6px;
  opacity: 0.6;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 14px;
  width: 15px;
  height: 15px;
  color: var(--dim);
  pointer-events: none;
}

.search-box input {
  width: 250px;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 19, 0.6);
  font-size: 12.5px;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s;
}

.search-box input::placeholder {
  color: var(--dim);
}

.search-box input:focus {
  border-color: rgba(47, 228, 208, 0.5);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 90px 20px;
  text-align: center;
  border: 1px dashed var(--line-2);
  color: var(--dim);
}

.empty-state b {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

/* ------------------------------ 产品详情页 -------------------------------- */

.detail {
  padding: calc(var(--header-h) + 54px) 0 100px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: start;
}

.detail-media {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(47, 228, 208, 0.08), transparent 70%),
    linear-gradient(rgba(132, 178, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 178, 255, 0.04) 1px, transparent 1px),
    var(--bg-elev);
  background-size: auto, 34px 34px, 34px 34px, auto;
  padding: 26px;
}

.detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.detail-media img.is-art {
  filter: brightness(1.3) contrast(1.03);
}

.detail-media .media-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.detail-tag {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid rgba(47, 228, 208, 0.3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.detail-info h1 {
  margin-top: 20px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.2;
}

.detail-model {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.detail-summary {
  margin: 22px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.detail-tags span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: rgba(132, 178, 255, 0.04);
  font-size: 11px;
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.detail-note {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--dim);
}

.spec-block {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.spec-block h3 {
  padding: 18px 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.spec-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.spec-cell {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  background: var(--bg-elev);
}

.spec-cell span {
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap;
}

.spec-cell b {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

.spec-cell:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.detail-body {
  margin-top: 70px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
}

.detail-body h2 {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.detail-body h2 em {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}

.detail-desc p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--muted);
}

.related {
  padding: 80px 0 110px;
  border-top: 1px solid var(--line);
}

/* -------------------------------- 404 ----------------------------------- */

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(80px, 16vw, 160px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(47, 228, 208, 0.4);
}

.result-meta {
  margin: -8px 0 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.result-meta b {
  color: var(--accent);
  font-weight: 500;
  margin: 0 4px;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

/* 轻提示 */
.ht-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 300;
  transform: translate(-50%, 16px);
  padding: 12px 22px;
  border: 1px solid rgba(47, 228, 208, 0.35);
  background: rgba(8, 14, 22, 0.95);
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.ht-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ht-toast[data-type="error"] {
  border-color: rgba(255, 107, 107, 0.5);
}

/* ------------------------------ 入场动画 --------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ------------------------------- 响应式 --------------------------------- */

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .caps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    gap: 20px;
  }
  .hero-stat {
    padding-right: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 980px) {
  .container {
    width: calc(100% - 40px);
  }
  .header-inner {
    width: calc(100% - 40px);
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 24px;
    background: rgba(5, 7, 11, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav a::after {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .header-phone {
    display: none;
  }
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 54px);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    min-height: 340px;
    margin-bottom: 10px;
  }
  .hero-stage {
    max-width: 420px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }
  .hero-stat:nth-child(even) {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
  }
  .hero-stat:nth-child(odd) {
    padding-right: 18px;
    margin-right: 18px;
  }
  .section {
    padding: 90px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-points {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .detail-media {
    position: relative;
    top: 0;
  }
  .detail-body {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 40px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-inner {
    width: calc(100% - 32px);
  }
  .brand-en {
    display: none;
  }
  .hero {
    padding-top: calc(var(--header-h) + 26px);
    padding-bottom: 46px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-desc {
    font-size: 14px;
  }
  .hero-actions .btn {
    flex: 1;
    padding: 0 16px;
  }
  .hero-visual {
    min-height: 0;
    margin-bottom: 14px;
  }
  .hero-stage {
    max-width: 330px;
  }
  .hero-chip {
    display: none;
  }
  .section {
    padding: 72px 0;
  }
  .page-hero {
    padding-top: calc(var(--header-h) + 34px);
    padding-bottom: 38px;
  }
  .catalog {
    padding: 34px 0 80px;
  }
  .detail {
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 70px;
  }
  .cat-grid,
  .product-grid,
  .product-grid--3,
  .catalog-grid,
  .caps {
    grid-template-columns: 1fr;
  }
  .cat-card {
    min-height: 210px;
  }
  .spec-table {
    grid-template-columns: 1fr;
  }
  .contact-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }
  .contact-row > .k:nth-child(3) {
    display: none;
  }
  .contact-row .v {
    font-size: 13px;
  }
  .contact-card {
    padding: 24px 20px;
  }
  .contact-section {
    padding: 70px 0 80px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .search-box input {
    width: 100%;
  }
  .catalog-bar {
    align-items: stretch;
  }
  .search-box {
    width: 100%;
  }
  .footer-brand p {
    max-width: none;
  }
  .marquee-item {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
