/* ========== 设计系统 - 科技感深色 ========== */
:root {
  --primary: #4788dc;
  --primary-light: #6aa3f0;
  --primary-dark: #356bc4;
  --accent: #6a5af9;
  --bg: #f5f5f5;
  --bg-2: #ffffff;
  --surface: rgba(255,255,255,.95);
  --surface-solid: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #666666;
  --text-regular: #555555;
  --border: rgba(71,136,220,.15);
  --border-light: rgba(0,0,0,.06);
  --success: #00b85c;
  --success-bg: rgba(0,184,92,.08);
  --warning: #ff9800;
  --warning-bg: rgba(255,152,0,.08);
  --danger: #e53935;
  --danger-bg: rgba(229,57,53,.08);
  --info: #666666;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --glow: 0 0 20px rgba(71,136,220,.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(71,136,220,.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(106,90,249,.04) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}
button { border: none; cursor: pointer; font-family: inherit; background: transparent; color: inherit; }
input { outline: none; border: none; font-family: inherit; color: inherit; }
input::placeholder { color: var(--text-secondary); }

/* ========== App Container ========== */
.app-wrap {
  width: 100%; max-width: 480px; margin: 0 auto;
  transform: scale(0.9);
  transform-origin: top center;
}
.app { width: 100%; max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 84px; position: relative; background: var(--bg); box-shadow: 0 0 40px rgba(0,0,0,.04); }

/* ========== Ad Slots ========== */
.ad-slot { width: 100%; max-width: 480px; margin: 0 auto; height: 13vh; min-height: 90px; display: flex; align-items: center; justify-content: center; transform: scale(0.9); transform-origin: center; }
.ad-slot.ad-bottom { padding-bottom: 84px; }
.ad-placeholder {
  width: calc(100% - 24px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, rgba(71,136,220,.06) 0%, rgba(106,90,249,.04) 100%);
  border: 1px solid rgba(71,136,220,.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  position: relative;
  overflow: hidden;
}
.ad-placeholder::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(71,136,220,.06), transparent);
  animation: adShine 5s ease-in-out infinite;
}
.ad-placeholder .ad-tag {
  background: linear-gradient(135deg, rgba(71,136,220,.25), rgba(106,90,249,.16));
  border: 1px solid rgba(71,136,220,.15);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.ad-placeholder .ad-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  background: linear-gradient(135deg, #4788dc 0%, #6a5af9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}
.ad-inline {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
  padding-bottom: 28px;
}
.ad-placeholder-inline {
  width: 100%;
  max-width: 200px;
  padding: 50px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ad-placeholder-inline::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(71,136,220,.08), transparent);
  animation: adShine 4s ease-in-out infinite;
}
@keyframes adShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}
.ad-placeholder-inline .ad-tag {
  background: linear-gradient(135deg, rgba(71,136,220,.25), rgba(106,90,249,.16));
  color: var(--primary);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(71,136,220,.18);
}
.ad-placeholder-inline .ad-text {
  opacity: .9;
  line-height: 1.4;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #4788dc 0%, #6a5af9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}
.ad-tag {
  background: linear-gradient(135deg, rgba(71,136,220,.18), rgba(106,90,249,.1));
  border: 1px solid rgba(71,136,220,.12);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.ad-text {
  font-weight: 600;
  letter-spacing: .5px;
  background: linear-gradient(135deg, #4788dc 0%, #6a5af9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Header - 科技感深色渐变 ========== */
.header {
  position: relative;
  padding: 20px 20px 70px;
  padding-right: 180px;
  background: linear-gradient(135deg, #4788dc 0%, #63a0ff 50%, #356bc4 100%);
  color: #fff;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
  border-bottom: 1px solid rgba(0,0,0,.16);
  box-shadow:
    inset 0 1px 0 rgba(0,0,0,.2),
    inset 0 -40px 60px -20px rgba(0,0,0,.1),
    0 4px 20px rgba(71,136,220,.15);
}
.header::before {
  content: ''; position: absolute; top: -50%; right: 0; width: 50%; height: 200%;
  background: radial-gradient(ellipse at right center, rgba(0,0,0,.16) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}
.header::after {
  content: ''; position: absolute; top: -50%; left: 0; width: 50%; height: 200%;
  background: radial-gradient(ellipse at left center, rgba(0,0,0,.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite reverse;
}
.header .light-beam {
  content: ''; position: absolute; top: -50%; left: 5%; width: 2px; height: 200%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.1), transparent);
  transform: rotate(15deg);
  animation: beamShift 7s ease-in-out infinite;
}
.header .light-beam-2 {
  content: ''; position: absolute; top: -50%; left: 92%; width: 2px; height: 200%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.06), transparent);
  transform: rotate(-15deg);
  animation: beamShift2 9s ease-in-out infinite;
}
@keyframes beamShift {
  0%, 100% { transform: rotate(15deg) translateX(0); opacity: .5; }
  50% { transform: rotate(15deg) translateX(30px); opacity: 1; }
}
@keyframes beamShift2 {
  0%, 100% { transform: rotate(-15deg) translateX(0); opacity: .4; }
  50% { transform: rotate(-15deg) translateX(-30px); opacity: .9; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-15px) rotate(180deg); }
}
.header h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; position: relative; z-index: 1; letter-spacing: 1px; }
.header h1::after {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); margin-left: 6px; box-shadow: 0 0 8px var(--success);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.header .subtitle { font-size: 12px; opacity: .6; position: relative; z-index: 1; line-height: 1.5; letter-spacing: .5px; }
.header .user-info { margin-top: 12px; display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(71,136,220,.12); border: 1px solid rgba(71,136,220,.25); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.user-text { font-size: 14px; font-weight: 500; }
.user-hint { font-size: 12px; opacity: .5; }
.user-cishu { font-size: 11px; color: var(--primary); opacity: .7; margin-top: 2px; }
.user-cishu b { font-weight: 600; }

/* ========== 公告栏 ========== */
.notice-bar {
  margin: -50px 16px 12px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.notice-bar .notice-icon { font-size: 16px; flex-shrink: 0; }
.notice-bar .notice-text { font-size: 12px; color: var(--text-regular); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-bar .notice-close { font-size: 16px; color: var(--text-secondary); flex-shrink: 0; cursor: pointer; }

/* ========== Search Card ========== */
.search-card {
  margin: 0 16px 12px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  border: 1px solid var(--border);
}
.search-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.search-title::before { content: ''; width: 3px; height: 14px; background: var(--primary); border-radius: 2px; box-shadow: 0 0 6px var(--primary); }
.search-input-wrap {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.search-input-wrap input {
  flex: 1; background: transparent; font-size: 16px; padding: 10px 0; letter-spacing: 1px; color: var(--text);
}
.search-input-wrap button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, opacity .2s;
  box-shadow: 0 2px 12px rgba(71,136,220,.35);
}
.search-input-wrap button:active { transform: scale(.96); }
.search-input-wrap button:disabled { opacity: .5; box-shadow: none; }

/* 快速入口链接 */
.quick-links {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 12px;
}
.quick-links a {
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.quick-links a:active { opacity: .7; }

/* 平台标签行 */
.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}
.platform-tags .ptag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-regular);
  background: rgba(71,136,220,.06);
  border: 1px solid var(--border);
}
.platform-tags .ptag .ptag-icon { font-size: 13px; }

/* ========== Chips (示例号码) ========== */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: rgba(71,136,220,.08);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ========== Cards ========== */
.section { padding: 0 16px; margin-bottom: 12px; }
.section-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.section-title .count { color: var(--text-secondary); font-size: 12px; font-weight: normal; }
.card { background: var(--surface); backdrop-filter: blur(10px); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }

/* ========== 查询结果 - 紧凑列表 ========== */
.result-list { display: flex; flex-direction: column; gap: 6px; }
.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all .15s;
  position: relative;
  overflow: hidden;
}
.result-item:active { transform: scale(.99); }
.result-item .ri-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.plat-icon {
  width: 24px; height: 24px;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 4px;
}
.result-item .ri-info { flex: 1; min-width: 0; }
.result-item .ri-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.result-item .ri-status {
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 标记状态 */
.result-item.marked {
  border-color: rgba(229,57,53,.2);
  background: linear-gradient(135deg, rgba(229,57,53,.06) 0%, var(--surface) 100%);
}
.result-item.marked .ri-icon { background: rgba(229,57,53,.1); }
.result-item.marked .ri-status { color: var(--danger); }
.result-item.marked::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--danger);
}
/* 未标记状态 */
.result-item.unmarked {
  border-color: var(--border-light);
}
.result-item.unmarked .ri-icon { background: rgba(0,184,92,.08); }
.result-item.unmarked .ri-status { color: var(--success); }
/* 认证/中性状态（认证号码、公司名等：如实展示，不标负面） */
.result-item.verified {
  border-color: rgba(71,136,220,.25);
  background: linear-gradient(135deg, rgba(71,136,220,.06) 0%, var(--surface) 100%);
}
.result-item.verified .ri-icon { background: rgba(71,136,220,.12); }
.result-item.verified .ri-status { color: var(--primary); font-weight: 500; }
.result-item.verified::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--primary);
}
/* 汇总行 */
.result-item.summary {
  background: linear-gradient(135deg, rgba(71,136,220,.12) 0%, rgba(106,90,249,.08) 100%);
  border-color: rgba(71,136,220,.25);
}
.result-item.summary .ri-icon { background: rgba(71,136,220,.18); }
.result-item.summary .ri-name { color: var(--primary); font-weight: 600; }
.result-item.summary .ri-status { color: var(--primary); font-weight: 600; }
/* 申诉按钮 */
.result-item .ri-appeal {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--danger);
  background: rgba(229,57,53,.08);
  border: 1px solid rgba(229,57,53,.2);
  transition: all .15s;
  white-space: nowrap;
}
.result-item .ri-appeal:active { transform: scale(.95); }
.result-item .ri-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
}
.result-item.marked .ri-badge { background: rgba(229,57,53,.1); color: var(--danger); }
.result-item.unmarked .ri-badge { background: rgba(0,184,92,.1); color: var(--success); }
.result-item.verified .ri-badge { background: rgba(71,136,220,.12); color: var(--primary); }

