/* ============================================================
   花径教育官网首页 1:1 还原版样式
   断点：≤768px 移动端 / ≥769px 桌面端
   ============================================================ */

/* ---------- 基础重置 ---------- */
@font-face {
  font-family: "din condensed bold";
  src: url("../assets/fonts/din-condensed-bold.ttf") format("truetype");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #608aff;
  --blue-hover: #6577ff;
  --ink: #1c1d1f;
  --gray: #5e6269;
  --footer-bg: rgba(87, 91, 131, 0.8);
  --font-num: "din condensed bold", "DIN Condensed", "Bahnschrift",
    "Arial Narrow", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  /* 原站模板在 html 上就设了 overflow-x:hidden（实测 computed 为 hidden），
     作用是：正文里超宽的松散图片（960/863/553px）不会让整页被手指横向拖动。
     只在 body 上设不够——Chrome 仍会把 documentElement.scrollWidth 撑大，
     实测本地能 scrollTo(400) 横向拖走，原站 scrollX 恒为 0。 */
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  display: block;
  border: 0;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.page {
  padding-top: 0;
}

/* ============================================================
   头部导航
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  padding: 0 10px;
  background: #fff;
  box-shadow: 0 1px 0 0 rgba(169, 169, 169, 0.48);
  opacity: 0.8;
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  width: 90%;
  max-width: 1040px;
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin-right: auto;
  white-space: nowrap;
}

.brand-logo {
  max-width: 43px;
  margin-right: 5px;
  object-fit: contain;
}

.brand-name {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  color: var(--ink);
}

.brand-sub {
  margin-left: 10px;
  margin-top: 6px;
  font-size: 26px;
  font-weight: normal;
  line-height: 1;
  color: #666;
}

/* 桌面端导航 */
.page-about .main-nav,
.page-about .mobile-nav {
  -webkit-font-smoothing: antialiased;
}

.main-nav {
  position: relative;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  justify-content: flex-end;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 0 clamp(12px, 1.5vw, 23px);
  font-size: 16px;
  line-height: 80px;
  text-align: center;
  color: #444;
  white-space: nowrap;
  transition: color 220ms ease;
}

.main-nav a span,
.main-nav a {
  position: relative;
}

/* 当前栏目保持与悬停一致的选中效果。 */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  margin: 0 auto;
  background: var(--blue-hover);
  transition: all ease 0.3s;
}

.main-nav a:hover::after,
.main-nav a.current::after {
  width: 51%;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.current {
  color: var(--blue-hover);
}

/* 所有栏目共用一条指示线，移动时不会各自闪现。 */
.main-nav.has-indicator a::after {
  display: none;
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--indicator-width, 0px);
  height: 2px;
  border-radius: 2px;
  background: var(--blue-hover);
  opacity: var(--indicator-opacity, 0);
  transform: translateX(var(--indicator-x, 0px));
  pointer-events: none;
}

.main-nav.indicator-ready .nav-indicator {
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    width 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

@media (prefers-reduced-motion: reduce) {

  .main-nav a,
  .main-nav a::after,
  .main-nav.indicator-ready .nav-indicator {
    transition: none;
  }
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: flex-end;
  width: 45px;
  height: 45px;
  color: #333;
}

.nav-toggle .icon-close {
  display: none;
}

/* 移动端全屏菜单 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 98;
  width: 100%;
  height: 100%;
  padding: 80px 20px 20px;
  background: #fbfbfb;
}

.mobile-nav ul li {
  border-bottom: 1px solid rgb(0 0 0 / 5%);
  line-height: 50px;
  font-size: 14px;
}

.mobile-nav ul li a {
  /* 链接铺满整行，点击文字旁的留白也能跳转。 */
  display: block;
  padding: 0;
  line-height: 50px;
  color: #333;
}

