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

:root {
  --primary: #1a3a6b;
  --primary-light: #2a5a9b;
  --primary-dark: #0f2240;
  --accent: #e8a838;
  --accent-light: #f0c060;
  --text: #333;
  --text-light: #666;
  --bg: #f8f9fa;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 58, 107, 0.95);
  backdrop-filter: blur(20px);
  padding: 0 2rem;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar.scrolled {
  background: rgba(15, 34, 64, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar .logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}

.nav-search {
  margin-left: 0.5rem;
}
.nav-search input {
  width: 100px;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition);
}
.nav-search input:focus {
  width: 160px;
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
}
.nav-search input::placeholder { color: rgba(255,255,255,0.5); }

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(232, 168, 56, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(42, 90, 155, 0.1) 0%, transparent 50%);
  animation: heroBg 20s ease-in-out infinite;
}

@keyframes heroBg {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  animation: fadeInUp 0.8s ease;
}

.hero-content .subtitle {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content .desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 168, 56, 0.35);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(232, 168, 56, 0.3);
  border-radius: 50%;
  animation: float 8s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* Section Common */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg);
  padding: 1.8rem;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

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

.stat-card .number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-card .label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* Products Section */
.products-section {
  background: var(--bg);
}

.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.subcategory-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.subcategory-tab {
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
  color: var(--text-light);
}
.subcategory-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.subcategory-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.category-tab {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 1px solid #ddd;
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text-light);
}

.category-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  font-size: 0.82rem;
}

.product-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.product-table th {
  background: var(--primary);
  color: var(--white);
  padding: 0.7rem 0.6rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.8rem;
}

.product-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text);
  vertical-align: middle;
}

.product-table tbody tr:hover {
  background: #f8faff;
}

.product-table tbody tr.selected {
  background: #f0f7ff;
}

.product-table tbody tr.selected td {
  border-bottom-color: #d0e4ff;
}

.col-select { width: 50px; text-align: center; }
.col-select input { width: 16px; height: 16px; cursor: pointer; }
.col-model { min-width: 100px; font-weight: 600; }
.col-title { min-width: 130px; }
.col-status { width: 70px; text-align: center; }

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

.model-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.product-table th:nth-child(n+4),
.product-table td:nth-child(n+4) {
  min-width: 90px;
  max-width: 160px;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.tag-production {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag-coming {
  background: #fff3e0;
  color: #e65100;
}

.tag-sample {
  background: #e3f2fd;
  color: #1565c0;
}

/* Product Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.3s ease;
}

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

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h2 {
  font-size: 1.4rem;
  color: var(--primary);
}

.modal-header .model-name {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
}

.param-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.param-table tr:last-child {
  border-bottom: none;
}

.param-table td {
  padding: 0.7rem 0.8rem;
  font-size: 0.9rem;
}

.param-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 35%;
}

.param-table td:last-child {
  color: var(--text-light);
}

/* Contact Section */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-item .info h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.contact-item .info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.contact-qr {
  display: flex;
  gap: 4rem;
  justify-content: center;
  align-items: center;
}

.qr-box {
  text-align: center;
}

.qr-placeholder {
  width: 140px;
  height: 140px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  border: 2px dashed #ddd;
  font-size: 0.8rem;
  color: var(--text-light);
}

.qr-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.qr-box p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Contact Map */
.contact-map {
  margin-top: 2rem;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1;
  position: relative;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 1rem; }

  .nav-search { display: none; }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-content .subtitle { font-size: 1.1rem; }
  .hero-content .desc { font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section { padding: 3rem 1.2rem; }
  .section-header h2 { font-size: 1.7rem; }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .modal { margin: 1rem; }
}

/* Product Compare / Selection */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 1rem 2rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  transform: translateY(100%);
  transition: var(--transition);
}

.compare-bar.active {
  display: flex;
  transform: translateY(0);
}

.compare-bar .compare-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.compare-bar .compare-count {
  font-size: 0.9rem;
  color: var(--text-light);
}

.compare-bar .selected-chips {
  display: flex;
  gap: 0.5rem;
}

.selected-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.3rem 0.6rem;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.8rem;
}

.selected-chip .remove-chip {
  cursor: pointer;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1;
  transition: var(--transition);
}

.selected-chip .remove-chip:hover {
  color: #e53935;
}

/* Selection checkbox */
.select-chk {
  accent-color: var(--primary);
}

/* Compare Bar Buttons */
.compare-bar .btn-primary {
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
}

/* Compare Table */
.compare-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compare-table th,
.compare-table td {
  padding: 0.8rem 1rem;
  text-align: center;
  border: 1px solid #eee;
  font-size: 0.85rem;
}

.compare-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.compare-table td:first-child {
  background: var(--bg);
  font-weight: 600;
  text-align: left;
}

/* Search */
.search-box {
  position: relative;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.search-box input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  box-sizing: border-box;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.1);
}

.search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}


