/* =========================================================
   北京沃长宽通信有限公司 · 官网样式
   设计基准：1440 宽桌面稿 / 深蓝 #014DB2 + 暖白 #F9F9F9
   ========================================================= */
/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(76, 201, 240, .18) 0%, rgba(76, 201, 240, 0) 55%),
    linear-gradient(152deg, #014DB2 0%, #0A3A82 45%, #001645 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(80% 60% at 20% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 60% at 20% 0%, #000 0%, transparent 70%);
}

.hero-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  gap: 64px;
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark);
  backdrop-filter: blur(6px);
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4CC9F0;
  box-shadow: 0 0 0 4px rgba(76, 201, 240, .18);
}

.hero h1 {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.72;
  color: var(--on-dark);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 2px; }

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  background: var(--navy-deep);
  box-shadow: 0 30px 70px -30px rgba(0, 10, 30, .9);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 44%;
  /* 轻微放大，裁掉源图右下角的生成水印 */
  transform: scale(1.2);
  transform-origin: 46% 44%;
}

.hero-rule {
  height: 1px;
  background: rgba(255, 255, 255, .12);
  margin-top: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0 0;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat dt { order: 2; font-size: 13px; color: var(--on-dark-dim); }
.stat dd {
  order: 1;
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 96px 0; }

/* 锚点定位留出吸顶导航高度 */
section[id], footer[id] { scroll-margin-top: 96px; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 48px;
}
.pill {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.section-head h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.section-head p { font-size: 16px; color: var(--muted); max-width: 640px; }

/* ---------------- 业务与服务 ---------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(1, 77, 178, .22);
  box-shadow: 0 20px 44px -16px rgba(1, 77, 178, .18);
}

.card-lg { grid-column: span 3; padding: 32px; }

.card h3 { font-size: 22px; font-weight: 600; }
.card p { font-size: 14px; line-height: 1.72; color: var(--muted); }
.card-lg h3 { font-size: 22px; }

.ico-box {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
}
.ico-box svg { width: 28px; height: 28px; }
.ico-box.sm { width: 52px; height: 52px; border-radius: 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.tags li {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #F3F6FB;
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
}

.card-dark {
  background: var(--ink);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 24px 48px -24px rgba(10, 22, 40, .7);
}
.card-dark h3 { color: #fff; }
.card-dark p { color: var(--on-dark-dim); }
.ico-box.on-dark { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------------- 资费套餐 ---------------- */
.pricing { background: #fff; }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: transform .24s ease, box-shadow .24s ease;
}
.tier:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -20px rgba(1, 77, 178, .2); }

.tier-name { font-size: 20px; font-weight: 600; }
.tier-desc { font-size: 14px; color: var(--muted); margin-top: -8px; }

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 2px 0 2px;
}
.price span {
  font-size: clamp(36px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price em { font-style: normal; font-size: 15px; color: var(--muted); }

.feats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tick { width: 20px; height: 20px; flex: none; }

.tier .btn { margin-top: auto; }

.tier-featured {
  background: linear-gradient(160deg, #014DB2 0%, #0A3A82 55%, #001645 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-raised);
}
.tier-featured .tier-desc,
.tier-featured .price em { color: var(--on-dark-dim); }
.tier-featured:hover { box-shadow: 0 28px 60px -18px rgba(1, 77, 178, .5); }

.ribbon {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.price-note {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: #9CA3AF;
}

/* ---------------- 进场动画 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .tier:hover { transform: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .hero-row { grid-template-columns: minmax(0, 1fr) 420px; gap: 44px; }
}

/* 中等桌面：右侧主视觉占 540px，收紧标题字号避免换行 */
@media (min-width: 961px) and (max-width: 1400px) {
  .hero h1 { font-size: clamp(38px, 3.6vw, 50px); }
}

@media (max-width: 960px) {
  .hero { padding: 64px 0 56px; }
  .hero-row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; max-width: 520px; }
  .hero-stats { gap: 20px; }
  .section { padding: 72px 0; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .card, .card-lg { grid-column: span 3; }
  .card-lg { padding: 28px; }
  .tiers { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 680px) {

  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 34px; line-height: 1.3; }
  .hero-sub { font-size: 15px; line-height: 1.7; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; padding: 13px 18px; font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .stat dd { font-size: 24px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .card, .card-lg { grid-column: span 6; }
  .tier { padding: 26px; }
}
