/* ==========================================================================
   海盐青·轻课堂 Design System - clashweb.blog
   Visual:
     Background: #F5FAF9
     Panel/Card: #FFFFFF
     Text Primary: #243B37
     Primary Accent: #18796A
     Light Cyan: #DFF2EC
     Border: #DCE9E5
   ========================================================================== */

:root {
  --bg-main: #F5FAF9;
  --bg-panel: #FFFFFF;
  --text-main: #243B37;
  --text-muted: #57716B;
  --text-sub: #7D9690;
  --color-primary: #18796A;
  --color-primary-dark: #0F584C;
  --color-primary-light: #229987;
  --color-cyan-light: #DFF2EC;
  --color-cyan-badge: #EBF7F4;
  --border-color: #DCE9E5;
  --border-light: #EBF2F0;
  --shadow-sm: 0 2px 8px -1px rgba(24, 121, 106, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(24, 121, 106, 0.08);
  --shadow-lg: 0 10px 30px -4px rgba(24, 121, 106, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-primary-dark);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   ANIMATION 1: 标题单次波浪 (Title single wave)
   短标题按自然词组依次上移3px再归位。总时长不超过800ms，播放一次，文字始终可读。
   手机端缩小标题波浪幅度至1.5px。
   ========================================================================== */
.wave-title {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
}

.wave-unit {
  display: inline-block;
  will-change: transform;
  animation: title-wave 0.65s cubic-bezier(0.2, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 55ms);
  animation-iteration-count: 1;
}

@keyframes title-wave {
  0% { transform: translateY(0); }
  35% { transform: translateY(-3px); }
  70% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

@media (max-width: 768px) {
  @keyframes title-wave {
    0% { transform: translateY(0); }
    35% { transform: translateY(-1.5px); }
    70% { transform: translateY(0); }
    100% { transform: translateY(0); }
  }
}

/* ==========================================================================
   ANIMATION 2: 圆形展开 (Circular reveal mask)
   内容默认可见。分类插画和小型专题封面进入视口时，从中心通过圆形遮罩展开，约420ms。
   ========================================================================== */
.mask-reveal-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  will-change: clip-path;
}

.mask-reveal-wrap.is-revealed {
  animation: circle-mask-reveal 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes circle-mask-reveal {
  0% { clip-path: circle(0% at 50% 50%); }
  100% { clip-path: circle(85% at 50% 50%); }
}

@media (prefers-reduced-motion: reduce) {
  .mask-reveal-wrap {
    clip-path: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   ANIMATION 3: 导航图标填色 (Nav icon color fill)
   悬停或聚焦导航时，图标由轮廓状态过渡到浅青填色。当前栏目保留选中状态。
   ========================================================================== */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link span {
  white-space: nowrap !important;
}

.nav-link .nav-icon {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  stroke-width: 1.8;
  fill: transparent;
  transition: fill 0.25s ease, stroke 0.25s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-primary);
  background-color: var(--color-cyan-badge);
}

.nav-link:hover .nav-icon,
.nav-link:focus-visible .nav-icon {
  fill: var(--color-cyan-light);
  stroke: var(--color-primary);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--color-primary-dark);
  font-weight: 600;
  background-color: var(--color-cyan-light);
}

.nav-link.active .nav-icon {
  fill: var(--color-primary);
  stroke: var(--color-primary);
}

/* ==========================================================================
   ANIMATION 4: 课程卡片叠页 (Course card page stack)
   卡片背后放一张浅青底片。悬停或聚焦时，底片轻转2度，形成叠页感，卡片正文保持稳定。
   ========================================================================== */
.card-stack-wrap {
  position: relative;
  display: block;
}

.card-stack-sheet {
  position: absolute;
  inset: 0;
  background-color: var(--color-cyan-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  z-index: 1;
  pointer-events: none;
  transform: rotate(0deg) translateY(0);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.card-front {
  position: relative;
  z-index: 2;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-stack-wrap:hover .card-stack-sheet,
.card-stack-wrap:focus-within .card-stack-sheet {
  transform: rotate(2deg) translateY(2px);
}

.card-stack-wrap:hover .card-front,
.card-stack-wrap:focus-within .card-front {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   ANIMATION 5: 学习进度增长 (Learning progress growth)
   真实进度条平滑更新。
   ========================================================================== */
.progress-widget {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  margin-bottom: 8px;
}

.progress-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-main);
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background-color: var(--color-cyan-badge);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), #29A894);
  border-radius: 99px;
  transition: width 0.4s ease-out;
}

.progress-meta-info {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.progress-reset-btn {
  font-size: 11.5px;
  color: var(--text-sub);
  text-decoration: underline;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}
.progress-reset-btn:hover {
  color: #C0392B;
  background-color: #FDE8E8;
}

/* ==========================================================================
   ANIMATION 6: 完成对勾绘制 (Completion checkmark draw)
   标记完成时，对勾按笔画绘出，约300ms。取消完成时恢复空心状态。
   ========================================================================== */
.lesson-complete-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background-color: var(--bg-panel);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.25s ease;
}

.lesson-complete-action:hover {
  border-color: var(--color-primary);
  background-color: var(--color-cyan-badge);
}

.check-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.check-circle {
  fill: transparent;
  stroke: var(--border-color);
  stroke-width: 2;
  transition: fill 0.25s ease, stroke 0.25s ease;
}

.check-path {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 300ms ease-out;
}

.lesson-complete-action.is-completed {
  background-color: var(--color-cyan-light);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.lesson-complete-action.is-completed .check-circle {
  fill: var(--color-primary);
  stroke: var(--color-primary);
}

.lesson-complete-action.is-completed .check-path {
  stroke-dashoffset: 0;
}

/* ==========================================================================
   ANIMATION 7: 课程分组切换 (Course group switch)
   切换分类时，列表短暂交叉淡化，约180ms。容器合理预留空间，避免上下跳动。
   ========================================================================== */
.category-tabs-container {
  min-height: 480px;
}

.category-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cat-tab-btn {
  padding: 9px 18px;
  border-radius: var(--radius-md);
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cat-tab-btn:hover {
  background-color: var(--color-cyan-badge);
  border-color: var(--color-primary);
}

.cat-tab-btn.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(24, 121, 106, 0.2);
}

.tab-fade-panel {
  opacity: 1;
  transition: opacity 180ms ease-in-out;
}

.tab-fade-panel.is-fading {
  opacity: 0;
}

/* ==========================================================================
   ANIMATION 8: 练习答案展开 (Exercise answer expand)
   点击“查看解析”后，答案面板展开，旁边小灯泡由灰变青。支持再次收起。
   ========================================================================== */
.exercise-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.exercise-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-primary-dark);
  background-color: var(--color-cyan-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.exercise-question {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 16px;
}

.exercise-options {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exercise-options li {
  padding: 8px 14px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
}

.exercise-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.25s ease;
}

.exercise-toggle-btn:hover {
  background-color: var(--color-cyan-badge);
  border-color: var(--color-primary);
}

.bulb-icon {
  width: 18px;
  height: 18px;
  fill: #CBD5E1;
  stroke: #94A3B8;
  stroke-width: 1.5;
  transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
}

.exercise-card.is-open .bulb-icon {
  fill: #34D399;
  stroke: var(--color-primary);
  filter: drop-shadow(0 0 5px rgba(24, 121, 106, 0.4));
}

.exercise-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
  background-color: var(--color-cyan-badge);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.exercise-card.is-open .exercise-body {
  max-height: 500px;
  opacity: 1;
  margin-top: 14px;
  padding: 16px 20px;
  border-color: var(--color-cyan-light);
}

.exercise-analysis {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}

/* ==========================================================================
   ANIMATION 9: 图解定位提示 (Diagram point tip / hotspot callout)
   点击图解中的编号后，对应标注播放一次柔和圆环扩散，同时显示解释。
   ========================================================================== */
.diagram-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.diagram-header {
  margin-bottom: 18px;
}

.diagram-canvas-wrap {
  position: relative;
  background-color: #F8FBFB;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow: hidden;
}

.hotspot-point {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(24, 121, 106, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 5;
}

.hotspot-point:hover {
  transform: scale(1.1);
  background-color: var(--color-primary-dark);
}

.hotspot-point.is-active::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid var(--color-primary);
  animation: hotspot-ripple 0.8s ease-out 1;
  pointer-events: none;
}

@keyframes hotspot-ripple {
  0% { transform: scale(0.9); opacity: 0.95; }
  100% { transform: scale(2.2); opacity: 0; }
}

.diagram-explain-panel {
  margin-top: 18px;
  padding: 16px 20px;
  background-color: var(--color-cyan-badge);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-main);
  transition: background-color 0.25s ease;
}

/* ==========================================================================
   ANIMATION 10: 搜索结果强调 (Search result highlight)
   搜索后，匹配词背景由透明过渡为浅青。结果展示标题、课程分类与简短摘要。
   ========================================================================== */
mark.search-highlight {
  background-color: var(--color-cyan-light);
  color: var(--color-primary-dark);
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  animation: highlight-fade 0.3s ease-out;
}

@keyframes highlight-fade {
  from { background-color: transparent; }
  to { background-color: var(--color-cyan-light); }
}

/* ==========================================================================
   CONTINUOUS LOOPING ANIMATIONS (自动循环背景动效)
   1. 标题柔和水波 (Title gentle water ripple, ~7s seamless)
   2. 首屏波浪线 (Hero dual wave lines, 14s & 19s, drift <= 6px) & 页眉微波线
   3. 分类插画轻浮动 (Category illustrations gentle float, 8s, 10s, 12s, drift <= 4px)
   规范保障：
   - 默认开启；位于可视区且页面前台时循环；离开视口或切后台时暂停（避免无意义耗电）
   - 独立渲染图层，不与入场/悬停动画共用transform
   - 装饰层不接收鼠标事件（pointer-events: none），对辅助技术隐藏（aria-hidden="true"）
   - 手机端仅保留标题循环（缩小幅度）和首屏单条微波线（减少数量与幅度），停用其余多余动效
   - 启用“减少动态效果”时展示纯净静态版本
   ========================================================================== */

/* 视口离开或切换到后台时冻结动画，避免无意义耗电 */
.is-anim-paused,
.is-anim-paused * {
  animation-play-state: paused !important;
}

/* --- 1. 标题柔和水波 --- */
.ripple-word-wrap {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  z-index: 1;
}

.ripple-word-text {
  position: relative;
  z-index: 2; /* 文字始终在波纹上方独立图层，保持完全清晰 */
  color: inherit;
}

.water-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 108%;
  height: 120%;
  min-width: 120px;
  min-height: 44px;
  border-radius: 50%;
  pointer-events: none; /* 装饰层不接收鼠标事件 */
  z-index: 1; /* 位于文字后方独立图层，不影响文字对比度 */
  box-sizing: border-box;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(223, 242, 236, 0.55) 0%, rgba(223, 242, 236, 0.22) 55%, rgba(24, 121, 106, 0.08) 100%);
  border: 1px solid rgba(24, 121, 106, 0.22);
  transform: translate(-50%, -50%) scale(0.82) translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.water-ripple.ripple-1 {
  animation: water-ripple-pulse 7s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.water-ripple.ripple-2 {
  animation: water-ripple-pulse 7s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  animation-delay: 3.5s; /* 错开3.5秒，实现7秒一轮无缝衔接 */
}

@keyframes water-ripple-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.82) translateZ(0);
    opacity: 0;
  }
  15% {
    opacity: 0.82;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.36, 1.48) translateZ(0);
    opacity: 0.45;
  }
  85% {
    opacity: 0.12;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.78, 1.92) translateZ(0);
    opacity: 0;
  }
}

