/* ============================================
   HOME.CSS | 首页专属 · 现代科技医疗风格
   2026 全新设计 · 北京九六鑫元科技有限公司
   ============================================
   仅在 index.html 加载，不影响二级页面
   ============================================ */

/* ========== 1. Hero 主视觉区 ========== */
.hero-section {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 620px;
  max-height: 800px;
  overflow: hidden;
  background: linear-gradient(135deg, #061B2E 0%, #0D3B5E 30%, #1A6B8A 60%, #0D3B5E 100%);
  display: flex;
  align-items: center;
}

/* 动态网格背景 */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 134, 193, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 134, 193, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* 浮动几何装饰 */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.hero-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,134,193,0.2), transparent);
  top: -10%; right: -5%;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb--2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(26,107,138,0.15), transparent);
  bottom: -8%; left: 10%;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.hero-orb--3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212,230,241,0.12), transparent);
  top: 40%; left: 50%;
  animation: orbFloat 12s ease-in-out infinite 1s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* 粒子 Canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Hero 内容 */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  animation: heroFadeIn 1s ease 0.3s both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(46, 134, 193, 0.15);
  border: 1px solid rgba(46, 134, 193, 0.3);
  border-radius: 30px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 1px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,134,193,0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(46,134,193,0.15); }
}

/* Hero 品牌 Logo */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  animation: heroFadeIn 1s ease 0.1s both;
}
.hero-logo {
  width: 56px;
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.25));
}
.hero-brand-name {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 3px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #60B0F4, #88D4F7, #A8E0F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

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

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  text-decoration: none;
}
.hero-btn--primary {
  background: linear-gradient(135deg, #2E86C1, #1A6B8A);
  color: #fff;
  box-shadow: 0 4px 20px rgba(46,134,193,0.35);
}
.hero-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(46,134,193,0.45);
}
.hero-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}
.hero-btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* Hero 右侧 3D 图标展示 */
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroFadeIn 1s ease 0.6s both;
}

.hero-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 380px;
}

.hero-icon-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  cursor: default;
  aspect-ratio: 4 / 3;
}
.hero-icon-card:nth-child(1) { animation: cardFloat 6s ease-in-out infinite; }
.hero-icon-card:nth-child(2) { animation: cardFloat 6s ease-in-out infinite 1.5s; }
.hero-icon-card:nth-child(3) { animation: cardFloat 6s ease-in-out infinite 3s; }
.hero-icon-card:nth-child(4) { animation: cardFloat 6s ease-in-out infinite 4.5s; }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-icon-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(46,134,193,0.3);
  transform: scale(1.05);
}
.hero-icon-card .hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== 2. 粘性导航栏 ========== */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(232,237,242,0.5);
  height: 60px;
  transition: box-shadow 0.3s ease;
}
.sticky-nav.scrolled {
  box-shadow: 0 2px 24px rgba(10,42,68,0.08);
}
.sticky-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 95px;
  height: auto;
}
.nav-logo span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-links .nav-link:hover {
  background: rgba(46,134,193,0.06);
  color: var(--primary);
}
.nav-links .nav-link .arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.nav-links .nav-link:hover .arrow {
  transform: rotate(180deg);
}

/* 导航下拉菜单 */
.nav-link-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 210px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232,237,242,0.8);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(10,42,68,0.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.nav-link:hover .nav-link-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-link-dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text-primary);
  border-radius: 8px;
  transition: all 0.15s ease;
}
.nav-link-dropdown a:hover {
  background: rgba(46,134,193,0.06);
  color: var(--primary);
  padding-left: 22px;
}

/* 导航右侧辅助操作区 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-actions .action-link {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  cursor: pointer;
}
.nav-actions .action-link:hover {
  color: var(--primary);
}

/* ========== 3. 页面主体内容区 ========== */
.home-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 4. Section 标题 ========== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-header-left .section-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46,134,193,0.1), rgba(10,42,68,0.05));
  border-radius: 10px;
}
.section-header-left .section-icon svg,
.section-header-left .section-icon .section-icon-img {
  width: 20px;
  height: 20px;
  display: block;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 32px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 2px;
}
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 18px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}
.section-more:hover {
  color: var(--primary);
  border-color: var(--primary-light);
  background: rgba(46,134,193,0.04);
}
.section-more svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  transition: transform 0.2s ease;
}
.section-more:hover svg {
  transform: translateX(3px);
}

