/* =========================================================
   关于页 about.html 专用样式（在 premium.css 之后引入）
   ========================================================= */

/* 保证 hidden 属性生效（组件类设置了 display） */
[hidden] { display: none !important; }

/* app.css 给 h1–h6 设了 !important 的无衬线字体，这里同级覆盖 */
h3.tr-person__name, h3.tr-step__title { font-family: var(--tr-serif) !important; }
/* app.css 曾把 b/strong 设成手写体，本页所有卡片与正文一律恢复为正文字体 */
.tr-about b, .tr-about strong,
.tr-cta-band b, .tr-cta-band strong,
.tr-steps b, .tr-steps strong { font-family: var(--tr-sans) !important; font-weight: 600; }

/* ---------- 引言 ---------- */
.tr-about .tr-section-head { max-width: 760px; }
.tr-about-intro { margin: 18px auto 0; text-align: left; font-size: 16.5px; color: var(--tr-muted); }
.tr-about-intro p:last-child { margin-bottom: 0; }
.tr-about-intro strong { color: var(--tr-ink); }

/* ---------- 四张支柱卡片 ---------- */
.tr-about-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tr-about-pillars .tr-pillar { display: flex; flex-direction: column; padding: 32px 28px; }
.tr-about-pillars .tr-pillar__text + .tr-pillar__text { margin-top: 10px; }
.tr-about-pillars .tr-pillar__title { font-size: 21px !important; }
@media (max-width: 767px) {
  .tr-about-pillars { grid-template-columns: 1fr; gap: 16px; }
  .tr-about-pillars .tr-pillar { padding: 24px 20px; }
}

/* "อ่านเพิ่มเติม" 展开 */
.tr-more { margin-top: 6px; }
.tr-more > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  list-style: none; cursor: pointer;
  font-family: var(--tr-sans); font-size: 15px; font-weight: 500; color: var(--tr-rose-600);
}
.tr-more > summary::-webkit-details-marker { display: none; }
.tr-more > summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.tr-more[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.tr-more > summary:hover { color: var(--tr-rose-700); }
.tr-more > summary:focus-visible { outline: 2px solid var(--tr-rose-600); outline-offset: 2px; border-radius: 4px; }
.tr-more__less { display: none !important; }
.tr-more[open] .tr-more__less { display: inline !important; }
.tr-more[open] .tr-more__open { display: none !important; }
.tr-more > .tr-pillar__text { margin-top: 10px; }

/* 解析失败时的整段富文本 */
.tr-about-fallback { margin: 0 auto; }

/* ---------- 视频 ---------- */
.tr-about-video { max-width: 820px; margin: 48px auto 0; }
.tr-video { border-radius: 0; overflow: hidden; background: var(--tr-blush-100); box-shadow: none; border: 1px solid var(--tr-rose-200); }
.tr-video video { display: block; width: 100%; height: auto; }

/* ---------- 服务流程时间轴 ---------- */
.tr-steps {
  --tr-step-dot: 56px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* 横向连接线 */
.tr-steps::before {
  content: "";
  position: absolute;
  top: calc(var(--tr-step-dot) / 2);
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--tr-gold);
}
.tr-step { position: relative; text-align: center; }
.tr-step__num {
  position: relative;
  width: var(--tr-step-dot);
  height: var(--tr-step-dot);
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: var(--tr-surface);
  border: 1px solid var(--tr-gold);
  box-shadow: none;
  font-family: var(--tr-accent);
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  color: var(--tr-gold);
}
.tr-step__title { font-size: 19px !important; font-weight: 400 !important; line-height: 1.45 !important; color: var(--tr-ink); margin: 0 0 8px; }
.tr-step__text { font-family: var(--tr-sans); font-size: 14.5px; line-height: 1.75; color: var(--tr-muted); margin: 0; }

@media (max-width: 991px) {
  /* 平板和手机：改为纵向时间轴 */
  .tr-steps {
    --tr-step-dot: 44px;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
  }
  .tr-steps::before {
    top: 8px;
    bottom: 8px;
    left: calc(var(--tr-step-dot) / 2);
    right: auto;
    width: 1px;
    height: auto;
    background: var(--tr-gold);
  }
  .tr-step {
    display: grid;
    grid-template-columns: var(--tr-step-dot) minmax(0, 1fr);
    column-gap: 16px;
    text-align: left;
    padding-bottom: 28px;
  }
  .tr-step:last-child { padding-bottom: 0; }
  .tr-step__num { grid-row: 1 / span 2; margin: 0; font-size: 18px; }
  .tr-step__title { margin: 8px 0 4px; }
}

/* ---------- 通用"查看更多" ---------- */
.tr-home-more { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 480px) {
  .tr-home-more .tr-btn { width: 100%; }
}

/* ---------- 顾问团队 ---------- */
/* 固定 3 列：9 位顾问排成整齐的 3×3 */
@media (min-width: 576px) {
  .tr-team-grid { grid-template-columns: repeat(3, minmax(0, 300px)); gap: 28px; }
}
@media (min-width: 576px) and (max-width: 991px) {
  .tr-team-grid { gap: 16px; }
}
@media (max-width: 575px) {
  /* 两列时单独剩下的最后一张居中 */
  .tr-team-grid > .tr-person:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
}
article.tr-person:hover { transform: none; box-shadow: none; border-color: var(--tr-line); }
@media (max-width: 575px) {
  .tr-team-grid .tr-person__body { padding: 12px 12px 14px; }
  .tr-team-grid .tr-person__name { font-size: 16px; }
  .tr-team-grid .tr-person__role { font-size: 13px; }
}

/* ---------- 结语 CTA ---------- */
.tr-about-closing { flex: 1 1 480px; min-width: 0; }
.tr-about-closing__text p { font-family: var(--tr-sans); font-size: 16px; line-height: 1.85; color: var(--tr-muted); margin: 8px 0 0; }
.tr-cta-band > .tr-actions { flex: 0 0 auto; }
@media (max-width: 767px) {
  .tr-cta-band > .tr-actions { flex: 1 1 100%; }
  .tr-cta-band > .tr-actions .tr-btn { flex: 1 1 100%; }
}

/* ---------- 下载区（与首页一致） ---------- */
.tr-download { padding-top: 24px; }
.tr-download__copy { flex: 1 1 420px; min-width: 0; }
.tr-download__kicker { font-family: var(--tr-sans); font-size: 15px; font-weight: 500; color: var(--tr-gold-text); margin: 0 0 6px; }
.tr-download__copy .tr-lead { margin-bottom: 24px; max-width: 36em; }
.tr-download__copy .tr-btn svg { width: 20px; height: 20px; flex: none; }
.tr-download__art { flex: 0 0 auto; width: 180px; color: var(--tr-rose-600); }
.tr-download__art svg { display: block; width: 100%; height: auto; }
@media (max-width: 767px) {
  .tr-download__art { display: none; }
}
@media (max-width: 480px) {
  .tr-download__copy .tr-actions .tr-btn { flex: 1 1 100%; }
}
