/* ==========================================================================
   Photist「使用指南」页面体系 · 独立样式
   --------------------------------------------------------------------------
   - 只作用于 .guide-landing（一级入口）/ .guide-subpage（二级页）
   - 不修改、不覆盖全局 style.css 的任何既有规则
   - 调性：浅米 / 暖白 + 少量暖胡桃木色，鹅黄 #FFE58F 仅小面积强调
   - 图片一律 width:100% + height:auto，保持真实比例，不裁切、不拉伸
   ========================================================================== */

/* ============================ 一级页面：三个入口 ============================ */
.guide-landing {
  background: #F7F2E9;
  padding: 92px 0 96px;
}
.guide-landing .gl-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.guide-landing .gl-head .eyebrow { justify-content: center; margin-bottom: 16px; }
.guide-landing .gl-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.3;
  letter-spacing: -.03em;
  color: #241E18;
}
.guide-landing .gl-head p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: #8A7C6E;
}

.gl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.gl-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 34px 32px 30px;
  background: #FFFDFA;
  border: 1px solid #EBE1D4;
  border-radius: 22px;
  box-shadow: 0 2px 4px rgba(74, 52, 32, .03), 0 16px 36px -28px rgba(74, 52, 32, .28);
  text-decoration: none;
  color: inherit;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s;
}
.gl-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: #E0D2BE; }
.gl-card:active { transform: translateY(-1px); }

.gl-card-no {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  color: #B3A18C;
}
.gl-card-no::after {
  content: "";
  display: block;
  width: 30px; height: 2px;
  margin-top: 14px;
  border-radius: 2px;
  background: #FFE58F;
}
.gl-card h3 {
  margin: 26px 0 0;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: #241E18;
}
.gl-card p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: #8A7C6E;
}
.gl-card-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  font-size: 14px;
  font-weight: 600;
  color: #705744;
}
.gl-card-go svg { width: 16px; height: 16px; transition: transform .25s ease; }
.gl-card:hover .gl-card-go svg { transform: translateX(3px); }

/* ============================ 二级页面：通用骨架 ============================ */
.guide-subpage { background: var(--bg); }
.gd-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.gd-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8A7866;
  font-size: 13.5px;
  text-decoration: none;
  transition: color .2s;
}
.gd-back:hover { color: #705744; }

.gd-head { padding: 46px 0 12px; }
.gd-head .gd-back { margin-bottom: 40px; }
.gd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #A08B72;
  text-transform: uppercase;
}
.gd-eyebrow::before {
  content: "";
  width: 20px; height: 3px;
  border-radius: 2px;
  background: #FFE58F;
}
.gd-head h1 {
  margin: 18px 0 0;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.3;
  letter-spacing: -.035em;
  color: #241E18;
}
.gd-head p {
  margin: 18px 0 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.9;
  color: #6B6055;
}

/* ====================== 二级页面：首次使用 · 四个步骤 ====================== */
.gs-steps { padding: 28px 0 120px; }
.gs-step {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: 68px 0;
}
.gs-step:first-child { padding-top: 26px; }
.gs-step:last-child { padding-bottom: 0; }

.gs-copy { max-width: 430px; }
.gs-no {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .16em;
  color: #B3A18C;
}
.gs-no::after {
  content: "";
  display: block;
  width: 34px; height: 2px;
  margin-top: 14px;
  border-radius: 2px;
  background: #FFE58F;
}
.gs-copy h2 {
  margin: 26px 0 0;
  font-size: clamp(24px, 2.4vw, 33px);
  line-height: 1.35;
  letter-spacing: -.025em;
  color: #241E18;
}
.gs-copy p {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.95;
  color: #6B6055;
}

