/* ==========================================================
   翼遥医学企业官网 - 页面样式
   设计稿基准宽度 1920px，内容区 1600px 居中
   配色取样自设计稿：
     导航深蓝   #04163f → #071c48（渐变）
     主蓝(数字) #05356c
     时间轴蓝   #224484
     点缀金     #eacb94
     标题黑     #333333 / 正文灰 #555555
   ========================================================== */

/* ---------- 全局重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; } /* 锚点平滑滚动兜底 */

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: #555;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* 内容区：设计稿两侧留白 160px（1920 → 1600 居中） */
.container {
  width: calc(100% - 48px);
  max-width: 1600px;
  margin: 0 auto;
}

/* 区块大标题（关于翼遥 / 企业文化 ...） */
.sec-title {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  letter-spacing: 2px;
}

/* ==========================================================
   顶部导航
   ========================================================== */
.site-header {
  background: linear-gradient(180deg, #04163f 0%, #071c48 100%);
  height: 80px;
}
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
}
/* 左侧 Logo：按 logo.png 原始尺寸 190×70 显示，可点击新窗口打开官网 */
.logo { display: block; line-height: 0; }
.logo img { width: 190px; height: 70px; object-fit: contain; display: block; }

.nav {
  display: flex;
  gap: 46px;
  margin-left: auto;
  margin-right: 56px;
}
.nav a {
  position: relative;
  color: #fff;
  font-size: 15px;
  line-height: 80px;
  letter-spacing: 1px;
  transition: color .25s;
}
/* 当前项金色下划线（与设计稿一致） */
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 14px;
  width: 0; height: 2px;
  background: #eacb94;
  transform: translateX(-50%);
  transition: width .25s;
}
.nav a.active { color: #fff; }
.nav a.active::after { width: 28px; }
.nav a:hover { color: #eacb94; }

.app-btn {
  color: #EACB94;
  font-size: 14px;
  border: 1px solid #EACB94;
  padding: 9px 20px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background .25s;
}
.app-btn:hover { background: rgba(234,203,148,.15); }

/* ==========================================================
   首屏 Banner 轮播广告区
   —— 多素材交替切换（互斥展示），宽度全屏撑满；
      两个轮播位（图片位 / 视频位）高度统一：
      舞台固定为图片素材比例 1920:800 = 41.67vw
   ========================================================== */
.banner-carousel { position: relative; }

.car-stage {
  position: relative;
  height: 41.67vw;
  overflow: hidden;
  background: #04163f; /* 素材加载前的底色 */
}

/* 轮播位：绝对定位铺满舞台，透明度 + 可见性互斥切换 */
.car-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}
.car-slide.active { opacity: 1; visibility: visible; z-index: 1; }

.car-slide img,
.car-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 比例不符时居中裁切，无黑边 */
  display: block;
}

/* 视频占位提示层：视频可播放后（.playing）自动隐藏 */
.video-tip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* 不阻挡视频控件 */
  background: rgba(0, 0, 0, .18);
}
.car-slide.playing .video-tip { display: none; }

.play-ico {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  border: 2px solid rgba(255, 255, 255, .9);
}
.play-ico::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-38%, -50%);
  border-left: 18px solid rgba(255, 255, 255, .95);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

/* 左右切换箭头 */
.car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .32);
  color: #fff;
  font-size: 18px;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  z-index: 5;
  transition: background .25s;
}
.car-arrow:hover { background: rgba(0, 0, 0, .55); }
.car-prev { left: 24px; }
.car-next { right: 24px; }

