/**
 * 检测页面样式 - detect.html
 */

/* 🎯 导航栏固定到顶部 - 添加玻璃效果 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8); /* 🎯 半透明背景 */
  backdrop-filter: blur(20px); /* 🎯 玻璃模糊效果 */
  -webkit-backdrop-filter: blur(20px); /* 🎯 Safari兼容 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 🎯 底部边框 */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); /* 🎯 增强阴影 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-radius: 8px;
}

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

.brand-title {
  font-size: 24px;
  font-weight: 800;
  color: #1C1C1E;
}

.navbar-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.simple-login-btn {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-radius: 25px;
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
  width: 65px;
  height: 35px;
  display: none !important; /* 🎯 隐藏登录按钮 */
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.simple-login-btn:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(255, 107, 53, 0.4);
}

.login-btn-text {
  color: white;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.user-menu {
  display: flex !important; /* 🎯 始终显示用户菜单 */
  align-items: center;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 8px;
  object-fit: cover;
}

.username {
  font-size: 14px;
  color: #1C1C1E;
  font-weight: 600;
}

/* 🎯 导航菜单项之间的间隔 */
.navbar-menu {
  display: flex;
  gap: 120px; /* 🎯 间隔120px */
}

.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 6px; /* 🎯 与首页保持一致 */
  padding: 8px 16px;
  border-radius: 20px; /* 🎯 增加圆角，变成圆弧 */
  text-decoration: none;
  color: #666;
  font-size: 15px; /* 🎯 与首页保持一致 */
  font-weight: 500; /* 🎯 与首页保持一致 */
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* 🎯 添加文字阴影 */
}

.nav-menu-item:hover {
  background: rgba(255, 107, 53, 0.1); /* 🎯 与首页保持一致 */
  color: #FF6B35;
  text-shadow: 0 2px 4px rgba(255, 107, 53, 0.3); /* 🎯 悬停时阴影更明显 */
}

.nav-menu-item.active {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%); /* 🎯 与首页保持一致 - 渐变背景 */
  color: white; /* 🎯 与首页保持一致 - 白色文字 */
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 🎯 与首页保持一致 - 激活状态阴影 */
}

/* 🎯 隐藏图标 */
.nav-icon {
  display: none;
}

/* 🎯 导航文字字体大小 */
.nav-text {
  font-size: 15px; /* 🎯 与首页保持一致 */
}

/* 🎯 页面内容区域添加顶部padding，避免被导航栏遮挡 */
.ai-detection-container {
  padding-top: 60px; /* 导航栏高度 */
}

/* 顶部标题 */
.header {
  padding: 30px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
}

