/* ============================================================
   个人网站样式 · 温暖自然浅色主题
   背景色参考：https://hiesther.me（奶油白 #fefcf6）
   ============================================================ */

/* ---- 配色变量（浅色主题 · 奶油白背景 · 珊瑚红强调色）---- */
:root {
  --bg-deep:       #fefcf6;
  --bg-mid:        #faf6eb;
  --bg-lake:       #eaf0f7;

  --bg-main:       #fefcf6;
  --bg-subtle:     #f6f2e8;
  --bg-white:      #ffffff;
  --border-light:  rgba(0, 0, 0, 0.08);
  --text-title:    #272727;
  --text-body:     #3e3e3e;
  --accent:        #C93838;
  --accent-hover:  #a82c2c;
  --accent-light:  rgba(201, 56, 56, 0.10);
  --secondary:     #5393D9;
  --secondary-light: rgba(83, 147, 217, 0.10);
  --muted:         #8a8a9a;
  --eyebrow:       #C93838;
  --gold:          #C93838;
  --green:         #3e8e4d;
  --red:           #C93838;
  --blue:          #5393D9;

  --hero-from:     #fefcf6;
  --hero-to:       #fefcf6;

  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:     0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg:     0 10px 40px rgba(0, 0, 0, 0.10);
  --shadow-glow:   0 4px 20px rgba(201, 56, 56, 0.18);

  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
}

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

html {
  /* 不开 scroll-behavior:smooth，避免与 JS 的 scrollTo({behavior:'smooth'}) 叠加导致抖动；
     nav 点击的平滑滚动由 main.js 单独负责 */
  scroll-padding-top: 72px; /* 固定导航高度，原生 hash 跳转时目标落在导航下方，不盖标题 */
  background: #fefcf6;
}

body {
  background: #fefcf6;
  color: var(--text-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- 顶部导航 ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 40px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 237, 225, 0.12);
  transition: all 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 8px 40px;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFD300;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: auto;
  background: #FFD300;
  color: #4a3528;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border: 2px solid #FFD300;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: #e6b800;
  border-color: #e6b800;
  color: #4a3528;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 211, 0, 0.4);
}

/* ---- 板块通用 ---- */
.section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 120px 40px;
}

.section-alt {
  max-width: none;
  background: var(--bg-main);
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.section-alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* 新版板块标题：英文眉标 + 一句话大标题 + 描述 */
.section-header-new {
  margin-bottom: 40px;
  max-width: 820px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
}

.section-heading {
  font-size: 44px;
  font-weight: 900;
  color: var(--text-title);
  margin: 0 0 16px 0;
  line-height: 1.25;
  letter-spacing: -1px;
}

.section-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}

/* ---- 1. Hero ---- */
.hero {
  position: relative;
  overflow: clip;
  background: transparent;
  min-height: 700px;
}

/* 纯色背景层（奶油白） */
.hero-gradient {
  position: relative;
  height: 700px;
  background: var(--bg-main);
  overflow: hidden;
}

.hero-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  max-width: 1100px;
  margin: 0 auto;
  padding: 160px 40px 80px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
  text-align: left;
}

.hero-text {
  flex: 1 1 55%;
  min-width: 0;
}

.hero-mascot {
  flex: 0 0 40%;
  width: 380px;
  height: 500px;
}

.hero-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(120, 90, 50, 0.2));
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-title);
  line-height: 1.2;
  margin-bottom: 28px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-title);
  line-height: 1.8;
  margin-bottom: 16px;
}

.hero-desc .accent-text {
  color: var(--text-title);
  font-weight: 400;
}

/* Hero 个人标签 */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tag {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  cursor: default;
}

/* 标签颜色变体 */
.hero-tag--blue {
  background: var(--secondary-light);
  color: var(--secondary);
  border-color: rgba(83, 147, 217, 0.2);
}

.hero-tag--gold {
  background: rgba(255, 211, 0, 0.16);
  color: #9a7b00;
  border-color: rgba(255, 211, 0, 0.35);
}

.hero-tag--warm {
  background: rgba(232, 84, 84, 0.1);
  color: var(--red);
  border-color: rgba(232, 84, 84, 0.2);
}

.hero-tag--green {
  background: rgba(110, 201, 122, 0.1);
  color: var(--green);
  border-color: rgba(110, 201, 122, 0.2);
}

