:root {
  --bg: #f8f7f3;
  --ink: #171717;
  --muted: rgba(23, 23, 23, 0.68);
  --line: rgba(0, 0, 0, 0.08);
  --yellow: #ffe018;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

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

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.narrow {
  max-width: 680px;
}

.center {
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 243, 0.82);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand img {
  width: 122px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 2.4vw, 34px);
  overflow-x: auto;
  color: rgba(23, 23, 23, 0.8);
  font-size: 14px;
  white-space: nowrap;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 8px 0;
}

.section {
  padding: 80px 0 24px;
}

.spacer {
  height: 1px;
  margin: 0 0 18px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.02;
}

h3 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
}

p {
  color: var(--muted);
}

.intro h1,
.section-title h1 {
  font-size: clamp(42px, 5vw, 64px);
}

.intro h3,
.section-title h3 {
  color: rgba(23, 23, 23, 0.72);
  font-weight: 650;
}

.product-nav {
  padding: 48px 0 58px;
}

.product-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 42px);
}

.product-link {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-visual {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
}

.product-visual img {
  width: auto;
  max-width: 260px;
  max-height: 210px;
  transition: transform 260ms ease;
}

.product-link:hover .product-visual img {
  transform: scale(1.08);
}

.product-link span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.product-link h3 {
  margin: 16px 0 12px;
  font-size: 17px;
}

.product-link p {
  min-height: 120px;
  max-width: 220px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.75;
}

.product-link b {
  color: rgba(23, 23, 23, 0.55);
  font-size: 17px;
  letter-spacing: -0.2em;
}

.section-title {
  padding: 44px 0 30px;
  scroll-margin-top: 80px;
}

.section-title h3 {
  margin-bottom: 16px;
  font-weight: 650;
}

.section-title img {
  width: auto;
  max-height: 75px;
  margin: 0 auto;
}

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

.machine-card {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 36px 56px;
  align-items: center;
  min-height: 360px;
  border-radius: 20px;
  background: #fff;
  padding: 28px clamp(28px, 4vw, 48px);
}

.model-tabs {
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  gap: 4px;
  grid-column: 1;
  border-radius: 999px;
  background: #f5f4f1;
  padding: 4px;
}

.model-tabs span {
  border-radius: 999px;
  padding: 10px 16px;
  color: rgba(23, 23, 23, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.model-tabs .active {
  background: var(--yellow);
  color: var(--ink);
}

.machine-image {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 430px;
}

.machine-image > img {
  width: 100%;
  height: 430px;
  object-fit: contain;
}

.swatches {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.swatches span {
  color: rgba(23, 23, 23, 0.72);
  font-size: 12px;
}

.swatches i {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
}

.swatches .black {
  background: #111;
  box-shadow: 0 0 0 3px var(--yellow);
}

.swatches .silver {
  background: #d8d8d2;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 32px;
  grid-column: 1;
}

.spec-grid div,
.tag-feature-grid div {
  text-align: center;
}

.spec-grid img,
.tag-feature-grid img {
  width: 30px;
  height: 30px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.spec-grid h4,
.tag-feature-grid h4 {
  margin-bottom: 8px;
  font-size: 16px;
}

.spec-grid p,
.tag-feature-grid p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.7;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
  margin-top: 20px;
  border-radius: 20px;
  background: #fff;
  padding: 30px;
}

.feature-card-grid article {
  position: relative;
  overflow: hidden;
  border-radius: 20px 0 0 0;
  padding: 28px 28px 26px;
}

.feature-card-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-top: 8px solid var(--yellow);
  border-left: 8px solid var(--yellow);
  border-radius: 18px 0 0 0;
}

.feature-card-grid article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 140px;
  background: radial-gradient(ellipse at top left, rgba(255, 224, 24, 0.2), transparent 70%);
  pointer-events: none;
}

.feature-card-grid h3 {
  position: relative;
  margin-bottom: 14px;
  font-size: 21px;
}

.feature-card-grid p {
  position: relative;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.timetag-section {
  padding-bottom: 64px;
}

.timetag-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(100deg, #fffbea, #edf7ff);
  padding: clamp(24px, 4vw, 48px);
}

.timetag-copy {
  padding: 12px clamp(0px, 2vw, 28px);
}

.timetag-copy h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.timetag-copy p {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.9;
}

.timetag-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timetag-gallery img {
  width: 100%;
  aspect-ratio: 516 / 365;
  border-radius: 18px;
  object-fit: contain;
}

.timetag-gallery img:first-child {
  grid-column: 1 / -1;
}

.tag-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.tag-feature-grid div {
  border-radius: 18px;
  background: #fff;
  padding: 26px 18px;
}

.wide-asset {
  padding: 44px 0;
  scroll-margin-top: 80px;
}

.wide-asset > img {
  width: 100%;
  height: auto;
}

.wide-asset.framed img {
  width: 100%;
  border-radius: 32px;
}

.service-image {
  padding-top: 12px;
  padding-bottom: 84px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: rgba(23, 23, 23, 0.6);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}

.footer-inner img {
  width: 116px;
}

.footer-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.footer-text p {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .product-nav-grid,
  .machine-card,
  .timetag-panel {
    grid-template-columns: 1fr;
  }

  .machine-image {
    grid-column: auto;
    grid-row: auto;
  }

  .model-tabs,
  .spec-grid {
    grid-column: auto;
  }

  .feature-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand img,
  .footer-inner img {
    width: 104px;
  }

  .section {
    padding-top: 56px;
  }

  h1,
  .intro h1,
  .section-title h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 36px;
  }

  .product-nav-grid,
  .spec-grid,
  .feature-card-grid,
  .tag-feature-grid {
    grid-template-columns: 1fr;
  }

  .product-link {
    min-height: 0;
  }

  .product-link p {
    min-height: 0;
  }

  .machine-card,
  .feature-card-grid,
  .timetag-panel {
    border-radius: 18px;
    padding: 22px;
  }

  .machine-image,
  .machine-image > img {
    min-height: 0;
    height: 320px;
  }

  .timetag-gallery {
    grid-template-columns: 1fr;
  }

  .wide-asset.framed img {
    border-radius: 18px;
  }

  .footer-inner,
  .footer-text {
    justify-content: flex-start;
  }
}
