/*
Theme Name: 蓉智学堂 Rong AI Academy
Theme URI: https://example.com/rongzhi-academy
Author: Rong AI Academy
Author URI: https://example.com
Description: 为成都智能体搭建培训业务定制的 WordPress 主题。视觉方向取自"工程蓝图":坐标纸底纹、靛青墨线、金沙金点缀(致敬成都太阳神鸟市徽),等宽字体做图签标注。内置「课程」自定义文章类型、首页营销版块(课程体系 / 教学优势 / 学习路径 / 学员评价 / 常见问题 / 咨询报名)、微信二维码与 ICP 备案设置,无任何外部字体或 CDN 依赖,国内访问友好。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rongzhi-academy
Tags: education, business, custom-menu, custom-logo, featured-images, sticky-post, threaded-comments
*/

/* =========================================================
   0. 设计变量(改颜色只需要改这里)
   ========================================================= */
:root {
  /* 蓝图墨色 */
  --ink: #26315f;
  --ink-2: #525c82;
  --ink-3: #8189a8;
  /* 图纸底色 */
  --paper: #f5f6f1;
  --paper-2: #ebede4;
  --card: #ffffff;
  /* 金沙金(太阳神鸟) */
  --gold: #e9a13b;
  --gold-2: #c87e1b;
  --gold-soft: #f6e3c2;
  /* 夜间蓝图(深色区块) */
  --night: #1c2450;
  --night-2: #161c40;
  --night-text: #c6cce6;
  /* 辅助 */
  --green: #3e7c4f;
  --grid-line: rgba(38, 49, 95, 0.07);
  --grid-line-strong: rgba(38, 49, 95, 0.13);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 14px 30px rgba(31, 42, 90, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", "JetBrains Mono", "Cascadia Mono",
    Consolas, "Liberation Mono", "Courier New", monospace;
}

/* =========================================================
   1. 基础
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.32;
  margin: 0 0 0.5em;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.section-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

[id] {
  scroll-margin-top: 96px;
}

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 28px;
}

.container-narrow {
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 28px;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* WordPress 必备类 */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 14px;
  top: 14px;
}

.sticky {
  /* 置顶文章标记(WordPress 规范要求存在) */
  position: relative;
}

.bypostauthor {
  /* 作者评论标记(WordPress 规范要求存在) */
  position: relative;
}

.alignleft {
  float: left;
  margin: 0.4em 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0.4em 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide,
.alignfull {
  max-width: none;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  font-size: 0.9rem;
  color: var(--ink-2);
  text-align: center;
  margin-top: 8px;
}

/* =========================================================
   2. 按钮
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.95em 1.7em;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary {
  background: var(--gold);
}

.btn-primary:hover {
  background: #f0ac4c;
}

.btn-night {
  background: var(--night);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  box-shadow: none;
}

.btn-outline-light:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  font-size: 0.92rem;
  padding: 0.75em 1.3em;
}

.btn-lg {
  font-size: 1.08rem;
  padding: 1.05em 2em;
}

.text-link {
  font-weight: 700;
  color: var(--gold-2);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   3. 顶部导航
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 24px rgba(31, 42, 90, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 46px;
  width: auto;
  border-radius: 8px;
}

.brand-seal {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: inline-block;
  padding: 8px 2px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: right 0.2s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  right: 0;
}

.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 200px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 70;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  display: flex;
}

.main-nav .sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
}

.main-nav .sub-menu a::after {
  display: none;
}

.main-nav .sub-menu a:hover {
  background: var(--paper-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* =========================================================
   4. 首页横幅(蓝图区)
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background-image:
    linear-gradient(var(--grid-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-strong) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.5em 1em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(62, 124, 79, 0.2);
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.22;
  margin: 0.55em 0 0.4em;
  letter-spacing: 0.01em;
}

.hero-title em,
.sec-title em,
.cta-title em {
  font-style: normal;
  color: var(--ink);
  background-image: linear-gradient(
    transparent 64%,
    rgba(233, 161, 59, 0.55) 64%
  );
  padding: 0 0.06em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-2);
  line-height: 1.95;
  max-width: 33em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-points .ico {
  color: var(--gold-2);
}

/* 蓝图纸(签名元素) */
.hero-visual {
  position: relative;
  max-width: 540px;
  margin-inline: auto;
}

.sheet {
  position: relative;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 22px 22px 16px;
  box-shadow: 8px 8px 0 rgba(38, 49, 95, 0.16);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
}

.sheet-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--ink);
  border-style: solid;
  border-width: 0;
}

