/* ============================================================
   五量度 · 资质与服务记录 Apple 流体视觉层（2026-11-07）
   作用域 .hnpage，复用 home-apple.css 的 .ah 设计令牌；
   新增区块全部使用 .hn- 前缀，避免命中全站 style.css 旧规则
   ============================================================ */

.hnpage { overflow-x: hidden; }

/* ============ 平台资质 bento ============ */
.hn-qual {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 22px;
  align-items: stretch;
}
.hn-qual-wide {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ah-shadow-2);
  min-height: 320px;
}
.hn-qual-wide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hn-qual-cap {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(10, 36, 56, .42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
}
.hn-qual-cap b { font-size: 16px; }
.hn-qual-cap span { font-size: 12.5px; opacity: .85; }

.hn-qual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hn-card {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--ah-shadow-1);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .5s var(--ah-spring-soft), box-shadow .4s, border-color .3s;
}
.hn-card:hover { transform: translateY(-3px); box-shadow: var(--ah-shadow-2); border-color: rgba(22, 166, 199, .35); }
.hn-card-ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(22, 166, 199, .16), rgba(78, 205, 196, .10));
  color: var(--ah-brand-deep);
  margin-bottom: 2px;
}
.hn-card-ico svg { width: 22px; height: 22px; }
.hn-card h3 { margin: 0; font-size: 16.5px; color: var(--ah-ink); }
.hn-card p { margin: 0; font-size: 13.5px; color: var(--ah-ink-2); line-height: 1.72; }
.hn-card--img { padding: 0; overflow: hidden; }
.hn-card--img img { width: 100%; height: 168px; object-fit: cover; display: block; }
.hn-card--img figcaption { padding: 11px 14px; font-size: 13px; color: var(--ah-ink-2); }

/* ============ 服务规模 · 深色数据带 ============ */
.hn-scale {
  background: linear-gradient(160deg, var(--ah-deep) 0%, var(--ah-deep-2) 100%);
}
.hnpage .hn-scale .ah-head h2,
.hnpage .hn-scale .ah-head p,
.hnpage .ah-head--light h2,
.hnpage .ah-head--light p { color: #fff; }
.hnpage .ah-head--light .ah-kicker { color: rgba(255, 255, 255, .78); }
.hn-scale-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hn-stat {
  text-align: center;
  padding: 28px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.hn-stat b {
  display: block;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800; line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(96deg, #8fe6db, #4ecdc4 58%, var(--ah-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hn-stat span { display: block; margin-top: 11px; font-size: 14px; color: rgba(255, 255, 255, .8); }

/* ============ 覆盖品牌与品类 ============ */
.hn-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.hn-brand-fig { margin: 0; min-width: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--ah-shadow-2); }
.hn-brand-side { min-width: 0; }
.hn-brand-fig img { width: 100%; height: auto; display: block; }
.hn-brand-fig figcaption {
  display: flex; flex-direction: column; gap: 2px;
  padding: 13px 16px;
  background: var(--ah-paper-2);
  border-top: 1px solid var(--ah-line);
}
.hn-brand-fig figcaption b { font-size: 14.5px; color: var(--ah-ink); }
.hn-brand-fig figcaption span { font-size: 12.5px; color: var(--ah-ink-3); }
.hn-brand-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ah-brand-deep);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(22, 166, 199, .12);
  border: 1px solid rgba(22, 166, 199, .24);
}
.hn-marquee {
  margin-top: 16px;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hn-track {
  display: flex;
  width: max-content;
  animation: hnScroll 44s linear infinite;
}
.hn-marquee:hover .hn-track { animation-play-state: paused; }
@keyframes hnScroll { to { transform: translateX(-50%); } }
.hn-group { display: flex; gap: 16px; padding-right: 16px; flex: none; }
.hn-logo {
  flex: none; width: 124px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 12px;
  box-shadow: var(--ah-shadow-1);
}
.hn-logo img { height: 38px; width: auto; max-width: 100px; object-fit: contain; display: block; }
.hn-brand-note { margin: 16px 0 0; font-size: 14px; color: var(--ah-ink-2); line-height: 1.75; }

.hn-cats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hn-cat {
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .5s var(--ah-spring-soft), box-shadow .4s, border-color .3s;
}
.hn-cat:hover { transform: translateY(-3px); box-shadow: var(--ah-shadow-2); border-color: rgba(22, 166, 199, .4); }
.hn-cat-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(22, 166, 199, .14), rgba(78, 205, 196, .10));
  color: var(--ah-brand-deep);
  margin-bottom: 4px;
}
.hn-cat-ico svg { width: 24px; height: 24px; }
.hn-cat b { font-size: 15.5px; color: var(--ah-ink); }
.hn-cat span { font-size: 12.5px; color: var(--ah-ink-3); }

