/* ================================================================
   IMEIcheck.BOT — 精确对齐 imei.bot 参考站布局  v188
   ================================================================ */

/* --- Design Tokens --- */
:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --primary: #5B4CF7;
  --primary-light: #EEF0FF;
  --primary-border: #C7C2FF;
  --primary-dark: #4334CA;
  --text: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10);
  --shadow-xl: 0 10px 40px rgba(0,0,0,.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --sidebar-w: 300px;
  --topbar-h: 56px;
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; touch-action: manipulation; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; outline: none; }
input { font: inherit; border: none; outline: none; background: none; }

/* ================================================================
   MAIN TOPBAR (nav pills + search，在 main 区域内，与 sidebar logo 同行)
   ================================================================ */
.main-topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 0 8px;
  border-bottom: 1px solid #D1D5DB;
  margin-bottom: 6px;
  flex-shrink: 0;
  justify-content: space-between;
}

/* 左：品牌 */
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px; letter-spacing: -.2px;
  flex-shrink: 0;
}
.brand-icon {
  width: 28px; height: 28px; object-fit: contain;
  border-radius: 6px;
}
.brand-text { color: var(--text); }

/* 中：Nav Pills */
.nav-pills {
  display: flex; align-items: center; gap: 0;
  flex: 1; justify-content: flex-start;
}
.pill {
  padding: 6px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary); transition: all var(--transition);
  white-space: nowrap; cursor: pointer;
  position: relative;
}
.pill:hover { color: var(--text); }
.pill.active {
  color: var(--primary);
  font-weight: 600;
}
.pill.active::after {
  content: '';
  position: absolute; bottom: -14px; left: 14px; right: 14px;
  height: 2px; border-radius: 1px;
  background: var(--primary);
}

/* 右：搜索 + 登录 */
.topbar-right {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.top-search {
  position: relative;
  margin-right: 4px;
}
.top-search input {
  width: 260px; height: 34px; padding: 0 34px 0 14px;
  border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); font-size: 13px;
  transition: width .25s ease, border-color var(--transition);
}
.top-search input:focus { width: 320px; border-color: var(--primary); }
.search-icon {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--text-muted);
}
.btn-login {
  padding: 6px 18px;
  border-radius: 20px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-login:hover { background: var(--bg); border-color: var(--text-muted); }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; transition: color .2s; }
.user-name:hover { color: var(--primary); }
.btn-register {
  padding: 6px 18px;
  border-radius: 20px;
  background: var(--primary); color: #fff;
  border: 1px solid var(--primary);
  font-size: 13px; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-register:hover { background: #4f46e5; border-color: #4f46e5; }
.btn-logout {
  padding: 6px 18px;
  border-radius: 20px;
  background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-logout:hover { background: var(--bg); border-color: var(--text-muted); color: var(--text); }
.user-nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.user-nav-link:hover {
  background: var(--bg);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.user-nav-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border);
}
.user-nav-avatar-fallback {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-nav-name {
  font-size: 13px; font-weight: 600;
  color: var(--text);
  max-width: 100px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ================================================================
   MOBILE BRAND — 手机端顶部 logo（PC 端隐藏，因 sidebar 已有）
   ================================================================ */
.mobile-brand {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}
.mobile-logo-box {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, #5B4CF7, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.mobile-logo-box img {
  width: 100%; height: 100%; object-fit: cover;
}
.mobile-brand-text {
  font-size: 15px; font-weight: 800; color: var(--text);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* 手机端顶部操作按钮（语言切换 + 搜索） */
.mobile-topbar-actions {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
}
.mobile-search-btn svg { width: 16px; height: 16px; }
.mobile-search-btn:hover { border-color: var(--primary); color: var(--primary); }

/* 手机端退出按钮 */
.mobile-logout-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
}
.mobile-logout-btn svg { width: 16px; height: 16px; }
.mobile-logout-btn:hover { border-color: #F44336; color: #F44336; }

/* 手机端菜单按钮（默认隐藏，mobile 媒体查询显示） */
.mobile-menu-wrap { position: relative; display: none; }
.mobile-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); cursor: pointer; padding: 0;
}
.mobile-menu-btn svg { width: 18px; height: 18px; }
.mobile-menu-btn:hover, .mobile-menu-btn.active { border-color: var(--primary); color: var(--primary); }
.mobile-menu-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 180px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 200;
  padding: 6px; display: none; flex-direction: column; gap: 2px;
}
.mobile-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text); text-decoration: none;
  transition: background .15s; white-space: nowrap;
}
.mobile-menu-item svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.mobile-menu-item:hover { background: var(--bg); color: var(--primary); }
.mobile-menu-item:hover svg { color: var(--primary); }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 4px 2px; }

/* ================================================================
   LAYOUT
   ================================================================ */
.layout {
  display: flex;
  align-items: flex-start;
}

/* ================================================================
   SIDEBAR — 完整版（品牌头 + 搜索 + 历史 + 刷新 + 菜单卡 + 登录卡）
   ================================================================ */
.sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  display: flex; flex-direction: column; gap: 14px;
  padding: 10px 18px 20px;
  background: var(--bg);
  border-right: 1px solid #E5E7EB;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

/* 品牌头 */
.sb-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 10px;
  flex-shrink: 0;
}
.sb-brand {
  display: flex; align-items: center; gap: 14px;
  flex: 1;
  min-width: 0;
  padding: 0;
  flex-shrink: 0;
}
.sb-logo-box {
  width: 44px; height: 44px; border-radius: 16px;
  background: linear-gradient(135deg, #5B4CF7, #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.sb-logo-box img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.sb-brand-text {
  flex: 1; font-size: 17px; font-weight: 800; color: var(--text);
  letter-spacing: 0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}

/* 搜索历史输入框 */
.sb-search-wrap {
  position: relative;
  flex-shrink: 0;
}
.sb-search-input {
  width: 100%; height: 38px; padding: 0 36px 0 14px;
  border-radius: var(--radius); border: 2px solid var(--primary);
  background: var(--surface); font-size: 13px;
  transition: border-color var(--transition);
}
.sb-search-input:focus { border-color: var(--primary); }
.sb-search-input::placeholder { color: var(--text-muted); }
.sb-search-icon {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-muted); pointer-events: none;
}

/* 历史 + 刷新 行 */
.sb-actions-row {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #D1D5DB;
}
.sb-history-btn {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1.5px solid #C7C2FF;
  box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--primary);
  transition: all var(--transition);
  white-space: nowrap;
}
.sb-history-btn:hover {
  box-shadow: var(--shadow-md);
  background: var(--primary-light);
  border-color: var(--primary);
}
.sb-history-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.sb-refresh-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.sb-refresh-btn:hover {
  color: var(--primary); border-color: var(--primary);
  transform: rotate(180deg);
}
.sb-refresh-btn svg { width: 16px; height: 16px; }

/* 弹性占位 */
.sb-spacer { flex: 1; min-height: 20px; }

/* ================================================================
   底部菜单区（登录栏 + 展开菜单）
   ================================================================ */
.sb-menu-section {
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0;
}

/* 菜单卡片 — 白色圆角，有阴影 */
.sb-menu-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  overflow: hidden;
}
.sb-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  cursor: pointer; transition: all var(--transition);
}
.sb-menu-item:hover { background: var(--primary-light); }
.sb-menu-item .sb-menu-icon {
  width: 20px; height: 20px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.sb-menu-item .sb-menu-text {
  flex: 1; font-size: 14px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-menu-item .sb-menu-arrow {
  width: 16px; height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* 菜单列表（直接可见，历史按钮下方） */
.sb-menu-list {
  display: flex; flex-direction: column;
  padding: 6px;
}
.sb-menu-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px; color: var(--text);
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
}
.sb-menu-list-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.sb-menu-list-icon {
  width: 18px; height: 18px;
  flex-shrink: 0; color: var(--text-muted);
}
.sb-menu-list-item:hover .sb-menu-list-icon { color: var(--primary); }
.sb-menu-divider {
  height: 1px; background: var(--border);
  margin: 4px 8px;
}
.sb-menu-external {
  width: 14px; height: 14px;
  color: var(--text-muted); flex-shrink: 0;
  margin-left: auto;
}
.sb-menu-link { justify-content: space-between; }
.sb-menu-link:hover .sb-menu-external { color: var(--primary); }

/* 博客展开菜单 */
.sb-menu-expand { justify-content: flex-start; }
.sb-menu-expand .sb-menu-chevron {
  width: 14px; height: 14px;
  color: var(--text-muted);
  margin-left: auto;
  transition: transform .2s ease;
}
.sb-menu-expand .sb-menu-chevron.expanded {
  transform: rotate(180deg);
}
.sb-menu-sub {
  display: flex; flex-direction: column;
  padding: 2px 6px 6px 36px;
  gap: 2px;
}
.sb-menu-sub-item {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px; color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
}
.sb-menu-sub-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ================================================================
   子面板（语言 / 帮助 / 了解更多）
   ================================================================ */
.sb-sub-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  margin-bottom: 10px;
  max-height: 320px;
  overflow-y: auto;
}
.sb-sub-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.sb-sub-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.sb-sub-item.sb-sub-active {
  background: var(--primary);
  color: white;
}
.sb-sub-check {
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.sb-sub-external {
  width: 14px; height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.sb-sub-item.sb-sub-link:hover .sb-sub-external { color: var(--primary); }

/* 菜单项高亮 */
.sb-menu-item.sb-menu-active {
  background: var(--primary);
  color: white;
}
.sb-menu-item.sb-menu-active .sb-menu-icon,
.sb-menu-item.sb-menu-active .sb-menu-text,
.sb-menu-item.sb-menu-active .sb-menu-arrow {
  color: white;
}

/* ================================================================
   MAIN AREA
   ================================================================ */

.main {
  flex: 1; padding: 0 24px 24px;
  display: flex; flex-direction: column;
  position: relative;
  background: var(--bg);
  min-width: 0;
  width: 100%;
}

/* 骨架屏 */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius);
  height: 90px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100%{opacity:1} 50%{opacity:.45}
}

/* ================================================================
   底部查询面板 (Bottom Panel) — 在首页视图内，参考 imei.bot
   ================================================================ */
.bottom-panel {
  position: relative;
  background: var(--surface);
  padding: 16px 0;
  overflow: visible;
  margin-top: 260px;
  border-radius: 0;
}
.category-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #E5E7EB;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-nav::-webkit-scrollbar { display: none; }

.cat-tab {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  white-space: nowrap;
  user-select: none;
}
.cat-tab:hover { color: #5B4CF7; }
.cat-tab-active {
  color: #5B4CF7;
  border-bottom-color: #5B4CF7;
  font-weight: 600;
}

/* 卡片区域 */
.cards-area {
  position: relative; display: flex; align-items: flex-start;
}

/* 翻页箭头 */
.page-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all var(--transition);
}
.page-arrow svg { width: 16px; height: 16px; }
.page-arrow:hover { color: var(--primary); box-shadow: var(--shadow-lg); }
.page-arrow-left  { left: -16px; }
.page-arrow-right { right: -16px; }

/* 4列卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
}

/* 单张服务卡片 */
.service-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 90px;
  cursor: pointer; transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid #D1D5DB;
  overflow: hidden;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: rgba(91,76,247,.15);
}
.service-card.sc-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,76,247,.1);
}