.sheet-corner.tl { top: 8px; left: 8px; border-top-width: 2.5px; border-left-width: 2.5px; }
.sheet-corner.tr { top: 8px; right: 8px; border-top-width: 2.5px; border-right-width: 2.5px; }
.sheet-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 2.5px; border-left-width: 2.5px; }
.sheet-corner.br { bottom: 8px; right: 8px; border-bottom-width: 2.5px; border-right-width: 2.5px; }

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  padding: 2px 4px 12px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 8px;
}

.sheet-head .sheet-no {
  color: var(--ink);
  font-weight: 700;
  background: var(--gold);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 2px 8px;
}

.flow-svg {
  width: 100%;
  height: auto;
  display: block;
}

.flow-svg .node {
  fill: var(--card);
  stroke: var(--ink);
  stroke-width: 2;
}

.flow-svg .node-gold {
  fill: var(--gold);
}

.flow-svg .node-ink {
  fill: var(--ink);
}

.flow-svg text {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  fill: var(--ink);
}

.flow-svg .t-light {
  fill: #ffffff;
}

.flow-svg .fl {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.flow-svg .fl-dash {
  stroke-dasharray: 5 5;
  stroke: var(--gold-2);
  animation: dashmove 1.4s linear infinite;
}

@keyframes dashmove {
  to {
    stroke-dashoffset: -10;
  }
}

.flow-svg .fa {
  fill: var(--ink);
}

.flow-svg .tick {
  stroke: var(--gold-2);
  stroke-width: 2;
}

/* 图签(标题栏) */
.title-block {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 0;
  margin-top: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  background: var(--card);
}

.title-block span {
  padding: 5px 10px;
  border-left: 1.5px solid var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-block span:first-child,
.title-block span:nth-child(5) {
  border-left: 0;
}

.title-block span:nth-child(n + 5) {
  border-top: 1.5px solid var(--ink);
}

.title-block .tb-label {
  background: var(--paper-2);
  color: var(--ink-2);
  font-weight: 700;
}

/* 浮动标签 */
.chip {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.45em 0.85em;
  box-shadow: 3px 3px 0 var(--ink);
  animation: floaty 5.5s ease-in-out infinite;
  white-space: nowrap;
}

.chip-1 { top: -16px; left: -18px; }
.chip-2 { top: 96px; right: -26px; background: var(--gold); animation-delay: 0.9s; }
.chip-3 { bottom: 120px; left: -30px; background: var(--night); color: #fff; animation-delay: 1.7s; }
.chip-4 { bottom: -14px; right: -8px; animation-delay: 2.4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =========================================================
   5. 工具跑马灯(图纸胶带)
   ========================================================= */
.marquee {
  background: var(--gold);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  padding: 13px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee-group span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  white-space: nowrap;
  padding: 0 26px;
  border-right: 2px solid rgba(38, 49, 95, 0.4);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   6. 教学数据(参数表)
   ========================================================= */
.stats {
  padding: 76px 0 10px;
}

.stats-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 rgba(38, 49, 95, 0.14);
}

.stats-tab {
  position: absolute;
  top: -15px;
  left: 22px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--gold);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  padding: 4px 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.stat {
  padding: 36px 20px 30px;
  text-align: center;
  border-left: 1.5px solid rgba(38, 49, 95, 0.25);
}

.stat:first-child {
  border-left: 0;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.stat-num::after {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  background: var(--gold);
  margin: 10px auto 0;
  border-radius: 2px;
}

.stat-label {
  margin-top: 10px;
  font-weight: 600;
  color: var(--ink-2);
  font-size: 0.96rem;
}

/* =========================================================
   7. 通用区块
   ========================================================= */
.section {
  padding: 92px 0;
}

.section-alt {
  background: var(--paper-2);
}

.section-dark {
  background: var(--night);
  color: var(--night-text);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.sec-head {
  max-width: 740px;
  margin: 0 auto 58px;
  text-align: center;
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.4em 1em;
}

.sec-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}

.section-dark .sec-eyebrow {
  background: transparent;
  color: var(--night-text);
  border-color: rgba(255, 255, 255, 0.4);
}

.sec-title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 0.7em 0 0.4em;
}

.section-dark .sec-title {
  color: #fff;
}

.sec-desc {
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.95;
}

.section-dark .sec-desc {
  color: var(--night-text);
}

/* =========================================================
   8. 课程卡片
   ========================================================= */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr));
  gap: 30px;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 34px 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold-2);
}

