/**
 * pages.css — 子页面（模板展示 / APP）专用样式
 * 依赖 index.html 同款 5 个 CSS 文件提供的 CSS 变量（--primary、--surface-solid 等，
 * 定义于 .home-page 作用域），因此子页面沿用 .home-page 包装结构。
 */

/* ============ 页面 Hero ============ */
/* 特异性需压过首页的 .home-main>section:nth-of-type(odd) 背景（--section-bg-a 为白色） */
.home-page .home-main > section.page-hero {
  background: linear-gradient(135deg, #071a4d 0%, #0d37d9 58%, #165dff 100%) !important;
  padding: 156px 0 92px;
  color: #fff;
  overflow: hidden;
}
.home-main > section.page-hero::after {
  content: "";
  position: absolute;
  right: -170px;
  top: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  pointer-events: none;
}
.page-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.page-hero__title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #fff;
}
.page-hero__desc {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 10px;
}
.page-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.page-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, transform 0.25s ease;
}
.page-hero__chip:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.page-hero__chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--t-accent, #fff);
}

/* ============ 通用小按钮 ============ */
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--primary-deep, #0d37d9);
  border: 0;
  border-radius: 999px;
  padding: 12px 36px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

/* ============ 模板展示：左右布局 ============ */
.tpl-row {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 56px;
  align-items: center;
}
.tpl-row--flip .tpl-info {
  order: 2;
}
.tpl-info__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  background: var(--primary-soft, var(--color-fill-2));
  border: 1px solid color-mix(in oklab, var(--primary) 22%, transparent);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.tpl-info__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--color-text-1);
}
.tpl-info__desc {
  color: var(--color-text-2);
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 22px;
}
.tpl-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.tpl-feats li {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--color-fill-2);
  border: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--color-text-1);
}

