/**
 * 依赖 style.css 中的全局变量（--blue、--ink 等）与页头/页脚样式
 */

/* ---------- 通用 ---------- */

.sub-banner img {
  display: block;
  width: 100%;
}

.sub-container {
  width: 1200px;
  margin: 0 auto;
}

.sub-container-narrow {
  width: 1040px;
  margin: 0 auto;
}

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

/* 无横幅页面的主区域（让出 80px 固定头部） */
.sub-main {
  padding: 140px 0 80px;
}

.sub-main.pt-120 {
  padding-top: 120px;
}

/* ---------- 关于花径（about） ---------- */

.about-page {
  position: relative;
  padding: 30px 0 60px;
}

.about-layout {
  position: relative;
}

/* 蓝色「花」字书法 */
.about-hua {
  position: absolute;
  top: -183px;
  left: 770px;
  width: 345px;
  pointer-events: none;
}

/* 竖向时间线（宽 363 = 内边距 97 + 文字列 266，与原站一致；
   文字列压在 266px 内，长文案才会像原站那样换成两行，不会顶到右侧卡片） */
.about-tl {
  position: relative;
  width: 363px;
  padding-left: 97px;
  margin: 190px 0 0;
  list-style: none;
}

.about-tl::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 83px;
  width: 2px;
  background: var(--blue);
}

.about-tl li {
  position: relative;
  margin-bottom: 68px;
}

.about-tl li:last-child {
  margin-bottom: 0;
}

.about-tl .at-dot {
  position: absolute;
  top: 6px;
  left: -21px;
  width: 16px;
  z-index: 1;
}

.about-tl .at-year {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.about-tl .at-desc {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  white-space: pre-line;
}

/* 右侧三张卡片 */
.about-cards {
  position: absolute;
  top: 352px;
  right: 80px;
  display: flex;
  gap: 15px;
}

.about-cards a {
  position: relative;
  display: block;
  width: 233px;
  height: 330px;
  border-radius: 6px;
  overflow: hidden;
}

.about-cards img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-cards span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  writing-mode: vertical-lr;
  font-size: 24px;
  letter-spacing: 10px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* ---------- 林巨老师（teacher） ---------- */

.teacher-intro {
  padding: 55px 0 70px;
}

.teacher-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
}

.teacher-name small {
  margin-left: 10px;
  font-size: 18px;
  font-weight: 700;
}

.teacher-lines {
  margin-top: 18px;
}

.teacher-lines p {
  font-size: 16px;
  line-height: 2.15;
  color: #333;
}

.teacher-history {
  margin-top: 55px;
}

.teacher-history p {
  font-size: 16px;
  line-height: 2.15;
  color: #333;
}

/* 教育领域：灰色卡片带 */
.teacher-areas {
  padding: 70px 0 80px;
  background: #f7f8fa;
}

.teacher-areas .page-title {
  text-align: center;
}

.area-cards {
  display: flex;
  justify-content: center;
  gap: 62px;
  margin-top: 70px;
}

.area-card {
  display: block;
  width: 288px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  /* 图片放大时不溢出圆角/边界（原站同为 overflow:hidden） */
  overflow: hidden;
}

.area-card img {
  display: block;
  width: 100%;
  height: 235px;
  object-fit: cover;
}

