/* ============================================================
   yali-han.css —— 压力焊与钎焊作业证
   布局原型 L5：三角/阶梯。hero 三角 clip-path 分割，阶梯递进卡片。
   ============================================================ */

/* ---------- Hero：三角分割 ---------- */
.yh-hero{
  position:relative; min-height:90vh; display:flex; align-items:flex-end;
  color:var(--cream-50); overflow:hidden; padding-top:var(--header-h);
}
.yh-hero__media{ position:absolute; inset:0; }
.yh-hero__media img{ width:100%; height:100%; object-fit:cover; }
.yh-hero__tri{
  position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(27,42,33,.95) 0%,rgba(34,57,46,.75) 55%,rgba(27,42,33,.25) 100%);
  clip-path:polygon(0 0,62% 0,0 100%);
}
.yh-hero__content{ position:relative; z-index:2; padding:0 0 clamp(56px,8vw,100px); max-width:720px; }
.yh-hero__content .breadcrumb{ color:rgba(251,248,241,.72); margin-bottom:22px; }
.yh-hero__content .breadcrumb a{ color:var(--cream-100); }
.yh-hero__eyebrow{ font-size:13px; letter-spacing:.34em; color:var(--brown-500); margin-bottom:16px; }
.yh-hero h1{ color:var(--cream-50); margin-bottom:20px; }
.yh-hero__lead{ color:rgba(251,248,241,.82); font-size:17px; max-width:540px; margin-bottom:30px; }
.yh-hero__actions{ display:flex; flex-wrap:wrap; gap:14px; }

/* ---------- 01 定义 ---------- */
.yh-def__grid{ display:grid; grid-template-columns:1.2fr .9fr; gap:clamp(36px,6vw,70px); align-items:start; }
.yh-def__sub{
  font-size:19px; color:var(--brown-700); margin:20px 0 8px;
  padding-left:14px; border-left:3px solid var(--brown-500);
}
.yh-def__copy p{ margin-bottom:12px; }
.yh-def__pic img{ border-radius:var(--radius-m); box-shadow:var(--shadow-md); }
.yh-def__pic figcaption{ margin-top:12px; font-size:13px; color:var(--muted); }

/* ---------- 02 对比表 ---------- */
.yh-diff__table{ border-radius:var(--radius-m); overflow:hidden; box-shadow:var(--shadow-sm); }
.yh-diff__table a{ color:var(--brown-600); border-bottom:1px solid var(--brown-500); }

/* ---------- 03 阶梯卡片 ---------- */
.yh-steps{ max-width:960px; margin:0 auto; display:grid; gap:22px; }
.yh-step{
  background:var(--cream-50); border:1px solid var(--line); border-radius:var(--radius-m);
  padding:26px 30px; display:flex; gap:24px; align-items:flex-start;
  box-shadow:var(--shadow-sm);
}
.yh-step:nth-child(1){ margin-left:0; }
.yh-step:nth-child(2){ margin-left:48px; }
.yh-step:nth-child(3){ margin-left:96px; }
.yh-step:nth-child(4){ margin-left:144px; }
.yh-step__no{
  flex:none; width:52px; height:52px; border-radius:12px;
  background:var(--green-800); color:var(--cream-50);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-serif); font-size:22px;
}
.yh-step h3{ margin-bottom:6px; }
.yh-step p{ font-size:14.5px; }

/* ---------- 04 报考条件 ---------- */
.yh-cond__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.yh-cond{
  border:1px solid var(--line-strong); border-radius:var(--radius-m);
  padding:26px 22px; background:var(--cream-50); position:relative;
}
.yh-cond b{
  display:block; font-family:var(--font-serif); font-size:21px;
  color:var(--green-800); margin-bottom:10px;
}
.yh-cond p{ font-size:13.5px; }
.yh-cond__more{ margin-top:24px; font-size:14.5px; color:var(--muted); }
.yh-cond__more a{ color:var(--brown-600); border-bottom:1px solid var(--brown-500); }

/* ---------- 05 考试内容：两栏 ---------- */
.yh-exam__grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,5vw,60px); }
.yh-exam__col{
  border-top:2px solid var(--green-800); padding-top:24px;
}
.yh-exam__col h3{ margin-bottom:16px; }
.yh-exam__col ul{ display:grid; gap:12px; }
.yh-exam__col li{
  position:relative; padding-left:26px; font-size:14.5px; color:var(--ink-soft);
}
.yh-exam__col li::before{
  content:""; position:absolute; left:0; top:11px;
  width:14px; height:2px; background:var(--brown-500);
}