.course-tag {
  position: absolute;
  top: -15px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--gold);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  padding: 4px 12px;
}

.course-title {
  font-size: 1.45rem;
  margin: 4px 0 10px;
}

.course-title a {
  text-decoration: none;
}

.course-title a:hover {
  color: var(--gold-2);
}

.course-desc {
  color: var(--ink-2);
  line-height: 1.9;
  flex: 1;
  margin: 0;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-2);
}

.course-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-meta .ico {
  color: var(--gold-2);
}

.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1.5px dashed rgba(38, 49, 95, 0.3);
}

.course-price {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-2);
}

.course-link {
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course-link:hover {
  color: var(--gold-2);
}

.course-card.is-featured {
  background: var(--night);
  border-color: var(--night);
  color: var(--night-text);
}

.course-card.is-featured .course-title,
.course-card.is-featured .course-link {
  color: #fff;
}

.course-card.is-featured .course-desc,
.course-card.is-featured .course-meta {
  color: var(--night-text);
}

.course-card.is-featured .course-price {
  color: var(--gold);
}

.course-card.is-featured .course-foot {
  border-top-color: rgba(255, 255, 255, 0.25);
}

.course-card.is-featured:hover {
  border-color: var(--gold);
}

.courses-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.demo-note {
  max-width: 620px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-2);
  background: var(--card);
  border: 1.5px dashed rgba(38, 49, 95, 0.4);
  border-radius: 8px;
  padding: 10px 16px;
}

/* =========================================================
   9. 教学优势
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 28px;
}

.feature {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--ink);
}

.feature:nth-child(3n + 2) .feature-icon {
  background: #dde3f5;
}

.feature:nth-child(3n) .feature-icon {
  background: #dceadf;
}

.feature h3 {
  font-size: 1.2rem;
  margin: 18px 0 8px;
}

.feature p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.9;
  font-size: 0.98rem;
}

/* =========================================================
   10. 学习路径(夜间蓝图)
   ========================================================= */
.path-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.path-grid::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 4%;
  right: 4%;
  border-top: 2px dashed rgba(255, 255, 255, 0.3);
}

.path-step {
  position: relative;
}

.path-num {
  position: relative;
  z-index: 1;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--night-2);
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.path-step h3 {
  color: #fff;
  font-size: 1.22rem;
  margin: 20px 0 8px;
}

.path-step p {
  margin: 0;
  color: var(--night-text);
  line-height: 1.9;
  font-size: 0.97rem;
}

/* =========================================================
   11. 学员评价
   ========================================================= */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 28px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quote-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 14px;
}

.quote-text {
  flex: 1;
  margin: 0 0 22px;
  line-height: 1.95;
}

.quote-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(38, 49, 95, 0.3);
}

.avatar {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
}

.quote-card:nth-child(3n + 2) .avatar {
  background: var(--gold);
  color: var(--ink);
}

.quote-card:nth-child(3n) .avatar {
  background: var(--green);
}

.who-name {
  font-weight: 700;
  line-height: 1.3;
}

.who-role {
  font-size: 0.86rem;
  color: var(--ink-2);
}

/* =========================================================
   12. 常见问题
   ========================================================= */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
}

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

.faq-icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--paper);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
}

.faq-body {
  margin: 0 24px 22px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(38, 49, 95, 0.3);
  color: var(--ink-2);
  line-height: 1.95;
}

.faq-body p {
  margin: 0;
}

/* =========================================================
   13. 咨询报名(金色区块)
   ========================================================= */
.cta {
  background: var(--gold);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background-image:
    linear-gradient(rgba(38, 49, 95, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 49, 95, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  padding: 84px 0;
}

.cta-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.4em 1em;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.6em 0 0.4em;
}

.cta-title em {
  background-image: linear-gradient(
    transparent 64%,
    rgba(255, 255, 255, 0.7) 64%
  );
}

.cta-desc {
  font-size: 1.08rem;
  line-height: 1.95;
  max-width: 30em;
  color: rgba(38, 49, 95, 0.85);
}

.cta-contact {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 28px 0 30px;
  padding: 0;
}

.cta-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}

.cta-contact .cico {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 10px;
}

.cta-contact small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(38, 49, 95, 0.7);
  font-weight: 700;
}

