/* 现代清爽设计系统 - 参考 uucc.cc 风格 */

:root {
  /* 清爽配色系统 */
  --primary-blue: #4f46e5;
  --primary-blue-light: #6366f1;
  --primary-blue-dark: #3730a3;
  --secondary-purple: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* 背景色系 */
  --bg-white: #ffffff;
  --bg-gray-50: #f9fafb;
  --bg-gray-100: #f3f4f6;
  --bg-gray-200: #e5e7eb;

  /* 文字色系 */
  --text-gray-900: #111827;
  --text-gray-700: #374151;
  --text-gray-600: #4b5563;
  --text-gray-500: #6b7280;
  --text-gray-400: #9ca3af;

  /* 边框色系 */
  --border-gray-200: #e5e7eb;
  --border-gray-300: #d1d5db;

  /* 阴影系统 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* 圆角系统 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* 过渡动画 */
  --transition-fast: all 0.15s ease-in-out;
  --transition-normal: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;
}

/* ===== 英雄区重新设计 ===== */
.hero-area {
  background: var(--accent-gradient);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-area .container {
  position: relative;
  z-index: 2;
}

/* 英雄区标题 */
.hero-area h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-area .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 搜索框重新设计 ===== */
.ip-query-form {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-gray-200);
  max-width: 600px;
  margin: 0 auto;
  transform: translateY(0);
  transition: var(--transition-normal);
}

.ip-query-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ip-query-form h3 {
  color: var(--text-gray-900);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.ip-query-form .form-control {
  border: 2px solid var(--border-gray-200);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  transition: var(--transition-fast);
  background: var(--bg-white);
  color: var(--text-gray-900);
}

.ip-query-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  outline: none;
}

.ip-query-form .btn-primary {
  background: var(--primary-blue);
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.875rem 2rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.ip-query-form .btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ===== 卡片系统重新设计 ===== */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--border-gray-300);
}

.card-header {
  background: var(--bg-gray-50);
  border-bottom: 1px solid var(--border-gray-200);
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--text-gray-900);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ===== 工具卡片 ===== */
.tool-card {
  background: var(--bg-white);
  border: 1px solid var(--border-gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
  height: 100%;
}

.tool-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-blue);
}

.tool-card .tool-icon {
  margin-bottom: 1.5rem;
}

.tool-card .tool-icon i {
  font-size: 2.5rem;
  color: var(--primary-blue);
  transition: var(--transition-fast);
}

.tool-card:hover .tool-icon i {
  transform: scale(1.1);
  color: var(--primary-blue-dark);
}