.mobile-nav a.current {
  color: var(--blue-hover);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

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

body.nav-open .nav-toggle .icon-open {
  display: none;
}

body.nav-open .nav-toggle .icon-close {
  display: block;
}

/* ============================================================
   横幅轮播
   ============================================================ */
.banner {
  position: relative;
  height: 600px;
  overflow: hidden;
  /* 横向手势交给轮播拖拽，纵向留给页面滚动（iOS/Android 均需显式声明） */
  touch-action: pan-y;
}

/* Swiper 容器：撑满 .banner。位移、过渡、循环由 Swiper 自己管，
   这里不要再写 transform / transition，否则会和 Swiper 的内联样式打架 */
.banner-swiper {
  width: 100%;
  height: 100%;
}

.banner-swiper .swiper-wrapper {
  height: 100%;
}

.slide {
  height: 100%;
  overflow: hidden;
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.slide-video {
  position: relative;
}

.slide-video.video-started video {
  object-fit: contain;
}

/* 轮播箭头 */
.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  transform: translateY(-50%);
}

.slider-btn::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid #ddd;
  border-right: 2px solid #ddd;
}

.slider-btn.prev {
  left: 40px;
}

.slider-btn.prev::after {
  /* 折线形箭头的可见中心偏向尖端，向内微调以对齐按钮中心。 */
  transform: translateX(3px) rotate(-135deg);
}

.slider-btn.next {
  right: 40px;
}

.slider-btn.next::after {
  transform: translateX(-3px) rotate(45deg);
}

/* ============================================================
   通用标题
   ============================================================ */
.section-title {
  font-size: 22px;
  font-weight: bold;
  line-height: normal;
  color: var(--ink);
}

.section-inner {
  width: 90%;
  max-width: 1040px;
  margin: 0 auto;
}

/* ============================================================
   关于花径
   ============================================================ */
.about {
  padding-top: 65px;
  background: #fff;
}

.about-body {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
}

.about-text {
  flex: 0 0 32%;
}

/* 桌面端：正文在 300px 高的滚动容器内展示 */
.about-scroll {
  height: 300px;
  margin-top: 17px;
  overflow-y: auto;
}

.about-scroll p {
  font-size: 16px;
  line-height: 32px;
  -webkit-font-smoothing: antialiased;
  color: #666;
  margin-bottom: 28px;
}

.about-mission {
  margin-top: 0;
}

.about-more {
  margin-top: 25px;
  margin-bottom: 0;
}

.about-more a {
  font-size: 16px;
  font-weight: bold;
  color: var(--blue);
}

.about-videos {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  flex-direction: row;
}

.video-card {
  flex: 1 1 0;
  min-width: 0;
}

.video-thumb {
  position: relative;
  display: block;
  width: 90%;
  margin: 0 auto;
}

.video-thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.video-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14%;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.video-caption {
  display: block;
  width: 90%;
  margin: -10px auto 0;
  padding: 8px;
  font-size: 14px;
  color: #fff;
  background: var(--blue);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   企业发展史（时间线）
   ============================================================ */
.history {
  margin-top: 77px;
}

.history .section-inner {
  padding-left: 20px;
}

.timeline {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 93px auto 0;
}

.timeline-row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.timeline-row .tl-item {
  flex: 0 0 auto;
  min-width: 0;
}

/* 桌面端气泡宽度与间隔完全对齐原站（内容自适应宽 + 空白间隔项） */
.timeline-top .tl-item:nth-child(1) {
  width: 187px;
}

.timeline-top .tl-item:nth-child(2) {
  width: 208px;
  margin-left: 83px;
}

.timeline-top .tl-item:nth-child(3) {
  width: 218px;
  margin-left: 83px;
}

.timeline-top .tl-item:nth-child(4) {
  width: 208px;
  margin-left: 52px;
}

/* 下排气泡为流式宽度（行宽的 18%，随视口缩放，对齐原站） */
.timeline-bottom .tl-item {
  width: 18%;
}

.timeline-bottom .tl-item+.tl-item {
  margin-left: 8%;
}

/* 蓝色气泡框 */
.tl-box {
  position: relative;
  width: 100%;
  padding: 25px 10px;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  color: #fff;
  background: var(--blue);
  border-radius: 4px;
}

/* 第 3、4 个上排气泡内边距与原站一致（水平加大迫使换行，垂直 15px） */
.timeline-top .tl-item:nth-child(3) .tl-box {
  padding: 15px 46px;
}

.timeline-top .tl-item:nth-child(4) .tl-box {
  padding: 15px 42px;
}

/* 气泡小尾巴：骑在盒子左下角（距顶 56px，盒子高 72 → 一半在盒内一半挂出，对齐原站 71-15） */
.timeline-top .tl-box::after {
  content: "";
  position: absolute;
  left: 0;
  top: 56px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 0 13px 13px;
  border-color: transparent transparent transparent var(--blue);
}

/* 年份数字 */
.tl-year {
  position: relative;
  max-width: 59px;
  margin-top: 18px;
  font-family: var(--font-num);
  font-size: 38px;
  line-height: normal;
  color: var(--ink);
}

.tl-year-wide {
  max-width: 160px;
}

/* 上排年份：圆点在下方 */
.timeline-top .tl-year::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -16px;
  width: 13px;
  height: 13px;
  background: var(--blue);
  border-radius: 100%;
}