/* ---- 3. 代表作品 ---- */
.works-sections {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 32px;
}

/* 单个板块容器 */
.works-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 板块标题行：序号 + 名称 + 分割线 */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-divider {
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.08);
}

/* 板块标题与分割线 - 统一使用强调色 */
.works-section .section-num,
.works-section .section-subtitle {
  color: var(--accent);
}
.works-section .section-divider {
  background: linear-gradient(to right, var(--accent-light), rgba(0,0,0,0.06));
}

/* 卡片容器：横向滑动（左右滑动 + 卡片吸附 + 隐藏滚动条） */
.section-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0 24px;
  scroll-padding-left: 0;
  scroll-padding-right: 0;
}
.section-cards::-webkit-scrollbar {
  display: none;
}

/* 作品卡片基础 */
.work-card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate; /* 强制独立层，确保 border-radius + overflow:hidden 的圆角裁剪稳定生效 */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.08);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
}

/* 图片区域 */
.card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 20px 0 0; /* 图片自身圆角，避免依赖容器 overflow:hidden 裁剪（Safari/Chrome 偶发失效） */
  z-index: 1;
}

.card-img[src=""],
.card-img:not([src]) {
  display: none;
}

/* 内容区域 */
.card-content {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* 标题 */
.card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-title);
  margin: 0;
  line-height: 1.4;
}

/* 描述 */
.card-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
  opacity: 0.85;
}

/* 课程信息 / 上线时间等元信息 */
.card-meta {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* 责任标签（账号运营等） */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(201, 56, 56, 0.08);
  color: var(--accent);
  border: 1px solid rgba(201, 56, 56, 0.2);
}

/* 「右滑查看更多」提示 */
.cards-hint {
  margin: -14px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  letter-spacing: 0.3px;
}

/* 数据统计 */
.card-stats {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-item strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.2;
}

.stat-item span:last-child {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* ---- 5. 关于我 · Maggie Appleton 风格照片墙 ---- */
.life-garden {
  columns: 4;
  column-gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.garden-card {
  break-inside: avoid;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate; /* 强制独立层，确保 border-radius + overflow:hidden 的圆角裁剪稳定生效 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease; /* 仅过渡阴影：去掉 transform 位移，从根源消除悬停时的合成层闪烁 */
  display: inline-block;
  width: 100%;
}

.garden-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.garden-card__img {
  width: 100%;
  aspect-ratio: 5/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f4ec, #f0e8dc);
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0; /* 顶部圆角，图片不依赖容器裁剪 */
  font-size: 36px;
}

.garden-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit; /* 图片继承容器圆角，避免 Safari/Chrome 裁剪偶发失效露出直角 */
}

.garden-card__img--mascot {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #fff9ed, #fef3d7);
}

.garden-card__img--mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.garden-card__img--books {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8f0f5, #d4e4ed);
}

.garden-card__body {
  padding: 12px 14px 14px;
}

.garden-card__body--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.garden-card__title {
  font-size: 13px;
  font-weight: 700;
  color: #4a3528;
  margin: 0 0 5px 0;
  line-height: 1.4;
}

.garden-card__desc {
  font-size: 12px;
  line-height: 1.55;
  color: #6b5c50;
  margin: 0;
}

/* 超大卡：3D 吉祥物 - 减小图片，增加文字空间 */
.garden-card--xl .garden-card__img--mascot {
  aspect-ratio: 1/1;
}

.garden-card--xl .garden-card__body {
  padding: 14px 16px 18px;
}

.garden-card--xl .garden-card__title {
  font-size: 15px;
  margin-bottom: 6px;
}

.garden-card--xl .garden-card__desc {
  font-size: 13px;
  line-height: 1.6;
}

/* 语录卡（背景 / 边框沿用默认卡样式，与权游迷一致） */

.garden-card--quote .garden-card__img {
  aspect-ratio: 4/3;
  background: #faf8f3;
}

.garden-card--quote .garden-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.garden-quote-text {
  font-size: 12px;
  line-height: 1.55;
  color: #6b5c50;
  margin: 0 0 4px 0;
}

.garden-quote-author {
  font-size: 12px;
  line-height: 1.55;
  color: #6b5c50;
  margin: 0;
}

/* 书单卡 */
.garden-card--books {
  padding-bottom: 0;
}

/* 最近在读卡：竖版图片区，仅此卡 */
.garden-card--reading .garden-card__img {
  aspect-ratio: 3/4;
}

.garden-card--reading .garden-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.garden-card--reading .garden-card__body {
  padding: 14px 14px 16px;
}

.garden-book-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.garden-book-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.book-emoji {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.3;
}

.garden-book-list li strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #4a3528;
  margin-bottom: 2px;
}

