/* ============================================================
   温州沐锦 · 首页样式（v7 七屏定稿落地）
   依赖 styles.css（全站基础 + 顶栏导航），本文件只作用于首页。
   色系：冰蓝族 OKLCH H≈229.5
   地 #040B10 / 面 #040F14 / 板 #04131A / 板高 #031D28
   主光 #519DBE→#93CBE6→#B7DBEC / 暖光 #E8B181
   ============================================================ */

/* ---------- 首屏（方案 A · 左文右图 + 极光带 + 噪点） ---------- */

.hero { position: relative; height: 900px; min-height: 0; display: block;
  padding: 0; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; background-repeat: no-repeat; background-size: cover; }
.hero-inner { position: relative; z-index: 2; }

.hero h1 { margin: 0 0 22px; font-size: 56px; line-height: 68px;
  font-weight: 600; letter-spacing: -0.015em; color: #fff; }
.hero h1 .accent { display: block;
  background: linear-gradient(91.68deg, #FFF3EC 0%, #D5E5ED 32.74%, #97D6F5 95.92%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 0 34px; max-width: 640px; font-size: 17px; line-height: 30px;
  color: rgba(226,235,244,.78); }
.hero-actions { display: flex; align-items: center; gap: 16px; }
.hero .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 34px; border-radius: 999px; font-size: 17px; font-weight: 600;
  border: 1px solid transparent; }
.hero .btn-primary { background: linear-gradient(180deg,#F2F8FF,#CFE6FA); color: #06101F; }
.hero .btn-primary:hover { background: linear-gradient(180deg, #FFFFFF, #D2E9FB); }
.hero .btn-ghost { border-color: rgba(154, 198, 245, 0.32);
  background:rgba(22,36,52,.6); color:#F2F7FD; backdrop-filter: blur(6px); }
.hero .btn-ghost:hover { background: rgba(90, 166, 255, 0.14); border-color: rgba(154, 198, 245, 0.55); }
.hero .btn b { font-weight: 400; }

.hero--b .hero-media { background-image: url("assets/hero-ice.webp"); background-position: 68% center; }
.hero--b .hero-scrim { position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 11, 16, 0.90) 0%, rgba(4, 11, 16, 0.70) 34%, rgba(4, 11, 16, 0.16) 62%, rgba(4, 11, 16, 0) 82%),
    linear-gradient(to bottom, rgba(4, 11, 16, 0.40) 0%, rgba(4, 11, 16, 0) 22%, rgba(4, 11, 16, 0) 94%, rgba(4, 11, 16, 0.16) 100%); }
/* 极光带：页内唯一多停点渐变；纵向 mask 让上下边完全透明（防线性接缝） */
.hero--b .hero-aurora { position: absolute; left: 0; right: 0; top: 56px; height: 300px; z-index: 1;
  background: linear-gradient(102deg, transparent 10%, rgba(147,203,230,.14) 28%, rgba(81,157,190,.11) 46%, rgba(147,203,230,.06) 64%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%); }
.grain { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .04;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.5"/></svg>');
  background-size: 240px 240px; }
.hero--b .hero-inner { padding-top: 196px; }
.hero--b .hero-copy { max-width: 620px; }
.hero--b .hero-actions { margin-bottom: 44px; }
.hero--b .hero-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px; padding-top: 24px; border-top: 1px solid rgba(154, 198, 245, 0.14); }
.hero--b .cap { display: flex; flex-direction: column; gap: 12px; padding-inline: 18px;
  border-left: 1px solid rgba(154, 198, 245, 0.1); font-size: 13px; color: #E9F0F8; }
.hero--b .cap:first-child { padding-left: 0; border-left: 0; }
.hero--b .cap svg { width: 32px; height: 32px; color: #8FC0F5; }

/* ---------- 七屏公共 ---------- */

.container { width: 100%; max-width: calc(1320px + 120px); margin-inline: auto; padding-inline: 60px; }

.sec { position: relative; overflow: hidden; }
.sec-head { text-align: center; padding-top: 96px; margin-bottom: 54px; }
.sec-eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 22px; font-size: 12px; letter-spacing: 0.22em;
  font-family: ui-monospace, Consolas, monospace; color: rgba(149, 202, 231, 0.75); }
.sec-eyebrow i { width: 26px; height: 1px; background: rgba(149, 202, 231, 0.5); }
.sec-title { margin: 0; font-size: 40px; line-height: 56px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }

/* 冷暖双光光晕条（卡带底部） */
.duotone-glow { position: absolute; left: 10%; right: 10%; bottom: -8px; height: 34px;
  background: linear-gradient(270deg, rgba(81,157,190,0.42) 8%, rgba(232,177,129,0.40) 38%, rgba(213,229,237,0.14) 70%, rgba(81,157,190,0) 100%);
  filter: blur(19px); opacity: 0.72; pointer-events: none; }

.card { position: relative; border: 1px solid rgba(149,202,231,0.16); border-radius: 14px;
  background: #04131A; overflow: hidden; }

/* ---------- S2 核心业务 · 2×3 编号卡 ---------- */
.s2 { height: 1260px; }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 96px; }
.bcard-band { position: relative; height: 270px; background-size: cover; background-position: center; }
.bcard-band::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,19,26,0.55) 0%, rgba(4,19,26,0) 22%); }
.bcard-body { position: relative; padding: 20px 24px 24px; }
.bcard-body h3 { margin: 0 0 10px; font-size: 19px; line-height: 28px; font-weight: 600; color: #F2F6FB; }
.bcard-body p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.75; color: rgba(226,235,244,.78); }
.card-more { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 20px;
  border: 1px solid rgba(147,203,230,0.32); border-radius: 999px; font-size: 13px; color: #93CBE6;
  text-decoration: none; background: none; cursor: pointer; font-family: inherit; }
.card-more span { font-size: 14px; }
.card-more:hover { border-color: rgba(161,196,213,0.55); color: #B7DBEC; background: rgba(3,29,40,0.5); }

/* script.js 的 renderServiceLinks 会把 data-service-link 元素替换成 .card-cta——
   这里兜底成与 .card-more 一致的设计稿胶囊样式（优先级 0-2-0 覆盖 .btn-primary） */
.bcard-body .card-cta { display: inline-flex; align-items: center; gap: 7px; height: 36px;
  padding: 0 20px; border: 1px solid rgba(147,203,230,0.32); border-radius: 999px;
  font-size: 13px; font-weight: 400; line-height: 1; background: none; color: #93CBE6; }
.bcard-body .card-cta .btn-arrow { font-size: 14px; }
.bcard-body .card-cta:hover { border-color: rgba(161,196,213,0.55); color: #B7DBEC; background: rgba(3,29,40,0.5); }

/* ---------- S3 一站式解决方案 ---------- */
.s3 { height: 1284px; }
.tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 46px; }
.tab { height: 48px; padding: 0 30px; display: inline-flex; align-items: center; border-radius: 12px;
  border: 1px solid rgba(149,202,231,0.2); background: rgba(4,19,26,0.55); cursor: pointer;
  font-family: inherit; font-size: 15px; color: rgba(226,235,244,.78);
  transition: border-color .2s, color .2s, background .2s; }
.tab.is-active { border-color: rgba(149,202,231,0.55); color: #fff;
  background: linear-gradient(180deg, #031D28, #04131A);
  box-shadow: 0 0 0 1px rgba(149,202,231,0.18), 0 6px 24px rgba(30,120,180,0.25); }
.device { position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(149,202,231,0.22); background: #04131A;
  box-shadow: 0 24px 80px rgba(3,6,12,0.6), 0 0 60px rgba(40,130,185,0.14); }
.device-bar { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 18px;
  background: #07202B; border-bottom: 1px solid rgba(149,202,231,0.14); }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #1B2F3A; }
.device-bar i:nth-child(1) { background: #274453; }
.device-url { margin-left: 12px; flex: 0 0 340px; height: 24px; border-radius: 6px;
  background: #05161E; border: 1px solid rgba(149,202,231,0.12);
  font-size: 11px; line-height: 22px; padding: 0 10px; color: rgba(218,229,240,.58); }
.device-shot { height: 696px; }
.device-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: opacity .22s ease; }
.device-shot img[style*="opacity: 0"] { pointer-events: none; }
.s3-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 0 96px; }
.s3-points .pt { display: flex; align-items: center; gap: 12px; justify-content: center;
  border: 1px solid rgba(149,202,231,0.14); border-radius: 12px; height: 64px;
  background: rgba(4,15,20,0.5); font-size: 14.5px; color: rgba(226,235,244,.78); }
.s3-points svg { width: 20px; height: 20px; color: #88C5E6; flex: none; }

/* ---------- S4 为什么选沐锦 · 同心环 + 四角标签 ---------- */
.s4 { height: 1074px; }
.orbit-wrap { position: relative; max-width: 1100px; margin: 0 auto; padding-bottom: 96px; }
.orbit { position: relative; width: 840px; height: 660px; margin: 0 auto; }
.orbit svg { position: absolute; inset: 0; }
.orbit-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); height: 120px; }
.orbit-mark img { height: 100%; filter: drop-shadow(0 0 26px rgba(149,202,231,0.45)); }
.ocard { position: absolute; width: 252px; padding: 16px 20px 14px;
  border: 1px solid rgba(149,202,231,0.18); border-radius: 12px;
  background: rgba(4,19,26,0.78); backdrop-filter: blur(6px); }
.ocard b { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 600; color: #F2F6FB; }
.ocard b svg { width: 18px; height: 18px; color: #88C5E6; flex: none; }
.ocard p { margin: 7px 0 0; font-size: 12.5px; line-height: 1.65; color: rgba(218,229,240,.58); }
.ocard--tl { left: 0; top: 66px; } .ocard--tr { right: 0; top: 66px; }
.ocard--bl { left: 0; bottom: 66px; } .ocard--br { right: 0; bottom: 66px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 0 40px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 38px; line-height: 1.15; font-weight: 700;
  background: linear-gradient(91.68deg, #FFF3EC 0%, #C2DCEB 33%, #A5D4EE 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: rgba(218,229,240,.58); }

/* ---------- S5 案例 · 2×2 宽卡 + 大按钮 ---------- */
.s5 { height: 1360px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.tcard { border: 1px solid rgba(149,202,231,0.16); border-radius: 14px; overflow: hidden;
  background: #04131A; transition: border-color .2s; }
.tcard-shot { height: 362px; overflow: hidden; border-bottom: 1px solid rgba(149,202,231,0.12); }
.tcard-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tcard-meta { display: flex; align-items: baseline; gap: 12px; padding: 16px 22px 18px; }
.tcard-meta b { font-size: 16.5px; font-weight: 600; color: #F2F6FB; }
.tcard-meta span { font-size: 12.5px; color: rgba(218,229,240,.58);
  font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.04em; }
.s5-more { display: flex; justify-content: center; padding: 64px 0 96px; }
.btn-big { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 44px;
  border-radius: 999px; background: #C6E0F0; color: #06101F; font-size: 18px; font-weight: 600; }
.btn-big:hover { background: #D9EBF8; }

/* ---------- S6 联系我们 · 三列 + 城市带 ---------- */
.s6 { height: 740px; display: flex; flex-direction: column; }
.cgrid { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 60px; padding-bottom: 64px; }
.ccol .lbl { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.16em; color: rgba(149,202,231,0.7); }
.ccol .tel { margin: 0 0 14px; font-size: 40px; line-height: 1.2; font-weight: 700; color: #fff;
  font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.02em; }
.ccol .row { margin: 0 0 8px; font-size: 14px; color: rgba(226,235,244,.78); }
.ccol .addr { margin: 0 0 16px; font-size: 17px; line-height: 1.7; color: #E8EDF4; }
.ccol .lnk { font-size: 14px; color: #95CAE7; }
.ccol .lnk:hover { color: #B7DBEC; }
.qrbox { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.qrbox .qr { width: 176px; height: 176px; padding: 0; background: #fff; border-radius: 10px; overflow: hidden; }
.qrbox .qr img { width: 100%; height: 100%; }
.qrbox .qr-cap { margin: 0; font-size: 13.5px; line-height: 1.7; color: rgba(226,235,244,.78); }
.city { position: relative; margin-top: auto; height: 380px; }
.city img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.city::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, #040B10 0%, rgba(4,11,16,0.28) 24%, rgba(4,11,16,0) 50%); }

/* ---------- S7 页脚 ----------
   页脚组件样式已迁入 styles.css（.sec.s7 / .fgrid / .fbrand / .fcol / .fqr / .fbottom），
   首页与子页共用同一套；本文件只保留首页屏区自己的高度与断点。 */

/* ---------- 进场动效阶梯（配合 script.js 的 .reveal 机制） ----------
   标题组先入，卡与列按 60/80ms 阶梯跟进；hero 区不参与（首屏直接可见） */
.js .bgrid > .bcard:nth-child(2) { --reveal-delay: 60ms; }
.js .bgrid > .bcard:nth-child(3) { --reveal-delay: 120ms; }
.js .bgrid > .bcard:nth-child(5) { --reveal-delay: 60ms; }
.js .bgrid > .bcard:nth-child(6) { --reveal-delay: 120ms; }
.js .s3-points .pt:nth-child(2) { --reveal-delay: 60ms; }
.js .s3-points .pt:nth-child(3) { --reveal-delay: 120ms; }
.js .tgrid > .tcard:nth-child(2) { --reveal-delay: 80ms; }
.js .tgrid > .tcard:nth-child(3) { --reveal-delay: 60ms; }
.js .tgrid > .tcard:nth-child(4) { --reveal-delay: 140ms; }
.js .stats .stat:nth-child(2) { --reveal-delay: 60ms; }
.js .stats .stat:nth-child(3) { --reveal-delay: 120ms; }
.js .stats .stat:nth-child(4) { --reveal-delay: 180ms; }
.js .cgrid .ccol:nth-child(2) { --reveal-delay: 80ms; }
.js .cgrid .ccol:nth-child(3) { --reveal-delay: 160ms; }

/* ---------- 移动端断点（与 styles.css 同体系：1024 / 720） ---------- */
/* 七屏定稿为桌面稿，固定高度与多列网格在窄屏全部放开/坍缩 */
@media (max-width: 1024px) {
  .container { padding-inline: 40px; }
  .hero--b .hero-inner { padding-top: 150px; }
  /* 固定高度屏放开，按内容自适应 */
  .s2, .s3, .s4, .s5, .s6, .s7 { height: auto; }
  .s2 .bgrid, .s3 .container, .s5 .container { padding-bottom: 72px; }
  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 0 10px; }
  .tgrid { grid-template-columns: minmax(0, 1fr); }
  .cgrid { gap: 44px; }
  /* 页脚栅格断点已迁 styles.css */
  /* 同心环区窄屏等比缩小 */
  .orbit { width: 100%; max-width: 680px; height: auto; aspect-ratio: 840 / 660; }
  .ocard { width: 200px; padding: 12px 16px 11px; }
  .device-url { flex-basis: 200px; }
  .sec-title { font-size: 34px; line-height: 48px; }
  .ccol .tel { font-size: 32px; }
}

@media (max-width: 720px) {
  .container { padding-inline: 20px; }
  .sec-head { padding-top: 48px; margin-bottom: 30px; }
  .sec-title { font-size: 27px; line-height: 38px; }
  /* P1/P2/P3 Hero：H1 移动端字号 + 高度改内容自适应 + 断行均衡 */
  .hero { height: auto; padding: 0 0 36px; }
  .hero--b .hero-inner { padding-top: 116px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.25;
    text-wrap: balance; margin-bottom: 14px; }
  .hero .lead { font-size: 15.5px; line-height: 26px; text-wrap: balance; margin-bottom: 22px; }
  .hero-actions { gap: 10px; margin-bottom: 28px; }
  .hero .btn { height: 48px; padding: 0 24px; font-size: 15px; }
  .hero--b .hero-caps { grid-template-columns: minmax(0, 1fr); max-width: 100%; gap: 0; padding-top: 18px; }
  /* 三行统一左缘：显式四向 padding 覆盖基础 first-child 规则，消除 20/38px 错位 */
  .hero--b .hero-caps .cap { flex-direction: row; align-items: center; gap: 10px; font-size: 12.5px;
    padding: 0 0 12px 0; border-left: 0; border-bottom: 1px solid rgba(154, 198, 245, 0.1); }
  .hero--b .cap:last-child { border-bottom: 0; padding-bottom: 0; }
  .hero--b .cap svg { width: 24px; height: 24px; }
  .bgrid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 56px; }
  /* P4 band：定位顶部标题区，正文收窄 */
  .bcard-band { height: 170px; background-position: center top; }
  .bcard-body { padding: 15px 18px 20px; }
  .bcard-body h3 { font-size: 17px; line-height: 25px; margin-bottom: 8px; }
  .tabs { justify-content: flex-start; gap: 10px; overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { height: 40px; padding: 0 18px; font-size: 13.5px; flex: none; }
  .device-bar { padding: 0 12px; }
  .device-url { display: none; }
  /* P6 设备框截图按 16:9 完整呈现，不再左右裁切 */
  .device-shot { height: auto; aspect-ratio: 16 / 9; }
  .s3-points { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0 56px; }
  /* 同心环：装饰环隐藏，四卡静态堆叠为 2 列流 */
  .orbit { max-width: 100%; aspect-ratio: auto; }
  .orbit svg { display: none; }
  .orbit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .orbit-mark { position: static; transform: none; grid-column: 1 / -1;
    display: flex; justify-content: center; height: 88px; margin-bottom: 8px; }
  .ocard { position: static; width: 100%; }
  .stats { gap: 20px; }
  .stat b { font-size: 30px; }
  .tcard-shot { height: 210px; }
  /* P7 S5→S6 衔接收紧 */
  .s5-more { padding: 36px 0 48px; }
  .btn-big { height: 52px; padding: 0 34px; font-size: 16px; }
  .cgrid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 36px; }
  .qrbox { align-items: flex-start; }
  .city { height: 220px; }
  /* 页脚栅格断点已迁 styles.css */
}
