/* Modern UI Enhancement Styles */
/* 现代化UI增强样式 */

:root {
  /* Modern Color Palette - 现代色彩系统 */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;

  /* Secondary Colors */
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;

  /* Success Colors */
  --success-50: #f0fdf4;
  --success-200: #bbf7d0;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --success-700: #15803d;
  --success-800: #166534;

  /* Warning Colors */
  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;

  /* Error Colors */
  --error-50: #fef2f2;
  --error-200: #fecaca;
  --error-300: #fca5a5;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --error-700: #b91c1c;

  /* Neutral Colors */
  --neutral-25: #fcfcfc;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Extended Primary Colors */
  --primary-25: #f0f9ff;

  /* Modern Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Modern Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Modern Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Modern Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Modern Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* Global Modern Enhancements */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Navigation Bar */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  padding: var(--spacing-sm) 0;
}

.modern-navbar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95)) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand-icon {
  font-size: 1.2em;
  margin-right: var(--spacing-xs);
  color: var(--primary-500);
}

.search-container {
  position: relative;
  max-width: 500px;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

/* 确保form-inline下的搜索容器正确显示 */
.form-inline .search-container {
  flex: 1;
  display: flex;
}

.search-input {
  padding-right: 100px;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  height: 48px;
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px var(--primary-100);
}

.search-button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 var(--spacing-md);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border: none;
  color: white;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.search-button:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

/* Inline Search Button Styles */
.search-input-inline {
  flex: 1 !important;
  padding: 12px 55px 12px 20px !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 25px !important;
  height: 50px !important;
  font-size: 15px !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  width: 100% !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.search-input-inline:focus {
  border-color: #502c6c !important;
  box-shadow: 0 0 0 4px rgba(80, 44, 108, 0.1) !important;
  outline: none !important;
}

.search-button-inline {
  position: absolute !important;
  right: 4px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: 42px !important;
  width: 42px !important;
  padding: 0 !important;
  border-radius: 21px !important;
  background: linear-gradient(135deg, #502c6c, #7832e2) !important;
  border: none !important;
  color: white !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
}

.search-button-inline:hover {
  background: linear-gradient(135deg, #7832e2, #502c6c) !important;
  transform: translateY(-50%) scale(1.05) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.search-button-inline:active {
  transform: translateY(-50%) scale(0.95) !important;
}

.search-text {
  margin-left: var(--spacing-xs);
}

@media (max-width: 768px) {
  .search-text {
    display: none;
  }
  
  .search-button {
    width: 40px;
    padding: 0;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  }
  
  .search-input {
    padding-right: 40px;
  }
  
  .search-container {
    width: 100%;
    max-width: none;
  }
  
  /* 在小屏幕上禁用form-inline行为 */
  .modern-search-form.form-inline {
    display: block;
  }
  
  .search-input-inline {
    height: 44px;
    padding: 10px 50px 10px 16px;
    font-size: 14px;
    border-radius: 22px;
  }
  
  .search-button-inline {
    height: 32px;
    width: 32px;
    right: 6px;
    font-size: 14px;
    border-radius: 16px;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .modern-search-form {
    width: 100% !important;
  }
  
  .modern-search-form.form-inline {
    display: block;
  }
  
  .search-container {
    max-width: none;
  }
  
  .search-input-inline {
    height: 40px;
    padding: 8px 45px 8px 14px;
    font-size: 14px;
  }
  
  .search-button-inline {
    height: 28px;
    width: 28px;
    right: 6px;
    font-size: 12px;
  }
}

.navbar-brand {
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--primary-600) !important;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--primary-700) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--neutral-600) !important;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-600) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-600);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Modern Search Form */
.form-control {
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  background-color: var(--neutral-50);
}

.form-control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
  background-color: white;
}

.btn {
  border-radius: var(--radius-lg);
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-lg);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-200);
  color: var(--secondary-800);
}

/* Modern Cards */
.card {
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  background-color: white;
  overflow: hidden;
}

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

.card-body {
  padding: var(--spacing-lg);
}