.garden-book-list li p {
  font-size: 11px;
  line-height: 1.5;
  color: #7a6b5e;
  margin: 0;
}

/* 纯文字小卡片 */
.garden-card--small .garden-card__body {
  padding: 18px 14px;
}

.garden-card--small .garden-card__title {
  font-size: 13px;
}

/* ===== 横版小卡片：左图右文 ===== */
.garden-card--horizontal {
  display: flex;
  flex-direction: row;
}

.garden-card--horizontal .garden-card__img {
  width: 80px;
  min-width: 80px;
  aspect-ratio: 1/1;
  font-size: 32px;
  border-radius: 12px 0 0 12px; /* 左图：左侧两角圆角，与卡片整体保持一致 */
}

.garden-card--horizontal .garden-card__body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.garden-card--horizontal .garden-card__title {
  font-size: 12px;
  margin-bottom: 3px;
}

.garden-card--horizontal .garden-card__desc {
  font-size: 11px;
  line-height: 1.45;
}

/* 大卡：随手拍（竖版加高，保留图片完整） */
.garden-card--snapshot .garden-card__img {
  aspect-ratio: 4/3;
}

/* 照片墙响应式：平板 3 列 */
@media (max-width: 1000px) {
  .life-garden {
    columns: 3;
  }
}

/* 照片墙响应式：平板小屏 2 列 */
@media (max-width: 700px) {
  .life-garden {
    columns: 2;
  }
}

/* 照片墙响应式：手机 1 列 */
@media (max-width: 500px) {
  .life-garden {
    columns: 1;
    column-gap: 0;
  }
  .garden-card {
    margin-bottom: 10px;
  }
  .garden-card__body {
    padding: 12px 14px;
  }
  .garden-quote-text {
    font-size: 13px;
  }
}

/* ---- 页脚（深暖棕区隔带 · 左右结构）---- */
.footer {
  position: relative;
  background: #111111;
  color: #f4ede1;
  padding: 48px 24px 36px;
  overflow: clip;
}

.footer-content {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
  text-align: left;
  margin-bottom: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  margin-bottom: 22px;
  transition: transform 0.4s ease;
}

.footer-avatar:hover {
  transform: scale(1.06) rotate(3deg);
}

.footer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-heading {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(244, 237, 225, 0.65);
  margin-bottom: 24px;
}

.footer-resume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: #FFD300;
  color: #4a3528;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.footer-resume:hover {
  background: #e6b800;
  transform: translateY(-2px);
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-nav-title {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e9a9a9;
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(244, 237, 225, 0.85);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-nav-link::before {
  content: '·';
  color: var(--accent);
  font-weight: 700;
}

.footer-nav-link:hover {
  color: #fff;
  transform: translateX(4px);
}

/* 二维码（直接贴图，无框） */
.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-qr {
  width: 200px;
  height: auto;
  display: block;
  box-sizing: border-box;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(244, 237, 225, 0.75);
  transition: all 0.25s ease;
}

.footer-social-link svg {
  width: 22px;
  height: 22px;
}

.footer-copy {
  color: rgba(244, 237, 225, 0.5);
  font-size: 13px;
  text-align: center;
}

/* 窄屏：左右两列堆叠 */
@media (max-width: 720px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   冒险路径：串联 Hero → 作品 → 闯关 → 关于我
   ============================================================ */
.adventure-path {
  position: fixed;
  left: 48px;
  top: 0;
  width: 40px;
  height: 100vh;
  z-index: 50;
  pointer-events: none;
}

.path-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  transform: translateX(-50%);
  height: 0;
}

.path-line-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 6px,
    transparent 6px,
    transparent 14px
  );
}

.path-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    to bottom,
    #FFD300 0%,
    #e6b800 100%
  );
  box-shadow: 0 0 8px rgba(255, 211, 0, 0.6), 0 0 16px rgba(255, 211, 0, 0.3);
  transition: height 0.15s ease-out;
  border-radius: 1px;
}