/* ========== 5. 产品展示区 ========== */
.products-section {
  padding: 60px 0 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 24px 24px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(10,42,68,0.1);
  border-color: transparent;
}
.product-card:hover::before {
  opacity: 1;
}

.product-card .card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46,134,193,0.08), rgba(10,42,68,0.04));
  border-radius: 12px;
  margin-bottom: 14px;
}
.product-card .card-icon svg,
.product-card .card-icon .card-icon-img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  display: block;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.product-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  transition: gap 0.2s ease;
  text-decoration: none;
}
.product-card .card-link:hover {
  gap: 8px;
}
.product-card .card-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

.product-card .card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(46,134,193,0.04), transparent 70%);
  pointer-events: none;
  transition: all 0.5s ease;
  opacity: 0;
}
.product-card:hover .card-glow {
  opacity: 1;
}

/* ========== 6. 数据统计条 ========== */
.stats-bar {
  background: linear-gradient(135deg, #0A2A44, #1A5276);
  padding: 40px 0;
  margin: 40px 0 0;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  text-align: center;
  padding: 10px;
}
.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #60B0F4, #A8E0F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
}

/* ========== 7. 案例展示区 ========== */
.cases-section {
  padding: 48px 0 20px;
}

.cases-scroll-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 -8px;
  padding: 8px;
}
.cases-scroll-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: caseScroll 40s linear infinite;
  padding: 4px 0;
}
.cases-scroll-wrap.paused .cases-scroll-track {
  animation-play-state: paused;
}
@keyframes caseScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.case-card {
  flex-shrink: 0;
  width: 175px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.35s ease;
  text-decoration: none;
  display: block;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(10,42,68,0.1);
  border-color: transparent;
}

.case-card-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  background: var(--white-matte);
}
.case-card-name {
  display: block;
  padding: 10px 12px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-card:hover .case-card-name {
  color: var(--primary);
}

/* ========== 8. 新闻区 ========== */
.news-section {
  padding: 48px 0 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.35s ease;
  text-decoration: none;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(10,42,68,0.08);
  border-color: rgba(46,134,193,0.15);
}

.news-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.news-card-date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-light);
  background: var(--white-matte);
  padding: 2px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.news-card:hover .news-card-date {
  background: rgba(46,134,193,0.06);
  color: var(--primary);
  border-color: rgba(46,134,193,0.2);
}
.news-card-cat {
  font-size: 11px;
  color: var(--text-light);
  padding: 1px 8px;
  border-radius: 3px;
  background: var(--white-matte);
}

.news-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover .news-card-title {
  color: var(--primary);
}

/* 新闻空/加载状态 */
.news-loading, .news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 14px;
}

/* ========== 9. Footer ========== */
.home-footer {
  background: linear-gradient(135deg, #061B2E, #0D3B5E, #061B2E);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 36px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.footer-col p, .footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  text-decoration: none;
  display: block;
}
.footer-col a:hover {
  color: rgba(255,255,255,0.9);
}
.footer-col .company-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.footer-col .contact-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col .contact-row svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255,255,255,0.5);
  fill: none;
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ========== 10. 滚动渐入动画 ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========== 11. 响应式 ========== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .hero-title { font-size: 36px; }
  .hero-section { height: auto; min-height: 520px; padding: 80px 0 60px; }

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

@media (max-width: 768px) {
  .sticky-nav { height: 52px; }
  .nav-logo span { display: none; }
  .nav-logo img { width: 80px; }
  .nav-actions .action-link { padding: 4px 6px; font-size: 11px; }
  .nav-links .nav-link { padding: 6px 12px; font-size: 12px; }

  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 14px; }
  .hero-btn { padding: 10px 22px; font-size: 13px; }
  .hero-section { min-height: 400px; padding: 60px 0 40px; }

  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card { padding: 20px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-number { font-size: 28px; }

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

  .home-main { padding: 0 16px; }

  .section-title { font-size: 18px; }
  .section-more { font-size: 12px; padding: 5px 14px; }

  .case-card { width: 140px; }
  .case-card-img { height: 85px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-col .contact-row { justify-content: center; }
}