.qr-card {
  position: relative;
  justify-self: center;
  width: min(100%, 330px);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0 rgba(38, 49, 95, 0.35);
  padding: 26px 26px 22px;
  text-align: center;
}

.qr-img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 12px;
  margin-inline: auto;
  display: block;
}

.qr-ph {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(38, 49, 95, 0.45);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.8;
  padding: 16px;
}

.qr-card .qr-title {
  margin: 16px 0 2px;
  font-weight: 800;
  font-size: 1.05rem;
}

.qr-card .qr-sub {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

/* =========================================================
   14. 页脚
   ========================================================= */
.site-footer {
  background: var(--night);
  color: var(--night-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.2fr;
  gap: 52px;
  padding: 76px 0 56px;
}

.footer-brand .brand-seal {
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  border-color: var(--night-2);
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-tag {
  color: var(--night-text);
}

.footer-about {
  margin-top: 18px;
  line-height: 1.95;
  font-size: 0.97rem;
}

.fcol-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 1.02rem;
  margin: 6px 0 20px;
}

.fcol-title::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
}

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

.footer-links a {
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
  color: var(--night-text);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact .ico {
  flex: none;
  margin-top: 5px;
  color: var(--gold);
}

.footer-contact small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(198, 204, 230, 0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 0.86rem;
  color: rgba(198, 204, 230, 0.75);
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* =========================================================
   15. 内页
   ========================================================= */
.page-hero {
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
  padding: 62px 0 54px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}

.crumbs {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  margin: 0 0 16px;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--gold-2);
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 0;
}

.page-hero-desc {
  max-width: 46em;
  color: var(--ink-2);
  margin: 14px 0 0;
  line-height: 1.9;
}

.page-hero-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-2);
  margin: 0 0 14px;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.5em 0.95em;
  font-weight: 700;
  font-size: 0.94rem;
}

.meta-chip .ico {
  color: var(--gold-2);
}

.meta-chip.is-price {
  background: var(--gold);
  font-family: var(--font-mono);
}

.entry-thumb {
  margin: 0 0 36px;
}

.entry-thumb img {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
}

/* 正文排版 */
.entry-content {
  font-size: 1.05rem;
  line-height: 2.05;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.entry-content h2 {
  font-size: 1.65rem;
  margin: 2em 0 0.8em;
  padding-left: 0.6em;
  border-left: 6px solid var(--gold);
}

.entry-content h3 {
  font-size: 1.3rem;
  margin: 1.8em 0 0.7em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: 0.45em;
}

.entry-content a {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 20px 24px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-left: 6px solid var(--gold);
  border-radius: 10px;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content img {
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--paper-2);
  border: 1px solid rgba(38, 49, 95, 0.2);
  border-radius: 5px;
  padding: 0.12em 0.4em;
}

.entry-content pre {
  background: var(--night);
  color: #e6e9f7;
  padding: 22px;
  border-radius: 12px;
  overflow: auto;
  border: 2px solid var(--ink);
}

.entry-content pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  border: 1.5px solid var(--ink);
  padding: 10px 14px;
  text-align: left;
}

.entry-content th {
  background: var(--paper-2);
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.entry-tags a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 5px 12px;
}

.entry-tags a:hover {
  background: var(--gold);
}

/* 课程详情咨询条 */
.consult-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding: 28px 30px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 rgba(38, 49, 95, 0.14);
}

.consult-box h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.consult-box p {
  margin: 0;
  color: var(--ink-2);
}

/* =========================================================
   16. 文章列表 / 分页 / 上下篇
   ========================================================= */
.post-list {
  display: grid;
  gap: 30px;
  max-width: 880px;
  margin-inline: auto;
}

.post-card {
  display: grid;
  overflow: hidden;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.post-card.has-thumb {
  grid-template-columns: 290px 1fr;
}

.post-thumb {
  display: block;
  height: 100%;
  min-height: 210px;
  border-right: 2px solid var(--ink);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.post-meta a {
  color: var(--gold-2);
  text-decoration: none;
}

.post-title {
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.post-title a {
  text-decoration: none;
}

.post-title a:hover {
  color: var(--gold-2);
}

.post-excerpt {
  color: var(--ink-2);
  line-height: 1.9;
  margin: 0 0 16px;
  flex: 1;
}

.sticky .post-title::after {
  content: "置顶";
  display: inline-block;
  vertical-align: 4px;
  margin-left: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--gold);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 2px 8px;
}

.pagination .nav-links,
.comments-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 54px;
}

.page-numbers {
  min-width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-mono);
}

