/* ===== Variables ===== */
:root {
  --primary: #0066cc;
  --primary-dark: #004d99;
  --primary-light: #e6f0fa;
  --accent: #00a8e8;
  --dark: #1a2332;
  --dark-soft: #2c3e50;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #fff;
  --bg-alt: #f5f8fc;
  --border: #e8edf2;
  --shadow: 0 4px 24px rgba(0, 51, 102, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 51, 102, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 72px;
  --topbar-h: 40px;
  --transition: 0.3s ease;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 600; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section--gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
}

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 2rem; margin-bottom: 12px; }
.section-head p { color: var(--text-light); font-size: 1.05rem; }
.section-head--light h2,
.section-head--light p { color: rgba(255,255,255,0.9); }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.top-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar__label { opacity: 0.7; }
.top-bar__phone {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
}
.top-bar__phone:hover { color: #fff; }
.top-bar__hours { margin-left: auto; opacity: 0.6; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
}
.logo img { flex-shrink: 0; }

.nav { display: flex; gap: 32px; }
.nav a {
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn--outline {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn--white {
  background: #fff;
  color: var(--primary);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h) - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 51, 102, 0.92) 0%, rgba(0, 102, 204, 0.85) 50%, rgba(0, 168, 232, 0.75) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__bg::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 60px 0;
  max-width: 720px;
}
.hero__tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero__desc {
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Products ===== */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card__icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.product-card__icon svg { width: 32px; height: 32px; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--dark); }
.product-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* ===== Industries ===== */
.industries__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.industries__list span {
  padding: 12px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  color: var(--text);
  transition: all var(--transition);
}
.industries__list span:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ===== Services ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-item {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.service-item:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-item__num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.service-item h3 { font-size: 1rem; color: var(--dark); }

/* ===== Solutions ===== */
.solutions__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.pain-points h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--accent);
}
.pain-points li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}
.pain-points li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.solution-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.solution-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.solution-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}
.solution-card h4 { font-size: 1rem; margin-bottom: 8px; color: #fff; }
.solution-card p { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ===== Cases ===== */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.case-card__tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.case-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--dark); }
.case-card > p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 24px; line-height: 1.7; }
.case-card__stats {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat strong span { font-size: 1rem; }
.stat span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CTA ===== */
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta__text h2 { font-size: 1.75rem; margin-bottom: 8px; }
.cta__text p { opacity: 0.9; }

/* ===== Contact ===== */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.contact__info h2 { font-size: 1.75rem; margin-bottom: 32px; color: var(--dark); }
.contact__list li { margin-bottom: 24px; }
.contact__list strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.contact__list a { color: var(--primary); font-size: 1.1rem; font-weight: 500; }
.contact__list a:hover { color: var(--primary-dark); }
.contact__list span { font-size: 1.05rem; color: var(--text); }

.qr-box {
  text-align: center;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.qr-box img { margin: 0 auto 12px; border-radius: var(--radius-sm); }
.qr-box p { font-size: 0.875rem; color: var(--text-light); }

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 500;
}
.footer__copy { font-size: 0.85rem; }
.footer__copy a { color: rgba(255,255,255,0.5); }
.footer__copy a:hover { color: #fff; }

/* ===== Float Contact ===== */
.float-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: all var(--transition);
}
.float-contact svg { width: 24px; height: 24px; }
.float-contact:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .cases__grid { grid-template-columns: 1fr; }
  .solutions__layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .top-bar__hours { display: none; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: calc(var(--topbar-h) + var(--header-h));
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav a::after { display: none; }

  .logo span { font-size: 0.85rem; }
  .hero { min-height: auto; }
  .hero__content { padding: 48px 0; }

  .products__grid,
  .services__grid,
  .solution-cards { grid-template-columns: 1fr; }

  .cta__inner { flex-direction: column; text-align: center; }
  .contact__layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .case-card__stats { flex-direction: column; gap: 16px; }
}