/* ========== Stats Cards ========== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; padding: 0 16px; }
.stat-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.stat-card .num { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 4px; font-family: "SF Mono", "Cascadia Code", monospace; }
.stat-card .label { font-size: 11px; color: var(--text-secondary); }

/* ========== Bottom Navigation ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--surface-solid);
  border-top: 1px solid var(--border);
  display: flex;
  height: 64px;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 20px rgba(0,0,0,.3);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  transition: color .2s;
}
.nav-item.active { color: var(--primary); }
.nav-item .nav-icon { font-size: 20px; }
.nav-center {
  position: relative;
  margin-top: -20px;
}
.nav-center .circle {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(71,136,220,.5);
}

/* ========== Pages ========== */
.page { display: none; }
.page.active { display: block; }

/* ========== Login Page ========== */
.login-page { padding: 32px 24px; }
.login-header { text-align: center; margin-bottom: 28px; }
.login-header .logo { font-size: 48px; margin-bottom: 12px; }
.login-header h2 { font-size: 20px; margin-bottom: 6px; }
.login-header p { font-size: 13px; color: var(--text-secondary); }
.login-tabs { display: flex; background: #f8f9fa; border-radius: var(--radius-full); padding: 4px; margin-bottom: 20px; border: 1px solid var(--border-light); }
.login-tabs button { flex: 1; padding: 9px; border-radius: var(--radius-full); font-size: 13px; color: var(--text-secondary); transition: all .2s; }
.login-tabs button.active { background: var(--surface-solid); color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.input-group { margin-bottom: 14px; }
.input-group label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.input-group .input-wrap { display: flex; align-items: center; background: #f8f9fa; border-radius: var(--radius-md); padding: 12px 14px; gap: 10px; border: 1px solid var(--border); }
.input-group .input-wrap input { flex: 1; background: transparent; font-size: 15px; color: var(--text); }
.input-group .input-wrap .code-btn { color: var(--primary); font-size: 13px; padding: 4px 8px; white-space: nowrap; }
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(71,136,220,.3);
}
.btn-primary:active { opacity: .85; transform: scale(.98); }
.btn-primary:disabled { opacity: .4; box-shadow: none; }
.btn-secondary {
  background: rgba(0,0,0,.04);
  color: var(--text);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  flex: 1;
  border: 1px solid var(--border-light);
}
.link-row { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; }
.link-row a { color: var(--primary); }

/* ========== Profile Page ========== */
.profile-section { padding: 0 16px; margin-bottom: 12px; }
.profile-card { background: var(--surface); backdrop-filter: blur(10px); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.profile-row { display: flex; align-items: center; padding: 10px 0; }
.profile-row + .profile-row { border-top: 1px solid var(--border-light); }
.profile-row .label { color: var(--text-secondary); font-size: 13px; flex: 1; }
.profile-row .value { font-size: 14px; font-weight: 500; }

/* 用户等级徽章 */
.level-badge { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0.5px; }
.level-badge.level-1 { background: rgba(107,122,153,.15); color: var(--text-secondary); }
.level-badge.level-2 { background: rgba(71,136,220,.12); color: var(--primary); }
.level-badge.level-3 { background: rgba(255,183,77,.1); color: var(--warning); }

/* ========== Toast & Loading ========== */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(255,255,255,.95); color: #1a1a1a;
  padding: 10px 18px; border-radius: var(--radius-sm); font-size: 13px;
  z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; }
.loading-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(71,136,220,.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loading-text { margin-top: 14px; color: #555555; font-size: 13px; max-width: 260px; text-align: center; }
.loading-big {
  margin-top: 18px; color: #1a1a1a; font-size: 15px; font-weight: 600;
  max-width: 280px; text-align: center; line-height: 1.5;
}
.loading-bar {
  margin-top: 16px; width: 240px; height: 8px;
  background: rgba(0,0,0,.1); border-radius: 4px; overflow: hidden;
}
.loading-bar-fill {
  height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-purple, #6a5af9));
  transition: width .5s ease;
}
.loading-pct-row {
  margin-top: 10px; width: 240px; display: flex; justify-content: space-between; align-items: center;
}
.loading-pct { color: var(--primary); font-size: 13px; font-weight: 600; }
.loading-small {
  margin-top: 12px; color: rgba(207,232,255,.6); font-size: 12px; text-align: center;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 全局悬浮查询按钮（子页面通用，底部居中） ========== */
.float-query {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, #4788dc 0%, #6a5af9 100%);
  color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 998;
  box-shadow: 0 4px 14px rgba(71,136,220,.42);
  transition: transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.float-query:active { transform: translateX(-50%) scale(.9); }

/* ========== Empty State ========== */
.empty { text-align: center; padding: 40px 20px; color: var(--text-secondary); }
.empty .icon { font-size: 48px; opacity: .2; margin-bottom: 12px; }
.empty .text { font-size: 13px; }

/* ========== Floating Customer Service Button ========== */
.float-kefu {
  position: fixed;
  right: 16px;
  bottom: 92px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: 0 4px 20px rgba(71,136,220,.42);
  z-index: 99;
  cursor: pointer;
  transition: transform .2s;
  max-width: 480px;
}
.float-kefu:active { transform: scale(.92); }
.float-kefu .fk-icon { position: relative; line-height: 1; }
.float-kefu .fk-icon img { filter: brightness(0) invert(1); width: 26px; height: 26px; }
.float-kefu .fk-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.45);
  pointer-events: none;
  line-height: 1;
}
.float-kefu::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(71,136,220,.35);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ========== Misc ========== */
.fade-in { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.badge { background: var(--primary); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: var(--radius-full); margin-left: 6px; }

/* ========== Modal ========== */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  animation: fadeIn .2s;
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--surface-solid);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn .3s;
  border: 1px solid var(--border);
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  line-height: 28px;
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.modal-close:hover { color: var(--text); background: rgba(0,0,0,.06); }
.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
  color: var(--text);
}
.modal-body {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-regular);
}
.modal-body h2 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.modal-body p { margin-bottom: 6px; }
.modal-body a { color: var(--primary); }

/* ========== Package Grid ========== */
.pkg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.pkg-item-v2 {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  cursor: pointer;
  transition: all .2s;
  background: #f8f9fa;
}
.pkg-item-v2.selected {
  border-color: var(--primary);
  background: rgba(71,136,220,.08);
  box-shadow: 0 0 12px rgba(71,136,220,.12);
}
.pkg-item-v2 .pkg-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.pkg-item-v2 .pkg-price-line {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.pkg-item-v2 .pkg-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  font-family: "SF Mono", "Cascadia Code", monospace;
}
.pkg-item-v2 .pkg-unit {
  font-size: 13px;
  color: var(--text-secondary);
}
.pkg-item-v2 .pkg-subtext {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.pkg-item-v2 .pkg-img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  display: block;
  background: rgba(0,0,0,.25);
}
.pkg-item-v2 .pkg-desc {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-light);
  padding-top: 8px;
}

/* ========== Responsive ========== */
@media (min-width: 768px) {
  .pkg-grid { grid-template-columns: 1fr; }
}

/* ========== 一键负面清理按钮 ========== */
.btn-clean-action {
  width: 100%;
  background: linear-gradient(135deg, var(--danger) 0%, #ff7b94 100%);
  color: #fff;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(229,57,53,.25);
  transition: transform .15s, opacity .2s;
}
.btn-clean-action:active { transform: scale(.97); opacity: .9; }
.btn-clean-action .clean-icon { font-size: 18px; }

/* ========== 查询结果品牌标语 ========== */
.result-slogan {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
  letter-spacing: 0.5px;
}

/* ========== 清理选项弹窗 ========== */
.clean-options { display: flex; flex-direction: column; gap: 10px; }
.clean-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #f8f9fa;
  cursor: pointer;
  transition: all .15s;
}
.clean-option:active { transform: scale(.98); border-color: var(--primary); }
.clean-option .co-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: rgba(71,136,220,.1);
  flex-shrink: 0;
}
.clean-option .co-info { flex: 1; }
.clean-option .co-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.clean-option .co-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.clean-option .co-arrow { font-size: 20px; color: var(--text-secondary); }

/* ========== Icons ========== */
.plat-icon { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; border-radius: 4px; flex-shrink: 0; }
.icon-img { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; flex-shrink: 0; }
.nav-icon img { display: block; }
