/* ============================================================
   王工建站 · 落地页样式
   设计基调:深色科技 + 干净留白,深浅区块交替,卡片化
   手机优先(<768px 主设计目标),≥768px 桌面增强
   零外部依赖:系统字体栈、纯 CSS 绘制、无图片
   ============================================================ */

:root {
  /* —— 锁定色板(不得更改) —— */
  --navy:   #0F1F3D;   /* 深空蓝 */
  --indigo: #4F46E5;   /* 靛紫 */
  --cyan:   #22D3EE;   /* 电光青 */
  --blue:   #1E40AF;   /* 品牌蓝 */
  --red:    #C0392B;   /* 王工红(印章) */
  --paper:  #F4F6FB;   /* 浅底 */
  --ink:    #1E293B;   /* 深字 */
  --white:  #FFFFFF;   /* 反白 */
  --gold:   #D4A24E;   /* 精工角标 */

  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 31, 61, .08);
  --shadow-lg: 0 20px 50px rgba(15, 31, 61, .14);
  --maxw: 1080px;

  --font: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;        /* 保险:杜绝任何横向滚动 */
  overflow-wrap: break-word; /* 兜底:超长串也不撑破窄屏 */
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ============================================================
   红印 Logo（纯 CSS 印章:红色圆角方块 + 白字 2×2）
   ============================================================ */
.stamp {
  display: inline-flex;
  width: 66px;
  height: 66px;
  border-radius: 8px;
  background: var(--red);
  box-shadow: 0 6px 18px rgba(192, 57, 43, .38), inset 0 0 0 2px rgba(255, 255, 255, .14);
  padding: 7px;
}
.stamp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  place-items: center;
}
.stamp__grid span {
  color: var(--white);
  font-weight: 800;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 1px;
}
.stamp--sm { width: 56px; height: 56px; padding: 6px; }
.stamp--sm .stamp__grid span { font-size: 18px; }

/* ============================================================
   内联 SVG 图标
   ============================================================ */
.ico-check {
  width: 16px; height: 16px;
  flex: none;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-arrow {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   区块 1 · Hero（深色对角渐变）
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2b56 45%, var(--indigo) 100%);
  color: var(--white);
  padding: 56px 0 76px;
  text-align: center;
}
.hero__glow {
  position: absolute;
  top: -30%;
  right: -20%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(34, 211, 238, .22) 0%, rgba(34, 211, 238, 0) 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero__logo { margin-bottom: 30px; }

.hero__title {
  font-size: clamp(2.05rem, 8.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: .5px;
  margin: 0 auto 18px;
  max-width: 14ch;
}
.hero__subtitle {
  font-size: clamp(.98rem, 3.7vw, 1.2rem);
  color: rgba(255, 255, 255, .82);
  max-width: 32ch;
  margin: 0 auto 28px;
}

.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 34px;
  max-width: 520px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(34, 211, 238, .34);
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

/* CTA 按钮:品牌蓝 → 电光青渐变 */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(34, 211, 238, .32);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(34, 211, 238, .42); }
.cta:active { transform: translateY(0); filter: brightness(.97); }
.cta:focus-visible { outline: 3px solid rgba(34, 211, 238, .6); outline-offset: 3px; }
.cta .ico-arrow { transition: transform .18s ease; }
.cta:hover .ico-arrow { transform: translateX(3px); }

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: 62px 0; }
.section--light { background: var(--paper); }
.section--dark {
  background: linear-gradient(160deg, var(--navy) 0%, #16264c 100%);
  color: var(--white);
}
.section__title {
  font-size: clamp(1.5rem, 5.6vw, 2.15rem);
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  letter-spacing: .5px;
  margin-bottom: 40px;
}
.section__title--light { color: var(--white); }

/* ============================================================
   区块 2 · 四档卡片
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(15, 31, 61, .06);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card--premium {
  border: 1px solid rgba(212, 162, 78, .5);
  background: linear-gradient(180deg, #fffdf8 0%, var(--white) 60%);
}
.card__name {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.card__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 14px;
}
.card__unit { font-size: 1rem; font-weight: 600; color: #64748b; }
.card__desc { font-size: .96rem; color: #475569; }

.card__top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 24px;        /* 无角标卡也占位,保证四卡标题基线对齐 */
  margin-bottom: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: .76rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: .5px;
  white-space: nowrap;     /* 角标自身不换行 */
}
.badge--fast { color: var(--navy); background: var(--cyan); }
.badge--premium { color: #4a3410; background: linear-gradient(135deg, #f0d090, var(--gold)); }

.pricing__note {
  text-align: center;
  font-size: .92rem;
  color: #64748b;
  margin-top: 24px;
}

/* 红色左边框提示卡 */
.notice {
  margin-top: 30px;
  background: var(--white);
  border-left: 5px solid var(--red);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.notice__title {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
}
.notice__text { font-size: .96rem; color: #475569; }

/* ============================================================
   区块 3 · 为什么选王工
   ============================================================ */
.reasons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.reason { position: relative; padding-left: 18px; }
.reason::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--indigo));
}
.reason__title {
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
}
.reason__text { font-size: 1rem; color: rgba(255, 255, 255, .82); }

/* ============================================================
   区块 4 · 服务流程
   ============================================================ */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  position: relative;
}
.step__num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-weight: 800;
  font-size: .98rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--indigo));
}
.step__label { font-size: 1rem; font-weight: 600; color: var(--ink); }

/* ============================================================
   区块 5 · Footer
   ============================================================ */
.footer {
  background: linear-gradient(180deg, #0c1830 0%, var(--navy) 100%);
  color: var(--white);
  padding: 52px 0 46px;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer__slogan { font-size: 1.08rem; font-weight: 600; color: var(--white); }
.cta--ghost {
  background: transparent;
  border: 1.5px solid rgba(34, 211, 238, .55);
  box-shadow: none;
  font-size: .98rem;
  padding: 12px 26px;
}
.cta--ghost:hover { background: rgba(34, 211, 238, .1); transform: translateY(-2px); box-shadow: none; }

/* ============================================================
   复制提示 toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  background: rgba(15, 31, 61, .96);
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  border: 1px solid rgba(34, 211, 238, .4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 999;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
  max-width: calc(100vw - 40px);
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================================================
   滚动淡入(渐进增强)
   仅当 <html class="js"> 时才隐藏——JS 失效则内容默认全可见
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .cta, .card, .ico-arrow { transition: none !important; }
}

/* ============================================================
   ≥768px 桌面增强
   ============================================================ */
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 84px 0 100px; }
  .hero__logo { margin-bottom: 38px; }
  .section { padding: 88px 0; }
  .section__title { margin-bottom: 54px; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 22px; }

  .reasons { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .reason { padding-left: 20px; }

  /* 流程 6 步横向 */
  .steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
    gap: 10px 8px;
  }
  .step { flex-direction: column; text-align: center; gap: 10px; padding: 20px 14px; min-width: 118px; flex: 1 1 118px; max-width: 150px; }
  .step::after {
    content: "→";
    position: absolute;
    right: -12px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-weight: 700;
    font-size: 1.1rem;
  }
  .step:last-child::after { content: none; }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .step::after { right: -10px; }
}
