/* Guide page — Figma 112:3256 */

/* 外层不裁切，浮卡才能探出图片左下角 */
.guide-hero-media.hero-media {
  position: relative;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding-bottom: 28px;
}

.guide-hero-media__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-alt);
}

.guide-hero-media__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.guide-progress {
  position: absolute;
  left: -48px;
  bottom: -8px;
  width: min(300px, 78%);
  background: #fff;
  padding: 28px 32px;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(27, 28, 25, 0.14);
  z-index: 3;
}

.guide-progress__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}

.guide-progress__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7f7667;
  line-height: 1.3;
}

.guide-progress__pct {
  font-family: var(--font-headline);
  font-style: normal;
  font-weight: 200;
  font-synthesis: none;
  transform: skewX(var(--headline-skew));
  transform-origin: right center;
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  color: #775a19;
  flex-shrink: 0;
}

.guide-progress__bar {
  height: 2px;
  background: #f5f3ee;
  overflow: hidden;
  border-radius: 1px;
}

.guide-progress__bar span {
  display: block;
  height: 100%;
  width: 84%;
  background: linear-gradient(90deg, transparent, #775a19, transparent);
  background-size: 200% 100%;
  animation: guide-silk 3s infinite linear;
}

@keyframes guide-silk {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.guide-progress__note {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: #4e4639;
  line-height: 1.5;
}

.guide-types {
  margin-bottom: 64px;
  width: 100%;
  background: transparent;
}

.guide-types__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.guide-types__title {
  margin: 0;
  font-family: var(--font-headline);
  font-style: normal;
  font-weight: 200;
  font-synthesis: none;
  transform: skewX(var(--headline-skew));
  transform-origin: left center;
  display: inline-block;
  font-size: 30px;
  line-height: 36px;
  color: #1b1c19;
}

.guide-types__rule {
  display: block;
  width: 48px;
  height: 1px;
  background: #775a19;
}

.guide-types__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
  width: 100%;
}

.guide-types__grid.is-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: 274px;
  padding: 40px;
  background: #f5f3ee;
  border-radius: 8px;
  box-sizing: border-box;
}

.guide-type-card__icon {
  width: 60px;
  height: 60px;
  display: block;
  flex-shrink: 0;
  margin-bottom: 20px;
  object-fit: contain;
}

.guide-type-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 400;
  line-height: 36px;
  color: #1b1c19;
}

.guide-type-card p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.35px;
  color: #4e4639;
}

/* 规范说明块：纸质 / 电子 / 文字 — Figma 112:3256 */
.mb-80 {
  margin-bottom: 80px;
}

.guide-block__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.guide-block__titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

.guide-block__title {
  margin: 0;
  font-family: var(--font-headline);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  transform: skewX(var(--headline-skew));
  transform-origin: left center;
  display: inline-block;
  max-width: 100%;
  font-size: 30px;
  line-height: 36px;
  color: #1b1c19;
}

.guide-block__sub {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #7f7667;
}

.guide-block__rule {
  display: block;
  width: 48px;
  height: 1px;
  background: #775a19;
}

.guide-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 689fr) minmax(0, 716fr);
  gap: 32px;
  align-items: start;
}

.guide-block__body {
  padding: 60px 0;
}

.guide-block__body--compact {
  padding: 60px 0 30px;
}

.guide-spec + .guide-spec {
  margin-top: 30px;
}

.guide-spec h4 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
  color: #775a19;
}

.guide-spec__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-num;
}

.guide-spec__list li {
  position: relative;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0.35px;
  color: #4e4639;
  counter-increment: guide-num;
}

.guide-spec__list li::before {
  content: counter(guide-num) ".";
  margin-right: 0;
}

.guide-spec__example {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0.35px;
  color: #4e4639;
}

.guide-spec--warn h4 {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 36px;
  color: #775a19;
}

.guide-spec--warn h4 img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-right: 0;
}

.guide-spec--warn p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0.35px;
  color: #775a19;
}

.guide-block__media {
  border-radius: 8px;
  overflow: hidden;
  background: #f5f3ee;
}

.guide-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-block__media--tall {
  aspect-ratio: 716 / 666;
  min-height: 0;
}

