/* 金雕猎查 - 移动端 H5 样式（绿色主题） */
:root {
  --primary: #2d9d78;
  --primary-dark: #238f6a;
  --primary-light: #e8f5f0;
  --bg: #f5f7fa;
  --card-bg: #fff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; color: var(--text); background: var(--bg); line-height: 1.5; }
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.main { flex: 1; padding: 0; padding-bottom: 0; }

/* ========== 首页顶部区块（邀请好友之上：hero + 检测卡片 + 推广分享，统一背景 topback.png） ========== */
.home-top-section {
  position: relative;
  overflow: hidden;
}
.home-top-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/assets/img/home/topback.png') no-repeat center top;
  background-size: cover;
  background-color: #e8f5f0;
}
.home-top-section .home-hero,
.home-top-section .home-cards {
  position: relative;
  z-index: 1;
}
.home-top-section .hero-bg {
  background: transparent;
}
.home-top-section .hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(232,245,240,.3) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}

/* ========== 首页 Hero ========== */
.home-hero {
  position: relative;
  padding: 28px 20px 24px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #e8f5f0 0%, #f0f7f4 40%, #fff 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 120px;
  opacity: .15;
}
.hero-inner { position: relative; z-index: 1;}
.home-hero h1 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.hero-sub { margin: 0 0 20px; font-size: 1rem; color: var(--primary); font-weight: 500; }
.hero-tabs { display: flex; gap: 10px; }
.hero-tab {
  margin-top: 10px;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--primary);
}
.hero-tab img { width: 8px; height: 7px;}

/* ========== 首页 检测卡片 + 入口 ========== */
.home-cards { padding: 0 16px 20px; }
.detect-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.detect-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 20px 16px;
  text-decoration: none;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 110px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.detect-card--personal {
  background-image: url('/assets/img/home/个人大数据检测@3x.png');
}
.detect-card--enterprise {
  background-image: url('/assets/img/home/个人大数据检测@3x.png');
}
.detect-card h3 {
  margin: 0 0 30px;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  text-align: left;
  letter-spacing: 0.02em;
}
.btn-go {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: #2d9d78;
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(45, 157, 120, 0.35);
}
.entry-cards-wrap {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 20px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.entry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
}
.entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #1f2937;
  padding: 0 8px;
}
.entry-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
  margin-bottom: 10px;
  opacity: .9;
}
.entry-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}
.entry-desc {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.3;
}
.entry-card-message { position: relative; }
.entry-badge {
  position: absolute;
  top: 0;
  right: 50%;
  transform: translate(50%, -50%);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #f5222d;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  box-sizing: border-box;
}

/* ========== 邀请好友 ========== */
.home-invite { padding: 0 16px 20px; }
.invite-box {
  background: #f7fcf8 url('/assets/img/home/Frame%2037@3x.png') no-repeat center;
  background-size: cover;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}
.invite-box h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #22b263;
}
.invite-box p {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  color: #666;
  line-height: 1.4;
}
.invite-stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 10px;
}
.invite-num {
  flex: 1;
  /* max-width: 140px; */
  min-height: 72px;
  /* padding: 14px 16px; */
  /* border-radius: 20px; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('/assets/img/home/Union.png') no-repeat center;
  background-size: contain;
  background-color: rgba(255,255,255,.85);
}
.invite-num-label {
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 4px;
}
.invite-num em {
  font-size: 1.375rem;
  font-weight: 700;
  font-style: normal;
  color: #22b263;
}
.btn-invite {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  background: #eaf7ef;
  color: #22b263;
  text-decoration: none;
}

/* ========== 首页轮播图（推广与新闻之间） ========== */
.home-carousel-wrap { padding: 0 16px 16px; }
.home-carousel {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
}
.home-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-carousel-track::-webkit-scrollbar { display: none; }
.home-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
}
.home-carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  vertical-align: top;
}
.home-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 0;
}
.home-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  cursor: pointer;
  transition: background .2s;
}
.home-carousel-dot.active { background: var(--primary); }

