/* ============================================================
   Deyoujiang — product sub-page (used with v7.css tokens)
   ============================================================ */

/* ---------------- page hero ---------------- */

.p-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 82px;
  background:
    radial-gradient(900px 460px at 88% 6%, rgba(1, 116, 235, .10), transparent 62%),
    radial-gradient(700px 420px at 4% 96%, rgba(14, 90, 135, .07), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.p-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 56px;
  align-items: center;
}

.p-hero h1 {
  font-size: clamp(31px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.021em;
  max-width: 15em;
}

.p-hero .lead {
  margin-top: 20px;
  max-width: 50ch;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--body);
}

.p-hero .hero-acts { margin-top: 32px; }
.p-hero .hero-acts .btn:not(.btn--ghost) { background: var(--brand); color: #fff; }
.p-hero .hero-acts .btn:not(.btn--ghost):hover { background: var(--brand-deep); }

.btn--dark {
  border-color: var(--line-2);
  color: var(--brand);
}
.btn--dark:hover { background: var(--soft-2); border-color: var(--brand-bright); color: var(--brand); }

.p-hero-fig {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fig);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.p-hero-fig img {
  width: 100%;
  max-width: 380px;
  mix-blend-mode: multiply;
}

/* ---------------- facts ---------------- */

.p-facts { padding: 0; }

.p-facts-in {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.p-facts-in > div {
  padding: 24px 24px 22px;
  border-left: 1px solid var(--line);
}
.p-facts-in > div:first-child { border-left: 0; padding-left: 0; }

.p-facts dt {
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.p-facts dd {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #5E7183;
}

/* ---------------- two mounting forms ---------------- */

.mount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mount {
  display: grid;
  grid-template-rows: 300px auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
}

.mount-fig {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: var(--fig);
  border-bottom: 1px solid var(--line);
}
.mount-fig img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.mount-fig--plate { background: var(--fig); }
.mount-fig--plate img { max-height: 100%; }

.mount-body { padding: 24px 26px 28px; }
.mount-body .line-code { min-height: 0; margin-bottom: 6px; }
.mount-body h3 { font-size: 20px; letter-spacing: -0.012em; margin-bottom: 10px; }
.mount-body > p { font-size: 14.5px; line-height: 1.68; color: var(--body); }
.mount-body .checks { margin-top: 18px; gap: 9px; }
.mount-body .checks li { font-size: 13.5px; }

/* ---------------- four functions ---------------- */

.fn { background: var(--soft); }

.fn-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.fn-card {
  padding: 24px 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.fn-no {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand-bright);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.fn-card h3 { font-size: 17px; margin-bottom: 9px; }
.fn-card p { font-size: 14px; line-height: 1.65; color: var(--body); }

/* ---------------- control ---------------- */

.ctl-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 72px;
  align-items: center;
}

.ctl-copy h2 {
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.ctl-copy > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  max-width: 54ch;
}
.ctl-copy > p + p { margin-top: 14px; }

.ctl-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.ctl-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.ctl-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 7px;
  border-left: 2px solid var(--brand-bright);
  border-bottom: 2px solid var(--brand-bright);
  transform: rotate(-45deg);
}

.ctl-fig {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
  align-content: center;
  background: var(--fig);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 26px 24px;
}
.ctl-fig img {
  width: 100%;
  max-width: 252px;
  mix-blend-mode: multiply;
}
.ctl-fig figcaption {
  font-size: 12.5px;
  line-height: 1.6;
  color: #5E7183;
  text-align: center;
  max-width: 34ch;
}
.ctl-fig figcaption a { color: var(--brand-bright); font-weight: 600; }

/* ---------------- model tables ---------------- */

.models { padding-bottom: 96px; }

.tbl-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 34px 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.tbl-title:first-of-type { margin-top: 0; }

.tbl-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.spec {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.spec thead th {
  position: sticky;
  top: 0;
  padding: 12px 10px;
  background: var(--soft-2);
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5E7183;
  white-space: nowrap;
}
.spec tbody th {
  padding: 12px 10px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  white-space: nowrap;
}
.spec tbody td {
  padding: 12px 10px;
  color: var(--body);
  white-space: nowrap;
}
.spec tbody tr + tr th,
.spec tbody tr + tr td { border-top: 1px solid var(--line); }
.spec tbody tr:hover th,
.spec tbody tr:hover td { background: var(--soft); }
.spec thead th:first-child,
.spec tbody th { position: sticky; left: 0; z-index: 1; }
.spec thead th:first-child { z-index: 2; }

.tbl-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #5E7183;
  max-width: 88ch;
}

/* ---------------- where ---------------- */

.where { background: var(--soft); border-top: 1px solid var(--line); }

.where-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
}
.where-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 13px;
  row-gap: 5px;
  align-content: center;
  padding: 20px;
  background: #fff;
  transition: background .18s var(--ease);
}
.where-card:hover { background: var(--brand); }
.where-card:hover b, .where-card:hover span, .where-card:hover i { color: #fff; }
.where-card b {
  grid-row: span 2;
  align-self: start;
  padding-top: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #5E7183;
  font-variant-numeric: tabular-nums;
}
.where-card span { font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.where-card i { font-style: normal; font-size: 12.5px; line-height: 1.4; color: #66798A; }

/* ---------------- responsive ---------------- */

@media (max-width: 1080px) {
  .p-hero-in { gap: 40px; }
  .mount-grid { gap: 20px; }
  .mount { grid-template-rows: 260px auto; }
  .fn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctl-in { gap: 44px; }
}

@media (max-width: 860px) {
  .p-hero { padding: 52px 0 62px; }
  .p-hero-in { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .p-hero-fig { order: 2; }
  .p-hero-fig img { max-width: 300px; }
  .p-facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-facts-in > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .p-facts-in > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mount-grid { grid-template-columns: minmax(0, 1fr); }
  .ctl-in { grid-template-columns: minmax(0, 1fr); }
  .ctl-fig { order: -1; }
  .where-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .p-hero { padding: 40px 0 52px; }
  .p-hero h1 { font-size: clamp(27px, 7.8vw, 34px); }
  .p-hero .lead { font-size: 15.5px; }
  .p-hero .hero-acts .btn { flex: 1 1 auto; padding: 0 16px; font-size: 14.5px; }
  .p-facts-in > div { padding: 18px 14px 16px; }
  .p-facts dt { font-size: 19px; }
  .mount { grid-template-rows: 230px auto; }
  .mount-body { padding: 20px 20px 24px; }
  .fn-grid { grid-template-columns: minmax(0, 1fr); }
  .ctl-list { grid-template-columns: minmax(0, 1fr); }
  .where-grid { grid-template-columns: minmax(0, 1fr); }
  .tbl-title { margin-top: 26px; }
}
