/* ============================================
   Xingqiyi Medical - Main Stylesheet
   ============================================ */

:root {
  --primary: #1a3a6e;
  --primary-dark: #0f2347;
  --primary-light: #2563eb;
  --accent: #0ea5e9;
  --accent-light: #e0f2fe;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(26,58,110,.10);
  --shadow-lg: 0 12px 40px rgba(26,58,110,.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: .3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }
section[id] { scroll-margin-top: 90px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }

.section-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.75;
}

.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover { background: #0284c7; transform: translateY(-2px); box-shadow: var(--shadow); }

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

.btn-outline-white {
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

.btn-outline-dark {
  border: 2px solid #000;
  color: #000;
  background: transparent;
}
.btn-outline-dark:hover { background: #000; color: var(--white); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-blue { background: var(--accent-light); color: var(--primary-light); }
.badge-green { background: #dcfce7; color: #16a34a; }

/* ============ HEADER ============ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img { height: 42px; width: auto; }
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--primary); letter-spacing: -.02em; }
.logo-sub { font-size: .7rem; color: var(--text-light); font-weight: 400; display: block; margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--accent-light); }
.nav-link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--gray-700);
  transition: var(--transition);
}
.dropdown-link:hover { background: var(--accent-light); color: var(--primary); }
.dropdown-icon { width: 32px; height: 32px; background: var(--gray-100); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

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

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--gray-100);
  border-radius: 100px;
  padding: 3px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: var(--transition);
}
.lang-btn.active { background: var(--primary); color: var(--white); }
.lang-btn:hover:not(.active) { color: var(--primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: var(--transition);
}
.hamburger:hover { background: var(--gray-100); }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }

/* ============ HERO ============ */
#hero {
  padding-top: 72px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #0f2d5e 40%, #1a4a7e 100%);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.hero-circle-1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.hero-circle-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.hero-circle-3 { width: 200px; height: 200px; top: 30%; left: 40%; background: rgba(14,165,233,.08); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { color: var(--white); }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 24px;
  color: #93c5fd;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -.03em;
}
.hero-title span { color: var(--accent); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label { font-size: .82rem; color: rgba(255,255,255,.6); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-main {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  color: var(--white);
}

.hero-card-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-card-icon svg { width: 32px; height: 32px; stroke: white; }

.hero-card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.hero-card-desc { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.6; margin-bottom: 20px; }

.hero-feature-list { display: flex; flex-direction: column; gap: 10px; }
.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
}
.hero-feature-item::before { content: '✓'; width: 20px; height: 20px; background: rgba(74,222,128,.2); color: #4ade80; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; }

.hero-float-cards {
  position: absolute;
  bottom: -20px;
  right: -20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-float-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}
.hero-float-card-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.hero-float-card-title { font-size: .78rem; font-weight: 700; color: var(--primary); }
.hero-float-card-desc { font-size: .7rem; color: var(--text-light); }

/* ============ MARQUEE / PARTNERS ============ */
.marquee-section { background: var(--gray-50); padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee-label { font-size: .78rem; font-weight: 600; color: var(--text-light); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding-right: 32px; }
.marquee-track { display: flex; align-items: center; gap: 48px; animation: marquee 30s linear infinite; white-space: nowrap; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { font-size: .88rem; color: var(--gray-500); font-weight: 600; padding: 0 24px; border-right: 1px solid var(--border); flex-shrink: 0; }
.marquee-item:last-child { border-right: none; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ ABOUT SECTION ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-img-placeholder svg { width: 80px; height: 80px; opacity: .3; stroke: white; }

.about-stat-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent);
}
.about-stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.about-stat-label { font-size: .82rem; color: var(--text-light); margin-top: 4px; }

.about-cert-card {
  position: absolute;
  top: -16px;
  left: -16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-cert-icon { font-size: 1.5rem; }
.about-cert-label { font-size: .78rem; font-weight: 700; color: var(--primary); }
.about-cert-sub { font-size: .68rem; color: var(--text-light); }

.about-features { display: flex; flex-direction: column; gap: 20px; margin: 28px 0 32px; }
.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about-feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-feature-icon svg { width: 22px; height: 22px; stroke: var(--primary-light); }
.about-feature-title { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.about-feature-desc { font-size: .85rem; color: var(--text-light); line-height: 1.6; }

/* ============ PRODUCTS ============ */
.products-section { background: var(--gray-50); }

.products-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-500);
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

.product-img {
  aspect-ratio: 4/3;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .35s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img svg { width: 64px; height: 64px; stroke: var(--primary); opacity: .4; }
.product-img-bg { position: absolute; inset: 0; }

.product-badge { position: absolute; top: 12px; left: 12px; }

.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: .75rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.product-name { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.3; }
.product-desc { font-size: .83rem; color: var(--text-light); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.product-body > .badge { align-self: flex-start; }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.product-link { font-size: .83rem; font-weight: 600; color: var(--primary-light); display: flex; align-items: center; gap: 4px; }
.product-link:hover { gap: 8px; }
.product-link svg { width: 14px; height: 14px; transition: var(--transition); }
.product-link:hover svg { transform: translateX(3px); }

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

.solution-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: var(--transition);
  cursor: pointer;
}
.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7) 100%);
  z-index: 1;
}
.solution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.solution-card:hover .solution-icon { transform: scale(1.1); }

.solution-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .06;
}
.solution-bg svg { width: 120px; height: 120px; stroke: white; }

.solution-icon {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}
.solution-icon svg { width: 26px; height: 26px; stroke: white; }

.solution-body { position: relative; z-index: 2; color: var(--white); }
.solution-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.solution-desc { font-size: .82rem; color: rgba(255,255,255,.75); line-height: 1.6; margin-bottom: 16px; }
.solution-link { font-size: .82rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 4px; }

/* ============ STATS ============ */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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.03'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 48px 32px;
  border-right: 1px solid rgba(255,255,255,.1);
  color: var(--white);
  transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.04); }

.stat-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  margin-bottom: 8px;
}
.stat-num span { color: var(--accent); }
.stat-label { font-size: .88rem; color: rgba(255,255,255,.65); font-weight: 500; }

/* ============ NEWS ============ */
.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--accent-light) 0%, #bae6fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-img svg { width: 48px; height: 48px; stroke: var(--primary); opacity: .35; }