/* 图片区：统一卡片风格，真实比例，不裁切不拉伸 */
.gs-media { min-width: 0; }
.gs-shot {
  margin: 0;
  padding: 16px;
  background: #F5EFE5;
  border-radius: 20px;
}
.gs-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.gs-shot figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: #9A8C7D;
  text-align: center;
}
.gs-shot--single { max-width: 380px; }
.gs-shots { display: grid; gap: 16px; align-items: start; }
.gs-shots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.gs-shots--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* STEP 01 二维码：直接复用官网原有 .qr-card / .qr-img / .qr-caption */
.gs-media--qr { display: flex; justify-content: center; }
.gs-media--qr .qr-card { width: min(300px, 100%); }

/* STEP 04：上文下图，三张截图按真实操作顺序横排 */
.gs-step--stack { display: block; }
.gs-step--stack .gs-copy { max-width: 720px; margin-bottom: 40px; }
.gs-step--stack .gs-shots--3 { max-width: 100%; }
.gs-step--stack .gs-shot { padding: 14px; }

/* ====================== 二级页面：使用教程视频（三个空位） ====================== */
.gv-body { padding: 46px 0 130px; }
.gv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.gv-slot {
  aspect-ratio: 16 / 10;
  background: #F1E9DC;
  border: 1px solid #EBE1D4;
  border-radius: 20px;
}
.gv-note {
  margin: 30px 0 0;
  font-size: 14px;
  color: #9A8C7D;
  text-align: center;
}

/* ================================ 响应式 ================================ */
@media (max-width: 900px) {
  .guide-landing { padding: 76px 0 80px; }
  .guide-landing .gl-head { margin-bottom: 40px; }
  .gl-grid { grid-template-columns: 1fr; gap: 16px; max-width: 620px; }
  .gl-card { min-height: 0; padding: 28px 26px; }
  .gl-card h3 { margin-top: 20px; font-size: 20px; }
  .gl-card-go { padding-top: 20px; }

  .gs-step { grid-template-columns: 1fr; gap: 28px; padding: 52px 0; }
  .gs-copy { max-width: 640px; }
  .gs-media { max-width: 640px; }
  .gs-shot--single { max-width: 340px; }
  .gs-shots--2 { max-width: 520px; }
  .gs-step--stack .gs-copy { margin-bottom: 30px; }
  .gs-steps { padding-bottom: 88px; }

  .gv-grid { gap: 16px; }
  .gv-body { padding-bottom: 96px; }
}

@media (max-width: 600px) {
  .guide-landing { padding: 60px 0 66px; }
  .guide-landing .gl-head h2 { font-size: 28px; }
  .guide-landing .gl-head p { font-size: 15px; }

  .gd-wrap { padding-inline: 18px; }
  .gd-head { padding: 32px 0 8px; }
  .gd-head .gd-back { margin-bottom: 28px; }
  .gd-head h1 { font-size: 30px; }
  .gd-head p { font-size: 15px; line-height: 1.85; }

  .gs-steps { padding: 20px 0 72px; }
  .gs-step { gap: 24px; padding: 42px 0; }
  .gs-copy h2 { font-size: 23px; }
  .gs-copy p { font-size: 15px; line-height: 1.9; }
  .gs-shot { padding: 12px; border-radius: 16px; }
  .gs-shot img { border-radius: 9px; }
  .gs-shot figcaption { font-size: 12px; margin-top: 10px; }
  .gs-shot--single { max-width: 280px; margin-inline: auto; }
  .gs-shots--2 { gap: 10px; max-width: 420px; }
  .gs-shots--3 { grid-template-columns: 1fr; gap: 18px; max-width: 300px; margin-inline: auto; }
  .gs-step--stack .gs-shots--3 { max-width: 300px; margin-inline: auto; }
  .gs-media--qr .qr-card { width: min(280px, 100%); padding: 24px 24px 20px; }

  .gv-body { padding: 32px 0 76px; }
  .gv-grid { grid-template-columns: 1fr; gap: 16px; max-width: 420px; }
  .gv-slot { aspect-ratio: 16 / 9; border-radius: 16px; }
}