/* 模板预览 Tab */
.tpl-tabs {
  display: inline-flex;
  background: var(--color-fill-2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}
.tpl-tabs button {
  border: 0;
  background: transparent;
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  color: var(--color-text-2);
  transition: all 0.25s ease;
}
.tpl-tabs button.is-active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.tpl-pane {
  display: none;
}
.tpl-pane.is-active {
  display: block;
  animation: xh-fade 0.35s ease;
}
@keyframes xh-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- 设备样机（浏览器窗口） ---- */
.tpl-device {
  border-radius: 14px;
  background: #1d2129;
  box-shadow: 0 24px 60px rgba(13, 55, 217, 0.16);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.tpl-device__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #262b35;
}
.tpl-device__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tpl-device__dot:nth-child(1) { background: #ff5f57; }
.tpl-device__dot:nth-child(2) { background: #febc2e; }
.tpl-device__dot:nth-child(3) { background: #28c840; }
.tpl-device__url {
  flex: 1;
  margin-left: 8px;
  height: 22px;
  border-radius: 6px;
  background: #3a4150;
  color: #9aa3b2;
  font-size: 11px;
  line-height: 22px;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
}
.tpl-screen {
  background: var(--t-bg, #0d1f4d);
  color: var(--t-text, #eaf0ff);
}

/* 样机里的迷你站点 UI（骨架） */
.tpl-ui__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--t-nav, #0a1740);
}
.tpl-ui__brand {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--t-accent, #4d7fff);
}
.tpl-ui__menu {
  display: flex;
  gap: 8px;
  margin-left: 10px;
}
.tpl-ui__menu i {
  display: inline-block;
  width: 26px;
  height: 5px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.35;
}
.tpl-ui__login {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.tpl-ui__login i {
  width: 42px;
  height: 16px;
  border-radius: 8px;
  border: 1px solid currentColor;
  opacity: 0.6;
}
.tpl-ui__login i:last-child {
  background: var(--t-accent, #4d7fff);
  border: 0;
  opacity: 1;
}
.tpl-ui__hero {
  margin: 14px 16px;
  border-radius: 10px;
  padding: 18px 16px 16px;
  background: linear-gradient(135deg, var(--t-soft, rgba(77, 127, 255, 0.35)), transparent 72%), var(--t-card, #16306e);
}
.tpl-ui__h1 {
  width: 52%;
  height: 10px;
  border-radius: 5px;
  background: currentColor;
  opacity: 0.92;
}
.tpl-ui__h2 {
  width: 38%;
  height: 7px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.45;
  margin-top: 9px;
}
.tpl-ui__cta {
  width: 66px;
  height: 18px;
  border-radius: 9px;
  background: var(--t-accent, #4d7fff);
  margin-top: 13px;
}
.tpl-ui__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}
.tpl-ui__card {
  border-radius: 8px;
  background: var(--t-card, #16306e);
  padding: 10px 8px;
}
.tpl-ui__card i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--t-accent, #4d7fff);
  opacity: 0.85;
}
.tpl-ui__card b {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.5;
  margin-top: 7px;
}
.tpl-ui__card s {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.22;
  margin-top: 5px;
  text-decoration: none;
}

/* ---- 设备样机（手机） ---- */
.tpl-phone-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}
.tpl-phone {
  width: 200px;
  border-radius: 28px;
  border: 8px solid #1d2129;
  background: var(--t-bg, #0d1f4d);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
}
.tpl-phone__notch {
  width: 72px;
  height: 15px;
  border-radius: 0 0 12px 12px;
  background: #1d2129;
  margin: 0 auto;
}
.tpl-phone .tpl-ui__nav {
  padding: 8px 10px;
}
.tpl-phone .tpl-ui__menu {
  display: none;
}
.tpl-phone .tpl-ui__hero {
  margin: 10px;
  padding: 14px 12px 12px;
}
.tpl-phone .tpl-ui__h1 {
  width: 70%;
}
.tpl-phone .tpl-ui__h2 {
  width: 48%;
}
.tpl-phone .tpl-ui__grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 0 10px 10px;
}
.tpl-ui__tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 9px 10px;
  background: var(--t-nav, #0a1740);
}
.tpl-ui__tabbar i {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: currentColor;
  opacity: 0.3;
}
.tpl-ui__tabbar i:first-child {
  background: var(--t-accent, #4d7fff);
  opacity: 1;
}

/* ============ 实时互动功能 ============ */
.live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.live-card {
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.live-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(13, 55, 217, 0.12);
}
.live-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}
.live-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft, var(--color-fill-2));
  color: var(--primary);
  margin-bottom: 20px;
}
.live-card__title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--color-text-1);
}
.live-card__desc {
  color: var(--color-text-2);
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}
.live-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.live-card__cta:hover {
  text-decoration: underline;
}

/* ============ 建站流程 ============ */
.proc-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.proc-step {
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 30px 20px 26px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.proc-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(13, 55, 217, 0.1);
}
.proc-step__num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 16px rgba(13, 55, 217, 0.28);
}
.proc-step__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--color-text-1);
}
.proc-step__desc {
  font-size: 13px;
  color: var(--color-text-3);
  line-height: 1.7;
  margin: 0;
}

/* ============ 页尾 CTA 横幅 ============ */
.page-cta {
  border-radius: 24px;
  background: var(--primary-gradient);
  color: #fff;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-cta::before,
.page-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-cta::before {
  width: 340px;
  height: 340px;
  left: -120px;
  bottom: -180px;
  background: rgba(255, 255, 255, 0.1);
}
.page-cta::after {
  width: 220px;
  height: 220px;
  right: -70px;
  top: -110px;
  background: rgba(255, 255, 255, 0.12);
}
.page-cta__title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}
.page-cta__desc {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  margin: 0 0 30px;
  position: relative;
  z-index: 1;
}
.page-cta .btn-white {
  position: relative;
  z-index: 1;
}

/* ============ APP 页：六大特性 ============ */
.app-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.app-feature {
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.app-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(13, 55, 217, 0.12);
}
.app-feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-soft, var(--color-fill-2));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.app-feature__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--color-text-1);
}
.app-feature__desc {
  font-size: 13.5px;
  color: var(--color-text-3);
  line-height: 1.8;
  margin: 0;
}

