/* ==========================================================================
   东蔓医疗官网样式
   结构：基础样式 → 通用布局 → 导航 → 首屏 → 宏观政策 → 产品 → 愿景 → 关于 → 页脚
   修改提示：颜色、字号、间距都集中在各区块中，按需调整即可
   ========================================================================== */

:root {
  --color-teal: #14b8a6; /* 主色（tailwind teal-500） */
  --color-brand: #08cabe; /* 品牌青绿 */
  --color-navy: #202f6c; /* 标题深蓝 */
  --color-text: #111827; /* 正文主色 */
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --font-sans: Inter, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", Avenir, Helvetica, Arial,
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   通用布局
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
}

.container--wide {
  /* 产品 / 愿景 / 关于 / 页脚在桌面端使用更宽的左右留白（见下方 1024px 断点） */
}

.section-head {
  text-align: center;
}

.section-head h2 {
  font-size: 30px;
  line-height: 2.25rem;
  font-weight: 700;
}

/* 浅色区块的标题使用深色，深色区块（如宏观政策）沿用继承的白色 */
.products .section-head h2 {
  color: var(--color-text);
}

.section-sub {
  margin-top: 16px;
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }

  .section-head h2 {
    font-size: 36px;
    line-height: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 32px;
  }

  .container--wide {
    padding-inline: 112px;
  }
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand img {
  width: auto;
  height: 40px;
  max-width: 160px;
  object-fit: contain;
}

.nav {
  display: none;
}

.nav-link {
  color: #374151;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--color-teal);
}

.nav-link.active {
  color: var(--color-teal);
}

.nav-toggle {
  display: inline-flex;
  padding: 0;
  border: none;
  background: none;
  color: #4b5563;
  transition: color 0.15s;
}

.nav-toggle:hover {
  color: var(--color-teal);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  padding: 12px 16px;
  border-top: 1px solid #f3f4f6;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav .nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}

.mobile-nav .nav-link:hover {
  background: #f0fdfa;
  color: #0d9488;
}

.mobile-nav .nav-link.active {
  background: #f0fdfa;
  color: #0d9488;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 500;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .nav {
    gap: 32px;
  }
}

/* --------------------------------------------------------------------------
   首屏 Banner
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
}

.hero-slide {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 896px;
  padding-inline: 24px;
  color: #fff;
  text-align: left;
}

.hero-brand {
  color: var(--color-brand);
  font-size: 30px;
  line-height: 2.25rem;
  font-weight: 700;
}

.hero-title {
  color: var(--color-navy);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}

.hero-desc {
  max-width: 655px;
  color: #333;
  font-size: 14px;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .hero-slide {
    height: 500px;
  }

  .hero-content {
    gap: 32px;
    max-width: 1024px;
    padding-inline: 40px;
  }

  .hero-brand {
    font-size: 36px;
    line-height: 2.5rem;
  }

  .hero-title {
    font-size: 36px;
    line-height: 2.5rem;
  }

  .hero-desc {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .hero-slide {
    height: 100vh;
  }

  .hero-content {
    padding-inline: 96px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-desc {
    font-size: 18px;
  }
}

@media (min-width: 1280px) {
  .hero-content {
    padding-inline: 128px;
  }
}

/* --------------------------------------------------------------------------
   宏观政策
   -------------------------------------------------------------------------- */
.policy {
  position: relative;
  padding-block: 64px;
  color: #fff;
  background-image: url("../assets/images/policy-bg.png");
  background-position: center;
  background-size: cover;
}

.policy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30, 58, 138, 0.8), rgba(88, 28, 135, 0.6));
}

.policy .container {
  position: relative;
}

.policy h2 {
  font-size: 30px;
  line-height: 2.25rem;
  font-weight: 700;
  color: #fff;
}

.policy-intro {
  max-width: 768px;
  margin: 16px auto 0;
  color: #dbeafe;
}

.policy-body {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
}

/* 左侧年份时间轴 */
.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.year-start {
  font-size: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.timeline-line {
  position: relative;
  display: block;
  width: 16px;
  height: 32px;
}

.timeline-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0)
  );
}

.year-end {
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
}

/* 右侧政策卡片 */
.policy-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.policy-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.policy-card--light {
  background: rgba(255, 255, 255, 0.1);
}

.policy-card--teal {
  background: rgba(20, 184, 166, 0.8);
}

.policy-card h3 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
}

.policy-card p {
  color: #eff6ff;
  font-size: 14px;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .policy {
    padding-block: 80px;
  }

  .policy h2 {
    font-size: 36px;
    line-height: 2.5rem;
  }

  .policy-body {
    gap: 40px;
    margin-top: 64px;
  }

  .timeline {
    gap: 24px;
  }

  .timeline-line {
    height: 96px;
  }

  .policy-card {
    padding: 32px;
  }
}

@media (min-width: 1024px) {
  .policy-body {
    grid-template-columns: 240px 1fr;
  }

  .timeline-line {
    height: 144px;
  }
}

/* --------------------------------------------------------------------------
   我们的产品
   -------------------------------------------------------------------------- */
.products {
  padding-block: 80px;
}

.product-grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.product-media {
  height: 208px;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.product-body h3 {
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.375;
  font-weight: 600;
}

.product-body p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.625;
}

.products-outro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
  text-align: center;
}

.products-outro h3 {
  font-size: 24px;
  line-height: 2rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 64px;
  }

  .product-media {
    height: 240px;
  }

  .products-outro {
    margin-top: 64px;
  }
}

/* --------------------------------------------------------------------------
   我们的愿景
   -------------------------------------------------------------------------- */