.path-nodes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.path-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.node-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 2px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.node-num {
  font-size: 9px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.45);
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  transition: color 0.4s ease;
  letter-spacing: 0.5px;
}

.node-label {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  transition: color 0.4s ease;
}

/* 节点激活状态 */
.path-node.active .node-dot {
  border-color: #FFD300;
  background: #FFF6CC;
  box-shadow: 0 0 12px rgba(255, 211, 0, 0.6), 0 0 28px rgba(255, 211, 0, 0.25), inset 0 0 6px rgba(255, 211, 0, 0.15);
}

.path-node.active .node-num {
  color: #B8860B;
}

.path-node.active .node-label {
  color: #B8860B;
}

/* 脉冲光环动画 */
.path-node.active .node-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 211, 0, 0.6);
  transform: translate(-50%, -50%) scale(1);
  animation: adventureNodePulse 2s ease-out infinite;
}

@keyframes adventureNodePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

/* ---- 平板适配 ---- */
@media (max-width: 1100px) {
  .adventure-path {
    display: none;
  }
}

/* ---- 移动端适配 ---- */
@media (max-width: 860px) {
  .works-sections {
    gap: 36px;
  }
  .section-cards {
    gap: 16px;
  }
  .work-card {
    flex-basis: calc(100vw - 64px);
  }
  .card-image {
    height: 180px;
  }
  .card-content {
    padding: 16px 16px 20px;
  }
  .card-title {
    font-size: 15px;
  }
  .card-desc {
    font-size: 12px;
  }
  .section-subtitle {
    font-size: 15px;
  }
  .section-num {
    font-size: 12px;
  }
  /* 平板端：Hero 内容由绝对定位改回文档流，随内容自动增高，避免被 overflow:clip 裁掉 */
  .hero {
    min-height: auto;
  }
  .hero-gradient {
    height: auto;
  }
  .hero-inner {
    position: relative;
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-mascot {
    width: 280px;
    height: 370px;
    order: -1;
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 14px;
    padding: 12px 16px;
  }
  .nav.scrolled {
    padding: 10px 16px;
  }
  .nav-link {
    font-size: 13px;
  }
  .nav-cta {
    font-size: 12.5px;
    padding: 6px 14px;
  }
  .section {
    padding: 80px 20px;
  }
  .section-alt > * {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section-heading {
    font-size: 28px;
    letter-spacing: -0.5px;
  }
  .section-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .section-desc {
    font-size: 15px;
  }
  .section-header-new {
    margin-bottom: 28px;
  }
  .hero {
    min-height: auto;
  }
  .hero-gradient {
    height: auto;
  }
  .hero-inner {
    position: relative;
    flex-direction: column;
    text-align: center;
    gap: 28px;
    padding: 80px 20px 60px;
  }
  .hero-title {
    font-size: 32px;
    margin-bottom: 20px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero-mascot {
    width: 220px;
    height: 290px;
    order: -1;
  }
}

/* ============================================================
   游戏路线闯关地图 · Game Path Journey Map
   SVG 蜿蜒路径 + 外部生图槽位 + 信息卡
   ============================================================ */

.gp-journey {
  max-width: 900px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ---- 关卡整体 ---- */
.gp-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ---- 路径连接线 ---- */
.gp-connector {
  width: 100%;
  max-width: 600px;
  height: 120px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.gp-connector--active {
  opacity: 1;
}

/* 移动端降级：默认隐藏竖向虚线，仅移动端显示 */
.gp-connector-line {
  display: none;
}

/* ---- 关卡行（地标 + 卡片）---- */
.gp-row {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: 860px;
  padding: 0 16px;
}

.gp-row--img-left {
  flex-direction: row;
}

.gp-row--img-right {
  flex-direction: row;
}

/* 关卡错落偏移：左右左右交替 + 幅度不一，打破整齐感 */
.gp-level:nth-of-type(1) .gp-row { transform: translateX(-32px); }
.gp-level:nth-of-type(2) .gp-row { transform: translateX(32px); }
.gp-level:nth-of-type(3) .gp-row { transform: translateX(-20px); }
.gp-level:nth-of-type(4) .gp-row { transform: translateX(20px); }

/* ---- 地标图片槽 ---- */
.gp-image-slot {
  flex: 0 0 300px;
  width: 300px;
  aspect-ratio: 1;
  background: #fafaf7;
  border: 2px dashed rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
  position: relative;
}

.gp-image-slot:hover {
  border-color: rgba(201, 56, 56, 0.25);
  box-shadow: 0 0 0 4px rgba(201, 56, 56, 0.06);
}

.gp-image-slot--current {
  border-color: rgba(201, 56, 56, 0.25);
  box-shadow: 0 0 0 4px rgba(201, 56, 56, 0.06);
}

.gp-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

/* 每关地标图尺寸错落 + 轻微旋转，营造不规则感 */
.gp-level:nth-of-type(1) .gp-image-slot { flex-basis: 320px; width: 320px; }
.gp-level:nth-of-type(2) .gp-image-slot { flex-basis: 265px; width: 265px; }
.gp-level:nth-of-type(3) .gp-image-slot { flex-basis: 330px; width: 330px; }
.gp-level:nth-of-type(4) .gp-image-slot { flex-basis: 285px; width: 285px; }

.gp-level:nth-of-type(1) .gp-image-slot img { transform: rotate(-2deg); }
.gp-level:nth-of-type(2) .gp-image-slot img { transform: rotate(1.6deg); }
.gp-level:nth-of-type(3) .gp-image-slot img { transform: rotate(-1.2deg); }
.gp-level:nth-of-type(4) .gp-image-slot img { transform: rotate(2deg); }

.gp-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* ---- 关卡信息卡 ---- */
.gp-card {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 13px 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.gp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
}

/* 当前关卡卡片高亮 */
.gp-card--current {
  border-color: rgba(201, 56, 56, 0.2);
  box-shadow: 0 4px 24px rgba(201, 56, 56, 0.08), 0 0 0 1px rgba(201, 56, 56, 0.1);
}

.gp-card--current::before {
  background: linear-gradient(90deg, var(--accent), var(--accent));
}

.gp-card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.gp-card-badge--done {
  color: var(--accent);
  background: rgba(201, 56, 56, 0.08);
}

.gp-card-badge--current {
  color: #fff;
  background: var(--accent);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 56, 56, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(201, 56, 56, 0); }
}

.gp-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-title);
  margin: 0 0 6px;
  line-height: 1.3;
}

.gp-card-drop-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.gp-card-drop-label {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.gp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gp-card-tags span {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(83, 147, 217, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
}

.gp-card-desc {
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-body);
  margin: 0;
}

/* ---- 响应式：移动端 ---- */
@media (max-width: 780px) {
  .gp-row,
  .gp-row--img-left,
  .gp-row--img-right {
    flex-direction: column;
    gap: 20px;
    padding: 0 12px;
  }
  /* 移动端取消错落偏移 */
  .gp-level:nth-of-type(1) .gp-row,
  .gp-level:nth-of-type(2) .gp-row,
  .gp-level:nth-of-type(3) .gp-row,
  .gp-level:nth-of-type(4) .gp-row {
    transform: none;
  }
  /* 移动端节点居中 */
  .gp-level:nth-of-type(1) .gp-node,
  .gp-level:nth-of-type(2) .gp-node,
  .gp-level:nth-of-type(3) .gp-node,
  .gp-level:nth-of-type(4) .gp-node {
    transform: none;
  }
  .gp-image-slot {
    flex: 0 0 auto;
    width: 300px;
    order: -1;
  }
  /* 移动端取消每关尺寸/旋转的错落 */
  .gp-level:nth-of-type(1) .gp-image-slot,
  .gp-level:nth-of-type(2) .gp-image-slot,
  .gp-level:nth-of-type(3) .gp-image-slot,
  .gp-level:nth-of-type(4) .gp-image-slot {
    flex-basis: auto;
    width: 300px;
  }
  .gp-level:nth-of-type(1) .gp-image-slot img,
  .gp-level:nth-of-type(2) .gp-image-slot img,
  .gp-level:nth-of-type(3) .gp-image-slot img,
  .gp-level:nth-of-type(4) .gp-image-slot img {
    transform: none;
  }
  .gp-card {
    max-width: 100%;
    padding: 20px 20px;
  }
  .gp-card-title {
    font-size: 19px;
  }
  .gp-connector {
    height: 50px;
  }
  .gp-connector-path {
    display: none;
  }
  .gp-connector-line {
    display: block;
  }
}