/* 收藏星 */
.sc-star {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 16px; height: 16px;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}
.sc-star:hover { color: #FBBF24; }
.sc-star svg { width: 100%; height: 100%; transition: all .2s ease; }

/* 选中卡片时 — 星星紫色填充 + 脉冲动画 */
.sc-selected .sc-star,
.sc-star.sc-star-selected {
  color: var(--primary);
  animation: star-pulse .5s ease;
}
.sc-selected .sc-star svg,
.sc-star.sc-star-selected svg {
  fill: var(--primary);
  stroke: var(--primary);
}

/* 收藏时 — 金色填充 + 弹跳 */
.sc-star.favorited {
  color: #FBBF24;
  animation: star-bounce .4s ease;
}
.sc-star.favorited svg {
  fill: #FBBF24;
  stroke: #FBBF24;
}

/* 星星脉冲动画（选中时） */
@keyframes star-pulse {
  0%   { transform: scale(1); filter: drop-shadow(0 0 0 rgba(91,76,247,0)); }
  50%  { transform: scale(1.35); filter: drop-shadow(0 0 6px rgba(91,76,247,.5)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(91,76,247,0)); }
}

/* 星星弹跳动画（收藏时） */
@keyframes star-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  50%  { transform: scale(.9); }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.sc-body {
  display: flex; align-items: flex-start; gap: 12px;
}

/* 品牌色字母圆 */
.sc-icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
  flex-shrink: 0;
  letter-spacing: -.5px;
}

