/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4a90d9;
  --primary-hover: #3a7bc8;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #f9fafb;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --section-bg: #f9fafb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
}

/* 字体加载优化策略 */
@font-face {
  font-family: 'SystemFontStack';
  src: local('-apple-system'), local('BlinkMacSystemFont'), local('Segoe UI'), local('Roboto'), local('Helvetica Neue'), local('Arial'), local('sans-serif');
  font-display: swap; /* 关键属性：字体加载期间使用备用字体 */
}

html {
  scroll-behavior: smooth;
  font-size: 15px; /* 统一设置为15px */
}

body {
  font-family: 'SystemFontStack', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; /* 统一设置为15px */
  line-height: 1.5;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-display: swap; /* 确保字体显示策略一致 */
}

/* 移动端基础字体优化 */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  body {
    font-size: 15px;
    line-height: 1.6 !important;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* 移动端内容宽度优化 */
  .wrap.main-content {
    overflow-x: hidden !important;
}

/* PC端基础样式 - 统一字体大小 */
@media (min-width: 769px) {
  html {
    font-size: 15px;
  }
  body {
    font-size: 15px;
    line-height: 1.5 !important;
  }

  /* PC端也显示移动端标签导航 */
  .mobile-tab-nav {
    display: flex !important;
    position: relative !important;
    margin-top: 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f3f4f6 !important;
    box-shadow: none !important;
  }

  /* PC端标签导航居中显示 */
  .mobile-tab-nav {
    justify-content: center !important;
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* PC端标签项样式 */
  .mobile-tab-item {
    padding: 12px 24px !important;
  }

  /* PC端内容宽度优化 - 首页和批量查询页 */
  .wrap.main-content {
    max-width: 680px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    padding-top: 40px !important;
  }

  /* PC端头部自适应 */
  .header-wrap {
    max-width: none !important;
  }
}

  /* 为.wrap容器设置overflow，防止子元素溢出 */
  .wrap.main-content {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 16px !important;
  }

  /* 查询表单扁平化，占满全屏 */
  .query-form {
    background: #f8fafc;
    border-radius: 0 !important;
    padding: 16px;
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100% + 32px) !important;
    border: none !important;
    box-sizing: border-box;
  }

  .form-group input,
  .form-group select {
    border-radius: 0 !important;
  }

  .query-tabs {
    flex-direction: column !important;
  }

  .tab-btn {
    text-align: center !important;
  }

  /* 动态查询区域扁平化 */
  .dynamic-query-section {
    margin-top: 20px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100% + 32px) !important;
    background: #f8fafc;
    box-sizing: border-box;
  }



/* ============ Toast 消息组件 ============ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 320px;
  max-width: 500px;
  padding: 16px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideIn 0.3s ease-out;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast:hover {
  transform: translateX(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.toast.removing {
  animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
  color: #333;
}

.toast-message {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  word-break: break-word;
  white-space: pre-wrap;
}

.toast-close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #999;
  transition: color 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  color: #666;
}

/* 成功提示 */
.toast-success {
  border-left: 4px solid #52c41a;
}

