/*
 * 跨境线路页面专用高端主题样式
 * 为跨境线路页面提供统一的现代化设计
 */

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

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

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

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

.line-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.line-stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

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

.line-stat-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.line-stat-icon {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  display: block;
}

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

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

/* ========== 筛选区域 ========== */
.line-filter-section {
  background: var(--neutral-50);
  padding: 2rem 0;
  position: relative;
  z-index: 10;
  margin-top: -80px;
}

.line-filter-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border: 1px solid var(--neutral-200);
}

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

.line-filter-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.line-filter-title i {
  color: var(--primary-600);
}

.line-filter-description {
  color: var(--neutral-600);
  font-size: 1rem;
}

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

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

.line-filter-label {
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.line-filter-label i {
  color: var(--primary-600);
}

.line-filter-select {
  background: white;
  border: 2px solid var(--neutral-200);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.line-filter-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.line-filter-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.line-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.line-reset-btn {
  background: transparent;
  color: var(--neutral-600);
  border: 2px solid var(--neutral-300);
  border-radius: 12px;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.line-reset-btn:hover {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

/* ========== 线路资源区域 ========== */
.line-resources-section {
  background: var(--neutral-50);
  padding: 4rem 0;
  position: relative;
}

.line-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.line-section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--neutral-800);
  margin-bottom: 1rem;
}

.line-section-description {
  color: var(--neutral-600);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.line-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

/* ========== 线路卡片 ========== */
.line-resource-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--neutral-200);
  transition: all 0.3s ease;
  position: relative;
}

.line-resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

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

.line-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--neutral-200);
  position: relative;
}

.line-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(45deg, #ff6b6b, #ffa500);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.line-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.line-card-subtitle {
  color: var(--neutral-600);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.line-card-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.line-spec-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--neutral-50);
  border-radius: 10px;
  border: 1px solid var(--neutral-200);
}

.line-spec-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

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

.line-spec-label {
  font-size: 0.75rem;
  color: var(--neutral-500);
  margin-bottom: 0.25rem;
}

.line-spec-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-card-footer {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--neutral-50);
}

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

.line-price-label {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-bottom: 0.25rem;
}

.line-price-display {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.line-price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-600);
}

.line-price-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-700);
  line-height: 1;
}

.line-price-unit {
  font-size: 0.9rem;
  color: var(--neutral-500);
  font-weight: 500;
}

.line-price-yearly {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-top: 0.25rem;
}

.line-price-negotiable {
  background: var(--neutral-200);
  color: var(--neutral-700);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.line-action-section {
  display: flex;
  gap: 0.75rem;
}

.line-detail-btn {
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.line-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  color: white;
}

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

.line-empty-icon {
  font-size: 4rem;
  color: var(--neutral-400);
  margin-bottom: 2rem;
}

.line-empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-700);
  margin-bottom: 1rem;
}

.line-empty-description {
  color: var(--neutral-600);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.line-empty-link {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 600;
}

.line-empty-link:hover {
  color: var(--primary-700);
}

.line-contact-btn {
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.line-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: white;
}

/* ========== 分页导航 ========== */
.line-pagination-wrapper {
  text-align: center;
  margin-top: 3rem;
}

.line-pagination-info {
  margin-bottom: 1rem;
}

.line-pagination-info span {
  color: var(--neutral-600);
  font-size: 0.9rem;
}

.line-pagination-nav {
  display: inline-block;
}

.line-pagination {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.line-page-item {
  display: block;
}

.line-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0.5rem;
  background: white;
  color: var(--neutral-700);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--neutral-300);
  font-weight: 600;
  transition: all 0.3s ease;
}

.line-page-link:hover {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.line-page-link.active {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
}

.line-page-link.disabled {
  background: var(--neutral-100);
  color: var(--neutral-400);
  cursor: not-allowed;
}

.line-page-link.disabled:hover {
  transform: none;
  box-shadow: none;
  background: var(--neutral-100);
  color: var(--neutral-400);
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .line-hero-title {
    font-size: 2rem;
  }
  
  .line-stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .line-stat-card {
    padding: 1.5rem 1rem;
  }
  
  .line-filter-form {
    grid-template-columns: 1fr;
  }
  
  .line-resources-grid {
    grid-template-columns: 1fr;
  }
  
  .line-card-specs {
    grid-template-columns: 1fr;
  }
  
  .line-card-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .line-action-section {
    width: 100%;
  }
  
  .line-detail-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .line-stats-container {
    grid-template-columns: 1fr;
  }
  
  .line-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

.line-resource-card {
  animation: slideInUp 0.6s ease-out;
}

.line-resource-card:nth-child(2) {
  animation-delay: 0.1s;
}

.line-resource-card:nth-child(3) {
  animation-delay: 0.2s;
}

.line-resource-card:nth-child(4) {
  animation-delay: 0.3s;
}