/* ========== 防骗测试（整张图） ========== */
.home-antiscam { padding: 0 16px 20px; }
.antiscam-img-full {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* ========== 新闻资讯 ========== */
.home-news {
  margin: 0 0 30px;
  padding: 0 16px 0;
  background: #f7f7f7;
  box-sizing: border-box;
}
.news-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.news-title-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex-shrink: 0;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
}
.news-item {
  border-bottom: 1px solid #f0f0f0;
}
.news-item:last-child { border-bottom: none; }
.news-item-link {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  align-items: flex-start;
  background: #fff;
}
.news-item-link:active { opacity: 0.9; }
.news-thumb {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #e8f5f0 0%, #c8e6d8 100%);
  position: relative;
  overflow: hidden;
}
.news-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(45, 157, 120, 0.06) 4px,
    rgba(45, 157, 120, 0.06) 8px
  );
  pointer-events: none;
}
.news-body {
  flex: 1;
  min-width: 0;
}
.news-body h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}
.news-body p {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #666;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-body time {
  font-size: 0.6875rem;
  color: #999;
}

/* ========== 资讯内页（富文本正文） ========== */
.news-detail {
  padding: 16px;
  padding-bottom: 90px;
  max-width: 100%;
  box-sizing: border-box;
}
.news-detail-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.news-detail-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.news-detail-time {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.news-detail-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
}
.news-detail-body.rich-text p {
  margin: 0 0 1em;
}
.news-detail-body.rich-text p:last-child { margin-bottom: 0; }
.news-detail-body.rich-text h2 { font-size: 1.125rem; margin: 1.2em 0 0.6em; font-weight: 700; }
.news-detail-body.rich-text h3 { font-size: 1.0625rem; margin: 1em 0 0.5em; font-weight: 600; }
.news-detail-body.rich-text h4 { font-size: 1rem; margin: 0.8em 0 0.4em; font-weight: 600; }
.news-detail-body.rich-text ul, .news-detail-body.rich-text ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}
.news-detail-body.rich-text li { margin-bottom: 0.3em; }
.news-detail-body.rich-text img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 8px;
}
.news-detail-body.rich-text a { color: var(--primary); text-decoration: none; }
.news-detail-body.rich-text a:hover { text-decoration: underline; }
.news-detail-body.rich-text blockquote {
  margin: 1em 0;
  padding: 0.5em 0 0.5em 1em;
  border-left: 4px solid var(--primary-light);
  color: var(--text-muted);
  background: var(--primary-light);
  border-radius: 0 8px 8px 0;
}
.news-detail-body.rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.875rem;
}
.news-detail-body.rich-text th, .news-detail-body.rich-text td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}
.news-detail-body.rich-text th { background: var(--primary-light); font-weight: 600; }
.news-detail-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.news-detail-back {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9375rem;
  text-decoration: none;
}
.news-detail-back:active { opacity: 0.9; }
.news-detail-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px;
}

/* ========== 常见问题页 ========== */
.faq-page { padding: 16px; }
.faq-page-header { margin-bottom: 20px; }
.faq-page-title { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.faq-page-body { font-size: 0.9375rem; line-height: 1.6; }
.faq-item { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; }
.faq-question { margin: 0 0 10px; font-size: 1rem; font-weight: 600; color: var(--text); }
.faq-answer { margin: 0; color: var(--text-muted); }
.faq-answer p { margin: 0 0 0.5em; }
.faq-empty { text-align: center; color: var(--text-muted); padding: 40px 16px; }
.faq-page-footer { margin-top: 28px; }
.faq-page-back { display: inline-block; padding: 10px 20px; background: var(--primary); color: #fff; border-radius: 8px; font-size: 0.9375rem; text-decoration: none; }
.faq-page-back:active { opacity: 0.9; }

/* 底部留白（避免被悬浮导航遮挡） */
.home-bottom-pad { height: 82px; }

/* ========== 底部悬浮导航栏 ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* min-height: 64px; */
  /* padding: 0px 0 6px; */
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0));
  background: var(--card-bg);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}
