/* ==========================================================================
   内容组件补充样式
   仅承载新增内容模块（教师档案、班型对比、FAQ、案例、校区详情等），
   继承 style.css 的 Apple 风格 token，不改动既有页面骨架。
   ========================================================================== */

/* 家长学习需求沟通：选项与真实服务说明，沿用官网文字和表格层级。 */
.needs-section {
  background: var(--surface);
}

.needs-section .section-sub {
  max-width: 720px;
}

.needs-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.needs-progress li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.needs-progress li:has([aria-current="step"]) {
  color: var(--accent);
}

.needs-progress span {
  font-size: 13px;
}

.needs-progress button {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
}

.needs-progress button:disabled {
  color: var(--ink-secondary);
  cursor: default;
}

.needs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  gap: 48px;
  align-items: start;
}

.needs-panel {
  min-width: 0;
}

.needs-step-title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  scroll-margin: 100px 0 100px;
}

.needs-step-title:focus {
  outline: none;
}

.needs-fieldset {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.needs-fieldset legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}

.needs-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.needs-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
}

.needs-option:hover {
  background: var(--surface-2);
}

.needs-option:has(:checked) {
  border-color: var(--accent);
  background: #f2f7fd;
}

.needs-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.needs-option:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.needs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.needs-section button:disabled {
  cursor: default;
}

.needs-actions .btn:disabled {
  opacity: 0.5;
}