.toast-success::before {
  background: linear-gradient(180deg, #52c41a, #389e0d);
}

.toast-success .toast-icon {
  color: #52c41a;
}

.toast-success .toast-title {
  color: #389e0d;
}

/* 错误提示 - 增强效果 */
.toast-error {
  border-left: 4px solid #ff4d4f;
  background: linear-gradient(135deg, #fff 0%, #fff1f0 100%);
}

.toast-error::before {
  background: linear-gradient(180deg, #ff4d4f, #d9363e);
}

.toast-error .toast-icon {
  color: #ff4d4f;
  font-size: 28px;
  animation: errorShake 0.5s ease-in-out;
}

.toast-error .toast-title {
  color: #cf1322;
  font-weight: 700;
}

.toast-error .toast-message {
  color: #8c1e26;
  font-weight: 500;
}

@keyframes errorShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* 警告提示 */
.toast-warning {
  border-left: 4px solid #faad14;
}

.toast-warning::before {
  background: linear-gradient(180deg, #faad14, #d48806);
}

.toast-warning .toast-icon {
  color: #faad14;
}

.toast-warning .toast-title {
  color: #d48806;
}

/* 信息提示 */
.toast-info {
  border-left: 4px solid #1890ff;
}

.toast-info::before {
  background: linear-gradient(180deg, #1890ff, #096dd9);
}

.toast-info .toast-icon {
  color: #1890ff;
}

.toast-info .toast-title {
  color: #096dd9;
}

  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部专用容器 - 自适应宽度 */
.header-wrap {
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

.tip {
  color: var(--text-light);
  font-size: 12px;
}

/* Header - 极简设计 */
#header {
  background: var(--white);
  border-bottom: 1px solid #f3f4f6;
  position: relative;
  top: 0;
  z-index: 100;
}

#nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

#logo a {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.logo-text {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-light);
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  background: #f9fafb;
  color: var(--primary-color);
}

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

.btn-login {
  padding: 7px 16px;
  border: 1px solid #e5e7eb;
  color: var(--text-color);
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
}

.btn-login:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-logout {
  padding: 7px 16px;
  border: 1px solid #fecaca;
  color: #ef4444;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
}

.btn-logout:hover {
  background: #fef2f2;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
  border-radius: 6px;
}

/* 汉堡菜单 - 隐藏头像和余额 */
.mobile-menu-btn ~ .mobile-nav-right {
  display: none !important;
}

.mobile-menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  transition: all 0.3s;
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Styles - 极简设计 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid #f3f4f6;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list > li {
  border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-list > li:last-child {
  border-bottom: none;
}

.mobile-menu-list > li.mobile-menu-divider {
  border-top: 1px solid #f3f4f6;
  border-bottom: none;
  margin: 6px 0;
}

.mobile-menu-list > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--text-color);
  font-size: 14px;
  transition: background 0.2s;
}

.mobile-menu-list > li > a:hover {
  background: #f9fafb;
}

.mobile-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* 移动端菜单字体放大 */
@media (max-width: 768px) {
  .mobile-menu-list > li > a {
    font-size: 16px;
    padding: 16px 20px;
    min-height: 56px;
  }

  .mobile-icon {
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile Nav Right - 头像和余额 - 极简设计 */
.mobile-nav-right {
  display: none;
  align-items: center;
  gap: 8px;
}

.mobile-balance-display {
  padding: 4px 10px;
  background: #f9fafb;
  color: #374151;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.mobile-balance-display:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.mobile-avatar-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-avatar-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.mobile-avatar-btn:active {
  transform: none;
}

/* 登录后的头像按钮背景 */
.mobile-avatar-btn.logged-in {
  background: #4ad8d93b;
  border-color: #2bc3c33b;
  color: #fff;
}

.mobile-avatar-btn.logged-in:hover {
  background: #4ad8d93b;
  border-color: #4ad8d93b;
}

/* 移动端导航放大 */
@media (max-width: 768px) {
  .mobile-nav-right {
    display: flex !important;
  }

  .mobile-balance-display {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
  }

  .mobile-avatar-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  #nav {
    height: 64px;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo-icon {
    font-size: 16px;
    padding: 6px 10px;
  }
}

/* Mobile User Info */
.mobile-user-info {
  padding: 12px 20px;
  color: var(--text-color);
  font-weight: 500;
}

/* Mobile Balance Link */
.mobile-balance-link {
  background: #fff9e6 !important;
  color: #d97706 !important;
  font-weight: 600 !important;
}

.mobile-balance-link:hover {
  background: #ffedcc !important;
}

/* Mobile Console Link */
.mobile-console-link {
  color: var(--primary-color) !important;
}

.mobile-console-link:hover {
  background: #e6f3ff !important;
}

/* Mobile Login Button */
.mobile-login-btn {
  color: var(--primary-color) !important;
  font-weight: 500 !important;
  background: #f8f9fa !important;
}

.mobile-login-btn:hover {
  background: #e9ecef !important;
}

/* Mobile Logout Button */
.mobile-logout-btn {
  color: #ff4d4f !important;
  font-weight: 500 !important;
}

.mobile-logout-btn:hover {
  background: #fff1f0 !important;
}

/* Main Content */
.main-content {
  flex: 1;
  padding-top: 60px;
  padding-bottom: 40px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}

/* Main Area - 极简设计 */
.main-area {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Services Section */
.services-section {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.services-section h2 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.services-section > p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 13px;
}

.service-category {
  margin-bottom: 24px;
}

.service-category h3 {
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.service-card {
  display: block;
  padding: 16px;
  background: var(--section-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.service-card:hover {
  border-color: var(--primary-color);
  background: var(--white);
}

.service-card.featured {
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
  color: white;
  border-color: transparent;
}

.service-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 6px;
}

.service-card.featured .service-name {
  color: white;
}

.service-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.service-card.featured .service-price {
  color: white;
}

.service-desc {
  font-size: 12px;
  color: var(--text-light);
}

.service-card.featured .service-desc {
  color: rgba(255, 255, 255, 0.8);
}

.service-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--warning-color);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.service-card.featured .service-badge {
  background: rgba(255, 255, 255, 0.3);
}

/* 服务区域响应式 */
@media (max-width: 768px) {
  .services-section {
    padding: 16px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.hero-section h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
  color: #1f2937;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.hero-section h1 .tip {
  font-weight: 400;
  margin-left: 12px;
  color: #6b7280;
  font-size: 14px;
  letter-spacing: 0;
}

/* Query Tabs */
.query-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 24px;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Query Form - 极简设计 */
.query-form {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group:last-of-type {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
  font-size: 13px;
}

.input-help-btn {
  display: inline-flex;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.input-tip {
  font-size: 12px;
  color: #bbb;
  font-weight: 400;
  margin-left: 8px;
}

.input-help-btn:hover {
  background: #f3f4f6;
  color: #667eea;
}

.input-help-btn svg {
  width: 14px;
  height: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  color: #1f2937;
  background: var(--white);
  transition: all 0.2s ease;
  font-weight: 400;
  letter-spacing: 0.3px;
  min-height: 56px;
}

.form-group input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a90d9;
  box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.1);
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.btn-primary {
  padding: 10px 28px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  height: 42px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-primary:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 10px 28px;
  background: var(--white);
  color: var(--text-color);
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  height: 42px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.btn-secondary:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

/* 充值按钮 - 醒目样式 */
.btn-recharge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
}

.btn-recharge:hover {
  background: linear-gradient(135deg, #e6880a, #c46a05);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.btn-recharge:active {
  transform: translateY(0);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.batch-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
}

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

.history-link {
  display: inline-block;
  padding: 10px 20px;
  color: #999;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  height: 42px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.history-link:hover {
  color: #667eea;
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

@media (max-width: 768px) {
  .history-link {
    display: none;
  }
}

/* Query Result */
.query-result {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--section-bg);
  border-bottom: 1px solid var(--border-color);
}

.result-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.btn-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover {
  color: var(--text-color);
}

.result-content {
  padding: 20px;
}

.result-item {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  width: 120px;
  color: var(--text-light);
  flex-shrink: 0;
}

.result-value {
  flex: 1;
  font-weight: 500;
}

.result-value.success {
  color: var(--success-color);
}

.result-value.warning {
  color: var(--warning-color);
}

.result-value.error {
  color: var(--error-color);
}

/* Batch Results */
.batch-results {
  max-height: 400px;
  overflow-y: auto;
}

.batch-result-item {
  background: var(--section-bg);
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 16px;
}

.batch-result-item:last-child {
  margin-bottom: 0;
}

.batch-result-header {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
}

/* Features Section - 极简设计 */
.features-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

.features-section h2 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1f2937;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
}

.feature-icon {
  font-size: 20px;
  line-height: 1;
}

.feature-text h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  color: #1f2937;
}

.feature-text p {
  font-size: 11px;
  color: #6b7280;
}

.feedback-text {
  margin-top: 24px;
  color: var(--text-light);
}

/* Services Section */
.services-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.services-section h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
}

.service-category {
  margin-bottom: 32px;
}

.service-category:last-child {
  margin-bottom: 0;
}

.service-category h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.service-card {
  background: var(--section-bg);
  border-radius: 6px;
  padding: 16px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s;
  position: relative;
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: var(--primary-color);
  background: var(--white);
}

.service-card.featured {
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
  color: white;
}

.service-card.featured:hover {
  background: linear-gradient(135deg, var(--primary-hover), #5558e0);
}

.service-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--warning-color);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.service-card.featured .service-badge {
  background: rgba(255, 255, 255, 0.3);
}

.service-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.service-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.service-card.featured .service-price {
  color: white;
}

.service-desc {
  font-size: 12px;
  color: var(--text-light);
}

.service-card.featured .service-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* Sidebar - 极简设计 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-section {
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid #f3f4f6;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}

.sidebar-text {
  font-size: 13px;
  color: #374151;
  margin-bottom: 10px;
}

.sidebar-text:last-child {
  margin-bottom: 0;
}

.qr-code {
  display: block;
  max-width: 100px;
  margin: 0 auto 10px;
}

/* Agreement Section - 极简设计 */
.agreement-section {
  margin-top: 24px;
  background: var(--white);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid #f3f4f6;
}

.agreement-section h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}

.agreement-content p {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

/* Brand Links - 极简设计 */
.brand-links {
  margin-top: 16px;
  background: var(--white);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid #f3f4f6;
}

.brand-links h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.brand-list a {
  color: #6b7280;
  font-size: 12px;
}

.brand-list a:hover {
  color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 50;
}

.back-to-top a {
  display: block;
  padding: 12px 20px;
  background: var(--white);
  color: var(--text-light);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 13px;
}

.back-to-top a:hover {
  color: var(--primary-color);
}

/* Footer - 极简设计 */
#footer {
  background: var(--white);
  border-top: 1px solid #f3f4f6;
  padding: 16px 0;
  margin-top: auto;
}

#footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 12px;
  color: #6b7280;
}

.footer-left a {
  color: #374151;
}

.footer-right {
  font-size: 11px;
  color: #9ca3af;
}

/* Loading Spinner */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  .sidebar-section {
    flex: 1 !important;
    min-width: 200px !important;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  /* 确保header内的wrap正确显示 */
  #header .wrap {
    max-width: 100% !important;
    padding: 0 16px !important;
  }

  .nav-links {
    display: none !important;
  }

  /* 隐藏桌面端的登录、余额、控制台按钮 */
  .nav-right .tip,
  .nav-right .btn-secondary,
  .nav-right .btn-login,
  .nav-right .btn-logout,
  #userInfo,
  #balanceBtn,
  #loginBtn,
  #consoleBtn,
  #logoutBtn {
    display: none !important;
  }

  /* 显示移动端头像和余额，隐藏汉堡菜单 */
  .mobile-nav-right {
    display: flex !important;
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .hero-section h1 {
    font-size: 22px !important;
    font-weight: 700;
    letter-spacing: -0.5px;
  }

  .hero-section h1 .tip {
    display: block !important;
    margin-top: 12px !important;
    margin-left: 0 !important;
    font-size: 15px;
    font-weight: 400;
  }

  /* 动态查询区域扁平化 */
  .dynamic-query-section {
    margin-top: 20px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100% + 32px) !important;
    background: #f8fafc !important;
    box-sizing: border-box;
  }
    border: none !important;
    border-radius: 0 !important;
    padding: 16px !important;
    box-shadow: none !important;
  }

  .dynamic-query-title {
    padding: 0 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  .dynamic-query-title h2 {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 !important;
  }

  .title-icon {
    font-size: 16px !important;
  }

  /* 特性区域扁平化 */
  .features-section {
    padding-top: 20px !important;
    border-top: 1px solid #e5e7eb !important;
    margin-top: 20px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100% + 32px) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .features-section h2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .feature-item {
    background: #f8fafc !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    border: none !important;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .service-grid {
    grid-template-columns: 1fr !important;
  }

  /* 主内容区域扁平化 */
  .main-area {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .content-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* 侧边栏在移动端隐藏 */
  .sidebar {
    display: none !important;
  }

  /* 主内容区域padding */
  .main-content {
    padding-top: 20px !important;
    padding-bottom: 30px !important;
  }

  /* 反馈文本区域 */
  .feedback-text {
    margin-top: 20px !important;
    padding: 12px 16px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100% + 32px) !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    border-top: 1px solid #e5e7eb !important;
    font-size: 12px !important;
    color: #6b7280 !important;
  }

  /* 服务协议区域扁平化 */
  .agreement-section {
    margin-top: 20px !important;
    background: #f8fafc !important;
    border-radius: 0 !important;
    padding: 16px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100% + 32px) !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  .agreement-section h3 {
    font-size: 13px !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  /* 官网导航区域扁平化 */
  .brand-links {
    margin-top: 16px !important;
    background: #f8fafc !important;
    border-radius: 0 !important;
    padding: 16px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100% + 32px) !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  .brand-links h3 {
    font-size: 13px !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  .brand-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .brand-list a {
    font-size: 12px !important;
    padding: 4px 8px !important;
    background: #ffffff !important;
    border-radius: 0 !important;
  }

  /* 移动端标签导航栏扁平化 - 显示在header下方 */
  .mobile-tab-nav {
    display: flex !important;
    position: static !important;
    margin-top: 64px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f3f4f6 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
    padding: 0 !important;
  }

  .mobile-tab-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 14px 8px !important;
    text-decoration: none !important;
    color: #9ca3af !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    position: relative !important;
    border-radius: 0 !important;
    margin: 0 !important;
    gap: 6px !important;
  }

  .mobile-tab-item.active {
    color: #3b82f6 !important;
    background: #f0f9ff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    border-bottom: 3px solid #3b82f6 !important;
  }

  .mobile-tab-item.active::after {
    display: none !important;
  }

  .mobile-tab-icon {
    font-size: 32px !important;
    margin-bottom: 0 !important;
    opacity: 0.85 !important;
    filter: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .mobile-tab-item.active .mobile-tab-icon {
    opacity: 1 !important;
    filter: none !important;
    transform: scale(1.05) !important;
  }

  .mobile-tab-item span:last-child {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
  }

  /* 为移动端标签导航栏预留顶部空间，确保header可见 */
  #header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    display: block !important;
  }

  /* 移动端nav高度是64px */
  #nav {
    height: 64px !important;
  }

  /* 为header和tab导航预留空间 */
  body {
    padding-top: 0 !important;
  }

  .main-content {
    padding-top: 40px !important;
  }
}

  .batch-actions {
    flex-direction: column;
  }

  .sidebar {
    flex-direction: column;
  }

  .sidebar-section {
    min-width: 100%;
  }

  #footer .wrap {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .brand-list {
    gap: 12px 24px;
  }

  /* 移动端菜单优化 */
  .mobile-menu {
    padding: 0;
  }

  .mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-menu li {
    border-bottom: 1px solid #e5e5e5;
  }

  .mobile-menu-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0;
  }

  /* 用户信息区域 */
  #mobileUserInfoWrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: none;
    margin-bottom: 0;
  }

  .mobile-user-info {
    padding: 20px;
    color: white;
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }

  .mobile-user-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  }

  #mobileUserInfo {
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
  }

  #mobileUserInfo strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
  }

  #mobileUserInfo span {
    display: block;
    opacity: 0.9;
    font-size: 13px;
    margin-top: 2px;
  }

  /* 余额链接 */
  #mobileBalanceLinkWrapper {
    background: linear-gradient(135deg, #fff7e6 0%, #ffd591 100%);
    border-bottom: 1px solid #e8d5a3;
    margin-bottom: 0;
  }

  .mobile-balance-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: transparent !important;
    color: #d46b08 !important;
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-icon {
    font-size: 20px;
    line-height: 1;
  }

  #mobileBalanceText {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  /* 控制台链接 */
  .mobile-console-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #595959;
    font-weight: 600;
    font-size: 15px;
  }

  .mobile-console-link .mobile-icon {
    font-size: 20px;
  }

  /* 登录按钮 */
  .mobile-login-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
  }

  .mobile-login-btn .mobile-icon {
    font-size: 20px;
  }

  /* 退出登录按钮 */
  #mobileLogoutBtnWrapper {
    background: linear-gradient(135deg, #fff1f0 0%, #ffccc7 100%);
    border-bottom: none;
    border-top: 1px solid #ffccc7;
    margin-top: 0;
  }

  .mobile-logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: transparent !important;
    color: #cf1322 !important;
    font-weight: 700;
    font-size: 15px;
  }

  .mobile-logout-btn .mobile-icon {
    font-size: 20px;
  }

  .mobile-menu a {
    padding: 16px 20px;
    font-size: 15px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #262626;
    font-weight: 500;
  }

  .mobile-menu a.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: var(--primary-color);
    font-weight: 700;
  }

  .mobile-menu a.active .mobile-icon {
    transform: scale(1.1);
  }
    position: relative;
  }

  .mobile-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
  }

  .mobile-menu a:active {
    background: rgba(102, 126, 234, 0.08);
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .main-area {
    padding: 16px;
  }

  .query-form {
    padding: 16px;
  }

  .result-item {
    flex-direction: column;
    gap: 4px;
  }

  .result-label {
    width: auto;
  }

  /* 移动端菜单小屏优化 */
  .mobile-user-info {
    padding: 14px 16px;
    font-size: 13px;
  }

  #mobileUserInfo {
    font-size: 13px;
  }

  .mobile-balance-link {
    padding: 12px 16px;
    font-size: 14px;
  }

  #mobileBalanceText {
    font-size: 15px;
  }

  .mobile-menu a {
    padding: 12px 16px;
    font-size: 14px;
  }

  .mobile-icon {
    font-size: 16px;
  }
}

