/* Modern Minimalist Design System for Yinghui Select */
:root {
  --primary: #1b4332;
  --primary-hover: #2d6a4f;
  --primary-light: #e8f5e9;
  --accent: #52b788;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --bg-main: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-subtle);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header & Navigation */
.site-header {
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar {
  background-color: var(--primary);
  color: #ffffff;
  padding: 6px 16px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 16px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px;
  font-size: 13px;
  font-weight: 600;
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 16px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.lang-btn.active {
  background-color: var(--primary);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

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

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: #f3f4f6;
}

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

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

.btn-block {
  width: 100%;
}

/* Feature Grid */
.features-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.feature-box {
  background-color: var(--bg-main);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

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

.feature-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Section Header */
.section-header {
  margin-bottom: 28px;
  text-align: left;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

/* Products Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  background-color: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.product-image-wrapper {
  position: relative;
  background-color: #f3f4f6;
  padding-top: 85%;
  overflow: hidden;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 2;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
}

.product-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.product-spec {
  font-size: 12px;
  color: var(--text-light);
}

/* Content Pages (About, Contact, Policies) */
.content-wrapper {
  background-color: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.page-meta-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-content {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.8;
}

.article-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px 0;
}

.article-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px 0;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 6px;
}

/* Callout Box */
.notice-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 14px;
  color: #164e33;
}

.notice-box strong {
  color: var(--primary);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.data-table th, .data-table td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: left;
}

.data-table th {
  background-color: var(--bg-subtle);
  font-weight: 600;
  color: var(--text-main);
}

/* Product Detail Page */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background-color: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 36px;
  margin-bottom: 48px;
}

.detail-gallery img {
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  width: 100%;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.detail-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.detail-price-box {
  background-color: var(--bg-subtle);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.detail-spec-list {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-spec-item {
  display: flex;
  font-size: 14px;
}

.detail-spec-label {
  width: 120px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-weight: 600;
}

.detail-spec-value {
  color: var(--text-main);
}

/* Order Request Form */
.order-form-container {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
}

.form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-label .required {
  color: #dc2626;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Honeypot field - visually hidden from real users */
.hp-field {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

/* Form Message Box */
.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}

.form-alert.success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-alert.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer */
.site-footer {
  background-color: #111827;
  color: #e5e7eb;
  padding: 56px 20px 24px 20px;
  font-size: 14px;
  border-top: 4px solid var(--primary);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-company-info {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-company-info strong {
  color: #d1d5db;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #9ca3af;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #9ca3af;
  flex-wrap: wrap;
  gap: 16px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 12px 16px;
  }
  .top-bar {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-main);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.mobile-open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-banner {
    padding: 36px 20px;
  }
  .hero-title {
    font-size: 28px;
  }
  .content-wrapper {
    padding: 24px 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
