/* ==========================================================================
   pages.css —— 各页面专属区块
   ========================================================================== */

/* ==========================================================================
   1. 首页 Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--sp-8);
  align-items: center;
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-7); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  margin-bottom: var(--sp-6);
}
.hero__badge b {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #06111C;
  font-weight: 700;
}

.hero h1 { margin-bottom: var(--sp-5); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.9; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-7); }

/* 粒子网络画布 */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 460px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 107, 53, .12), transparent 55%),
    radial-gradient(circle at 72% 70%, rgba(56, 189, 248, .16), transparent 58%),
    rgba(255, 255, 255, .02);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 画布中心的品牌标志 */
.hero__emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(88px, 22%, 132px);
  opacity: .96;
  filter: drop-shadow(0 0 28px rgba(56, 189, 248, .35));
}

@media (max-width: 960px) {
  .hero__visual { max-height: 340px; margin-inline: auto; width: min(100%, 380px); }
}

/* ==========================================================================
   2. 数据统计条
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--line);
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stat { background: var(--bg-1); padding: var(--sp-6) var(--sp-5); text-align: center; }
.stat__num {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.stat__num small { font-size: .5em; font-weight: 700; margin-left: 2px; }
.stat__label { font-size: var(--fs-xs); color: var(--fg-dim); margin-top: var(--sp-2); }

/* ==========================================================================
   3. 两大业务线：冷暖对撞
   ========================================================================== */
.biz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 860px) { .biz { grid-template-columns: 1fr; } }

.biz__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.biz__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .85;
  transition: opacity var(--t-base) var(--ease);
}
.biz__card--ice::before {
  background: radial-gradient(520px 320px at 12% 0%, rgba(56, 189, 248, .16), transparent 62%), var(--bg-1);
}
.biz__card--flame::before {
  background: radial-gradient(520px 320px at 88% 0%, rgba(255, 107, 53, .16), transparent 62%), var(--bg-1);
}
.biz__card:hover { transform: translateY(-5px); }
.biz__card:hover::before { opacity: 1; }
.biz__card--ice:hover { border-color: var(--line-ice); box-shadow: var(--glow-ice); }
.biz__card--flame:hover { border-color: var(--line-flame); box-shadow: var(--glow-flame); }

.biz__kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.biz__card--ice .biz__kicker { color: var(--ice-bright); }
.biz__card--flame .biz__kicker { color: var(--flame-bright); }

.biz__card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: var(--sp-4); }
.biz__card > .link-arrow { margin-top: auto; padding-top: var(--sp-6); align-self: flex-start; }
.biz__card--flame .link-arrow { color: var(--flame-bright); }
.biz__card--flame .link-arrow:hover { color: var(--flame); }

/* ==========================================================================
   4. 能力矩阵
   ========================================================================== */
.cap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .cap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cap { grid-template-columns: 1fr; } }

.cap__item {
  background: var(--bg-1);
  padding: var(--sp-6) var(--sp-5);
  transition: background var(--t-base) var(--ease);
}
.cap__item:hover { background: var(--bg-2); }
.cap__icon {
  width: 34px;
  height: 34px;
  color: var(--ice);
  margin-bottom: var(--sp-4);
}
.cap__item:nth-child(even) .cap__icon { color: var(--flame-bright); }
.cap__item h3 { font-size: 1.02rem; margin-bottom: var(--sp-2); }
.cap__item p { font-size: var(--fs-xs); line-height: 1.75; }

/* ==========================================================================
   5. 技术栈墙
   ========================================================================== */
.techwall {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  max-width: 940px;
  margin-inline: auto;
}
.techwall .tag { font-size: var(--fs-sm); padding: 8px 18px; }

/* 分组版技术栈（软件页） */
.techgroup { display: grid; gap: var(--sp-5); }
.techgroup__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--sp-5);
  align-items: start;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.techgroup__row:last-child { border-bottom: none; padding-bottom: 0; }
.techgroup__label { font-weight: 700; font-size: var(--fs-sm); color: var(--ice-bright); padding-top: 4px; }
@media (max-width: 640px) {
  .techgroup__row { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ==========================================================================
   6. 案例卡
   ========================================================================== */
.cases { display: grid; gap: var(--sp-5); }

.case {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-7);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.case:hover { border-color: var(--line-ice); background: var(--bg-card-hover); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; gap: var(--sp-5); } }

.case__industry {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--flame-bright);
  margin-bottom: var(--sp-3);
}
.case__title { margin-bottom: var(--sp-5); }

.case__block + .case__block { margin-top: var(--sp-4); }
.case__block h4 {
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  color: var(--ice-bright);
  margin-bottom: var(--sp-2);
}
.case__block p { font-size: var(--fs-sm); line-height: 1.8; }

.case__metrics {
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: rgba(56, 189, 248, .06);
  border: 1px solid var(--line-ice);
}
.case__metric { display: grid; gap: 2px; }
.case__metric b {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--grad-ice);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case__metric span { font-size: var(--fs-xs); color: var(--fg-dim); }

.case__tags { margin-top: var(--sp-5); }

/* 首页精选案例（紧凑卡） */
.case-mini { display: flex; flex-direction: column; height: 100%; }
.case-mini__industry {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--flame-bright);
  margin-bottom: var(--sp-3);
}
.case-mini h3 { font-size: 1.08rem; margin-bottom: var(--sp-3); }
.case-mini p { font-size: var(--fs-sm); line-height: 1.8; }
.case-mini__foot { margin-top: auto; padding-top: var(--sp-5); }
.case-mini__hl {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ice-bright);
  margin-bottom: var(--sp-4);
}