.timeline-top .tl-item {
  padding-bottom: 10px;
}

/* 时间线横线 */
.timeline-line {
  width: 100%;
  height: 2px;
  border: 0;
  border-top: 2px solid var(--blue);
  position: relative;
}

/* 横线右端的小花装饰（挂在横线自身上，任何断点都自动居中于线，对齐原站 e_line-10::after） */
.timeline-line::after {
  content: "";
  position: absolute;
  top: -16px;
  right: 0;
  width: 34px;
  height: 34px;
  background: url("../assets/img/timeline-star.png") no-repeat center;
}

/* 上排为固定 1040px 宽的行，在容器内居中；下排整体右移 110px（对齐原站） */
.timeline-top {
  width: 1040px;
  margin: 0 auto;
}

.timeline-bottom {
  margin-left: 110px;
}

.timeline-bottom .tl-item {
  padding-bottom: 10px;
}

/* 下排年份：圆点在上方，压在线上 */
.timeline-bottom .tl-year {
  margin-top: 10px;
}

.timeline-bottom .tl-year::after {
  content: "";
  position: absolute;
  top: -19px;
  left: 0;
  width: 13px;
  height: 13px;
  background: var(--blue);
  border-radius: 100%;
}

.timeline-bottom .tl-box {
  margin-top: 15px;
  padding: 25px 10px;
  text-align: left;
}

/* 下排第 3 个气泡垂直内边距 20px（对齐原站） */
.timeline-bottom .tl-item:nth-child(3) .tl-box {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* 下排气泡尾巴：骑在盒子左上角（距顶 -8px，一半挂出盒外指向年份，对齐原站 78-15-71） */
.timeline-bottom .tl-box::after {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 0 13px 13px;
  border-color: transparent transparent transparent var(--blue);
}

/* ============================================================
   老师 / 课程 / 动态 三栏卡片
   ============================================================ */
.showcase {
  margin-top: 80px;
  padding: 80px 0;
  background: url("../assets/img/cards-bg.webp") no-repeat center center;
  background-size: cover;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: stretch;
  gap: 18px;
  width: 90%;
  max-width: 1040px;
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
}

.card-cover {
  flex-shrink: 0;
  height: 189px;
  overflow: hidden;
}

/* 封面内链接块级化，避免 inline 基线空隙 */
.card-cover a {
  display: block;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.card-body {
  /* 同行卡片由最高内容撑开，文字底板填满各卡片的剩余高度。 */
  flex: 1;
  padding: 32px 0 40px;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.card#news .card-body {
  padding-left: 15px;
  padding-right: 15px;
}

.card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--ink);
}

.card-line-lg {
  margin-top: 12px;
  font-size: 16px;
  color: var(--gray);
}

.card-line-md {
  margin-top: 17px;
  font-size: 14px;
  color: var(--gray);
}

.card-line-sm {
  margin-top: 12px;
  font-size: 14px;
  color: var(--gray);
}

/* 悬停：图片放大、底板变蓝、文字变白 */
.card:hover .card-cover img {
  transform: scale(1.05);
}

.card:hover .card-body {
  background: var(--blue);
}

.card:hover .card-title,
.card:hover .card-line-lg,
.card:hover .card-line-md,
.card:hover .card-line-sm {
  color: #fff;
}