/* --- 2. 首屏波浪线 --- */
.hero-wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  pointer-events: none; /* 装饰层不接收鼠标事件 */
  overflow: hidden;
  z-index: 2;
}

.hero-wave-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-wave-curve {
  will-change: transform;
  transform-box: fill-box;
}

.hero-wave-curve.curve-1 {
  animation: hero-wave-rise-1 14s ease-in-out infinite;
}

.hero-wave-curve.curve-2 {
  animation: hero-wave-rise-2 19s ease-in-out infinite;
}

@keyframes hero-wave-rise-1 {
  0% {
    transform: translateY(0px) translateZ(0);
  }
  50% {
    transform: translateY(-4px) translateZ(0); /* 4px <= 6px */
  }
  100% {
    transform: translateY(0px) translateZ(0);
  }
}

@keyframes hero-wave-rise-2 {
  0% {
    transform: translateY(0px) translateZ(0);
  }
  50% {
    transform: translateY(3.5px) translateZ(0); /* 3.5px <= 6px */
  }
  100% {
    transform: translateY(0px) translateZ(0);
  }
}

/* 页眉微波线 (文章页及全站页眉保留一小段纤细起伏波浪线，正文与截图稳定) */
.header-wave-strip {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 6px;
  overflow: hidden;
  pointer-events: none; /* 装饰层不接收鼠标事件 */
  z-index: 10;
}

