:root {
  --bg: #ffffff;
  --bg-2: #f4f6f8;
  --bg-3: #eceff3;
  --ink: #1a1f27;
  --text: #2a3038;
  --muted: #66707c;
  --line: #e6eaee;
  --line-dim: #eef1f4;
  --red: #c8102e;
  --red-2: #e31c3d;
  --red-deep: #9b0e24;
  --steel: #5c6773;
  --shadow: 0 10px 30px rgba(26, 31, 39, 0.06);
  --shadow-hover: 0 16px 40px rgba(200, 16, 46, 0.12);
  --radius: 2px;
  --max: 1200px;
  --nav-h: 78px;
  --util-h: 40px;
  --font: "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --display: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.muted { color: var(--muted); }
.gold { color: var(--red); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

.section {
  padding: 92px 0;
  position: relative;
  background: var(--bg);
}

.section-alt { background: var(--bg-2); }

.section-red {
  background: linear-gradient(90deg, var(--red-deep), var(--red) 55%, #d1233f);
  color: #fff;
}

.section-red h2,
.section-red .stat strong,
.section-red .stat span { color: #fff; }

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-head h2::before {
  content: "";
  width: 5px;
  height: 1.05em;
  background: var(--red);
  flex-shrink: 0;
}

.link-more {
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: 0.2s ease;
}

.btn:hover { background: var(--red-2); border-color: var(--red-2); }

.btn.ghost {
  background: transparent;
  color: var(--red);
}

.btn.ghost:hover {
  background: var(--red);
  color: #fff;
}

.btn.block { width: 100%; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
}

.util-bar {
  height: var(--util-h);
  background: var(--red);
  color: #fff;
  font-size: 13px;
}

.util-bar .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.util-bar a { color: #fff; font-weight: 700; letter-spacing: 0.04em; }

.topbar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26, 31, 39, 0.04);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--max), calc(100% - 32px));
}

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

.brand-mark { width: 40px; height: 40px; }

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.brand-full {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: -1px;
}

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

.nav a {
  padding: 10px 14px;
  color: var(--steel);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

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

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-switch button {
  background: #fff;
  color: var(--muted);
  border: 0;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
}

.lang-switch button.is-on {
  background: var(--red);
  color: #fff;
}

.hotline {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--red);
  font-weight: 700;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 18%, rgba(200, 16, 46, 0.1), transparent 42%),
    linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(200, 16, 46, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(26, 31, 39, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 72%);
}

.hero-glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  right: -6vw;
  top: 8%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.14), transparent 68%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 88px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  white-space: pre-line;
  margin-bottom: 20px;
  border-left: 6px solid var(--red);
  padding-left: 20px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 18px;
}

.hero-panel {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
  position: relative;
  box-shadow: var(--shadow);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--red);
}

.hero-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hero-panel img {
  width: 100%;
  min-height: 340px;
  max-height: 420px;
  object-fit: cover;
}

.machine-art { width: 100%; height: auto; }

.cat-grid,
.product-grid,
.news-grid,
.video-grid,
.adv-grid,
.stat-grid {
  display: grid;
  gap: 20px;
}

.cat-grid { grid-template-columns: repeat(4, 1fr); }
.product-grid { grid-template-columns: repeat(4, 1fr); }
.news-grid { grid-template-columns: repeat(3, 1fr); }
.video-grid { grid-template-columns: 1.4fr 1fr; }
.adv-grid { grid-template-columns: repeat(4, 1fr); }
.stat-grid { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(200, 16, 46, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-media {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 78% 18%, rgba(200, 16, 46, 0.1), transparent 46%),
    linear-gradient(180deg, #f7f8fb, #eef1f5);
  display: grid;
  place-items: center;
  position: relative;
}

.card-media svg { width: 72%; height: 72%; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body { padding: 18px 20px 22px; }

.card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.sku {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.08em;
}

.chip {
  display: inline-block;
  font-size: 11px;
  color: var(--red);
  border: 1px solid rgba(200, 16, 46, 0.28);
  background: rgba(200, 16, 46, 0.06);
  padding: 2px 8px;
  margin-top: 8px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 16px;
  cursor: pointer;
}

.filter-btn.is-on {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.about-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.home-intro { max-width: 820px; }
.home-intro h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-intro h2::before {
  content: "";
  width: 5px;
  height: 1.05em;
  background: var(--red);
  flex-shrink: 0;
}

.section-red { padding: 64px 0; }

.stat {
  padding: 8px 0 4px;
  border-top: 3px solid rgba(255, 255, 255, 0.35);
}

.section:not(.section-red) .stat {
  border-top-color: var(--red);
  background: #fff;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 36px;
  color: var(--red);
  line-height: 1.15;
}

.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.certs span {
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--steel);
}

.video-feature {
  position: relative;
  min-height: 380px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-feature iframe,
.video-feature video {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

.video-placeholder {
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  background: linear-gradient(180deg, #fbfcfd, #f3f5f8);
}

.play-mark {
  width: 68px;
  height: 68px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: var(--red);
  font-size: 18px;
}

.video-side { display: grid; gap: 12px; }

.video-mini {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
}

.video-mini.is-on { border-color: var(--red); box-shadow: var(--shadow); }

.detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  padding: 40px 0 80px;
}

.gallery-main {
  background: var(--bg-2);
  border: 1px solid var(--line);
  min-height: 380px;
  display: grid;
  place-items: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumbs button {
  width: 72px;
  height: 52px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.spec-table th,
.spec-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  font-size: 14px;
}

.spec-table th { color: var(--muted); width: 38%; font-weight: 500; }

.meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  font-size: 14px;
}

.meta-list dt { color: var(--muted); }

.news-item time { font-family: var(--mono); font-size: 12px; color: var(--red); }
.article { max-width: 780px; padding: 48px 0 88px; }
.article p { color: var(--muted); white-space: pre-line; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px;
}

.contact-card p { margin: 8px 0; }

form label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 6px;
}

form input,
form textarea,
form select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius);
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--red);
}

form textarea { min-height: 120px; resize: vertical; }

.page-hero {
  padding: 56px 0 28px;
  background:
    linear-gradient(90deg, rgba(200, 16, 46, 0.07), transparent 42%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  border-left: 6px solid var(--red);
  padding-left: 16px;
}

footer {
  background: #1c2430;
  color: #b7c0ca;
  padding: 48px 0 28px;
  font-size: 14px;
}

footer h3 { color: #fff; margin-bottom: 12px; font-size: 16px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  font-size: 12px;
}

.mobile-dock { display: none; }

.admin-link {
  color: #8b95a1;
  font-size: 12px;
}

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  background: #fff;
}

@media (max-width: 980px) {
  .hero .wrap,
  .about-band,
  .detail,
  .contact-grid,
  .video-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid,
  .product-grid,
  .stat-grid,
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .nav, .util-bar span:first-child { display: none; }
  .menu-btn { display: grid; place-items: center; margin-left: auto; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--util-h) + var(--nav-h));
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .masthead { position: relative; }
  .topbar .wrap { position: static; }
  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .mobile-dock a {
    text-align: center;
    padding: 10px 4px 12px;
    font-size: 12px;
    color: var(--steel);
  }
  body { padding-bottom: 58px; }
}

@media (max-width: 560px) {
  .cat-grid, .product-grid, .stat-grid, .adv-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero h1 { font-size: 32px; }
  .section { padding: 56px 0; }
}