/* 信息区 */
.sc-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.sc-name {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-price-row {
  display: flex; align-items: center; gap: 4px;
}
.sc-price {
  font-size: 12px; font-weight: 700; color: var(--primary);
}
.sc-bolt {
  font-size: 12px; color: #FBBF24;
}

/* 分页圆点 */
.page-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 20px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #D1D5DB; cursor: pointer; transition: all var(--transition);
}
.dot:hover { background: #9CA3AF; }
.dot-active {
  width: 24px; border-radius: 4px;
  background: var(--primary);
}

/* 内部容器：宽度与主内容区对齐 */
.bottom-panel-inner {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0 8px;
}

/* 上层：服务详情（展开时显示） */
.bp-detail {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #CFD8FF;
  gap: 20px;
  background: #fff;
}
.bp-detail-left {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.bp-svc-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bp-hash {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.bp-svc-desc {
  font-size: 11.5px; color: #9CA3AF;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Rate 显示 */
.bp-svc-rate {
  display: flex; align-items: center; gap: 3px;
  font-size: 11.5px; color: #9CA3AF;
  margin-top: 2px;
}
.bp-rate-label { font-weight: 500; }
.bp-rate-val { color: var(--text); font-weight: 600; }

/* Bulk Mode 标签 */
.bp-bulk-mode {
  display: inline-flex; align-items: center;
  margin-top: 4px;
}
.bp-bulk-label {
  font-size: 10px; font-weight: 600; color: var(--primary);
  padding: 2px 8px;
  border-radius: 8px;
  background: #F5F3FF;
  border: 1px solid #E0D7FF;
}

/* 上传方式按钮行 */
.bp-upload-row {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
}
.bp-upload-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #CFD8FF;
  font-size: 11.5px; font-weight: 500; color: #6B7280;
  transition: all var(--transition);
  white-space: nowrap;
}
.bp-upload-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.bp-upload-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.bp-detail-right {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.bp-meta-block {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.bp-meta-label {
  font-size: 11px; color: var(--text-muted); font-weight: 500;
}
.bp-price {
  font-size: 15px; font-weight: 700; color: var(--primary);
}
.bp-delivery {
  font-size: 15px;
}
.bp-meta-sep {
  width: 1px; height: 24px; background: #CFD8FF;
}

/* 下层：操作区 — 白色圆角卡片 */
.bp-action {
  display: flex; flex-direction: column; gap: 0;
  padding: 12px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
}

/* 底部登录卡片 */
.bp-login-card {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  background: #F8F9FA;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s ease;
  position: relative;
}
.bp-login-card:hover {
  border-color: #D1D5DB;
  background: #F1F3F5;
}
.bp-login-card .bp-login-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #9CA3AF;
  flex-shrink: 0;
  border: 1px solid #E5E7EB;
}
.bp-login-card .bp-login-avatar svg {
  width: 18px; height: 18px;
}
.bp-login-card .bp-login-info {
  display: flex; flex-direction: column;
  line-height: 1.3;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.bp-login-card .bp-login-name {
  font-weight: 500; font-size: 14px; color: var(--text-primary);
}
.bp-login-card .bp-login-sub {
  font-size: 11px; color: #9CA3AF;
}
.bp-login-card .bp-login-arrow {
  width: 16px; height: 16px;
  color: #9CA3AF;
  flex-shrink: 0;
}

/* 服务标签 pill — 白底紫边框 */
.bp-svc-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  border: 1.5px solid #D1D5DB;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  align-self: flex-start;
  cursor: pointer;
  transition: all .2s ease;
  max-width: 220px;
}
.bp-svc-tag:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(91,76,247,.15);
}
.bp-tag-hash { opacity: 0.85; }
.bp-tag-name { white-space: nowrap; }
.bp-tag-arrow {
  width: 11px; height: 11px;
  opacity: 0.85;
}

/* 输入框 — 透明背景无框 */
.bp-input-wrap { width: 100%; }
.bp-input-wrap input {
  width: 100%; height: 40px; padding: 0 4px;
  border-radius: 8px;
  border: none; background: transparent;
  font-size: 14px;
  transition: none;
}
.bp-input-wrap input:focus { outline: none; }
.bp-input-wrap input::placeholder { color: #9CA3AF; }

/* 分隔线 */
.bp-divider {
  width: 100%; height: 1px;
  background: #E5E7EB;
  margin: 4px 0;
}

/* 按钮行 — 紧凑操作栏 */
.bp-action-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: nowrap;
  padding-top: 4px;
}
.bp-action-row > * { flex-shrink: 0; }
.bp-action-row .bp-balance { margin-left: auto; flex-shrink: 0; }

/* + 展开/收起按钮 — 灰色圆 */
.bp-plus {
  width: 26px; height: 26px; border-radius: 50%;
  background: #F3F4F6; color: #6B7280;
  font-size: 16px; font-weight: 300;
  border: 1px solid #E5E7EB;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
  line-height: 1;
}
.bp-plus:hover { background: #E5E7EB; }

/* 余额 */
.bp-balance {
  font-size: 13px; color: var(--text-secondary);
  white-space: nowrap;
  font-weight: 500;
}

/* 检查按钮 — 白底紫边框 */
.bp-check-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff; color: var(--primary);
  border: 1.5px solid var(--primary);
  font-size: 12px; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.bp-check-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.bp-check-icon {
  width: 14px; height: 14px;
}

/* ================================================================
   MOBILE BOTTOM INPUT
   ================================================================ */
.mobile-bottom {
  display: none;
}

/* ================================================================
   MOBILE TAB BAR
   ================================================================ */
.tab-bar {
  display: none;
}

/* ================================================================
   FOOTER
   ================================================================ */
/* ================================================================
   FOOTER — 参考 imei.bot 紧凑风格，固定在页面底部
   ================================================================ */
.site-footer {
  padding: 8px 0 0;
  text-align: center;
}
.footer-text {
  font-size: 12px;
  line-height: 1.5;
  color: #94A3B8;
}
.footer-text span {
  color: #94A3B8;
}
.footer-text a {
  color: #5848ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms ease;
}
.footer-text a:hover {
  color: #4738e6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 桌面端：让出 sidebar 宽度，与 layout 对齐 */
@media screen and (min-width: 1024px) {
  .site-footer {
    padding-left: var(--sidebar-w);
  }
}

/* 移动端 */
@media (max-width: 640px) {
  .site-footer { display: none !important; }
}

/* ================================================================
   LOGIN MODAL
   ================================================================ */
/* ================================================================
   LOGIN MODAL — 参考 imei.bot 风格
   ================================================================ */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  /* 注意：不能用 backdrop-filter，iOS Safari 会破坏 fixed 内部元素的 touch hit-testing */
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px 20px;
  width: 360px; max-width: 100%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px); /* 移动端用 dvh 避免键盘弹起后溢出 */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 3px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-x {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #9CA3AF; transition: all .2s ease;
  background: none; border: none; cursor: pointer;
}
.modal-x:hover { background: #F3F4F6; color: #374151; }
.modal-x svg { width: 16px; height: 16px; }
.modal-title { font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.modal-sub { font-size: 12px; color: #6B7280; margin-bottom: 18px; }

/* 屏蔽 Google GSI SDK 生成的干扰 iframe（用 popup OAuth，不需要 One Tap 层） */
iframe[id^="gsi_"],
#credential_picker_container,
div[class*="qJTHM"] {
  display: none !important;
}

/* 输入区域 */
.login-field { margin-bottom: 12px; }
.login-label {
  display: block;
  font-size: 12px; font-weight: 600; color: #374151;
  margin-bottom: 5px;
}
.login-input-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; height: 42px;
  border-radius: 10px;
  border: 1px solid #E5E7EB; background: #F9FAFB;
  transition: all .2s ease;
}
.login-input-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91,76,247,.08);
}
.login-input-icon {
  width: 16px; height: 16px;
  color: #9CA3AF; flex-shrink: 0;
}
.login-input-wrap input {
  flex: 1; font-size: 16px; color: #111827;
  background: transparent; border: none; outline: none;
}
.login-input-wrap input::placeholder { color: #9CA3AF; }

/* 主按钮 */
.login-btn-main {
  width: 100%; height: 44px;
  border-radius: 10px;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all .2s ease;
  margin-top: 2px;
}
.login-btn-main:hover:not(:disabled) {
  background: #4c3de6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91,76,247,.3);
}
.login-btn-main:disabled { opacity: .55; cursor: not-allowed; }

/* 错误提示 */
.login-err { font-size: 12px; color: #DC2626; margin: -6px 0 10px; }

/* 快捷登录 */
.login-quick { margin-top: 18px; }
.login-divider {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.login-divider::before,
.login-divider::after {
  content: ''; flex: 1; height: 1px; background: #E5E7EB;
}
.login-divider span {
  font-size: 11px; color: #9CA3AF; white-space: nowrap;
}
.login-quick-btns {
  display: flex; justify-content: center; gap: 24px;
}
.login-social-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  transition: transform .2s ease;
}
.login-social-btn:hover { transform: translateY(-2px); }
.login-social-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow .2s ease;
}
.login-social-btn:hover .login-social-icon {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.login-google { background: #fff; border: 1px solid #E5E7EB; }
.login-google svg { width: 22px; height: 22px; }
.login-telegram { background: #2AABEE; border: 1px solid #2AABEE; }
.login-telegram svg { width: 22px; height: 22px; }
.login-social-text {
  font-size: 11px; color: #6B7280;
}

/* 创建账户 */
.login-register-link {
  text-align: center;
  margin-top: 14px;
  font-size: 12px; color: #6B7280;
}
.login-register-link a {
  color: var(--primary); font-weight: 600;
  text-decoration: none; transition: color .2s;
}
.login-register-link a:hover { color: #4c3de6; text-decoration: underline; }

/* 底部声明 */
.login-footer {
  text-align: center;
  margin-top: 12px;
  font-size: 11px; color: #9CA3AF; line-height: 1.5;
}
.login-footer a {
  color: var(--primary); text-decoration: none;
  transition: color .2s;
}
.login-footer a:hover { color: #4c3de6; text-decoration: underline; }

/* ================================================================
   RESPONSIVE — 桌面 >= 1024px
   ================================================================ */
@media screen and (min-width: 1024px) {
  .sidebar       { display: flex; }
  .bottom-panel  { display: block; }
  .mobile-bottom { display: none !important; }
  .tab-bar       { display: none !important; }
  .mobile-brand  { display: none !important; }
  .card-grid     { grid-template-columns: repeat(4, 1fr); }
  
.main { flex: 1; padding: 0 40px 24px; }
  .layout        { max-width: 1480px; margin-left: auto; margin-right: auto; padding: 0 20px 0 var(--sidebar-w); }
}


/* ================================================================
   MOBILE — < 1024px
   ================================================================ */
@media screen and (max-width: 1023px) {
  .sidebar       { display: none !important; }
  .bottom-panel  { display: none !important; }
  .page-arrow    { display: none !important; }
  .mobile-brand  { display: flex; }

  .mobile-bottom {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    background: var(--surface);
    border-bottom: 1px solid #D1D5DB;
    position: relative;
  }
  .mb-field {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 0 12px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg);
  }
  .mb-field svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
  .mb-field input { flex: 1; font-size: 14px; }
  .mb-submit {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    background: var(--primary); color: #fff;
    font-size: 14px; font-weight: 600; flex-shrink: 0;
  }

  .tab-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: var(--surface);
    border-top: 1px solid #D1D5DB;
  }
  .tab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 0 6px; font-size: 11px; color: var(--text-muted);
    transition: color var(--transition);
  }
  .tab-item.active { color: var(--primary); }
  .tab-item svg { width: 21px; height: 21px; }
  .tab-avatar { width: 21px; height: 21px; border-radius: 50%; object-fit: cover; display: block; }

  
.main { padding: 16px; max-width: none; margin-left: 0; margin-right: 0; align-self: stretch; overflow-x: hidden; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .layout { max-width: 100vw; overflow-x: hidden; }
  body { overflow-x: hidden; }

  .main-topbar { padding: 0 0 10px; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
  .nav-pills { gap: 2px; overflow-x: auto; flex: none; scrollbar-width: none; order: 3; width: 100%; margin-top: 6px; }
  .nav-pills::-webkit-scrollbar { display: none; }
  .pill { padding: 4px 10px; font-size: 12px; }
  /* 手机端合并 GSX 查询到热门查询（隐藏 gsx pill，内容已在 JS 里合并） */
  .pill[data-key="gsx"] { display: none; }
  .brand-text { font-size: 14px; }
  .top-search { display: none; }
  .btn-login { display: none; }
  .btn-register { display: none; }
  .btn-logout { padding: 5px 14px; font-size: 12px; }
  .user-nav-name { display: none; }
  .mobile-topbar-actions { display: flex; }
  .mobile-search-btn { display: flex; }
  .mobile-menu-wrap { display: block; }
  .mobile-menu-btn { display: flex; }
  .mobile-menu-dropdown { display: flex; }
  .mobile-logout-btn { display: flex; }

  /* 底部留白避开 tab-bar（约 49px + 安全距离） */
  .main { padding-bottom: 56px; }
  .site-footer { padding-bottom: 56px; }

  /* 用户中心手机端自适应（紧凑版） */
  .uc-content { padding-bottom: 0; max-width: 100%; overflow-x: hidden; }
  .uc-card { margin: 6px 0; padding: 10px 12px; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02); }
  .uc-profile-card { padding: 12px 12px 10px; }
  .uc-profile-main { gap: 8px; margin-bottom: 6px; }
  .uc-profile-main.guest { justify-content: center; text-align: center; }
  .uc-profile-main.guest .uc-profile-info { flex: 0 0 auto; min-width: auto; }
  .uc-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; box-shadow: 0 2px 6px rgba(99,102,241,0.12); }
  .uc-avatar-fallback { font-size: 16px; font-weight: 700; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #6366f1; }
  .uc-name { font-size: 14px; font-weight: 600; margin-bottom: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .uc-id { font-size: 10px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .uc-edit-btn { padding: 0; font-size: 13px; font-weight: 500; border-radius: 0; background: none; color: #6366f1; border: none; white-space: nowrap; flex-shrink: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
  .uc-balance-row { display: none; }
  .uc-balance-label { font-size: 10px; color: #94a3b8; margin-bottom: 1px; font-weight: 500; }
  .uc-action-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .uc-action-item { padding: 8px 4px; gap: 5px; border-radius: 12px; }
  .uc-action-item:active { background: rgba(99,102,241,0.06); transform: scale(0.97); }
  .uc-action-icon { width: 40px; height: 40px; border-radius: 12px; }
  .uc-action-icon svg { width: 20px; height: 20px; }
  .uc-action-item span { font-size: 11px; font-weight: 500; color: #475569; }
  .uc-section-title { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 8px; gap: 6px; }
  .uc-section-title svg { width: 16px; height: 16px; }
  .uc-service-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .uc-service-item { padding: 10px 6px; gap: 5px; border-radius: 12px; background: #fafafa; }
  .uc-service-item:active { background: #f0f0f0; transform: scale(0.97); }
  .uc-service-icon { width: 36px; height: 36px; border-radius: 10px; }
  .uc-service-icon svg { width: 18px; height: 18px; }
  .uc-service-item span { font-size: 12px; font-weight: 500; }
  .uc-service-item small { font-size: 10px; color: #94a3b8; margin-top: 1px; font-weight: 400; }
  .uc-menu-item { padding: 10px 0; gap: 10px; border-bottom: 1px solid #f8fafc; }
  .uc-menu-item:last-child { border-bottom: none; padding-bottom: 0; }
  .uc-menu-item:first-child { padding-top: 0; }
  .uc-menu-icon { width: 32px; height: 32px; border-radius: 10px; }
  .uc-menu-icon svg { width: 16px; height: 16px; }
  .uc-menu-text span { font-size: 14px; font-weight: 500; color: #334155; }
  .uc-menu-text small { font-size: 12px; color: #94a3b8; margin-top: 2px; }
  .uc-menu-arrow { width: 16px; height: 16px; color: #cbd5e1; }

  /* 用户中心手机端顶部栏优化 */
  .mobile-brand-text { font-size: 13px; font-weight: 700; }
  .uc-mobile-topbar { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .uc-mobile-topbar .lang-btn { width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; }
  .uc-mobile-topbar .lang-btn.active { background: #e0e7ff; border-color: #c7d2fe; color: #6366f1; }
  .uc-top-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(99,102,241,0.15); }
  .uc-top-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
  .uc-top-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #6366f1; }
  .uc-top-avatar-fallback svg { width: 16px; height: 16px; }
  body.user-page .mobile-topbar-actions { display: none; }

  /* footer 移动端样式已在 footer 区块内定义 */
}

/* ================================================================
   历史记录视图 — 直接在主区域显示
   ================================================================ */

/* 历史视图容器 */
.history-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #f8fafc;
}

/* 历史视图顶部导航 */
.history-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.history-view-back {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.history-view-back:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.history-view-back svg { width: 17px; height: 17px; }
.history-view-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}
.history-view-spacer { width: 34px; }

/* 搜索 */
.history-search {
  position: relative;
  padding: 14px 24px 0;
  flex-shrink: 0;
  background: #fff;
}
.history-search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.history-search input:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.history-search input::placeholder { color: #94a3b8; }
.history-search-icon {
  position: absolute;
  left: 36px;
  top: calc(50% + 7px);
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #94a3b8;
  pointer-events: none;
}

/* 筛选条件 — 2×2 网格 */
.history-filters {
  padding: 12px 24px 14px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.history-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.history-filter-input,
.history-filter-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  background: #fff;
  color: #334155;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  box-sizing: border-box;
}
.history-filter-input:focus,
.history-filter-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.history-filter-input::placeholder { color: #94a3b8; }
.history-filter-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

/* 加载状态 */
.history-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: #94a3b8;
  font-size: 14px;
  flex: 1;
}
.history-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: history-spin 0.7s linear infinite;
}
@keyframes history-spin { to { transform: rotate(360deg); } }

/* 列表 */
.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 24px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.history-list::-webkit-scrollbar { width: 6px; }
.history-list::-webkit-scrollbar-track { background: transparent; }
.history-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* 列表项 — 卡片式 */
.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.history-item:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(99,102,241,0.08);
  transform: translateY(-1px);
}
.history-item:last-child { margin-bottom: 0; }

/* 服务图标色块 */
.history-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.history-item-main { flex: 1; min-width: 0; }
.history-item-service {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.history-item-device {
  font-size: 12.5px;
  color: #64748b;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

/* 状态标签 — 颜色编码 */
.history-item-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.history-item-status.status-completed {
  background: #ecfdf5;
  color: #059669;
}
.history-item-status.status-processing {
  background: #fffbeb;
  color: #d97706;
}
.history-item-status.status-failed {
  background: #fef2f2;
  color: #dc2626;
}
.history-item-status.status-pending {
  background: #eff6ff;
  color: #2563eb;
}
.history-item-date {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

/* ===== 空状态 — 精致版 ===== */
.history-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.history-empty-box {
  text-align: center;
  width: 100%;
  max-width: 360px;
  padding: 48px 28px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(99,102,241,0.06);
  position: relative;
  overflow: hidden;
}
/* 装饰渐变球 */
.history-empty-decor {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
}
.history-empty-ball {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.35;
}
.history-empty-ball.ball-1 {
  width: 60px;
  height: 60px;
  background: #6366f1;
  top: -8px;
  left: -10px;
  animation: float-ball 4s ease-in-out infinite;
}
.history-empty-ball.ball-2 {
  width: 48px;
  height: 48px;
  background: #8b5cf6;
  top: 30px;
  right: -6px;
  animation: float-ball 5s ease-in-out infinite 1s;
}
.history-empty-ball.ball-3 {
  width: 36px;
  height: 36px;
  background: #a78bfa;
  bottom: -4px;
  left: 20px;
  animation: float-ball 3.5s ease-in-out infinite 0.5s;
}
@keyframes float-ball {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6px, -8px) scale(1.05); }
  66% { transform: translate(-4px, 4px) scale(0.95); }
}
.history-empty-icon {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  box-shadow: 0 2px 8px rgba(99,102,241,0.12);
}
.history-empty-icon svg { width: 30px; height: 30px; }
.history-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.history-empty-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 20px;
}
.history-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.history-empty-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

/* 底部 */
.history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  box-shadow: 0 -1px 2px rgba(0,0,0,0.03);
}
.history-total {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}
.history-total-empty {
  width: 100%;
  text-align: center;
  color: #94a3b8;
  font-weight: 500;
}
.history-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-prev,
.hp-next {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.hp-prev:hover:not(:disabled),
.hp-next:hover:not(:disabled) {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}
.hp-prev:disabled,
.hp-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.hp-prev svg,
.hp-next svg { width: 16px; height: 16px; }
.hp-page {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}
.history-per-page {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}
.history-per-page select {
  padding: 5px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12.5px;
  font-family: 'Inter', system-ui, sans-serif;
  background: #fff;
  color: #334155;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}
.history-per-page select:focus { border-color: #6366f1; }

/* 移动端适配 */
@media (max-width: 640px) {
  .history-view-header { padding: 12px 16px; }
  .history-search { padding: 12px 16px 0; }
  .history-filters { padding: 10px 16px 12px; }
  .history-list { padding: 12px 16px; }
  .history-footer { padding: 12px 16px; }
  .history-filter-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .history-empty { padding: 32px 16px; }
  .history-empty-box { padding: 36px 20px; }
  .history-footer {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .history-total-empty { text-align: center; }
}

/* ================================================================
   博客视图
   ================================================================ */
.blog-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #f8fafc;
}
.blog-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.blog-view-back {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.blog-view-back:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.blog-view-back svg { width: 17px; height: 17px; }
.blog-view-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}
.blog-view-spacer { width: 34px; }

/* 搜索 */
.blog-search {
  position: relative;
  padding: 14px 24px 0;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.blog-search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  box-sizing: border-box;
}
.blog-search input:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.blog-search input::placeholder { color: #94a3b8; }
.blog-search-icon {
  position: absolute;
  left: 36px;
  top: calc(50% + 7px);
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #94a3b8;
  pointer-events: none;
}

/* 加载状态 */
.blog-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: #94a3b8;
  font-size: 14px;
  flex: 1;
}
.blog-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: history-spin 0.7s linear infinite;
}

/* 文章列表 */
.blog-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 24px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.blog-list::-webkit-scrollbar { width: 6px; }
.blog-list::-webkit-scrollbar-track { background: transparent; }
.blog-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* 文章卡片 */
.blog-item {
  display: flex;
  gap: 14px;
  padding: 15px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.blog-item:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(99,102,241,0.08);
  transform: translateY(-1px);
}
.blog-item:last-child { margin-bottom: 0; }

/* 封面图 */
.blog-item-cover {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}
.blog-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 无封面时的图标色块 */
.blog-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
  background: #6366f1;
}

.blog-item-main { flex: 1; min-width: 0; }
.blog-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.blog-item-summary {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-item-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #ecfdf5;
  color: #059669;
}
.blog-item-tag.hot {
  background: #fffbeb;
  color: #d97706;
}
.blog-item-category {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #eff6ff;
  color: #2563eb;
}
.blog-item-date {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}
.blog-item-views {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}
.blog-item-views svg {
  width: 13px;
  height: 13px;
}

/* ===== 空状态 ===== */
.blog-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.blog-empty-box {
  text-align: center;
  width: 100%;
  max-width: 360px;
  padding: 48px 28px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(99,102,241,0.06);
}
.blog-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  box-shadow: 0 2px 8px rgba(99,102,241,0.12);
}
.blog-empty-icon svg { width: 30px; height: 30px; }
.blog-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.blog-empty-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 20px;
}
.blog-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.blog-empty-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

/* 底部 */
.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  box-shadow: 0 -1px 2px rgba(0,0,0,0.03);
}
.blog-total {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}
.blog-total-empty {
  width: 100%;
  text-align: center;
  color: #94a3b8;
  font-weight: 500;
}
.blog-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bp-prev,
.bp-next {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.bp-prev:hover:not(:disabled),
.bp-next:hover:not(:disabled) {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}
.bp-prev:disabled,
.bp-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bp-prev svg,
.bp-next svg { width: 16px; height: 16px; }
.bp-page {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .blog-view-header { padding: 12px 16px; }
  .blog-search { padding: 12px 16px 0; }
  .blog-list { padding: 12px 16px; }
  .blog-footer { padding: 12px 16px; }
  .blog-empty { padding: 32px 16px; }
  .blog-empty-box { padding: 36px 20px; }
  .blog-item {
    gap: 10px;
    padding: 12px;
  }
  .blog-item-cover {
    width: 64px;
    height: 64px;
  }
  .blog-item-summary {
    -webkit-line-clamp: 1;
  }
  .blog-footer {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .blog-total-empty { text-align: center; }
}

/* ================================================================
   文章详情页 — 优化版 v96
   ================================================================ */
.article-detail-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #f1f5f9;
}

/* 加载中 */
.article-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 100px 24px;
  color: #64748b;
  font-size: 14px;
}
.article-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: article-spin 0.8s linear infinite;
}
@keyframes article-spin {
  to { transform: rotate(360deg); }
}

/* 内容容器 — 白色卡片 */
.article-content {
  max-width: 920px;
  margin: 24px auto 48px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* 顶部面包屑/返回 */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px 0;
  font-size: 13px;
  color: #64748b;
}
.article-breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6366f1;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
  padding: 4px 10px;
  border-radius: 8px;
}
.article-breadcrumb-back:hover {
  background: #eef2ff;
  color: #4f46e5;
}
.article-breadcrumb-back svg {
  width: 16px;
  height: 16px;
}
.article-breadcrumb-sep {
  color: #cbd5e1;
}

/* 文章头部 */
.article-header {
  padding: 20px 40px 28px;
}
.article-category-tag {
  display: inline-block;
  padding: 5px 14px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.article-title {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 20px 0;
  letter-spacing: -0.6px;
}

/* 元信息行 */
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #64748b;
}
.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-meta-item svg {
  width: 15px;
  height: 15px;
  color: #94a3b8;
}
.article-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
  margin: 0 12px;
  flex-shrink: 0;
}

/* 封面图 */
.article-cover {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: #f1f5f9;
}
.article-cover img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* 正文区域 */
.article-body-wrap {
  padding: 32px 40px 48px;
}

/* 摘要 — 更精致的引用样式 */
.article-summary {
  font-size: 17px;
  color: #475569;
  line-height: 1.75;
  padding: 20px 24px;
  background: #f8fafc;
  border-left: 4px solid #6366f1;
  border-radius: 0 12px 12px 0;
  margin-bottom: 32px;
  font-style: italic;
}

/* 正文 */
.article-body {
  font-size: 16.5px;
  color: #334155;
  line-height: 1.85;
}
.article-body :where(h1, h2, h3, h4, h5, h6) {
  color: #0f172a;
  font-weight: 700;
  margin: 36px 0 16px;
  letter-spacing: -0.3px;
}
.article-body :where(h1) { font-size: 26px; }
.article-body :where(h2) { font-size: 22px; }
.article-body :where(h3) { font-size: 19px; }
.article-body p {
  margin: 0 0 20px;
}
.article-body :where(ul, ol) {
  padding-left: 28px;
  margin: 0 0 20px;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body :where(pre, code) {
  background: #f1f5f9;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 14px;
}
.article-body pre {
  padding: 16px 20px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  margin: 20px 0;
}
.article-body code {
  padding: 2px 7px;
}
.article-body blockquote {
  border-left: 4px solid #cbd5e1;
  padding: 12px 20px;
  margin: 20px 0;
  color: #64748b;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.article-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.article-body a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(99,102,241,0.25);
  transition: border-color 150ms ease;
}
.article-body a:hover {
  border-bottom-color: #6366f1;
}

/* 文章底部 */
.article-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px 32px;
  border-top: 1px solid #e2e8f0;
  background: #fafbfc;
}
.article-footer-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
  border: none;
}
.article-footer-back:hover {
  background: #e0e7ff;
  transform: translateX(-2px);
}
.article-footer-back svg {
  width: 16px;
  height: 16px;
}

/* 空状态 */
.article-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 100px 24px;
  text-align: center;
}
.article-empty-icon {
  color: #cbd5e1;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(99,102,241,0.12);
}
.article-empty-icon svg {
  width: 30px;
  height: 30px;
}
.article-empty p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}
.article-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.article-empty-btn:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .article-content {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .article-breadcrumb {
    padding: 14px 20px 0;
  }
  .article-header {
    padding: 16px 20px 20px;
  }
  .article-title {
    font-size: 26px;
  }
  .article-meta-bar {
    font-size: 12.5px;
  }
  .article-meta-divider {
    margin: 0 8px;
  }
  .article-body-wrap {
    padding: 24px 20px 32px;
  }
  .article-summary {
    font-size: 15px;
    padding: 14px 16px;
  }
  .article-body {
    font-size: 15px;
  }
  .article-footer-bar {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .article-title {
    font-size: 22px;
  }
  .article-body :where(h1) { font-size: 22px; }
  .article-body :where(h2) { font-size: 19px; }
  .article-body :where(h3) { font-size: 17px; }
}

/* ================================================================
   服务选择弹窗 — 底部服务标签点击展开
   ================================================================ */
.svc-picker {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  padding: 0;
}
.svc-picker-box {
  width: 100%;
  max-width: 480px;
  max-height: 60vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: svcPickerSlideUp .25s ease;
}
@keyframes svcPickerSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.svc-picker-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
}
.svc-picker-head input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.svc-picker-head input::placeholder { color: #9CA3AF; }
.svc-picker-search-icon {
  width: 18px; height: 18px;
  color: #9CA3AF;
  flex-shrink: 0;
}
.svc-picker-close {
  width: 32px; height: 32px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.svc-picker-close svg { width: 16px; height: 16px; color: #6B7280; }
.svc-picker-close:hover { background: #E5E7EB; }

.svc-picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 16px;
}
.svc-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .15s;
  border-left: 3px solid transparent;
}
.svc-picker-item:hover { background: #F9FAFB; }
.svc-picker-item.svc-picker-active {
  background: var(--primary-light);
  border-left-color: var(--primary);
}
.svc-picker-id {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.svc-picker-info {
  flex: 1;
  min-width: 0;
}
.svc-picker-name {
  font-size: 14px; font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc-picker-price {
  font-size: 12px; color: #6B7280;
  display: flex; align-items: center; gap: 4px;
  margin-top: 2px;
}
.svc-picker-price span:first-child { color: var(--primary); font-size: 13px; }

/* 桌面端：弹窗居中而非底部 */
@media (min-width: 768px) {
  .svc-picker {
    align-items: center;
    padding: 20px;
  }
  .svc-picker-box {
    border-radius: 20px;
    max-height: 70vh;
    animation: svcPickerFadeIn .2s ease;
  }
  @keyframes svcPickerFadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }
}

/* ================================================================
   语言切换按钮 — 顶部导航栏
   ================================================================ */
.lang-wrap {
  position: relative;
  display: inline-flex;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  color: var(--text-primary);
  transition: all .2s ease;
  font-size: 16px;
}
.lang-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99,102,241,.15);
}
.lang-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99,102,241,.08);
}
.lang-btn-flag {
  font-size: 16px;
  line-height: 1;
}
.lang-btn-text {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.sb-brand-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sb-brand-actions .lang-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  font-size: 14px;
}
.sb-brand-actions .lang-btn-flag {
  font-size: 14px;
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  padding: 8px;
  z-index: 100;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background .15s ease;
}
.lang-item:hover {
  background: #f5f6fa;
}
.lang-item.active {
  background: rgba(99,102,241,.1);
  color: var(--primary);
  font-weight: 600;
}
.lang-item-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.lang-item-name {
  flex: 1;
}
.lang-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary);
}

/* ================================================================
   政策弹窗
   ================================================================ */
.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  padding: 20px;
}
.policy-modal-box {
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: policyModalIn .25s ease;
}
@keyframes policyModalIn {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.policy-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
}
.policy-modal-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.policy-modal-close {
  width: 32px; height: 32px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.policy-modal-close svg { width: 16px; height: 16px; color: #6B7280; }
.policy-modal-close:hover { background: #E5E7EB; }
.policy-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}
.policy-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
  color: #9CA3AF;
  font-size: 14px;
}
.policy-spinner {
  width: 32px; height: 32px;
  border: 3px solid #E5E7EB;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: policySpin 1s linear infinite;
}
@keyframes policySpin {
  to { transform: rotate(360deg); }
}
.policy-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-line;
}
.policy-content > * { margin: 12px 0; }
.policy-content > *:first-child { margin-top: 0; }
.policy-content > *:last-child { margin-bottom: 0; }
.policy-content h1,
.policy-content h2,
.policy-content h3 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.4;
}
.policy-content h1 { font-size: 22px; margin: 28px 0 14px; }
.policy-content h2 { font-size: 18px; margin: 24px 0 12px; }
.policy-content h3 { font-size: 16px; margin: 20px 0 10px; }
.policy-content h2:first-child,
.policy-content h1:first-child { margin-top: 0; }
.policy-content p { margin: 10px 0; }
.policy-content ul,
.policy-content ol { padding-left: 24px; margin: 10px 0; }
.policy-content li { margin: 6px 0; }
.policy-content a { color: var(--primary); text-decoration: underline; }
.policy-content a:hover { color: var(--primary-hover); }
.policy-content strong { font-weight: 700; color: var(--text-primary); }
.policy-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 12px;
  margin: 12px 0;
  color: var(--text-secondary);
}

/* ================================================================
   反馈表单
   ================================================================ */
.fb-form { display: flex; flex-direction: column; gap: 12px; }
.fb-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.fb-select, .fb-input, .fb-textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; background: var(--card-bg); color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.fb-select:focus, .fb-input:focus, .fb-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.fb-textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.fb-error { font-size: 13px; color: #EF4444; margin: 0; min-height: 18px; }
.fb-submit {
  width: 100%; padding: 12px; border: none; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .2s, opacity .2s;
}
.fb-submit:hover { background: var(--primary-hover); }
.fb-submit:disabled { opacity: .6; cursor: not-allowed; }

/* 移动端 */
@media (max-width: 767px) {
  .policy-modal {
    padding: 0;
    align-items: flex-end;
  }
  .policy-modal-box {
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    animation: policyModalSlideUp .25s ease;
  }
  @keyframes policyModalSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
  .policy-modal-head { padding: 14px 16px 10px; }
  .policy-modal-body { padding: 16px; }
}

/* ================================================================
   用户中心 — user.html
   ================================================================ */
.uc-content { flex: 1; }

/* 头部（已废弃，保留兼容） */
.uc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.uc-back { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); color: var(--text); transition: background .2s; }
.uc-back:hover { background: var(--border-light); }
.uc-back svg { width: 20px; height: 20px; }
.uc-title { font-size: 17px; font-weight: 600; color: var(--text); margin: 0; }
.uc-header-right { width: 36px; }

/* 卡片 */
.uc-card { background: var(--surface); border-radius: var(--radius); margin: 12px 0; padding: 16px; box-shadow: var(--shadow-sm); }

/* 手机端保留一点水平边距（因为 .main 的 padding 较小） */
@media (max-width: 1023px) {
  .uc-card { margin: 12px 0; }
}

/* 用户信息卡片 */
.uc-profile-main { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.uc-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.uc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.uc-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; color: var(--primary); background: var(--primary-light); }
.uc-profile-info { flex: 1; min-width: 0; }
.uc-name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-id { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-edit-btn { padding: 0; font-size: 14px; font-weight: 500; color: var(--primary); background: none; border: none; border-radius: 0; cursor: pointer; flex-shrink: 0; text-decoration: underline; text-underline-offset: 3px; }
.uc-edit-btn:hover { opacity: 0.8; }

/* 余额 */
.uc-balance-row { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.uc-balance-item { flex: 1; text-align: center; }
.uc-balance-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.uc-balance-value { font-size: 20px; font-weight: 700; color: var(--primary); }

/* 功能按钮 */
.uc-action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.uc-action-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: var(--radius-sm); cursor: pointer; transition: background .2s; text-decoration: none; color: var(--text); position: relative; }
.uc-action-item:hover { background: var(--border-light); }
.uc-action-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.uc-action-icon svg { width: 22px; height: 22px; }
.uc-action-item span { font-size: 12px; color: var(--text-secondary); }
.uc-badge { position: absolute; top: 0; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; font-weight: 600; color: #fff; background: #F44336; border-radius: 8px; display: flex; align-items: center; justify-content: center; }

/* 我的服务 */
.uc-section-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.uc-section-title svg { width: 18px; height: 18px; color: var(--primary); }
.uc-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.uc-service-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: var(--radius); background: var(--bg); text-decoration: none; color: var(--text); transition: background .2s; }
.uc-service-item:hover { background: var(--border-light); }
.uc-service-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.uc-service-icon svg { width: 20px; height: 20px; }
.uc-service-item span { font-size: 13px; font-weight: 500; }
.uc-service-item small { font-size: 11px; color: var(--text-muted); }

/* 菜单项 */
.uc-menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border-light); transition: background .2s; }
.uc-menu-item:last-child { border-bottom: none; padding-bottom: 0; }
.uc-menu-item:first-child { padding-top: 0; }
.uc-menu-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.uc-menu-icon svg { width: 18px; height: 18px; }
.uc-menu-text { flex: 1; }
.uc-menu-text span { display: block; font-size: 14px; font-weight: 500; }
.uc-menu-text small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.uc-menu-arrow { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }

/* 未登录提示 */
.uc-login-tip { text-align: center; padding: 40px 24px; }
.uc-login-tip p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; }
.uc-btn-primary { display: inline-block; padding: 10px 28px; font-size: 14px; font-weight: 500; color: #fff; background: var(--primary); border: none; border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background .2s; }
.uc-btn-primary:hover { background: var(--primary-dark); }

/* 编辑资料 */
.uc-avatar-edit { display: flex; align-items: center; gap: 12px; }
.uc-avatar-edit img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.uc-btn-sm { padding: 5px 12px; font-size: 12px; color: var(--primary); background: var(--primary-light); border: none; border-radius: var(--radius-sm); cursor: pointer; }
.uc-form-group { margin-bottom: 16px; }
.uc-form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.uc-form-group input { width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); box-sizing: border-box; }
.uc-form-group input:focus { outline: none; border-color: var(--primary); }

/* 通知列表 */
.uc-notice-list { display: flex; flex-direction: column; gap: 8px; }
.uc-notice-item { display: flex; gap: 10px; padding: 12px; border-radius: var(--radius-sm); background: var(--bg); }
.uc-notice-item.unread { background: var(--primary-light); }
.uc-notice-icon { width: 32px; height: 32px; border-radius: 50%; background: #FFF3E0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.uc-notice-icon svg { width: 16px; height: 16px; }
.uc-notice-content { flex: 1; min-width: 0; }
.uc-notice-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.uc-notice-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.uc-notice-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* 价格列表 */
.uc-price-list { display: flex; flex-direction: column; gap: 8px; }
.uc-price-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg); }
.uc-price-name { font-size: 13px; color: var(--text); }
.uc-price-value { font-size: 13px; font-weight: 600; color: var(--primary); }

/* 空状态 */
.uc-empty { text-align: center; padding: 30px; color: var(--text-muted); font-size: 14px; }

/* 弹窗按钮 */
.btn-secondary { padding: 8px 18px; font-size: 14px; font-weight: 500; color: var(--text-secondary); background: var(--border-light); border: none; border-radius: var(--radius-sm); cursor: pointer; transition: background .2s; }
.btn-secondary:hover { background: var(--border); }
.btn-primary { padding: 8px 18px; font-size: 14px; font-weight: 500; color: #fff; background: var(--primary); border: none; border-radius: var(--radius-sm); cursor: pointer; transition: background .2s; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* 模态框样式补充 */
.modal-body { padding: 16px 20px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--border-light); }

/* PC 端用户中心（在 .main 内，sidebar 已自动留出位置） */
@media (min-width: 768px) {
  .uc-header { display: none; }
  .tab-bar { display: none !important; }
}


/* ================================================================
   SERVICE / RESULT 独立页面样式（补全缺失类，v198 新增）
   ================================================================ */

/* 顶部栏 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  flex-shrink: 0;
}
.topbar .brand img {
  width: 32px; height: 32px; border-radius: 10px;
  object-fit: cover;
}
.topbar .brand-text {
  display: flex; flex-direction: column; line-height: 1.2;
}
.topbar .brand-name {
  font-size: 15px; font-weight: 800; color: var(--text);
  letter-spacing: 0.2px;
}
.topbar .brand-domain {
  font-size: 11px; color: var(--text-muted);
}
.spacer { flex: 1; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; font-size: 14px; font-weight: 600;
  border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-ghost {
  background: var(--surface); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg); color: var(--text); border-color: var(--text-muted);
}
.btn-soft {
  background: var(--primary-light); color: var(--primary);
  border: 1px solid var(--primary-border);
}
.btn-soft:hover { background: #E0DEFF; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* 卡片 */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  font-size: 18px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.card-price {
  font-size: 18px; font-weight: 800; color: var(--primary);
}
.card-price small { font-size: 12px; font-weight: 500; color: var(--text-muted); }

/* 区段标题 */
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 10px;
}
.section-title .bar {
  width: 3px; height: 16px; border-radius: 2px;
  background: var(--primary);
}

/* 输入框容器 */
.field {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}
.field input {
  flex: 1; font-size: 14px; color: var(--text);
}
.field input::placeholder { color: var(--text-muted); }
.field:focus-within { border-color: var(--primary); }

/* 警告横幅 */
.warning-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: #FEF3C7; color: #92400E;
  border: 1px solid #FDE68A; font-size: 14px;
}
.warning-banner .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #F59E0B; flex-shrink: 0;
}

