:root {
  --red: #c8161d;
  --red-dark: #a30f15;
  --ink: #1f1f1f;
  --text: #555;
  --muted: #8c8c8c;
  --line: #e3e3e3;
  --gray: #f5f5f5;
  --dark: #1c1d1f;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --num: "DIN Alternate", "Bahnschrift", "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.site { margin: 0; min-width: 320px; color: var(--ink); background: #fff; font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
/* Zero-specificity resets so single-class component rules always win. */
:where(.site) :where(h1, h2, h3, h4, p, dl, dd) { margin: 0; }
:where(.site) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.site) a { color: inherit; text-decoration: none; }
:where(.site) :where(img, svg) { display: block; }
.site :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.container { width: min(100% - 40px, 1200px); margin-inline: auto; }

.btn { display: inline-flex; height: 40px; padding: 0 22px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 2px; font-size: 15px; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s; }
.btn-lg { height: 48px; padding: 0 34px; font-size: 16px; }
.btn-red { color: #fff; background: var(--red); }
.btn-red:hover { background: var(--red-dark); }
.btn-line { color: var(--ink); border-color: var(--ink); }
.btn-line:hover { color: #fff; background: var(--ink); }

/* Header */
.hd { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line); background: #fff; }
.hd.is-scrolled { box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.hd-inner { display: flex; height: 76px; gap: 28px; align-items: center; }
.logo { display: flex; flex: none; gap: 10px; align-items: center; }
.logo img { width: 38px; height: 38px; }
.logo span { display: flex; flex-direction: column; line-height: 1.2; }
.logo strong { font-size: 20px; letter-spacing: .1em; }
.logo small { color: var(--muted); font-size: 10px; letter-spacing: .2em; }
.logo-light strong { color: #fff; }
.nav { display: flex; height: 100%; margin-left: auto; gap: 34px; }
.nav a { position: relative; display: flex; align-items: center; color: #333; font-size: 15px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.nav a:hover { color: var(--red); }
.nav a:hover::after { transform: scaleX(1); }
.hd-phone { color: var(--red); font-family: var(--num); font-size: 20px; font-weight: 700; }
.hd-btn { margin-left: 8px; }
.nav-toggle { display: none; width: 40px; height: 40px; padding: 10px 9px; border: 1px solid var(--line); border-radius: 2px; background: #fff; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 3px 0; background: var(--ink); }

/* Hero */
.hero { overflow: hidden; background: linear-gradient(180deg, #f3f3f1 0%, #e7e7e4 100%); }
.hero-inner { display: grid; min-height: 560px; padding: 40px 0; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; }
.hero-tag { display: flex; gap: 12px; align-items: center; color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .3em; }
.hero-tag::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.hero h1 { margin: 18px 0 16px; font-size: clamp(34px, 4.2vw, 50px); font-weight: 700; line-height: 1.2; letter-spacing: .04em; }
.hero-lead { color: #333; font-size: 19px; }
.hero-desc { margin-top: 6px; color: var(--text); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; margin-top: 40px; gap: 16px; }
.hero-visual { perspective: 1800px; }
.hero-visual .kb-art { width: 112%; max-width: none; height: auto; transform: rotateX(32deg) rotateZ(-9deg); filter: drop-shadow(0 30px 24px rgba(0, 0, 0, .26)) drop-shadow(0 6px 6px rgba(0, 0, 0, .18)); }
/* Keycaps on the hero keyboard press down when the visitor types. */
.kb-live .kc-top { transition: transform .08s ease-out, filter .08s; }
.kb-live .kc.is-down .kc-top { filter: brightness(.9); transform: translateY(3px); }

/* Sections */
.sec { padding: 90px 0; }
.sec-gray { background: var(--gray); }
.sec-title { margin-bottom: 50px; text-align: center; }
.sec-title h2 { font-size: 30px; font-weight: 700; line-height: 1.3; }
.sec-title p { margin-top: 4px; color: #a6a6a6; font-size: 12px; letter-spacing: .32em; }
.sec-title::after { content: ""; display: block; width: 36px; height: 3px; margin: 16px auto 0; background: var(--red); }
.sec-title-left { margin-bottom: 28px; text-align: left; }
.sec-title-left::after { margin-left: 0; }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product { border: 1px solid #e6e6e6; background: #fff; transition: border-color .2s, box-shadow .2s; }
.product:hover { border-color: var(--red); box-shadow: 0 8px 24px rgba(0, 0, 0, .07); }
.product-img { display: flex; aspect-ratio: 16 / 9; padding: 22px; align-items: center; justify-content: center; background: #ececea; }
.product-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .2)); transition: transform .3s; }
.product:hover .product-img img { transform: scale(1.03); }
.product-body { padding: 22px 24px 24px; }
.product-body h3 { font-size: 18px; }
.product:hover h3 { color: var(--red); }
.product-body p { margin-top: 8px; color: var(--text); font-size: 14px; line-height: 1.85; }
.product-specs { display: flex; flex-wrap: wrap; overflow: hidden; margin-top: 16px; padding-top: 14px; gap: 2px 21px; border-top: 1px solid #eee; color: var(--muted); font-size: 13px; }
/* Separators sit left of each item; the one starting a wrapped line falls outside and is clipped. */
.product-specs li { position: relative; }
.product-specs li::before { content: ""; position: absolute; left: -11px; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: #d6d6d6; }

/* Solution detail page */
.crumbs { border-bottom: 1px solid var(--line); background: var(--gray); color: var(--muted); font-size: 13px; }
.crumbs .container { display: flex; flex-wrap: wrap; padding: 12px 0; gap: 10px; }
.crumbs a:hover { color: var(--red); }
.crumbs em { color: var(--ink); font-style: normal; }
.sol-hero { overflow: hidden; background: linear-gradient(180deg, #f3f3f1 0%, #e7e7e4 100%); }
.sol-hero-inner { display: grid; padding: 56px 0 64px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.sol-photo { perspective: 1500px; }
.sol-photo img { width: 100%; height: auto; transform: rotateX(30deg) rotateZ(-8deg); filter: drop-shadow(0 28px 22px rgba(0, 0, 0, .25)) drop-shadow(0 6px 6px rgba(0, 0, 0, .16)); }
.sol-info h1 { margin: 14px 0 12px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; line-height: 1.25; }
.sol-summary { color: var(--text); font-size: 16px; line-height: 1.9; }
.sol-highlights { display: grid; margin-top: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #d3d3cf; }
.sol-highlights li { padding: 16px 0 14px; border-bottom: 1px solid #d3d3cf; }
.sol-highlights li:nth-child(odd) { padding-right: 16px; border-right: 1px solid #d3d3cf; }
.sol-highlights li:nth-child(even) { padding-left: 20px; }
.sol-highlights b { display: block; font-family: var(--num); font-size: 30px; font-weight: 700; line-height: 1.15; }
.sol-highlights b small { margin-left: 4px; color: var(--muted); font-size: 15px; }
.sol-highlights span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.sol-info .hero-actions { margin-top: 32px; }

.spec-sheet { border-top: 2px solid var(--ink); }
.spec-group { display: grid; grid-template-columns: 200px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.spec-group h3 { padding: 16px 0; font-size: 16px; }
.spec-group dl div { display: grid; padding: 16px 0; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; border-bottom: 1px dashed #e6e6e6; font-size: 15px; }
.spec-group dl div:last-child { border-bottom: 0; }
.spec-group dt { color: var(--muted); }
.spec-note { margin-top: 16px; color: var(--muted); font-size: 13px; }

.others { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.others a { display: block; height: 100%; border: 1px solid #e6e6e6; background: #fff; transition: border-color .2s; }
.others a:hover { border-color: var(--red); }
.others-img { display: flex; aspect-ratio: 16 / 10; padding: 14px; background: #ececea; }
.others img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .18)); }
.others strong { display: block; padding: 12px 14px 0; font-size: 15px; }
.others a:hover strong { color: var(--red); }
.others small { display: block; padding: 2px 14px 14px; color: var(--muted); font-size: 12px; }

/* Process */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.flow li { position: relative; padding: 32px 18px 0 0; }
.flow li::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: #cfcfcf; }
.flow li:last-child::before { right: auto; width: 16px; }
.flow li::after { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border: 2px solid var(--red); border-radius: 50%; background: var(--gray); }
.flow-no { color: var(--red); font-family: var(--num); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.flow h3 { margin: 6px 0; font-size: 17px; }
.flow p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* Footer */
.ft { color: #a9a9a9; background: var(--dark); }
.ft-main { display: grid; padding: 56px 0 44px; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 40px; }
.ft-brand p { margin-top: 16px; font-size: 14px; }
.ft-col { display: flex; gap: 8px; flex-direction: column; align-items: flex-start; font-size: 14px; }
.ft-col h4 { margin-bottom: 8px; color: #fff; font-size: 15px; font-weight: 600; }
.ft-col a:hover { color: #fff; }
.ft-col span { color: #7d7d7d; }
.ft-bottom { padding: 18px 0; border-top: 1px solid #2f3033; color: #7a7a7a; font-size: 13px; }
.ft-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.ft-bottom a:hover { color: #fff; }

@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .flow li:nth-child(3)::before { right: auto; width: 16px; }
  .others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .hd-btn { margin-left: auto; }
  .hd-phone { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 76px; display: none; height: auto; padding: 4px 20px 16px; gap: 0; flex-direction: column; border-bottom: 1px solid var(--line); background: #fff; }
  .hd.is-open .nav { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid #f0f0f0; }
  .nav a::after { display: none; }
  .hero-inner { min-height: 0; padding: 56px 0 8px; grid-template-columns: 1fr; }
  .hero-visual .kb-art { width: 100%; margin: 0 auto; }
  .ft-main { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
  .sol-hero-inner { padding: 40px 0 48px; grid-template-columns: 1fr; gap: 36px; }
  .spec-group { grid-template-columns: 1fr; }
  .spec-group h3 { padding-bottom: 4px; }
  .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .logo small { display: none; }
  .hd-btn { height: 36px; padding: 0 14px; font-size: 14px; }
  .sec { padding: 60px 0; }
  .sec-title { margin-bottom: 36px; }
  .sec-title h2 { font-size: 26px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 0; padding: 0 12px; }
  .products { grid-template-columns: 1fr; }
  .sol-highlights b { font-size: 24px; }
  .spec-group dl div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .flow { grid-template-columns: 1fr; row-gap: 0; }
  .flow li { padding: 0 0 24px 32px; }
  .flow li::before, .flow li:nth-child(3)::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow li:last-child::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
