/* 全局变量 - 科技蓝+深空黑 */
:root {
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --bg-dark: #0a0e27;
  --bg-light: #ffffff;
  --text-dark: #e0e6ed;
  --text-light: #1a202c;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 暗色/亮色主题切换 */
[data-theme="dark"] {
  --bg: var(--bg-dark);
  --text: var(--text-dark);
  --card-bg: rgba(30, 41, 59, 0.8);
}

[data-theme="light"] {
  --bg: var(--bg-light);
  --text: var(--text-light);
  --card-bg: rgba(255, 255, 255, 0.9);
}

/* 重置 & 基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 16px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-icon-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.3));
  transition: filter 0.3s ease;
}

.logo:hover .logo-icon {
  filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.5));
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.logo-subtitle {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.7;
  line-height: 1;
  letter-spacing: 0.5px;
}

.nav a {
  margin-left: 32px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

/* 英雄区 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.gradient-circle {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.3;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  text-align: center;
}

.gradient-text {
  display: block;
  background: linear-gradient(135deg, var(--primary) 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 36px;
  margin-top: 16px;
  text-align: center;
}

.hero-desc {
  font-size: 20px;
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 48px;
  text-align: center;
}

/* 工具卡片 - 毛玻璃效果 */
.tool-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

.tool-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.tool-header .icon {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.tool-header h3 {
  font-size: 24px;
  font-weight: 600;
  flex: 1;
}

.my-ip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.my-ip-badge:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.my-ip-label {
  color: var(--text);
  opacity: 0.7;
  font-weight: 500;
}

.my-ip-value {
  color: var(--primary);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.input-group {
  display: flex;
  gap: 16px;
}

#ipInput {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.3s;
}

#ipInput:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary .icon {
  width: 16px;
  height: 16px;
  fill: white;
}

/* 统计信息 */
.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 8px;
}

/* 结果区域 */
.result-area {
  margin-top: 24px;
  padding: 24px;
  background: var(--glass);
  border-radius: 12px;
  min-height: 100px;
}

.result-card {
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

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

.result-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
}

.badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.result-card.good .badge {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
}

.result-card.medium .badge {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.result-card.bad .badge {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
}

.cache-tag {
  margin-left: 12px;
  padding: 4px 12px;
  background: var(--glass);
  border-radius: 12px;
  font-size: 12px;
  opacity: 0.7;
}

.score-display {
  text-align: center;
  margin: 32px 0;
}

.score-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}

.result-card.good .score-number {
  color: #00ff88;
}

.result-card.medium .score-number {
  color: #ffc107;
}

.result-card.bad .score-number {
  color: #ff4444;
}

.score-label {
  font-size: 16px;
  opacity: 0.7;
  margin-top: 8px;
}