/* 新闻列表（仅首页卡片内；限定 .card 作用域，避免影响子页面的 ul.news-list） */
.card .news-list {
  padding-top: 5px;
  text-align: left;
}

.card .news-list li {
  margin-top: 12px;
}

.card .news-list li:first-child {
  margin-top: 0;
}

.card .news-list a {
  position: relative;
  display: block;
  padding-left: 15px;
  font-family: "Microsoft YaHei", 微软雅黑, sans-serif;
  font-size: 16px;
  line-height: normal;
  color: var(--gray);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: 0.5s;
}

.card .news-list a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 6px;
  height: 6px;
  background: #8b8b8b;
  border-radius: 100%;
}

.card .news-list a:hover {
  font-weight: bold;
}

.card:hover .news-list a {
  color: #fff;
}

.card:hover .news-list a::before {
  background: #fff;
}

/* 移动端触摸反馈：tap 卡片时显示与 hover 相同的蓝色特效
   （微信等 WebView 不稳定触发 :hover，由 js/touch-card.js 加 .touching 类） */
.card.touching .card-body {
  background: var(--blue);
}

.card.touching .card-title,
.card.touching .card-line-lg,
.card.touching .card-line-md,
.card.touching .card-line-sm {
  color: #fff;
}

.card.touching .news-list a {
  color: #fff;
}

.card.touching .news-list a::before {
  background: #fff;
}

.card.touching .card-cover img {
  transform: scale(1.05);
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  padding-top: 50px;
  color: #fff;
  background: var(--footer-bg);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: 90%;
  max-width: 1040px;
  margin: 0 auto;
}

.footer-brand {
  flex: 0 0 45%;
  align-self: center;
}

.footer-brand img {
  max-width: 326px;
  object-fit: contain;
}

.footer-cols {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  flex-direction: row;
}

.footer-col {
  flex: 1;
}

.footer-col:nth-child(1),
.footer-col:nth-child(2) {
  flex: 0 0 25%;
}

.footer-col:nth-child(3) {
  flex: 1;
}

.col-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #fff;
}

.col-link {
  line-height: 40px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  color: #fff;
  opacity: 0.8;
}

.col-link.first {
  margin-top: 17px;
}

.col-mail {
  margin-top: 24px;
  font-size: 14px;
  line-height: 24px;
}

.col-mail a {
  color: #fff;
}

/* 二维码 */
.qr-row {
  display: flex;
  margin-top: 12px;
}

.qr-item {
  flex: 1;
}

.qr-item p {
  font-size: 12px;
  line-height: 1;
  text-align: center;
  opacity: 0.8;
}

.qr-item img {
  max-width: 78px;
  margin: 10px auto 0;
  object-fit: contain;
}

/* 版权条 */
.footer-bottom {
  margin-top: 40px;
  padding: 20px 15px;
  -webkit-font-smoothing: antialiased;
  background: rgba(0, 0, 0, 0.05);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 90%;
  max-width: 1040px;
  margin: 0 auto;
}

.fb-left {
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
  color: #fff;
  opacity: 0.5;
}

.fb-left a,
.fb-left span {
  margin-left: 10px;
}

.fb-left a:first-child {
  margin-left: 10px;
}

.fb-right {
  font-size: 14px;
  line-height: 1.8;
  color: #fff;
  opacity: 0.5;
}

.footer-bottom a {
  color: #fff;
}

/* 营业执照：点击时加载高清图片，手机无需 PDF 插件。 */
.license-trigger {
  margin-left: 10px;
  color: inherit;
}

.license-trigger:hover {
  text-decoration: underline;
}

.license-dialog {
  width: min(960px, calc(100% - 24px));
  height: min(768px, calc(100vh - 24px));
  height: min(768px, calc(100dvh - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}

.license-dialog[open] {
  display: flex;
  flex-direction: column;
}

.license-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.license-dialog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid #e5e5e5;
}

.license-dialog-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 30px;
  line-height: 1;
  color: inherit;
}

.license-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  background: #f3f4f6;
}

.license-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