/* 加载提示 */
.loading-line {
  text-align: center; padding: 30px;
  color: var(--text-muted); font-size: 14px;
}

/* 页脚 */
.footer {
  padding: 16px 20px; text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: 860px; margin: 0 auto;
}
.copyright {
  font-size: 12px; color: var(--text-muted);
}

/* service/result 手机端自适应 */
@media (max-width: 640px) {
  .topbar { padding: 8px 12px; gap: 8px; }
  .topbar .brand img { width: 28px; height: 28px; }
  .topbar .brand-name { font-size: 14px; }
  .topbar .brand-domain { display: none; }
  .btn-ghost { padding: 6px 12px; font-size: 13px; }
  .footer { padding: 12px; }
  .copyright { font-size: 11px; }
  .card-icon { width: 40px; height: 40px; font-size: 16px; }
}

/* ================================================================
   关于我们页面 (about.html)
   ================================================================ */
.about-hero {
  text-align: center;
  padding: 32px 20px;
}
.about-logo {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
}
.about-logo img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-name {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin: 0 0 4px;
}
.about-version {
  font-size: 13px; color: var(--text-muted);
  margin: 0 0 16px;
}
.about-version span {
  font-weight: 600; color: var(--primary);
}
.about-intro {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.7; margin: 0;
  max-width: 480px; margin: 0 auto;
}
.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.about-feature-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg);
}
.about-feature-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}
.about-feature-text {
  flex: 1; min-width: 0;
}
.about-feature-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 4px;
}
.about-feature-desc {
  font-size: 12px; color: var(--text-secondary);
  line-height: 1.5;
}
.about-contact {
  display: flex; flex-direction: column; gap: 10px;
}
.about-contact-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.about-contact-label {
  font-size: 13px; color: var(--text-secondary);
}
.about-contact-value {
  font-size: 13px; font-weight: 500; color: var(--text);
}
.about-footer-card {
  text-align: center;
  padding: 20px;
}
.about-copyright {
  font-size: 12px; color: var(--text-muted);
  margin: 0 0 4px;
}
.about-icp {
  font-size: 11px; color: var(--text-muted);
  margin: 0 0 8px;
}
.about-update {
  font-size: 11px; color: var(--text-muted);
  margin: 0;
}