.header-wave-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.header-wave-path {
  will-change: transform;
  transform-box: fill-box;
}

.header-wave-path.wave-path-1 {
  animation: header-wave-drift-1 14s ease-in-out infinite alternate;
}

.header-wave-path.wave-path-2 {
  animation: header-wave-drift-2 19s ease-in-out infinite alternate;
}

@keyframes header-wave-drift-1 {
  0% { transform: translateY(0) translateZ(0); }
  100% { transform: translateY(-1.5px) translateZ(0); }
}

@keyframes header-wave-drift-2 {
  0% { transform: translateY(0) translateZ(0); }
  100% { transform: translateY(1.5px) translateZ(0); }
}

/* --- 3. 分类插画轻浮动 --- */
.float-illu-wrap {
  display: block;
  will-change: transform;
}

.float-period-8s {
  animation: float-illu-y 8s ease-in-out infinite;
  animation-delay: 0s;
}

.float-period-10s {
  animation: float-illu-y 10s ease-in-out infinite;
  animation-delay: -3.3s; /* 错开相位 */
}

.float-period-12s {
  animation: float-illu-y 12s ease-in-out infinite;
  animation-delay: -6.7s; /* 错开相位 */
}

@keyframes float-illu-y {
  0% {
    transform: translateY(0) translateZ(0);
  }
  50% {
    transform: translateY(-3.2px) translateZ(0); /* 位移3.2px <= 4px */
  }
  100% {
    transform: translateY(0) translateZ(0);
  }
}