.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 0;
  gap: 4px;
}
.bottom-nav .nav-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.bottom-nav .nav-img {
  width: 80px;
  height: 40px;
  object-fit: contain;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* 选中：显示选中图，隐藏未选中图 */
.bottom-nav .nav-img-active { display: none; }
.bottom-nav .nav-item.active .nav-img-active { display: block; }
.bottom-nav .nav-item.active .nav-img-inactive { display: none; }
/* 未选中：显示未选中图 */
.bottom-nav .nav-img-inactive { display: block; }

.bottom-nav .nav-item.active { color: var(--primary); font-weight: 600; }

/* ========== 服务详情页（与主页配色统一） ========== */
.service-detail-section { padding: 0; }
.service-detail-banner {
  background: linear-gradient(180deg, var(--primary-light) 0%, #e0f2eb 100%);
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  padding: 16px 20px;
  border-radius: 14px 14px 0 0;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.service-detail-card {
  background: var(--card-bg);
  border-radius: 0 0 14px 14px;
  padding: 20px 20px 28px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.service-detail-desc-card {
  border-radius: 14px;
  margin-top: 4px;
}
.service-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.service-detail-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-detail-bar {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.service-detail-sample {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
}
.service-detail-sample:hover { color: var(--primary); }

/* 示例报告弹层 */
.sample-report-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.sample-report-popup--show { display: flex; }
.sample-report-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.sample-report-popup-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sample-report-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sample-report-popup-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.sample-report-popup-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.sample-report-popup-close:hover { color: var(--text); }
.sample-report-popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
}
/* 示例报告内容样式（与真实报告一致） */
.sample-report-popup-body .report-wrap.report-sample {
  max-width: none;
  padding: 16px 20px;
  box-shadow: none;
  border-radius: 0;
}
.sample-report-popup-body .report-header {
  border-bottom: 2px solid #1a73e8;
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.sample-report-popup-body .report-title {
  font-size: 1rem;
  font-weight: bold;
  color: #1a73e8;
  margin: 0 0 6px 0;
}
.sample-report-popup-body .report-meta {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
}
.sample-report-popup-body .report-block {
  margin-bottom: 16px;
  padding: 12px;
  background: #fafafa;
  border-radius: 6px;
  border-left: 4px solid #1a73e8;
}
.sample-report-popup-body .report-block-title {
  font-size: 0.875rem;
  font-weight: bold;
  color: #1a73e8;
  margin: 0 0 6px 0;
}
.sample-report-popup-body .report-status { font-size: 0.75rem; margin: 0 0 8px 0; }
.sample-report-popup-body .report-ok { color: #0d8050; }
.sample-report-popup-body .report-fail { color: #c5221f; }
.sample-report-popup-body .report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  margin-top: 8px;
}
.sample-report-popup-body .report-table th,
.sample-report-popup-body .report-table td {
  border: 1px solid #e0e0e0;
  padding: 6px 8px;
  text-align: left;
}
.sample-report-popup-body .report-table th {
  background: #e8f0fe;
  color: #1a73e8;
}
.sample-report-popup-body .report-table td { word-break: break-all; }
.sample-report-popup-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sample-report-popup-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}
.sample-report-popup-btn:active { opacity: .9; }

.service-form-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  min-width: 0;
}
.service-form-row:last-of-type { border-bottom: none; }
.service-form-error {
  margin-bottom: 12px; padding: 10px 12px; background: #fef2f2; color: #c5221f; border-radius: 6px; font-size: 14px;
}
.service-form-label {
  flex-shrink: 0;
  width: 72px;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}
.service-form-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
}
.service-form-input::placeholder { color: var(--text-muted); }
.service-getcode {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.8125rem;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}
.service-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 18px;
}
.service-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.service-agree-text {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
}
.service-agree-text a {
  color: var(--primary);
  text-decoration: underline;
}
.service-submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(45, 157, 120, 0.35);
  margin-bottom: 14px;
}
.service-submit-btn:active { opacity: .9; }
.service-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.service-disclaimer {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.service-price-line {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: var(--text);
}
.service-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e53935;
}
.service-desc {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.service-detail-desc-card .service-detail-title {
  margin-bottom: 10px;
}
.service-detail-desc-card .service-disclaimer {
  margin-bottom: 0;
}
a.service-submit-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  box-sizing: border-box;
}

/* ========== 支付页面（与主页配色统一） ========== */
.payment-section { padding: 0; }
.payment-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 20px 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.payment-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding-left: 0;
}
.payment-card-service {
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(45, 157, 120, 0.08) 100%);
  border: 1px solid rgba(45, 157, 120, 0.2);
}
.payment-service-name {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.payment-service-amount {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.payment-service-amount .payment-amount {
  font-size: 1.25rem;
  margin-left: 4px;
}
.payment-service-value {
  font-weight: 600;
  color: var(--primary);
}
.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.payment-row:last-child { border-bottom: none; }
.payment-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.payment-value {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}
.payment-order-no {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  word-break: break-all;
}
.payment-row-amount { padding-top: 14px; }
.payment-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e53935;
}
.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.payment-method:last-child { margin-bottom: 0; }
.payment-method input { display: none; }
.payment-method:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}
.payment-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}
.payment-method-alipay .payment-method-icon {
  background: #1677ff;
}
.payment-method-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}
.payment-actions { margin-top: 24px; }
.payment-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(45, 157, 120, 0.35);
}
.payment-btn:active { opacity: .9; }
.payment-section a.payment-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  box-sizing: border-box;
  margin-top: 16px;
}
.payment-return-tip { margin: 0 0 12px; font-size: 0.9375rem; color: var(--text-muted); }
.payment-return-order { margin: 0 0 8px; font-size: 0.875rem; color: var(--text); }