/* ============================================================
   视频弹窗
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.modal.open {
  display: block;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(860px, 90vw, calc((100vh - 128px) * 16 / 9));
  width: min(860px, 90vw, calc((100dvh - 128px) * 16 / 9));
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  background: rgb(0 0 0 / 50%);
  color: #fff;
  transition: background 180ms ease;
}

.modal-close svg {
  flex-shrink: 0;
  fill: currentColor;
}

.modal-close:hover {
  background: rgb(0 0 0 / 75%);
}

.modal-close:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.modal-content {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 共用播放图标；弹窗和详情页保留原生进度条。 */
.video-player {
  position: relative;
}

.video-player>video {
  display: block;
  max-width: 100%;
}

.video-play-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: clamp(48px, 8vw, 72px);
  height: clamp(48px, 8vw, 72px);
  padding: 0;
  background: url("../assets/img/play.png") no-repeat center center;
  background-size: contain;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.video-play-toggle[hidden] {
  display: none;
}

.video-play-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.banner-video-toggle {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background-size: clamp(48px, 8vw, 72px);
  transform: none;
}

.slide-video.playing .banner-video-toggle {
  background-image: none;
}

.banner-video-toggle:focus-visible {
  outline-offset: -4px;
}

/* ============================================================
   平板（≤1024px）微调
   ============================================================ */
@media screen and (max-width: 1024px) {
  .timeline-bottom {
    margin-left: 53px;
  }
}

/* 中等屏幕：菜单均分剩余空间，避免缩小后挤在右侧。 */
@media screen and (min-width: 769px) and (max-width: 1100px) {
  .header-inner {
    width: calc(100% - 32px);
    column-gap: 16px;
  }

  .brand {
    margin-right: 0;
  }

  .brand-logo {
    max-width: 36px;
  }

  .brand-name {
    font-size: 28px;
  }

  .brand-sub {
    margin-left: 8px;
    font-size: 20px;
  }

  .main-nav {
    flex: 1;
    min-width: 0;
  }

  .main-nav ul {
    justify-content: center;
  }

  .main-nav li {
    flex: 1;
  }

  .main-nav a {
    padding: 0 5px;
    font-size: clamp(14px, 1.45vw, 16px);
  }
}

/* ============================================================
   移动端（≤768px）
   ============================================================ */