.news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.news-date { font-size: .75rem; color: var(--text-light); }
.news-title { font-size: 1rem; font-weight: 700; color: var(--primary); line-height: 1.4; margin-bottom: 8px; flex: 1; }
.news-excerpt { font-size: .83rem; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.news-link { font-size: .82rem; font-weight: 600; color: var(--primary-light); display: flex; align-items: center; gap: 4px; margin-top: auto; }

.news-list { display: flex; flex-direction: column; gap: 16px; }

.news-list-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
}
.news-list-item:hover { border-color: var(--accent); background: var(--accent-light); }

.news-list-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--gray-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-list-img svg { width: 28px; height: 28px; stroke: var(--text-light); }

.news-list-body { flex: 1; min-width: 0; }
.news-list-title { font-size: .88rem; font-weight: 700; color: var(--primary); line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-meta { font-size: .75rem; color: var(--text-light); }

/* ============ CERTIFICATES ============ */
.certs-section { background: var(--gray-50); }
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}
.cert-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-4px); }
.cert-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.cert-icon-img { width: 64px; height: auto; max-height: 64px; object-fit: contain; margin: 0 auto 12px; display: block; }
.cert-name { font-size: .88rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.cert-org { font-size: .75rem; color: var(--text-light); }

/* ============ CONTACT ============ */
.contact-section { background: var(--gray-50); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 22px; height: 22px; stroke: var(--primary); }
.contact-card-title { font-size: .82rem; color: var(--text-light); margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.contact-card-value { font-size: .95rem; font-weight: 600; color: var(--primary); line-height: 1.5; }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-title { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.form-desc { font-size: .85rem; color: var(--text-light); margin-bottom: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-label { font-size: .82rem; font-weight: 600; color: var(--gray-700); }
.form-input, .form-select, .form-textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-textarea { min-height: 120px; resize: vertical; }

.form-submit { margin-top: 8px; width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

/* ============ MAP ============ */
.map-section { height: 400px; background: var(--gray-200); position: relative; overflow: hidden; }
.map-placeholder {
  width: 100%;
  height: 100%;
  background: url('../images/ditu.png') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 40px;
  color: var(--primary);
}
.map-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.map-group p { margin: 0; }
.map-placeholder svg { width: 48px; height: 48px; opacity: .4; }
.map-placeholder p { font-size: .9rem; color: var(--text-light); }

/* ============ FOOTER ============ */
#footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo-text { color: var(--white); font-size: 1.3rem; }
.footer-desc { font-size: .85rem; line-height: 1.75; margin: 16px 0 24px; color: rgba(255,255,255,.55); }

.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: .9rem;
}
.footer-social:hover { background: var(--accent); }

.footer-col-title { font-size: .88rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: .83rem; color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-link:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .8rem; color: rgba(255,255,255,.35); transition: var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ============ BACK TO TOP ============ */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 999;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-top svg { width: 18px; height: 18px; stroke: white; }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  padding: 130px 0 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(14,165,233,.15) 0%, transparent 60%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-tag { font-size: .78rem; font-weight: 600; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.page-hero-title { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -.03em; }
.page-hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.75); max-width: 560px; line-height: 1.75; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.breadcrumb a:hover { color: rgba(255,255,255,.8); }
.breadcrumb span { color: var(--accent); font-weight: 600; }

/* ============ WHATSAPP / CHAT FLOAT ============ */
.float-actions {
  position: fixed;
  right: 32px;
  bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  font-size: 1.2rem;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn-green { background: #25d366; }
.float-btn-blue { background: var(--accent); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; z-index: 999; }
  .hamburger { display: flex; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--gray-50); }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .section { padding: 56px 0; }
  .float-actions { right: 16px; bottom: 80px; }
  .back-top { right: 16px; bottom: 24px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ ANIMATIONS ============ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .4s; }
.fade-up:nth-child(6) { transition-delay: .5s; }
.fade-up:nth-child(7) { transition-delay: .6s; }
.fade-up:nth-child(8) { transition-delay: .7s; }
.fade-up:nth-child(9) { transition-delay: .8s; }

/* ============ CAROUSEL ============ */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; }
.carousel-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: var(--transition); cursor: pointer; }
.carousel-dot.active { background: var(--white); width: 24px; border-radius: 4px; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  z-index: 10;
}
.carousel-btn:hover { background: rgba(255,255,255,.3); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-btn svg { width: 18px; height: 18px; }

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-3 { gap: 12px; }
.hidden { display: none !important; }