/* ---------- 05b 备考安排 ---------- */
.yh-study__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.yh-study__item{
  background:var(--cream-50); border:1px solid var(--line);
  border-radius:var(--radius-m); padding:26px 22px;
}
.yh-study__item b{ display:block; font-family:var(--font-serif); font-size:18px; color:var(--green-800); margin-bottom:10px; }
.yh-study__item p{ font-size:13.5px; }

/* ---------- 06 复审（深绿） ---------- */
.yh-renew__row{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-bottom:26px; }
.yh-renew__item{
  text-align:center; border:1px solid rgba(251,248,241,.18); border-radius:var(--radius-m);
  padding:30px 18px;
}
.yh-renew__item b{
  display:block; font-family:var(--font-serif); font-size:38px; color:var(--brown-500);
  line-height:1.2; margin-bottom:10px;
}
.yh-renew__item p{ font-size:13.5px; color:rgba(251,248,241,.68); }
.yh-renew__note{ text-align:center; font-size:14px; color:rgba(251,248,241,.6); }
.yh-renew__link{ color:var(--brown-500); border-bottom:1px solid var(--brown-500); }

/* ---------- 07 FAQ：双列盒子 ---------- */
.yh-faq__grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.yh-faq__item{
  border:1px solid var(--line-strong); border-radius:var(--radius-m);
  background:var(--cream-50); overflow:hidden;
}
.yh-faq__item summary{
  display:flex; align-items:center; gap:12px; padding:20px 22px;
  cursor:pointer; list-style:none; font-family:var(--font-serif);
  font-size:16px; color:var(--green-900);
}
.yh-faq__item summary::-webkit-details-marker{ display:none; }
.yh-faq__plus{
  margin-left:auto; flex:none; position:relative; width:14px; height:14px;
}
.yh-faq__plus::before,.yh-faq__plus::after{
  content:""; position:absolute; background:var(--green-700);
  transition:transform .3s var(--ease);
}
.yh-faq__plus::before{ left:0; top:6px; width:14px; height:2px; }
.yh-faq__plus::after{ left:6px; top:0; width:2px; height:14px; }
.yh-faq__item[open] .yh-faq__plus::after{ transform:scaleY(0); }
.yh-faq__item p{ padding:0 22px 20px; font-size:14px; }

/* ---------- 08 预约 CTA：居中窄框 ---------- */
.yh-book{ background:var(--cream-100); }
.yh-book__inner{
  max-width:640px; margin:0 auto; text-align:center;
  border:1.5px solid var(--line-strong); outline:1px solid var(--line-strong); outline-offset:-12px;
  background:var(--cream-50); border-radius:var(--radius-l);
  padding:clamp(34px,5vw,56px) clamp(24px,4vw,50px);
}
.center-eyebrow{ display:block; margin-bottom:12px; color:var(--brown-600); letter-spacing:.3em; font-size:13px; }
.yh-book__sub{ margin:10px auto 26px; font-size:14.5px; color:var(--muted); }
.yh-book__form{ display:grid; gap:16px; text-align:left; }
.yh-book__row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.yh-book__alt{ margin-top:18px; font-size:14px; color:var(--muted); }
.yh-book__alt a{ color:var(--brown-600); font-family:var(--font-serif); font-size:17px; }

/* ---------- 响应式 ---------- */
@media (max-width:1024px){
  .yh-def__grid{ grid-template-columns:1fr; }
  .yh-step:nth-child(2),.yh-step:nth-child(3),.yh-step:nth-child(4){ margin-left:0; }
  .yh-cond__grid{ grid-template-columns:1fr 1fr; }
  .yh-exam__grid{ grid-template-columns:1fr; }
  .yh-study__grid{ grid-template-columns:1fr; }
  .yh-renew__row{ grid-template-columns:1fr; }
  .yh-faq__grid{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .yh-cond__grid{ grid-template-columns:1fr; }
  .yh-book__row{ grid-template-columns:1fr; }
  .yh-step{ flex-direction:column; gap:12px; }
}
