/* 微渺官网 - 医疗科技风静态站点 */
:root {
  --primary: #0a3d62;
  --primary-light: #1e5f8a;
  --primary-dark: #062a44;
  --accent: #2ecc71;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 4px 14px rgba(10, 61, 98, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 61, 98, 0.12);
  --radius: 8px;
  --header-h: 72px;
  --transition: 0.25s ease;
  --max-w: 1200px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--gray { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.section-header .subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-header .divider {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 16px auto 0;
}

.section-header p.desc {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--gray-500);
}

/* Header */
#site-header {
  position: relative;
  z-index: 1000;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-desktop { display: flex; align-items: center; gap: 8px; }

.nav-desktop a {
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--gray-700);
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary);
  background: var(--gray-50);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-mobile {
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 24px;
  z-index: 999;
  overflow-y: auto;
}

.nav-mobile.open {
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.nav-mobile a.active { color: var(--primary); font-weight: 600; }

/* Banner */
.hero-banner {
  margin-top: var(--header-h);
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
}

.banner-slider { position: relative; height: 520px; }

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
}

.banner-slide:not(.active) { pointer-events: none; }

.banner-slide.active { opacity: 1; z-index: 1; pointer-events: auto; }

.banner-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
 object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 42, 68, 0.85) 0%, rgba(6, 42, 68, 0.4) 0%);
}

.banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 600px;
  padding: 0 24px;
}

.banner-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.banner-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  background: transparent;
  color: var(--white);
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.banner-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.banner-dots button.active { background: var(--white); }

.banner-arrows button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.banner-arrows button:hover { background: rgba(255, 255, 255, 0.3); }
.banner-arrows .prev { left: 20px; }
.banner-arrows .next { right: 20px; }

/* Cards grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card .card-img img {
  object-fit: contain;
}

.card:hover .card-img img { transform: scale(1.03); }

.card-body { padding: 20px; }

.card-body h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Business blocks */
.business-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.business-item:last-child { margin-bottom: 0; }

.business-item.reverse { direction: rtl; }
.business-item.reverse > * { direction: ltr; }

.business-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.business-img img {
  width: 100%;
  height: 100%;
 object-fit: cover;
}

.business-text h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.business-text p {
  color: var(--gray-500);
  margin-bottom: 12px;
}

/* About intro */
.about-intro-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.about-intro-img img {
  width: 100%;
  height: 100%;
 object-fit: cover;
}

.about-intro-text h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-intro-text p {
  margin-bottom: 16px;
  color: var(--gray-500);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-200);
}

.stat-item { text-align: center; }

.stat-item .num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-item .label {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Team / cert */
.team-card .card-img { aspect-ratio: 1; }

.cert-card {
  /* border: 2px solid var(--primary); */
  /* background: var(--white); */
  position: relative;
  overflow: visible;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(10, 61, 98, 0.08);
}



.cert-card .card-img { 
  aspect-ratio: 3/4; 
  border-radius: calc(var(--radius) - 2px);
}

.cert-card .card-body {
  padding: 16px;
}

.cert-card:hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(10, 61, 98, 0.08) !important;
}

.cert-card:hover .card-img img {
  transform: none !important;
}

/* Products */
.product-card { text-align: center; }

.product-card .card-img { aspect-ratio: 1; }

.product-card h3 { font-size: 0.95rem; }

/* News */
.news-list { max-width: 800px; margin: 0 auto; }

.news-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition);
}

.news-item:first-child { padding-top: 0; }

.news-date {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
}

.news-date .day {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.news-date .month {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.news-content h3 {
  font-size: 1.05rem;
  color: var(--gray-900);
  margin-bottom: 8px;
  font-weight: 600;
  transition: color var(--transition);
}

.news-item:hover .news-content h3 { color: var(--primary); }

.news-content p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Page hero (inner pages) */
.page-hero {
  margin-top: var(--header-h);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.page-hero .breadcrumb {
  font-size: 0.9rem;
  opacity: 0.85;
}

.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.contact-info-item p { color: var(--gray-500); font-size: 0.95rem; }

.contact-form .form-group { margin-bottom: 20px; }

.contact-form label {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.map-placeholder {
  background: var(--gray-100);
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  margin-top: 48px;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo { color: var(--white); margin-bottom: 16px; }

.footer-brand .logo-img { filter: brightness(1.1); }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 6px 0;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-col a:hover { opacity: 1; color: var(--white); }

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  opacity: 0.85;
}

.footer-contact .icon { flex-shrink: 0; opacity: 0.7; }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Fixed bottom bar (mobile consult) */
.consult-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--white);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  grid-template-columns: repeat(3, 1fr);
}

.consult-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  font-size: 0.75rem;
  color: var(--primary);
  gap: 4px;
}

.consult-bar a span.icon { font-size: 1.25rem; }

.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* Lightbox image viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: scaleIn 0.3s ease;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(10, 61, 98, 0.15);
  border: none;
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: rgba(10, 61, 98, 0.3);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { 
    opacity: 0;
    transform: scale(0.9);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* Product detail page */
.product-detail-header {
  margin-bottom: 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.back-link:hover {
  color: var(--primary-light);
  transform: translateX(-4px);
}

.product-detail-title {
  font-size: 2.25rem;
  color: var(--gray-900);
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.product-detail-image {
  position: sticky;
  top: 100px;
}

.product-detail-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(10, 61, 98, 0.15);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.detail-section {
  border-left: 4px solid var(--primary);
  padding-left: 28px;
}

.detail-section-title {
  font-size: 1.75rem;
  color: var(--gray-900);
  margin: 0 0 20px 0;
  font-weight: 700;
}

.detail-text {
  color: var(--gray-700);
  line-height: 2;
  margin: 0;
  font-size: 1.05rem;
}

.feature-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
}

.feature-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.feature-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin: 0 0 12px 0;
  font-weight: 600;
}

.feature-desc {
  color: var(--gray-700);
  line-height: 2;
  margin: 0;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .product-detail-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }

  .section { padding: 56px 0; }

  .banner-slider { height: 380px; }
  .banner-content h1 { font-size: 1.75rem; }
  .banner-content p { font-size: 0.95rem; }
  .banner-arrows button { display: none; }

  .grid-2,
  .grid-3,
  .business-item,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .business-item.reverse { direction: ltr; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .consult-bar { display: grid; }
  body { padding-bottom: 56px; }

  .section-header h2 { font-size: 1.5rem; }

  .page-hero { padding: 48px 0; }
  .page-hero h1 { font-size: 1.75rem; }

  .news-item { flex-direction: column; gap: 12px; }
  .news-date { display: flex; gap: 8px; align-items: baseline; width: auto; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .banner-slider { height: 320px; }
}