/* ==========================================================================
   手机端适配：保留标题循环和一处小型装饰动画，减少幅度与数量
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. 标题循环：缩小尺寸与扩展幅度，避免遮挡紧凑字距 */
  .water-ripple {
    min-width: 90px;
    min-height: 36px;
  }

  @keyframes water-ripple-pulse {
    0% {
      transform: translate(-50%, -50%) scale(0.85) translateZ(0);
      opacity: 0;
    }
    15% {
      opacity: 0.65;
    }
    50% {
      transform: translate(-50%, -50%) scale(1.18, 1.25) translateZ(0);
      opacity: 0.35;
    }
    85% {
      opacity: 0.08;
    }
    100% {
      transform: translate(-50%, -50%) scale(1.32, 1.4) translateZ(0);
      opacity: 0;
    }
  }

  /* 2. 一处小型装饰动画：仅保留首屏波浪线第1条，减少数量（隐藏第2条），减少幅度（由4px降至2px） */
  .hero-wave-curve.curve-2 {
    display: none !important;
  }

  @keyframes hero-wave-rise-1 {
    0% {
      transform: translateY(0px) translateZ(0);
    }
    50% {
      transform: translateY(-2px) translateZ(0); /* 手机端幅度收拢至2px */
    }
    100% {
      transform: translateY(0px) translateZ(0);
    }
  }

  /* 停用手机端分类插画浮动，节约移动端能耗 */
  .float-illu-wrap {
    animation: none !important;
    transform: none !important;
  }

  /* 手机端隐藏页眉微波线，保持极简 */
  .header-wave-strip {
    display: none !important;
  }
}