/* API Page Styles */
.api-section {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.api-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.api-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 12px;
  color: var(--text-color);
}

.api-section p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.api-endpoint {
  background: var(--section-bg);
  padding: 12px 16px;
  border-radius: 6px;
  font-family: "SF Mono", Monaco, "Consolas", monospace;
  font-size: 13px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.api-endpoint .method {
  display: inline-block;
  padding: 2px 8px;
  background: var(--success-color);
  color: white;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 12px;
}

.api-endpoint .method.post {
  background: var(--primary-color);
}

.code-block {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px;
  border-radius: 6px;
  font-family: "SF Mono", Monaco, "Consolas", monospace;
  font-size: 13px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.params-table th,
.params-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.params-table th {
  background: var(--section-bg);
  font-weight: 600;
  font-size: 13px;
}

.params-table td {
  font-size: 13px;
}

.params-table .required {
  color: var(--error-color);
  font-size: 11px;
}

.api-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.price-card {
  background: var(--section-bg);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.price-card.featured {
  background: var(--primary-color);
  color: white;
}

.price-card h4 {
  font-size: 16px;
  margin-bottom: 12px;
}

.price-card .price {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-card .price span {
  font-size: 14px;
  font-weight: 400;
}

.price-card .queries {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.price-card .btn-primary {
  width: 100%;
}

.price-card.featured .btn-primary {
  background: white;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .api-pricing {
    grid-template-columns: 1fr;
  }
}

/* Login Page Styles */
.auth-container {
  max-width: 420px;
  margin: 40px auto;
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.auth-container h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 24px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.auth-tabs button {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}

.auth-tabs button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form .btn-primary {
  width: 100%;
  padding: 14px;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-light);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-light);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  padding: 0 16px;
}

/* Social Login */
.social-login {
  display: flex;
  gap: 12px;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--section-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.2s;
}

.btn-social:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-social svg {
  flex-shrink: 0;
}

/* API Page Additional Styles */
.api-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.api-feature {
  background: var(--section-bg);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.api-feature strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.api-feature p {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}

.api-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.api-info-item {
  background: var(--section-bg);
  padding: 20px;
  border-radius: 8px;
}

.api-info-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-color);
}

.api-info-item p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

.api-info-item .api-endpoint {
  margin-bottom: 0;
}

.api-info-item .api-endpoint .method {
  background: #10b981;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 8px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}

.price-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 13px;
}

.price-card.featured .price-features li {
  border-bottom-color: rgba(255,255,255,0.1);
}

.sdk-item {
  margin-bottom: 24px;
}

.sdk-item strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

/* Batch Page Additional Styles */
.batch-info {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-light);
}

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

.result-actions .btn-secondary {
  padding: 6px 16px;
  font-size: 12px;
}

.batch-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.usage-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-item {
  padding: 12px 16px;
  background: var(--section-bg);
  border-radius: 8px;
  border-left: none;
}

.tip-item strong {
  display: none;
}

.tip-item p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.tip-item p a {
  color: var(--primary-color);
  text-decoration: none;
}

.tip-item p a:hover {
  text-decoration: underline;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: 16px;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-size: 12px;
}

@media (max-width: 768px) {
  .api-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .batch-result-grid {
    grid-template-columns: 1fr;
  }

  .usage-tips {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .api-features {
    grid-template-columns: 1fr;
  }
}

/* 余额飘出动画样式 */
.balance-animation-container {
  position: relative;
  display: inline-block;
}

.balance-float {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: bold;
  pointer-events: none;
  opacity: 1;
  animation: balanceFloatUp 1s ease-out forwards;
}

.balance-float.decrease {
  color: #ef4444;
}

.balance-float.increase {
  color: #10b981;
}

@keyframes balanceFloatUp {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) translateY(-20px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-40px) scale(0.8);
  }
}

/* 微信通知标签样式 */
.wechat-notify-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #64748b;
  padding: 8px 16px;
  margin-left: 0;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  height: 42px;
  line-height: 1;
}

.wechat-notify-label:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.wechat-notify-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
  transition: transform 0.15s ease;
  margin: 0;
}

.wechat-notify-label input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.wechat-notify-label input[type="checkbox"]:active {
  transform: scale(0.95);
}

.wechat-notify-label span {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* 移动端微信通知容器 */
.mobile-wechat-notify {
  display: flex;
  align-items: center;
  padding: 8px 12px;
}

.mobile-wechat-notify .wechat-notify-label {
  margin-left: 0;
  padding: 6px 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.mobile-wechat-notify .wechat-notify-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .batch-actions {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .wechat-notify-label {
    font-size: 13px;
    margin-left: 0;
    padding: 6px 12px;
    height: auto;
    line-height: 1.5;
  }

  .wechat-notify-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .mobile-wechat-notify .wechat-notify-label {
    font-size: 12px;
    padding: 4px 8px;
  }

  .mobile-wechat-notify .wechat-notify-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }
}