/* ==========================================================================
   7. 内页 Hero（紧凑版）
   ========================================================================== */
.page-hero { padding-block: clamp(48px, 6vw, 84px) clamp(32px, 4vw, 56px); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: var(--sp-5); }
.page-hero p { font-size: var(--fs-lead); line-height: 1.9; max-width: 720px; }
.page-hero .tag-row { margin-top: var(--sp-6); }

/* ==========================================================================
   8. 服务详情块（软件页 / AIoT 页）
   ========================================================================== */
.service {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--sp-8);
  padding-block: var(--sp-8);
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: none; padding-top: 0; }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; gap: var(--sp-5); } }

.service__aside { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
@media (max-width: 900px) { .service__aside { position: static; } }
.service__aside h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: var(--sp-4) 0 var(--sp-3); }
.service__aside p { font-size: var(--fs-sm); }

.service__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 1080px) { .service__cols { grid-template-columns: 1fr; } }

.service__col h4 {
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  color: var(--ice-bright);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.service__col li {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  line-height: 1.7;
  padding: 6px 0 6px 16px;
  position: relative;
}
.service__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ice);
  opacity: .7;
}

/* ==========================================================================
   9. 端–边–云 架构图（AIoT 页）
   ========================================================================== */
.arch {
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-1);
  overflow-x: auto;
}
.arch svg { min-width: 720px; width: 100%; height: auto; }

/* ==========================================================================
   10. 合作模式对比（软件页）
   ========================================================================== */
.plan { display: flex; flex-direction: column; height: 100%; }
.plan__name { font-size: 1.15rem; font-weight: 700; margin-bottom: var(--sp-2); }
.plan__tagline { font-size: var(--fs-xs); color: var(--flame-bright); font-weight: 600; margin-bottom: var(--sp-5); }
.plan__rows { display: grid; gap: var(--sp-4); margin-top: auto; }
.plan__row { display: grid; gap: 3px; }
.plan__row dt { font-size: var(--fs-xs); color: var(--fg-dim); letter-spacing: .08em; }
.plan__row dd { font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.7; }

/* ==========================================================================
   11. 联系页
   ========================================================================== */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }

.contact-card { display: flex; flex-direction: column; }
.contact-card__label { font-size: var(--fs-xs); color: var(--fg-dim); letter-spacing: .12em; margin-bottom: var(--sp-2); }
.contact-card__value {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
  transition: color var(--t-fast) var(--ease);
}
a.contact-card__value:hover { color: var(--ice-bright); }
.contact-card__note { font-size: var(--fs-xs); color: var(--fg-dim); margin-top: var(--sp-3); }
.contact-card__foot { margin-top: auto; padding-top: var(--sp-5); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.copy-btn:hover { color: var(--ice-bright); border-color: var(--line-ice); background: var(--ice-soft); }
.copy-btn.is-done { color: #6EE7B7; border-color: rgba(110, 231, 183, .45); background: rgba(110, 231, 183, .1); }

/* 地图区块 */
.map {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-7);
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-strong);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 40px),
    var(--bg-1);
}
.map__pin { width: 40px; height: 40px; color: var(--flame); margin: 0 auto var(--sp-4); }
.map__addr { font-size: var(--fs-lead); font-weight: 600; color: var(--fg); }
.map__hint { font-size: var(--fs-xs); color: var(--fg-dim); margin-top: var(--sp-3); }

/* 咨询前准备清单 */
.checklist { display: grid; gap: var(--sp-4); counter-reset: ck; }
.checklist li {
  position: relative;
  padding: var(--sp-5) var(--sp-5) var(--sp-5) 64px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: border-color var(--t-fast) var(--ease);
}
.checklist li:hover { border-color: var(--line-ice); }
.checklist li::before {
  counter-increment: ck;
  content: counter(ck, decimal-leading-zero);
  position: absolute;
  left: var(--sp-5);
  top: var(--sp-5);
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.checklist b { display: block; margin-bottom: 4px; }
.checklist span { font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.75; }

/* ==========================================================================
   12. 关于页
   ========================================================================== */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
@media (max-width: 900px) { .about-intro { grid-template-columns: 1fr; gap: var(--sp-6); } }
.about-intro p + p { margin-top: var(--sp-4); }
.about-intro p { font-size: var(--fs-lead); line-height: 1.95; }

.emblem-panel {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(400px 240px at 28% 26%, rgba(255, 107, 53, .16), transparent 60%),
    radial-gradient(460px 260px at 72% 74%, rgba(56, 189, 248, .18), transparent 62%),
    var(--bg-1);
}
.emblem-panel img { width: min(46%, 190px); filter: drop-shadow(0 0 30px rgba(56, 189, 248, .3)); }

.promise { display: grid; gap: var(--sp-4); }
.promise li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.promise svg { width: 22px; height: 22px; color: var(--ice); margin-top: 3px; }
.promise b { display: block; margin-bottom: 3px; }
.promise span { font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.75; }

/* 8 步流程：4 列换两行（硬件交付流程用） */
.flow--wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--sp-6); }
@media (max-width: 992px) { .flow--wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow--wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