.guide-block__media--tall img {
  min-height: 0;
  aspect-ratio: 716 / 666;
}

.guide-block__media--short {
  aspect-ratio: 717 / 360;
  min-height: 0;
  max-height: 360px;
}

.guide-block__media--short img {
  min-height: 0;
  aspect-ratio: 717 / 360;
  max-height: 360px;
}

.guide-faq {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: start;
}

.guide-faq__title {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  padding-top: 8px;
}

.guide-faq__heading {
  margin: 0;
  font-family: var(--font-headline);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  transform: skewX(var(--headline-skew));
  transform-origin: left center;
  display: inline-block;
  font-size: 36px;
  line-height: 40px;
  color: #1b1c19;
}

.guide-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 1059px;
  margin-left: auto;
}

.guide-faq .faq-item {
  border: none;
  border-radius: 8px;
  background: #f5f3ee;
  overflow: hidden;
}

.guide-faq .faq-item__q {
  padding: 18px 40px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 36px;
  color: #1b1c19;
  gap: 16px;
}

.guide-faq .faq-item__q::after {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("../assets/icons/icon-faq-chevron.svg") center / contain no-repeat;
  transform: scaleY(-1);
  transition: transform 0.25s ease;
}

.guide-faq .faq-item.is-open .faq-item__q::after {
  content: "";
  transform: scaleY(1);
}

.guide-faq .faq-item__a {
  padding: 0 40px 30px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.35px;
  color: #4e4639;
}

.guide-faq .faq-item.is-open .faq-item__q {
  padding-bottom: 8px;
}

.guide-steps .steps {
  position: relative;
}

.guide-steps .step-item__num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(119, 90, 25, 0.35);
  background: #fff;
  color: var(--color-primary);
  font-size: 22px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 五步大圆流程 — Figma 125:4404 */
.guide-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  padding: 60px 0 24px;
  overflow-x: auto;
}

.guide-flow__step {
  flex: 0 0 auto;
  margin-right: -10px;
}

.guide-flow__step:last-child {
  margin-right: 0;
}

.guide-flow__circle {
  width: clamp(200px, 16vw, 260px);
  height: clamp(200px, 16vw, 260px);
  border-radius: 50%;
  border: 1px solid rgba(119, 90, 25, 0.35);
  background: rgba(251, 249, 244, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 28px 28px;
  box-sizing: border-box;
}

.guide-flow__circle h3 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: #1b1c19;
}

.guide-flow__circle p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: #4e4639;
  max-width: 201px;
}

.guide-flow__arrow {
  display: none;
}

/* Hero 区域给左下浮卡留出空间 */
.page > .hero-split {
  padding-bottom: 48px;
  overflow: visible;
}

@media (max-width: 1000px) {
  .guide-hero-media.hero-media {
    padding-bottom: 0;
  }

  .guide-progress {
    position: relative;
    left: 0;
    bottom: 0;
    margin-top: 24px;
    width: 100%;
  }

  .guide-types__grid,
  .guide-types__grid.is-cols-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .guide-type-card {
    min-height: 0;
  }

  .guide-type-card h4 {
    font-size: 24px;
    line-height: 1.3;
  }

  .guide-block__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guide-block__body,
  .guide-block__body--compact {
    padding: 8px 0 0;
  }

  .guide-block__media--tall,
  .guide-block__media--tall img,
  .guide-block__media--short,
  .guide-block__media--short img {
    aspect-ratio: 4 / 3;
    max-height: none;
    min-height: 240px;
  }

  .guide-block__title {
    font-size: 24px;
    line-height: 1.35;
  }

  .guide-flow {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 0 8px;
  }

  .guide-flow__step {
    margin-right: 0;
  }

  .guide-flow__circle {
    width: 240px;
    height: 240px;
  }

  .guide-faq {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guide-faq__title {
    position: static;
  }

  .guide-faq__list {
    margin-left: 0;
    max-width: none;
  }

  .guide-faq .faq-item__q {
    padding: 16px 20px;
    font-size: 16px;
    line-height: 1.45;
  }

  .guide-faq .faq-item__a {
    padding: 0 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-progress__bar span {
    animation: none;
    background: #775a19;
  }
}
