/* ==========================================================
   瑞安口腔官网 · 首页 v6 样式（2026-11-11）
   版式参照惠美官网长页骨架：深色 Hero → 机构概况 → 卡片网格
   → 医生方向卡 → 院区 → 指南 → FAQ → 深色 CTA
   配色沿用 v1.3 品牌双色：深紫 #4a2a87 撑骨架，品红 #d4267f 只做点
   ⚠️ 本文件只服务首页；内页共用 style.css，不要在里面改全局选择器
   ========================================================== */

/* ---------- 通用区块 ---------- */
.h6-sec{padding:76px 0}
.h6-sec-alt{background:var(--bg-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.h6-sec-soft{
  background:linear-gradient(180deg,#fff 0%,var(--brand-l) 100%);
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
.h6-kicker{
  display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
  font-size:13px;font-weight:700;letter-spacing:.14em;color:var(--brand);margin-bottom:10px;
}
.h6-kicker::before{content:"";width:18px;height:3px;background:var(--accent);border-radius:2px;align-self:center}
.h6-kicker .h6-en{
  font-family:"Segoe Script","Brush Script MT",cursive;
  font-weight:400;font-style:italic;letter-spacing:.02em;
  color:#F28FB8;font-size:20px;
}
.h6-kicker .h6-dots{
  align-self:center;display:inline-flex;gap:4px;margin-left:2px;
}
.h6-kicker .h6-dots i{
  width:6px;height:6px;border-radius:50%;background:#E7C9F0;display:inline-block;
}
.h6-kicker .h6-dots i.on{background:var(--accent)}
.h6-h2{font-size:30px;letter-spacing:-.3px;line-height:1.4;margin-bottom:10px;color:var(--ink)}
.h6-sub{color:var(--ink-2);font-size:16px;max-width:44em;margin-bottom:32px;line-height:1.8}
.h6-after{margin-top:20px;font-size:14px;color:var(--ink-3);line-height:1.8}
.h6-after a{color:var(--brand);font-weight:600}

/* ---------- ① Hero ---------- */
.h6-hero{
  position:relative;overflow:hidden;color:#fff;padding:76px 0 80px;
  background:linear-gradient(135deg,var(--brand-d) 0%,var(--brand) 48%,var(--brand-m) 100%);
}
/* 轮播实景图层：多张叠放，当前张淡入 */
.h6-hero-slides{position:absolute;inset:0;z-index:0;overflow:hidden}
.h6-hero-slides .h6-slide{
  position:absolute;inset:0;background-size:cover;background-position:center;
  opacity:0;transition:opacity .8s ease;
}
.h6-hero-slides .h6-slide.on{opacity:1}
/* 深色遮罩：保证白字可读，保留品牌紫调 */
.h6-hero-mask{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(135deg,rgba(52,28,99,.88) 0%,rgba(74,42,135,.78) 48%,rgba(107,63,160,.72) 100%);
}
.h6-hero::before,.h6-hero::after{
  content:"";position:absolute;border-radius:50%;filter:blur(60px);pointer-events:none;z-index:1;
}
.h6-hero::before{width:420px;height:420px;top:-170px;right:-110px;background:rgba(212,38,127,.22)}
.h6-hero::after{width:320px;height:320px;bottom:-180px;left:-80px;background:rgba(255,255,255,.10)}
.h6-hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:3fr 2fr;gap:48px;align-items:center}
/* 轮播指示器 */
.h6-hero-dots{position:relative;z-index:2;display:flex;gap:8px;justify-content:center;margin-top:30px}
.h6-hero-dots button{
  width:9px;height:9px;border-radius:50%;border:0;padding:0;cursor:pointer;
  background:rgba(255,255,255,.35);transition:all .2s ease;
}
.h6-hero-dots button.on{background:#fff;width:24px;border-radius:999px}
/* 品牌标题：中文粗体 + 粉色手写英文副标（对齐品牌介绍图） */
.h6-title-en{
  display:block;font-family:"Segoe Script","Brush Script MT",cursive;
  font-weight:400;color:rgba(255,183,217,.85);font-size:18px;letter-spacing:.04em;
  margin-top:6px;
}
.h6-kicker .h6-title-en{margin-top:0}
.h6-pill{
  display:inline-flex;align-items:center;gap:9px;
  font-size:13.5px;color:rgba(255,255,255,.92);
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.22);
  border-radius:999px;padding:7px 16px;margin-bottom:22px;
}
.h6-dot{width:8px;height:8px;border-radius:50%;background:#ffb3d9;flex:none}
.h6-hero h1{
  font-size:42px;line-height:1.35;letter-spacing:-.5px;font-weight:700;
  color:#fff;margin-bottom:20px;
}
/* 标题按「词组」分行：每个词整体不拆，折行只发生在「 · 」处，
   避免窄屏把「儿童齿科」「牙体牙髓」从中间断开 */
.h6-hero h1>span{display:block}
.h6-hero h1 .h6-t1{color:#fff}
.h6-hero h1 .h6-t2{color:#e5d7f7}
.h6-hero h1 .h6-ti{display:inline-block;white-space:nowrap}
.h6-lead{
  font-size:17px;line-height:1.85;color:rgba(255,255,255,.86);max-width:36em;margin-bottom:0;
}
.h6-hero-btns{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.h6-btn-short{display:none}  /* 窄屏用短文案，让两个按钮能并排 */

/* 深色底上的按钮：白底紫字主按钮 + 透明白描边次按钮（覆盖 style.css 的紫底） */
.h6-hero .btn,.h6-cta .btn{border-radius:999px;padding:12px 26px}
.h6-hero .btn-primary,.h6-cta .btn-primary{background:#fff;color:var(--brand);border-color:#fff}
.h6-hero .btn-primary:hover,.h6-cta .btn-primary:hover{background:var(--brand-l);color:var(--brand-d)}
.h6-hero .btn-ghost,.h6-cta .btn-ghost{background:transparent;border-color:rgba(255,255,255,.42);color:#fff}
.h6-hero .btn-ghost:hover,.h6-cta .btn-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff;color:#fff}

.h6-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.h6-stat{
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);
  border-radius:16px;padding:18px 20px;backdrop-filter:blur(6px);
}
.h6-stat b{display:block;font-size:32px;line-height:1.2;color:#fff;font-weight:700}
.h6-stat b span{font-size:15px;font-weight:500;margin-left:3px;color:#e5d7f7}
.h6-stat p{font-size:13px;color:rgba(255,255,255,.78);margin-top:5px;line-height:1.55}

/* ---------- ② 机构概况 ---------- */
.h6-about-grid{
  display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
  gap:48px;align-items:start;
}
.h6-prose p{margin-bottom:16px;color:var(--ink-2);line-height:1.9;font-size:15.5px}
.h6-prose p:last-child{margin-bottom:0}
.h6-prose strong{color:var(--ink);font-weight:600}
.h6-info{
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;
  box-shadow:0 6px 24px rgba(35,20,70,.06);
}
.h6-info h3{font-size:17px;margin-bottom:14px;display:flex;align-items:center;gap:9px}
.h6-info h3::before{content:"";width:4px;height:16px;background:var(--accent);border-radius:2px}
.h6-info dl>div{
  display:flex;justify-content:space-between;gap:16px;
  padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;
}
.h6-info dl>div:last-child{border-bottom:0;padding-bottom:0}
.h6-info dt{color:var(--ink-3);white-space:nowrap}
.h6-info dd{color:var(--ink);font-weight:500;text-align:right}
/* 可拨打的电话号码：保留品牌色，点按即可调起拨号 */
.h6-info dd a{color:var(--brand);font-weight:600;text-decoration:none;border-bottom:1px dashed rgba(0,0,0,.18);padding-bottom:1px}
.h6-info dd a:hover{text-decoration:none;border-bottom-color:var(--brand)}

/* ---------- ③ 服务卡片 ---------- */
.h6-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.h6-card{
  display:flex;flex-direction:column;
  background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;
  transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.h6-card:hover{
  border-color:var(--brand);transform:translateY(-3px);
  box-shadow:0 10px 28px rgba(35,20,70,.09);text-decoration:none;
}
.h6-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.h6-ico{
  width:44px;height:44px;border-radius:12px;
  background:var(--brand-l);color:var(--brand);display:grid;place-items:center;
}
.h6-ico svg{width:24px;height:24px}
.h6-badge{
  font-size:12px;font-weight:600;color:var(--brand);
  background:var(--brand-l);border-radius:999px;padding:4px 10px;
}
.h6-card h3{font-size:19px;margin-bottom:8px;color:var(--ink)}
.h6-card p{font-size:14.5px;color:var(--ink-2);line-height:1.75;flex:1}
.h6-more{display:block;margin-top:16px;font-size:14px;font-weight:600;color:var(--brand)}

/* ---------- ④ 医生方向大卡 ---------- */
.h6-docs{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.h6-doc{
  background:linear-gradient(145deg,var(--brand-d),var(--brand));
  color:#fff;border-radius:16px;padding:30px;
}
.h6-doc-n{display:inline-block;font-size:13px;font-weight:700;color:#ffb3d9;letter-spacing:.1em}
.h6-doc h3{font-size:22px;margin:8px 0 14px;color:#fff}
.h6-doc p{font-size:15px;line-height:1.85;color:rgba(255,255,255,.86)}
.h6-doc a{
  display:inline-block;margin-top:18px;color:#fff;font-weight:600;
  border-bottom:1px solid rgba(255,255,255,.5);
}
.h6-doc a:hover{text-decoration:none;border-bottom-color:#fff}

/* ---------- ⑤ 8 个院区 ---------- */
.h6-branches{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.h6-branch{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}
.h6-area{
  display:inline-block;font-size:12px;color:var(--brand);background:var(--brand-l);
  border-radius:999px;padding:3px 9px;margin-bottom:10px;
}
.h6-branch h3{font-size:16px;margin-bottom:6px}
.h6-branch p{font-size:13px;color:var(--ink-2);line-height:1.6}

/* ---------- ⑥ 指南入口 ---------- */
.h6-guide{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.h6-guide a{
  display:flex;align-items:center;gap:14px;
  background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:16px 18px;color:var(--ink);font-size:15px;line-height:1.6;
}
.h6-guide a:hover{border-color:var(--brand);text-decoration:none}
.h6-gtag{flex:none;font-size:12px;color:var(--brand);background:var(--brand-l);border-radius:6px;padding:4px 9px}
.h6-guide a>span:nth-child(2){flex:1}
.h6-guide i{font-style:normal;color:var(--accent);font-weight:700;flex:none}

/* ---------- ⑦ FAQ（原生 details，键盘可操作） ---------- */
.h6-faq-wrap{max-width:820px}
.h6-faq details{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;padding:0 20px}
.h6-faq summary{
  cursor:pointer;position:relative;padding:18px 30px 18px 0;
  font-size:16px;font-weight:600;color:var(--ink);list-style:none;
}
.h6-faq summary::-webkit-details-marker{display:none}
.h6-faq summary::after{
  content:"+";position:absolute;right:0;top:50%;transform:translateY(-50%);
  color:var(--brand);font-size:22px;font-weight:400;line-height:1;
}
.h6-faq details[open] summary::after{content:"\2212"}
.h6-faq details p{padding:0 0 18px;color:var(--ink-2);font-size:15px;line-height:1.8}

/* ---------- ⑧ CTA ---------- */
.h6-cta{
  position:relative;overflow:hidden;color:#fff;padding:56px 0;
  background:linear-gradient(135deg,var(--brand-d),var(--brand) 60%,var(--brand-m));
}
.h6-cta-in{position:relative;display:flex;align-items:center;justify-content:space-between;gap:28px}
.h6-cta h2{font-size:28px;margin-bottom:10px;color:#fff}
.h6-cta p{color:rgba(255,255,255,.85);font-size:15px;max-width:38em;line-height:1.8}
.h6-cta-btns{display:flex;gap:12px;flex-wrap:wrap;flex:none}

/* ---------- 焦点可见性（a11y） ---------- */
.h6-card:focus-visible,.h6-guide a:focus-visible,.h6-doc a:focus-visible,
.h6-hero .btn:focus-visible,.h6-cta .btn:focus-visible,.h6-faq summary:focus-visible{
  outline:3px solid var(--accent);outline-offset:3px;
}

/* ---------- 响应式 ---------- */
@media(max-width:980px){
  .h6-hero-grid{grid-template-columns:1fr;gap:32px}
  .h6-about-grid{grid-template-columns:1fr;gap:28px}
  .h6-cards{grid-template-columns:repeat(2,1fr)}
  .h6-branches{grid-template-columns:repeat(2,1fr)}
  .h6-docs{grid-template-columns:1fr}
  .h6-info{max-width:520px}
}
@media(max-width:640px){
  .h6-sec{padding:48px 0}
  .h6-hero{padding:52px 0 56px}
  .h6-hero h1{font-size:28px}
  .h6-lead{font-size:15.5px}
  .h6-stats{gap:10px}
  .h6-stat{padding:14px}
  .h6-stat b{font-size:26px}
  /* 两个 CTA 并排，省下一行高度，让数字卡在首屏多露一点 */
  .h6-hero-btns{width:100%;flex-wrap:nowrap}
  .h6-hero-btns .btn{flex:1;text-align:center;padding:12px 8px;font-size:14px}
  .h6-btn-full{display:none}
  .h6-btn-short{display:inline}
  .h6-h2{font-size:24px}
  .h6-sub{font-size:15px;margin-bottom:24px}
  .h6-cards,.h6-branches,.h6-guide{grid-template-columns:1fr}
  .h6-cta-in{flex-direction:column;align-items:flex-start}
  .h6-cta h2{font-size:23px}
  .h6-cta-btns{width:100%}
  .h6-cta-btns .btn{flex:1;text-align:center}
}