/* 支付页：是否已完成支付弹窗 */
.payment-status-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.payment-status-popup.payment-status-popup--show { display: flex; }
.payment-status-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.payment-status-popup-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.payment-status-popup-title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}
.payment-status-popup-tip {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.payment-status-popup-btns {
  display: flex;
  gap: 12px;
}
.payment-status-popup-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}
.payment-status-popup-btn:active { opacity: 0.9; }
.payment-status-popup-btn.done {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.payment-status-popup-btn.notyet {
  background: var(--bg);
  color: var(--text-muted);
}

/* ========== 推广页面（与主页同色风格） ========== */
.promote-section { padding: 0; }
.promote-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 20px 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.promote-card-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.promote-card-desc {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.promote-qrcode-wrap {
  text-align: center;
  padding: 16px;
  background: var(--primary-light);
  border-radius: 12px;
  margin-bottom: 12px;
}
.promote-qrcode {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
}
.promote-invite-url {
  margin: 0 0 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.4;
}
.promote-copy-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(45, 157, 120, 0.3);
}
.promote-copy-btn:active { opacity: .9; }

.promote-agent-level-text {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}
.promote-markup-wrap {
  margin-top: 8px;
}
.promote-markup-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: var(--text);
}
.promote-markup-input {
  width: 100%;
  max-width: 200px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}
.promote-markup-input:focus {
  outline: none;
  border-color: var(--primary);
}
.promote-markup-hint {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.promote-markup-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
}
.promote-markup-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.promote-markup-btn:active:not(:disabled) { opacity: .9; }

.promote-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.promote-stat-item {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}
.promote-stat-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.promote-stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.promote-record-list { margin-top: 12px; }
.promote-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.promote-record-item:last-child { border-bottom: none; }
.promote-record-time {
  flex-shrink: 0;
  width: 100px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.promote-record-desc { flex: 1; color: var(--text); padding: 0 10px; }
.promote-record-amount {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--primary);
}
.promote-record-empty {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* ========== 财务页面（与主页同色风格） ========== */
.finance-section { padding: 0; }
.finance-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 20px 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.finance-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.finance-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.finance-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}
.finance-card-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.finance-card-detail {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.finance-info {
  display: inline-flex;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  color: #fff;
  font-size: 0.6875rem;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  vertical-align: middle;
}
.finance-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.finance-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}
.finance-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(45, 157, 120, 0.3);
}
.finance-btn-outline {
  background: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.finance-btn-wide { flex: 1; }
.finance-btn-complain {
  flex: 0;
  min-width: 72px;
  background: #ff4b4b;
  color: #fff;
}
.finance-actions-row { margin-top: 20px; }
.finance-actions-row .finance-btn-wide { flex: 1; }
.finance-actions-row .finance-btn-complain { flex: 0; }

.finance-tabs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 14px;
}
.finance-tab {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
}
.finance-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.finance-metrics {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.finance-metrics-2 { grid-template-columns: 1fr 1fr; }
.finance-metrics-3 { grid-template-columns: repeat(3, 1fr); }
.finance-metrics-4 { grid-template-columns: 1fr 1fr; }
.finance-metric {
  background: var(--primary-light);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.finance-metric-icon {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--primary);
}
.finance-metric-val {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}
.finance-metric-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.finance-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
}
.finance-link:hover { color: var(--primary); }