.page-numbers.current {
  background: var(--gold);
}

a.page-numbers:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}

.post-navigation a {
  display: block;
  padding: 18px 20px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.6;
}

.post-navigation a:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .nav-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 4px;
}

/* =========================================================
   17. 评论 / 表单 / 搜索
   ========================================================= */
.comments-area {
  margin-top: 70px;
}

.comments-title,
.comment-reply-title {
  font-size: 1.45rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.comment-list .comment,
.comment-list .pingback {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.comment-list .children {
  list-style: none;
  margin: 16px 0 0;
  padding-left: 22px;
  border-left: 2px dashed rgba(38, 49, 95, 0.3);
}

.comment-list .children .comment {
  margin-bottom: 12px;
}

.comment-author img {
  border-radius: 8px;
  border: 2px solid var(--ink);
  margin-right: 10px;
  vertical-align: middle;
}

.comment-author .fn {
  font-weight: 700;
  font-style: normal;
}

.comment-metadata {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  margin: 4px 0 10px;
}

.comment-metadata a {
  color: var(--ink-2);
  text-decoration: none;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.reply {
  margin-top: 10px;
}

.reply a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-2);
  text-decoration: none;
}

.comment-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form .search-field {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 12px 14px;
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-form .search-field:focus {
  outline: 3px solid var(--gold);
  outline-offset: 0;
}

.comment-form p {
  margin-bottom: 18px;
}

.search-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
}

.search-form .search-field {
  flex: 1;
}

/* =========================================================
   18. 404 / 空状态
   ========================================================= */
.error-page {
  padding: 110px 0 130px;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 15vw, 9.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  text-shadow: 6px 6px 0 var(--ink);
  margin-bottom: 24px;
}

.error-page h1 {
  font-size: 1.8rem;
}

.error-page p {
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 auto 28px;
}

.error-page .search-form {
  margin: 0 auto 30px;
}

.content-none {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 2px dashed rgba(38, 49, 95, 0.4);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
}

.content-none h2 {
  font-size: 1.5rem;
}

.content-none p {
  color: var(--ink-2);
}

.content-none .search-form {
  margin: 24px auto 0;
}

/* =========================================================
   19. 滚动显现动画
   ========================================================= */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.stagger > *:nth-child(2) { transition-delay: 0.07s; }
.stagger > *:nth-child(3) { transition-delay: 0.14s; }
.stagger > *:nth-child(4) { transition-delay: 0.21s; }
.stagger > *:nth-child(5) { transition-delay: 0.28s; }
.stagger > *:nth-child(6) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .chip,
  .marquee-track,
  .flow-svg .fl-dash {
    animation: none !important;
  }

  .btn,
  .course-card,
  .feature,
  .quote-card,
  .post-card {
    transition: none;
  }
}

/* =========================================================
   20. 响应式
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-visual {
    max-width: 560px;
  }

  .path-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .path-grid::before {
    display: none;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 20px 34px rgba(31, 42, 90, 0.14);
    padding: 14px 28px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 13px 4px;
    font-size: 1.05rem;
    border-bottom: 1px dashed rgba(38, 49, 95, 0.2);
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav .sub-menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 18px;
    min-width: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-left: 0;
  }

  .stat:nth-child(even) {
    border-left: 1.5px solid rgba(38, 49, 95, 0.25);
  }

  .stat:nth-child(n + 3) {
    border-top: 1.5px solid rgba(38, 49, 95, 0.25);
  }
}

@media (max-width: 760px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 60px 0 76px;
  }

  .post-card.has-thumb {
    grid-template-columns: 1fr;
  }

  .post-thumb {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
    min-height: 0;
  }

  .post-thumb img {
    max-height: 240px;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0 44px;
  }
}

@media (max-width: 560px) {
  .container,
  .container-narrow {
    padding-inline: 20px;
  }

  .header-actions .btn {
    display: none;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .chip-1,
  .chip-3 {
    display: none;
  }

  .chip-2 {
    right: -6px;
  }

  .chip-4 {
    right: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:nth-child(even) {
    border-left: 0;
  }

  .stat:nth-child(n + 2) {
    border-top: 1.5px solid rgba(38, 49, 95, 0.25);
  }

  .hero-cta .btn {
    width: 100%;
  }

  .courses-actions .btn {
    width: 100%;
  }
}