/* Modern Product Cards */
.col-md-3.border.card {
  border: 1px solid var(--neutral-200) !important;
  border-radius: var(--radius-xl);
  padding: var(--spacing-md);
  transition: all var(--transition-normal);
  background-color: white;
  box-shadow: var(--shadow-sm);
}

.col-md-3.border.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-200) !important;
}

.col-md-3.border.card .container-link {
  text-decoration: none;
  color: inherit;
}

/* Modern Blog Cards */
.blog-card-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.blog-card-img-wrapper img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-img-wrapper:hover img {
  transform: scale(1.05);
}

.blog-image-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: var(--spacing-lg);
  font-weight: 600;
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

/* Modern Jumbotron */
.jumbotron {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: white;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.jumbotron::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.jumbotron .container-fluid {
  position: relative;
  z-index: 1;
}

.jumbotron h1 {
  font-weight: 700;
  font-size: var(--font-size-4xl);
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

/* Modern Hero Section */
.modern-hero {
  position: relative;
  overflow: hidden;
}

.modern-jumbotron {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800), var(--primary-900));
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-content {
  padding: var(--spacing-2xl) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  color: white;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.hero-actions {
  margin-bottom: var(--spacing-xl);
}

.hero-actions .btn {
  margin-right: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--spacing-xs);
}

.hero-image {
  position: relative;
}

.hero-image-container {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
}

.hero-image-overlay {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
}

.floating-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--primary-600);
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Modern Sections */
.modern-section {
  margin-bottom: var(--spacing-2xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--neutral-600);
  max-width: 650px;
  margin: 0 auto;
}

/* Modern Product Cards */
.modern-product-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-normal);
  overflow: hidden;
  height: 100%;
}

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

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.product-image-container {
  position: relative;
  padding: var(--spacing-lg);
  background: var(--neutral-50);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  color: white;
  font-size: var(--font-size-xl);
}

.modern-product-card:hover .product-overlay {
  opacity: 1;
}

.modern-product-card:hover .product-image {
  transform: scale(1.1);
}

.product-info {
  padding: var(--spacing-lg);
}

.product-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.product-brand {
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-md);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

/* Modern Blog Cards */
.modern-blog-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-normal);
  overflow: hidden;
  height: 100%;
}

.modern-blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.blog-image-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-overlay {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
}

