/* ProMarker - 红色专业风格 */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #ff7b72;
  --secondary: #1d3557;
  --accent: #457b9d;
  --success: #2a9d8f;
  --warning: #f4a261;
  --error: #e76f51;
  --background: #ffffff;
  --background-secondary: #fef6f6;
  --background-tertiary: #ffe6e6;
  --text-primary: #1d3557;
  --text-secondary: #457b9d;
  --text-muted: #6c757d;
  --border: #ffcdd2;
  --border-light: #fde8e9;
  --shadow-sm: 0 1px 3px 0 rgba(230, 57, 70, 0.1);
  --shadow-md: 0 4px 8px 0 rgba(230, 57, 70, 0.15);
  --shadow-lg: 0 8px 16px 0 rgba(230, 57, 70, 0.2);
  --shadow-xl: 0 16px 32px 0 rgba(230, 57, 70, 0.25);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 20px 0;
  background: var(--background);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

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

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 16px;
}

.logo h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  font-family: 'Segoe UI', sans-serif;
}

.logo .tagline {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: 'Segoe UI', sans-serif;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Segoe UI', sans-serif;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.main-nav a:hover::after {
  width: 100%;
}

/* Main */
.site-main {
  flex: 1;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--background-secondary) 0%, var(--background) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.05) 0%, transparent 70%);
}

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

.hero-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.1;
  font-family: 'Segoe UI', sans-serif;
}

.hero-subtitle {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 400;
  font-family: 'Segoe UI', sans-serif;
}

.hero-tagline {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 40px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  background: var(--primary);
  color: var(--background);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  font-family: 'Segoe UI', sans-serif;
}

.hero-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-btn::after {
  content: '→';
  transition: transform 0.3s ease;
}

.hero-btn:hover::after {
  transform: translateX(4px);
}

/* Products Section */
.products-section {
  padding: 80px 0 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  font-family: 'Segoe UI', sans-serif;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
  font-family: 'Segoe UI', sans-serif;
  max-width: 600px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--background-secondary);
  position: relative;
}

.product-image::after {
  content: ''; 
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(230, 57, 70, 0.05) 100%);
  pointer-events: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  font-family: 'Segoe UI', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-code {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  background: var(--background-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 64px;
  color: var(--border);
  margin-bottom: 20px;
}

.empty-state h2 {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-family: 'Segoe UI', sans-serif;
}

.empty-state p {
  font-size: 16px;
  color: var(--text-muted);
  font-family: 'Segoe UI', sans-serif;
}

/* Footer */
.site-footer {
  padding: 60px 0 40px;
  background: var(--background-secondary);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 32px;
}

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

.footer-brand h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-brand p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: 'Segoe UI', sans-serif;
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: 'Segoe UI', sans-serif;
  display: block;
  margin-bottom: 8px;
}

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

.footer-bottom {
  text-align: center;
}

.footer-info p {
  font-size: 14px;
  color: var(--text-muted);
  font-family: 'Segoe UI', sans-serif;
}

/* Page Section */
.page-section {
  padding: 80px 0 100px;
}

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

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  font-family: 'Segoe UI', sans-serif;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 32px;
  padding: 8px 16px;
  background: var(--background-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  font-family: 'Segoe UI', sans-serif;
}

.back-link:hover {
  background: var(--background-tertiary);
  transform: translateX(-4px);
}

/* About Page */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 48px;
  padding: 32px;
  background: var(--background-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.about-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Segoe UI', sans-serif;
}

.about-section h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.about-section p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-family: 'Segoe UI', sans-serif;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-list li {
  padding: 16px 20px;
  padding-left: 40px;
  position: relative;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  background: var(--background);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-family: 'Segoe UI', sans-serif;
  transition: all 0.3s ease;
}

.feature-list li:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 16px;
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
}

/* Contact Page */
.contact-content {
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  background: var(--background-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--background);
  border-radius: var(--radius-md);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
  font-family: 'Segoe UI', sans-serif;
}

.contact-details p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: 'Segoe UI', sans-serif;
}

.contact-message {
  padding: 32px;
  background: var(--background-secondary);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
}

.contact-message h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 16px;
  font-family: 'Segoe UI', sans-serif;
}

.contact-message p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
  font-family: 'Segoe UI', sans-serif;
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--background-secondary);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.product-info .product-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-family: 'Segoe UI', sans-serif;
}

.product-info .product-code {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding: 6px 12px;
}

.specs-section {
  margin-bottom: 32px;
}

.specs-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 16px;
  font-family: 'Segoe UI', sans-serif;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-item {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: var(--background-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.spec-item:hover {
  border-color: var(--primary-light);
  background: var(--background);
}

.spec-code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  background: var(--background);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.spec-pack,
.spec-unit {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: 'Segoe UI', sans-serif;
}

.contact-section {
  padding: 28px;
  background: var(--background-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.contact-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 16px;
  font-family: 'Segoe UI', sans-serif;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-family: 'Segoe UI', sans-serif;
}

.contact-info i {
  color: var(--primary);
  width: 20px;
  font-size: 16px;
}

/* Product Link */
.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .product-gallery {
    position: static;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .hero-section {
    padding: 80px 0 60px;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .main-nav ul {
    gap: 20px;
  }
  
  .main-nav a {
    font-size: 14px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  
  .footer-nav {
    gap: 32px;
    justify-content: center;
  }
  
  .feature-list {
    grid-template-columns: 1fr;
  }
  
  .about-section {
    padding: 24px;
  }
  
  .page-title {
    font-size: 28px;
  }
  
  .product-info .product-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .logo h1 {
    font-size: 28px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}
