/* ============================================================
   Fenzela · 全站公共样式
   所有页面共用；页面专属样式写在各自 <style> 里
   最后更新：2026-09-27
   ============================================================ */
/* ===== 01 设计变量 ===== */
:root{
  --paper:#FBF7F1;
  --paper2:#F4ECE1;
  --card:#FFFDF8;
  --ink:#26201A;
  --ink2:#6E6154;
  --ink3:#9C8E7E;
  --gold:#B0865A;
  --gold2:#8E6846;
  --gold-soft:#D8BC97;
  --line:#E7DBC9;
  --dark:#1F1914;
  --dark2:#2A231C;
  --serif:'Noto Serif SC','Songti SC','STSong','SimSun',serif;
  --sans:'Noto Sans SC',-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
}
/* ===== 02 基础重置 ===== */
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  line-height:1.8;
  font-size:15px;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;height:auto;} /* ← 修改：补 height:auto，防止移动端变形 */
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px;}
body.menu-open{overflow:hidden;} /* ← 新增：移动菜单打开时锁定背景滚动 */
/* ===== 03 通用容器与区块 ===== */
.wrap{max-width:1220px;margin:0 auto;padding:0 36px;}
.sec{padding:116px 0;}
.sec-head{max-width:720px;margin:0 auto 60px;text-align:center;}
.sec-head h2{
  font-family:var(--serif);
  font-size:clamp(30px,4vw,42px);
  font-weight:900;
  letter-spacing:2px;
  line-height:1.45;
  margin-top:18px;
  color:var(--ink);
}
.sec-head h2 em{font-style:normal;color:var(--gold);}
.sec-head p{margin-top:16px;color:var(--ink2);font-size:15.5px;}
.sec-num{
  font-family:var(--serif);
  font-size:12px;
  letter-spacing:.3em;
  color:var(--ink3);
  margin-top:14px;
}
.kicker{
  font-size:11px;
  letter-spacing:.38em;
  color:var(--gold);
  font-weight:700;
  text-transform:uppercase;
}
.bg-cream{background:linear-gradient(180deg,var(--paper2) 0%,var(--paper) 100%);}
.bg-dark{background:var(--dark);color:#EDE4D6;}
.page-hero{padding:140px 0 64px;}
.page-hero h1{
  font-family:var(--serif);
  font-size:clamp(34px,4.6vw,52px);
  font-weight:900;
  line-height:1.3;
  letter-spacing:2px;
  color:var(--ink);
  margin-top:18px;
}
.page-hero p{margin-top:20px;color:var(--ink2);font-size:16px;max-width:620px;line-height:1.9;}
/* ===== 04 按钮体系 ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:999px;
  padding:14px 34px;
  font-size:14.5px;
  font-weight:700;
  letter-spacing:.06em;
  transition:all .25s;
  white-space:nowrap;
}
.btn svg{width:16px;height:16px;stroke:currentColor;}
.btn-gold{background:var(--gold);color:#FFFDF8;}
.btn-gold:hover{background:var(--gold2);transform:translateY(-2px);box-shadow:0 14px 28px -14px rgba(176,134,90,.55);}
.btn-ghost{border:1.5px solid var(--ink);color:var(--ink);background:transparent;}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold);transform:translateY(-2px);}
.btn-light{border:1.5px solid rgba(255,255,255,.35);color:#F4EADB;background:transparent;}
.btn-light:hover{border-color:var(--gold-soft);color:var(--gold-soft);}
.btn-sm{padding:10px 22px;font-size:13px;}
.btn-block{width:100%;}
/* ===== 05 导航栏 ===== */
header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  background:rgba(251,247,241,.92);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(231,219,201,.85);
  transition:box-shadow .3s;
}
header.scrolled{box-shadow:0 10px 30px -20px rgba(38,32,26,.25);}
.nav-inner{
  max-width:1220px;
  margin:0 auto;
  padding:0 36px;
  height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.logo{display:flex;align-items:center;}
.logo img{height:28px;width:auto;display:block;}
.nav-links{display:flex;align-items:center;gap:30px;}
.nav-links a{font-size:14px;font-weight:500;color:var(--ink2);transition:color .2s;}
.nav-links a:hover{color:var(--gold);}
.nav-links a.active{color:var(--ink);font-weight:700;}
.nav-right{display:flex;align-items:center;gap:20px;}
.lang{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink2);}
.lang a{font-weight:500;color:var(--ink3);transition:color .2s;}
.lang a.on{color:var(--ink);font-weight:700;}
.lang .dot{width:1px;height:12px;background:var(--line);}
.nav-cta{
  background:var(--gold);
  color:#FFFDF8;
  border-radius:999px;
  padding:10px 24px;
  font-size:13.5px;
  font-weight:700;
  transition:background .25s,transform .25s;
}
.nav-cta:hover{background:var(--gold2);transform:translateY(-1px);}
.burger{display:none;flex-direction:column;gap:5px;padding:8px;}
.burger span{width:22px;height:2px;background:var(--ink);border-radius:2px;}
.mobile-menu{
  position:fixed;
  top:74px;left:0;right:0;
  z-index:99;
  background:var(--paper);
  border-bottom:1px solid var(--line);
  padding:10px 28px 20px;
  display:none;
  flex-direction:column;
  box-shadow:0 20px 40px -24px rgba(38,32,26,.3);
}
.mobile-menu.open{display:flex;}
.mobile-menu a{padding:12px 0;font-size:15px;color:var(--ink);border-bottom:1px solid var(--line);}
.mobile-menu a:last-child{border-bottom:none;}
/* ===== 06 通用卡片（产品 / 发型） ===== */
.pcard{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  transition:transform .3s,box-shadow .3s;
}
.pcard:hover{transform:translateY(-5px);box-shadow:0 24px 48px -28px rgba(142,104,70,.45);}
.pcard .pimg{height:320px;overflow:hidden;position:relative;}
.pcard .pimg img{width:100%;height:100%;object-fit:cover;object-position:center 16%;transition:transform .6s;}
.pcard:hover .pimg img{transform:scale(1.05);}
.ptag{
  position:absolute;
  top:14px;left:14px;
  background:rgba(251,247,241,.92);
  border-radius:999px;
  padding:4px 12px;
  font-size:11.5px;
  font-weight:700;
  color:var(--gold2);
}
.pinfo{padding:20px 22px 24px;}
.pinfo h3{font-family:var(--serif);font-size:20px;font-weight:900;color:var(--ink);}
.pinfo>p{font-size:13px;color:var(--ink2);margin:4px 0 10px;}
.pprice{font-size:20px;font-weight:900;color:var(--gold2);}
.pprice small{font-size:12px;font-weight:400;color:var(--ink2);}
.pbtns{display:flex;gap:8px;margin-top:14px;}
/* ===== 08 通用 FAQ ===== */
.faq{max-width:760px;margin:0 auto;}
.faq-item{border-bottom:1px solid var(--line);padding:24px 0;}
.faq-item h4{font-weight:700;font-size:16px;color:var(--ink);}
.faq-item p{margin-top:8px;color:var(--ink2);font-size:14.5px;line-height:1.8;}
/* ===== 09 通用 CTA Band ===== */
.cta-band{
  background:radial-gradient(ellipse at 50% 120%,rgba(176,134,90,.28) 0%,transparent 55%),linear-gradient(180deg,var(--dark) 0%,#17120D 100%);
  text-align:center;
  padding:80px 0;
  color:#F4EADB;
}
.cta-band h2{
  font-family:var(--serif);
  font-size:clamp(24px,3.5vw,38px);
  font-weight:900;
  margin-bottom:16px;
  color:#F4EADB;
  text-shadow:0 2px 10px rgba(0,0,0,.3);
}
.cta-band p{color:#C9BCA9;margin-bottom:32px;}
.cta-band .sig{color:#8F8171;}
.cta-band .cta-actions,
.cta-band .btns{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}
/* ===== 10 Footer ===== */
footer{background:#17120D;color:#C9BCAA;padding:70px 0 36px;}
footer a{color:#C9BCAA;transition:color .2s;}
footer a:hover{color:#F4EADB;}
.foot-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:44px;
  padding-bottom:52px;
  border-bottom:1px solid rgba(201,188,170,.14);
}
.foot-brand .logo{margin-bottom:14px;}
.foot-brand .logo img{filter:brightness(0) invert(1);}
.foot-brand p{font-size:13px;line-height:2;color:#9C8F7E;max-width:300px;}
.foot-col h4{font-size:12.5px;letter-spacing:.2em;color:#F4EADB;font-weight:700;margin-bottom:18px;}
.foot-col li{margin-bottom:11px;font-size:13.5px;}
.foot-bottom{
  margin-top:32px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  font-size:12px;
  color:#8F8171;
}
.foot-bottom .legal a{margin-left:18px;}
/* ===== 11 动效 ===== */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease;}
.reveal.visible{opacity:1;transform:none;}
/* ===== 12 响应式（公共断点） ===== */
@media(max-width:1024px){
  .foot-grid{grid-template-columns:1fr 1fr;}
  .pcard .pimg{height:280px;}
}
@media(max-width:768px){
  .nav-links{display:none;}
  .lang{display:none;}
  .nav-cta{display:none;}
  .burger{display:flex;}
  .page-hero{padding:110px 0 48px;}
  .foot-grid{grid-template-columns:1fr;}
}
@media(max-width:520px){
  .wrap{padding:0 22px;}
  .nav-inner{padding:0 22px;} /* ← 新增：与 .wrap 对齐 */
  .mobile-menu{padding:10px 22px 20px;} /* ← 新增 */
  .sec{padding:84px 0;}
  .pcard .pimg{height:260px;} /* ← 修改：220 → 260，展示假发轮廓更完整 */
  .pinfo{padding:14px 14px 18px;}
  .pinfo h3{font-size:17px;}
  .pbtns{flex-direction:column;}
  .btn{width:100%;justify-content:center;}
  .btn-sm{width:auto;} /* ← 新增：小按钮不全宽，避免 AI 试戴页动作区被撑满 */
  .pcard .pimg{height:300px;}
  .pbtns{flex-direction:row;}
  .pbtns .btn{flex:1;justify-content:center;padding:10px 12px;font-size:12.5px;}
  .sec{padding:64px 0;}
  .faq-item{padding:18px 0;}
  .cta-band{padding:56px 0;}
  
  /* 补丁1：首屏副文案缩小 + 汉堡菜单触控区 44px */
  .hero .sub{font-size:15px;line-height:1.7;}
  .burger{padding:11px;margin-right:-4px;box-sizing:content-box;}
  .mobile-menu a{padding:16px 0;}
  
  /* 补丁2（公共）：卡片标签防贴圆角 + 按钮触控高度 */
  .ptag{top:16px;left:16px;padding:5px 14px;}
  .pbtns .btn{min-height:44px;}
  
  /* 补丁3（公共）：页脚极窄屏排版 */
  .foot-bottom{font-size:11px;line-height:1.8;}
  .foot-bottom .legal{display:flex;flex-wrap:wrap;gap:8px 16px;}
  .foot-bottom .legal a{margin-left:0;margin-right:0;}
  
  /* 补丁2：页脚间距收紧 + iPhone 底部安全区 */
  .foot-grid{grid-template-columns:1fr;gap:28px;padding-bottom:36px;}
  .foot-brand p{max-width:100%;}
  .foot-col h4{margin-bottom:12px;}
  footer{padding:56px 0 calc(28px + env(safe-area-inset-bottom));}
  
  /* ===== 页脚 Footer 适中紧凑版 ===== */
  footer{padding:36px 0 calc(20px + env(safe-area-inset-bottom));}
  
  /* 两列布局，留出合理的行间距 */
  .foot-grid{grid-template-columns:1fr 1fr;gap:24px 16px;padding-bottom:20px;}
  
  /* 品牌区恢复整行，重新展示描述 */
  .foot-brand{grid-column:1 / -1;margin-bottom:4px;}
  .foot-brand .logo{margin-bottom:10px;}
  .foot-brand .logo img{height:22px;}
  .foot-brand p{display:block;font-size:12px;line-height:1.7;margin-top:6px;color:#9C8F7E;}
  
  /* 四个列保持一致的垂直排列，互相对齐 */
  .foot-col h4{font-size:12px;letter-spacing:0.08em;margin-bottom:12px;}
  .foot-col li{margin-bottom:8px;}
  .foot-col a{font-size:12.5px;line-height:1.5;}
  
  /* 取消“联系”列的特殊横向处理，让它回归常规列 */
  .foot-col:nth-child(4){grid-column:auto;display:block;}
  .foot-col:nth-child(4) h4{margin-bottom:12px;}
  .foot-col:nth-child(4) ul{display:block;}
  .foot-col:nth-child(4) li{margin-bottom:8px;}
  
  /* 底部版权区域 */
  .foot-bottom{margin-top:20px;padding-top:16px;flex-direction:column;align-items:flex-start;gap:8px;font-size:11px;line-height:1.6;}
  .foot-bottom .legal{display:flex;flex-wrap:wrap;gap:8px 16px;}
  .foot-bottom .legal a{margin-left:0;margin-right:0;}
}

/* ===== 无障碍与打印 ===== */
.skip-link{position:absolute;left:-9999px;top:0;z-index:200;background:var(--ink);color:#F4EADB;padding:10px 20px;border-radius:0 0 12px 0;font-size:14px;text-decoration:none;}
.skip-link:focus{left:0;outline:3px solid var(--gold-soft);}
@media print{
  header,.mobile-menu,.nav-cta,.nav-right,.cta-band,.hero-scroll-hint,.sec-num,footer{display:none !important;}
  body{background:#fff !important;color:#000 !important;}
  .sec{padding:24px 0 !important;}
  .hero{min-height:auto !important;}
}