.area-card p {
  padding: 32px 0;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

/* 领域卡移入特效：图片轻微放大（对齐原站容器 54/57/60：scale(1.05) + .5s） */
.area-card img {
  transition: transform 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

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

/* 书籍整体引言 */
/* 书籍区：整条灰底 + 居中 1200px 白板（对齐原站 #f4f4f4 区块 + 白色大板） */
.teacher-books {
  background: #f4f4f4;
  padding: 70px 0 80px;
}

.books-panel {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 50px 20px 30px;
}

.books-panel .page-title {
  text-align: center;
}

/* 引言：原站为白板上的普通文字，无底色盒 */
.quote-box {
  margin: 25px auto 0;
  max-width: 1040px;
  font-size: 16px;
  line-height: 2;
  color: #555;
}

/* 书籍行：白板内的卡片行（hover 变底色 + 阴影，对齐原站书籍卡 e_container-46） */
.book-row {
  padding: 30px 20px;
  /* 整行移入特效（对齐原站书籍卡 e_container-46：.5s） */
  transition: background-color 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.book-row:hover {
  background-color: #f0f4f9;
  box-shadow: 0 0 35px -10px rgba(0, 0, 0, 0.3);
}

/* 注：HTML 里残留的 .gray 类不再着色（原站书籍区无白灰交替） */

.book-row-inner {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.book-row.cover-right .book-row-inner {
  flex-direction: row-reverse;
}

.book-cover {
  flex: 0 0 260px;
  border-radius: 4px;
  overflow: hidden;
}

.book-cover img {
  display: block;
  width: 100%;
  /* 封面随整行 hover 放大（原站幅度 1.2，比领域卡更大） */
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.book-row:hover .book-cover img {
  transform: scale(1.2);
}

/* 触屏设备没有 hover：改用按下反馈（微信/手机同样有感） */
@media (hover: none) {
  .area-card:active img {
    transform: scale(1.05);
  }

  .book-row:active {
    background-color: #f0f4f9;
  }

  .book-row:active .book-cover img {
    transform: scale(1.2);
  }
}

.book-info {
  flex: 1;
  padding-top: 12px;
}

.book-info h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.book-info .book-author {
  margin-top: 22px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.book-info .book-desc {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.9;
  color: #555;
  white-space: pre-line;
}

/* ---------- 花径课程（course） ---------- */

.course-intro {
  margin-top: 30px;
  font-size: 16px;
  color: #333;
}

.course-sec-title {
  margin: 75px 0 45px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

.course-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.course-row .course-cover {
  flex: 0 0 244px;
  border-radius: 6px;
  overflow: hidden;
}

.course-row .course-cover img {
  display: block;
  width: 100%;
}

.course-row .course-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.95;
  color: #333;
  white-space: pre-line;
}

.course-row .course-text strong {
  display: block;
  font-weight: 700;
}

/* 扫码报课灰条 */
.course-qr-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 55px;
  margin-top: 45px;
  padding: 0 40px;
  height: 121px;
  background: #f7f8fa;
}

.course-qr-band .qr-text {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  text-align: center;
}

.course-qr-band img {
  width: 120px;
  height: 121px;
  object-fit: cover;
}

/* ---------- 联系我们（contact） ---------- */

.contact-cards-sec {
  padding: 30px 0 90px;
  background: #f4f6f8;
}

.contact-cards-sec .page-title {
  text-align: center;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 38px;
  margin-top: 70px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 375px;
  padding: 45px 0 40px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.contact-card img {
  width: 56px;
  height: 56px;
}

.contact-card p {
  margin-top: 38px;
  font-size: 14px;
  color: #333;
}

/* 关注我们 */
.contact-follow-sec {
  padding: 60px 0 90px;
  background: linear-gradient(180deg, #e9edf8 0%, #f6f5f9 100%);
}

.contact-follow-sec .page-title {
  text-align: center;
}

.follow-qrs {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin-top: 70px;
}

.follow-qrs figure {
  text-align: center;
}

.follow-qrs img {
  width: 100px;
  height: 100px;
}

.follow-qrs figcaption {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

/* ---------- 花径企业 / 花径文化 ---------- */

.plain-para {
  margin-top: 26px;
  font-size: 16px;
  line-height: 2;
  color: #333;
}

.plain-list {
  margin-top: 30px;
}

.plain-list p {
  font-size: 16px;
  line-height: 2.1;
  color: #333;
}

.culture-banner-img {
  display: block;
  width: 100%;
  margin-top: 40px;
}

.team-grid-img {
  display: block;
  width: 100%;
  margin-top: 30px;
}

/* ---------- 花径动态 / 精彩视频（news） ---------- */

.news-sec {
  background: #f5f6f7;
}

.news-layout {
  display: flex;
  align-items: flex-start;
  padding: 30px 0 60px;
}

/* 左侧分类 */
.news-side {
  flex: 0 0 265px;
  background: #f7f7f7;
  border-radius: 8px;
  overflow: hidden;
}

.news-side a {
  display: block;
  padding: 0 0 0 15px;
  height: 51px;
  line-height: 51px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid #f7f7f7;
  overflow: hidden;
  white-space: nowrap;
  /* 原站 p_c_title1：0.3s 过渡 */
  transition: all 0.3s;
}

.news-side a:last-child {
  border-bottom: 0;
}

.news-side a:hover,
.news-side a.active {
  background: #6887ff;
  color: #fff;
  border-bottom-color: transparent;
}

/* 分类视频卡片列表（story 页右侧） */
.news-layout.story-layout {
  padding-bottom: 30px;
}

.story-list {
  min-height: 188px;
}

.story-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 20px;
}

.story-card img {
  display: block;
  flex: 0 0 219px;
  width: 219px;
  height: 168px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  transform: scale(1);
  transition: all 0.5s;
}

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

.story-card .story-card-title {
  font-size: 16px;
  line-height: 24px;
  color: #333;
  font-weight: bold;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.story-card:hover .story-card-title {
  color: #6887ff;
}

/* 移动端分类页底部提示条（桌面隐藏） */
.story-more {
  display: none;
}

/* 右侧列表 */
.news-list-wrap {
  flex: 1;
  margin-left: 42px;
  padding: 16px;
  background: #fff;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 10px 12px;
}

.news-item + .news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  border-top: 1px solid #f2f2f2;
}

.news-item .news-thumb {
  flex: 0 0 219px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.news-item .news-thumb img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  transform: scale(1);
  transition: all 0.5s;
}

.news-item:hover .news-thumb img {
  transform: scale(1.05);
}

.news-item .news-title {
  font-size: 16px;
  color: #333;
  font-weight: bold;
  line-height: 1.5;
  transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.news-item:hover .news-title {
  color: #6887ff;
}

.news-item .news-title a {
  color: inherit;
}

.news-item .news-summary {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}

/* 列表底部：关注视频号 */
.video-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 0 55px;
}

.video-more p {
  font-size: 16px;
  color: #333;
}

.video-more img {
  width: 104px;
  height: 104px;
}

/* ---------- 花径故事（story） ---------- */

.story-side {
  flex: 0 0 265px;
}

.story-empty {
  padding: 40px 0;
  background: #fff;
  border: 1px solid #ececec;
  text-align: center;
}

.story-empty img {
  width: 60px;
  filter: grayscale(1) brightness(1.15);
  opacity: 0.45;
}

.story-empty p {
  margin-top: 12px;
  font-size: 14px;
  color: #999;
}

.story-poem {
  display: block;
  width: 100%;
  margin-top: 40px;
}

.story-main {
  flex: 1;
  margin-left: 42px;
  min-height: 30px;
  background: #fff;
}

/* ---------- 标签管理（taglist） ---------- */

.tag-head {
  margin-top: 40px;
  padding: 10px 0;
  background: #d3eef8;
  font-size: 16px;
  text-align: center;
  color: #333;
}

.tag-row {
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-top: 0;
  font-size: 13px;
  color: #333;
}

/* ---------- 移动端适配 ---------- */

@media (max-width: 1280px) {
  .sub-container,
  .sub-container-narrow {
    width: auto;
    margin: 0 40px;
  }

  /* 关于花径：窄窗口下卡片从绝对定位改为流式，避免压住时间轴文字 */
  .about-tl {
    width: auto;
    max-width: 500px;
  }

  .about-hua {
    left: auto;
    right: 0;
    width: 280px;
  }

  .about-cards {
    position: static;
    margin-top: 50px;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .sub-container,
  .sub-container-narrow {
    margin: 0 16px;
  }

  .sub-banner img {
    height: 200px;
    object-fit: cover;
  }

  .sub-main {
    padding: 30px 0 50px;
  }

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

  .about-hua {
    top: 0;
    right: 0;
    left: auto;
    width: 150px;
  }

  .about-tl {
    width: 100%;
    padding-left: 57px;
    margin-top: 120px;
  }

  .about-tl::before {
    left: 43px;
  }

  .about-tl .at-dot {
    left: -21px;
    width: 14px;
  }

  .about-tl .at-year {
    font-size: 22px;
  }

  .about-tl .at-desc {
    font-size: 14px;
  }

  .about-cards {
    position: static;
    margin-top: 45px;
    gap: 8px;
  }

  .about-cards a {
    /* 减去两侧 8px 间隙，保证三张恰好一行 */
    width: calc((100% - 16px) / 3);
    height: auto;
    aspect-ratio: 233 / 330;
  }

  .about-cards span {
    font-size: 14px;
    letter-spacing: 4px;
  }

  /* 林巨老师 */
  .teacher-intro {
    padding: 30px 0 40px;
  }

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

  .teacher-lines p,
  .teacher-history p {
    font-size: 14px;
  }

  .area-cards {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 45px;
  }

  .book-row {
    padding: 40px 0;
  }

  .book-row-inner {
    flex-direction: column !important;
  }

  .book-cover {
    flex: none;
    width: 200px;
  }

  .book-info h3 {
    font-size: 20px;
  }

  .quote-box {
    margin-top: 30px;
    font-size: 14px;
  }

  /* 课程 */
  .course-row {
    flex-direction: column;
  }

  .course-row .course-cover {
    flex: none;
    width: 244px;
  }

  .course-qr-band {
    flex-direction: column;
    height: auto;
    padding: 24px 16px;
    gap: 18px;
  }

  /* 联系我们 */
  .contact-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
  }

  .contact-card {
    width: 100%;
    padding: 32px 0 28px;
  }

  .contact-card p {
    margin-top: 24px;
  }

  .follow-qrs {
    gap: 24px;
    margin-top: 40px;
  }

  .follow-qrs img {
    width: 80px;
    height: 80px;
  }

  .follow-qrs figcaption {
    font-size: 12px;
  }

  /* 新闻列表 */
  .news-layout {
    flex-direction: column;
    padding: 16px 0 40px;
  }

  .news-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: none;
    width: 100%;
    background: none;
    border: 0;
  }

  .news-side a {
    height: auto;
    min-height: 49px;
    line-height: 1.5;
    padding: 10px 12px;
    text-align: center;
    white-space: normal;
    background: #fff;
    border: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  .news-side a:hover,
  .news-side a.active {
    background: #6887ff;
    color: #fff;
  }

  /* 分类视频卡片（移动端：上下结构） */
  .story-card {
    display: block;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    padding: 24px 24px 0;
    margin-bottom: 24px;
  }

  .story-card img {
    width: 100%;
    height: auto;
  }

  .story-card .story-card-title {
    padding: 12px 0 16px;
  }

  .story-more {
    display: block;
    margin-top: 8px;
    padding: 18px 16px 24px;
    text-align: center;
    font-size: 14px;
    color: #212529;
    background: #fff;
  }

  .news-list-wrap {
    width: 100%;
    margin: 24px 0 0;
    padding: 12px 0 0;
    background: none;
  }

  .news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
    flex-direction: column;
    gap: 0;
    padding: 0 0 16px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
  }

  .news-item + .news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
    border-top: 0;
  }

  .news-item .news-thumb {
    flex: none;
    width: 100%;
  }

  .news-item .news-thumb img {
    height: 200px;
    border-radius: 0;
  }

  .news-item .news-title {
    padding: 12px 14px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 故事页 */
  .story-side {
    flex: none;
    width: 100%;
  }

  .story-main {
    width: 100%;
    margin: 20px 0 0;
  }

  .video-more {
    flex-direction: column;
    gap: 12px;
    padding: 30px 0 40px;
  }
}
