/* 按问题找答案 · 问题页（problem_guide/page.html）与新版样品申请页共用样式（2026-09-30 起正式版） */
.pg-page {
  --pg-red: #c30d23;
  --pg-red-dark: #a30a1d;
  --pg-ink: #1a1d24;
  --pg-text: #1c2430;
  --pg-gray: #5b6675;
  --pg-muted: #7a8594;
  --pg-line: #e6eaf0;
  --pg-bg: #f5f7fa;
  display: block;
  color: var(--pg-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

.pg-page h1,
.pg-page h2,
.pg-page h3,
.pg-page p,
.pg-page ul,
.pg-page ol {
  margin: 0;
  padding: 0;
}

.pg-page ul,
.pg-page ol {
  list-style: none;
}

.pg-page a {
  color: var(--pg-red);
  text-decoration: none;
  text-underline-offset: 4px;
}

.pg-page a:hover {
  text-decoration: underline;
}

.pg-container {
  width: min(100% - 64px, 1216px);
  margin-inline: auto;
}

.pg-eyebrow {
  margin-bottom: 8px;
  color: var(--pg-red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}

.pg-section {
  padding: 80px 0;
}

.pg-section h2 {
  color: var(--pg-ink);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

.pg-section-lead {
  margin-top: 8px !important;
  color: var(--pg-gray);
  font-size: 16px;
  line-height: 1.5;
}

.pg-section-lead b {
  color: var(--pg-ink);
}

.pg-section-lead b.is-alert {
  color: var(--pg-red);
}

/* Buttons */
.pg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.pg-page a.pg-btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .25s ease;
}

.pg-page a.pg-btn:hover {
  text-decoration: none;
}

.pg-page a.pg-btn-primary {
  background: var(--pg-red);
  color: #fff;
}

.pg-page a.pg-btn-primary:hover {
  background: var(--pg-red-dark);
  box-shadow: 0 10px 24px rgba(195, 13, 35, .35);
  transform: translateY(-2px);
}

.pg-page a.pg-btn-ghost {
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
}

.pg-page a.pg-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .12);
}

/* Hero */
.pg-hero {
  position: relative;
  overflow: hidden;
  background: var(--pg-ink);
  color: #fff;
}

.pg-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}

.pg-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 22, 28, .94) 0%, rgba(20, 22, 28, .72) 55%, rgba(20, 22, 28, .35) 100%);
}

.pg-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 400px;
  padding: 48px 0 64px;
}

.pg-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #c2c6cf;
  font-size: 14px;
  line-height: 20px;
}

.pg-page .pg-crumbs a {
  color: #c2c6cf;
}

.pg-crumbs [aria-current] {
  color: #fff;
}

/* 文字在上、按钮在下，所有问题页 / 样品申请页一致（不随标题长短跑到右侧） */
.pg-hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

.pg-hero-copy {
  max-width: 100%;
}

.pg-hero-eyebrow {
  margin-bottom: 16px !important;
  color: #f0a3ac;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: .12em;
}

.pg-hero h1 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  text-wrap: balance;
}

.pg-hero-lead {
  max-width: 640px;
  /* 预留 3 行：说明文字 1~3 行时各页 Banner 高度一致 */
  min-height: 72px;
  color: #d8dbe1;
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}

/* 宽屏标题固定一行（设计稿同款）；英文标题较长，字号略收以放进 1216px 内容区 */
@media (min-width: 1280px) {
  .pg-hero h1 {
    white-space: nowrap;
  }

  html[lang^="en"] .pg-hero h1 {
    font-size: 44px;
  }
}

/* Scenes */
.pg-scenes-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 40px;
}

.pg-scenes h2 {
  margin-bottom: 16px;
}

.pg-not-for {
  color: var(--pg-muted);
  font-size: 14px;
  line-height: 1.5;
}

.pg-scene-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pg-scene {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 150px;
  padding: 24px;
  border-radius: 12px;
  background: var(--pg-bg);
  color: var(--pg-ink);
  transition: background .25s ease, color .25s ease;
}

.pg-scene:hover {
  background: var(--pg-red);
  color: #fff;
}

.pg-scene-mark {
  flex: none;
  color: var(--pg-red);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  transition: color .25s ease;
}

.pg-scene:hover .pg-scene-mark {
  color: #fff;
}

