/* ============================================================
   统一首屏（hero）
   A：品牌页整幅照片首屏 .wf-hero —— 由 build.py 根据 heroes.json 生成
   B：目录页分栏首屏 —— 只做按钮颜色统一，结构沿用原样式
   ============================================================ */
:root{
  --wf-hero-blue:oklch(.508 .177 258);
  --wf-hero-blue-dark:oklch(.44 .17 258);
  --wf-hero-ink:#0b1a2e;
}

/* ---------- A：整幅照片首屏 ---------- */
.wf-hero{position:relative;display:grid;align-items:center;margin:0;padding:0;border:0;min-height:clamp(560px,74vh,740px);
  background:var(--wf-hero-ink);color:#fff;overflow:hidden;isolation:isolate}
.wf-hero__media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
/* 照片取景位置：heroes.json 的 position 填 center / left / right / high / low */
.wf-hero__media--left{object-position:30% center}
.wf-hero__media--right{object-position:70% center}
.wf-hero__media--high{object-position:center 35%}
.wf-hero__media--low{object-position:center 55%}
.wf-hero__shade{position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(90deg,rgba(8,20,38,.88) 0%,rgba(8,20,38,.74) 30%,rgba(8,20,38,.34) 58%,rgba(8,20,38,.06) 82%),
    linear-gradient(0deg,rgba(8,20,38,.35) 0%,rgba(8,20,38,0) 30%)}
/* 背景细节多的照片（如 ODM 电脑屏幕）：heroes.json 里写 "shade": "strong" */
.wf-hero--strong .wf-hero__shade{background:
    linear-gradient(90deg,rgba(8,20,38,.94) 0%,rgba(8,20,38,.88) 38%,rgba(8,20,38,.55) 60%,rgba(8,20,38,.12) 84%),
    linear-gradient(0deg,rgba(8,20,38,.35) 0%,rgba(8,20,38,0) 30%)}
.wf-hero__inner{padding-block:96px}
.wf-hero__copy{max-width:860px}
.wf-hero .wf-hero__eyebrow{margin:0 0 18px;font:600 12px/1.4 Inter,system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.86)}
.wf-hero .wf-hero__title{margin:0 0 20px;max-width:none;font:800 clamp(40px,4.2vw,60px)/1.06 Montserrat,system-ui,sans-serif;letter-spacing:-.025em;color:#fff;text-wrap:balance}
.wf-hero .wf-hero__lead{margin:0 0 22px;max-width:56ch;font:400 18px/1.6 Inter,system-ui,sans-serif;color:rgba(255,255,255,.9)}
.wf-hero .wf-hero__meta{display:flex;flex-wrap:wrap;gap:8px 24px;margin:0 0 32px;padding:0;list-style:none;font:500 14px/1.4 Inter,system-ui,sans-serif;color:rgba(255,255,255,.82)}
.wf-hero .wf-hero__meta li{display:inline-flex;align-items:center;gap:8px;margin:0;padding:0;font:inherit;color:inherit}
.wf-hero .wf-hero__meta li::before{content:none}
.wf-hero__meta svg{width:16px;height:16px;flex:none;opacity:.9}
.wf-hero__actions{display:flex;flex-wrap:wrap;gap:14px}
.wf-btn{display:inline-flex;align-items:center;gap:12px;min-height:50px;padding:0 24px;border-radius:4px;
  font:600 15px/1 Inter,system-ui,sans-serif;text-decoration:none;white-space:nowrap;border:1px solid transparent;
  transition:background-color .15s,border-color .15s}
.wf-btn span{font-size:16px}
.wf-btn--primary{background:var(--wf-hero-blue);border-color:var(--wf-hero-blue);color:#fff}
.wf-btn--primary:hover{background:var(--wf-hero-blue-dark);border-color:var(--wf-hero-blue-dark)}
.wf-btn--ghost{background:transparent;border-color:rgba(255,255,255,.8);color:#fff}
.wf-btn--ghost:hover{background:rgba(255,255,255,.12)}
.wf-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* 手机：照片在上，深蓝文字区在下 */
@media (max-width:760px){
  .wf-hero{display:block;min-height:0}
  .wf-hero__media{position:static;display:block;height:auto;aspect-ratio:16/10}
  .wf-hero__shade{display:none}
  .wf-hero__inner{padding-block:32px 40px}
  .wf-hero .wf-hero__title{font-size:clamp(32px,9vw,40px)}
  .wf-hero .wf-hero__lead{font-size:16px}
  .wf-hero .wf-hero__meta{flex-direction:column;gap:6px;margin-bottom:24px}
  .wf-hero__actions{flex-direction:column;align-items:stretch}
  .wf-btn{justify-content:center}
}

/* ---------- B：目录页按钮统一成品牌蓝 ---------- */
.page-catalog .button.primary{background-color:var(--wf-hero-blue);border-color:var(--wf-hero-blue);color:#fff}
.page-catalog .button.primary:hover{background-color:var(--wf-hero-blue-dark);border-color:var(--wf-hero-blue-dark)}

/* 只给读屏软件和搜索引擎看的标题（保持标题层级 h1 → h2 → h3） */
.wf-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* 任务 13：眉标改成 <h1>、大标题改成 <p> 之后，保持原来的外观。
   typography.css 用 #main h1 统一标题样式（带 ID，优先级高），这里同样以 #main 开头。 */
#main .wf-hero .wf-hero__eyebrow{margin:0 0 18px;font:600 12px/1.4 Inter,system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;text-wrap:wrap;overflow-wrap:normal;color:rgba(255,255,255,.86)}
#main .wf-hero .wf-hero__title{margin:0 0 20px;max-width:none;font-family:var(--display);font-weight:800;font-style:normal;font-size:var(--type-title);line-height:1.13;letter-spacing:-.04em;text-wrap:balance;overflow-wrap:break-word;color:#fff}