/* ================================================================
   充值页面 (recharge.html)
   ================================================================ */
.recharge-balance-card {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
}
.recharge-balance-label {
  font-size: 13px; opacity: .85;
}
.recharge-balance-value {
  font-size: 28px; font-weight: 700;
  display: flex; align-items: baseline; gap: 4px;
}
.recharge-balance-value small {
  font-size: 13px; font-weight: 500; opacity: .85;
}
.recharge-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.recharge-plan {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--surface);
  position: relative;
}
.recharge-plan:hover {
  border-color: var(--primary-border);
}
.recharge-plan.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.recharge-plan-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 8px;
}
.recharge-plan-coin {
  margin-bottom: 4px;
}
.recharge-plan-num {
  font-size: 24px; font-weight: 700; color: var(--primary);
}
.recharge-plan-coin small {
  font-size: 12px; color: var(--text-muted);
  margin-left: 2px;
}
.recharge-plan-gift {
  font-size: 11px; color: #FF9800;
  margin-bottom: 6px;
}
.recharge-plan-price {
  font-size: 15px; font-weight: 600; color: var(--text);
}
.recharge-plan-price::before {
  content: '¥';
  font-size: 12px; font-weight: 500;
}
.recharge-pay-types {
  display: flex; gap: 12px;
}
.recharge-pay-type {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.recharge-pay-type:hover {
  border-color: var(--primary-border);
}
.recharge-pay-type.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.recharge-pay-type svg {
  flex-shrink: 0;
}
.recharge-confirm-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px; font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s;
}
.recharge-confirm-btn:hover {
  background: var(--primary-dark);
}
.recharge-confirm-btn:disabled {
  opacity: .6; cursor: not-allowed;
}
.recharge-tip {
  font-size: 12px; color: var(--text-muted);
  text-align: center;
  margin: 10px 0 0;
}

