/* =========================================================
   丝漉 SluviE — 二级页样式（产品 / 品牌）
   依赖 styles.css 中的 tokens
   ========================================================= */

/* ---------- 页头 ---------- */
.pagehead {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.pagehead--dark { background: var(--navy-2); color: var(--white); }
.pagehead--tall { padding-bottom: clamp(80px, 10vw, 140px); }

.pagehead__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark-2) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 90% at 80% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 80% 0%, #000 10%, transparent 70%);
  pointer-events: none;
}
.pagehead__bg::after {
  content: "";
  position: absolute;
  width: 800px; height: 800px;
  top: -50%; right: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 120, 200, 0.28) 0%, transparent 62%);
}

.crumb {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.crumb a { transition: color 0.25s ease; }
.crumb a:hover { color: var(--yellow); }

.pagehead__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}

.pagehead__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--white);
}
.pagehead__title--xl { font-size: clamp(38px, 7vw, 96px); }

.pagehead__lead {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.58);
  max-width: 38ch;
}
.pagehead__lead--wide { margin-top: 32px; max-width: 52ch; }

/* ---------- 产品列表 ---------- */
.plist { padding-top: clamp(40px, 5vw, 64px); }

.plist__bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  margin-bottom: clamp(28px, 3vw, 40px);
  background: var(--white);
  border-bottom: 1px solid var(--line-2);
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.plist__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pcard {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: background 0.4s ease;
  animation: pcardIn 0.6s var(--ease-out) both;
}
.pcard:hover { background: var(--paper); }
.pcard[hidden] { display: none; }
@keyframes pcardIn {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}

.pcard__media {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: clamp(24px, 3vw, 44px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.8s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.06); }

.pcard__flag {
  position: absolute;
  top: 20px; left: 20px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pcard__body {
  padding: 0 clamp(20px, 2.2vw, 30px) clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pcard__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.pcard__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.pcard__en {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--blue);
}
.pcard__spec {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.pcard__desc {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  flex: 1;
}
.pcard__foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pcard__price {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pempty {
  padding: 80px 0;
  text-align: center;
  color: var(--ink-3);
}

/* ---------- CTA 条 ---------- */
.cta-band {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
}
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- 品牌故事 ---------- */
.storylist { border-top: 1px solid var(--line); }
.storyitem {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(36px, 4.5vw, 60px) 0;
  border-bottom: 1px solid var(--line);
}
.storyitem__num {
  font-family: var(--font-ui);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue);
}
.storyitem h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.storyitem p {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 54ch;
  text-wrap: pretty;
}

.slogan-band { text-align: center; padding: clamp(96px, 13vw, 200px) 0; overflow: hidden; }
.slogan-band__text {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 104px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--white);
}
.slogan-band__en {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 28px);
  color: var(--yellow);
}

.splithead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.splithead .sec-lead { margin-top: 0; justify-self: end; max-width: 40ch; }

/* 团队 */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.tm {
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px) clamp(32px, 3.4vw, 44px);
  border-right: 1px solid var(--line);
  transition: background 0.4s ease;
}
.tm:last-child { border-right: none; }
.tm:hover { background: var(--paper); }
.tm__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.tm__idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.tm__role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--blue-soft);
  color: var(--blue);
}
.tm__name {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.tm__desc { font-size: 14px; line-height: 1.78; color: var(--ink-2); }

/* 证书 */
.section--tint { background: var(--paper); }

.certwrap {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(8px, 1vw, 12px);
  overflow-x: auto;
}
.cert-table { width: 100%; min-width: 620px; font-size: 14px; }
.cert-table th {
  text-align: left;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.cert-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  vertical-align: middle;
}
.cert-table tbody tr:last-child td { border-bottom: none; }
.cert-table tr.is-key td { background: rgba(255, 212, 0, 0.08); }
.cert-table tr.is-key b { color: var(--ink); font-size: 16px; font-weight: 700; }
.cert-table td[rowspan] { border-left: 1px solid var(--line-2); }
.cert-table .muted { color: var(--ink-3); }
.cert-table code {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--paper);
  white-space: nowrap;
}
.cert-note {
  padding: 14px 18px 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}

.certgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(24px, 3vw, 36px);
}
.certbox {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}
.certbox__dot {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-soft);
  margin-bottom: 26px;
}
.certbox h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.certbox p { font-size: 13px; line-height: 1.7; color: var(--ink-2); }

.disclaimer {
  margin-top: 28px;
  padding: 16px 22px;
  border-radius: var(--r-md);
  background: rgba(255, 212, 0, 0.12);
  border: 1px solid rgba(232, 194, 0, 0.35);
}
.disclaimer p { font-size: 12.5px; line-height: 1.7; color: #6E5600; text-align: center; }

/* 收尾 */
.endcta { background: var(--white); padding: clamp(64px, 8vw, 120px) 0; }
.endcta__inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.endcta__img { width: min(100%, 300px); justify-self: center; mix-blend-mode: multiply; }
.endcta__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .certgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .pagehead__grid,
  .cta-band,
  .splithead,
  .endcta__inner { grid-template-columns: 1fr; align-items: start; }
  .splithead .sec-lead { justify-self: start; }
  .cta-band__actions { justify-content: flex-start; }

  .team { grid-template-columns: 1fr; }
  .tm { border-right: none; border-bottom: 1px solid var(--line); }
  .tm__top { margin-bottom: 28px; }

  .storyitem { grid-template-columns: 1fr; gap: 14px; }
  .endcta__img { width: min(60%, 220px); }
}

@media (max-width: 640px) {
  .plist__bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; padding: 8px 16px; font-size: 13px; }

  .pgrid { grid-template-columns: 1fr; }
  .certgrid { grid-template-columns: 1fr; }
}
