/* ================================================
   pages.css — 各页面私有样式 (全新设计)
   ================================================ */

/* ---------- 发起合同页 ---------- */
.page-contract {
  padding: 0;
  background: var(--bg-page);
}

/* 品牌头部 */
.contract-brand {
  text-align: center;
  padding: 28px 20px 16px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
}

.contract-brand .brand-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #4a7dff, #2d5bd9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(74, 125, 255, 0.3);
}

.contract-brand h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.contract-brand p {
  font-size: 13px;
  color: var(--text-sub);
}

.page-contract > form {
  padding: 0 12px;
}

/* 顶部品牌导航 */
.contract-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(232, 73, 15, 0.2);
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  line-height: 1.3;
}

.brand-desc {
  font-size: 10px;
  color: var(--text-hint);
  white-space: nowrap;
  line-height: 1.3;
}

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

.nav-login {
  font-size: 13px;
  color: var(--bg-card);
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  padding: 6px 14px;
  border-radius: 16px;
  transition: opacity 0.2s;
}

.nav-login:active { opacity: 0.8; }

/* 信任横幅 */
.trust-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f0f7ff, #e8f4f8);
  font-size: 11px;
  color: var(--text-sub);
}

.trust-banner .trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* 实时动态 */
.live-ticker {
  margin: 0 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ticker-item {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.4;
  transition: opacity 0.3s;
  flex: 1;
}

/* 表单卡片区域 */
.contract-form-section {
  padding: 12px 16px 0;
}

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.form-card-header .fc-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.form-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.form-card-header .fc-badge {
  margin-left: auto;
  font-size: 10px;
  color: var(--green);
  background: #e8f5e9;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.form-group {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f8f8f8;
}

.form-group:last-of-type { border-bottom: none; }

.form-label {
  width: 80px;
  font-size: 14px;
  color: var(--text-main);
  flex-shrink: 0;
  font-weight: 500;
}

.form-label .required {
  color: #e74c3c;
  margin-right: 2px;
}

.form-input {
  flex: 1;
  border: none;
  font-size: 14px;
  color: var(--text-main);
  text-align: right;
  outline: none;
  background: transparent;
  min-width: 0;
}

.form-input::placeholder { color: #ccc; }

.role-switch {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.role-opt {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-main);
}

.role-opt:has(input:checked) {
  color: var(--blue);
  font-weight: 600;
}

.role-opt input {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  accent-color: var(--blue);
}

.amount-input-wrap { display: flex; align-items: center; flex: 1; justify-content: flex-end; }
.amount-prefix { color: var(--blue); font-size: 18px; font-weight: 700; margin-right: 4px; }

/* 表单底部 */
.form-footer {
  padding: 16px;
}

.blockchain-tip {
  text-align: center;
  font-size: 13px;
  color: #fff;
  padding: 10px 20px;
  margin: 0 16px 16px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.contract-template-link {
  text-align: center;
  font-size: 13px;
  color: var(--blue);
  padding: 10px 0;
  cursor: pointer;
}

.legal-note {
  text-align: center;
  font-size: 12px;
  color: var(--green);
  margin-bottom: 12px;
  font-weight: 500;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-hint);
}

.agreement input[type="checkbox"] { accent-color: var(--blue); margin-top: 2px; }
.agreement a { color: var(--blue); text-decoration: none; }

.submit-disclaimer {
  font-size: 11px;
  color: #bbb;
  margin-top: 12px;
  text-align: center;
  line-height: 1.6;
}

/* 对比说明区 */
.contract-compare-section {
  padding: 16px;
}

.compare-card {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: transform 0.2s var(--ease);
}

.compare-card:active { transform: scale(0.98); }

.card-warning {
  background: #fff7f5;
  border: 1px solid #ffe0d6;
}

.card-solution {
  background: #f5f9ff;
  border: 1px solid #d6e6ff;
}

.compare-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.compare-icon { font-size: 14px; }

.compare-name {
  font-size: 15px;
  font-weight: 700;
}

.compare-name.warning { color: var(--primary); }
.compare-name.solution { color: var(--blue); }

.compare-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* 战报卡片 */
.report-section {
  padding: 0 16px 20px;
}

.section-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  padding: 12px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.report-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.report-tag.t1 { background: #fff3e0; color: var(--primary); }
.report-tag.t2 { background: #e8f5e9; color: #27ae60; }
.report-tag.t3 { background: #e3f2fd; color: #1976d2; }
.report-tag.t4 { background: #fce4ec; color: #e91e63; }

.report-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.report-case {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.report-case:active { transform: scale(0.97); }

.rc-game {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.rc-desc {
  font-size: 11px;
  color: var(--text-hint);
  margin-bottom: 4px;
}

.rc-result {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- 维权追回页（合并维权中心+维权表单） ---------- */
.page-recovery {
  padding: 0;
  background: var(--bg-page);
}

.rc-hero-card {
  background: linear-gradient(135deg, #4a7dff, #2d5bd9);
  color: #fff;
  margin: 12px;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.rc-hero-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.rc-hero-label { font-size: 12px; opacity: .9; margin-bottom: 8px; }
.rc-hero-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.rc-hero-badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 16px; font-size: 13px; margin-bottom: 8px; backdrop-filter: blur(4px); }
.rc-hero-card p { font-size: 12px; opacity: .85; }

.rc-contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.rc-contact-info { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rc-contact-icon { width: 44px; height: 44px; background: #f0f5ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.rc-contact-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.rc-contact-info p { font-size: 12px; color: var(--text-hint); }
.btn-wechat-green { width: 100%; padding: 12px; background: linear-gradient(135deg, #07c160, #06ad56); color: #fff; border: none; border-radius: var(--radius-full); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(7,193,96,0.2); }
.btn-wechat-green:active { transform: scale(0.98); opacity: 0.9; }
.rc-contact-note { text-align: center; font-size: 11px; color: #bbb; margin-top: 8px; }

/* 维权表单（内嵌在维权页） */
.rcf-section { margin: 0 12px 12px; }
.rcf-section .card {
  border: 1px solid var(--border);
}

.rcf-form-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rcf-steps-section { margin: 0 12px 12px; }
.rcf-steps-section .card { border: 1px solid var(--border); }
.rcf-steps-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.step-item { display: flex; gap: 10px; margin-bottom: 14px; }
.step-item:last-child { margin-bottom: 0; }
.step-num { width: 24px; height: 24px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.step-item b { font-size: 13px; color: var(--text-main); }
.step-item p { font-size: 12px; color: var(--text-hint); margin-top: 3px; line-height: 1.5; }

.rc-report-header { display: flex; align-items: center; gap: 8px; padding: 16px 12px 10px; font-size: 15px; font-weight: 600; }
.live-dot { color: #27ae60; font-size: 12px; font-weight: 400; animation: pulse 1.5s infinite; }
.rc-case-list { padding: 0 12px 16px; }
.rc-case-item { display: flex; align-items: center; background: var(--bg-card); border-radius: var(--radius-md); padding: 14px; margin-bottom: 8px; box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.rc-case-item:active { transform: scale(0.98); }
.rc-game-circle { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; line-height: 1.2; font-weight: 700; color: #fff; margin-right: 12px; flex-shrink: 0; padding: 4px; box-sizing: border-box; }
.gc-red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.gc-blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.gc-teal { background: linear-gradient(135deg, #1abc9c, #16a085); }
.gc-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.rc-case-body { flex: 1; }
.rc-case-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.rc-case-time { font-size: 11px; color: #bbb; margin-top: 2px; }
.rc-case-right { text-align: right; }
.rc-case-amount { font-size: 16px; font-weight: 700; color: var(--text-main); }
.rc-case-tag { font-size: 11px; margin-top: 2px; font-weight: 600; }
.rc-case-tag.tag-green { color: #27ae60; }
.rc-case-tag.tag-orange { color: #e67e22; }

select.form-input { appearance: auto; }

/* ---------- 我的页面 ---------- */
.page-mine {
  padding: 0;
  background: var(--bg-page);
}

.user-header {
  background: linear-gradient(135deg, #4a7dff, #2d5bd9);
  color: #fff;
  padding: 32px 20px 28px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.2);
}

.user-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.user-name-row span:first-child { font-size: 17px; font-weight: 700; }
.auth-tag { display: inline-block; background: rgba(39,174,96,0.2); color: #2ecc71; font-size: 11px; padding: 2px 8px; border-radius: 10px; }

.user-phone {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 2px;
}

.stats-bar {
  display: flex;
  margin: -16px 16px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.stat-item { flex: 1; text-align: center; }
.stat-label { font-size: 12px; color: var(--text-hint); margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-main); line-height: 1; }
.stat-unit { font-size: 13px; font-weight: 400; color: var(--text-sub); }
.stat-prefix { font-size: 15px; font-weight: 400; }
.stat-btn { margin-top: 10px; padding: 6px 16px; border-radius: 16px; border: 1.5px solid var(--blue); color: var(--blue); background: #fff; font-size: 12px; cursor: pointer; font-weight: 600; transition: all 0.2s; }
.stat-btn:active { background: #f0f5ff; }
.stat-btn-dark { background: var(--text-main); color: #fff; border-color: var(--text-main); }
.stat-btn-dark:active { opacity: 0.85; }
.stat-divider { width: 1px; background: var(--border); align-self: stretch; margin: 8px 0; }

.invite-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #fff;
  margin: 0 16px 12px;
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: transform 0.2s;
}
.invite-banner:active { transform: scale(0.98); }
.invite-banner-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.invite-banner-desc { font-size: 11px; opacity: .75; }
.invite-banner-btn { background: #fff; color: #333; border: none; border-radius: 16px; padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer; }

.menu-list {
  background: var(--bg-card);
  margin: 0 16px 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.15s;
}

.menu-item:active { background: #f8f9fa; }
.menu-item + .menu-item { border-top: 1px solid var(--border); }

.menu-left { display: flex; align-items: center; gap: 12px; }

.menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ic-contract { background: #e8f0ff; color: var(--blue); }
.ic-auth     { background: #e8f5e9; color: #27ae60; }
.ic-buy      { background: #fff8e1; color: #f39c12; }
.ic-invite   { background: #fce4ec; color: #e74c3c; }
.ic-contact  { background: #f3e5f5; color: #9b59b6; }

.menu-label { font-size: 15px; color: var(--text-main); font-weight: 500; }
.menu-right { display: flex; align-items: center; gap: 6px; color: #ccc; font-size: 14px; }
.menu-badge { font-size: 12px; color: #27ae60; background: #e8f5e9; padding: 2px 8px; border-radius: 8px; }

/* 客服卡片（嵌入我的页面） */
.mine-service-card {
  margin: 0 16px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}
.mine-service-card:active { transform: scale(0.98); }
.mine-service-icon { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--green), #06ad56); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.mine-service-text { flex: 1; }
.mine-service-text h4 { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 2px; }
.mine-service-text p { font-size: 12px; color: var(--text-hint); }
.mine-service-arrow { color: #ccc; }

.logout-wrap { padding: 24px 16px 32px; }
.btn-logout { width: 100%; padding: 13px; background: #fff; color: var(--primary); border: 1.5px solid #ffd5c8; border-radius: var(--radius-full); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-logout:active { background: #fff5f0; }

/* ========== 子页面通用 ========== */
.page-sub { background: var(--bg-page); overflow-y: auto; }
.empty-hint { text-align: center; color: #bbb; padding: 40px 0; font-size: 14px; }

/* --- 合同列表 --- */
.sub-tabs { display: flex; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.sub-tab { flex: 1; text-align: center; padding: 13px 0; font-size: 14px; color: var(--text-sub); cursor: pointer; position: relative; transition: color 0.2s; }
.sub-tab.active { color: var(--blue); font-weight: 600; }
.sub-tab.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 3px; border-radius: 2px; background: var(--blue); }
.sub-tab .dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; display: inline-block; position: relative; top: -6px; }
.contract-list-body { padding: 12px; }
.cl-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 16px; margin-bottom: 10px; border-left: 3px solid var(--blue); box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.cl-card:active { transform: scale(0.98); }
.cl-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; color: #bbb; }
.cl-no { color: #bbb; }
.cl-date { color: #bbb; }
.cl-title { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.cl-title .cl-role-tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; margin-left: 6px; font-weight: 500; }
.cl-role-tag.buyer { background: #e3f2fd; color: #1976d2; }
.cl-role-tag.seller { background: #fff3e0; color: #e65100; }
.cl-meta { font-size: 12px; color: var(--text-hint); line-height: 1.8; }
.cl-meta .verified { color: var(--blue); }
.cl-actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.cl-actions button { padding: 8px 16px; border-radius: 20px; font-size: 12px; border: 1.5px solid #e8e8e8; background: var(--bg-card); cursor: pointer; font-weight: 500; transition: all 0.2s; }
.cl-actions button:active { transform: scale(0.95); }
.cl-actions .btn-blue { background: var(--blue); color: #fff; border: none; box-shadow: 0 2px 8px rgba(74,125,255,0.2); }
.cl-actions .btn-orange { background: #e67e22; color: #fff; border: none; box-shadow: 0 2px 8px rgba(230,126,34,0.2); }
.cl-actions .btn-yellow { background: #f39c12; color: #fff; border: none; box-shadow: 0 2px 8px rgba(243,156,18,0.2); }
.cl-actions .btn-outline-blue { background: transparent; color: #4a7dff; border: 1.5px solid #4a7dff; }
.cl-status-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 12px; display: inline-flex; align-items: center; margin-right: auto; }
.cl-status-badge.s-yellow { color: #e67e22; background: #fff3e0; }
.cl-status-badge.s-gray { color: #95a5a6; background: #f2f4f4; }
.cl-status-badge.s-green { color: #27ae60; background: #e8f8f5; }

/* --- 合同详情 --- */
.contract-detail-body { padding: 16px; }
.detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin: 12px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-label {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
}
.detail-value {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}
.detail-value.highlight-price {
  color: #e74c3c;
  font-size: 16px;
  font-weight: 700;
}
.detail-btn-group {
  padding: 12px;
  display: flex;
  gap: 12px;
}
.detail-btn {
  flex: 1;
  border-radius: 24px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
  display: inline-block;
}
.detail-btn:active {
  transform: scale(0.97);
}
.detail-btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(74,125,255,0.25);
}
.detail-btn-secondary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 73, 15, 0.2);
}

/* --- 实名认证 --- */
.verify-hero { text-align: center; padding: 30px 24px 16px; }
.verify-shield { margin-bottom: 16px; }
.verify-hero p { font-size: 13px; color: var(--text-sub); line-height: 1.6; }
.verify-info { margin: 0 16px; border: 1px solid var(--border); }
.info-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-row:last-child { border: none; }
.auth-dot { font-weight: 600; }
.verify-explain { padding: 16px; }
.verify-explain h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--text-main); }
.explain-item { display: flex; gap: 12px; margin-bottom: 12px; background: #f8faff; border-radius: var(--radius-md); padding: 14px; border: 1px solid #eef3ff; }
.exp-icon-box { width: 36px; height: 36px; background: var(--bg-card); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.explain-item b { font-size: 14px; color: var(--text-main); display: block; margin-bottom: 4px; }
.explain-item p { font-size: 12px; color: var(--text-hint); line-height: 1.5; }

/* --- 购买保障额度 --- */
.upgrade-banner-dark { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; padding: 30px 20px; text-align: center; position: relative; overflow: hidden; }
.upgrade-banner-dark::before { content: ''; position: absolute; top: -40px; right: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(74,125,255,0.1); }
.upgrade-banner-dark .ubd-icon { margin-bottom: 12px; }
.upgrade-banner-dark h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.upgrade-banner-dark p { font-size: 12px; opacity: .8; }
.upgrade-compare { display: flex; gap: 0; padding: 16px 6px; background: #fff; border-radius: 14px; margin: 12px; box-shadow: 0 8px 22px rgba(0,0,0,0.08); position: relative; }
.upgrade-compare::after { content: ''; position: absolute; top: 12px; bottom: 12px; left: 50%; width: 1px; background: #eef2f7; transform: translateX(-0.5px); }
.compare-item { flex: 1; background: transparent; border-radius: 0; padding: 6px 12px; text-align: center; box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 76px; }
.compare-dot { width: 14px; height: 14px; border-radius: 50%; margin: 0 auto 8px; }
.dot-gray { background: #e0e0e0; }
.dot-green { background: #27ae60; }
.compare-item .compare-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--text-main); }
.compare-item .compare-desc { font-size: 12px; color: var(--text-hint); line-height: 1.4; }
.compare-item.compare-bad .compare-desc { color: #b6bbc4; }
.compare-item .compare-desc.highlight { color: #22c55e; font-weight: 700; }
.pkg-title { font-size: 15px; font-weight: 600; padding: 12px 16px 8px; color: var(--text-main); }
.package-list { padding: 0 16px; }
.pkg-card { border: 2px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 10px; cursor: pointer; position: relative; transition: all 0.25s var(--ease); display: flex; align-items: center; justify-content: space-between; }
.pkg-card:active { transform: scale(0.98); }
.pkg-card.selected { border-color: var(--blue); background: #f8faff; box-shadow: 0 2px 12px rgba(74,125,255,0.1); }
.pkg-card .pkg-tag { position: absolute; top: -1px; left: 12px; background: var(--primary); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 0 0 6px 6px; font-weight: 600; }
.pkg-left { display: flex; align-items: center; gap: 10px; }
.pkg-radio { width: 18px; height: 18px; border: 2px solid #ccc; border-radius: 50%; flex-shrink: 0; transition: all 0.2s; }
.pkg-card.selected .pkg-radio { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.pkg-name { font-size: 14px; font-weight: 600; color: var(--text-main); }
.pkg-desc { font-size: 11px; color: var(--text-hint); margin-top: 2px; }
.pkg-price-right { font-size: 22px; font-weight: 700; color: var(--primary); }
.pkg-wechat-service { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); margin: 12px 16px; border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-sm); }
.pws-left { display: flex; align-items: center; gap: 10px; }
.pws-icon { font-size: 20px; }
.pws-left b { font-size: 13px; display: block; color: var(--text-main); }
.pws-left p { font-size: 11px; color: var(--text-hint); }
.pws-btn { background: #e8f5e9; color: #27ae60; border: none; border-radius: 16px; padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.pws-btn:active { background: #c8e6c9; }
.pkg-bottom-bar { padding: 12px 16px 20px; }
.pkg-pay-row { display: flex; justify-content: space-between; align-items: center; }
.pkg-total b { font-size: 22px; color: var(--primary); }
.btn-wechat-pay { background: linear-gradient(135deg, #07c160, #06ad56); color: #fff; border: none; border-radius: var(--radius-full); padding: 12px 28px; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(7,193,96,0.25); transition: all 0.2s; }
.btn-wechat-pay:active { transform: scale(0.98); opacity: 0.9; }
.btn-wechat-pay[disabled], .btn-wechat-pay.disabled { opacity: .5; cursor: not-allowed; filter: grayscale(20%); box-shadow: none; }

/* --- 邀请奖励页 --- */
.inv-top-bar { display: flex; align-items: center; padding: 14px 16px; background: #1a1a2e; color: #fff; }
.inv-top-bar span:nth-child(2) { flex: 1; text-align: left; font-size: 16px; font-weight: 600; margin-left: 4px; }
.inv-top-bar .back-btn { display: inline-flex; align-items: center; }
.inv-rules-link { font-size: 12px; color: #ffd700; text-decoration: none; }
.inv-dark-header { background: linear-gradient(135deg, #0f1b2d, #172a46); color: #fff; padding: 24px 20px 44px; text-align: center; border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,0.22); }
.inv-dark-header h3 { font-size: 16px; color: #ffffff; margin-bottom: 16px; font-weight: 700; letter-spacing: 0.2px; }
.inv-stats-row { display: flex; align-items: flex-end; justify-content: center; gap: 28px; }
.inv-stat-col { flex: 1; text-align: center; min-width: 120px; }
.inv-stat-label { font-size: 12px; color: rgba(255,255,255,0.75); }
.inv-stat-num { font-size: 34px; font-weight: 800; color: #fff; margin: 6px 0 10px; letter-spacing: 0.3px; }
.inv-stat-btn { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28); color: #fff; border-radius: 16px; padding: 6px 16px; font-size: 12px; cursor: pointer; transition: background 0.2s; }
.inv-stat-btn:active { background: rgba(255,255,255,0.25); }
.inv-stat-divider { width: 1px; background: rgba(255,255,255,0.2); margin: 0 8px; }
.btn-invite-send { width: 100%; padding: 15px; background: linear-gradient(135deg, #f9e0a2 0%, #f1bd5a 55%, #e9a93f 100%); color: #1b1b1b; border: none; border-radius: var(--radius-full); font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px rgba(233,169,63,0.35); transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.btn-invite-send::before { content: "🔗"; display: inline-block; margin-right: 6px; font-size: 16px; }
.btn-invite-send:active { transform: scale(0.98); filter: brightness(0.98); }
.inv-flow { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px 16px; background: #fff; margin: 16px 12px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.inv-flow-step { text-align: center; min-width: 86px; }
.inv-flow-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(233,169,63,0.14); font-size: 18px; margin-bottom: 6px; }
.inv-flow-name { font-size: 12px; font-weight: 600; color: var(--text-main); }
.inv-flow-desc { font-size: 10px; color: var(--text-hint); }
.inv-flow-arrow { font-size: 16px; color: #ccc; }
.inv-partner-banner { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #0f0f10, #1b1b1b); color: #fff; margin: 0 12px 16px; border-radius: var(--radius-md); padding: 14px 16px; transition: transform 0.2s; box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.inv-partner-banner:active { transform: scale(0.98); }
.inv-partner-text b { font-size: 14px; }
.inv-partner-text p { font-size: 11px; opacity: .7; margin-top: 2px; }
.inv-partner-btn { background: #121212; color: #ffd77a; border: 1px solid rgba(255,215,122,0.35); border-radius: 18px; padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.25) inset; }
.invite-detail-title { padding: 12px 16px 8px; font-size: 15px; font-weight: 700; color: var(--text-main); }
.invite-records { padding: 0 12px 16px; }
.inv-record { display: flex; align-items: center; background: var(--bg-card); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.inv-avatar { width: 36px; height: 36px; background: #e3f2fd; border-radius: 50%; margin-right: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--blue); }
.inv-info { flex: 1; }
.inv-info .inv-ph { font-size: 14px; font-weight: 600; color: var(--text-main); }
.inv-info .inv-time { font-size: 11px; color: #bbb; }
.inv-reward { font-size: 13px; font-weight: 600; }
.inv-reward.cash { color: #ff3b30; }
.inv-reward.quota { color: #27ae60; }
.inv-reward.none { color: #bbb; }

/* 头像颜色状态 */
.inv-avatar.av-blue { background: #e3f2fd; color: #2f63e7; }
.inv-avatar.av-green { background: #e9f7ef; color: #27ae60; }
.inv-avatar.av-gray { background: #f0f2f5; color: #9aa0a6; }

/* 去催促 */
.inv-urge { display:inline-block; margin-top:2px; font-size:12px; color:#2f63e7; text-decoration:none; }
.inv-urge:active { opacity: .8; }

/* --- 官方服务中心（保留但精简） --- */
.svc-hero { text-align: center; padding: 30px 16px 20px; }
.svc-avatar { margin-bottom: 12px; }
.svc-hero h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--text-main); }
.svc-sub { font-size: 13px; color: var(--blue); }
.svc-notice { border: 1px solid #d0e3ff; background: #f0f7ff; }
.svc-notice p { font-size: 13px; color: #555; line-height: 1.6; }
.svc-wechat { text-align: center; }
.svc-wechat-id { font-size: 15px; margin-bottom: 14px; }
.svc-wechat-id b { font-size: 17px; color: var(--text-main); }
.svc-wechat-tip { font-size: 11px; color: #bbb; margin-top: 8px; }
.svc-features { padding: 16px; }
.svc-features h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; color: var(--text-main); }
.svc-features-row { display: flex; gap: 12px; }
.svc-feat-item { flex: 1; text-align: center; }
.svc-feat-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 8px; }
.svc-feat-name { font-size: 13px; font-weight: 600; color: var(--text-main); }
.svc-feat-desc { font-size: 11px; color: var(--text-hint); }
.svc-footer { text-align: center; padding: 20px; }
.svc-footer p { font-size: 12px; color: #bbb; line-height: 1.8; }

/* --- 底部信任栏 --- */
.rcf-bottom-trust { display: flex; justify-content: center; gap: 16px; padding: 16px 0 24px; font-size: 12px; color: var(--text-hint); }

/* --- 登录弹窗 --- */
.login-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.login-modal { background: var(--bg-card); border-radius: var(--radius-lg); padding: 28px 24px; width: 320px; max-width: 90vw; box-shadow: var(--shadow-lg); animation: fadeSlideIn 0.3s var(--ease); }

/* --- 自定义确认弹窗 --- */
.confirm-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s var(--ease);
}
.confirm-modal {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  width: 280px;
  max-width: 80%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeSlideIn 0.25s var(--ease);
}
.confirm-body {
  padding: 28px 24px 20px;
  text-align: center;
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.5;
}
.confirm-actions {
  display: flex;
  border-top: 1px solid var(--border);
}
.confirm-btn {
  flex: 1;
  padding: 14px;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
  transition: background 0.15s;
}
.confirm-btn:active { background: #f5f5f5; }
.confirm-cancel {
  color: var(--text-sub);
  border-right: 1px solid var(--border);
}
.confirm-ok {
  color: var(--blue);
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
