/* ============================================
   启辰科技 · 科幻主题
   QICHEN TECH · Sci-Fi Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ── CSS Variables ── */
:root {
  --primary: #00f0ff;
  --primary-dim: #00a8b3;
  --secondary: #a855f7;
  --accent: #ff006e;
  --bg-dark: #030712;
  --bg-card: rgba(10, 15, 30, 0.85);
  --bg-card-hover: rgba(15, 25, 50, 0.95);
  --border-glow: rgba(0, 240, 255, 0.3);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-dim: #475569;
  --gradient-hero: linear-gradient(135deg, #030712 0%, #0a0f1e 40%, #1a0533 100%);
  --font-display: 'Orbitron', 'Noto Sans SC', sans-serif;
  --font-body: 'Rajdhani', 'Noto Sans SC', sans-serif;
  --font-cn: 'Noto Sans SC', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; transition: all 0.3s; }
a:hover { color: #fff; text-shadow: 0 0 10px var(--primary); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Starfield Background ── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(0,240,255,0.5), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 30%, rgba(168,85,247,0.5), transparent),
    radial-gradient(1px 1px at 20% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 60% 90%, rgba(0,240,255,0.4), transparent),
    radial-gradient(1px 1px at 80% 75%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 40% 40%, rgba(168,85,247,0.4), transparent),
    radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 45% 70%, rgba(0,240,255,0.3), transparent),
    radial-gradient(1px 1px at 95% 90%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 5% 45%, rgba(168,85,247,0.3), transparent);
  pointer-events: none;
  z-index: 0;
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ── Scanline overlay ── */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glow);
  transition: all 0.3s;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  position: relative;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.logo-text .cn {
  display: block;
  font-family: var(--font-cn);
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 4px;
  font-weight: 400;
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
}

.nav-item > a span {
  font-family: var(--font-cn);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 2px;
}

.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.3s;
}

.nav-item > a:hover,
.nav-item.active > a {
  color: var(--primary);
}

.nav-item > a:hover::after,
.nav-item.active > a::after {
  width: 60%;
}

.nav-item > a:hover span,
.nav-item.active > a span {
  color: var(--primary-dim);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 8px 20px;
  font-family: var(--font-cn);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.dropdown a:hover {
  color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
  padding-left: 26px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

/* ══════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: perspective(500px) rotateX(30deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(30deg) translateY(60px); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 10s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px; height: 400px;
  background: var(--primary);
  top: 10%; right: 10%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 300px; height: 300px;
  background: var(--secondary);
  bottom: 10%; left: 10%;
  animation-delay: -5s;
}

.hero-orb-3 {
  width: 200px; height: 200px;
  background: var(--accent);
  top: 50%; left: 50%;
  animation-delay: -3s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 30px;
  background: rgba(0, 240, 255, 0.05);
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-cn);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 6px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-desc {
  font-family: var(--font-cn);
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.8s both;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  border-radius: 4px;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
  color: #000;
}

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

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  color: #fff;
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 3px;
}

.scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  opacity: 0.6;
}

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

/* ══════════════════════════════════════════
   SECTION STYLES
   ══════════════════════════════════════════ */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
}

.section-tag::before,
.section-tag::after {
  content: '—';
  color: var(--text-dim);
  margin: 0 10px;
}

.section-title {
  font-family: var(--font-cn);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 4px;
}

.section-title .en {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 6px;
  margin-top: 8px;
  font-weight: 400;
}

/* ── Divider line ── */
.glow-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 16px auto 0;
  box-shadow: 0 0 10px var(--primary);
}

/* ══════════════════════════════════════════
   NOTICES SECTION
   ══════════════════════════════════════════ */
.notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.notice-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.notice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.notice-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
}

.notice-card:hover::before {
  opacity: 1;
}

.notice-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.notice-card h3 {
  font-family: var(--font-cn);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.notice-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.notice-card .date {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 12px;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════
   PRODUCTS SECTION
   ══════════════════════════════════════════ */
.products-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 4px;
  font-family: var(--font-cn);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s;
  position: relative;
  group: true;
}

.product-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 240, 255, 0.15);
}

.product-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(168, 85, 247, 0.05));
}

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

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