.blog-date {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.modern-blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-content {
  padding: var(--spacing-lg);
}

.blog-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.blog-summary {
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-read-more {
  color: var(--primary-600);
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.blog-read-more:hover {
  color: var(--primary-700);
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
  .modern-jumbotron {
    min-height: 60vh;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .hero-stats {
    justify-content: center;
    gap: var(--spacing-lg);
  }
  
  .floating-card {
    position: static;
    margin-top: var(--spacing-md);
    align-self: flex-start;
  }
}

/* Modern Tables */
.table {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead th {
  background-color: var(--neutral-100);
  border: none;
  font-weight: 600;
  color: var(--neutral-700);
  padding: var(--spacing-md);
}

.table tbody td {
  border: none;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--neutral-100);
}

.table tbody tr:hover {
  background-color: var(--neutral-50);
}

/* Modern Forms */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  font-weight: 500;
  color: var(--neutral-700);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-sm);
}

.form-control {
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
  outline: none;
}

/* Modern Footer */
footer.bg-dark {
  background: linear-gradient(135deg, var(--neutral-800), var(--neutral-900)) !important;
  border-top: 1px solid var(--neutral-700);
}

footer .text-white {
  color: var(--neutral-100) !important;
}

footer a {
  color: var(--neutral-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--primary-400);
}

/* Modern Vertical Bar */
.vertical-bar {
  position: fixed;
  right: calc(0.5vw + 5px);
  bottom: 10%;
  width: 50px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  border: 1px solid var(--neutral-200);
  backdrop-filter: blur(10px);
}

.vertical-bar .row {
  flex: 1;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--neutral-100);
  padding: var(--spacing-xs);
  transition: background-color var(--transition-fast);
}

.vertical-bar .row:last-child {
  border-bottom: none;
}

.vertical-bar .row:hover {
  background-color: var(--primary-50);
}

.vertical-bar a {
  color: var(--primary-600);
  text-decoration: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modern Modal */
.modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--neutral-200);
  padding: var(--spacing-lg);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-footer {
  border-top: 1px solid var(--neutral-200);
  padding: var(--spacing-lg);
}

/* Modern Breadcrumbs */
.breadcrumb {
  background-color: transparent;
  padding: var(--spacing-sm) 0;
  margin-bottom: var(--spacing-lg);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: var(--neutral-400);
}

.breadcrumb-item a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.breadcrumb-item.active {
  color: var(--neutral-600);
}

/* Modern Tabs */
.nav-tabs {
  border-bottom: 1px solid var(--neutral-200);
}

.nav-tabs .nav-link {
  border: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: var(--neutral-600);
  padding: var(--spacing-sm) var(--spacing-lg);
  transition: all var(--transition-fast);
}

.nav-tabs .nav-link:hover {
  border-color: transparent;
  color: var(--primary-600);
  background-color: var(--primary-50);
}

.nav-tabs .nav-link.active {
  color: var(--primary-600);
  background-color: white;
  border-bottom: 2px solid var(--primary-600);
}

/* Modern Badges */
.badge {
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
}

.bg-secondary {
  background-color: var(--secondary-100) !important;
  color: var(--secondary-700) !important;
}

/* Modern Alerts */
.alert {
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  font-weight: 500;
}

.alert-primary {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border-left: 4px solid var(--primary-500);
}

/* Modern Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-stats {
    gap: var(--spacing-lg);
  }
}

@media (max-width: 992px) {
  .modern-jumbotron {
    min-height: 60vh;
    text-align: center;
  }
  
  .hero-content {
    padding: var(--spacing-xl) 0;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    gap: var(--spacing-lg);
  }
  
  .floating-card {
    position: static;
    margin-top: var(--spacing-md);
    align-self: center;
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .modern-rfq-container {
    position: static;
    margin-top: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .jumbotron h1 {
    font-size: var(--font-size-3xl);
  }
  
  .card-body {
    padding: var(--spacing-md);
  }
  
  
  .navbar-brand {
    font-size: var(--font-size-lg);
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: var(--spacing-sm);
    margin-right: 0;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-align: left;
  }
  
  .stat-number {
    font-size: var(--font-size-xl);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
  
  .modern-product-card,
  .modern-blog-card {
    margin-bottom: var(--spacing-lg);
  }
  
  .product-specs {
    gap: var(--spacing-sm);
  }
  
  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
  
  .spec-value {
    max-width: 100%;
    text-align: left;
  }
  
  .modern-rfq-container {
    padding: var(--spacing-lg);
  }
  
  .rfq-icon {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }
  
  .rfq-title {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 576px) {
  .jumbotron h1 {
    font-size: var(--font-size-2xl);
  }
  
  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }
  
  .hero-title {
    font-size: var(--font-size-xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-sm);
  }
  
  .hero-badge {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-md);
  }
  
  .section-title {
    font-size: var(--font-size-lg);
  }
  
  .section-subtitle {
    font-size: var(--font-size-sm);
  }
  
  .modern-product-card,
  .modern-blog-card {
    margin-bottom: var(--spacing-md);
  }
  
  .product-image-container,
  .blog-image-wrapper {
    aspect-ratio: 1;
  }
  
  .product-info,
  .blog-content {
    padding: var(--spacing-md);
  }
  
  .product-title,
  .blog-title {
    font-size: var(--font-size-base);
  }
  
  .modern-product-info {
    padding: var(--spacing-md);
  }
  
  .modern-rfq-container {
    padding: var(--spacing-md);
  }
  
  .rfq-icon {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-base);
  }
  
  .rfq-title {
    font-size: var(--font-size-base);
  }
  
  .form-group {
    margin-bottom: var(--spacing-md);
  }
  
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
  
  .hero-title {
    font-size: var(--font-size-lg);
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-xs);
  }
  
  .hero-actions .btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
  }
  
  .section-title {
    font-size: var(--font-size-base);
  }
  
  .modern-product-card,
  .modern-blog-card {
    border-radius: var(--radius-lg);
  }
  
  .product-info,
  .blog-content {
    padding: var(--spacing-sm);
  }
  
  .modern-product-info {
    padding: var(--spacing-sm);
  }
  
  .modern-rfq-container {
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
  }
  
  .search-container {
    max-width: 100%;
  }
  
  .search-input {
    height: 40px;
    font-size: var(--font-size-xs);
  }
  
  .search-button {
    height: 100%;
    padding: 0 var(--spacing-sm);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .vertical-bar,
  .modern-rfq-container,
  .hero-actions,
  .floating-card {
    display: none !important;
  }
  
  .modern-product-card,
  .modern-blog-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--neutral-300);
  }
  
  .hero-title,
  .section-title {
    color: var(--neutral-800) !important;
  }
  
  .modern-product-info {
    box-shadow: none;
    border: 1px solid var(--neutral-300);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-500: #0000ff;
    --primary-600: #0000cc;
    --primary-700: #000099;
    --neutral-600: #333333;
    --neutral-700: #222222;
    --neutral-800: #111111;
  }
  
  .btn-primary {
    background: var(--primary-500);
    border: 2px solid var(--primary-700);
  }
  
  .modern-product-card,
  .modern-blog-card {
    border: 2px solid var(--neutral-300);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-card {
    animation: none;
  }
  
  .modern-product-card:hover,
  .modern-blog-card:hover {
    transform: none;
  }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Dark mode variables can be added here if needed */
}

