/*
 * IP 页面专用高端主题样式
 * 为 IP 查询和详情页面提供统一的现代化设计
 */

/* ========== IP 页面英雄区域 ========== */
.ip-hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ip-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.ip-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.ip-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.ip-hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ========== 统计数据卡片 ========== */
.ip-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.ip-stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ip-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.ip-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.2);
}

.ip-stat-card:hover::before {
  transform: scaleX(1);
}

.ip-stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.ip-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.ip-stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ========== 筛选区域现代化 ========== */
.ip-filter-section {
  background: white;
  padding: 2rem 0;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.ip-filter-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ip-filter-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ip-filter-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ip-filter-description {
  color: #6b7280;
  font-size: 1rem;
}

.ip-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: end;
}

.ip-filter-group {
  display: flex;
  flex-direction: column;
}

.ip-filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ip-filter-select {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #1f2937;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.65rem auto;
}

.ip-filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ip-filter-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.ip-filter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.ip-filter-reset {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1.5rem;
}

.ip-filter-reset:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========== IP 资源卡片现代化 ========== */
.ip-resources-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.ip-resources-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  z-index: 0;
}

.ip-section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.ip-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.ip-section-description {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.ip-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.ip-resource-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ip-resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.ip-resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.ip-resource-card:hover::before {
  transform: scaleX(1);
}

.ip-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ip-card-header {
  padding: 1.5rem;
  flex: 1;
}

.ip-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.ip-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ip-card-title a:hover {
  color: #667eea;
}

.ip-specs-grid {
  display: grid;
  gap: 0.75rem;
}

.ip-spec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.ip-spec-item:hover {
  background: #e2e8f0;
  transform: translateX(4px);
}

.ip-spec-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  flex-shrink: 0;
}

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

.ip-spec-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 0.125rem;
}

.ip-spec-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  word-break: break-word;
}

.ip-card-footer {
  padding: 1.5rem;
  border-top: 1px solid #f3f4f6;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ip-price-section {
  flex: 1;
}

.ip-price-display {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.ip-price-currency {
  font-size: 0.875rem;
  color: #6b7280;
}

.ip-price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

.ip-price-unit {
  font-size: 0.875rem;
  color: #6b7280;
}

.ip-price-yearly {
  font-size: 0.75rem;
  color: #6b7280;
}

.ip-action-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.ip-btn-detail {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.ip-btn-detail:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* ========== 分页现代化 ========== */
.ip-pagination-section {
  padding: 3rem 0;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.ip-pagination-info {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.ip-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ip-page-item {
  border-radius: 12px;
  overflow: hidden;
}

.ip-page-link {
  background: white;
  border: 2px solid #e5e7eb;
  color: #374151;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
}

.ip-page-link:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ip-page-item.active .ip-page-link {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ip-page-item.disabled .ip-page-link {
  background: #f9fafb;
  color: #d1d5db;
  cursor: not-allowed;
}

.ip-page-item.disabled .ip-page-link:hover {
  transform: none;
  box-shadow: none;
  background: #f9fafb;
  color: #d1d5db;
}

/* ========== 空状态设计 ========== */
.ip-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.ip-empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #9ca3af;
  font-size: 2rem;
}

.ip-empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.ip-empty-description {
  color: #6b7280;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.ip-empty-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ip-empty-button:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
  .ip-resources-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .ip-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .ip-hero-section {
    min-height: 50vh;
    padding: 3rem 0;
  }
  
  .ip-filter-section {
    padding: 1.5rem 0;
    margin-top: -2rem;
  }
  
  .ip-filter-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .ip-filter-form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ip-filter-button,
  .ip-filter-reset {
    width: 100%;
  }
  
  .ip-resources-section {
    padding: 2rem 0;
  }
  
  .ip-resources-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ip-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .ip-action-section {
    align-items: stretch;
  }
  
  .ip-btn-detail {
    text-align: center;
    justify-content: center;
  }
  
  .ip-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .ip-stat-card {
    padding: 1.5rem;
  }
  
  .ip-stat-value {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .ip-hero-title {
    font-size: 2rem;
  }
  
  .ip-hero-subtitle {
    font-size: 1rem;
  }
  
  .ip-filter-card {
    padding: 1rem;
    margin: 0 1rem;
  }
  
  .ip-resources-grid {
    padding: 0 1rem;
  }
  
  .ip-card-header {
    padding: 1rem;
  }
  
  .ip-card-footer {
    padding: 1rem;
  }
  
  .ip-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ip-pagination {
    gap: 0.25rem;
  }
  
  .ip-page-link {
    padding: 0.5rem 0.75rem;
    min-width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
}

/* ========== 动画增强 ========== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-slideInUp {
  animation: slideInUp 0.8s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease forwards;
}

/* ========== 加载状态 ========== */
.ip-loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========== 高对比度支持 ========== */
@media (prefers-contrast: high) {
  .ip-resource-card {
    border-width: 2px;
    border-color: #374151;
  }
  
  .ip-spec-item {
    border: 1px solid #d1d5db;
  }
  
  .ip-filter-select {
    border-width: 2px;
  }
}

/* ========== 减少动画支持 ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