.pg-scene h3 {
  margin-bottom: 8px;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.pg-scene p {
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
  opacity: .78;
}

/* Steps */
.pg-steps {
  background: var(--pg-bg);
}

.pg-steps .pg-section-lead {
  margin-bottom: 48px !important;
}

.pg-step-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.pg-step-list::before {
  position: absolute;
  top: 23px;
  right: 24px;
  left: 24px;
  height: 2px;
  background: #e0c3c7;
  content: "";
}

.pg-step {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pg-step-no {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pg-red);
  box-shadow: 0 0 0 6px var(--pg-bg);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.pg-step-when {
  margin: 32px 0 8px !important;
  color: var(--pg-red);
  font-size: 12px;
  font-weight: 600;
}

.pg-step h3 {
  margin-bottom: 12px;
  color: var(--pg-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.pg-step-desc {
  max-width: 320px;
  min-height: 50px;
  margin-bottom: 24px !important;
  color: var(--pg-gray);
  font-size: 14px;
  line-height: 1.5;
}

.pg-step-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 320px;
}

.pg-step-items li {
  padding: 7px 12px;
  border: 1px solid var(--pg-line);
  border-radius: 4px;
  background: #fff;
  color: var(--pg-text);
  font-size: 14px;
  white-space: nowrap;
}

/* Dimensions */
.pg-dims .pg-section-lead {
  margin-bottom: 32px !important;
}

.pg-dim-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.pg-dim {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  padding: 32px 24px;
  border: 1px solid var(--pg-line);
  border-radius: 12px;
  transition: background .25s ease;
}

.pg-dim:hover {
  background: var(--pg-bg);
}

.pg-dim-bar {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--pg-red);
}

.pg-dim h3 {
  color: var(--pg-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.pg-dim p {
  color: var(--pg-gray);
  font-size: 14px;
  line-height: 1.5;
}

/* Resources */
.pg-resources {
  background: var(--pg-bg);
}

.pg-resources h2 {
  margin-bottom: 32px;
}

.pg-res-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.pg-res-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--pg-line);
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .25s ease;
}

.pg-res-card:hover {
  box-shadow: 0 12px 32px rgba(26, 29, 36, .08);
}

.pg-res-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pg-res-head h3 {
  color: var(--pg-ink);
  font-size: 20px;
  font-weight: 700;
}

.pg-res-head a {
  flex: none;
  font-size: 14px;
  font-weight: 600;
}

.pg-page .pg-res-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 -12px;
  padding: 16px 12px;
  border-top: 1px solid #eef1f5;
  border-radius: 6px;
  color: var(--pg-text);
  transition: background .25s ease;
}

.pg-page .pg-res-list a:hover {
  background: #fbe9eb;
  text-decoration: none;
}

.pg-res-list strong {
  display: block;
  color: var(--pg-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.pg-res-list small {
  display: block;
  margin-top: 2px;
  color: var(--pg-muted);
  font-size: 12px;
  line-height: 1.5;
}

.pg-res-list em {
  color: var(--pg-red);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.pg-res-note {
  margin-top: auto !important;
  padding-top: 12px;
  color: var(--pg-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Final CTA */
.pg-cta-wrap {
  padding: 80px 0;
}

.pg-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(100% - 64px, 1216px);
  margin-inline: auto;
  padding: 40px;
  border-radius: 16px;
  background: var(--pg-ink);
  color: #fff;
  scroll-margin-top: 140px;
}

.pg-cta-copy {
  flex: 1;
  min-width: 280px;
}

.pg-cta h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

.pg-cta-copy p {
  max-width: 560px;
  color: #c2c6cf;
  font-size: 16px;
  line-height: 1.5;
}

.pg-cta-side {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.pg-cta-side .pg-actions {
  justify-content: flex-end;
  gap: 12px;
}

.pg-cta .pg-btn-ghost {
  border-color: rgba(255, 255, 255, .35);
}

.pg-hours {
  color: #8b909c;
  font-size: 12px;
}

#pg-steps {
  scroll-margin-top: 120px;
}

/* Responsive */
@media (max-width: 1180px) {
  .pg-dim-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pg-dim {
    min-height: 0;
  }
}

@media (max-width: 990px) {
  .pg-section,
  .pg-cta-wrap {
    padding: 64px 0;
  }

  .pg-hero h1 {
    font-size: 36px;
    line-height: 44px;
  }

  .pg-hero-lead {
    min-height: 0;
  }

  .pg-scenes-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pg-step-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pg-step-list::before {
    display: none;
  }

  .pg-step-when {
    margin-top: 16px !important;
  }

  .pg-step-desc,
  .pg-step-items {
    max-width: none;
  }

  .pg-res-grid {
    grid-template-columns: 1fr;
  }

  .pg-cta-side {
    flex: 1 1 100%;
    align-items: flex-start;
    min-width: 0;
  }

  .pg-cta-side .pg-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .pg-container,
  .pg-cta {
    width: calc(100% - 32px);
  }

  .pg-section,
  .pg-cta-wrap {
    padding: 48px 0;
  }

  .pg-hero-inner {
    min-height: 0;
    gap: 32px;
    padding: 32px 0 40px;
  }

  .pg-hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .pg-section h2,
  .pg-cta h2 {
    font-size: 24px;
  }

  .pg-page a.pg-btn {
    height: auto;
    min-height: 44px;
    padding: 10px 18px;
    white-space: normal;
  }

  .pg-scene-list,
  .pg-dim-list {
    grid-template-columns: 1fr;
  }

  .pg-scene {
    min-height: 0;
    padding: 20px;
  }

  .pg-step-items li {
    white-space: normal;
  }

  .pg-cta {
    padding: 28px 20px;
  }

  .pg-cta-copy {
    min-width: 0;
  }
}