/* 指示点：金色长条 = 当前项，白块 = 其余项（复刻设计稿） */
.car-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.car-dots i {
  width: 28px; height: 8px;
  background: #fff;
  opacity: .55;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity .25s, background .25s;
}
.car-dots i.on { background: #eacb94; opacity: 1; }

/* ==========================================================
   关于翼遥
   —— 整幅背景图（心形照片墙 + 团队风采 about-visual.jpg 1920:943）
      标题 / 简介 / 数据统计等文字叠加于背景之上
   ========================================================== */
.about {
  position: relative;
  aspect-ratio: 1920 / 943; /* 与背景图等比，文字改动不影响模块高度 */
  padding-top: 72px;
}
.about-bg {
  position: absolute;
  inset: 0;
  background: url("../images/about-visual.jpg") bottom center / cover no-repeat;
  pointer-events: none;
}
.about-top {
  position: relative;
  display: flex;
  gap: 60px;
}
.about-left { flex-shrink: 0; }
.founded-label {
  margin-top: 18px;
  font-size: 15px;
  color: #666;
  letter-spacing: 6px;
}
.founded-year {
  margin-top: 6px;
  font-size: 42px;
  font-weight: 700;
  color: #05356c;
  letter-spacing: 2px;
}
.about-right { flex: 1; }
.about-right p {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  text-align: justify;
}
.about-right p + p { margin-top: 14px; }

/* 数据统计：三个大数字横排 */
.stats {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 46px;
}
.stat { text-align: center; }
.stat h3 {
  font-size: 40px;
  font-weight: 700;
  color: #05356c;
  letter-spacing: 1px;
}
.stat p { margin-top: 8px; font-size: 14px; color: #999; letter-spacing: 2px; text-align: center; }

/* ==========================================================
   企业文化（上下留白统一 100px）
   ========================================================== */
.culture { padding: 100px 0; }
.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.culture-grid img { width: 100%; }

/* ==========================================================
   企业荣誉
   —— 整幅背景图（荣誉证书墙 honor-visual.jpg 1920:1042），
      「企业荣誉 / 部分荣誉展示」文字叠加于背景之上
   ========================================================== */
.honor {
  position: relative;
  aspect-ratio: 1920 / 1042;
  padding-top: 72px;
}
.honor-bg {
  position: absolute;
  inset: 0;
  background: url("../images/honor-visual.jpg") bottom center / cover no-repeat;
  pointer-events: none;
}
.honor .container { position: relative; }
/* 「部分荣誉展示」：横向居中于整个模块（与设计稿一致），仍叠加在背景之上；
   字号与颜色同发展历程年份（.tl-year：22px / #224484）保持一致 */
.honor-sub {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
  color: #224484;
  letter-spacing: 4px;
  text-align: center;
}

/* ==========================================================
   发展历程（中心时间轴）
   ========================================================== */
.history { padding-top: 64px; padding-bottom: 64px; }

.timeline { position: relative; margin-top: 28px; padding-bottom: 8px; }
/* 中央轴线 */
.tl-line {
  position: absolute;
  left: 50%; top: 6px; bottom: 6px;
  width: 1px;
  background: #ddd;
  transform: translateX(-.5px);
}

/* 每一行：左右两半 + 中点 */
.tl-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;                 /* 行距：18 行 2009-2026 收紧，使模块整体控制在一屏内 */
}
.tl-row .half-l,
.tl-row .half-r { flex: 1 1 50%; }

/* 轴点 */
.tl-dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  background: #fff;
  border: 2px solid #224484;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* 年份（蓝色加粗） */
.tl-year {
  font-size: 22px;
  font-weight: 700;
  color: #224484;
  letter-spacing: 1px;
}
/* 事件文字 */
.tl-row p { font-size: 14px; color: #555; line-height: 1.7; }
/* 小箭头 */
.tl-arr { color: #999; font-size: 11px; }

/* 行方向：row-r 年份居左 / 内容居右；row-l 相反 */
.row-r .half-l { text-align: right; padding-right: 42px; }
.row-r .half-r { display: flex; align-items: center; gap: 10px; padding-left: 26px; }
.row-l .half-l { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-align: right; padding-right: 26px; }
.row-l .half-r { padding-left: 42px; }
.row-l .tl-year { margin-left: 0; }

/* ==========================================================
   师资团队
   ========================================================== */
/* 【师资团队】模块：整幅背景图（师资合影 + 名师卡片墙，1920:1052）
   —— 模块用 aspect-ratio 保持与背景图等比，文字叠加其上 */
.team {
  position: relative;
  aspect-ratio: 1920 / 1052;
  padding-top: 72px;
}
.team-bg {
  position: absolute;
  inset: 0;
  background: url("../images/team-visual.jpg") bottom center / cover no-repeat;
  pointer-events: none;
}
.team .container { position: relative; }
.team-head {
  position: relative;
  text-align: center;
  margin-top: 28px;
}
.team-head h3 {
  font-size: 26px;
  font-weight: 700;
  color: #333;
  letter-spacing: 2px;
}
.team-head p {
  max-width: 900px;
  margin: 14px auto 0;
  font-size: 14px;
  color: #666;
  line-height: 1.9;
}

/* ==========================================================
   品牌介绍（6 个合作品牌，3 列两行）
   ========================================================== */
.brand { padding-top: 96px; padding-bottom: 100px; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
  margin-top: 48px;
}
.brand-cell { text-align: center; }
/* logo 统一高度，保持设计稿视觉比例 */
.brand-logo { height: 96px; display: flex; align-items: center; justify-content: center; }
.brand-logo img { max-height: 96px; width: auto; }
.brand-cell p { margin-top: 18px; font-size: 14px; color: #999; letter-spacing: 1px; }

/* ==========================================================
   联系我们（含开源地图）
   ========================================================== */
.contact { padding-top: 100px; padding-bottom: 32px; }
.contact-slogan {
  margin-top: 18px;
  font-size: 15px;
  color: #777;
  line-height: 1.9;
}
.contact-slogan span { color: #05356c; font-weight: 700; }

.contact-body {
  display: flex;
  gap: 60px;
  margin-top: 44px;
}
.contact-left { width: 420px; flex-shrink: 0; }

.c-block { margin-bottom: 34px; }
.c-block:last-child { margin-bottom: 0; }
.c-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.c-ico {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #05356c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.c-head h4 { font-size: 16px; color: #333; letter-spacing: 1px; }
.c-list { margin-top: 12px; }
.c-list li {
  font-size: 14px;
  color: #555;
  line-height: 2.1;
  word-break: break-all;
}
.c-list li span { color: #999; }
.c-company {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}
.c-addr {
  margin-top: 6px;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* 开源地图容器（高度按需求调整为 620px） */
.contact-map {
  flex: 1;
  height: 620px;
  background: #e8e6e1; /* 瓦片加载前的底色 */
  z-index: 1;
}

/* 地图自定义标注：蓝色胶囊「翼遥医学」+ 圆形 Logo 针（对应设计稿样式） */
.map-label {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.map-label .pill {
  background: #05356c;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.map-label .pin {
  width: 44px; height: 44px;
  margin-top: 4px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #05356c;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.map-label .pin img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.map-label::after {
  content: "";
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #05356c;
  margin-top: -1px;
}

/* ==========================================================
   页脚
   ========================================================== */
/* 页脚：顶部不放通栏横线；灰色通栏线移至版权两行之间（见 .footer-copyrow） */
.site-footer { padding: 10px 0 14px; }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; }

.f-corp { font-size: 13px; color: #333; }
/* 通栏灰色分隔线：铺满整个屏幕宽度（footer 为全宽块，line 由 border-top 呈现），
   线上方：公司名 + 二维码；线下方：Copyright/备案号（左） + 实时信息/关注我们（右） */
.footer-copyrow {
  border-top: 1px solid #eee;
  margin-top: 12px;
  padding-top: 12px;
}
.copyrow-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.f-copy { font-size: 13px; color: #888; }
/* 备案号链接：默认与版权文字同色（保持设计稿观感），悬停时变主题蓝 + 下划线 */
.beian-link { color: inherit; }
.beian-link:hover { color: #05356c; text-decoration: underline; }
.beian-link:focus-visible { outline: 2px solid #05356c; outline-offset: 2px; }

.footer-right { text-align: right; }
.qr-row { display: flex; gap: 42px; justify-content: flex-end; }
.qr-row img { width: 86px; height: 86px; }
.follow-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.follow-row span { font-size: 13px; color: #333; }
.follow-row img { height: 26px; width: auto; }

/* ==========================================================
   右侧悬浮「返回顶部」入口按钮
   —— 固定在页面右侧，向下滚动一段距离后淡入，点击平滑回到顶部
   ========================================================== */
.to-top {
  position: fixed;
  right: 28px;
  bottom: 92px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #05356c;
  box-shadow: 0 6px 18px rgba(5, 25, 65, .28);
  cursor: pointer;
  z-index: 900;
  /* 默认隐藏，滚动后由 JS 添加 .show 淡入 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s ease,
              background .25s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; fill: #fff; transition: fill .25s ease; }
/* 悬停：点缀金底 + 深蓝箭头（呼应站点金色点缀） */
.to-top:hover { background: #eacb94; }
.to-top:hover svg { fill: #05356c; }
.to-top:focus-visible { outline: 2px solid #05356c; outline-offset: 3px; }

/* ==========================================================
   响应式（窄屏兜底，保证本地打开不破版）
   ========================================================== */
@media (max-width: 1200px) {
  .nav { gap: 24px; margin-right: 24px; }
  .about-top { flex-direction: column; gap: 30px; }
  .stats { padding: 0; }
}
@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .nav { order: 3; width: 100%; justify-content: space-between; margin: 6px 0 0; }
  .nav a { line-height: 40px; }
  .about-top, .contact-body, .footer-inner { flex-direction: column; }
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-right { text-align: left; }
  .qr-row { justify-content: flex-start; }
  .copyrow-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contact-left { width: 100%; }
  .contact-map { width: 100%; }
  /* 窄屏下返回顶部按钮更贴角，避免遮挡内容 */
  .to-top { right: 16px; bottom: 72px; width: 44px; height: 44px; }
}