.vision {
  padding-bottom: 180px;
  color: #fff;
  /* 锚点跳转时留出固定导航栏的高度 */
  scroll-margin-top: 64px;
}

.vision-stage {
  position: relative;
  height: 300px;
}

.vision-bg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding: 24px 16px 0;
  text-align: center;
  background-image: url("../assets/images/vision-bg.png");
  background-position: center;
  background-size: cover;
}

.vision-title {
  font-size: 30px;
  line-height: 2.25rem;
  font-weight: 400;
}

.vision-divider {
  width: 64px;
  height: 4px;
  border-radius: 9999px;
  background: #fff;
}

.vision-slogan {
  margin-top: 24px;
  font-size: 30px;
  line-height: 2.25rem;
  font-weight: 600;
}

.vision-slogan span {
  padding-left: 12px;
  color: #5eead4;
}

/* 青绿价值观卡片（负边距压在背景图上） */
.values-card {
  margin-top: -80px;
  padding: 32px 24px 40px;
  height: 260px;
  border-radius: 12px;
  background: var(--color-brand);
}

.values-card h3 {
  color: #fff;
  font-size: 24px;
  line-height: 2rem;
  font-weight: 700;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.value-item {
  padding: 16px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  text-align: center;
}

.value-item h4 {
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

@media (min-width: 640px) {
  .vision {
    padding-bottom: 130px;
  }

  .vision-stage {
    height: 550px;
  }

  .vision-bg {
    gap: 32px;
    padding-top: 80px;
  }

  .vision-title {
    font-size: 36px;
    line-height: 2.5rem;
  }

  .vision-slogan {
    margin-top: 40px;
    font-size: 48px;
    line-height: 1;
  }

  .values-card {
    margin-top: -240px;
    padding: 56px 32px 40px;
    height: 320px;
  }

  .values-card h3 {
    font-size: 30px;
    line-height: 2.25rem;
  }

  .values-grid {
    margin-top: 56px;
  }

  .value-item {
    padding: 32px;
  }

  .value-item h4 {
    font-size: 30px;
    line-height: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .vision-stage {
    height: 680px;
  }

  .values-card {
    padding-top: 80px;
    height: 370px;
  }
}

/* --------------------------------------------------------------------------
   关于我们
   -------------------------------------------------------------------------- */
.about {
  margin-top: 96px;
  padding-inline: 16px;
  background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1280px;
  margin-inline: auto;
  padding-block: 40px;
}

.about-card {
  flex: 1;
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-title {
  margin-bottom: 12px;
  color: var(--color-teal);
  font-size: 30px;
  line-height: 2.25rem;
  font-weight: 600;
}

.about-company {
  color: var(--color-text-muted);
  font-size: 18px;
  font-weight: 500;
}

.about-block {
  margin-top: 32px;
}

.about-block-head {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.about-block-head i {
  margin-right: 12px;
  color: var(--color-teal);
  font-size: 20px;
}

.about-block-head h3 {
  color: var(--color-teal);
  font-size: 20px;
  font-weight: 500;
}

.about-text {
  color: #374151;
  line-height: 1.625;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  padding: 8px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  background: #eff6ff;
  color: var(--color-teal);
  font-size: 14px;
}

/* 创始人卡片 */
.about-card--founder {
  overflow: hidden;
  padding: 0;
}

.founder-head {
  position: relative;
  overflow: hidden;
  padding: 32px;
  background: var(--color-teal);
  color: #fff;
  text-align: center;
}

.founder-head h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 2rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.founder-title {
  position: relative;
  margin-top: 16px;
  padding-top: 16px;
  font-size: 18px;
  opacity: 0.95;
}

.founder-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
}

.founder-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
}

.founder-block-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.founder-block-head i {
  margin-right: 12px;
  color: var(--color-teal);
  font-size: 18px;
}

.founder-block-head h3 {
  color: var(--color-teal);
  font-size: 18px;
  font-weight: 500;
}

.founder-block p {
  padding-left: 32px;
  color: #374151;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .about {
    margin-top: 0;
    padding-inline: 24px;
  }
}

@media (min-width: 1024px) {
  .about {
    padding-inline: 112px;
  }

  .about-inner {
    flex-direction: row;
    padding-block: 56px;
  }

  .about-card {
    padding: 40px;
  }

  .about-card--main {
    flex: 1.5;
  }

  .about-card--founder {
    padding: 0;
  }

  .about-title {
    font-size: 36px;
    line-height: 2.5rem;
  }

  .founder-head h2 {
    font-size: 30px;
    line-height: 2.25rem;
  }
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: #111827;
  color: #fff;
}

.footer-main {
  padding-block: 40px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand img {
  width: auto;
  height: 40px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
}

.footer-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #d1d5db;
}

.footer-info-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
}

.footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-link-icon img {
  width: auto;
  max-width: 100%;
}

.footer-bottom {
  padding: 24px 16px;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
}

/* 页脚关键词行（便于搜索收录，可按需删减） */
.footer-keywords {
  margin-bottom: 8px;
  color: #9aa3b2;
  font-size: 12px;
  line-height: 1.8;
}

@media (min-width: 640px) {
  .footer-grid {
    gap: 40px;
  }

  .footer-brand,
  .footer-info-item {
    justify-content: flex-start;
  }

  .footer-info {
    gap: 20px;
  }

  .footer-links {
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 48px;
  }

  .footer-info,
  .footer-links {
    grid-column: span 2;
  }

  .footer-links {
    justify-content: flex-end;
  }
}