.product-img .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(3, 7, 18, 0.9) 100%);
}

.product-img .view-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  padding: 8px 24px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 2px;
  transition: all 0.3s;
  cursor: pointer;
}

.product-card:hover .view-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-family: var(--font-cn);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info .product-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 10px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--secondary);
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual .hex-frame {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(168, 85, 247, 0.08));
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-visual .hex-frame::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--primary), transparent, var(--secondary), transparent);
  animation: rotateBg 10s linear infinite;
  opacity: 0.1;
}

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

.about-visual .hex-frame .core-icon {
  z-index: 1;
  font-size: 5rem;
  filter: drop-shadow(0 0 30px var(--primary));
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 8px;
}

.stat-item .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .label {
  font-family: var(--font-cn);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.about-text h3 {
  font-family: var(--font-cn);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.about-text .slogan {
  font-family: var(--font-cn);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 12px;
  padding: 40px;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.contact-info .subtitle {
  font-family: var(--font-cn);
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.05);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 8px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item .details h4 {
  font-family: var(--font-cn);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 400;
}

.contact-item .details p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
}

.contact-map {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 400px;
}

.contact-map .map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(168, 85, 247, 0.05));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.contact-map .map-placeholder .map-icon {
  font-size: 4rem;
  filter: drop-shadow(0 0 20px var(--primary));
}

.contact-map .map-placeholder p {
  font-family: var(--font-cn);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════
   CAROUSEL / SLIDER
   ══════════════════════════════════════════ */
.carousel {
  position: relative;
  width: 100%;
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.04), rgba(168, 85, 247, 0.04));
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-slide .slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.06), rgba(168, 85, 247, 0.06));
}

/* Carousel arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  color: var(--primary);
  font-size: 1.1rem;
}

.carousel-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 240, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* Carousel counter */
.carousel-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--primary);
  letter-spacing: 2px;
  z-index: 10;
}

/* Thumbnail strip */
.carousel-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 0;
}

.carousel-thumbs::-webkit-scrollbar { height: 2px; }
.carousel-thumbs::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.carousel-thumbs::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.carousel-thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
  opacity: 0.5;
}

.carousel-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  opacity: 1;
}

.carousel-thumb:hover { opacity: 0.8; }
.carousel-thumb.active:hover { opacity: 1; }

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-thumb .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(168,85,247,0.08));
}

/* ══════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ══════════════════════════════════════════ */
.detail-hero {
  padding-top: 100px;
  min-height: 40vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 0;
}

.detail-gallery {
  position: relative;
}

.detail-gallery .main-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(168, 85, 247, 0.08));
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-gallery .main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content h1 {
  font-family: var(--font-cn);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-content .detail-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.detail-content .description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 6px;
}

.spec-item .spec-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.spec-item .spec-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-top: 4px;
}

/* ══════════════════════════════════════════
   PAGE HEADER (sub-pages)
   ══════════════════════════════════════════ */
.page-header {
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.breadcrumb a {
  color: var(--text-dim);
}

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

.breadcrumb .sep {
  color: var(--text-dim);
}

/* ══════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.pagination button {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.pagination button:hover,
.pagination button.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.pagination button.nav-btn {
  width: auto;
  padding: 0 16px;
  font-size: 0.7rem;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  background: rgba(3, 7, 18, 0.95);
  padding: 60px 0 30px;
}

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

.footer-brand .logo-text {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(0, 240, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-dim);
}

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════════
   LOADING ANIMATION
   ══════════════════════════════════════════ */
.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(0, 240, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.loading-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 968px) {
  .about-grid,
  .detail-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px;
    transition: right 0.3s;
    border-left: 1px solid var(--border-glow);
  }

  .nav-menu.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-item > a {
    padding: 14px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .detail-specs {
    grid-template-columns: 1fr;
  }
}

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

.glow {
  text-shadow: 0 0 20px var(--primary);
}

.hidden { display: none !important; }

/* ── Holographic card effect ── */
.holo-card {
  position: relative;
}

.holo-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.05), transparent);
  transition: left 0.5s;
  pointer-events: none;
}

.holo-card:hover::after {
  left: 100%;
}
