/* ==========================================================================
   UI 工作台 官网样式
   设计 token 延续「UI 工作台」小程序：品牌蓝 #4d6bf5 / 紫渐变 / 深墨 #0d1240
   ========================================================================== */

:root {
  --brand: #4d6bf5;
  --brand-deep: #3f5ce0;
  --brand-grad: linear-gradient(135deg, #6b7efa 0%, #8b9fff 37%, #7e91fd 100%);
  --ink: #0d1240;
  --muted: #8a91b0;
  --line: #ebedfe;
  --lav: #ebedfe;
  --lav-2: #eaf0fd;
  --lav-3: #dde2ff;
  --page: #f9fafe;
  --white: #ffffff;
  --orange: #f5a623;
  --green: #27ae60;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(77, 107, 245, 0.08);
  --shadow-lg: 0 18px 48px rgba(77, 107, 245, 0.16);
  --container: 1120px;

  /* ---- 子页面用的别名（下单页 / 授权页 / 登录页 / 用户中心）----
     早期三个子页面内联样式里写的是下面这几个名字，这里统一补上，
     避免 var() 取不到值导致样式整条失效。 */
  --bg: #f9fafe;
  --text-1: #0d1240;
  --text-2: #4a5170;
  --text-3: #8a91b0;
  --shadow-card: 0 8px 32px rgba(77, 107, 245, 0.08);
  --danger: #e05a5a;
  --danger-bg: #fef1f1;
  --success: #0f9d58;
  --success-bg: #e8f7ef;
}

* { box-sizing: border-box; }

/* [hidden] 必须永远获胜：下面 img/.btn/.notice 等规则都显式设了 display，
   会压过浏览器默认的 [hidden]{display:none}，导致该隐藏的元素仍然显示
   （曾导致登录页两个表单同时展示、支付页骨架层盖住二维码） */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================= 通用按钮 ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(77, 107, 245, 0.28);
}
.btn-primary:hover { background: var(--brand-deep); }

.btn-light {
  background: #fff;
  color: var(--brand);
}
.btn-light:hover { background: #f4f6ff; }

.btn-outline {
  background: rgba(77, 107, 245, 0.08);
  color: var(--brand);
}
.btn-outline:hover { background: rgba(77, 107, 245, 0.14); }

.btn-ghost {
  background: transparent;
  color: var(--text-3);
}
.btn-ghost:hover { background: #f2f4ff; color: var(--brand); }

.btn-danger {
  background: rgba(224, 90, 90, 0.1);
  color: var(--danger);
}
.btn-danger:hover { background: rgba(224, 90, 90, 0.18); }

.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ========================= 顶部导航 ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 254, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(235, 237, 254, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--brand);
  display: inline-flex;
}
.brand-mark svg { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
  color: #4a5170;
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

/* ========================= Hero ========================= */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  left: -160px; top: -80px;
  background: radial-gradient(circle, rgba(139, 159, 255, 0.28), rgba(139, 159, 255, 0));
}
.hero::after {
  width: 380px; height: 380px;
  right: -140px; top: 40px;
  background: radial-gradient(circle, rgba(126, 145, 253, 0.24), rgba(126, 145, 253, 0));
}
.hero .container { position: relative; z-index: 1; }

.hero-title {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .5px;
  text-align: center;
  color: var(--ink);
}
.hero-sub {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  font-size: 17px;
  color: #5b6386;
}

/* 视频播放窗口 */
.hero-visual { margin-top: 48px; }

.video-frame {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(235, 237, 254, 0.9);
  box-shadow: var(--shadow-lg);
  background: #f4f6ff;
}

.video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: none;
}
.video-frame.playing .video-el { display: block; }
.video-frame.playing .video-poster { display: none; }

.video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 封面内的窗口示意铺满整个 16:9 画布 */
.video-poster .app-window {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.video-poster .app-body { flex: 1; min-height: 0; }

.poster-scrim {
  position: absolute;
  inset: 0;
  background: rgba(249, 250, 254, 0.68);
}

.poster-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.video-play {
  width: 76px;
  height: 76px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(77, 107, 245, 0.42);
  position: relative;
  transition: transform .18s ease, background .18s ease;
}
.video-play:hover { transform: scale(1.06); background: var(--brand-deep); }
.video-play:active { transform: scale(.98); }
.video-play svg { width: 32px; height: 32px; margin-left: 4px; }
.video-play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(77, 107, 245, 0.3);
  animation: playPulse 2.4s ease-out infinite;
}
@keyframes playPulse {
  0% { transform: scale(.92); opacity: .85; }
  70%, 100% { transform: scale(1.18); opacity: 0; }
}

.poster-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  padding: 6px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(77, 107, 245, 0.12);
}

.app-window {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(235, 237, 254, 0.9);
}
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #f4f6ff;
  border-bottom: 1px solid var(--line);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.app-title { margin-left: 10px; font-size: 13px; color: var(--muted); }

