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

:root {
  --bg: #f0f5fa;
  --bg-alt: #e6edf4;
  --text: #1a2a3a;
  --text-light: #4a5a6a;
  --primary: #1a3b5c;
  --accent: #ffd966;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --transition: 0.3s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.dark {
  --bg: #0b1a2e;
  --bg-alt: #112233;
  --text: #e8edf2;
  --text-light: #a0b0c0;
  --primary: #0b1a2e;
  --glass-bg: rgba(20, 40, 60, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* ===== Container & Section ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 1.1rem;
}

/* ===== Glass Card ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 20px;
}

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

.logo svg { display: block; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}

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

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

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

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

.header-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--transition);
}

.header-actions button:hover { background: rgba(255, 255, 255, 0.1); }

.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  background: linear-gradient(135deg, #0b1a2e 0%, #1a3b5c 50%, #2a5a7a 100%);
}

.banner-slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 40px;
  opacity: 0;
  transition: opacity 0.6s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.banner-slide.active {
  opacity: 1;
  position: relative;
}

.banner-content { flex: 1; color: #fff; }

.banner-content h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.banner-content .lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 600px;
}

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

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #0b1a2e;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.banner-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.banner-visual svg { max-width: 100%; height: auto; }

.banner-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.banner-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition);
}

.banner-dot.active { background: var(--accent); }

/* ===== Grids ===== */
.about-grid,
.products-grid,
.services-grid,
.cases-grid,
.news-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.about-card,
.product-card,
.service-card,
.case-card,
.news-card {
  padding: 32px;
  text-align: center;
}

.about-card svg,
.product-card svg,
.service-card svg,
.case-card svg,
.news-card svg { margin-bottom: 16px; }

.about-card h3,
.product-card h3,
.service-card h3,
.case-card h3,
.news-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.about-card p,
.product-card p,
.service-card p,
.case-card p,
.news-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Misc Sections ===== */
.brand-history,
.product-advantages,
.industry-applications,
.testimonials,
.related-articles,
.howto-content,
.contact-info,
.contact-extra,
.legal-info { margin-top: 40px; }

.timeline { display: flex; flex-direction: column; gap: 16px; }
.timeline-item { display: flex; gap: 16px; align-items: baseline; }
.timeline-item .year {
  font-weight: 700;
  color: var(--accent);
  min-width: 60px;
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.industry-list span {
  background: var(--accent);
  color: #0b1a2e;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonials blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  margin: 16px 0;
  font-style: italic;
  color: var(--text-light);
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 12px; overflow: hidden; }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-question:hover { background: rgba(255, 255, 255, 0.1); }
.faq-icon { font-size: 1.4rem; transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-light);
  display: none;
}
.faq-item.open .faq-answer { display: block; }

/* ===== HowTo ===== */
.howto-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--primary);
}

.howto-content ul,
.howto-content ol {
  padding-left: 20px;
  margin: 12px 0;
  color: var(--text-light);
}

.howto-content li { margin-bottom: 8px; }

/* ===== Contact ===== */
.contact-info h3 { margin-top: 16px; color: var(--primary); }
.contact-extra svg { margin: 12px 0; }
.legal-info h3 { margin-top: 16px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 20px 20px;
}

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

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 { color: var(--accent); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.9rem;
}

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

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top.show { opacity: 1; visibility: visible; }

/* ===== Search Modal ===== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal-content {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px;
  width: 90%;
  max-width: 600px;
}

.search-modal-content input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--glass-bg);
  color: var(--text);
  outline: none;
}

.search-modal-content button {
  margin-top: 12px;
  padding: 10px 24px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.search-results {
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
}

/* ===== Animations (AOS-like) ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fadeIn"].animate {
  opacity: 1;
  transform: none;
}

[data-animate="zoomIn"].animate {
  opacity: 1;
  transform: scale(1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(11, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .main-nav a { font-size: 1.1rem; }

  .banner-slide {
    flex-direction: column;
    padding: 40px 20px;
  }

  .banner-content h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .section-padding { padding: 48px 0; }
  .banner-content h1 { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }

  .about-grid,
  .products-grid,
  .services-grid,
  .cases-grid,
  .news-grid,
  .contact-grid { grid-template-columns: 1fr; }
}