/* ==========================================================================
   用户启用系统“减少动态效果”时，显示纯净静态版本
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .water-ripple {
    display: none !important;
    animation: none !important;
  }
  .hero-wave-curve,
  .header-wave-path,
  .float-illu-wrap,
  .card-stack-sheet,
  .wave-unit {
    animation: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 250, 249, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(24, 121, 106, 0.06);
}

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

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 11.5px;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Real Search Input in Header Right */
.header-search-box {
  position: relative;
  width: 170px;
}

.search-input-header {
  width: 100%;
  padding: 8px 34px 8px 12px;
  font-size: 13.5px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-input-header:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(24, 121, 106, 0.12);
  width: 260px;
}

.header-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle {
  display: none;
  padding: 8px;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background-color: var(--bg-main);
  z-index: 99;
  padding: 20px 24px;
  overflow-y: auto;
  border-top: 1px solid var(--border-color);
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.mobile-nav-list .nav-link {
  font-size: 16px;
  padding: 12px 14px;
}

/* ==========================================================================
   Hero Section & Classroom Showcase
   ========================================================================== */
.hero-section {
  padding: 48px 0 40px 0;
  position: relative;
}

.hero-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F5FAF9 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-cyan-light);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-keyword-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.kw-badge {
  font-size: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}
.kw-badge:hover {
  background-color: var(--color-cyan-badge);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: var(--color-primary);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(24, 121, 106, 0.25);
  transition: all 0.25s ease;
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(24, 121, 106, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background-color: var(--bg-panel);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  background-color: var(--color-cyan-badge);
  color: var(--color-primary);
}

/* ==========================================================================
   Classroom Modules & Grid
   ========================================================================== */
.section-wrap {
  padding: 40px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.section-head-left {
  max-width: 680px;
}

.section-tag {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.section-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card Contents */
.card-badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-primary-dark);
  background-color: var(--color-cyan-light);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.card-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: auto;
  font-size: 12.5px;
  color: var(--text-sub);
}

.card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--color-primary);
}

/* ==========================================================================
   Featured Airport Cards (Top 4 Prominently Featured)
   ========================================================================== */
.airport-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.airport-card-featured {
  background: linear-gradient(145deg, #FFFFFF 0%, #F6FBFA 100%);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
}

.airport-top-ribbon {
  position: absolute;
  top: -12px;
  right: 24px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(24, 121, 106, 0.3);
}

.airport-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.airport-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.airport-price-tag {
  font-size: 15px;
  font-weight: 700;
  color: #0E7060;
  background-color: var(--color-cyan-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
}

.airport-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0 20px 0;
}

.airport-meta-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-light);
}

.airport-meta-table td.label {
  color: var(--text-muted);
  width: 80px;
  font-weight: 600;
}

.airport-meta-table td.value {
  color: var(--text-main);
}

/* Eye-catching Registration Button */
.btn-register-eye {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #18796A 0%, #115D51 100%);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(24, 121, 106, 0.35);
  transition: all 0.25s ease;
  text-align: center;
}
.btn-register-eye:hover {
  background: linear-gradient(135deg, #115D51 0%, #0A433A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 121, 106, 0.45);
}

/* Full Airport Table / Cards for remaining 24 */
.airports-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.airport-compact-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Article & Tutorial Layout
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 36px 0 60px 0;
}

