/* ==========================================================================
   JDB电子(中国区)·官方网站 - 全局样式表
   Design Architecture: Modern Tech & Digital Entertainment Style
   Author: Senior Full-Stack Engineer & UI/UX Specialist
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Cyber Gold & Tech Dark */
  --bg-dark: #0a0c10;
  --bg-card: #121620;
  --bg-card-hover: #1a202c;
  --bg-header: rgba(10, 12, 16, 0.88);
  
  --primary-gold: #f3ba2f;
  --primary-gold-hover: #ffd056;
  --primary-gold-glow: rgba(243, 186, 47, 0.25);
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(243, 186, 47, 0.3);
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  
  /* Spacing & Layout */
  --header-height: 80px;
  --container-max-width: 1200px;
  --section-padding: 100px 0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Shadows */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-gold-glow: 0 8px 25px -5px rgba(243, 186, 47, 0.3);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section-padding {
  padding: var(--section-padding);
}

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

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

.section-subtitle {
  color: var(--primary-gold);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 16px auto 0;
}

/* --------------------------------------------------------------------------
   4. Component: Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold), #e0a010);
  color: var(--text-dark);
  box-shadow: var(--shadow-gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-gold-hover), var(--primary-gold));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -3px rgba(243, 186, 47, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

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

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
}

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

/* Text-Based Logo Architecture */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-main);
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-gold), #b38000);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold-glow);
}

.brand-logo span.highlight {
  color: var(--primary-gold);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: width var(--transition-fast);
}

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

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  margin: 5px 0;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

/* Hamburger Active State Animation */
.nav-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.4) 0%, var(--bg-dark) 100%),
              url('/images/hero-bg.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(243, 186, 47, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  color: var(--primary-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* --------------------------------------------------------------------------
   7. Pain Points Section
   -------------------------------------------------------------------------- */
.pain-points-section {
  background-color: rgba(18, 22, 32, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all var(--transition-normal);
  position: relative;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.pain-icon {
  width: 52px;
  height: 52px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   8. Solutions & Services Section
   -------------------------------------------------------------------------- */
.solution-icon {
  width: 52px;
  height: 52px;
  background: rgba(243, 186, 47, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   9. Social Proof & Statistics
   -------------------------------------------------------------------------- */
.social-proof-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-gold);
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  color: var(--text-main);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. About Us Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.about-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.location-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.location-box p {
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   11. FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-gold);
}

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

.faq-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
  color: var(--primary-gold);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 24px 20px 24px;
}

/* --------------------------------------------------------------------------
   12. Final CTA & Form Section
   -------------------------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, rgba(243, 186, 47, 0.05) 0%, rgba(18, 22, 32, 0.9) 100%);
  border-top: 1px solid var(--border-color);
}

.cta-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-gold);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   13. Footer Architecture
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #06080b;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 700;
}

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

.footer-links a:hover {
  color: var(--primary-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-beian {
  display: flex;
  gap: 16px;
}

.footer-beian a:hover {
  color: var(--primary-gold);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   14. Responsive Media Queries (Mobile-First Optimization)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .grid-3, .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --section-padding: 60px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
  }

  .nav-menu.is-active {
    transform: translateX(0);
  }

  .header-cta {
    display: none;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .grid-3, .testimonial-grid, .stats-grid {
    grid-template-columns: 1fr;
  }

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

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