/* ============ APP 页：后台系统条目 ============ */
.bk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px dashed var(--border-soft);
  scroll-margin-top: 112px;
}
.bk-row:last-child {
  border-bottom: 0;
}
.bk-row--flip .bk-info {
  order: 2;
}
.bk-info__no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin: 0 0 10px;
}
.bk-info__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--color-text-1);
}
.bk-info__desc {
  color: var(--color-text-2);
  font-size: 14.5px;
  line-height: 1.9;
  margin: 0;
}

/* 后台界面小样机 */
.bk-shot {
  border-radius: 14px;
  background: #1d2129;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  display: flex;
  min-height: 220px;
}
.bk-shot__side {
  width: 56px;
  background: #262b35;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.bk-shot__side i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #3a4150;
}
.bk-shot__side i:first-child {
  background: var(--t-accent, #4d7fff);
}
.bk-shot__main {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--t-bg, #0d1f4d);
}
.bk-shot__top {
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.bk-shot__top i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--t-accent, #4d7fff);
}
.bk-shot__top b {
  width: 70px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
}
.bk-shot__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bk-shot__cards i {
  height: 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--t-accent, #4d7fff);
}
.bk-shot__chart {
  flex: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px;
}
.bk-shot__chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--t-accent, #4d7fff);
  opacity: 0.75;
}
.bk-shot__chart i:nth-child(1) { height: 34%; }
.bk-shot__chart i:nth-child(2) { height: 58%; }
.bk-shot__chart i:nth-child(3) { height: 42%; }
.bk-shot__chart i:nth-child(4) { height: 78%; }
.bk-shot__chart i:nth-child(5) { height: 55%; }
.bk-shot__chart i:nth-child(6) { height: 92%; }

/* ============ APP 页：卓越升级卡片 ============ */
.up-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.up-card {
  background: var(--surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.up-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(13, 55, 217, 0.12);
}
.up-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}
.up-card__title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--color-text-1);
}
.up-card__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
}
.up-card__item i {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-soft, var(--color-fill-2));
  color: var(--primary);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.up-card__item b {
  font-size: 14.5px;
  color: var(--color-text-1);
  font-weight: 700;
}
.up-card__item span {
  display: block;
  font-size: 13px;
  color: var(--color-text-3);
  line-height: 1.7;
  margin-top: 2px;
}
.up-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.up-card__cta:hover {
  text-decoration: underline;
}

/* ============ APP 页：下载 CTA ============ */
.dl-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.dl-qr {
  width: 148px;
  height: 148px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  flex: none;
}
.dl-qr svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: crispEdges;
}
.dl-text {
  text-align: left;
  max-width: 520px;
}
.dl-text__title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 12px;
}
.dl-text__desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 24px;
}
.dl-text__platforms {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.dl-text__platforms span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

/* ============ 响应式 ============ */
/* 导航 12 项紧凑化（与原 scoped 规则同特异性，pages.css 靠后生效） */
.site-nav__menu[data-v-131a23f8] { gap: 11px; }
.site-nav__link[data-v-131a23f8] { font-size: 13px; padding: 6px 0; }
.site-nav__inner[data-v-131a23f8] { gap: 16px; }

@media (max-width: 1024px) {
  .tpl-row,
  .bk-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tpl-row--flip .tpl-info,
  .bk-row--flip .bk-info {
    order: 0;
  }
  .proc-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-features,
  .up-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .page-hero__title {
    font-size: 32px;
  }
  .live-grid,
  .app-features,
  .up-grid {
    grid-template-columns: 1fr;
  }
  .proc-steps {
    grid-template-columns: 1fr;
  }
  .page-cta {
    padding: 48px 24px;
  }
  .dl-text {
    text-align: center;
  }
  .dl-text__platforms {
    justify-content: center;
  }
}