.result-details {
  margin: 32px 0;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.detail-item .label {
  opacity: 0.7;
}

.detail-item .value {
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn-share, .btn-retry {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-share:hover, .btn-retry:hover {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
}

.btn-share .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* 功能特性 */
.features {
  padding: 80px 0;
  background: rgba(0, 0, 0, 0.2);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 32px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 16px;
  margin-bottom: 24px;
}

.feature-icon .icon {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card p {
  opacity: 0.8;
  line-height: 1.8;
}

/* API文档 */
.api-docs {
  padding: 80px 0;
}

.code-block {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.code-block code {
  color: #00ff88;
}

/* 历史查询 */
.history-section {
  padding: 40px 0;
}

#history h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.history-item:hover {
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.05);
}

.history-item .ip {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.history-item .score {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.history-item .score.good {
  color: #00ff88;
}

.history-item .score.bad {
  color: #ff4444;
}

/* 页脚 */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-links {
  margin-bottom: 16px;
}

.footer-links a {
  margin: 0 16px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer p {
  opacity: 0.5;
  font-size: 14px;
}

/* 结果页面 */
.result-page {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
}

.back-link {
  margin-bottom: 24px;
}

.back-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.back-link a:hover {
  opacity: 0.8;
}

/* 加载动画 */
.loading {
  text-align: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  
  .gradient-text {
    font-size: 24px;
  }
  
  .hero-desc {
    font-size: 16px;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav {
    display: none;
  }
  
  .logo-title {
    font-size: 18px;
  }
  
  .logo-subtitle {
    font-size: 10px;
  }
  
  .logo-icon-wrapper {
    width: 34px;
    height: 34px;
  }
  
  .tool-card {
    padding: 20px;
  }
  
  .tool-header {
    flex-wrap: wrap;
  }
  
  .my-ip-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .score-number {
    font-size: 48px;
  }
}

/* 面包屑导航 */
.breadcrumb {
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  margin-bottom: 20px;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text);
}

.breadcrumb li:not(:last-child)::after {
  content: '>';
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.breadcrumb li:last-child span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* 响应式面包屑 */
@media (max-width: 768px) {
  .breadcrumb {
    padding: 8px 0;
    margin-bottom: 15px;
  }
  
  .breadcrumb li {
    font-size: 12px;
  }
  
  .breadcrumb li:not(:last-child)::after {
    margin: 0 6px;
  }
}

/* IP检测页面欢迎信息 */
.welcome-message {
  text-align: center;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  margin-top: 20px;
}

.welcome-icon {
  color: var(--primary);
  margin-bottom: 20px;
}

.welcome-message h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.welcome-message p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.feature-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 0;
}

.quick-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary .icon {
  width: 16px;
  height: 16px;
}

/* 响应式欢迎信息 */
@media (max-width: 768px) {
  .welcome-message {
    padding: 30px 16px;
  }
  
  .welcome-message h3 {
    font-size: 20px;
  }
  
  .feature-list {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .quick-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-secondary {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

/* 最近查询记录 */
.recent-queries-section {
  margin-top: 40px;
  padding: 30px 20px;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.recent-queries-section h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  text-align: center;
}

.recent-queries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.recent-query-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.recent-query-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.query-ip {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  min-width: 140px;
}

.query-info {
  flex: 1;
  margin: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.query-location {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.query-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.query-score {
  font-size: 16px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  min-width: 60px;
  text-align: center;
}

.query-score.safe {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.query-score.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.query-score.danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 响应式最近查询 */
@media (max-width: 768px) {
  .recent-queries-section {
    padding: 20px 16px;
    margin-top: 30px;
  }
  
  .recent-queries-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .recent-query-item {
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .query-info {
    margin: 0;
    width: 100%;
  }
  
  .query-score {
    align-self: flex-end;
    font-size: 14px;
    padding: 4px 10px;
  }
  
  .query-ip {
    font-size: 14px;
    min-width: auto;
  }
}

/* IP检测专用页面样式 */
.ip-detection-page {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #00a8cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.page-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.feature-item h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* 导航激活状态 */
.nav a.active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
  border-radius: 6px;
  padding: 8px 16px;
}

/* 导航按钮样式 */
.nav a.btn-outline {
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.nav a.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

/* 新导航按钮样式 */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.nav-btn:hover::before {
  left: 100%;
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 主要按钮样式 */
.nav-btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.nav-btn-primary:hover {
  background: #0099cc;
  border-color: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* 次要按钮样式 */
.nav-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.nav-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.2);
}

/* Outline按钮样式 */
.nav-btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* 页脚样式 */
.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand .logo-icon {
  width: 32px;
  height: 32px;
}

.footer-brand .logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.link-group h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.link-group a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* 响应式IP检测页面 */
@media (max-width: 768px) {
  .ip-detection-page {
    padding: 20px 0;
  }
  
  .page-title {
    font-size: 32px;
  }
  
  .page-desc {
    font-size: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }
  
  .feature-item {
    padding: 20px 16px;
  }
  
  .feature-icon {
    font-size: 36px;
  }
  
  .footer {
    margin-top: 40px;
    padding: 30px 0 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    gap: 30px;
  }
}

/* 加载查询记录样式 */
.loading-queries {
  text-align: center;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  grid-column: 1 / -1; /* 占满整行 */
}

.loading-icon {
  font-size: 32px;
  margin-bottom: 12px;
  animation: pulse 1.5s ease-in-out infinite;
}

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

.loading-queries p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* 暂无查询记录样式 */
.no-queries {
  text-align: center;
  padding: 60px 20px;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  grid-column: 1 / -1; /* 占满整行 */
}

.no-queries-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.no-queries h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.no-queries p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

.error-message {
  text-align: center;
  padding: 40px 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #ef4444;
}

/* 最近查询记录section样式 */
.recent-queries {
  padding: 60px 0;
  background: rgba(0, 0, 0, 0.1);
}

.recent-queries .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.recent-queries .section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.recent-queries .section-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

/* 响应式暂无查询 */
@media (max-width: 768px) {
  .no-queries {
    padding: 40px 16px;
  }
  
  .no-queries-icon {
    font-size: 48px;
  }
  
  .no-queries h3 {
    font-size: 20px;
  }
  
  .recent-queries {
    padding: 40px 0;
  }
  
  .recent-queries .section-title {
    font-size: 28px;
  }
}

/* 批量检测页面样式 */
.batch-input-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.batch-input-group textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

.batch-input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

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

.batch-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

.batch-result-area {
  margin-top: 24px;
}

.batch-progress {
  text-align: center;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 16px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.3s ease;
  animation: progress-pulse 1.5s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.batch-results {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.results-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.safe-count {
  color: #10b981;
  font-weight: 600;
}

.warning-count {
  color: #f59e0b;
  font-weight: 600;
}

.danger-count {
  color: #ef4444;
  font-weight: 600;
}

.error-count {
  color: #6b7280;
  font-weight: 600;
}

.btn-export {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-export:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.results-table {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.table-header {
  display: contents;
}

.table-header > span {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.table-row {
  display: contents;
}

.table-row > span {
  background: var(--card-bg);
  padding: 12px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.ip-cell {
  font-family: 'Courier New', monospace;
  color: var(--primary);
  font-weight: 600;
}

.score-cell.safe {
  color: #10b981;
  font-weight: 600;
}

.score-cell.warning {
  color: #f59e0b;
  font-weight: 600;
}

.score-cell.danger {
  color: #ef4444;
  font-weight: 600;
}

.score-cell.error {
  color: #6b7280;
  font-weight: 600;
}

.status-cell.safe {
  color: #10b981;
}

.status-cell.warning {
  color: #f59e0b;
}

.status-cell.danger {
  color: #ef4444;
}

.status-cell.error {
  color: #6b7280;
}

.cached-tag {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  margin-left: 8px;
}

/* 使用说明样式 */
.batch-guide {
  padding: 60px 0;
  background: rgba(0, 0, 0, 0.1);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.guide-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.guide-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.guide-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.guide-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.guide-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* 响应式批量检测 */
@media (max-width: 768px) {
  .batch-actions {
    flex-direction: column;
  }
  
  .results-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .results-summary {
    width: 100%;
    justify-content: space-between;
  }
  
  .results-table {
    grid-template-columns: 1fr;
  }
  
  .table-header {
    display: none;
  }
  
  .table-row {
    display: block;
    margin-bottom: 16px;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
  }
  
  .table-row > span {
    display: block;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .table-row > span:last-child {
    border-bottom: none;
  }
  
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .batch-guide {
    padding: 40px 0;
  }
}

/* 新页脚样式 */
.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  padding: 50px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 400px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  width: 32px;
  height: 32px;
}

.footer-brand .logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.brand-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.batch-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-badge {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  min-width: 80px;
}

.stat-badge .stat-number {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-badge .stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 40px;
}

.link-column h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.link-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

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

.link-column a.current {
  color: var(--primary);
  font-weight: 500;
}

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.copyright p {
  margin: 0;
  line-height: 1.4;
}

.copyright a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

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

.footer-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-tags .tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式新页脚 */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 20px;
  }
  
  .footer-links {
    gap: 30px;
  }
  
  .batch-stats {
    justify-content: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-tags {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
  
  .batch-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-badge {
    min-width: 120px;
  }
}

/* 导航按钮响应式 */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .nav-btn {
    padding: 8px 16px;
    font-size: 13px;
    gap: 6px;
  }
  
  .btn-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .nav a:not(.nav-btn) {
    text-align: center;
    padding: 8px 0;
  }
  
  .nav-btn {
    justify-content: center;
    padding: 12px 20px;
  }
}

/* 历史记录页面样式 */
.history-section {
  padding: 60px 0;
  background: rgba(0, 0, 0, 0.1);
}

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

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.history-item {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.history-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-index {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.history-time {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.virtual-badge {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
}

.virtual-item {
  opacity: 0.85;
  border-color: rgba(156, 163, 175, 0.2);
}

.virtual-item:hover {
  opacity: 1;
  border-color: rgba(156, 163, 175, 0.4);
  box-shadow: 0 8px 25px rgba(156, 163, 175, 0.1);
}

.history-content {
  margin-bottom: 16px;
}

.history-ip {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.history-location {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 8px;
}

.history-score {
  font-size: 16px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-block;
}

.history-score.safe {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.history-score.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.history-score.danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-small .icon {
  width: 12px;
  height: 12px;
}

.btn-small.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-small.btn-primary:hover {
  background: #0099cc;
  transform: translateY(-1px);
}

.btn-small.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-small.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary);
  border-color: var(--primary);
}

.history-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.history-stats .stat-item {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
}

.history-stats .stat-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.quick-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.quick-actions .btn-primary,
.quick-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.quick-actions .icon {
  width: 16px;
  height: 16px;
}

/* 响应式历史记录 */
@media (max-width: 768px) {
  .history-section {
    padding: 40px 0;
  }
  
  .history-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .history-item {
    padding: 16px;
  }
  
  .history-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .history-stats {
    gap: 12px;
  }
  
  .history-stats .stat-item {
    min-width: 100px;
    padding: 16px;
  }
  
  .quick-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* 解决方案页面样式 */
.main {
  padding-top: 80px; /* 为固定页眉留出空间 */
}

/* 英雄区域样式 */
.hero-section {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(10, 14, 39, 0.9) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 140px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #0099cc 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, #00e6ff 0%, var(--primary) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}

.solution-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(10, 14, 39, 0.8) 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.risk-grid, .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.risk-card, .feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.risk-card::before, .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

.risk-card:hover, .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.risk-card h3, .feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary);
}

.risk-card p, .feature-card p {
  color: var(--text);
  line-height: 1.6;
  opacity: 0.9;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.features-section {
  padding: 80px 0;
  background: rgba(10, 14, 39, 0.6);
}

/* 响应式解决方案页面 */
@media (max-width: 768px) {
  .hero-section {
    padding: 100px 0 60px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  .solution-section, .features-section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .risk-grid, .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .risk-card, .feature-card {
    padding: 20px;
  }
  
  .feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* 页脚区域样式 */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  display: inline-block;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--primary);
  opacity: 1;
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
  color: var(--text);
  opacity: 0.6;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
}

.footer-keywords {
  font-size: 0.85rem !important;
  opacity: 0.5 !important;
}

/* 响应式页脚 */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
  }
  
  .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .footer-section li {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-section {
    text-align: center;
  }
}

/* 关于我们页面样式 */
.about-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(10, 14, 39, 0.8) 100%);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.about-text h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin: 40px 0 20px 0;
  border-left: 4px solid var(--primary);
  padding-left: 15px;
}

.about-text p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.9;
}

.about-text ul {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 20px;
}

.about-text li {
  margin-bottom: 10px;
  opacity: 0.9;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.advantage-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.advantage-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.advantage-card h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.advantage-card p {
  color: var(--text);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* 联系我们页面样式 */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(10, 14, 39, 0.8) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.contact-methods {
  display: grid;
  gap: 30px;
  margin-bottom: 40px;
}

.contact-item {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-item h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.contact-value {
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-desc {
  color: var(--text);
  opacity: 0.7;
  font-size: 0.9rem;
}

.support-info {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
}

.support-info h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 20px 0 15px 0;
}

.support-info h3:first-child {
  margin-top: 0;
}

.support-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.support-info li {
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  opacity: 0.9;
}

.support-info li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.support-info li strong {
  color: var(--primary);
  font-weight: 600;
}

.message-form {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 30px;
}

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

.form-group label {
  display: block;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.faq-section {
  margin-top: 60px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 25px;
}

.faq-item h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.faq-item p {
  color: var(--text);
  opacity: 0.9;
  line-height: 1.6;
}

/* 政策页面样式 */
.policy-section,
.terms-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(10, 14, 39, 0.8) 100%);
}

.policy-content,
.terms-content {
  max-width: 900px;
  margin: 0 auto;
}

.policy-intro,
.terms-intro {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
}

.policy-intro p,
.terms-intro p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 15px;
  opacity: 0.9;
}

.policy-item,
.terms-item {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.policy-item h2,
.terms-item h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
}

.policy-item h3,
.terms-item h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 25px 0 15px 0;
}

.policy-item p,
.terms-item p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 15px;
  opacity: 0.9;
}

.policy-item ul,
.terms-item ul {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 20px;
}

.policy-item li,
.terms-item li {
  margin-bottom: 8px;
  opacity: 0.9;
}

.policy-footer,
.terms-footer {
  background: var(--card-bg);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.policy-footer p,
.terms-footer p {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

/* 响应式关于我们页面 */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .about-text h2 {
    font-size: 1.8rem;
  }
  
  .about-text h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .message-form {
    padding: 20px;
  }
  
  .policy-item,
  .terms-item {
    padding: 20px;
  }
}

/* FAQ页面样式 */
.faq-main-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(10, 14, 39, 0.8) 100%);
}

.faq-categories {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 60px;
}

.category-title {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 15px;
}

.faq-items {
  display: grid;
  gap: 25px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.faq-question {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  padding: 20px 25px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.faq-question::after {
  content: '-';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item.collapsed .faq-question::after {
  content: '+';
  transform: translateY(-50%) rotate(0deg);
}

.faq-question:hover {
  background: rgba(0, 212, 255, 0.15);
}

.faq-answer {
  padding: 25px;
  color: var(--text);
  line-height: 1.8;
  display: block;
  visibility: visible;
  opacity: 1;
  transition: all 0.3s ease;
  border-top: 1px solid var(--glass-border);
}

.faq-item.collapsed .faq-answer {
  max-height: 0;
  overflow: hidden;
  border-top: none;
  padding: 0 25px;
  opacity: 0;
}

.faq-answer p {
  margin-bottom: 15px;
  opacity: 0.9;
}

.faq-answer ul,
.faq-answer ol {
  margin: 15px 0;
  padding-left: 25px;
}

.faq-answer li {
  margin-bottom: 8px;
  opacity: 0.9;
}

.faq-answer strong {
  color: var(--primary);
  font-weight: 600;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.faq-answer a:hover {
  border-bottom-color: var(--primary);
}

.faq-contact {
  background: var(--card-bg);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}

.faq-contact h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.faq-contact p {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.contact-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FAQ响应式 */
@media (max-width: 768px) {
  .faq-main-section {
    padding: 60px 0;
  }
  
  .category-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }
  
  .faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }
  
  .faq-question::after {
    right: 20px;
  }
  
  .faq-answer {
    padding: 20px;
  }
  
  .faq-contact {
    padding: 30px 20px;
  }
  
  .contact-options {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-options .btn-primary,
  .contact-options .btn-secondary {
    width: 100%;
    max-width: 250px;
  }
}

/* 帮助页面样式 */
.help-main-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(10, 14, 39, 0.8) 100%);
}

.help-nav {
  margin-bottom: 60px;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.nav-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 25px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  display: block;
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.nav-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.nav-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.nav-card p {
  color: var(--text);
  opacity: 0.8;
  font-size: 0.9rem;
}

.help-content {
  max-width: 1000px;
  margin: 0 auto;
}

.help-section {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
}

.help-title {
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 15px;
}

.help-item {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.help-item h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.help-item h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.help-item p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 15px;
  opacity: 0.9;
}

.help-item ul,
.help-item ol {
  color: var(--text);
  line-height: 1.8;
  margin: 15px 0;
  padding-left: 25px;
}

.help-item li {
  margin-bottom: 8px;
  opacity: 0.9;
}

.help-item a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.help-item a:hover {
  border-bottom-color: var(--primary);
}

/* 步骤列表样式 */
.step-list {
  margin: 20px 0;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(0, 212, 255, 0.05);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.step-number {
  background: var(--primary);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 8px;
}

.step-content p {
  margin-bottom: 0;
}

/* 风险等级样式 */
.risk-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.risk-level {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid;
}

.risk-level.low {
  background: rgba(34, 197, 94, 0.1);
  border-left-color: #22c55e;
}

.risk-level.medium {
  background: rgba(251, 191, 36, 0.1);
  border-left-color: #fbbf24;
}

.risk-level.high {
  background: rgba(249, 115, 22, 0.1);
  border-left-color: #f97316;
}

.risk-level.critical {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
}

.risk-score {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
  margin-right: 15px;
  min-width: 60px;
}

.risk-info h4 {
  margin-bottom: 5px;
  color: var(--primary);
}

.risk-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* 检测项目样式 */
.detection-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.detection-item {
  padding: 20px;
  background: rgba(0, 212, 255, 0.05);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.detection-item h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.detection-item p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* API信息样式 */
.api-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.api-detail {
  padding: 15px;
  background: rgba(0, 212, 255, 0.05);
  border-radius: 8px;
  text-align: center;
}

.api-detail h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1rem;
}

.api-detail code {
  background: rgba(0, 0, 0, 0.3);
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* 代码示例样式 */
.code-example {
  margin: 20px 0;
}

.code-example h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.code-example pre {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 4px solid var(--primary);
}

/* 帮助页脚样式 */
.help-footer {
  background: var(--card-bg);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}

.help-footer h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.help-footer p {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.help-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 帮助页面响应式 */
@media (max-width: 768px) {
  .help-main-section {
    padding: 60px 0;
  }
  
  .nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .help-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .help-item {
    padding: 20px;
  }
  
  .step {
    padding: 15px;
  }
  
  .step-number {
    width: 25px;
    height: 25px;
    margin-right: 15px;
  }
  
  .risk-levels {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .detection-items {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .api-info {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .help-footer {
    padding: 30px 20px;
  }
  
  .help-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .help-actions .btn-primary,
  .help-actions .btn-secondary {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .nav-grid {
    grid-template-columns: 1fr;
  }
  
  .api-info {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

/* 历史记录页面优化样式 */
.history-item {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.history-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

.history-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.history-ip {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Courier New', monospace;
}

.history-time {
  color: var(--text);
  opacity: 0.7;
  font-size: 0.9rem;
}

.history-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.history-detail {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-detail-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.history-detail-label {
  color: var(--text);
  opacity: 0.8;
  font-size: 0.9rem;
  min-width: 60px;
}

.history-detail-value {
  color: var(--text);
  font-weight: 500;
}

.history-risk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.history-risk.low {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.history-risk.medium {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.history-risk.high {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
}

.history-risk.critical {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.history-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.history-btn {
  padding: 6px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.history-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.history-btn.primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

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

/* 历史记录响应式 */
@media (max-width: 768px) {
  .history-item {
    padding: 15px;
  }
  
  .history-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .history-ip {
    font-size: 1.1rem;
  }
  
  .history-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .history-actions {
    justify-content: flex-start;
    width: 100%;
  }
  
  .history-btn {
    flex: 1;
    justify-content: center;
    min-width: 80px;
  }
}