/* ================================================================
   账单明细页面 (balance-log.html)
   ================================================================ */
.balance-card {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.balance-row {
  display: flex; gap: 24px;
}
.balance-item {
  display: flex; flex-direction: column;
}
.balance-label {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 4px;
}
.balance-value {
  font-size: 22px; font-weight: 700; color: var(--primary);
}
.balance-recharge-btn {
  padding: 8px 20px;
  font-size: 14px; font-weight: 500;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.balance-recharge-btn:hover {
  background: var(--primary-dark);
}
.balance-log-list {
  display: flex; flex-direction: column;
}
.balance-log-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.balance-log-item:last-child {
  border-bottom: none;
}
.balance-log-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.balance-log-icon svg {
  width: 18px; height: 18px;
}
.balance-log-icon.log-income {
  background: #E8F5E9;
  color: #4CAF50;
}
.balance-log-icon.log-expense {
  background: #FFEBEE;
  color: #F44336;
}
.balance-log-info {
  flex: 1; min-width: 0;
}
.balance-log-type {
  font-size: 14px; font-weight: 500; color: var(--text);
  margin-bottom: 2px;
}
.balance-log-desc {
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.balance-log-time {
  font-size: 11px; color: var(--text-muted);
}
.balance-log-amount {
  text-align: right;
  flex-shrink: 0;
}
.balance-log-amount span {
  font-size: 16px; font-weight: 700;
  display: block;
}
.balance-log-amount small {
  font-size: 11px; color: var(--text-muted);
}
.balance-log-amount.amount-income span {
  color: #4CAF50;
}
.balance-log-amount.amount-expense span {
  color: #F44336;
}
.balance-load-more {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  font-size: 14px; font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s;
}
.balance-load-more:hover {
  background: var(--primary-border);
}

/* ================================================================
   新页面手机端自适应
   ================================================================ */
@media (max-width: 640px) {
  /* 关于我们 */
  .about-hero { padding: 20px 14px; }
  .about-logo { width: 56px; height: 56px; border-radius: 14px; }
  .about-name { font-size: 18px; }
  .about-features { grid-template-columns: 1fr; gap: 8px; }
  .about-feature-item { padding: 10px; gap: 8px; }
  .about-feature-icon { font-size: 22px; }
  .about-feature-title { font-size: 13px; }
  .about-feature-desc { font-size: 11px; }

  /* 充值 */
  .recharge-balance-value { font-size: 22px; }
  .recharge-plans { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .recharge-plan { padding: 12px 8px; }
  .recharge-plan-num { font-size: 20px; }
  .recharge-plan-price { font-size: 14px; }
  .recharge-pay-types { flex-direction: column; gap: 8px; }

  /* 账单 */
  .balance-card { gap: 10px; }
  .balance-row { gap: 16px; }
  .balance-value { font-size: 18px; }
  .balance-recharge-btn { padding: 6px 16px; font-size: 13px; }
  .balance-log-item { gap: 8px; padding: 10px 0; }
  .balance-log-icon { width: 32px; height: 32px; }
  .balance-log-icon svg { width: 16px; height: 16px; }
  .balance-log-type { font-size: 13px; }
  .balance-log-desc { font-size: 11px; }
  .balance-log-amount span { font-size: 14px; }
}

/* ================================================================
   ABOUT 价格明细
   ================================================================ */
.about-price-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.about-price-name {
  color: var(--text);
  font-weight: 500;
}
.about-price-value {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

/* ================================================================
   POLICY 通用政策页面
   ================================================================ */
.policy-page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.policy-page-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.policy-page-content h2,
.policy-page-content h3,
.policy-page-content h4 {
  color: var(--text);
  margin: 20px 0 10px;
}
.policy-page-content p {
  margin: 8px 0;
}
.policy-page-content ul,
.policy-page-content ol {
  margin: 8px 0;
  padding-left: 20px;
}
.policy-page-content li {
  margin: 4px 0;
}

/* ================================================================
   FOOTER 链接
   ================================================================ */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  background: var(--surface);
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-divider {
  color: var(--border);
  font-size: 12px;
}
.site-footer .footer-text {
  padding: 8px 16px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
}
.site-footer .footer-text a {
  color: var(--primary);
  text-decoration: none;
}

/* footer 手机端 */
@media (max-width: 640px) {
  .footer-links { gap: 4px 8px; padding: 8px 12px; }
  .footer-links a { font-size: 12px; }
  .footer-divider { font-size: 11px; }
  .site-footer .footer-text { padding: 6px 12px 10px; font-size: 11px; }
}

/* ================================================================
   查询历史页面
   ================================================================ */
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.history-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(99,102,241,.1);
}
.history-item-main {
  flex: 1;
  min-width: 0;
}
.history-item-service {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item-device {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
  font-family: ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.history-item-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: #E8F5E9;
  color: #2E7D32;
}
.history-item-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
}
.history-item-arrow svg { width: 16px; height: 16px; }

.history-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 8px;
}
.history-page-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}
.history-page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.history-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.history-page-info {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 60px;
  text-align: center;
}

/* 历史页面手机端 */
@media (max-width: 640px) {
  .history-item { padding: 10px 12px; }
  .history-item-service { font-size: 13px; }
  .history-item-device { font-size: 12px; }
  .history-item-meta { font-size: 11px; }
  .history-item-status { font-size: 10px; }
  .history-page-btn { padding: 5px 10px; font-size: 12px; }
}

/* ================================================================
   反馈页面 (feedback.html)
   ================================================================ */
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.fb-item:hover { border-color: var(--primary-border); }
.fb-item-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.fb-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.fb-status-0 { background: #FFF3E0; color: #E65100; }
.fb-status-1 { background: #E8F5E9; color: #2E7D32; }
.fb-time { font-size: 12px; color: var(--text-muted); }
.fb-item-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  word-break: break-all;
  margin-bottom: 8px;
}
.fb-item-reply {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #F5F7FF;
  border-left: 3px solid var(--primary);
}
.fb-reply-label {
  font-size: 12px; font-weight: 600; color: var(--primary);
  margin-bottom: 4px;
}
.fb-reply-text {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
}
.fb-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 16px 0 8px;
}
.fb-page-btn {
  padding: 6px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 13px; cursor: pointer;
  transition: all var(--transition);
}
.fb-page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.fb-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.fb-page-info { font-size: 13px; color: var(--text-muted); min-width: 60px; text-align: center; }

/* 反馈页面手机端 */
@media (max-width: 640px) {
  .fb-item { padding: 12px; }
  .fb-item-content { font-size: 13px; }
  .fb-reply-text { font-size: 12px; }
  .fb-page-btn { padding: 5px 10px; font-size: 12px; }
}

/* ================================================================
   查询历史页面 - 新版列表样式 v210
   ================================================================ */

/* 筛选栏 */
.history-filter-bar {
  margin-bottom: 12px;
}
.history-search-box {
  position: relative;
  margin-bottom: 10px;
}
.history-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}
.history-search-box input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.history-search-box input:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.history-search-box input::placeholder {
  color: #94a3b8;
}

.history-filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.history-filter-col select,
.history-filter-col input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  background: #fff;
  color: #334155;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s;
}
.history-filter-col select:focus,
.history-filter-col input[type="date"]:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.history-filter-col select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}

