/* ==========================================================================
   大圣云推 · 视觉精修层 v2.0（2026-10-20）
   叠加在 index.html 的内联样式之后，只做「精修」，不改结构：
   1. 字阶 / 留白 / 行宽统一，减少视觉噪音
   2. 卡片、按钮、导航换成同一套「玻璃壳 + 细描边」语言
   3. 增加科技感细节：滚动进度、光标光斑、卡片流光、章节序号
   任何一条被改坏，直接删掉本文件即可回到旧样式。
   ========================================================================== */

:root {
  --maxw: 1180px;
  --radius: 18px;
  --ink: #eaf2ff;
  --dim: #90a6c5;
  --dim-2: #6d84a4;
  --line: rgba(148, 178, 214, .14);
  --line-soft: rgba(148, 178, 214, .08);
  --shell: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  --ease: cubic-bezier(.22, .68, .32, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

body { color: var(--ink); }

/* ---------- 1. 版面节奏 ---------- */
section { padding: clamp(62px, 7vw, 104px) 0; }
/* 只改左右内边距：写 padding 简写会连垂直方向一起清掉，
   而 .wrap 与 .hero 同权重、后出现的会赢，首屏留白就没了 */
.wrap { padding-left: 26px; padding-right: 26px; }

.sec-head {
  max-width: 700px;
  margin: 0 auto clamp(38px, 4.6vw, 60px);
}
.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 41px);
  line-height: 1.26;
  letter-spacing: -.015em;
  margin-bottom: 15px;
  font-weight: 800;
}
.sec-head p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--dim);
  max-width: 620px;
  margin: 0 auto;
}

/* 小标题：从「大胶囊」收成细标签，前面加一道渐变短线 */
.eyebrow {
  position: relative;
  font-size: 11.5px;
  letter-spacing: .2em;
  font-weight: 600;
  color: #7fe3f4;
  padding: 5px 13px;
  margin: 0 0 18px;
  border: 1px solid rgba(34, 211, 238, .2);
  background: rgba(34, 211, 238, .055);
  border-radius: 999px;
  text-transform: uppercase;
}
.hero .eyebrow { margin: 0 0 22px; }

/* ---------- 2. 首屏 ---------- */
.hero h1 {
  font-size: clamp(33px, 5.6vw, 64px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 6px 0 20px;
}
.hero p.lead {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.9;
  color: var(--dim);
  max-width: 660px;
  margin: 0 auto 34px;
}
.hero-cta { gap: 14px; }

/* 首屏顶部的一条光带，制造纵深 */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -120px;
  width: min(880px, 90vw);
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, .18), rgba(168, 85, 247, .10) 42%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.chip {
  border: 1px solid var(--line);
  background: rgba(12, 19, 36, .55);
  font-size: 12.5px;
  padding: 7px 15px;
  transition: border-color .3s, transform .3s var(--ease);
}
.chip:hover { border-color: rgba(34, 211, 238, .4); transform: translateY(-2px); }

.eco span:not(.lab) {
  border: 1px solid var(--line-soft);
  background: rgba(16, 24, 44, .5);
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.eco span:not(.lab):hover {
  color: #eafaff;
  border-color: rgba(34, 211, 238, .45);
  transform: translateY(-2px);
}

/* ---------- 3. 按钮 ---------- */
.btn {
  border-radius: 13px;
  padding: 14px 26px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .3s, background .3s;
}
.btn-primary {
  background: linear-gradient(118deg, #22d3ee, #3b82f6 52%, #a855f7);
  box-shadow: 0 12px 30px -12px rgba(34, 211, 238, .8), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover {
  box-shadow: 0 18px 40px -14px rgba(34, 211, 238, .95), inset 0 1px 0 rgba(255, 255, 255, .35);
}
/* 扫光：hover 时一道高光从左掠过 */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}
.btn-primary:hover::after { animation: sheen .9s var(--ease-out) forwards; }
@keyframes sheen {
  from { left: -60%; opacity: .9; }
  to { left: 130%; opacity: 0; }
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(12, 19, 36, .5);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: rgba(34, 211, 238, .5);
  background: rgba(34, 211, 238, .07);
  transform: translateY(-2px);
}

.nav-cta {
  border-radius: 11px;
  padding: 9px 18px;
  font-size: 13.5px;
  background: linear-gradient(118deg, #22d3ee, #3b82f6 60%, #a855f7);
  box-shadow: 0 8px 22px -10px rgba(34, 211, 238, .9);
}

/* ---------- 4. 导航 ---------- */
.nav {
  background: rgba(5, 7, 15, .74);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px) saturate(140%);
}
.nav-inner { height: 66px; }
nav ul { gap: 26px; font-size: 14px; }
nav ul a {
  color: var(--dim);
  padding: 6px 0;
  transition: color .25s;
}
nav ul a::after {
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #22d3ee, #a855f7);
  box-shadow: 0 0 10px rgba(34, 211, 238, .6);
}
nav ul a:hover, nav ul a.is-active { color: var(--ink); }
nav ul a.is-active::after { width: 100%; }

/* ---------- 5. 卡片统一外壳 ---------- */
.card, .engine, .case, .plan, .step, .qa {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
  will-change: transform;
}
.card:hover, .engine:hover, .case:hover, .plan:hover, .step:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, .34);
  box-shadow: 0 26px 60px -30px rgba(34, 211, 238, .7), inset 0 1px 0 rgba(255, 255, 255, .07);
}
/* 光标跟随的流光（坐标由 v2.js 写入 --mx/--my） */
.card::after, .engine::after, .plan::after, .case::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .13), transparent 62%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover::after, .engine:hover::after, .plan:hover::after, .case:hover::after { opacity: 1; }

