/* 海弗官网 — 版式参考 shaycare-demo/index.html，色系统一为医疗蓝 */

:root {
  --brand: #0b63b8;
  --brand-dark: #084a8a;
  --heading: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --footer-bg: #f3f4f6;
  --white: #fff;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--heading);
  background: var(--white);
  line-height: 1.6;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 20px;
}

.logo img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.nav-main {
  display: flex;
  align-items: stretch;
  flex: 1;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  height: 96px;
  padding: 0 18px;
  font-size: 15px;
  color: var(--heading);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li > a[aria-expanded="true"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.nav-list > li.has-sub:hover .sub-nav,
.nav-list > li.has-sub:focus-within .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-nav {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.sub-nav a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--muted);
}

.sub-nav a:hover {
  background: rgba(11, 99, 184, 0.06);
  color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: none;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--heading);
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: flex;
  }

  .nav-main {
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    max-height: min(72vh, 520px);
    overflow-y: auto;
  }

  .nav-main.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-list > li > a {
    height: auto;
    padding: 14px 20px;
    border-bottom: 1px solid #f2f2f2;
    border-left: 3px solid transparent;
  }

  .nav-list > li > a:hover,
  .nav-list > li > a[aria-expanded="true"] {
    border-bottom-color: #f2f2f2;
    border-left-color: var(--brand);
  }

  .sub-nav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 12px;
    display: none;
  }

  .nav-list > li.sub-open .sub-nav {
    display: block;
  }
}

.hero {
  position: relative;
  min-height: min(70vh, 700px);
  background:
    linear-gradient(120deg, rgba(8, 74, 138, 0.82), rgba(11, 99, 184, 0.55)),
    url("./assets/banner-texture.jpeg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 48px 24px;
}

.hero-inner {
  max-width: 920px;
}

.hero .zh-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero .en-sub {
  margin: 18px 0 0;
  font-size: clamp(12px, 1.6vw, 15px);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  opacity: 0.95;
  line-height: 1.6;
}

.sec-head {
  text-align: center;
  margin-bottom: 48px;
}

.sec-head .zh {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.02em;
}

.sec-head .en {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.culture-section {
  padding: 72px 0 64px;
  background: var(--white);
}

.culture-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px 40px;
  align-items: start;
}

.culture-col.left .value-block {
  text-align: right;
}

.culture-col.right .value-block {
  text-align: left;
}

.value-block {
  margin-bottom: 28px;
}

.value-block h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--brand);
  font-weight: 700;
}

.value-block p {
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: var(--heading);
}

.culture-center {
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}

.culture-center img {
  margin: 0 auto 16px;
  width: 200px;
  height: auto;
}

.culture-center .slogan {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
}

.about-section {
  padding: 24px 0 80px;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-copy .lead {
  font-size: 20px;
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 2;
}

.about-copy .body {
  font-size: 16px;
  color: var(--muted);
  line-height: 2;
  margin: 0 0 14px;
  text-align: justify;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 28px;
  height: 52px;
  border: 2px solid var(--brand);
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
}

.about-photo {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 617 / 400;
  object-fit: cover;
}

.about-marquee-wrap {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  overflow: hidden;
  min-height: 280px;
}

.about-marquee-wrap::before,
.about-marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.about-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #eef2f7, transparent);
}

.about-marquee-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, #eef2f7, transparent);
}

.about-marquee {
  overflow: hidden;
  padding: 18px 0;
}

.about-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: about-marquee-scroll 42s linear infinite;
}

.about-marquee-wrap:hover .about-marquee-track {
  animation-play-state: paused;
}

.about-marquee-card {
  flex: 0 0 clamp(260px, 36vw, 400px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: var(--white);
}

.about-marquee-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

@keyframes about-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .about-marquee-track {
    animation: none;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .about-marquee-card {
    scroll-snap-align: center;
  }
}

.news-section {
  padding: 0 0 72px;
}

.news-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.news-head-row .sec-head {
  text-align: left;
  margin: 0;
}

.news-layout {
  display: grid;
  grid-template-columns: 432px 1fr;
  gap: 32px;
  align-items: start;
}

.feature-card {
  border: 1px solid var(--line);
  transition: box-shadow 0.25s;
}

.feature-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-card a {
  display: block;
}

.feature-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 406 / 272;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(11, 99, 184, 0.22), rgba(8, 74, 138, 0.88)),
    url("./assets/banner-texture.jpeg") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.65);
}