/* 统计栏 */
.history-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 6px;
  font-size: 12px;
  color: #64748b;
}
.history-sort {
  color: #f97316;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s;
}
.history-sort:hover {
  color: #ea580c;
}

/* 新列表项 */
.history-item-new {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.history-item-new:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(99,102,241,0.08);
  transform: translateY(-1px);
}
.history-item-new:last-child {
  margin-bottom: 0;
}
.history-item-new-left {
  flex: 1;
  min-width: 0;
}
.history-item-new-service {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.history-item-new-model {
  font-size: 12.5px;
  color: #f97316;
  font-weight: 500;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item-new-device {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 3px;
  font-family: ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item-new-time {
  font-size: 11.5px;
  color: #94a3b8;
}
.history-item-new-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  min-width: 80px;
}
.history-item-new-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.history-item-new-status.status-completed {
  background: #ecfdf5;
  color: #059669;
}
.history-item-new-status.status-processing {
  background: #fffbeb;
  color: #d97706;
}
.history-item-new-status.status-failed {
  background: #fef2f2;
  color: #dc2626;
}
.history-item-new-status.status-pending {
  background: #eff6ff;
  color: #2563eb;
}
.history-item-new-cost {
  font-size: 12px;
  color: #f97316;
  font-weight: 600;
}
.history-item-new-detail {
  font-size: 11px;
  color: #f97316;
  font-weight: 500;
}

/* 移动端筛选 */
@media (max-width: 640px) {
  .history-filter-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .history-filter-col:first-child {
    grid-column: span 2;
  }
  .history-filter-col:first-child select {
    font-size: 12px;
    padding: 7px 8px;
  }
  .history-filter-col input[type="date"] {
    font-size: 10px;
    padding: 7px 4px;
  }
  .history-item-new {
    padding: 12px 14px;
  }
  .history-item-new-service {
    font-size: 13px;
  }
  .history-item-new-model {
    font-size: 12px;
  }
  .history-item-new-device {
    font-size: 11px;
  }
  .history-item-new-time {
    font-size: 11px;
  }
  .history-item-new-status {
    font-size: 10px;
    padding: 2px 8px;
  }
  .history-item-new-cost {
    font-size: 11px;
  }
  .history-item-new-detail {
    font-size: 10px;
  }
}

/* ================================================================
   查询结果页面 - 新版样式 v210
   ================================================================ */

/* 顶部栏 */
.result-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.result-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.result-back:hover {
  background: rgba(255,255,255,0.3);
}
.result-back svg {
  width: 18px;
  height: 18px;
}
.result-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.result-share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.result-share-btn:hover {
  background: rgba(255,255,255,0.3);
}
.result-share-btn svg {
  width: 18px;
  height: 18px;
}

/* 查询成功状态 */
.result-success {
  text-align: center;
  padding: 28px 0 16px;
}
.result-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 3px solid #10b981;
}
.result-success-icon svg {
  width: 28px;
  height: 28px;
}
.result-success-text {
  font-size: 18px;
  font-weight: 700;
  color: #f97316;
}

/* 信息卡片 */
.result-info-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  margin-bottom: 14px;
}
.result-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.result-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.result-info-row:first-child {
  padding-top: 0;
}
.result-info-label {
  font-size: 13px;
  color: #64748b;
  flex-shrink: 0;
}
.result-info-value {
  font-size: 13px;
  color: #0f172a;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}
.result-info-cost {
  color: #f97316;
  font-weight: 700;
}

/* 查询结果详情卡片 */
.result-detail-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  margin-bottom: 14px;
}
.result-detail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.result-detail-title .bar {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: #f97316;
}
.result-detail-list {
  display: flex;
  flex-direction: column;
}
.result-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.result-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.result-detail-key {
  font-size: 13px;
  color: #64748b;
  flex-shrink: 0;
}
.result-detail-val {
  font-size: 13px;
  color: #0f172a;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}
.result-detail-val.val-green {
  color: #10b981;
  font-weight: 600;
}
.result-detail-val.val-red {
  color: #ef4444;
  font-weight: 600;
}
.result-detail-val.val-primary {
  color: #5B4CF7;
  font-weight: 600;
}

/* 底部按钮 */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 16px;
}
.result-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(249,115,22,0.25);
}
.result-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249,115,22,0.35);
}
.result-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  color: #f97316;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid #f97316;
  cursor: pointer;
  transition: all 0.2s;
}
.result-btn-outline:hover {
  background: #fff7ed;
}

/* 海报弹窗 */
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  padding: 20px;
  backdrop-filter: blur(3px);
}
.poster-modal-box {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: posterModalIn 0.25s ease;
}
@keyframes posterModalIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.poster-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.poster-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.poster-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
  color: #64748b;
}
.poster-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.poster-modal-close svg {
  width: 16px;
  height: 16px;
}
.poster-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
}
.poster-modal-foot {
  padding: 12px 16px 16px;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #fff;
}
.poster-save-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(249,115,22,0.25);
}
.poster-save-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249,115,22,0.35);
}
.poster-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 海报画布 */
.poster-canvas {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.poster-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
}
.poster-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.poster-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.poster-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster-brand-name {
  font-size: 14px;
  font-weight: 700;
}
.poster-brand-desc {
  font-size: 10px;
  opacity: 0.9;
}
.poster-domain {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 500;
}

.poster-success {
  text-align: center;
  padding: 20px 0 12px;
}
.poster-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border: 2px solid #10b981;
}
.poster-success-icon svg {
  width: 24px;
  height: 24px;
}
.poster-success-text {
  font-size: 16px;
  font-weight: 700;
  color: #f97316;
}

.poster-info {
  padding: 0 16px 12px;
}
.poster-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.poster-info-row:last-child {
  border-bottom: none;
}
.poster-info-label {
  font-size: 12px;
  color: #94a3b8;
}
.poster-info-value {
  font-size: 12px;
  color: #0f172a;
  font-weight: 500;
  text-align: right;
}
.poster-info-cost {
  color: #f97316;
  font-weight: 700;
}

.poster-result {
  padding: 0 16px 12px;
}
.poster-result-title {
  font-size: 14px;
  font-weight: 700;
  color: #f97316;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}
.poster-result-list {
  display: flex;
  flex-direction: column;
}
.poster-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
}
.poster-result-row:last-child {
  border-bottom: none;
}
.poster-result-key {
  font-size: 12px;
  color: #94a3b8;
}
.poster-result-val {
  font-size: 12px;
  color: #0f172a;
  font-weight: 500;
  text-align: right;
}
.poster-result-val.val-green {
  color: #10b981;
  font-weight: 600;
}
.poster-result-val.val-red {
  color: #ef4444;
  font-weight: 600;
}
.poster-result-val.val-primary {
  color: #5B4CF7;
  font-weight: 600;
}

.poster-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  gap: 12px;
}
.poster-footer-text {
  flex: 1;
  min-width: 0;
}
.poster-footer-brand {
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}
.poster-footer-desc {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.4;
}
.poster-qr {
  flex-shrink: 0;
  text-align: center;
}
.poster-qr-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 2px;
}
.poster-qr-img img {
  width: 52px;
  height: 52px;
  display: block;
}
.poster-qr-img svg {
  width: 32px;
  height: 32px;
  color: #94a3b8;
}
.poster-qr-label {
  font-size: 9px;
  color: #94a3b8;
}
.poster-bottom-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #f1f5f9;
  font-size: 10px;
  color: #94a3b8;
}

/* 移动端适配 */
@media (max-width: 1023px) {
  .result-header {
    display: flex;
  }
}

@media (max-width: 640px) {
  .result-success {
    padding: 20px 0 12px;
  }
  .result-success-icon {
    width: 48px;
    height: 48px;
  }
  .result-success-icon svg {
    width: 24px;
    height: 24px;
  }
  .result-success-text {
    font-size: 16px;
  }
  .result-info-card,
  .result-detail-card {
    padding: 12px;
  }
  .result-info-label,
  .result-info-value,
  .result-detail-key,
  .result-detail-val {
    font-size: 12px;
  }
  .result-btn-primary,
  .result-btn-outline {
    padding: 12px;
    font-size: 14px;
  }
  .poster-modal {
    padding: 10px;
  }
  .poster-modal-box {
    max-height: calc(100vh - 20px);
  }
}

/* ==============================================================
   v211 — 语音输入 & 扫码识别
   ============================================================== */

/* ---------- PC端输入框：麦克风 + 扫码按钮 ---------- */
.bp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bp-input-wrap input {
  flex: 1;
  min-width: 0;
}
.bp-mic-btn,
.bp-scan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.bp-mic-btn:hover,
.bp-scan-btn:hover {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}
.bp-mic-btn.recording {
  color: #ef4444;
  animation: micPulse 1s ease-in-out infinite;
}
.bp-mic-btn svg,
.bp-scan-btn svg {
  width: 20px;
  height: 20px;
}
@keyframes micPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* ---------- 手机端搜索框 ---------- */
.mb-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px 8px 4px 4px;
}
.mb-mic-btn,
.mb-scan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.mb-mic-btn:hover,
.mb-scan-btn:hover {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}
.mb-mic-btn.recording {
  color: #ef4444;
  animation: micPulse 1s ease-in-out infinite;
}
.mb-mic-btn svg,
.mb-scan-btn svg {
  width: 22px;
  height: 22px;
}
.mobile-bottom .mb-field {
  flex: 1;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.mobile-bottom .mb-field input {
  border: none;
  background: transparent;
  padding: 8px 4px;
  font-size: 15px;
  width: 100%;
  outline: none;
}
.mobile-bottom .mb-field input::placeholder {
  color: #9ca3af;
}

/* 手机端提示文字 */
.mb-search-tip {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px 0;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}
.mb-search-tip .tip-divider {
  color: #d1d5db;
}
.mb-search-tip a {
  color: #f97316;
  text-decoration: none;
}
.mb-search-tip a:hover {
  text-decoration: underline;
}

@media (max-width: 1023px) {
  .mb-search-tip {
    display: flex;
  }
}

/* ---------- 扫码弹窗 ---------- */
.scan-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.scan-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: scanModalIn 0.3s ease;
}
@keyframes scanModalIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.scan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.scan-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}
.scan-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.scan-close:hover {
  background: #e5e7eb;
  color: #1f2937;
}
.scan-close svg {
  width: 18px;
  height: 18px;
}
.scan-body {
  padding: 20px;
}
.scan-reader {
  width: 100%;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-reader video {
  width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}
.scan-album-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}
.scan-album-text {
  font-size: 14px;
  color: #6b7280;
}
.scan-file-input {
  font-size: 14px;
  color: #f97316;
  cursor: pointer;
}
.scan-file-input::file-selector-button {
  border: 1px solid #f97316;
  border-radius: 8px;
  padding: 6px 14px;
  background: #fff;
  color: #f97316;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.scan-file-input::file-selector-button:hover {
  background: #f97316;
  color: #fff;
}
.scan-tips {
  padding: 0 20px 20px;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.8;
}
.scan-tips p {
  margin: 0;
}

@media (max-width: 640px) {
  .scan-modal-box {
    max-width: 100%;
    border-radius: 12px;
  }
  .scan-reader {
    min-height: 240px;
  }
}