.card { padding: 26px 24px; }
.card h3 { font-size: 17.5px; letter-spacing: -.005em; margin-bottom: 10px; }
.card p { font-size: 14px; line-height: 1.85; color: var(--dim); }

.engine { padding: 32px 28px; }
.engine h3 { font-size: 22px; letter-spacing: -.01em; }
.engine p { font-size: 14px; line-height: 1.85; }
.engine .tag { font-size: 11px; letter-spacing: .16em; }
.engine .icon { opacity: .045; }

/* 图标底座（替代原来的 emoji 大字符） */
.emoji {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(34, 211, 238, .16), rgba(168, 85, 247, .12));
  border: 1px solid rgba(34, 211, 238, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.emoji svg {
  width: 22px;
  height: 22px;
  stroke: #7fe3f4;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 数字 */
.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.stat {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  transition: border-color .3s, transform .4s var(--ease);
}
.stat:hover { border-color: rgba(34, 211, 238, .3); transform: translateY(-3px); }

/* ---------- 6. 动态资讯（新增版块） ---------- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.news-col {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}
.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 6px;
}
.news-head h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-head h3::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, .9);
}
.news-head a {
  font-size: 12.5px;
  color: var(--dim-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .25s;
}
.news-head a svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .25s var(--ease); }
.news-head a:hover { color: var(--cyan); }
.news-head a:hover svg { transform: translateX(3px); }

.news-item {
  display: grid;
  grid-template-columns: 62px 1fr 16px;
  align-items: start;   /* 标题换行时日期跟着首行，居中会飘到两行中间 */
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: padding .3s var(--ease);
}
.news-item:last-child { border-bottom: 0; }
.news-item::before {
  content: "";
  position: absolute;
  left: -26px; right: -26px;
  top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(34, 211, 238, .09), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.news-item:hover::before { opacity: 1; }
.news-item:hover { padding-left: 4px; }
.ni-date {
  font-size: 11.5px;
  padding-top: 4px;   /* 与标题首行基线对齐 */
  color: var(--dim-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.ni-title {
  font-size: 14px;
  color: #cfdcef;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .25s;
}
.news-item:hover .ni-title { color: #fff; }
.ni-arrow {
  width: 16px; height: 16px;
  stroke: var(--dim-2);
  fill: none;
  stroke-width: 2;
  opacity: .5;
  transition: transform .3s var(--ease), opacity .3s, stroke .3s;
}
.news-item:hover .ni-arrow { transform: translate(2px, -2px); opacity: 1; stroke: var(--cyan); }

.news-empty {
  padding: 22px 0;
  color: var(--dim-2);
  font-size: 13px;
}

/* ---------- 7. 联系区 ---------- */
.contact-grid { gap: 22px; }
.contact-info {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-info .row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-info .row:last-child { border-bottom: 0; }
.contact-info .ic {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .2);
}
.contact-info .ic svg {
  width: 17px; height: 17px;
  stroke: #7fe3f4; fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info b { font-size: 12px; color: var(--dim-2); font-weight: 600; letter-spacing: .06em; }

form#leadForm {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
form#leadForm input, form#leadForm select, form#leadForm textarea {
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 26, .6);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
form#leadForm input:focus, form#leadForm select:focus, form#leadForm textarea:focus {
  outline: 0;
  border-color: rgba(34, 211, 238, .55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
  background: rgba(10, 16, 32, .75);
}

/* ---------- 8. 全局科技细节 ---------- */
/* 顶部滚动进度 */
#v2Progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #22d3ee, #3b82f6 55%, #a855f7);
  box-shadow: 0 0 12px rgba(34, 211, 238, .8);
  z-index: 200;
  pointer-events: none;
}

/* 光标光斑（仅桌面细指针） */
#v2Spot {
  position: fixed;
  width: 520px; height: 520px;
  left: 0; top: 0;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .075), rgba(59, 130, 246, .035) 45%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .6s;
  will-change: transform;
}

/* 入场：给同组元素做错峰 */
.reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
.reveal[data-d="5"] { transition-delay: .35s; }

/* 键盘可达性 */
a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(34, 211, 238, .7);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 980px) {
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* 同上：这里也必须只写左右，否则移动端首屏 padding-top 被清零，
     h1 会钻到吸顶头部底下（实测 .hero rect.top=0） */
  .wrap { padding-left: 18px; padding-right: 18px; }
  section { padding: 56px 0; }
  .sec-head { margin-bottom: 34px; }
  .sec-head h2 { font-size: clamp(23px, 6.4vw, 30px); }
  .hero::before { top: -80px; height: 240px; }
  .news-col { padding: 20px 18px 8px; }
  .news-item { grid-template-columns: 54px 1fr 14px; gap: 10px; }
  .news-item::before { left: -18px; right: -18px; }
  .contact-info, form#leadForm { padding: 20px; }
  #v2Spot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .card, .engine, .plan, .case, .step, .chip, .btn { transition: none !important; }
  .btn-primary:hover::after { animation: none; }
}
