/* ============================================================
   sbwkj.cn - 硕保玮科技 设计系统样式表
   智能仓储自动化企业 浅蓝科技风
   ============================================================ */

/* ----- CSS Variables ----- */
:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;

  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --white-glass: rgba(255, 255, 255, 0.70);
  --white-card: rgba(255, 255, 255, 0.85);
  --white-nav: rgba(255, 255, 255, 0.92);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;

  --shadow-card: 0 4px 24px rgba(59, 130, 246, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-nav: 0 2px 20px rgba(59, 130, 246, 0.10);
  --shadow-hover: 0 12px 40px rgba(59, 130, 246, 0.15);

  --section-max-width: 1260px;
  --section-margin: 48px auto;
  --section-padding: 52px 0;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  background: #0a0e1a;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

a {
  color: var(--primary-500);
  text-decoration: none;
  transition: color 0.2s;
}

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

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* Dark grid overlay - lines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Radial glow dots */
.glow-dot-1 {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  z-index: -1;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.10), transparent 70%);
  pointer-events: none;
}
.glow-dot-2 {
  position: fixed;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  z-index: -1;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 70%);
  pointer-events: none;
}

/* ----- Section Glass Card Container ----- */
.section-card {
  background: var(--white-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  margin: var(--section-margin);
  max-width: var(--section-max-width);
  padding: var(--section-padding);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.50);
}

.section-card:first-of-type {
  margin-top: 88px;
}

/* ----- Section Titles ----- */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-400), var(--purple-400));
  border-radius: 2px;
  margin: 16px auto 0;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: var(--shadow-nav);
  height: 68px;
}

.nav-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  display: block;
  padding: 8px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-500);
  background: rgba(59, 130, 246, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary-500), var(--purple-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.30);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.40);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary-500);
  border: 2px solid var(--primary-500);
}

.btn-outline:hover {
  background: var(--primary-500);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 40px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 8px;
}

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

/* ============================================================
   PRODUCTS - 2x3 Grid
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 40px;
}

.product-card {
  background: var(--white-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-400), var(--purple-400));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.product-card-img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.product-card-body .btn {
  align-self: flex-start;
  margin-top: 16px;
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 40px;
}

.solutions-grid .solution-card:last-child:nth-child(4) {
  grid-column: 2 / 3;
}

.solutions-grid .solution-card:last-child:nth-child(5) {
  grid-column: span 1;
}

.solution-card {
  background: var(--white-card);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-400), var(--purple-400));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.solution-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.solution-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.solution-link {
  color: var(--primary-500);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.solution-link::after {
  content: '→';
  transition: transform 0.2s;
}

.solution-link:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   CASES (LOGO Wall)
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 40px;
}

.case-card {
  background: var(--white-card);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-400), var(--purple-400));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.case-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  color: var(--primary-500);
}

.case-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.case-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.case-link {
  color: var(--primary-500);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.case-link::after {
  content: '→';
  transition: transform 0.2s;
}

.case-link:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-content {
  padding: 0 40px;
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

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

.about-stat-item {
  text-align: center;
  padding: 20px 16px;
  background: var(--white-card);
  border-radius: var(--radius-sm);
}

.about-stat-item .stat-number {
  font-size: 1.6rem;
}

.about-stat-item .stat-label {
  font-size: 0.85rem;
}

/* ============================================================
   CONTACT - 2 Column Grid
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 40px;
  align-items: start;
}

.contact-info {
  align-self: start;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-100);
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail {
  flex: 1;
}

.contact-detail .name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-detail .detail {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-detail .detail a {
  color: var(--primary-500);
}

.contact-form {
  align-self: start;
}

.contact-form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-100);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.30);
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.40);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  color: #cbd5e1;
  padding: 32px 24px;
  text-align: center;
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer a {
  color: var(--primary-300);
}

.footer a:hover {
  color: #fff;
}

.footer-icp {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.40);
}

/* ============================================================
   RESPONSIVE - Mobile
   ============================================================ */
@media (max-width: 900px) {
  .products-grid,
  .solutions-grid,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 24px;
  }

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

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

  .hero-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--white-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow: var(--shadow-nav);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .products-grid,
  .solutions-grid,
  .cases-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .stats-grid {
    padding: 0 20px;
  }

  .section-card {
    margin: 24px 16px;
    padding: 32px 0;
    border-radius: var(--radius-md);
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero {
    padding: 100px 16px 60px;
  }

  .section-padding {
    padding: 0 20px;
  }

  .about-content {
    padding: 0 20px;
  }

  .contact-grid {
    padding: 0 20px;
  }

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

  .stat-number {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .nav-inner {
    padding: 0 16px;
  }
}