/* ============ 全渠道报修入口 ============ */
.hn-chan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.hn-chan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ah-line);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: var(--ah-shadow-1);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .5s var(--ah-spring-soft), box-shadow .4s;
}
.hn-chan-card:hover { transform: translateY(-4px); box-shadow: var(--ah-shadow-2); }
.hn-chan-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #1799b8, #0e7a96);
  padding: 4px 11px; border-radius: 999px;
}
.hn-chan-ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(22, 166, 199, .14), rgba(78, 205, 196, .10));
  color: var(--ah-brand-deep);
}
.hn-chan-ico svg { width: 26px; height: 26px; }
.hn-chan-card h3 { margin: 0; font-size: 19px; color: var(--ah-ink); }
.hn-chan-card p { margin: 0; font-size: 14px; color: var(--ah-ink-2); line-height: 1.75; }
.hn-phone {
  align-self: center;
  width: 200px; border-radius: 26px; overflow: hidden;
  border: 6px solid #0a2438; background: #0a2438;
  box-shadow: var(--ah-shadow-2);
}
.hn-phone img { width: 100%; height: auto; display: block; }
.hn-qr {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px; background: var(--ah-paper-2); border-radius: 14px;
}
.hn-qr img { width: 132px; height: 132px; object-fit: contain; border-radius: 8px; }
.hn-qr span { font-size: 12.5px; color: var(--ah-ink-3); }
.hn-tel {
  display: inline-block;
  font-size: 25px; font-weight: 800; letter-spacing: .02em;
  color: var(--ah-brand-deep); text-decoration: none;
}
.hn-tel-sub { font-size: 13px; color: var(--ah-ink-3); }
.hn-chan--tel {
  background: linear-gradient(160deg, var(--ah-deep) 0%, var(--ah-deep-2) 100%);
  border-color: transparent;
}
.hnpage .hn-chan--tel h3,
.hnpage .hn-chan--tel .hn-tel { color: #fff; }
.hnpage .hn-chan--tel p { color: rgba(255, 255, 255, .8); }
.hnpage .hn-chan--tel .hn-chan-ico { background: rgba(255, 255, 255, .12); color: #7fe3d8; }
.hnpage .hn-chan--tel .hn-tel-sub { color: rgba(255, 255, 255, .7); }

/* ============ 品牌识别带（深色，白托片承载全彩标识） ============ */
.hn-band {
  background: linear-gradient(160deg, var(--ah-deep) 0%, #0a2438 100%);
}
.hn-band-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: center;
}
.hn-band-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  padding: 30px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.hn-band-card img {
  width: auto; height: 88px; padding: 16px 20px; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f2f8fb);
  box-shadow: 0 14px 32px rgba(3,20,34,.4), inset 0 0 0 1px rgba(11,42,64,.06);
}
.hn-band-name { color: #fff; font-size: 18px; font-weight: 700; margin: 0; }
.hn-band-tag { color: rgba(255, 255, 255, .7); font-size: 13px; margin: 0; }
.hn-band-side { color: #fff; }
.hn-band-side h2 { color: #fff; }
.hn-band-side p { color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.8; }
.hn-band-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hn-band-chips span {
  font-size: 13px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
}

/* ============ 合规声明 ============ */
.hn-note {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ah-line);
  border-left: 4px solid var(--ah-brand);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: var(--ah-shadow-1);
}
.hn-note-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(22, 166, 199, .16), rgba(78, 205, 196, .10));
  color: var(--ah-brand-deep);
}
.hn-note-ico svg { width: 24px; height: 24px; }
.hn-note h3 { margin: 0 0 8px; font-size: 18px; color: var(--ah-ink); }
.hn-note p { margin: 0; font-size: 14.5px; color: var(--ah-ink-2); line-height: 1.8; }

/* ============ 相关页面 ============ */
.hn-sib {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.hn-sib a {
  background: #fff; border: 1px solid var(--ah-line); border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  transition: transform .5s var(--ah-spring-soft), box-shadow .4s;
}
.hn-sib a:hover { transform: translateY(-3px); box-shadow: var(--ah-shadow-2); }
.hn-sib b { font-size: 16px; color: var(--ah-ink); }
.hn-sib span { font-size: 13px; color: var(--ah-brand-deep); }
.hn-links { margin-top: 30px; background: var(--ah-paper-2); border-radius: 16px; padding: 22px 26px; }
.hn-links h3 { font-size: 16px; color: var(--ah-ink); margin: 0 0 10px; }
.hn-links ul { margin: 0; padding-left: 18px; }
.hn-links li { font-size: 14px; color: var(--ah-ink-2); line-height: 2; }
.hn-links-cta { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* ============ 右侧固定客服栏避让（桌面） ============ */
@media (min-width: 1025px) {
  .hnpage .hn-scale .container,
  .hnpage .hn-band .container,
  .hnpage .hn-chan { padding-right: 56px; }
}

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .hn-qual, .hn-brand, .hn-band-inner { grid-template-columns: 1fr; }
  .hn-scale-grid { grid-template-columns: repeat(2, 1fr); }
  .hn-cats { grid-template-columns: repeat(2, 1fr); }
  .hn-chan { grid-template-columns: 1fr; }
  .hn-sib { grid-template-columns: repeat(2, 1fr); }
  .hn-qual-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hn-scale-grid, .hn-cats, .hn-qual-grid, .hn-sib { grid-template-columns: 1fr; }
  .hn-stat b { font-size: 34px; }
  .hn-phone { width: 168px; }
}

/* ============ 减弱动效 ============ */
@media (prefers-reduced-motion: reduce) {
  .hn-track { animation: none; }
  .ah-hero-bg .blob { animation: none; }
}