.finance-record-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.finance-record-title { margin: 0 0 10px; font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.finance-record-list { list-style: none; margin: 0; padding: 0; }
.finance-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.finance-record-item:last-child { border-bottom: none; }
.finance-record-time { flex-shrink: 0; width: 95px; color: var(--text-muted); font-size: 0.8125rem; }
.finance-record-desc { flex: 1; color: var(--text); padding: 0 10px; }
.finance-record-amount { flex-shrink: 0; font-weight: 600; color: var(--primary); }
.finance-record-amount-withdraw { color: var(--text); }
.finance-withdrawals-list { margin-top: 0; }

/* 提现弹窗 */
.finance-withdraw-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.finance-withdraw-popup.finance-withdraw-popup--show { display: flex; }
.finance-withdraw-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.finance-withdraw-popup-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.finance-withdraw-popup-title {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}
.finance-withdraw-popup-tip {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.finance-withdraw-popup-tip span { font-weight: 600; color: var(--primary); }
.finance-withdraw-popup-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 18px;
}
.finance-withdraw-popup-input:focus { border-color: var(--primary); outline: none; }
.finance-withdraw-popup-input::placeholder { color: var(--text-muted); }
.finance-withdraw-popup-btns {
  display: flex;
  gap: 12px;
}
.finance-withdraw-popup-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}
.finance-withdraw-popup-btn.cancel {
  background: var(--bg);
  color: var(--text-muted);
}
.finance-withdraw-popup-btn.confirm {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.finance-withdraw-popup-btn:active { opacity: .9; }
.finance-withdrawals-popup-box { max-height: 70vh; display: flex; flex-direction: column; }
.finance-withdrawals-popup-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 0 16px;
  padding: 0;
  max-height: 50vh;
}
.finance-withdrawals-close-btn { flex: 0; }

/* 首页：个人大数据检测类型选择弹窗 */
.personal-type-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.personal-type-popup.personal-type-popup--show { display: flex; }
.personal-type-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.personal-type-popup-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.personal-type-popup-title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}
.personal-type-popup-tip {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.personal-type-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.personal-type-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.2s, background 0.2s;
}
.personal-type-option:active { opacity: 0.9; }
.personal-type-option:hover { border-color: var(--primary); background: rgba(45, 157, 120, 0.06); }
.personal-type-name { font-weight: 500; }
.personal-type-price { font-weight: 600; color: var(--primary); }
.personal-type-popup-cancel {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
}
.personal-type-popup-cancel:active { opacity: 0.9; }