.main-title {
  font-size: 28px;
  font-weight: 800;
  color: #1C1C1E;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 主要内容区域 */
.main-content {
  padding: 20px;
  max-width: 100%;
  margin: 0 auto;
}

/* 检测区域 */
.detection-area {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 选项卡 */
.tabs {
  display: flex;
  background-color: #F2F2F7;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab-item {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.tab-item.active {
  background-color: #fff;
  color: #FF6B35;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 上传区域 */
.upload-section {
  margin-bottom: 20px;
}

.upload-area {
  border: 2px dashed #E5E5EA;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: #FF6B35;
  background-color: rgba(255, 107, 53, 0.02);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.upload-title {
  font-size: 16px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 8px;
}

.upload-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

.select-file-btn {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-file-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 文件信息 */
.file-info {
  margin-top: 15px;
  padding: 15px;
  background-color: #F2F2F7;
  border-radius: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 32px;
}

.file-details {
  flex: 1;
}

.file-name {
  font-size: 14px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 4px;
}

.file-size {
  font-size: 12px;
  color: #999;
}

.file-remove {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 5px;
}

.file-remove:hover {
  color: #FF3B30;
}

/* 粘贴文本区域 */
.paste-section {
  margin-bottom: 20px;
}

.text-area {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  background-color: #fff;
}

.text-area:focus {
  outline: none;
  border-color: #FF6B35;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/* 功能特点 */
.features {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  gap: 10px;
}

.feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  background-color: #F2F2F7;
  border-radius: 12px;
  gap: 8px;
}

.feature-icon {
  font-size: 24px;
}

.feature-text {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

/* 检测按钮 */
.detect-btn {
  width: 100%;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
  margin-bottom: 15px;
}

.detect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

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

.detect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 剩余次数提示 */
.quota-tip {
  text-align: center;
  font-size: 13px;
  color: #666;
}

/* 检测结果区域 */
.result-area {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #F2F2F7;
}

.result-title {
  font-size: 20px;
  font-weight: 700;
  color: #1C1C1E;
}

.close-result-btn {
  font-size: 28px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-result-btn:hover {
  color: #FF3B30;
}

/* AI率显示 */
.ai-rate-display {
  text-align: center;
  margin-bottom: 30px;
}

.rate-circle {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.rate-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
}

.rate-value {
  font-size: 32px;
  font-weight: 800;
  color: #FF6B35;
}

.rate-unit {
  font-size: 16px;
  color: #666;
  margin-left: 2px;
}

.rate-label {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

/* 详细统计 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.stat-item {
  background-color: #F2F2F7;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #1C1C1E;
}

/* 段落详情 */
.paragraph-details {
  margin-bottom: 20px;
}

.details-title {
  font-size: 16px;
  font-weight: 700;
  color: #1C1C1E;
  margin-bottom: 15px;
}

.paragraph-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paragraph-item {
  padding: 12px;
  background-color: #F2F2F7;
  border-radius: 8px;
  border-left: 4px solid #FF6B35;
}

.paragraph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.paragraph-index {
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.paragraph-rate {
  font-size: 14px;
  font-weight: 700;
  color: #FF6B35;
}

.paragraph-text {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

/* 操作按钮 */
.result-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn.primary {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.action-btn.secondary {
  background-color: #F2F2F7;
  color: #333;
}

.action-btn.secondary:hover {
  background-color: #E5E5EA;
}

/* 检测进度 */
.progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.progress-modal {
  background-color: #fff;
  border-radius: 16px;
  padding: 30px;
  width: 80%;
  max-width: 350px;
}

.progress-header {
  text-align: center;
  margin-bottom: 20px;
}

.progress-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1C1C1E;
}

.progress-content {
  margin-bottom: 20px;
}

.progress-bar-container {
  margin-bottom: 15px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #F2F2F7;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #FF6B35;
}

.progress-tip {
  text-align: center;
  margin-top: 15px;
}

.progress-tip p {
  font-size: 13px;
  color: #666;
  margin: 5px 0;
}

/* 进度容器 */
.progress-container {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  margin: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.progress-header {
  margin-bottom: 20px;
}

.progress-title {
  font-size: 18px;
  font-weight: 600;
  color: #1C1C1E;
  text-align: center;
}

.progress-percentage {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #FF6B35;
  margin-bottom: 8px;
}

.progress-details {
  text-align: center;
  margin-top: 12px;
}

.cancel-btn {
  width: 100%;
  padding: 14px;
  background-color: #FF3B30;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.cancel-btn:active {
  opacity: 0.7;
}

/* 结果容器 */
.result-container {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  margin: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.result-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* 🎯 允许换行，适应优惠券卡片 */
}

.probability-circle {
  flex-shrink: 0;
}

.probability-ring {
  width: 120px; /* 🎯 增大圆环，确保100%能完整显示 */
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF3B30 0%, #FF6B35 100%); /* 🎯 改为红色渐变 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.probability-inner {
  width: 100px; /* 🎯 相应增大内圈 */
  height: 100px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.probability-text {
  font-size: 26px; /* 🎯 稍微缩小字体，确保100.0%能完整显示 */
  font-weight: 700;
  color: #FF3B30; /* 🎯 改为红色 */
}

.result-info {
  flex: 1;
}

.result-title {
  font-size: 20px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 8px;
}

.result-details {
  font-size: 14px;
  color: #666;
}

/* 🎁 优惠券卡片样式 */
.coupon-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #FFE5E0 0%, #FFF5F3 100%);
  border: 2px dashed #FF3B30;
  border-radius: 12px;
  margin-left: auto; /* 🎯 推到右侧 */
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.15);
  transition: all 0.3s ease;
}

.coupon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.25);
}

.coupon-badge {
  font-size: 32px;
  flex-shrink: 0;
}

.coupon-content {
  flex: 1;
}

.coupon-title {
  font-size: 18px;
  font-weight: 700;
  color: #FF3B30;
  margin-bottom: 4px;
}

.coupon-desc {
  font-size: 12px;
  color: #666;
}

.coupon-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #FF3B30 0%, #FF6B35 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

.coupon-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
}

.coupon-btn:active {
  transform: scale(0.98);
}

.coupon-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.coupon-btn.claimed {
  background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
}

/* 详细结果 */
.detailed-results {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  margin: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.detailed-header {
  margin-bottom: 20px;
}

.detailed-title {
  font-size: 18px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 4px;
}

.detailed-subtitle {
  font-size: 14px;
  color: #666;
}

.paragraphs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.paragraph-item {
  background-color: #F9F9F9;
  border-radius: 12px;
  padding: 16px;
}

.paragraph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.paragraph-number {
  font-size: 14px;
  font-weight: 600;
  color: #1C1C1E;
}

.risk-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.paragraph-content {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

/* 用户信息表单 */
.user-info-form {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  margin: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.form-header {
  margin-bottom: 24px;
}

.form-title {
  font-size: 18px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 14px;
  color: #666;
}

.form-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #1C1C1E;
}

.form-label .required {
  color: #FF3B30;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  font-size: 16px;
  color: #1C1C1E;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #FF6B35;
}

.form-actions {
  display: flex;
  gap: 12px;
}

.form-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.form-btn.primary {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
}

.form-btn:active {
  opacity: 0.7;
}

.form-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 企业服务 */
.enterprise-service {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 20px;
  text-align: center;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  color: #1C1C1E;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.contact-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.contact-btn:active {
  opacity: 0.7;
}

/* 加载提示 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  color: white;
  font-size: 16px;
  margin-top: 16px;
}

/* 文件信息显示 */
.file-info .file-name {
  font-size: 16px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 4px;
}

.file-info .file-size {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.parse-status {
  font-size: 14px;
}

.parse-status .parsing {
  color: #FF9500;
}

.parse-status .parse-success {
  color: #34C759;
}

.parse-status .parse-error {
  color: #FF3B30;
}

/* 按钮容器 */
.btn-container {
  margin-top: 20px;
}

.start-detection-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.start-detection-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.start-detection-btn:active:not(:disabled) {
  opacity: 0.7;
}

/* 底部导航栏 - 手机端显示 */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0 !important;
  right: 0 !important;
  display: flex;
  justify-content: space-evenly; /* 🎯 改为space-evenly，更均匀分布 */
  background-color: #fff;
  border-top: 1px solid #E5E5EA;
  padding: 0 5px; /* 🎯 减小padding */
  z-index: 100;
  height: 50px;
  box-sizing: border-box; /* 🎯 确保padding不增加总宽度 */
  width: 100% !important; /* 🎯 强制宽度为100% */
  max-width: 100vw !important; /* 🎯 强制不超过视口宽度 */
  overflow-x: hidden; /* 🎯 隐藏横向溢出 */
  transform: none !important; /* 🎯 取消任何transform */
}

.tabbar-item {
  flex: 0 0 auto; /* 🎯 不伸缩，固定宽度 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #8E8E93;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 2px; /* 🎯 减小padding */
  min-width: 0; /* 🎯 允许收缩 */
  max-width: 22%; /* 🎯 限制最大宽度 */
}

.tabbar-item.active {
  color: #FFFFFF; /* 🎯 选中时文字变白色 */
}

/* 🎯 隐藏底部导航栏图标 */
.tabbar-icon {
  display: none;
}

.tabbar-text {
  font-size: 11px; /* 🎯 从12px进一步减小到11px */
  margin-top: 0;
  padding: 5px 10px; /* 🎯 从6px 12px进一步减小 */
  border-radius: 20px; /* 🎯 椭圆形状 */
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap; /* 🎯 防止换行 */
  overflow: hidden; /* 🎯 隐藏溢出 */
  text-overflow: ellipsis; /* 🎯 溢出显示省略号 */
  max-width: 100%; /* 🎯 不超过父元素 */
}

/* 🎯 选中状态：橙色椭圆背景 */
.tabbar-item.active .tabbar-text {
  background: linear-gradient(135deg, #FF7E5F 0%, #FF6B35 100%); /* 🎯 橙色渐变背景 */
  color: #FFFFFF; /* 🎯 白色文字 */
  font-weight: 600; /* 🎯 加粗文字 */
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3); /* 🎯 添加阴影 */
}

/* ========================================
   🖥️ 电脑端样式（屏幕宽度 > 1100px）
   ======================================== */
@media screen and (min-width: 1100px) {
  /* 🎯 整体页面容器固定宽度 */
  body {
    display: flex;
    justify-content: center;
    background-color: #F5F5F7;
  }

  /* 🎯 导航栏固定宽度为1200px，居中显示 */
  .navbar {
    max-width: 1200px;
    width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }

  /* 🎯 电脑端导航菜单样式 - 与首页保持一致 */
  .navbar-menu {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 40px;
    gap: 120px;
  }

  /* 🎯 电脑端登录按钮尺寸 - 与首页保持一致 */
  .simple-login-btn {
    width: 80px;
    height: 42px;
  }

  /* 🎯 电脑端登录按钮悬停效果 - 与首页保持一致 */
  .simple-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  }

  /* 🎯 主容器固定宽度为1200px */
  .ai-detection-container {
    max-width: 1200px;
    width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }

  /* 头部区域 */
  .header {
    padding: 40px 40px;
  }

  .main-title {
    font-size: 36px;
  }

  .subtitle {
    font-size: 16px;
  }

  /* 主要内容区域 */
  .main-content {
    padding: 40px;
    max-width: 1120px; /* 1200px - 40px*2 padding */
    margin: 0 auto;
  }

  /* 检测区域 */
  .detection-area {
    padding: 30px;
    margin-bottom: 30px;
  }

  /* 上传区域 */
  .upload-area {
    padding: 60px 40px;
  }

  /* 文本输入区域 */
  .text-input-area {
    min-height: 400px;
  }

  /* 按钮 */
  .primary-btn {
    padding: 16px 40px;
    font-size: 16px;
  }

  /* 结果区域 */
  .result-section {
    padding: 30px;
  }

  /* 🎯 导航菜单项之间的间隔 */
  .navbar-menu {
    gap: 120px; /* 🎯 电脑端间隔120px */
  }

  /* 🎯 电脑端隐藏底部导航栏 */
  .tabbar {
    display: none !important;
  }

  /* 调整底部padding，因为没有tabbar */
  body {
    padding-bottom: 0;
  }
}

/* ========================================
   📱 手机端样式（屏幕宽度 ≤ 1100px）
   ======================================== */
@media screen and (max-width: 1100px) {
  /* 🎯 手机端隐藏顶部导航栏 */
  .navbar {
    display: none !important;
  }

  /* 🎯 手机端显示底部导航栏 */
  .tabbar {
    display: flex !important;
  }

  /* 🎯 手机端：确保容器有足够的底部padding，避免内容被底部导航栏遮挡 */
  .ai-detection-container {
    padding-bottom: 80px !important; /* 底部导航栏高度50px + 额外间距30px */
    padding-top: 20px !important; /* 手机端不需要顶部导航栏的padding */
  }
}

/* ==================== 批量检测样式 ==================== */

.batch-section {
  width: 100%;
}

/* 套餐信息显示 */
.batch-package-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  color: white;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.package-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pro-badge {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.package-name {
  font-size: 16px;
  font-weight: 600;
}

.quota-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  opacity: 0.95;
}

.remaining-quota {
  font-weight: 600;
}

.remaining-quota span {
  font-size: 18px;
  font-weight: 700;
  margin: 0 4px;
}

.expiry-date {
  font-size: 13px;
  opacity: 0.9;
}

/* 购买引导 */
.batch-purchase-guide {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px dashed #667eea;
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  margin-bottom: 20px;
}

.guide-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.guide-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.guide-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.guide-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.guide-feature {
  font-size: 14px;
  color: #667eea;
  font-weight: 600;
}

.guide-buy-btn {
  padding: 14px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.guide-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.batch-upload-area {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.batch-upload-area:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
}

.batch-upload-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.batch-upload-title {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.batch-upload-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.select-batch-files-btn {
  margin-top: 20px;
  padding: 14px 32px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.select-batch-files-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 批量文件列表 */
.batch-file-list {
  margin-top: 24px;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.batch-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.batch-list-title {
  font-size: 16px;
  font-weight: 600;
  color: #1C1C1E;
}

.batch-list-title span {
  color: #667eea;
  font-weight: 700;
}

.batch-clear-btn {
  padding: 6px 16px;
  background: #FF3B30;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.batch-clear-btn:hover {
  background: #D70015;
  transform: scale(1.05);
}

.batch-files-container {
  max-height: 400px;
  overflow-y: auto;
}

/* 批量文件项 */
.batch-file-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.batch-file-item:hover {
  background: #e9ecef;
  transform: translateX(4px);
}

.batch-file-item.parsing {
  background: linear-gradient(90deg, #fff3cd 0%, #fff8e1 100%);
  border-left: 3px solid #ffc107;
}

.batch-file-item.success {
  background: linear-gradient(90deg, #d4edda 0%, #e8f5e9 100%);
  border-left: 3px solid #28a745;
}

.batch-file-item.error {
  background: linear-gradient(90deg, #f8d7da 0%, #ffebee 100%);
  border-left: 3px solid #dc3545;
}

.batch-file-icon {
  font-size: 32px;
  margin-right: 12px;
}

.batch-file-details {
  flex: 1;
  min-width: 0;
}

.batch-file-name {
  font-size: 14px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-file-size {
  font-size: 12px;
  color: #8E8E93;
}

.batch-file-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
}

.batch-file-status.parsing {
  color: #ffc107;
}

.batch-file-status.success {
  color: #28a745;
}

.batch-file-status.detecting {
  color: #667eea;
  font-weight: 600;
}

.batch-file-status.completed {
  color: #28a745;
  font-weight: 600;
}

.batch-file-status.error {
  color: #dc3545;
}

.batch-file-remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FF3B30;
  color: white;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.batch-file-remove:hover {
  background: #D70015;
  transform: scale(1.1);
}

.batch-file-download-btn {
  padding: 6px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.batch-file-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.batch-file-download-btn:active {
  transform: translateY(0);
}

/* 批量下载区域 */
.batch-download-section {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.batch-download-title {
  font-size: 16px;
  font-weight: 700;
  color: #1C1C1E;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.batch-download-btn {
  padding: 14px 20px;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.batch-download-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.batch-download-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.batch-download-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

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

/* 批量检测进度 */
.batch-progress-section {
  margin-top: 24px;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.batch-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.batch-progress-title {
  font-size: 16px;
  font-weight: 600;
  color: #1C1C1E;
}

.batch-progress-stats {
  font-size: 14px;
  color: #667eea;
  font-weight: 600;
}

.batch-progress-bar-container {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.batch-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.batch-progress-text {
  font-size: 13px;
  color: #8E8E93;
  text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .batch-upload-area {
    padding: 30px 15px;
  }

  .batch-upload-icon {
    font-size: 48px;
  }

  .batch-upload-title {
    font-size: 20px;
  }

  .batch-upload-desc {
    font-size: 13px;
  }

  .select-batch-files-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .batch-file-list {
    padding: 15px;
  }

  .batch-files-container {
    max-height: 300px;
  }

  .batch-file-item {
    padding: 10px;
  }

  .batch-file-icon {
    font-size: 28px;
  }

  .batch-file-name {
    font-size: 13px;
  }

  .batch-file-size {
    font-size: 11px;
  }
}