.tool-card .card-title {
  color: var(--text-gray-900);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tool-card .card-text {
  color: var(--text-gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ===== 按钮系统 ===== */
.btn {
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: var(--transition-fast);
  border: none;
  padding: 0.75rem 1.5rem;
}

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

.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-gray-100);
  color: var(--text-gray-700);
  border: 1px solid var(--border-gray-200);
}

.btn-secondary:hover {
  background: var(--bg-gray-200);
  color: var(--text-gray-900);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline-primary:hover {
  background: var(--primary-blue);
  color: white;
}

/* ===== 徽章系统 ===== */
.badge {
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

.badge.bg-primary {
  background: var(--primary-blue) !important;
}

.badge.bg-success {
  background: #10b981 !important;
}

.badge.bg-warning {
  background: #f59e0b !important;
  color: var(--text-gray-900) !important;
}

.badge.bg-danger {
  background: #ef4444 !important;
}
/* ===== IP 资源卡片特殊样式 ===== */
.ip-card {
  background: var(--bg-white);
  border: 1px solid var(--border-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  overflow: hidden;
}

.ip-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-blue);
}

.ip-card .card-header {
  background: var(--bg-gray-50);
  border-bottom: 1px solid var(--border-gray-200);
  padding: 1.25rem 1.5rem;
}

.ip-card .card-body {
  padding: 1.5rem;
  background: var(--bg-white);
}

.ip-card .card-title {
  color: var(--text-gray-900);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.ip-card .card-text {
  color: var(--text-gray-600);
  line-height: 1.6;
}

/* ===== 跨境线路卡片样式 ===== */
.line-card {
  background: var(--bg-white);
  border: 1px solid var(--border-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  overflow: hidden;
}

.line-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-blue);
}

.line-card .card-body {
  padding: 1.5rem;
  background: var(--bg-white);
}

.line-card .card-title {
  color: var(--text-gray-900);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.line-card .card-text {
  color: var(--text-gray-600);
  line-height: 1.6;
}

/* ===== 筛选区域样式 ===== */
.filter-section {
  background: var(--bg-white);
  border: 1px solid var(--border-gray-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.filter-section .form-select {
  border: 1px solid var(--border-gray-200);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  color: var(--text-gray-900);
  padding: 0.75rem 1rem;
}

.filter-section .form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.filter-section .btn {
  border-radius: var(--radius-lg);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
}

/* ===== 统计区域样式 ===== */
.hero-stats {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

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

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-gray-900);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ===== 表格样式优化 ===== */
.table {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table th {
  background: var(--bg-gray-50);
  color: var(--text-gray-900);
  font-weight: 600;
  border-bottom: 1px solid var(--border-gray-200);
  padding: 1rem 1.25rem;
}

.table td {
  color: var(--text-gray-700);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-gray-200);
}

.table tbody tr:hover {
  background: var(--bg-gray-50);
}

/* ===== 进度条样式 ===== */
.progress {
  background: var(--bg-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.progress-bar {
  background: var(--primary-blue);
  transition: width 0.6s ease;
}

/* ===== 供应商Logo样式 ===== */
.vendor-logo-img {
  height: 30px;
  width: auto;
  background: var(--bg-white);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gray-200);
  object-fit: contain;
}

.vendor-logo-lg {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.vendor-logo-elevated {
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gray-200);
}
/* ===== 首页特殊样式 ===== */

/* 浮动动画 */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating-shape {
  animation: float 6s ease-in-out infinite;
}

/* 英雄区域样式 */
.hero-area {
  min-height: 70vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 0;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(45deg, #fff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.85) !important;
}

.hero-tags .badge {
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* 搜索表单样式 */
.search-container {
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-form .input-group-text {
  background: var(--bg-gray-50);
  border-color: var(--border-gray-200);
}

.search-form .form-control {
  border-color: var(--border-gray-200);
  background: var(--bg-white);
}

.search-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.quick-examples .btn-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 0.875rem;
}

.quick-examples .btn-link:hover {
  text-decoration: underline;
}

/* 区域标题样式 */
.section-badge {
  font-size: 0.875rem;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

/* 工具卡片增强样式 */
.tool-card {
  transition: all 0.3s ease;
  border: 1px solid var(--border-gray-200);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tool-card:hover .card-hover-effect {
  opacity: 1 !important;
}

.tool-icon-wrapper {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon-bg {
  transition: all 0.3s ease;
}

.tool-card:hover .tool-icon-bg {
  transform: translate(-50%, -50%) scale(1.1);
}

/* IP资源卡片增强样式 */
.ip-resource-card {
  transition: all 0.3s ease;
  border: 1px solid var(--border-gray-200);
}

.ip-resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-blue);
}

.vendor-logo-wrapper {
  transition: all 0.3s ease;
}

.ip-resource-card:hover .vendor-logo-wrapper {
  transform: scale(1.05);
}

.hover-primary:hover {
  color: var(--primary-blue) !important;
}

.spec-item {
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.spec-item:hover {
  background: var(--bg-white) !important;
  border-color: var(--border-gray-200);
  transform: translateX(4px);
}

.spec-icon {
  width: 24px;
  text-align: center;
}

.card-footer-custom {
  background: var(--bg-gray-50);
  border-color: var(--border-gray-200) !important;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-amount {
  font-size: 1.25rem;
}

/* 空状态样式 */
.empty-state {
  padding: 4rem 2rem;
}

.empty-icon {
  opacity: 0.3;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .hero-area {
    min-height: 60vh;
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tags .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .search-container {
    margin: 0 1rem;
  }

  .tool-card,
  .ip-resource-card {
    margin-bottom: 1.5rem;
  }

  .spec-item {
    margin-bottom: 0.5rem !important;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 0 1rem;
  }

  .search-container {
    padding: 1.5rem !important;
  }

  .input-group-lg .form-control {
    font-size: 1rem;
  }

  .quick-examples {
    display: none;
  }
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .hero-area {
    min-height: 70vh;
    padding: 3rem 0;
  }

  .ip-query-form {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .tool-card {
    padding: 1.5rem 1rem;
  }

  .card-body {
    padding: 1.25rem;
  }
}

/* ===== 文字颜色优化 ===== */
.text-primary { color: var(--primary-blue) !important; }
.text-secondary { color: var(--text-gray-600) !important; }
.text-muted { color: var(--text-gray-500) !important; }
.text-dark { color: var(--text-gray-900) !important; }

/* ===== 背景色优化 ===== */
.bg-light { background-color: var(--bg-gray-50) !important; }
.bg-white { background-color: var(--bg-white) !important; }