.feature-card-visual-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.feature-card-visual-label {
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.feature-card-visual-photo {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #0f172a;
}

.feature-card-visual-photo img {
  width: 100%;
  aspect-ratio: 406 / 272;
  object-fit: cover;
  display: block;
}

.feature-card .inner {
  padding: 14px 16px 18px;
}

.feature-card .title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.feature-card .desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.feature-card .date {
  font-size: 12px;
  color: #999;
}

.news-tabs {
  border-bottom: 2px solid var(--line);
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.news-tabs button {
  border: none;
  background: none;
  padding: 12px 20px;
  font-size: 15px;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
}

.news-tabs button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.news-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.news-row:last-child {
  border-bottom: none;
}

.news-row-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.news-row h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.news-row h4 a:hover {
  color: var(--brand);
}

.news-row-meta {
  font-size: 12px;
  color: #999;
}

.empty-hint {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.mini-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.mini-section h2 {
  margin: 0 0 16px;
  font-size: 26px;
  color: var(--heading);
}

.mini-section p {
  margin: 0 0 10px;
  color: var(--muted);
  max-width: 900px;
}

.contact-hero {
  position: relative;
  padding: 72px 0 96px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(8, 47, 92, 0.95), rgba(11, 99, 184, 0.9)),
    url("./assets/banner-texture.jpeg") center / cover no-repeat;
}

.contact-hero .sec-head .zh,
.contact-hero .sec-head .en {
  color: var(--white);
}

.contact-hero-inner {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 16px;
  line-height: 1.85;
}

.contact-hero-inner hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  margin: 28px auto;
  max-width: 200px;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-cards .card {
  text-align: left;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 4px;
  min-width: 280px;
  font-size: 15px;
  line-height: 1.9;
}

.contact-cards .card a {
  color: #e8f4ff;
  text-decoration: underline;
}

.site-footer {
  background: var(--footer-bg);
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 28px;
}

.footer-col-brand {
  max-width: 420px;
}

.footer-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-logo-img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.footer-company-name {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-brand-line {
  width: 100%;
  max-width: 280px;
  height: 1px;
  background: var(--line);
  margin: 18px 0 14px;
}

.footer-license {
  margin: 22px 0 0;
  padding: 12px 12px 10px;
  max-width: 280px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.footer-license img {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #eef2f7;
}

.footer-license figcaption {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}

.footer-lang {
  margin: 0;
  font-size: 16px;
  color: var(--heading);
}

.footer-channels {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14px;
  color: var(--muted);
}

.footer-channels a {
  color: var(--brand);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.qr-block .label {
  font-size: 16px;
  margin: 0 0 4px;
}

.qr-block .hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}

.qr-block img {
  width: 125px;
  height: 125px;
  object-fit: cover;
}

.footer-legal {
  text-align: center;
  padding: 22px 24px 28px;
  border-top: 1px solid var(--line);
}

.footer-icp {
  margin: 0 0 10px;
  font-size: 13px;
  color: #888;
}

.footer-icp-link {
  color: #888;
  text-decoration: none;
  cursor: default;
}

.footer-icp-link:hover {
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
}

.footer-copyright {
  margin: 0;
  font-size: 12px;
  color: #989898;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .culture-grid {
    grid-template-columns: 1fr;
  }

  .culture-col.left .value-block,
  .culture-col.right .value-block {
    text-align: left;
  }

  .about-split {
    grid-template-columns: 1fr;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-row {
    grid-template-columns: 100px 1fr;
  }

  .news-row-meta {
    grid-column: 1 / -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

/* ----- 中英文切换（首页与文章页共用） ----- */
html[lang="zh-CN"] [lang="en"],
html[lang="zh"] [lang="en"] {
  display: none !important;
}

html[lang="en"] [lang="zh"] {
  display: none !important;
}

.lang-btn {
  background: none;
  border: none;
  padding: 0 6px;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.lang-btn:hover {
  color: var(--brand);
}

.lang-btn.is-active {
  color: var(--brand);
  font-weight: 700;
}

.nav-lang .lang-switch-group {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 96px;
  padding: 0 16px;
  white-space: nowrap;
}

.footer-lang-row .lang-switch-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .nav-lang .lang-switch-group {
    height: auto;
    padding: 14px 20px;
    border-bottom: 1px solid #f2f2f2;
    width: 100%;
    justify-content: flex-start;
  }
}