.article-main {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.article-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Article Sections required by spec:
   学习目标、准备事项、教学步骤、练习与延伸阅读
   ========================================================================== */
.callout-objectives {
  background-color: var(--color-cyan-badge);
  border: 1px solid var(--color-cyan-light);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 32px 0;
}

.callout-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-prerequisites {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 5px solid #64748B;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 32px 0;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 40px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 28px 0 12px 0;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  margin: 12px 0 20px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content pre {
  background-color: #1E293B;
  color: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 18px 0 24px 0;
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  background-color: var(--color-cyan-badge);
  color: var(--color-primary-dark);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

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

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  background-color: var(--color-cyan-badge);
  padding: 14px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
  font-style: normal;
  color: var(--text-main);
}

/* Sidebar & Table of Contents */
.article-sidebar {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: static !important;
  top: auto !important;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-nav {
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 42vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.toc-link {
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  line-height: 1.4;
}

.toc-link:hover,
.toc-link.is-active {
  color: var(--color-primary-dark);
  background-color: var(--color-cyan-badge);
  font-weight: 600;
  padding-left: 12px;
}

/* Download Client Table Styling */
.download-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-panel);
  box-shadow: var(--shadow-sm);
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.download-table thead th {
  background-color: var(--color-cyan-badge);
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 11px 14px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.download-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.download-table tbody tr:hover {
  background-color: rgba(223, 242, 236, 0.35);
}

/* Step Progression Box */
.step-box {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 18px 0;
  box-shadow: var(--shadow-sm);
}

.step-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.step-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Pre-reading & Next-step links */
.nav-steps-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 20px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.step-nav-card {
  padding: 16px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.25s ease;
}

.step-nav-card:hover {
  border-color: var(--color-primary);
  background-color: var(--color-cyan-badge);
  transform: translateY(-2px);
}

.step-nav-dir {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

.step-nav-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   FAQ Section - ALL EXPANDED BY DEFAULT
   "所有的FAQ全部要展开"
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.faq-item {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-answer {
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.7;
}

/* ==========================================================================
   Search Modal Dialog
   ========================================================================== */
.search-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(36, 59, 55, 0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px 20px;
}

.search-modal-backdrop.is-open {
  display: flex;
}

.search-modal-card {
  width: 100%;
  max-width: 640px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.search-modal-head {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.search-modal-input {
  flex-grow: 1;
  border: none;
  font-size: 16px;
  color: var(--text-main);
  outline: none;
  background: transparent;
}

.search-modal-results {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result-item {
  padding: 14px 16px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background-color: var(--color-cyan-badge);
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.search-result-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.search-result-snippet {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Image Lightbox
   ========================================================================== */
.lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(20, 35, 33, 0.85);
  backdrop-filter: blur(8px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: zoom-out;
}

.lightbox-backdrop.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 32px 0;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-link-list a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-link-list a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-sub);
}

.footer-links-inline {
  display: flex;
  gap: 16px;
}

/* ==========================================================================
   Responsive Breakpoints & Reduced Motion
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 1025px) {
  .nav-link {
    font-size: 13px;
    padding: 5px 6px;
    gap: 3px;
  }
  .header-search-box {
    width: 140px;
  }
}

@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-card {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) and (min-width: 861px) {
  .article-layout {
    grid-template-columns: 1fr 260px;
    gap: 20px;
  }
  .article-sidebar {
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}

@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    order: -1;
    position: static;
    max-height: none;
  }
  .sidebar-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-search-box {
    width: 150px;
  }
  .header-search-box:focus-within {
    width: 180px;
  }
  .grid-3, .grid-2, .grid-4, .airport-featured-grid, .airports-compact-grid {
    grid-template-columns: 1fr;
  }
  .article-main {
    padding: 24px 20px;
  }
  .hero-card {
    padding: 24px 20px;
  }
  .hero-title {
    font-size: 24px;
  }
  .nav-steps-bar {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .mask-reveal-wrap {
    clip-path: none !important;
  }
  .check-path {
    stroke-dashoffset: 0 !important;
  }
}
