/* === RESET & BASE === */
:root {
  --bg: #0d1117;
  --card: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent2: #bc8cff;
  --green: #3fb950;
  --orange: #d29922;
  --header-bg: rgba(13,17,23,.85);
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 60px;
  display: flex; align-items: center;
}
.navbar .container {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
}
.logo-text {
  font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-tagline { font-size: .75rem; color: var(--muted); margin-left: 8px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { 
  color: var(--muted); text-decoration: none; font-size: .9rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.lang-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: 4px 12px; border-radius: 12px; cursor: pointer; font-size: .8rem;
  transition: all .2s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

/* === HERO === */
.hero {
  min-height: 85vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #1a2332 0%, #0d1117 60%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%);
}
.hero-content {
  text-align: center; z-index: 1; padding: 120px 20px 60px;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 800;
  background: linear-gradient(135deg, #58a6ff, #bc8cff, #ff7b72);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  letter-spacing: 4px;
}
.hero-tagline {
  font-size: 1.4rem; color: var(--orange); font-weight: 600;
  letter-spacing: 6px; margin-bottom: 16px;
}
.hero-desc { font-size: 1.1rem; color: var(--muted); margin-bottom: 30px; }
.hero-btn {
  display: inline-block; padding: 12px 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border-radius: 30px; text-decoration: none; font-weight: 600;
  font-size: 1rem; transition: transform .2s, box-shadow .2s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(88,166,255,.3); }

/* === SECTIONS === */
.section {
  padding: 80px 0;
}
.section-title {
  font-size: 1.8rem; text-align: center; margin-bottom: 40px;
  color: var(--text);
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin: 12px auto 0; border-radius: 2px;
}
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.section-header .section-title { margin-bottom: 0; }
.product-count { color: var(--muted); font-size: .9rem; }

/* === CATEGORY GRID === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.category-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 16px; text-align: center;
  cursor: pointer; transition: all .2s;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.category-card.active { border-color: var(--accent); background: rgba(88,166,255,.1); }
.category-card .cat-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.category-card .cat-name { font-size: .85rem; color: var(--text); }
.category-card .cat-count { font-size: .75rem; color: var(--muted); margin-top: 4px; }

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; cursor: pointer;
  transition: all .2s;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.product-card .product-image {
  width: 100%; aspect-ratio: 1; border-radius: 8px; margin-bottom: 14px;
  background: #1a1f2e; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .product-image svg { width: 60%; height: 60%; opacity: .4; }
.product-card .product-model {
  font-size: .75rem; color: var(--accent); font-weight: 600;
  margin-bottom: 4px;
}
.product-card h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 8px;
}
.product-card .product-specs {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px;
}
.product-card .product-specs span {
  font-size: .7rem; color: var(--muted);
  background: rgba(88,166,255,.1); border: 1px solid rgba(88,166,255,.2);
  padding: 2px 8px; border-radius: 8px;
}
.product-card .product-tag {
  display: inline-block; font-size: .7rem; padding: 2px 10px;
  border-radius: 10px; font-weight: 500;
}
.product-card .tag-new { background: rgba(63,185,80,.15); color: var(--green); border: 1px solid rgba(63,185,80,.3); }
.product-card .tag-hot { background: rgba(210,153,34,.15); color: var(--orange); border: 1px solid rgba(210,153,34,.3); }
.product-card .tag-oem { background: rgba(188,140,255,.15); color: var(--accent2); border: 1px solid rgba(188,140,255,.3); }

/* === ABOUT === */
.about-content { max-width: 800px; margin: 0 auto; }
.about-text p { color: var(--muted); margin-bottom: 30px; font-size: 1.05rem; line-height: 1.8; }
.about-features { display: flex; flex-direction: column; gap: 20px; }
.about-feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px;
}
.feature-icon { font-size: 2rem; flex-shrink: 0; }
.about-feature h4 { font-size: 1rem; margin-bottom: 4px; }
.about-feature p { font-size: .9rem; margin-bottom: 0; }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; text-align: center;
}
.contact-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.contact-card h4 { font-size: .9rem; margin-bottom: 8px; color: var(--muted); }
.contact-card p { font-size: .85rem; color: var(--text); line-height: 1.5; }
.contact-card a { color: var(--accent); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* === MODAL === */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-content {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; max-width: 700px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative;
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--muted); font-size: 1.8rem;
  cursor: pointer; z-index: 1; transition: color .2s;
}
.modal-close:hover { color: var(--text); }

.modal-product {
  padding: 30px;
}
.modal-product .modal-image {
  width: 100%; aspect-ratio: 1; max-height: 300px;
  background: #1a1f2e; border-radius: 12px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.modal-product .modal-model { color: var(--accent); font-size: .85rem; font-weight: 600; }
.modal-product h2 { font-size: 1.5rem; margin: 8px 0 16px; }
.modal-product .modal-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px;
}
.modal-product .spec-item {
  display: flex; flex-direction: column; padding: 8px 12px;
  background: rgba(88,166,255,.05); border: 1px solid var(--border);
  border-radius: 8px;
}
.modal-product .spec-item .spec-label { font-size: .7rem; color: var(--muted); }
.modal-product .spec-item .spec-value { font-size: .85rem; font-weight: 600; }
.modal-product p { color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.modal-product .feature-list {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.modal-product .feature-list span {
  font-size: .8rem; padding: 4px 12px;
  background: rgba(188,140,255,.1); border: 1px solid rgba(188,140,255,.3);
  border-radius: 12px; color: var(--accent2);
}
.modal-product .modal-catalog-link {
  display: inline-block; padding: 8px 20px;
  background: var(--accent); color: #fff; border-radius: 8px;
  text-decoration: none; font-size: .85rem; transition: background .2s;
}
.modal-product .modal-catalog-link:hover { background: #4090df; }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border); padding: 30px 0;
  text-align: center;
}
footer p { color: var(--muted); font-size: .85rem; }
footer .footer-small { font-size: .75rem; margin-top: 4px; color: #21262d; }

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .modal-product .modal-specs { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .8rem; }
  .hero-content h1 { font-size: 2.2rem; }
}