.app-body { display: flex; min-height: 300px; }

.app-side {
  width: 168px;
  padding: 22px 18px;
  background: #fafbff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-line { height: 10px; border-radius: 6px; background: var(--lav-3); }
.side-line.short { width: 62%; background: #e7eaff; }

.app-main {
  flex: 1;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.app-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.app-logo-mark {
  width: 58px; height: 58px;
  border-radius: 18px;
  background: var(--brand-grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(107, 126, 250, 0.35);
}
.app-logo-mark svg { width: 34px; height: 34px; }
.app-logo-text { font-size: 17px; font-weight: 700; color: var(--ink); }

.app-buttons {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-btn {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  background: var(--lav);
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.app-btn:nth-child(1) { background: var(--brand); color: #fff; }

/* ========================= 功能介绍 ========================= */
.features { padding: 72px 0 24px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 44px 0;
}
.feature.reverse .feature-media { order: 2; }
.feature.reverse .feature-text { order: 1; }

.feature-text h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}
.feature-text p {
  margin: 0 0 20px;
  color: #5b6386;
  font-size: 16px;
}

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: #3c436a;
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(77, 107, 245, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' stroke='%234d6bf5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 13px 13px no-repeat;
}

/* 右侧/左侧图示卡片 */
.feature-media {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(235, 237, 254, 0.9);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.mock { position: relative; }

/* mock 1：Prefab 层级 */
.mock-prefab { display: grid; gap: 14px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #f7f8ff;
  border: 1px solid var(--line);
}
.mock-row.child { margin-left: 26px; }
.mock-row.hi { background: var(--lav); border-color: var(--lav-3); }
.mock-node {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--brand); flex-shrink: 0;
}
.mock-row.child .mock-node { background: #a9b5f8; }
.mock-bar { height: 8px; border-radius: 6px; background: #dfe4ff; }
.mock-row.hi .mock-bar { background: #c3cdfb; }
.mock-tag {
  margin-left: auto;
  font-size: 12px;
  color: var(--brand);
  background: rgba(77, 107, 245, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.mock-badge {
  position: absolute;
  right: 18px; bottom: 16px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(39, 174, 96, 0.3);
}

/* mock 2：九宫格 */
.mock-nine { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.nine-grid {
  width: 210px; height: 210px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: #f2f4ff;
  border-radius: 16px;
}
.nine-cell { border-radius: 6px; }
.nine-cell.corner { background: var(--brand); opacity: .92; }
.nine-cell.edge { background: #a9b5f8; }
.nine-cell.center { background: var(--lav-3); }
.nine-meta { width: 100%; display: grid; gap: 10px; }
.nine-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  padding: 10px 14px;
  background: #f7f8ff;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.nine-line b { color: var(--ink); font-weight: 600; }

/* mock 3：工作流 */
.mock-flow { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-right: 0; }
.flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 12px;
  background: #f7f8ff;
  border: 1px solid var(--line);
}
.flow-idx {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.flow-name { font-size: 15px; color: var(--ink); font-weight: 600; }
.flow-state {
  margin-left: auto;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}
.flow-state.done { color: var(--green); background: rgba(39, 174, 96, 0.12); }
.flow-state.active { color: var(--orange); background: rgba(245, 166, 35, 0.14); }
.flow-line {
  width: 2px;
  height: 16px;
  margin-left: 31px;
  background: var(--lav-3);
}

/* ========================= 价格 ========================= */
.pricing { padding: 72px 0; }

.section-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}
.section-sub {
  margin: 0 auto 44px;
  max-width: 660px;
  text-align: center;
  color: #5b6386;
  font-size: 16px;
}

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

.price-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(235, 237, 254, 0.9);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card.featured {
  background: var(--brand-grad);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.price-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-name { font-size: 19px; font-weight: 700; color: var(--ink); }
.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-badge svg { width: 13px; height: 13px; }

.price-amount { display: flex; align-items: baseline; gap: 6px; }
.price-amount b { font-size: 40px; font-weight: 700; color: var(--ink); letter-spacing: -.5px; }
.price-amount span { font-size: 15px; color: var(--muted); }

.price-desc { font-size: 14px; color: var(--muted); }

.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.price-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: #3c436a;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(77, 107, 245, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' stroke='%234d6bf5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat;
}
.price-card .btn { margin-top: 6px; }

/* featured 卡内的文字反白 */
.price-card.featured .price-name,
.price-card.featured .price-amount b { color: #fff; }
.price-card.featured .price-amount span,
.price-card.featured .price-desc { color: rgba(255, 255, 255, 0.85); }
.price-card.featured .price-list li { color: rgba(255, 255, 255, 0.95); }
.price-card.featured .price-list li::before {
  background-color: rgba(255, 255, 255, 0.24);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.price-note {
  margin: 32px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ========================= 联系我们 ========================= */
.contact { padding: 24px 0 72px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(235, 237, 254, 0.9);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.contact-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--lav-2);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 30px; height: 30px; }
.contact-card h3 { margin: 0; font-size: 19px; color: var(--ink); }
.contact-card p { margin: 0; font-size: 14px; color: #5b6386; max-width: 300px; }

.qr {
  width: 168px; height: 168px;
  margin-top: 6px;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(45deg, #f2f4ff 0 8px, #eaf0fd 8px 16px);
  border: 1px dashed var(--lav-3);
  display: flex; align-items: center; justify-content: center;
}
.qr span { font-size: 13px; color: var(--muted); }

/* ========================= 页脚 ========================= */
.site-footer {
  background: #0d1240;
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  text-align: center;
}
.footer-line { margin: 4px 0; font-size: 13px; }
.footer-line.muted { color: rgba(255, 255, 255, 0.5); }
.footer-line a { color: rgba(255, 255, 255, 0.6); }
.footer-line a:hover { color: #fff; }

/* 法务链接行：用户协议 · 隐私政策 */
.footer-legal a { font-weight: 600; }
.footer-legal .sep {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
}

/* ========================= Toast ========================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  background: rgba(13, 18, 64, 0.94);
  color: #fff;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 100;
  max-width: calc(100% - 48px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   移动端（延续「UI 工作台」卡片风格）
   ========================================================================== */
@media (max-width: 820px) {
  .container { padding: 0 16px; }

  /* 导航 → 抽屉 */
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(77, 107, 245, 0.1);
    padding: 6px 16px 14px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 6px;
    border-bottom: 1px solid #f3f4ff;
    font-size: 16px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }

  /* Hero */
  .hero { padding: 40px 0 24px; }
  .hero-title { font-size: 29px; text-align: left; letter-spacing: 0; }
  .hero-sub { font-size: 15px; text-align: left; }

  .hero-visual { margin-top: 26px; }
  .video-frame { border-radius: var(--radius); }
  .video-play { width: 62px; height: 62px; }
  .video-play svg { width: 26px; height: 26px; margin-left: 3px; }
  .poster-name { font-size: 13px; padding: 5px 14px; }
  .poster-center { gap: 14px; }
  .app-side { display: none; }
  .app-main { padding: 24px 16px; }
  .app-logo-mark { width: 46px; height: 46px; border-radius: 14px; }
  .app-logo-mark svg { width: 27px; height: 27px; }
  .app-logo-text { font-size: 15px; }
  .app-buttons { gap: 10px; }
  .app-btn { padding: 12px; font-size: 13px; }

  /* 功能 → 堆叠卡片 */
  .features { padding: 40px 0 8px; }
  .feature,
  .feature.reverse {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 0;
  }
  .feature.reverse .feature-media { order: 0; }
  .feature.reverse .feature-text { order: 0; }

  .feature-media { padding: 22px; border-radius: var(--radius); }
  .feature-text h2 { font-size: 22px; }
  .feature-text p { font-size: 15px; }
  .check-list li { font-size: 14px; }

  .nine-grid { width: 176px; height: 176px; }
  .mock-row.child { margin-left: 16px; }

  /* 价格 → 卡片堆叠（同小程序风格：年卡整宽高亮，月/季并排紧凑） */
  .pricing { padding: 44px 0; }
  .section-title { font-size: 24px; }
  .section-sub { font-size: 15px; margin-bottom: 28px; }

  .price-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .price-card { padding: 22px 20px; border-radius: var(--radius); gap: 12px; }
  .price-card.featured {
    transform: none;
    grid-column: 1 / -1;
    order: -1;
  }
  .price-amount b { font-size: 34px; }

  /* 月 / 季卡紧凑化：只留名称与价格 */
  .price-grid .price-card:not(.featured) .price-desc,
  .price-grid .price-card:not(.featured) .price-list { display: none; }
  .price-grid .price-card:not(.featured) .price-amount b { font-size: 28px; }
  .price-grid .price-card:not(.featured) .btn { padding: 11px 16px; font-size: 14px; }
  .price-grid .price-card:not(.featured) .price-name { font-size: 16px; }

  /* 联系 → 堆叠 */
  .contact { padding: 8px 0 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-card { padding: 26px 22px; border-radius: var(--radius); }

  .site-footer { padding: 26px 0; }
  .footer-line { font-size: 12px; line-height: 1.9; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 25px; }
  .nine-grid { width: 150px; height: 150px; }
}

/* ==========================================================================
   子页面通用组件（登录 / 订单确认 / 用户中心）
   —— 延用同一套 token：品牌蓝 #4d6bf5 / 深墨 #0d1240 / 次要文字 #8a91b0
   ========================================================================== */

/* ---------- 顶部色带（对标用户中心 / 订单确认的整幅标题区） ---------- */
.band {
  position: relative;
  padding: 46px 0;
  background: var(--brand-grad);
  color: #fff;
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  right: -80px; top: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.band h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .5px;
  text-align: center;
}
.band .band-sub {
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- 导航右侧账号区 ---------- */
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  max-width: 220px;
  transition: border-color .15s ease, color .15s ease;
}
.nav-user-btn:hover { border-color: #c9d3f8; color: var(--brand); }
.nav-user-btn .nav-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-user-btn .nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-user-btn .nav-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 60;
}
.nav-user-menu.open { display: block; }
.nav-user-menu a,
.nav-user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-2);
  cursor: pointer;
}
.nav-user-menu a:hover,
.nav-user-menu button:hover { background: #f4f6ff; color: var(--brand); }
.nav-user-menu .sep { height: 1px; background: var(--line); margin: 5px 8px; }

/* ---------- 卡片面板 ---------- */
.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(235, 237, 254, 0.9);
  padding: 28px 26px;
}
.panel + .panel { margin-top: 18px; }
.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.panel-hint { margin: 6px 0 0; font-size: 13px; color: var(--text-3); line-height: 1.7; }
.panel-hint a { color: var(--brand); font-weight: 600; }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 7px;
  font-weight: 500;
}
.field-label .req { color: var(--danger); margin-left: 3px; }
.input,
.select,
.textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f7;
  background: #fbfcff;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(77, 107, 245, 0.12);
}
.input::placeholder { color: #b8c0d8; }
.input[disabled] { background: #f4f6fb; color: #9aa2bd; cursor: not-allowed; }
.input-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .6px; }
.field-tip { font-size: 12.5px; color: var(--text-3); margin: 6px 0 0; line-height: 1.7; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.form-grid .span-2 { grid-column: 1 / -1; }

/* ---------- 数据表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}
.table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-3);
  font-size: 13px;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 16px 14px;
  border-bottom: 1px solid #f3f4ff;
  color: var(--text-2);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #fbfcff; }
.table .idx { color: var(--text-3); width: 44px; }
.table .name { color: var(--ink); font-weight: 600; }
.table .num { color: var(--ink); font-variant-numeric: tabular-nums; }
.table .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: var(--ink);
  word-break: break-all;
}
.table .ops { white-space: nowrap; }
.table .ops .btn { padding: 6px 12px; font-size: 12.5px; margin-right: 6px; }
.table-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 18px 14px 4px;
  font-size: 14px;
  color: var(--text-3);
}
.table-total b { font-size: 19px; color: var(--ink); font-weight: 700; }

/* ---------- 状态标签 ---------- */
.pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-green { color: var(--success); background: var(--success-bg); }
.pill-blue { color: var(--brand); background: rgba(77, 107, 245, 0.1); }
.pill-gray { color: #7d859e; background: #f0f2f8; }
.pill-orange { color: #c67c00; background: rgba(245, 166, 35, 0.16); }
.pill-red { color: var(--danger); background: var(--danger-bg); }

/* ---------- 空状态 ---------- */
.empty-state {
  padding: 46px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}
.empty-state .es-icon {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--lav-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.empty-state .es-icon svg { width: 26px; height: 26px; }
.empty-state p { margin: 0 0 6px; }
.empty-state a { color: var(--brand); font-weight: 600; }

/* ---------- 小提示条 ---------- */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
  background: #f4f7ff;
  color: var(--text-2);
}
.notice .notice-tag {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  padding: 2px 9px;
  border-radius: 999px;
}
.notice.warn { background: #fff8ec; }
.notice.warn .notice-tag { background: var(--orange); }
.notice.ok { background: var(--success-bg); }
.notice.ok .notice-tag { background: var(--success); }

/* ---------- 子页面外框（登录 / 下单 / 授权 / 用户中心共用） ---------- */
.subpage { background: var(--bg); }
/* 子页面头部不吸顶，但必须保留定位与层级：backdrop-filter 会让 header
   静默创建堆叠上下文（z=0），没有显式 z-index 时 DOM 靠后的 .band
   （position:relative）会把整个 header 连同用户下拉菜单压在下面 */
.subpage .site-header { position: relative; z-index: 50; }
.sub-main { padding: 36px 0 72px; }
.narrow { max-width: 560px; }
.sub-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  transition: color .15s ease, border-color .15s ease;
}
.sub-back:hover { color: var(--brand); border-color: #c9d3f8; }

@media (max-width: 820px) {
  .band h1 { font-size: 21px; }
  .panel { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .nav-user-btn { max-width: 150px; padding: 7px 11px; }
  .table { font-size: 13px; }
  .table td { padding: 13px 10px; }
  .table th { padding: 0 10px 10px; }
}
