/* =========================================================
   Infinity Academy · 课程体系首页（五大方向）
   依赖 styles.css 的变量与基础类
   暖白底 / 深墨蓝 / 深绿口音
   ========================================================= */

/* ---------- 页面通用 ---------- */
.ch-section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.ch-section + .ch-section { border-top: 1px solid var(--line-soft); }
.ch-section.tinted { background: var(--bg-soft); border-top-color: transparent; }

.ch-kicker {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.ch-kicker .idx { color: var(--mute); margin-right: 14px; font-weight: 400; }

.ch-h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500; line-height: 1.16; letter-spacing: -0.012em;
  color: var(--ink); margin: 16px 0 0;
}
.ch-h2 .ital { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }

.ch-lead {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7;
  color: var(--ink-2); font-weight: 300; max-width: 760px; margin: 18px 0 0;
  text-wrap: pretty;
}

/* ---------- HERO ---------- */
.ch-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 88px) 0 72px;
  border-bottom: 1px solid var(--line);
}
.ch-hero .container { max-width: var(--max); position: relative; z-index: 1; }
.ch-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 30px;
}
.ch-hero-eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(58,90,74,0.5); animation: pulse 2.4s infinite;
}
.ch-hero-title {
  font-size: clamp(46px, 6.4vw, 96px);
  font-weight: 300; line-height: 1.02; letter-spacing: -0.03em;
  color: var(--ink); margin: 0;
}
.ch-hero-sub {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: clamp(20px, 2.2vw, 30px); line-height: 1.4;
  color: var(--accent); margin: 22px 0 0; letter-spacing: -0.005em;
}
.ch-hero-note {
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65;
  color: var(--ink-3); font-weight: 300; max-width: 600px; margin: 26px 0 0;
  text-wrap: pretty;
}

/* ---------- 五大方向 ---------- */
.dir-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px;
}
.dir-card:nth-child(-n+3) { grid-column: span 2; }
.dir-card:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 980px) {
  .dir-grid { grid-template-columns: 1fr 1fr; }
  .dir-card:nth-child(-n+3),
  .dir-card:nth-child(n+4) { grid-column: span 1; }
  .dir-card:last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .dir-grid { grid-template-columns: 1fr; }
  .dir-card:last-child { grid-column: span 1; }
}

.dir-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
  color: inherit; position: relative;
}

/* visual band */
.dc-visual {
  position: relative; width: 100%; aspect-ratio: 16 / 7;
  background: linear-gradient(160deg, #FCFCFA 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.dc-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dir-card:nth-child(n+4) .dc-visual { aspect-ratio: 24 / 7; }
@media (max-width: 980px) {
  .dir-card:nth-child(n+4) .dc-visual { aspect-ratio: 16 / 7; }
}

/* body */
.dc-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 28px 30px 26px;
}
.dc-head { display: flex; align-items: baseline; gap: 13px; margin-bottom: 12px; }
.dc-num {
  font-family: var(--f-serif); font-size: 22px; font-weight: 400;
  color: var(--accent); line-height: 1; flex: none;
}
.dc-name {
  font-size: clamp(21px, 2vw, 26px); font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em; margin: 0;
}
.dc-desc {
  font-size: 15px; line-height: 1.66; color: var(--ink-3);
  font-weight: 300; margin: 0; text-wrap: pretty;
}
.dir-card:nth-child(n+4) .dc-desc { max-width: 560px; }

/* keyword tag line */
.dc-tags {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px;
}
.dc-tag {
  font-size: 12px; letter-spacing: 0.02em; padding: 5px 11px;
  border: 1px solid var(--line); border-radius: 99px;
  color: var(--ink-2); background: var(--bg); white-space: nowrap;
}
/* footer link */
.dc-foot {
  margin-top: auto; padding-top: 20px; display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
}
.dc-explore {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.04em; color: var(--accent); font-weight: 500;
}
.dc-explore .arrow { transition: transform .25s ease; }
.dir-card:hover .dc-explore .arrow { transform: translateX(4px); }
.dc-soon {
  font-size: 11px; letter-spacing: 0.04em; color: var(--mute); font-weight: 300;
}

/* ---------- 连接模块 ---------- */
.connect-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(36px, 5vw, 56px);
}
.connect-flow {
  width: 100%; height: 120px; margin: 4px 0 36px;
}
.connect-flow svg { width: 100%; height: 100%; overflow: visible; }
.connect-body {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start;
}
@media (max-width: 820px) { .connect-body { grid-template-columns: 1fr; gap: 24px; } }
.connect-body .cb-title {
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; line-height: 1.25;
  color: var(--ink); letter-spacing: -0.01em; margin: 0;
}
.connect-body .cb-title .ital { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.connect-body .cb-text { margin: 0; }
.connect-body .cb-text p {
  margin: 0 0 12px; font-size: 15.5px; line-height: 1.72;
  color: var(--ink-3); font-weight: 300;
}
.connect-body .cb-text p:last-child { margin-bottom: 0; }
.connect-body .cb-text strong { font-weight: 500; color: var(--ink-2); }

/* ---------- 按年级入口提示 ---------- */
.grade-hint {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
@media (max-width: 760px) { .grade-hint { grid-template-columns: 1fr; gap: 26px; } }
.grade-hint .gh-title {
  font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: var(--ink);
  letter-spacing: -0.005em; margin: 0 0 12px;
}
.grade-hint .gh-text {
  font-size: 15px; line-height: 1.65; color: var(--ink-3); font-weight: 300; margin: 0 0 14px;
}
.grade-hint .gh-note {
  font-size: 12.5px; line-height: 1.5; color: var(--mute); font-weight: 300; margin: 0;
}
.grade-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.grade-tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; padding: 13px 18px;
  border: 1px solid var(--line); background: #fff; border-radius: 3px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-2);
  transition: all .2s ease;
}
.grade-tag:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

/* ---------- 结尾 CTA ---------- */
.ch-cta {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 56px; align-items: center;
  padding: clamp(40px, 5vw, 56px); background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 4px; position: relative;
}
.ch-cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
@media (max-width: 880px) { .ch-cta { grid-template-columns: 1fr; gap: 30px; } }
.ch-cta .cta-eyebrow {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 16px;
}
.ch-cta .cta-title {
  font-size: clamp(26px, 2.8vw, 38px); font-weight: 500; line-height: 1.22;
  color: var(--ink); letter-spacing: -0.01em; margin: 0 0 16px;
}
.ch-cta .cta-sub { font-size: 15.5px; line-height: 1.68; color: var(--ink-3); font-weight: 300; max-width: 540px; margin: 0; }
.ch-cta .cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ch-cta .cta-primary {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 3px;
  font-size: 15px; letter-spacing: 0.02em; transition: all .2s ease;
}
.ch-cta .cta-primary:hover { background: var(--accent); border-color: var(--accent); }
.ch-cta .cta-primary .arrow { transition: transform .2s ease; }
.ch-cta .cta-primary:hover .arrow { transform: translateX(4px); }
.ch-cta .cta-secondary {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
  color: var(--ink-2); letter-spacing: 0.02em; border-bottom: 1px solid var(--line);
  padding-bottom: 2px; transition: border-color .2s ease, color .2s ease;
}
.ch-cta .cta-secondary:hover { color: var(--ink); border-color: var(--ink-2); }