.needs-text-button {
  display: inline;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.needs-section :is(button, a, select, textarea, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.needs-aside {
  padding: 24px;
  border-left: 2px solid var(--line);
  background: var(--surface-2);
}

.needs-aside h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
}

.needs-aside p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.needs-aside .needs-aside-note {
  margin: 18px 0 10px;
  color: var(--ink-secondary);
  font-size: 13px;
}

.needs-summary {
  margin: 0;
}

.needs-summary-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.needs-summary dt {
  margin: 0 0 3px;
  color: var(--ink-secondary);
  font-size: 13px;
}

.needs-summary dd {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.needs-hint {
  margin: 0 0 18px;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.needs-followups {
  margin-top: 24px;
}

.needs-services {
  margin-bottom: 24px;
}

.needs-service {
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.needs-service h4 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
}

.needs-service p,
.needs-service li {
  font-size: 14px;
  line-height: 1.8;
}

.needs-service ul {
  margin: 12px 0;
  padding-left: 20px;
  color: var(--ink-secondary);
}

.needs-section .form-group :is(select, input, textarea) {
  border-color: var(--line);
  background-color: var(--surface);
}

.needs-section .form-group textarea {
  height: auto;
  min-height: 108px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.6;
}

.needs-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 14px 0 28px;
}

.needs-note-preview {
  margin: 0;
  padding: 12px 16px;
  border-left: 2px solid var(--line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.needs-note-preview + .needs-edit-actions {
  margin-top: 18px;
}

.needs-contact-form .form-row {
  margin-bottom: 18px;
}

.needs-contact-form .needs-hint {
  margin-top: 18px;
}

.needs-status:empty {
  display: none;
}

.needs-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  background: var(--surface-2);
  line-height: 1.8;
}

.needs-success {
  margin-bottom: 20px;
  line-height: 1.8;
}

.needs-success ~ .btn {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .needs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .needs-aside {
    padding: 20px;
  }

  .needs-layout:has(.needs-contact-form) .needs-aside {
    display: none;
  }
}

@media (max-width: 560px) {
  .needs-progress {
    margin-bottom: 24px;
  }

  .needs-progress li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
  }

  .needs-progress button {
    font-size: 14px;
  }

  .needs-step-title {
    font-size: 21px;
  }

  .needs-options,
  .needs-contact-form .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .needs-option {
    min-height: 54px;
  }

  .needs-actions .btn {
    flex: 1 1 auto;
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* --------------------------------------------------------------------------
   右侧固定快捷操作栏（原首屏快捷咨询入口，v2 移入侧栏）
   -------------------------------------------------------------------------- */
.side-rail {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: grid;
  gap: 10px;
  width: 88px;
}

.side-rail .rail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.side-rail .rail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  color: var(--accent);
}

.side-rail .rail-card .icon {
  width: 22px;
  height: 22px;
}

.side-rail .rail-card small {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-tertiary);
  font-variant-numeric: tabular-nums;
}

/* 窄屏：右侧栏转为底部固定操作条 */
@media (max-width: 1279px) {
  .side-rail {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    transform: none;
    width: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 251, 253, 0.94);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }

  .side-rail .rail-card {
    border: 0;
    box-shadow: none;
    background: none;
    border-radius: 10px;
    padding: 8px 4px;
  }

  .side-rail .rail-card small {
    display: none;
  }

  body:has(.side-rail) {
    padding-bottom: 64px;
  }
}

/* --------------------------------------------------------------------------
   教师档案卡（照片 + 结构化文字，便于 AI 抓取）
   -------------------------------------------------------------------------- */
.teacher-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.teacher-profile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

button.teacher-profile {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.teacher-profile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.tp-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 8%;
  background: var(--surface-2);
}

.tp-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.tp-name {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tp-school {
  margin-top: 4px;
  font-size: 14px;
  color: var(--accent);
}

.tp-role {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-tertiary);
}

.tp-facts {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.tp-fact {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.5;
}

.tp-fact dt {
  flex-shrink: 0;
  width: 64px;
  color: var(--ink-tertiary);
}

.tp-fact dd {
  margin: 0;
  color: var(--ink-secondary);
}

.tp-motto {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.tp-motto strong {
  font-weight: 500;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   班型对比表
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.compare-table thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-tertiary);
  background: var(--surface-2);
  white-space: nowrap;
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.compare-table td {
  color: var(--ink-secondary);
  line-height: 1.55;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   班型入口卡
   -------------------------------------------------------------------------- */
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.type-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.type-card:hover {
  background: var(--surface-2);
  border-color: var(--line);
}

.type-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.type-title {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.type-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.type-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.type-meta span {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--ink-secondary);
}

.type-card .link-arrow {
  margin-top: auto;
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   图片画廊
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   校区详情
   -------------------------------------------------------------------------- */
.campus-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.campus-detail {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.campus-detail--hq {
  background: var(--dark-elevated);
  color: var(--dark-text);
  border-color: transparent;
}

.campus-detail h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.campus-detail--hq h3 {
  color: var(--dark-text);
}

.campus-detail .campus-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.campus-detail--hq .campus-sub {
  color: var(--dark-secondary);
}

.campus-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.campus-detail--hq .campus-facts {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.campus-facts p {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.campus-detail--hq .campus-facts p {
  color: var(--dark-secondary);
}

.campus-facts .icon {
  flex-shrink: 0;
  margin-top: 3px;
}

.campus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.campus-tags span {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--ink-secondary);
}

.campus-detail--hq .campus-tags span {
  background: rgba(255, 255, 255, 0.12);
  color: var(--dark-secondary);
}

.campus-detail .campus-actions {
  margin-top: auto;
  padding-top: 20px;
}

.campus-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--ink-secondary);
}

.campus-hours strong {
  font-weight: 500;
  color: var(--ink);
}

/* 各校区详情卡：地址下方的营业时间块 */
.campus-hours-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 10px 0 4px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.055);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.campus-hours-inline .chr-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.campus-hours-inline .chr-item b {
  font-weight: 600;
  color: var(--ink);
}

.campus-hours-inline .chr-divider {
  width: 1px;
  height: 13px;
  background: var(--line);
}

@media (max-width: 640px) {
  .campus-hours-inline {
    gap: 4px 12px;
  }
  .campus-hours-inline .chr-divider {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  border-top: 1px solid var(--line-soft);
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  color: var(--ink-tertiary);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 820px;
  padding: 0 4px 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer ul {
  margin-top: 8px;
  padding-left: 18px;
  list-style: disc;
}

.faq-answer li {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   案例库
   -------------------------------------------------------------------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.case-kicker {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

.case-title {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.case-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--line-soft);
}

.case-step {
  padding: 14px;
  background: var(--surface-2);
}

.case-step dt {
  font-size: 11px;
  color: var(--ink-tertiary);
}

.case-step dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

.case-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.quote-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.quote-card blockquote {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
}

.quote-card cite {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-style: normal;
  color: var(--ink-tertiary);
}

/* --------------------------------------------------------------------------
   升学干货文章卡
   -------------------------------------------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.article-stage {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

.article-title {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.article-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   资质公示
   -------------------------------------------------------------------------- */
.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.credential-card {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.credential-card h3,
.credential-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.credential-card p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   通用双栏 / 一對一模块
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.split-copy .section-title {
  margin-top: 8px;
}

.split-copy p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.step-item {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.step-item .num {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

.step-item h4 {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.step-item p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   页脚补充信息
   -------------------------------------------------------------------------- */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-tertiary);
}

.footer-legal a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .teacher-profile-grid,
  .faculty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .type-grid,
  .campus-detail-grid,
  .case-grid,
  .article-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .step-list,
  .gallery-grid,
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .teacher-profile-grid,
  .gallery-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  .tp-photo {
    aspect-ratio: 16 / 10;
  }

  .case-flow {
    grid-template-columns: 1fr;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
  }
}
/* --------------------------------------------------------------------------
   首页首屏图片区（补充样式）
   -------------------------------------------------------------------------- */
.hero-media {
  margin: 28px auto 0;
}

.hero-media figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
}

/* 完整版主页海报（5645×1899 高清原图）：按原始比例全宽渲染，不裁切 */
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-media figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

/* FAQ 列表后的说明段落 */
.faq-answer ul + p {
  margin-top: 10px;
}

/* 锚点定位时为固定导航留出空间（v2：导航 68px） */
section[id],
div[id] {
  scroll-margin-top: 88px;
}

/* ==========================================================================
   v2 新增组件（首页密度改造，子页可直接复用）
   通用语言：发丝线分隔的表格化列表，不用卡片 + 阴影堆叠
   ========================================================================== */

/* --------------------------------------------------------------------------
   一周课表（初高中晚辅 + 周末模考）
   -------------------------------------------------------------------------- */
.sched-list {
  margin-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.sched-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px 20px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.sched-day {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.sched-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 13px;
  line-height: 1.6;
}

.sched-items span {
  white-space: nowrap;
  color: var(--ink-secondary);
}

.sched-items b {
  margin-right: 5px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sched-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-tertiary);
}

/* --------------------------------------------------------------------------
   校区地址表（首页校区速查）
   -------------------------------------------------------------------------- */
.campus-table {
  border-top: 1px solid var(--line-soft);
}

.campus-row {
  display: grid;
  grid-template-columns: 148px 52px 1fr 118px;
  gap: 4px 16px;
  align-items: baseline;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.ct-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.ct-district {
  font-size: 12px;
  color: var(--ink-tertiary);
  white-space: nowrap;
}

.ct-addr {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.ct-open {
  font-size: 12px;
  color: var(--ink-tertiary);
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   提分记录数据墙（红色数字仅用于成绩与喜报）
   -------------------------------------------------------------------------- */
.report-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}

.rw-cell {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

.rw-cell:nth-child(4n) {
  border-right: 0;
}

.rw-num {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.rw-num .unit {
  margin-left: 3px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-secondary);
}

.rw-label {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}

.rw-note {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-tertiary);
}

/* 奖学金条 */
.scholar-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.scholar-item {
  padding: 14px 16px 12px;
  border-right: 1px solid var(--line-soft);
}

.scholar-item:last-child {
  border-right: 0;
}

.scholar-item strong {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.scholar-item span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

/* 喜报区双栏 */
.result-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.result-col-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* 新闻速览 */
.news-mini {
  border-top: 1px solid var(--line-soft);
}

.news-mini li {
  border-bottom: 1px solid var(--line-soft);
}

.news-mini a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 8px 4px;
  color: inherit;
}

.news-mini a:hover .nm-title {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nm-date {
  flex-shrink: 0;
  width: 74px;
  font-size: 12px;
  color: var(--ink-tertiary);
  font-variant-numeric: tabular-nums;
}

.nm-title {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

/* 家长反馈名单 */
.feedback-names {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.feedback-names b {
  font-weight: 500;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   内联样式替代类（v2 收编）
   -------------------------------------------------------------------------- */
.contact-email {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-tertiary);
}

/* 校区开业时间线（投资区） */
.open-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-secondary);
}

.open-timeline b {
  margin-right: 4px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   v2 组件响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .report-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rw-cell:nth-child(4n) {
    border-right: 1px solid var(--line-soft);
  }

  .rw-cell:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .result-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .campus-row {
    grid-template-columns: 1fr auto auto;
  }

  .ct-addr {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .sched-row {
    grid-template-columns: 1fr;
  }

  .scholar-bar {
    grid-template-columns: 1fr;
  }

  .scholar-item {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .scholar-item:last-child {
    border-bottom: 0;
  }

  .report-wall {
    grid-template-columns: 1fr;
  }

  .rw-cell,
  .rw-cell:nth-child(2n),
  .rw-cell:nth-child(4n) {
    border-right: 0;
  }
}

/* ==========================================================================
   v2 子页补充组件（课程页 / 师资页 / 成长页回填）
   同一语言：发丝线行式列表与限高图框，无卡片阴影堆叠
   ========================================================================== */

/* --------------------------------------------------------------------------
   课程页两列定义列表（六个课程页，替代 01–06 编号卡片）
   -------------------------------------------------------------------------- */
.detail-rows {
  margin-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.detail-rows > div {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 4px 20px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-rows dt {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.detail-rows dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

/* 子页 page-hero 内复用首屏事实条：与首页 40px 收敛为 28px */
.page-hero .hero-facts {
  margin-top: 28px;
}

/* 栏目标题紧跟表格 / sched-note / detail-rows 时与上文拉开间距 */
.section .result-col-title:not(:first-child) {
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   创始与管理团队卡片（teachers.html，3 列照片卡）
   -------------------------------------------------------------------------- */
.founder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.founder-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.founder-photo {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
}

.founder-card .fd-body {
  flex: 1;
  padding: 16px 18px 18px;
}

.fd-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.fd-role {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--accent);
}

.fd-facts {
  margin: 10px 0 0;
  border-top: 1px solid var(--line-soft);
}

.fd-facts > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.55;
}

.fd-facts dt {
  color: var(--ink-tertiary);
  flex-shrink: 0;
}

.fd-facts dd {
  margin: 0;
  color: var(--ink-secondary);
}

.fd-facts b {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fd-motto {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-tertiary);
}

/* --------------------------------------------------------------------------
   家长微信好评截图墙（growth.html，保持原始纵横比，无 hover 缩放）
   -------------------------------------------------------------------------- */
.proof-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.proof-item {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.proof-item img {
  display: block;
  width: 100%;
  height: auto;
}

.proof-item figcaption {
  padding: 8px 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-tertiary);
}

/* --------------------------------------------------------------------------
   长图限高滚动查看框（growth.html 考风考纪抽查表，不裁切名单）
   -------------------------------------------------------------------------- */
.tall-frame {
  max-height: 560px;
  overflow-y: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.tall-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* 升学干货分组小标题（小学/初中/高中/通用，替代内联样式） */
.group-title {
  margin: 36px 0 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.group-title:first-of-type {
  margin-top: 0;
}

/* 块级间距工具类（如 quote-card 与上方 case-grid 之间） */
.mt-gap {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   子页补充组件响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .founder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tall-frame {
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .founder-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .group-title {
    margin: 28px 0 12px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .detail-rows > div {
    grid-template-columns: 1fr;
  }

  .proof-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   首页第二屏：师资小方卡（左） + 投资人合作 / 学苑新闻侧栏（右）
   ========================================================================== */
.home-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

/* 14 位教师小方形卡片：静态网格，无轮播无滚动 */
.teacher-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.teacher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.teacher-card:hover {
  background: var(--surface-2);
  border-color: var(--line);
}

.tc-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-2);
  margin-bottom: 6px;
}

.tc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.tc-school {
  margin-top: 1px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: #c8322e;
}

.duo-more {
  margin-top: 14px;
  font-size: 13px;
}

/* 右侧栏 */
.duo-side {
  display: grid;
  gap: 20px;
}

.side-panel {
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.sp-head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sp-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.sp-sub {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.sp-more {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--link);
  white-space: nowrap;
}

.side-panel .link-arrow {
  margin-top: 14px;
}

.invest-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.im-cell {
  padding: 12px 8px;
  border-right: 1px solid var(--line-soft);
  text-align: center;
}

.im-cell:last-child {
  border-right: 0;
}

.im-cell strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.im-cell span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--ink-tertiary);
}

/* 合伙人计划布局图 */
.invest-map {
  margin: 16px 0 0;
}

.invest-map img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.invest-map figcaption {
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
  color: var(--ink-tertiary);
}

/* 学苑新闻：最新十条 */
.side-news {
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.side-news li {
  border-bottom: 1px solid var(--line-soft);
}

.side-news a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 2px;
}

.sn-date {
  flex-shrink: 0;
  width: 74px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink-tertiary);
  font-variant-numeric: tabular-nums;
}

.sn-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

.side-news a:hover .sn-title {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   news/ 二级目录：新闻列表与文章正文
   ========================================================================== */
.news-list a.news-item {
  color: inherit;
  text-decoration: none;
}

.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.article-body p {
  margin: 14px 0;
}

.article-body h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

.article-body h3 {
  margin: 24px 0 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

.article-body ul,
.article-body ol {
  margin: 12px 0;
  padding-left: 28px;
}

.article-body li {
  margin: 6px 0;
}

.article-body img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: var(--radius-md);
}

.article-body hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}

.article-source {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-tertiary);
}

@media (max-width: 1024px) {
  .home-duo {
    grid-template-columns: 1fr;
  }

  .teacher-cards {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .teacher-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tc-school {
    font-size: 13px;
  }
}

/* ==========================================================================
   == dev-frontend 前端优化新增 ==
   dev-frontend 分支新增共享组件，供 courses / invest / faq / news 等页面接入。
   命名沿用既有 BEM 风格；只新增，不改上方既有规则。
   ========================================================================== */

/* 五列步骤（1 对 1 服务流程等）：>768 五列，≤768 降两列，≤640 单列。
   媒体查询须与列数声明同块放置——本区块位于既有 .step-list ≤900/≤640 降列规则之后，
   若拆开写会被源序覆盖 */
.step-list--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .step-list--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 三列步骤（生地会考三轮冲刺等）：降列节奏对齐 .step-list 基准 */
.step-list--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .step-list--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .step-list--three,
  .step-list--five {
    grid-template-columns: 1fr;
  }
}

/* 流程对比表：列数少，免横向滚动（放在 .table-wrap 内外均可收缩） */
.compare-table--flow {
  min-width: 0;
}

/* 投资页两模式对比表：发丝线行式，风格对齐 campus-table */
.invest-compare {
  width: 100%;
  border-top: 1px solid var(--line-soft);
  border-collapse: collapse;
  font-size: 14px;
}

.invest-compare th,
.invest-compare td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.invest-compare thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-tertiary);
  white-space: nowrap;
}

.invest-compare tbody th {
  font-weight: 600;
  color: var(--ink);
}

.invest-compare td {
  color: var(--ink-secondary);
  line-height: 1.55;
}

.invest-compare tr:last-child th,
.invest-compare tr:last-child td {
  border-bottom: 0;
}

/* 新闻文章页文末转化卡：surface-2 底 + 发丝线边，含按钮容器 */
.article-cta {
  margin-top: 36px;
  padding: 26px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.article-cta-title {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* 文章图片题注 */
.article-caption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-tertiary);
}

/* 返回顶部圆钮（右下，移动端保留；存在底部固定条时自动上抬让位） */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 940;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.back-top:hover {
  background: var(--ink);
  color: #fff;
}

.back-top .icon {
  width: 18px;
  height: 18px;
}

/* 家长反馈截图：定高不裁切，完整展示原始纵横比。
   .proof-item img 的 height:auto（0-1-1）特异性更高，需用组合选择器同提 */
.feedback-shot,
.proof-item img.feedback-shot {
  width: 100%;
  height: 260px;
  object-fit: contain;
}

/* FAQ 搜索框 */
.faq-search {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-search::placeholder {
  color: var(--ink-tertiary);
}

.faq-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

/* FAQ 搜索无结果 / JS 不可用时的兜底提示卡 */
.faq-item--fallback {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* FAQ summary hover 底色（与行式列表 hover 语言一致） */
.faq-item summary:hover {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

/* FAQ 展开动效渐进增强：支持 interpolate-size 的浏览器做答案高度过渡，
   不支持的保持原生直接展开/收起 */
@supports (interpolate-size: allow-keywords) {
  .faq-list {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
  }
}

/* 投资指标条 ≤768：保持三列并收窄间距与字号 */
@media (max-width: 768px) {
  .invest-metrics {
    gap: 10px;
    margin: 28px 0;
  }

  .invest-metrics .metric strong {
    font-size: 24px;
  }

  .invest-metrics .metric strong span {
    font-size: 12px;
  }

  .invest-metrics .metric > span {
    font-size: 12px;
  }

  .article-cta {
    padding: 22px 20px;
  }
}

/* 返回顶部钮与底部固定条让位（≤1279 侧栏转底条 / ≤768 移动 CTA 条） */
@media (max-width: 1279px) {
  body:has(.side-rail) .back-top {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 768px) {
  body:has(.mobile-cta-bar.show) .back-top {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  .invest-compare th,
  .invest-compare td {
    padding: 11px 10px;
  }
}

/* ==========================================================================
   == growth.html 新闻档案板块（年份分组卡片） ==
   重排分组标题与条目卡片的视觉层级：每个年份一张白卡，
   组头为「大号年份 + 条数胶囊」，条目为日期 / 标题 / 箭头三段网格。
   仅作用于 growth.html 的 .na-* 结构，不影响 news/ 目录页面的 .news-item。
   ========================================================================== */
.na-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.na-col {
  display: grid;
  gap: 24px;
}

.na-group {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.na-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-3);
}

.na-year {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.na-count {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 113, 227, 0.1);
  font-size: 12px;
  font-weight: 500;
  color: #0066cc;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.na-list {
  display: grid;
}

.na-item {
  display: grid;
  grid-template-columns: 84px 1fr 18px;
  gap: 16px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}

.na-item:last-child {
  border-bottom: 0;
}

.na-item:hover {
  background: var(--surface-2);
}

.na-date {
  font-size: 13px;
  color: var(--ink-tertiary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.na-title {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.na-item:hover .na-title {
  color: var(--accent);
}

.na-arrow {
  font-size: 18px;
  line-height: 1;
  color: var(--ink-tertiary);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.na-item:hover .na-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* 响应式：≤1024 单列堆叠；≤640 收窄内边距与字号 */
@media (max-width: 1024px) {
  .na-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .na-group-head {
    padding: 14px 16px 12px;
  }

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

  .na-item {
    grid-template-columns: 76px 1fr 16px;
    gap: 12px;
    padding: 13px 16px;
  }

  .na-title {
    font-size: 14px;
  }

  .na-date {
    font-size: 12px;
  }
}

/* 首页课程入口，与师资、合作和新闻同屏呈现。 */
.home-course-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.home-course-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 156px;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.home-course-link strong {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #075db7;
  font-size: 23px;
  font-weight: 700;
}
.home-course-link strong::before {
  content: "";
  width: 4px;
  height: 22px;
  flex: 0 0 4px;
  border-radius: 2px;
  background: #0875df;
}
.home-course-link span { color: var(--ink-secondary); font-size: 14px; line-height: 1.5; }
.home-course-link .home-course-more { margin-top: auto; color: var(--link); }
.home-course-link:hover { border-color: var(--link); }
.home-course-link:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
@media (max-width: 480px) {
  .home-course-links { gap: 12px; }
  .home-course-link { padding: 18px; min-height: 150px; }
}

/* 右栏信息随师资区域拉伸，窄屏按自然高度顺序排列。 */
@media (min-width: 1025px) {
  .home-duo { align-items: stretch; }
  .duo-side { grid-template-rows: auto auto auto 1fr; }
}
.home-invest-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42%); align-items: center; gap: 18px; }
.home-invest-layout .invest-map { margin: 0; }
.home-invest-layout .invest-map img { border: 0; }
.home-invest-layout .invest-map figcaption { line-height: 1.4; }
.home-campus .link-arrow { margin-top: 14px; }
@media (max-width: 480px) {
  .home-invest-layout { grid-template-columns: 1fr; }
  .home-invest-layout .invest-map { max-width: 280px; margin: 0 auto; }
}

.home-campus-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}
.home-campus-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.duo-side .side-news a { padding: 9px 2px; }

.home-course-link .home-course-highlight { color: var(--ink); font-size: 16px; font-weight: 600; }

@media (max-width: 480px) {
  .home-course-link strong { font-size: 17px; gap: 6px; }
  .home-course-link strong::before { height: 18px; }
}

/* ==========================================================================
 * 英文态（html[lang="en"]，由 js/i18n.js 切换）版式适配
 * 标签列由中文 2–4 字改为英文长标签时放开固定列宽，避免与内容重叠
 * ========================================================================== */
html[lang="en"] .fd-facts > div {
  grid-template-columns: max-content 1fr;
}

html[lang="en"] .tp-fact dt {
  width: auto;
  min-width: 64px;
}
