/* ===== 里外医疗首页样式 ===== */
:root {
    --livai-teal: #26B7BC;
    --livai-dark: #021642;
    --livai-navy: #102A5B;
    --livai-footer: #1E2D5A;
    --livai-light-teal: #9BCBCB;
    --livai-pill: #A0D2D2;
    --livai-slate: #64748B;
    --livai-text-gray: #45464F;
    --livai-bg: #F1F5F9;
    --livai-turquoise: #3ED7D0;
}
body { font-family: 'Inter', 'PingFang SC', 'Noto Sans SC', 'Source Han Sans CN VF', sans-serif; color: var(--livai-dark); }

/* Nav */
.navbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); position: fixed; top: 0; right: 0; left: 0; padding: 0 64px; z-index: 1000; min-height: 68px; will-change: transform; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1920px; padding: 0; }
.navbar-brand img { height: 24px; width: auto; }
.navbar-toggler { border: none; padding: 4px 8px; }
.navbar-toggler:focus { box-shadow: none; }
.nav-links { display: flex; gap: 54px; list-style: none; margin: 0; padding: 0; }
.nav-links li { position: relative; }
.nav-links > li > a { color: #3A476E; text-decoration: none; font-size: 16px; font-weight: 400; line-height: 1.69; position: relative; transition: color 0.3s; display: block; }
.nav-links > li > a.active, .nav-links > li > a:hover { color: var(--livai-teal); }
.nav-links > li > a.active::after { content: ''; position: absolute; bottom: -4px; left: 2px; right: 2px; height: 1px; background: var(--livai-teal); }

/* Nav Dropdown */
/* Detection series dropdown: product cards (Figma node 2214-2762) */
.nav-dropdown .nav-dropdown-panel {
  position: fixed; left: 0; right: 0; top: 68px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 30px 0; z-index: 99;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.nav-dropdown:hover .nav-dropdown-panel { opacity: 1; visibility: visible; }
.nav-dropdown-panel .container {
  display: flex; justify-content: flex-end; gap: 40px;
  padding-right: clamp(20px, calc((100vw - 1920px)/2 + 484px), 484px);
}

.nav-dropdown-card {
  display: block; width: 282px; border-radius: 28px; overflow: hidden;
  background: #fff; text-decoration: none;
  box-shadow: 0 2px 12px rgba(16,42,91,0.06);
  transition: box-shadow .25s, transform .25s;
  flex-shrink: 0; line-height: 0;
}
.nav-dropdown-card:hover { box-shadow: 0 4px 20px rgba(16,42,91,0.14); transform: translateY(-2px); }
.nav-dropdown-card-figma { width: 282px; height: auto; display: block; }

@media (max-width: 991px) {
    .navbar { padding: 0 20px; min-height: 56px; }
    .navbar-collapse { background: rgba(255,255,255,0.98); margin: 0 -20px; padding: 16px 20px; border-radius: 0 0 16px 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
    .nav-links { flex-direction: column; gap: 20px; }
    .nav-dropdown .nav-dropdown-panel { position: static; opacity: 1; visibility: visible; box-shadow: none; padding: 10px 0 0; background: transparent; }
    .nav-dropdown-panel .container { flex-direction: row; gap: 12px; justify-content: flex-start; padding-right: 0; }
    .nav-dropdown-card { width: 160px; border-radius: 16px; }
    .nav-dropdown-card-figma { width: 160px; height: auto; }
}

/* Hero Carousel */
.hero-carousel { position: relative; width: 100%; margin-top: 68px; overflow: hidden; }
.hero-carousel::before { content: ''; display: block; padding-top: 51.82%; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.carousel-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.carousel-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.carousel-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(0,0,0,0.2) 79%),radial-gradient(ellipse at 50% 42%,rgba(255,255,255,0) 0%,rgba(0,0,0,0.2) 79%); }
.carousel-content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 50px; }
.carousel-title { color: var(--livai-light-teal); font-size: clamp(28px,4vw,60px); font-weight: 500; letter-spacing: 0.3833em; line-height: 1.6; margin: 0; }
.carousel-sub { font-size: clamp(16px,2vw,28px); color: #fff; letter-spacing: 0.1429em; margin: 12px 0 0; font-weight: 350; }
.carousel-slide-link { position: absolute; inset: 0; z-index: 2; }
.carousel-cta { display: inline-flex; align-items: center; justify-content: center; background: var(--livai-pill); color: #fff; font-size: clamp(18px,2vw,28px); font-weight: 500; padding: 3px 29px 4px; border-radius: 28px; text-decoration: none; transition: background 0.3s; white-space: nowrap; }
.carousel-cta:hover { background: var(--livai-teal); color: #fff; }
.carousel-brand-tag { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); z-index: 1; font-size: clamp(18px,2vw,28px); color: #fff; letter-spacing: 0.1429em; }
.carousel-dots { position: absolute; right: clamp(10px, 2.45vw, 47px); top: 50%; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 0.73vw, 14px); transform: translateY(-50%); }
.carousel-dot { width: clamp(9px, 2.4vw, 46px); height: clamp(9px, 2.4vw, 46px); border-radius: 50%; background: transparent; border: clamp(1.4px, 0.365vw, 7px) solid rgba(38,183,188,0.5); cursor: pointer; transition: background .3s, border-color .3s; flex-shrink: 0; box-sizing: border-box; }
.carousel-dot.active { background: var(--livai-teal); border-color: transparent; }
/* Mini-program popup on slide 3 */
.slide3-popup-wrap { position: absolute; left: 46.7%; bottom: 28%; z-index: 20; }
.slide3-popup-hotspot {
  width: clamp(100px,10vw,195px); height: clamp(24px,3vw,44px);
  background: transparent; border: none; cursor: pointer;
  border-radius: 22px; transition: background .25s;
}
.slide3-popup-hotspot:hover { background: rgba(27,108,114,0.15); }
.slide3-popup-box { display: none; position: fixed; z-index: 9999; pointer-events: none; }
.slide3-popup-box img { display: block; width: auto; height: clamp(130px,20vw,233px); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,0.3); }

/* Mission */
.section-mission { padding: 80px 0; background: #fff; }
.mission-wrap { max-width: 1440px; margin: 0 auto; padding: 0 64px; display: flex; align-items: center; gap: 80px; }
.mission-circle { flex-shrink: 0; position: relative; width: 448px; height: 448px; }
.mission-circle .ring-o { position: absolute; inset: -31px; border: 1px solid #C5C6D0; border-radius: 50%; }
.mission-circle .ring-i { position: absolute; inset: 0; border: 2px dashed #B9ECEC; border-radius: 50%; }
.mission-circle .label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 50px; font-weight: 500; color: var(--livai-dark); letter-spacing: -0.0192em; }
.mission-circle .dot-t, .mission-circle .dot-b { position: absolute; width: 16px; height: 16px; background: var(--livai-teal); border-radius: 50%; left: 50%; transform: translateX(-50%); }
.mission-circle .dot-t { top: -8px; } .mission-circle .dot-b { bottom: -8px; }
.mission-texts { display: flex; flex-direction: column; gap: 46px; max-width: 691px; }
.mission-item { display: flex; gap: 12px; align-items: flex-start; }
.mission-bar { width: 3px; min-height: 26px; background: var(--livai-teal); border-radius: 9999px; flex-shrink: 0; margin-top: 8px; border-radius: 9999px; }
.mission-item h3 { font-size: 20px; font-weight: 500; color: var(--livai-dark); line-height: 32px; margin: 0; }
.mission-item p { font-size: 16px; color: var(--livai-text-gray); line-height: 1.69; margin: 0; }

/* Company Desc */
.section-company { width: 100%; background: url('../images/figma-design/company-bg-27f393.webp') center/cover no-repeat; padding: 135px 20px; display: flex; justify-content: center; }
.company-inner { max-width: 780px; text-align: center; }
.company-intro { font-size: 20px; font-weight: 500; color: var(--livai-dark); line-height: 40px; letter-spacing: 0.15em; margin-bottom: 24px; }
.company-detail { font-size: 16px; color: var(--livai-text-gray); line-height: 29px; letter-spacing: 0.0938em; margin-bottom: 16px; }
.company-tagline { font-size: 20px; font-weight: 500; color: var(--livai-dark); line-height: 24px; letter-spacing: 0.075em; margin-top: 16px; }

/* Values */
.section-values { padding: 80px 0; background: #fff; }
.values-wrap { max-width: 1440px; margin: 0 auto; padding: 0 64px; }
.section-title { font-size: 50px; font-weight: 500; color: var(--livai-dark); text-align: center; margin-bottom: 80px; letter-spacing: -0.0192em; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { background: #fff; border: 1px solid rgba(197,198,208,0.5); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 8px; }
.value-card h4 { font-size: 20px; font-weight: 500; color: var(--livai-dark); margin: 0; padding: 24px 0 0; }
.value-card p { font-size: 16px; color: var(--livai-text-gray); line-height: 1.69; margin: 0; padding-bottom: 8px; }
.value-bar { width: 48px; height: 4px; background: var(--livai-teal); border-radius: 9999px; }

/* Articles */
.section-articles { padding: 48px 64px; max-width: 1440px; margin: 0 auto; }
.articles-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; flex-wrap: wrap; gap: 24px; }
.articles-sub { font-size: 20px; font-weight: 500; color: var(--livai-navy); }
.articles-tabs { display: flex; gap: 8px; }
.art-tab { padding: 8px 16px; border-radius: 9999px; font-size: 12px; font-weight: 500; font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.3s; border: 1px solid rgba(226,232,240,0.6); background: #fff; color: var(--livai-slate); }
.art-tab.active { background: var(--livai-navy); color: #fff; border-color: var(--livai-navy); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.art-card { background: #fff; border: 1px solid var(--livai-bg); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 15px; box-shadow: 0 10px 40px -10px rgba(16,42,91,0.04); }
.art-img { width: 100%; aspect-ratio: 458/192; object-fit: cover; border-radius: 16px; }
.art-tag { font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--livai-turquoise); letter-spacing: 0.05em; }
.art-title { font-size: 18px; font-weight: 500; color: var(--livai-navy); margin: 0; line-height: 1.375; }
.art-excerpt { font-size: 14px; color: var(--livai-slate); line-height: 1.64; margin: 0; }
.art-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--livai-bg); }
.art-date { font-size: 14px; color: var(--livai-slate); }
.art-read { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--livai-navy); text-decoration: none; }
.art-read:hover { color: var(--livai-teal); }
.articles-more { text-align: center; }
.articles-more a { font-size: 12px; color: var(--livai-navy); text-decoration: none; font-weight: 500; }
.articles-more a:hover { color: var(--livai-teal); }

/* Experts */
.section-experts { padding: 80px 0 0; }
.experts-title { font-size: 20px; font-weight: 500; color: var(--livai-navy); margin-bottom: 48px; }
.experts-scroll { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 32px; scrollbar-width: none; }
.experts-scroll::-webkit-scrollbar { display: none; }
.exp-card { flex: 0 0 458px; background: #fff; border: 1px solid var(--livai-bg); border-radius: 24px; overflow: hidden; box-shadow: 0 10px 40px -10px rgba(16,42,91,0.04); display: flex; flex-direction: column; }
.exp-thumb { position: relative; height: 208px; background: #0F172A; display: flex; align-items: center; justify-content: center; }
.exp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.exp-play { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.2); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; }
.exp-play::after { content: ''; display: block; width: 0; height: 0; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.exp-time { position: absolute; bottom: 14px; right: 14px; background: rgba(0,0,0,0.4); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 4px; font-family: 'Inter', sans-serif; }
.exp-info { padding: 24px; }
.exp-info h6 { font-size: 16px; font-weight: 500; color: var(--livai-navy); margin: 0; }
.exp-info p { font-size: 14px; color: var(--livai-slate); margin: 8px 0 0; }

/* Footer */
.site-footer { background: var(--livai-footer); color: #fff; padding: 110px 0 0; }
.footer-wrap { max-width: 1440px; margin: 0 auto; padding: 0 64px; }
.footer-main { display: flex; align-items: flex-start; gap: 43px; padding-bottom: 79px; flex-wrap: wrap; }
.footer-brand { width: 183px; flex-shrink: 0; }
.footer-brand .socials { display: flex; flex-wrap: wrap; gap: 25px; row-gap: 12px; margin-top: 22px; }
.footer-brand .socials img { width: 27px; height: 27px; }
.footer-logo { margin-top: 40px; }
.footer-logo img { height: 27px; width: auto; }
.footer-links { display: flex; gap: 88px; }
.footer-col h5 { font-size: 18px; font-weight: 500; color: #fff; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 12px; color: #fff; text-decoration: none; opacity: 0.9; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-qrs { display: flex; gap: 40px; margin-left: auto; flex-shrink: 0; }
.footer-qr { text-align: center; }
.footer-qr img { width: 111px; height: 111px; border: 1px solid var(--livai-light-teal); border-radius: 4px; padding: 7px; background: #fff; object-fit: contain; }
.footer-qr p { font-size: 11px; margin-top: 6px; color: var(--livai-light-teal); }
.footer-bottom { border-top: 0.5px solid var(--livai-teal); padding: 20px 0 30px; text-align: center; font-size: 10px; color: #B3B3B3; line-height: 2; }
.footer-bottom a { color: #B3B3B3; text-decoration: underline; }

/* Responsive */
@media (max-width: 1200px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .mission-wrap { flex-direction: column; text-align: center; }
    .mission-circle { width: 300px; height: 300px; }
    .mission-circle .ring-o { inset: -21px; }
    .mission-circle .label { font-size: 36px; }
}

/* Mobile: Figma 390px breakpoint */
@media (max-width: 767px) {
    .navbar { padding: 0 16px; min-height: 56px; }
    .navbar-collapse { background: rgba(255,255,255,0.98); margin: 0 -16px; padding: 20px 16px; border-radius: 0 0 16px 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
    .nav-links { flex-direction: column; gap: 20px; }
    .nav-dropdown .nav-dropdown-panel { position: static; opacity: 1; visibility: visible; box-shadow: none; padding: 10px 0 0; background: transparent; }
    .nav-dropdown-panel .container { flex-direction: row; gap: 12px; justify-content: flex-start; padding-right: 0; }
    .nav-dropdown-card { width: 160px; border-radius: 16px; }
    .nav-dropdown-card-figma { width: 160px; height: auto; }
    .hero-carousel { margin-top: 56px; }
    .hero-carousel::before { padding-top: 51.82%; }
    .carousel-content { padding: 20px 16px; }
    .carousel-title { font-size: 15px; letter-spacing: 0.533em; }
    .carousel-cta { font-size: 11px; padding: 3px 29px 4px; }
    .carousel-dots { right: 12px; gap: 12px; }
    .carousel-dot { width: 9px; height: 9px; border-width: 1.5px; }
    .slide3-popup-wrap { left: 60%; bottom: 20%; }
    .slide3-popup-hotspot { width: 100px; height: 24px; }
    .section-mission { padding: 20px 16px 48px; }
    .mission-wrap { flex-direction: column; gap: 36px; padding: 0; }
    .mission-circle { width: 97px; height: 97px; margin-bottom: 8px; }
    .mission-circle .ring-o { inset: -8px; }
    .mission-circle .label { font-size: 16px; }
    .mission-circle .dot-t, .mission-circle .dot-b { width: 6px; height: 6px; }
    .mission-circle .dot-t { top: -3px; } .mission-circle .dot-b { bottom: -3px; }
    .mission-texts { gap: 24px; }
    .mission-item h3 { font-size: 14px; line-height: 20px; }
    .mission-item p { font-size: 13px; line-height: 1.54; }
    .section-company { padding: 32px 40px 32px; }
    .company-inner { text-align: left; }
    .company-intro { font-size: 14px; line-height: 25px; margin-bottom: 12px; }
    .company-detail { font-size: 14px; line-height: 25px; }
    .company-tagline { font-size: 16px; }
    .section-values { padding: 32px 16px; }
    .section-title { font-size: 20px; margin-bottom: 32px; }
    .values-grid { grid-template-columns: 1fr; gap: 16px; width: 300px; margin: 0 auto; }
    .value-card { padding: 15px 40px; }
    .value-card h4 { font-size: 16px; padding: 14px 0 0; }
    .value-card p { font-size: 14px; padding-bottom: 15px; }
    .section-articles { padding: 32px 16px; }
    .articles-top { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
    .articles-sub { font-size: 16px; }
    .articles-grid { grid-template-columns: 1fr; gap: 16px; }
    .section-experts { padding: 40px 0 0; }
    .experts-title { font-size: 16px; margin-bottom: 16px; }
    .exp-card { flex: 0 0 358px; }
    .site-footer { padding: 47px 0 0; }
    .footer-wrap { padding: 0 16px; }
    .footer-main { flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-bottom: 0; }
    .footer-brand { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .footer-brand .socials { order: 2; margin-top: 24px; }
    .footer-logo { order: 1; margin-top: 0; }
    .footer-links { flex-wrap: wrap; gap: 24px; justify-content: center; }
    .footer-qrs { margin-left: 0; justify-content: center; margin-top: 24px; padding-bottom: 32px; }
    .footer-bottom { padding: 20px 16px 27px; }
}

@media (max-width: 576px) {
    .footer-links { gap: 20px; }
}