/* ============ 用户中心专用：手机端隐藏 site-footer，保留 tab-bar + 防止底部错位 ============ */
@media (max-width: 1023px) {
  body.user-page .site-footer {
    display: none !important;
  }
  /* 确保 tab-bar 不遮挡用户中心底部内容 */
  body.user-page .main {
    padding-bottom: 70px !important;
  }
}


/* ================================================================
   v237 全站美化 — 统一视觉语言，紫色主题，主流网站风格
   ================================================================ */

/* ---------- 1. 全局排版微调 ---------- */
.main h1, .main h2, .main h3 { letter-spacing: -0.02em; }

/* 卡片通用增强 */
.card, .service-card, .uc-card, .sb-menu-card,
.history-item, .history-item-new, .blog-item,
.recharge-plan, .about-feature-item,
.balance-log-item, .uc-action-item {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. 侧栏(sidebar) 美化 ---------- */
.sb-menu-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border-color: #e8eaed;
}

.sb-menu-list-item {
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.sb-menu-list-item:hover {
  transform: translateX(2px);
}

.sb-search-input {
  transition: all 0.25s ease;
}
.sb-search-input:focus {
  box-shadow: 0 0 0 4px rgba(91,76,247,0.08);
}

/* 登录卡片 */
.bp-login-card {
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  background: linear-gradient(135deg, #f8f9ff, #fafaff);
  border-radius: 16px;
}
.bp-login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91,76,247,0.1);
}

/* ---------- 3. 首页查询面板 美化 ---------- */
.bottom-panel {
  border-top: 1px solid #e8eaed;
}

.cat-tab {
  border-radius: 8px 8px 0 0;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* 服务卡片增强 */
.service-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border-color: #e8eaed;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover {
  box-shadow: 0 8px 24px rgba(91,76,247,0.08);
  transform: translateY(-2px);
  border-color: rgba(91,76,247,0.12);
}
.service-card:active {
  transform: scale(0.985);
}

.sc-name {
  font-size: 14px;
  line-height: 1.4;
}
.sc-price {
  font-weight: 800;
}

/* 分页圆点 */
.dot {
  width: 8px; height: 8px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.dot-active {
  width: 28px;
}

/* ---------- 4. 用户中心 美化 ---------- */
.uc-card {
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border-color: #e8eaed;
}

.uc-profile-card {
  background: linear-gradient(135deg, #fafaff, #f5f3ff);
}

.uc-action-item {
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.uc-action-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(91,76,247,0.06);
}

.uc-action-icon {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.uc-section-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.uc-service-item {
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.uc-service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(91,76,247,0.06);
}

.uc-menu-item {
  transition: all 0.2s ease;
}
.uc-menu-item:hover {
  padding-left: 4px;
}

/* ---------- 5. 历史查询页面 美化 ---------- */
.history-view {
  background: #fafbff;
}

.history-view-header {
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.history-item, .history-item-new {
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  border-color: #e8eaed;
  border-radius: 16px;
}
.history-item:hover, .history-item-new:hover {
  box-shadow: 0 6px 20px rgba(91,76,247,0.06);
  border-color: rgba(91,76,247,0.15);
  transform: translateY(-2px);
}

.history-search input {
  border-radius: 14px;
  background: #fff;
}
.history-filter-input,
.history-filter-select {
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* 空状态美化 */
.history-empty-box, .blog-empty-box {
  background: linear-gradient(135deg, #fafbff, #f5f3ff);
  border-color: #e8eaed;
}
.history-empty-icon, .blog-empty-icon {
  box-shadow: 0 4px 16px rgba(91,76,247,0.12);
}

/* ---------- 6. 博客/文章 美化 ---------- */
.blog-view, .article-detail-view {
  background: #fafbff;
}

.blog-item {
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  border-color: #e8eaed;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.blog-item:hover {
  box-shadow: 0 8px 24px rgba(91,76,247,0.06);
  transform: translateY(-3px);
  border-color: rgba(91,76,247,0.12);
}

.article-detail-view {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.article-title {
  letter-spacing: -0.02em;
  font-weight: 800;
}

.article-body-wrap {
  line-height: 1.85;
  font-size: 15px;
}

/* ---------- 7. 结果页 — 橙色→紫色 统一主题 ---------- */
.result-header {
  background: linear-gradient(135deg, #5B4CF7, #8B5CF6) !important;
}

.result-success-text {
  color: #5B4CF7 !important;
}

.result-success-icon {
  background: #EEF0FF !important;
  color: #5B4CF7 !important;
  border-color: #5B4CF7 !important;
}

.result-info-cost {
  color: #5B4CF7 !important;
}

.result-detail-title {
  color: #5B4CF7 !important;
}
.result-detail-title .bar {
  background: #5B4CF7 !important;
}

.result-btn-primary {
  background: linear-gradient(135deg, #5B4CF7, #8B5CF6) !important;
  box-shadow: 0 4px 14px rgba(91,76,247,0.2) !important;
}
.result-btn-primary:hover {
  box-shadow: 0 8px 22px rgba(91,76,247,0.3) !important;
  background: linear-gradient(135deg, #4c3de6, #7b4df6) !important;
}

.result-btn-outline {
  color: #5B4CF7 !important;
  border-color: #5B4CF7 !important;
}
.result-btn-outline:hover {
  background: #EEF0FF !important;
}

/* 海报弹窗 */
.poster-top {
  background: linear-gradient(135deg, #5B4CF7, #8B5CF6) !important;
}
.poster-success-text {
  color: #5B4CF7 !important;
}
.poster-result-title {
  color: #5B4CF7 !important;
}
.poster-info-cost {
  color: #5B4CF7 !important;
}
.poster-save-btn {
  background: linear-gradient(135deg, #5B4CF7, #8B5CF6) !important;
  box-shadow: 0 4px 14px rgba(91,76,247,0.2) !important;
}
.poster-save-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #4c3de6, #7b4df6) !important;
  box-shadow: 0 8px 22px rgba(91,76,247,0.3) !important;
}

/* 扫码弹窗中橙色按钮统一为紫色 */
.scan-file-input {
  color: #5B4CF7 !important;
}
.scan-file-input::file-selector-button {
  border-color: #5B4CF7 !important;
  color: #5B4CF7 !important;
}
.scan-file-input::file-selector-button:hover {
  background: #5B4CF7 !important;
  color: #fff !important;
}

/* ---------- 8. 充值页面 美化 ---------- */
.recharge-balance-card {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(91,76,247,0.15);
}

.recharge-plan {
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.recharge-plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(91,76,247,0.08);
}
.recharge-plan.selected {
  box-shadow: 0 4px 16px rgba(91,76,247,0.1);
}

.recharge-pay-type {
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.recharge-pay-type:hover {
  transform: translateY(-1px);
}
.recharge-pay-type.selected {
  box-shadow: 0 4px 14px rgba(91,76,247,0.08);
}

.recharge-confirm-btn {
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 14px rgba(91,76,247,0.2);
}
.recharge-confirm-btn:hover {
  box-shadow: 0 8px 22px rgba(91,76,247,0.3);
  transform: translateY(-1px);
}

/* ---------- 9. 关于/政策/反馈页面 美化 ---------- */
.about-hero {
  background: linear-gradient(135deg, #fafbff, #f5f3ff);
  border-radius: 16px;
}

.about-logo {
  box-shadow: 0 8px 24px rgba(91,76,247,0.1);
}

.about-feature-item {
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.about-feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.about-contact-item {
  border-radius: 12px;
  transition: all 0.2s ease;
}
.about-contact-item:hover {
  background: #f5f3ff;
}

.policy-page-title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* 反馈表单 */
.fb-select, .fb-input, .fb-textarea {
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  border-radius: 12px !important;
}
.fb-select:focus, .fb-input:focus, .fb-textarea:focus {
  box-shadow: 0 0 0 4px rgba(91,76,247,0.08) !important;
}

.fb-submit {
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(91,76,247,0.2) !important;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}
.fb-submit:hover {
  box-shadow: 0 8px 22px rgba(91,76,247,0.3) !important;
  transform: translateY(-1px) !important;
}

/* ---------- 10. 登录/注册弹窗 精致化 ---------- */
.modal-box {
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.6);
}

.modal-title {
  letter-spacing: -0.02em;
  font-weight: 800;
}

.login-input-wrap {
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

.login-btn-main {
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

.login-social-icon {
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- 11. 移动端Tab Bar 美化 ---------- */
@media (max-width: 1023px) {
  .tab-bar {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.92);
    border-top: 1px solid #e8eaed;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .tab-item {
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    padding: 6px 0 4px;
  }
  .tab-item:active {
    transform: scale(0.9);
  }
  .tab-item.active {
    font-weight: 600;
  }
}

/* ---------- 12. 移动端卡片统一优化 ---------- */
@media (max-width: 1023px) {
  .uc-card {
    border-radius: 16px;
    margin: 8px 0;
    padding: 14px;
  }

  .history-item, .history-item-new {
    border-radius: 14px;
    margin-bottom: 8px;
  }

  .recharge-plan {
    border-radius: 12px;
    padding: 14px 8px;
  }

  .mobile-bottom {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-bottom: 1px solid #e8eaed;
  }

  .mb-submit {
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(91,76,247,0.2);
  }
  .mb-submit:active {
    transform: scale(0.95);
  }

  .mb-field {
    border-radius: 12px;
  }
}

/* ---------- 13. 按钮全局微交互 ---------- */
.btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-soft,
.bp-check-btn, .uc-btn-primary, .balance-recharge-btn,
.recharge-confirm-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:active, .btn-primary:active, .btn-secondary:active,
.btn-ghost:active, .btn-soft:active, .bp-check-btn:active,
.uc-btn-primary:active, .balance-recharge-btn:active {
  transform: scale(0.96);
}

/* ---------- 14. 输入框全局优化 ---------- */
input[type="text"], input[type="password"], input[type="email"],
input[type="search"], input[type="tel"], input[type="date"],
select, textarea {
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* 加载骨架屏增强 */
.skeleton-card {
  background: linear-gradient(110deg, #f0f0f0 30%, #f8f8f8 50%, #f0f0f0 70%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- 15. 品牌色统一 — #6366f1 → #5B4CF7 ---------- */
.history-search input:focus,
.history-filter-input:focus,
.history-filter-select:focus {
  border-color: #5B4CF7 !important;
  box-shadow: 0 0 0 4px rgba(91,76,247,0.1) !important;
}

.history-spinner {
  border-top-color: #5B4CF7 !important;
}

.tab-item.active {
  color: #5B4CF7 !important;
}

.uc-edit-btn {
  color: #5B4CF7 !important;
}

/* 历史页残留的橙色→紫色 */
.history-sort {
  color: #5B4CF7 !important;
}
.history-sort:hover {
  color: #4c3de6 !important;
}
.history-item-new-model {
  color: #5B4CF7 !important;
}
.history-item-new-cost {
  color: #5B4CF7 !important;
}
.history-item-new-detail {
  color: #5B4CF7 !important;
}

