/* ========================================
   深圳市宜达数字有限公司 - 企业官网样式
   ======================================== */

:root {
  --primary: #0a2463;
  --primary-light: #1e3a8a;
  --accent: #00b4d8;
  --accent-dark: #0096c7;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #718096;
  --bg-white: #ffffff;
  --bg-light: #f7f9fc;
  --bg-dark: #0a0f1e;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(10,36,99,0.08);
  --shadow-hover: 0 8px 40px rgba(10,36,99,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  background: var(--bg-white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-gray { background: var(--bg-light); }

/* ── Typography ── */
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.section-title.white { color: #fff; }
.section-desc {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.8;
}
.section-desc.white { color: rgba(255,255,255,0.75); }
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--transition);
}
.navbar.scrolled {
  background: rgba(10,15,30,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-icon svg { width: 20px; height: 20px; fill: white; }
.logo-icon img.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.nav-logo-img { height: 32px; width: auto; }
.nav-logo-icon-wrap { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nav-logo-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { color: #fff; }
.logo-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: block;
  line-height: 1.2;
}
.logo-sub { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 1px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(0,180,216,0.15);
}
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* ── Nav Dropdown ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.5);
  transition: var(--transition);
}
.nav-dropdown:hover > a::after {
  border-top-color: var(--accent);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: rgba(10,15,30,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 8px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 1001;
  margin-top: 4px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  border-radius: 0;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: #fff;
  background: rgba(0,180,216,0.15);
  padding-left: 24px;
}
.nav-dropdown-menu .dropdown-cta {
  color: var(--accent) !important;
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
  padding-top: 12px;
}
.nav-dropdown-menu .dropdown-cta:hover {
  background: rgba(0,180,216,0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,180,216,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(30,58,138,0.2) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,180,216,0.1);
  border: 1px solid rgba(0,180,216,0.3);
  color: var(--accent);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,180,216,0.4); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── Stats ── */
.stats-bar {
  background: var(--primary);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 16px 24px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}
.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.65); }

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,180,216,0.2);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(0,180,216,0.12), rgba(10,36,99,0.08));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.feature-desc { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0,180,216,0.08);
  color: var(--accent-dark);
  border: 1px solid rgba(0,180,216,0.2);
}

/* ── About Section ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-wrap {
  background: linear-gradient(135deg, var(--primary) 0%, #0d1b4b 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.about-img-wrap svg { width: 100%; max-width: 280px; opacity: 0.9; }
.about-badge-float {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--accent);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,180,216,0.4);
}
.about-badge-float .big { font-size: 28px; font-weight: 800; line-height: 1; }
.about-badge-float .small { font-size: 12px; opacity: 0.85; }

.about-text .section-title { margin-top: 8px; }
.about-content { color: var(--text-mid); line-height: 1.9; margin: 20px 0; font-size: 15px; }
.about-highlights { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.highlight-item h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.highlight-item p { font-size: 13px; color: var(--text-mid); }

/* ── Product Categories ── */
.product-category-section { margin-bottom: 64px; }
.product-category-section:last-child { margin-bottom: 0; }
.product-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}
.product-category-header .cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.cat-software { background: linear-gradient(135deg, #0a2463, #1e3a8a); }
.cat-hardware { background: linear-gradient(135deg, #0f6e56, #1d9e75); }
.cat-course { background: linear-gradient(135deg, #ba7517, #ef9f27); }
.cat-solution { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.product-category-header h3 { font-size: 22px; font-weight: 700; }
.product-category-header .cat-count { font-size: 13px; color: var(--text-light); }
.product-detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-image .image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  padding: 40px;
}
.product-detail-image .image-placeholder svg { width: 48px; height: 48px; opacity: 0.3; margin-bottom: 8px; }

/* Product cards with images (homepage) */
.feature-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
}
.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.feature-card:hover .feature-card-image img { transform: scale(1.05); }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 32px; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-top: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; fill: var(--accent); }
.contact-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: var(--text-mid); }

.contact-form { background: var(--bg-light); border-radius: var(--radius-lg); padding: 36px; }
.contact-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-submit:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .logo-name { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.5); max-width: 260px; margin-top: 8px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; }
.footer-contact-item svg { width: 16px; height: 16px; min-width: 16px; fill: var(--accent); margin-top: 2px; }
.footer-qrcodes { display: flex; gap: 20px; margin-top: 4px; }
.footer-qr-item { text-align: center; }
.footer-qr-img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 6px;
  transition: border-color var(--transition);
}
.footer-qr-img:hover { border-color: var(--accent); }
.footer-qr-img svg { width: 40px; height: 40px; }
.footer-qr-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.footer-qr-item span { font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-about-link { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-about-link a { font-size: 13px; color: var(--accent); transition: opacity var(--transition); }
.footer-about-link a:hover { opacity: 0.8; }

/* ── Web Products ── */
.web-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.web-product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.web-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,180,216,0.3);
}
.web-product-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: linear-gradient(135deg, rgba(0,180,216,0.12), rgba(10,36,99,0.08));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.web-product-icon svg { width: 26px; height: 26px; color: var(--accent-dark); }
.web-product-icon img { width: 100%; height: 100%; object-fit: contain; }
.web-product-info { flex: 1; min-width: 0; }
.web-product-info h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.web-product-info p { font-size: 13px; color: var(--text-light); }
.web-product-arrow { width: 20px; height: 20px; min-width: 20px; color: var(--text-light); transition: all var(--transition); }
.web-product-card:hover .web-product-arrow { color: var(--accent); transform: translateX(3px); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0d1b4b 100%);
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { font-size: 42px; font-weight: 800; color: #fff; margin: 12px 0; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-qrcodes { justify-content: flex-start; }
  .web-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(10,15,30,0.98);
    padding: 16px;
    gap: 4px;
  }
  .nav-links.open .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    background: rgba(255,255,255,0.03);
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    margin: 0;
  }
  .nav-links.open .nav-dropdown > a::after {
    display: none;
  }
  .hero-title { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2n+1)::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .web-products-grid { grid-template-columns: 1fr; }
}