/* 我的页：编辑昵称弹窗 */
.user-nickname-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.user-nickname-popup.user-nickname-popup--show { display: flex; }
.user-nickname-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.user-nickname-popup-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.user-nickname-popup-title {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}
.user-nickname-popup-tip {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.user-nickname-popup-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 18px;
}
.user-nickname-popup-input:focus { border-color: var(--primary); outline: none; }
.user-nickname-popup-input::placeholder { color: var(--text-muted); }
.user-nickname-popup-btns {
  display: flex;
  gap: 12px;
}
.user-nickname-popup-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}
.user-nickname-popup-btn.cancel {
  background: var(--bg);
  color: var(--text-muted);
}
.user-nickname-popup-btn.confirm {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.user-nickname-popup-btn:active { opacity: .9; }
.contact-service-tel-btn { text-align: center; text-decoration: none; display: block; box-sizing: border-box; }

/* ========== 其它页面通用 ========== */
.main:not(:has(.home-hero)) { padding: 16px; padding-bottom: 90px; }
.section { margin-bottom: 28px; }
.section h2 { font-size: 1.125rem; margin: 0 0 16px; color: var(--text); }
.section-desc { color: var(--text-muted); font-size: 0.875rem; margin: -8px 0 16px; }

.card-list { display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.card-icon { font-size: 1.75rem; }
.card h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.card p { margin: 0; font-size: 0.8125rem; color: var(--text-muted); }

.product-list { display: flex; flex-direction: column; gap: 0; background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.product-item { display: flex; align-items: center; justify-content: space-between; padding: 16px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.product-item:last-child { border-bottom: none; }
.product-info h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.product-info p { margin: 0; font-size: 0.8125rem; color: var(--text-muted); }
.product-info .price { font-size: 0.8125rem; color: var(--primary); margin-top: 4px; display: inline-block; }
.arrow { color: var(--text-muted); font-size: 1.25rem; }

.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; text-decoration: none; font-size: 0.9375rem; font-weight: 500; border: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 0.8125rem; }

.form-section .section-desc { margin-bottom: 20px; }

/* ========== 用户登录页（与首页风格一致） ========== */
.login-page {
  margin: 0 -16px;
  padding: 32px 16px 24px;
  min-height: calc(100vh - 56px);
  background: linear-gradient(180deg, #e8f5f0 0%, #f0f7f4 50%, #fff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(45, 157, 120, 0.06);
  top: -60px;
  right: -60px;
  pointer-events: none;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(45, 157, 120, 0.05);
  bottom: 20%;
  left: -40px;
  pointer-events: none;
}
.login-intro {
  position: relative;
  text-align: center;
  margin-bottom: 28px;
  z-index: 1;
}
.login-error {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffebee;
  color: #c62828;
  font-size: 0.875rem;
  text-align: center;
}
.login-intro-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.login-intro-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 36px 24px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  margin-bottom: 16px;
  box-sizing: border-box;
}
.login-form .login-row {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  min-width: 0;
}
.login-form .login-row:first-child { padding-top: 0; }
.login-form .login-row:last-of-type { padding-bottom: 0; margin-bottom: 4px; }
.login-form .login-label {
  flex-shrink: 0;
  width: 56px;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}
.login-form .login-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
}
.login-form .login-input::placeholder { color: var(--text-muted); }
.login-row-captcha { flex-wrap: wrap; }
.login-captcha-question {
  flex: 1;
  min-width: 80px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  user-select: none;
}
.login-input-captcha { max-width: 90px; }
.login-captcha-refresh {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--primary);
  text-decoration: none;
}
.login-captcha-refresh:active { opacity: .85; }
/* 图形验证码弹窗（点击获取验证码后弹出） */
.captcha-popup {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.captcha-popup--show { display: flex; }
.captcha-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.captcha-popup-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.captcha-popup-title {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
.captcha-popup-question {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.captcha-popup-question span {
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
}
.captcha-popup-refresh {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--primary);
  text-decoration: none;
}
.captcha-popup-refresh:active { opacity: .85; }
.captcha-popup-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
  outline: none;
}
.captcha-popup-input:focus { border-color: var(--primary); }
.captcha-popup-input::placeholder { color: var(--text-muted); }
.captcha-popup-btns {
  display: flex;
  gap: 12px;
}
.captcha-popup-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}
.captcha-popup-btn.cancel {
  background: var(--bg);
  color: var(--text-muted);
}
.captcha-popup-btn.confirm {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.captcha-popup-btn:active { opacity: .9; }
.login-getcode {
  flex-shrink: 0;
  padding: 4px 0;
  border: none;
  background: none;
  font-size: 0.8125rem;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}
.login-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  margin-bottom: 12px;
}
.login-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.login-agree-text {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
}
.login-agree-text a {
  color: var(--primary);
  text-decoration: underline;
}
/* 登录页-用户协议/隐私政策弹层 */
.login-doc-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.login-doc-popup--show { display: flex; }
.login-doc-popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.login-doc-popup-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.login-doc-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.login-doc-popup-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.login-doc-popup-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.login-doc-popup-close:hover { color: var(--text); }
.login-doc-popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
}
.login-doc-popup-body.rich-text p { margin: 0 0 0.75em; }
.login-doc-popup-body.rich-text p:last-child { margin-bottom: 0; }
.login-doc-popup-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.login-doc-popup-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}
.login-doc-popup-btn:active { opacity: .9; }
.login-helper {
  margin: 0 0 28px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.login-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(45, 157, 120, 0.35);
}
.login-btn:active { opacity: .9; }
.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.login-reg-tip {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}
.login-reg-tip a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.query-form { background: var(--card-bg); border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 12px; }
.form-group { margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 500; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9375rem; background: #fff;
}
.form-group textarea { resize: vertical; min-height: 60px; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1; }
.form-tip { font-size: 0.8125rem; color: var(--text-muted); text-align: center; }
.form-tip a { color: var(--primary); text-decoration: none; }

/* ========== 我的订单 ========== */
/* .orders-section { padding: 0 16px 20px; } */
.orders-card {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 0 0 20px;
}
.orders-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.orders-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--text); }
.orders-total { font-size: 0.875rem; color: var(--text-muted); }
.orders-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.orders-filter-item {
  flex: 0 0 auto;
  min-width: 4.8em;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.orders-filter-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}