@media screen and (max-width: 768px) {
  :root {
    /* 45px 菜单按钮 + 上下各 10px，正文使用同一个导航高度。 */
    --mobile-header-height: 65px;
  }

  /* ---- 头部 ---- */
  .site-header {
    height: var(--mobile-header-height);
    padding: 10px;
    opacity: 1;
  }

  .header-inner {
    width: auto;
    max-width: none;
    height: 100%;
    flex-wrap: nowrap;
  }

  .page {
    padding-top: var(--mobile-header-height);
  }

  .brand-logo {
    max-width: 35px;
  }

  .brand-name {
    font-size: 26px;
  }

  .brand-sub {
    font-size: 20px;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    padding-top: calc(var(--mobile-header-height) + 10px);
  }

  /* ---- 轮播 ---- */
  .banner {
    height: auto;
    min-height: 0;
    padding-top: 0;
  }

  .banner-swiper {
    height: auto;
    aspect-ratio: 1920 / 670;
  }

  .slide img,
  .slide video {
    object-fit: contain;
  }

  .slider-btn {
    top: 50%;
    width: 34px;
    height: 34px;
  }

  .slider-btn.prev {
    left: 0;
  }

  .slider-btn.next {
    right: 0;
  }

  /* ---- 关于花径 ---- */
  .about {
    padding-top: 40px;
  }

  .about-body {
    display: block;
    padding: 0 20px;
  }

  .about-text {
    flex: 0 0 auto;
  }

  /* 移动端正文完整展示，不限制高度 */
  .about-scroll {
    height: auto;
    margin-top: 20px;
    overflow-y: visible;
  }

  .about-mission {
    margin-top: 10px;
  }

  .about-more {
    margin-top: 30px;
    text-align: left;
  }

  .about-videos {
    display: block;
    margin-top: 20px;
  }

  .video-card {
    width: 100%;
  }

  .video-card+.video-card {
    margin-top: 20px;
  }

  .video-thumb,
  .video-caption {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* ---- 企业发展史 ---- */
  .history {
    margin-top: 40px;
    padding-top: 35px;
  }

  .history .section-inner {
    padding-left: 20px;
  }

  .timeline {
    width: auto;
    margin: 40px 20px 0;
  }

  /* 桌面端固定 1040px 的行宽在移动端必须收回到容器内，否则整页可横向拖动 */
  .timeline-top {
    width: 100%;
  }

  .tl-year {
    font-size: 18px;
  }

  /* 顶排宽度比照原站移动版：21% ×3 + 20%，间隔 4%（合计 95%，单行放得下） */
  .timeline-top .tl-item:nth-child(1) {
    width: 21%;
    margin-left: 0;
  }

  .timeline-top .tl-item:nth-child(2) {
    width: 21%;
    margin-left: 4%;
  }

  .timeline-top .tl-item:nth-child(3) {
    width: 21%;
    margin-left: 4%;
  }

  .timeline-top .tl-item:nth-child(4) {
    width: 20%;
    margin-left: 4%;
  }

  .timeline-top .tl-item {
    flex: 0 0 auto;
    padding-bottom: 10px;
  }

  /* 顶排气泡：高 134px（原站移动版固定值），水平内边距清零靠文字自适应换行；
     第 3、4 个上下内边距为 15px，第 4 个不锁高（内容多时自然撑高，与原站一致） */
  .timeline-top .tl-box {
    height: 134px;
    padding: 15px 0 25px;
  }

  .timeline-top .tl-item:nth-child(3) .tl-box,
  .timeline-top .tl-item:nth-child(4) .tl-box {
    padding: 15px 0 15px;
  }

  .timeline-top .tl-item:nth-child(4) .tl-box {
    height: auto;
  }

  .timeline-bottom {
    margin-left: 53px;
  }

  /* 下排宽度比照原站移动版：25% / 26% / 21% / 21% + 间隔 4%·4%·5%，
     合计 106% —— 第 4 项自然换行（原站同为换行布局），并继承 5% 缩进 */
  .timeline-bottom .tl-item {
    flex: 0 0 auto;
    width: auto;
    padding-bottom: 10px;
  }

  .timeline-bottom .tl-item+.tl-item {
    margin-left: 0;
  }

  .timeline-bottom .tl-item:nth-child(1) {
    width: 25%;
  }

  .timeline-bottom .tl-item:nth-child(2) {
    width: 26%;
    margin-left: 4%;
  }

  .timeline-bottom .tl-item:nth-child(3) {
    width: 21%;
    margin-left: 4%;
  }

  .timeline-bottom .tl-item:nth-child(4) {
    width: 21%;
    margin-left: 5%;
  }

  .timeline-bottom .tl-box {
    height: 148px;
    padding: 11px 4px;
  }

  /* 原站移动端只隐藏下排气泡的小尾巴，顶排的保留 */
  .timeline-bottom .tl-box::after {
    display: none;
  }

  /* ---- 三栏卡片 ---- */
  .showcase {
    margin-top: 40px;
    padding: 40px 0;
  }

  .cards {
    flex-direction: column;
    gap: 20px;
  }

  .card {
    flex: 0 0 auto;
    width: 100%;
  }

  .card-cover {
    height: auto;
  }

  .card-cover img {
    height: auto;
  }

  /* ---- 页脚 ---- */
  .footer {
    padding-top: 20px;
  }

  .footer-main {
    display: block;
    width: auto;
    max-width: none;
    padding: 0 20px;
  }

  .footer-brand {
    width: 80%;
    margin: 0 auto;
  }

  .footer-brand img {
    width: 100%;
    margin: 0 auto;
  }

  /* 移动端仅保留「联系我们」列 */
  .footer-col:nth-child(1),
  .footer-col:nth-child(2) {
    display: none;
  }

  .footer-bottom {
    margin-top: 20px;
  }

  .footer-bottom-inner {
    width: auto;
    max-width: none;
  }

  .fb-left {
    flex: 0 0 100%;
    text-align: left;
  }

  .fb-left a:first-child {
    margin-left: 0;
  }

  .fb-right {
    margin-right: auto;
  }
}