/* Modern Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-500);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Modern Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-400);
}

/* Modern Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern RFQ Styles */
.modern-rfq-hero {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-bottom: 1px solid var(--primary-200);
  margin-bottom: var(--spacing-lg);
}

.rfq-hero-content {
  padding: var(--spacing-md) 0;
}

.rfq-hero-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-xl);
  box-shadow: var(--shadow-md);
}

.rfq-hero-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: var(--spacing-xs);
}

.rfq-hero-subtitle {
  color: var(--neutral-600);
  font-size: var(--font-size-lg);
}

.rfq-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.rfq-stats .stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--primary-200);
}

.rfq-stats .stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary-600);
  line-height: 1;
}

.rfq-stats .stat-label {
  font-size: var(--font-size-sm);
  color: var(--neutral-600);
  margin-top: var(--spacing-xs);
}

/* Modern BOM Table Styles */
.modern-bom-section {
  margin-bottom: var(--spacing-2xl);
}

.modern-table-container {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
}

.modern-table-wrapper {
  border-radius: var(--radius-xl);
}

.modern-bom-table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.modern-table-header th {
  background: linear-gradient(135deg, var(--neutral-50), var(--neutral-100));
  color: var(--neutral-700);
  font-weight: 600;
  font-size: var(--font-size-sm);
  padding: var(--spacing-lg);
  border: none;
  border-bottom: 2px solid var(--primary-200);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modern-table-header th:first-child {
  border-top-left-radius: var(--radius-xl);
}

.modern-table-header th:last-child {
  border-top-right-radius: var(--radius-xl);
}

.modern-bom-table .bom-row {
  transition: all var(--transition-fast);
}

.modern-bom-table .bom-row:hover {
  background-color: var(--primary-25);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modern-bom-table td {
  padding: var(--spacing-md);
  border: none;
  border-bottom: 1px solid var(--neutral-100);
  vertical-align: middle;
}

.modern-bom-table .row-number {
  width: 60px;
  text-align: center;
  font-weight: 600;
  color: var(--neutral-600);
  background-color: var(--neutral-50);
}

.modern-input {
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  background-color: white;
}

.modern-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
  outline: none;
  background-color: var(--primary-25);
}

.modern-input::placeholder {
  color: var(--neutral-400);
  font-style: italic;
}

.modern-delete-btn {
  border-radius: var(--radius-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  transition: all var(--transition-fast);
  border: 1px solid var(--error-300);
}

.modern-delete-btn:hover {
  background-color: var(--error-500);
  border-color: var(--error-600);
  color: white;
  transform: scale(1.05);
}

.modern-add-btn {
  background: linear-gradient(135deg, var(--success-500), var(--success-600));
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.modern-add-btn:hover {
  background: linear-gradient(135deg, var(--success-600), var(--success-700));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.table-footer {
  background: linear-gradient(135deg, var(--neutral-50), var(--neutral-100));
  padding: var(--spacing-lg) !important;
}

/* Modern Upload Card Styles */
.modern-upload-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.modern-upload-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.upload-header {
  background: linear-gradient(135deg, var(--secondary-50), var(--secondary-100));
  padding: var(--spacing-sm);
  text-align: center;
  border-bottom: 1px solid var(--primary-200);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upload-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  color: white;
  font-size: var(--font-size-xl);
  box-shadow: var(--shadow-md);
  flex-shrink: 0; /* 防止收缩 */
}

.upload-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: var(--spacing-sm);
  height: 1.5em; /* 固定标题高度 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-subtitle {
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  height: 3em; /* 固定高度确保一致性 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-area {
  padding: var(--spacing-xl);
}

.upload-dropzone {
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--neutral-25);
}

.upload-dropzone:hover {
  border-color: var(--primary-400);
  background: var(--primary-25);
}

.upload-dropzone.dragover {
  border-color: var(--primary-500);
  background: var(--primary-50);
  transform: scale(1.02);
}

.upload-dropzone-icon {
  font-size: var(--font-size-3xl);
  color: var(--neutral-400);
  margin-bottom: var(--spacing-md);
}

.upload-text {
  color: var(--neutral-600);
  font-size: var(--font-size-base);
  margin-bottom: 0;
}

.upload-input {
  display: none;
}

.file-info-section {
  margin-top: var(--spacing-md);
}

.selected-file {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--success-50);
  border: 1px solid var(--success-200);
  border-radius: var(--radius-lg);
  gap: var(--spacing-sm);
}

.file-icon {
  color: var(--success-600);
  font-size: var(--font-size-lg);
}

.file-name {
  flex: 1;
  color: var(--success-800);
  font-weight: 500;
  word-break: break-all;
}

.remove-file-btn {
  border-radius: var(--radius-sm);
  padding: var(--spacing-xs);
}

.upload-error {
  color: var(--error-600);
  background: var(--error-50);
  border: 1px solid var(--error-200);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-top: var(--spacing-md);
  font-size: var(--font-size-sm);
  display: none;
}

.upload-requirements {
  margin-top: var(--spacing-lg);
  text-align: center;
}

/* Modern Contact Card Styles */
.modern-contact-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.modern-contact-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.contact-header {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  padding: var(--spacing-sm);
  text-align: center;
  border-bottom: 1px solid var(--secondary-200);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-500), var(--secondary-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  color: white;
  font-size: var(--font-size-xl);
  box-shadow: var(--shadow-md);
  flex-shrink: 0; /* 防止收缩 */
}

.contact-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: var(--spacing-sm);
  height: 1.5em; /* 固定标题高度 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-subtitle {
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  height: 3em; /* 固定高度确保一致性 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  padding: var(--spacing-xl);
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
}

.contact-form .form-label i {
  color: var(--primary-500);
}

/* Submit Section Styles */
.submit-section {
  text-align: center;
  padding: var(--spacing-sm) 0;
  background: linear-gradient(135deg, var(--neutral-50), white);
  border-radius: var(--radius-xl);
  margin-top: var(--spacing-xl);
}

.modern-submit-btn {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--spacing-md) var(--spacing-md);
  font-size: var(--font-size-lg);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  min-width: 200px;
}

.modern-submit-btn:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.modern-submit-btn:active {
  transform: translateY(-1px);
}

.submit-note {
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-md);
}

/* Responsive Design for RFQ */
@media (max-width: 1200px) {
  .rfq-hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .rfq-stats {
    gap: var(--spacing-lg);
  }
}

@media (max-width: 992px) {
  .rfq-hero-content {
    text-align: center;
  }
  
  .rfq-stats {
    margin-top: var(--spacing-xl);
    gap: var(--spacing-md);
  }
  
  .modern-table-header th {
    padding: var(--spacing-md);
    font-size: var(--font-size-xs);
  }
  
  .modern-bom-table td {
    padding: var(--spacing-sm);
  }
  
  .upload-header,
  .contact-header {
    padding: var(--spacing-lg);
    min-height: 160px;
  }
  
  .upload-area,
  .contact-form {
    padding: var(--spacing-lg);
  }
}

/* Mobile Card Layout for BOM Table */
.mobile-bom-cards {
  display: none;
}

.mobile-bom-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.mobile-bom-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.mobile-card-header {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--primary-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-card-number {
  font-weight: 700;
  color: var(--primary-600);
  font-size: var(--font-size-base);
}

.mobile-card-delete {
  background: none;
  border: none;
  color: var(--error-500);
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-card-delete:hover {
  background: var(--error-50);
  color: var(--error-600);
}

.mobile-card-body {
  padding: var(--spacing-md);
}

.mobile-field-group {
  margin-bottom: var(--spacing-md);
}

.mobile-field-group:last-child {
  margin-bottom: 0;
}

.mobile-field-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--neutral-700);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
}

.mobile-field-label i {
  color: var(--primary-500);
  margin-right: var(--spacing-xs);
  width: 16px;
}

.mobile-field-label .required {
  color: var(--error-500);
  margin-left: var(--spacing-xs);
}

.mobile-field-input {
  width: 100%;
}

.mobile-add-row {
  background: linear-gradient(135deg, var(--success-500), var(--success-600));
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  color: white;
  font-weight: 600;
  width: 100%;
  margin-top: var(--spacing-md);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.mobile-add-row:hover {
  background: linear-gradient(135deg, var(--success-600), var(--success-700));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .rfq-hero-icon {
    width: 45px;
    height: 45px;
    font-size: var(--font-size-base);
  }
  
  .rfq-hero-title {
    font-size: var(--font-size-xl);
  }
  
  .rfq-stats {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .rfq-stats .stat-item {
    padding: var(--spacing-sm);
  }
  
  /* Hide table layout on mobile */
  .modern-table-container {
    display: none;
  }
  
  /* Show mobile card layout */
  .mobile-bom-cards {
    display: block;
  }
  
  .upload-icon,
  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }
  
  .upload-title,
  .contact-title {
    font-size: var(--font-size-lg);
  }
  
  .upload-dropzone {
    padding: var(--spacing-lg);
  }
  
  .upload-dropzone-icon {
    font-size: var(--font-size-2xl);
  }
  
  .modern-submit-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-sm);
    font-size: var(--font-size-base);
  }
}

@media (max-width: 576px) {
  .rfq-hero-content .d-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .rfq-hero-content .ml-3 {
    margin-left: 0 !important;
    margin-top: var(--spacing-md);
  }
  
  /* Mobile card optimizations for small screens */
  .mobile-bom-card {
    margin-bottom: var(--spacing-sm);
  }
  
  .mobile-card-header {
    padding: var(--spacing-sm);
  }
  
  .mobile-card-body {
    padding: var(--spacing-sm);
  }
  
  .mobile-field-group {
    margin-bottom: var(--spacing-sm);
  }
  
  .mobile-field-label {
    font-size: var(--font-size-xs);
    margin-bottom: var(--spacing-xs);
  }
  
  .mobile-field-input {
    font-size: var(--font-size-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .mobile-add-row {
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
  }
  
  .upload-header,
  .contact-header {
    padding: var(--spacing-md);
    min-height: 140px;
  }
  
  .upload-area,
  .contact-form {
    padding: var(--spacing-md);
  }
  
  .contact-form .row {
    --bs-gutter-x: 0.5rem;
  }
  
  /* Improve touch targets on mobile */
  .mobile-card-delete {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-add-row {
    min-height: 44px;
  }
}

/* Modern Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-modern {
  box-shadow: var(--shadow-lg);
}

.border-modern {
  border: 1px solid var(--neutral-200);
}

.rounded-modern {
  border-radius: var(--radius-lg);
}

/* Modern Toast Notifications */
.toast {
  background-color: white;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.toast-warning {
  border-left: 4px solid var(--warning-500);
}

.toast-icon {
  color: var(--warning-500);
}

/* Modern Product Detail Enhancements */
.modern-product-image-container {
  text-align: center;
}

.product-image-wrapper {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  margin-bottom: var(--spacing-md);
  transition: all var(--transition-normal);
}

.product-image-wrapper:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.modern-product-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-image-wrapper:hover .modern-product-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.product-image-wrapper:hover .image-overlay {
  opacity: 1;
}

.image-disclaimer {
  font-size: var(--font-size-xs);
  color: var(--neutral-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

/* Modern Product Info */
.modern-product-info {
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--neutral-200);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 500;
  color: black;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.spec-value {
  font-weight: 400;
  color: var(--neutral-800);
  text-align: right;
  max-width: 90%;
  word-break: break-word;
}

.datasheet-link {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--primary-50);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.datasheet-link:hover {
  color: var(--primary-700);
  background: var(--primary-100);
  text-decoration: none;
}

.stock-badge {
  color: var(--success-600);
  background: var(--success-50);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.price-info {
  color: var(--warning-600);
  background: var(--warning-50);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
}

/* Modern RFQ Container */
.modern-rfq-container {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  border: 1px solid var(--primary-200);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: var(--spacing-xl);
}

.rfq-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.rfq-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  color: white;
  font-size: var(--font-size-xl);
  box-shadow: var(--shadow-md);
}

.rfq-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: var(--spacing-sm);
}

.rfq-subtitle {
  color: var(--neutral-900);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-md);
}

.rfq-contact {
  margin-bottom: var(--spacing-md);
}

.contact-text {
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
  margin-right: var(--spacing-xs);
}

.contact-email {
  color: var(--primary-600);
  font-weight: 500;
  text-decoration: none;
}

.contact-email:hover {
  color: var(--primary-700);
  text-decoration: none;
}

.more-products-link {
  color: var(--primary-600);
  font-size: var(--font-size-sm);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.more-products-link:hover {
  color: var(--primary-700);
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

/* Modern FAQ Section */
.modern-faq {
  margin-top: var(--spacing-xl);
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  background: var(--secondary-100);
  color: var(--secondary-700);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--spacing-md);
}

.faq-divider {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.faq-divider-line {
  height: 2px;
  background: var(--secondary-500);
  flex: 1;
}

.faq-divider-line:last-child {
  height: 1px;
  background: var(--neutral-200);
}

.faq-item {
  margin-bottom: var(--spacing-lg);
}

.faq-question {
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-base);
}

.faq-answer {
  color: var(--neutral-600);
  line-height: 1.6;
  margin-left: var(--spacing-md);
}

/* Responsive Design for Product Detail */
@media (max-width: 768px) {
  .modern-product-info {
    padding: var(--spacing-lg);
  }
  
  .modern-rfq-container {
    padding: var(--spacing-lg);
    position: static;
    margin-top: var(--spacing-xl);
  }
  
  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
  
  .spec-value {
    max-width: 100%;
    text-align: left;
  }
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--neutral-800);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  color: var(--neutral-600);
  line-height: 1.7;
}

/* Modern Link Styles */
a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-700);
  text-decoration: none;
}

/* Modern List Styles */
ul.list-unstyled li {
  margin-bottom: var(--spacing-sm);
}

/* Modern Section Spacing */
section {
  margin-bottom: var(--spacing-2xl);
}

/* Modern Container Enhancements */
.container {
  max-width: 1200px;
}

/* Modern Grid Enhancements */
.row {
  margin-left: -var(--spacing-sm);
  margin-right: -var(--spacing-sm);
}

.col,
[class*="col-"] {
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
}