.orders-filter-item:not(.active):active { background: var(--primary-light); color: var(--primary); }
.orders-list { list-style: none; margin: 0; padding: 0; }
.orders-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.orders-item:last-child { border-bottom: none; }
.orders-item-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.orders-item-row:last-of-type { margin-bottom: 0; }
.orders-label { flex-shrink: 0; width: 72px; color: var(--text-muted); }
.orders-value { flex: 1; color: var(--text); word-break: break-all; }
.orders-service-name { font-weight: 600; color: var(--text); }
.orders-amount { font-weight: 600; color: var(--primary); }
.orders-status { font-weight: 500; }
.orders-status-pending { color: #f59e0b; }
.orders-status-generating { color: #3b82f6; }
.orders-status-completed { color: var(--primary); }
.orders-status-cancelled { color: var(--text-muted); }
.orders-status-failed { color: #c5221f; }
.orders-time { color: var(--text-muted); font-size: 0.8125rem; }
.orders-item-actions { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.orders-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: opacity .2s;
}
.orders-btn:active { opacity: .9; }
.orders-btn-primary { background: var(--primary); color: #fff; border: none; }
.orders-btn-download { background: #0d8050; color: #fff; border: none; }
.orders-btn-cancel { background: transparent; color: #666; border: 1px solid var(--border); margin-left: 8px; }
.orders-btn-cancel:hover { color: #c00; border-color: #c00; }
.orders-empty { padding: 32px 16px; text-align: center; }
.orders-empty-tip { font-size: 0.9375rem; color: var(--text-muted); }
.orders-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 16px 0;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.orders-page-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: #fff;
}
.orders-page-btn:active { opacity: .9; }
.orders-page-btn.disabled {
  opacity: .5;
  pointer-events: none;
  cursor: default;
}
.orders-page-info { font-size: 0.875rem; color: var(--text-muted); }

/* ========== 我的消息页 ========== */
.messages-section { padding: 0 16px 24px; }
.messages-card {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
}
.messages-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.messages-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--text); }
.messages-total { font-size: 0.875rem; color: var(--text-muted); }
.messages-list { list-style: none; margin: 0; padding: 0; }
.messages-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.messages-item:last-child { border-bottom: none; }
.messages-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.messages-item-title { font-weight: 600; color: var(--text); }
.messages-item-time { font-size: 0.8125rem; color: var(--text-muted); flex-shrink: 0; }
.messages-item-body { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }
.messages-item-body p { margin: 0 0 0.5em; }
.messages-item-body p:last-child { margin-bottom: 0; }
.messages-empty { padding: 32px 20px; text-align: center; font-size: 0.9375rem; color: var(--text-muted); }

/* ========== 我的页面（与首页同风格） ========== */
.user-section { padding: 0; }
.user-hero {
  background: linear-gradient(180deg, #e8f5f0 0%, #f0f7f4 50%, #fff 100%);
  border-radius: 14px;
  padding: 28px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.user-head { text-align: center; }
.avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(45, 157, 120, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 6px;
  box-sizing: border-box;
  min-width: 0;
}
.user-nickname-wrap { margin-bottom: 10px; }
.user-nickname-line {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text);
}
.user-nickname-line .edit-nickname {
  margin-left: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.user-nickname-line .edit-nickname:active { opacity: .85; }
.user-actions {
  margin: 0;
  font-size: 0.9375rem;
}
.user-actions a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.user-actions a:active { opacity: .85; }
.user-divider {
  margin: 0 10px;
  color: var(--border);
  font-weight: 300;
}
.user-menu-wrap { margin-bottom: 20px; }
.menu-list {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9375rem;
  transition: background .2s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--primary-light); }
.menu-label { font-weight: 500; color: #1f2937; }
.menu-arrow {
  font-size: 1.125rem;
  color: #9ca3af;
  font-weight: 300;
}

/* ========== 全局 Toast 提示（金雕猎查风格） ========== */
#toast-container {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.toast {
  max-width: 80vw;
  min-width: 160px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: toast-in 0.25s ease-out;
}
.toast-out {
  animation: toast-out 0.2s ease-in forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.96); }
}
.toast--info {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.toast--success {
  background: linear-gradient(135deg, #2d9d78 0%, #238f6a 100%);
}
.toast--error {
  background: linear-gradient(135deg, #e85d5d 0%, #d04545 100%);
}
.toast--warn {
  background: linear-gradient(135deg, #e8a83d 0%, #d4942a 100%);
}
