/* =========================================================
   个人作品集 · 样式表
   配色取自参考图：薄荷绿 / 天蓝 / 浅灰 / 深墨
   ========================================================= */

:root {
  --page-zoom: 0.92;        /* 全局页面缩放比例 */
  --mint: #cfe1e1;          /* 薄荷绿（主背景） */
  --mint-deep: #a9c8c8;     /* 薄荷绿（加深） */
  --mint-soft: #e4efef;     /* 薄荷绿（极浅） */
  --sky: #c5ebfd;           /* 天蓝（视觉块） */
  --sky-deep: #8fd4ef;      /* 天蓝（加深） */
  --pink: #f6a9c4;          /* 粉（PORTFOLIO 填充 / 信封） */
  --pink-soft: #fbdce9;     /* 浅粉（信封） */
  --pink-deep: #f0a8c6;     /* 深粉（信封阴影） */
  --ink: #262626;           /* 深墨（文字/页脚） */
  --ink-soft: #5f6b6b;      /* 次级文字 */
  --bg: #f7f7f7;            /* 浅灰（内容区） */
  --card: #ffffff;
  --line: #dde9e9;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 44px rgba(38, 60, 60, 0.10);
  --shadow-sm: 0 8px 22px rgba(38, 60, 60, 0.08);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  zoom: var(--page-zoom);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

section { scroll-margin-top: 70px; }

/* ---------- 通用区块 ---------- */
.section {
  padding: 40px 0 84px;
}

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

.section-head.center {
  justify-content: center;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--mint-soft);
  border: 1px solid var(--line);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 1px;
}

.section-head p {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 520px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(38, 38, 38, 0.22);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--mint-deep);
  box-shadow: var(--shadow-sm);
}

.btn-sm { padding: 10px 24px; font-size: 14px; }

/* =========================================================
   顶部导航
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(247, 247, 247, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(38, 38, 38, 0.08);
  box-shadow: 0 6px 24px rgba(38, 60, 60, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.5px;
}

.logo-img {
  display: block;
  height: 38px;
  width: auto;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--sky);
  color: var(--ink);
  font-size: 18px;
  transform: rotate(0deg);
  transition: transform 0.4s ease;
}

.logo:hover .logo-mark { transform: rotate(90deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 2px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--sky-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

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

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

/* =========================================================
   Hero（首页：星空背景 + 居中 portfolio 标题）
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    url("../images/stars_wallpaper.png") center / cover no-repeat,
    var(--mint);
  overflow: hidden;
  padding: 80px 24px;
}

.hero-title-img {
  position: relative;
  z-index: 90; /* 高于光标拖尾(80)、低于导航(100)，保证标题不被拖尾遮挡 */
  width: min(760px, 86vw);
  height: auto;
  animation: title-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: drop-shadow(0 16px 32px rgba(38, 38, 38, 0.14));
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   光标拖尾效果（首页）
   ========================================================= */
.image-trailer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80; /* 低于顶部导航(100)，保证导航始终在最上层 */
  overflow: hidden;
}

.image-item {
  position: absolute;
  width: 150px;
  height: 200px;
  object-fit: cover;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(38, 38, 38, 0.22);
  will-change: transform;
}

/* 原图库隐藏，仅作为克隆来源 */
.image-gallery {
  display: none;
}

/* =========================================================
   轮播（运营作品 / AI 作品共用）
   ========================================================= */
.works {
  background: url("../images/works-bg.jpg") center / cover no-repeat var(--bg);
}
.works .section-head { margin-bottom: 24px; }

.carousel-controls {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 20px;
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ctrl-btn:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

/* 运营作品：纵向排列，跟随页面上下滚动 */
.carousel-track {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.work-card {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 全宽卡片（无右侧媒体列，如 KOC 案例卡） */
.work-card--full {
  grid-template-columns: 1fr;
}

/* 横版卡片：左侧媒体区 */
.work-media {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 18px;
}

.work-media > span {
  display: grid;
  place-items: center;
  min-height: 284px;
  font-size: 56px;
  color: rgba(38, 38, 38, 0.65);
}

.account-media { background: #fff; }

.account-shot {
  margin: 0;
  text-align: center;
}

.account-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.account-shot figcaption {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(38, 60, 60, 0.14);
  transition: transform 0.25s ease, background 0.25s ease;
}

.account-link:hover {
  transform: translateY(-2px);
  background: var(--pink-deep);
}

.cover-1 { background: linear-gradient(135deg, var(--sky), var(--mint)); }
.cover-2 { background: linear-gradient(135deg, var(--mint), var(--mint-soft)); }
.cover-3 { background: linear-gradient(135deg, var(--sky-deep), var(--sky)); }
.cover-4 { background: linear-gradient(135deg, var(--mint-soft), var(--sky)); }
.cover-5 { background: linear-gradient(135deg, var(--mint-deep), var(--mint)); }
.cover-6 { background: linear-gradient(135deg, var(--sky), var(--mint-soft)); }

.card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 30px 30px;
}

.card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--mint-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.card-body h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.card-body .work-lead {
  color: var(--ink-soft);
  line-height: 1.75;
}

/* 账号运营：两个账号的分块说明 */
.account-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.account-block h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}

.account-block ul {
  list-style: none;
}

.account-block li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.account-block li::before {
  content: "·";
  position: absolute;
  left: 2px;
  font-weight: 700;
  color: var(--pink-deep);
}

.account-block li b {
  color: var(--ink);
  font-weight: 700;
}

/* KOC 爆款笔记案例：横向排列，可左右滑动查看 */
.koc-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  margin: 4px 0 12px;
}

.koc-hint {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background-image: linear-gradient(120deg, #b5b5b5 0%, #b5b5b5 35%, #ffffff 50%, #b5b5b5 65%, #b5b5b5 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shiny-text-sweep 2s linear infinite;
}

/* ShinyText（React Bits）原生 CSS 复刻：金属光泽从左到右扫过文字 */
@keyframes shiny-text-sweep {
  from {
    background-position: 150% center;
  }
  to {
    background-position: -50% center;
  }
}

.koc-cases {
  display: flex;
  gap: 12px;
  min-width: 0;
  width: 100%;
  align-items: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.koc-cases::-webkit-scrollbar {
  display: none;
}

/* 职场八卦视频号：账号展示 + 爆款视频案例（左右分栏） */
.work-stats {
  margin: 2px 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-deep);
}

.video-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin: 4px 0 16px;
}

.video-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.video-col__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.video-home {
  margin: 0;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.video-home img {
  width: 100%;
  height: auto;
  display: block;
}

.video-col__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-deep);
  background: var(--pink-soft);
  padding: 6px 14px;
  border-radius: 999px;
}

.video-case {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-case__player {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  background: #1a1a1a;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

/* 抖音带货账号：主页截图横排 + 视频案例按钮 */
.douyin-title {
  margin: 2px 0 10px;
}

.douyin-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  margin-bottom: 14px;
}

.douyin-shot {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.douyin-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.douyin-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(38, 60, 60, 0.14);
  transition: transform 0.25s ease, background 0.25s ease;
}

.douyin-btn:hover {
  transform: translateY(-2px);
  background: var(--pink-deep);
}

/* 得物穿搭：图文案例两套上下 + 视频案例 */
.duwu-set {
  width: 100%;
  margin-bottom: 14px;
}

.duwu-set:last-child {
  margin-bottom: 0;
}

.duwu-set__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.duwu-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.duwu-case {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.duwu-case img {
  width: 100%;
  height: auto;
  display: block;
}

.video-case__player--tall {
  aspect-ratio: 9 / 16;
}

.koc-case {
  flex: 0 0 230px;
  width: 230px;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.koc-case img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.koc-link {
  display: block;
  margin-top: auto;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  padding: 9px 0;
  transition: background 0.25s ease;
}

.koc-link:hover {
  background: var(--pink-deep);
}

/* 笔记案例展示按钮（卡片右下角） */
.case-btn {
  align-self: flex-end;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.case-btn:hover {
  transform: translateY(-2px);
  background: var(--ink-soft);
  box-shadow: 0 12px 26px rgba(38, 38, 38, 0.22);
}

/* ---------- 笔记案例弹框 ---------- */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.case-modal.open {
  opacity: 1;
  visibility: visible;
}

.case-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 60, 60, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.case-modal-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 26px;
  padding: 30px 32px 34px;
  box-shadow: 0 30px 80px rgba(38, 60, 60, 0.3);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}

.case-modal.open .case-modal-panel {
  transform: translateY(0) scale(1);
}

.case-modal-panel h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.case-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(38, 38, 38, 0.2);
  transition: transform 0.25s ease, background 0.25s ease;
}

.case-modal-close:hover {
  transform: rotate(90deg);
  background: var(--ink-soft);
}

.case-group {
  display: none;
}

.case-group.active {
  display: block;
}

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

.case-note {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--mint-soft), var(--sky));
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
}

.case-note img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* 真实笔记截图：上下排列，每张全宽按原比例完整显示 */
.case-equal {
  grid-template-columns: 1fr;
  align-items: start;
}

.case-equal .case-note {
  aspect-ratio: auto;
  background: #fff;
  border-style: solid;
}

.case-equal .case-note img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.card-meta span {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
}

.card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: letter-spacing 0.25s ease, color 0.2s ease;
}

.card-link:hover {
  color: var(--ink-soft);
  letter-spacing: 1px;
}

/* =========================================================
   个人介绍
   ========================================================= */
.about {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
  background:
    url("../images/about-bg.jpg") center / cover no-repeat;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.about-visual { position: relative; }

/* 工牌 + 标题文字：整体偏左倾斜 15°；仅工牌每次进入时从上方掉落 + 轻微抖动 */
.about-badge-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.about-badge {
  display: block;
  width: min(400px, 100%);
  height: auto;
  transform: rotate(-15deg);
  filter: drop-shadow(0 18px 34px rgba(38, 38, 38, 0.20));
  opacity: 0;
}

.about-badge.drop {
  animation: badge-drop 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes badge-drop {
  0%   { opacity: 0; transform: translateY(-170px) rotate(-15deg); }
  55%  { opacity: 1; transform: translateY(16px) rotate(-17deg); }
  70%  { transform: translateY(-10px) rotate(-13deg); }
  82%  { transform: translateY(7px) rotate(-16deg); }
  92%  { transform: translateY(-4px) rotate(-14deg); }
  100% { opacity: 1; transform: translateY(0) rotate(-15deg); }
}

/* 右侧：大标题 + 个人资料 */
.about-hello {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 22px;
}

.about-info {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.about-info li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.about-info .info-label {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.about-skills {
  margin-bottom: 28px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.about-skills h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-skills h3::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 4px;
  background: var(--pink);
  flex-shrink: 0;
}

.about-skills ul {
  list-style: none;
}

.about-skills li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.about-skills li:last-child {
  margin-bottom: 0;
}

.about-skills li span {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--ink);
}

/* =========================================================
   实习经历（航班航线滑块，参考 CodePen oNVEqgz）
   ========================================================= */
.experience {
  background: url("../images/stars_wallpaper_16x9.png") center / cover no-repeat var(--bg);
  min-height: calc(100vh / var(--page-zoom) - 48px);
  display: flex;
  align-items: center;
}
.experience .section-head { margin-bottom: 24px; }

.experience .container {
  width: 100%;
}

.flight-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

.flight-route {
  position: relative;
  /* 左右留出飞机起落的空间，底部留出城市名标签的位置 */
  padding: 0 clamp(34px, 4vw, 40px) 76px;
}

.flight-track {
  position: relative;
}

/* 航线滑块本体：飞机沿虚线航线飞行，云朵跟随 */
.flight-route input.flight {
  --bg: #6f8fa3;                              /* 航线颜色（蓝灰） */
  --scale: clamp(1, calc(1 + 0.5 * sin(pi * var(--val) / 100)), 2);
  --shadow: clamp(0.15em, calc(1em * sin(pi * var(--val) / 100)), 1em);
  --opacity: clamp(0.2, calc(1 - sin(pi * var(--val) / 100)), 0.4);
  --color: rgb(0 0 0 / var(--opacity));
  --primary: #fffdfa;                         /* 机身 */
  --secondary: #e685a9;                       /* 机翼 / 尾翼（粉） */
  --val: 0;
  --height: 3em;
  appearance: none;
  container-type: inline-size;
  width: 100%;
  height: var(--height);
  border: none; /* Firefox 默认有边框，去掉 */
  border-radius: 10em;
  position: relative;
  background:
    radial-gradient(circle at 0.35em 50%, var(--bg) 0.35em, #0000 0) no-repeat,
    radial-gradient(circle at calc(100% - 0.35em) 50%, var(--bg) 0.35em, #0000 0) no-repeat,
    linear-gradient(#0000 45%, var(--bg) 0 55%, #0000 0) 50% 50% / 99% 100%,
    #f000;
  border: 0;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  cursor: pointer;
}

/* 已飞过的航线变深色 */
.flight-route input.flight::before {
  content: "";
  width: calc(var(--val) * 1%);
  min-width: 0.5em;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background:
    radial-gradient(circle at 0.35em 50%, #35525f 0.35em, #0000 0) no-repeat,
    linear-gradient(#0000 45%, #35525f 0 55%, #0000 0) 50% 50% / calc(100% - 1em) 100% no-repeat,
    #f000;
}

/* Chrome / Safari 轨道（让飞机浮在航线上方） */
.flight-route input.flight::-webkit-slider-runnable-track {
  height: 100%;
  position: relative;
  z-index: 1;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Chrome / Safari 飞机 */
.flight-route input.flight::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  transform: translateY(calc(-50% + var(--height) / 2)) scale(var(--scale));
  width: 4em;
  aspect-ratio: 1;
  pointer-events: none;
  background:
    linear-gradient(var(--secondary) 0 0) 2% 50% / 13% 2.5% no-repeat,
    /* main frame */
    conic-gradient(at -40% 50%, #0000 84.75deg, var(--primary) 85deg 95deg, #0000 95.25deg) 0 0 / 80% 100%,
    /* pilot */
    radial-gradient(closest-side circle at calc(100% - 0.85em) 50%, var(--sky-deep) 0.3em, #0000 0),
    radial-gradient(20% 10% at 80% 50%, var(--primary) 99%, #0000),
    /* tail */
    conic-gradient(at 45% -45%, #0000 150deg, var(--secondary) 151deg 174deg, #0000 175deg) -50% 40% / 53% 20%,
    conic-gradient(at 45% 145%, #0000 5deg, var(--secondary) 6deg 29deg, #0000 30deg) -50% 60% / 53% 20%,
    /* wings */
    conic-gradient(at 38% -45%, #0000 158deg, var(--secondary) 158.5deg 174deg, #0000 174.5deg) 0 0 / 100% 50%,
    conic-gradient(at 38% 145%, #0000 5deg, var(--secondary) 5.5deg 21deg, #0000 21.5deg) 0 100% / 100% 50%,
    /* engines */
    radial-gradient(80% 50%, #35525f 99%, #0000) 51% 22% / 21% 11%,
    radial-gradient(80% 50%, #35525f 99%, #0000) 51% 78% / 21% 11%;
  background-repeat: no-repeat;
  border-radius: 20% / 100%;
  filter: drop-shadow(calc(var(--shadow) * 2) calc(var(--shadow) * 1.25) var(--shadow) var(--color));
  box-shadow: none; /* Safari 在 iOS 上会额外加 box-shadow，手动去掉 */
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Firefox 轨道 + 飞机 */
.flight-route input.flight::-moz-range-track {
  background: transparent;
  height: 100%;
}

.flight-route input.flight::-moz-range-thumb {
  -webkit-appearance: none;
  appearance: none;
  transform: scale(var(--scale));
  width: 4em;
  height: 4em;
  border: none;
  pointer-events: none;
  background:
    linear-gradient(var(--secondary) 0 0) 2% 50% / 13% 2.5% no-repeat,
    /* main frame */
    conic-gradient(at -40% 50%, #0000 84.75deg, var(--primary) 85deg 95deg, #0000 95.25deg) 0 0 / 80% 100%,
    /* pilot */
    radial-gradient(closest-side circle at calc(100% - 0.85em) 50%, var(--sky-deep) 0.3em, #0000 0),
    radial-gradient(20% 10% at 80% 50%, var(--primary) 99%, #0000),
    /* tail */
    conic-gradient(at 45% -45%, #0000 150deg, var(--secondary) 151deg 174deg, #0000 175deg) -50% 40% / 53% 20%,
    conic-gradient(at 45% 145%, #0000 5deg, var(--secondary) 6deg 29deg, #0000 30deg) -50% 60% / 53% 20%,
    /* wings */
    conic-gradient(at 38% -45%, #0000 158deg, var(--secondary) 158.5deg 174deg, #0000 174.5deg) 0 0 / 100% 50%,
    conic-gradient(at 38% 145%, #0000 5deg, var(--secondary) 5.5deg 21deg, #0000 21.5deg) 0 100% / 100% 50%,
    /* engines */
    radial-gradient(80% 50%, #35525f 99%, #0000) 51% 22% / 21% 11%,
    radial-gradient(80% 50%, #35525f 99%, #0000) 51% 78% / 21% 11%;
  background-repeat: no-repeat;
  border-radius: 20% / 100%;
  filter: drop-shadow(calc(var(--shadow) * 2) calc(var(--shadow) * 1.25) var(--shadow) var(--color));
  box-shadow: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* 窄屏（滑块容器 ≤400px）：飞机换成直升机 */
@container (max-width: 400px) {
  .flight-route input.flight::-webkit-slider-thumb {
    width: 3em;
    background:
      /* rotors */
      radial-gradient(closest-side circle at 50% 50%, var(--secondary) 10%, #0001 11% 90%, #0000 91%) 100% 50% / 90% 90%,
      radial-gradient(closest-side circle at 50% 50%, #0000 0 20%, #0001 0 40%, #0000 0 60%, #0001 0 80%, #0000 0) 100% 50% / 91% 91%,
      /* main frame */
      conic-gradient(at -65% 50%, #0000 84.75deg, var(--primary) 85deg 95deg, #0000 95.25deg) 0 0 / 80% 100%,
      /* pilot */
      radial-gradient(farthest-side circle at calc(100% - 0.5em) 50%, var(--sky-deep) 0.4em, #0000 0),
      radial-gradient(25% 20% at 75% 50%, var(--primary) 99%, #0000),
      /* tail */
      conic-gradient(at 45% -45%, #0000 150deg, var(--secondary) 151deg 174deg, #0000 175deg) -49% 40% / 53% 25%,
      conic-gradient(at 45% 145%, #0000 5deg, var(--secondary) 6deg 29deg, #0000 30deg) -49% 60% / 53% 25%,
      /* legs */
      linear-gradient(#35525f 0 0) 100% 33% / 60% 4%,
      linear-gradient(#35525f 0 0) 100% 67% / 60% 4%;
    background-repeat: no-repeat;
  }

  .flight-route input.flight::-moz-range-thumb {
    width: 3em;
    height: 3em;
    background:
      /* rotors */
      radial-gradient(closest-side circle at 55% 50%, var(--secondary) 10%, #0001 11% 90%, #0000 91%),
      radial-gradient(closest-side circle at 50% 50%, #0000 0 20%, #0001 0 40%, #0000 0 60%, #0001 0 80%, #0000 0) 50% 50% / 91% 91%,
      /* main frame */
      conic-gradient(at -65% 50%, #0000 84.75deg, var(--primary) 85deg 95deg, #0000 95.25deg) 0 0 / 80% 100%,
      /* pilot */
      radial-gradient(farthest-side circle at calc(100% - 0.5em) 50%, var(--sky-deep) 0.4em, #0000 0),
      radial-gradient(25% 20% at 75% 50%, var(--primary) 99%, #0000),
      /* tail */
      conic-gradient(at 45% -45%, #0000 150deg, var(--secondary) 151deg 174deg, #0000 175deg) -49% 40% / 53% 25%,
      conic-gradient(at 45% 145%, #0000 5deg, var(--secondary) 6deg 29deg, #0000 30deg) -49% 60% / 53% 25%,
      /* legs */
      linear-gradient(#35525f 0 0) 100% 33% / 60% 4%,
      linear-gradient(#35525f 0 0) 100% 67% / 60% 4%;
    background-repeat: no-repeat;
  }
}

/* 三个城市节点：圆点落在航线上，名称在圆点下方 */
.flight-node {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  cursor: pointer;
  z-index: 6;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease;
}

/* 当前所在城市：圆点高亮成粉色 */
.flight-node.active .flight-node-dot {
  background: var(--pink);
  border-color: var(--pink-deep);
}

.flight-node.active .flight-node-label {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink-deep);
}

.flight-node.start { left: 0.35em; }
.flight-node.mid { left: 50%; transform: translate(-50%, -50%); }
.flight-node.end { right: 0.35em; }

.flight-node-dot {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  border: 3.5px solid var(--sky-deep);
  box-shadow: 0 0 0 4px var(--mint-soft), 0 2px 6px rgba(38, 60, 60, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.flight-node-label {
  position: absolute;
  /* 放在飞机飞行区下方，避免飞机放大时盖住城市名 */
  top: calc(100% + 52px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  padding: 2px 11px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(38, 60, 60, 0.08);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.flight-node.start .flight-node-label {
  left: 0;
  transform: none;
}

.flight-node.end .flight-node-label {
  left: auto;
  right: 0;
  transform: none;
}

.flight-node:hover .flight-node-dot {
  background: var(--sky);
  transform: scale(1.2);
}

.flight-node:hover .flight-node-label {
  background: var(--pink-soft);
  color: var(--ink);
}

.flight-node:focus-visible {
  outline: 2px dashed var(--pink);
  outline-offset: 4px;
  border-radius: 12px;
}

/* 城市占位卡片：一次只显示当前城市的一张，占满原来三卡的位置 */
.flight-cards {
  margin-top: 26px;
}

.flight-card {
  display: none;
  padding: 30px 34px 32px;
  animation: cardIn 0.45s ease both;
}

.flight-card.active {
  display: block;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.timeline-head h3 { font-size: 18px; }
.timeline-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--sky-deep);
}

.timeline-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--mint-soft);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.timeline-card > p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.timeline-card > p strong {
  color: var(--ink);
  font-weight: 700;
}

/* =========================================================
   AI 作品：横向滚动画廊 + 点击放大详情
   ========================================================= */
.ai-works {
  background:
    linear-gradient(rgba(247, 249, 246, 0.52), rgba(247, 249, 246, 0.52)),
    url("../images/ai-bg.jpg") center / cover no-repeat,
    var(--mint);
}

.ai-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 10px clamp(20px, 5vw, 64px) 14px;
  scroll-padding-left: clamp(20px, 5vw, 64px);
  scroll-padding-right: clamp(20px, 5vw, 64px);
  cursor: grab;
  overscroll-behavior-x: contain;
}

.ai-scroll::-webkit-scrollbar { display: none; }
.ai-scroll.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.ai-gallery {
  display: flex;
  gap: 28px;
  width: max-content;
  align-items: stretch;
}

.ai-gallery-item {
  position: relative;
  flex-shrink: 0;
  width: 300px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 14px 14px 16px;
  box-shadow: 0 18px 40px rgba(38, 60, 60, 0.12);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, opacity 0.3s ease;
}

.ai-gallery-item:nth-child(odd) { transform: rotate(-1.6deg); }
.ai-gallery-item:nth-child(even) { transform: rotate(1.4deg); }

.ai-gallery-item:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 26px 52px rgba(38, 60, 60, 0.20);
}

.ai-gallery-item.is-open { opacity: 0; }

.ai-gallery-media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 1px rgba(38, 60, 60, 0.06);
}

.ai-gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.ai-gallery-cap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 0 4px;
}

.ai-gallery-num {
  font-weight: 800;
  font-size: 13px;
  color: var(--sky-deep);
}

.ai-gallery-name {
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
}

.ai-gallery-tool {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-soft);
  background: var(--mint-soft);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 详情浮层 ---------- */
.ai-detail {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(226, 240, 240, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.ai-detail.open {
  opacity: 1;
  visibility: visible;
}

.ai-detail-wrap {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(38, 60, 60, 0.28);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ai-detail-media {
  position: relative;
  min-height: 420px;
  border-radius: 28px 0 0 28px;
  overflow: hidden;
  background: var(--mint-soft);
}

.ai-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-detail-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 46px 48px;
}

.ai-detail-bignum {
  position: absolute;
  top: 6px;
  right: 22px;
  font-size: 116px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(38, 38, 38, 0.13);
  user-select: none;
  pointer-events: none;
}

.ai-detail-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--sky-deep);
  background: var(--mint-soft);
  border: 1px solid var(--line);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.ai-detail-body h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 14px;
}

.ai-detail-desc {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.ai-detail-meta {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}

.ai-detail-meta .meta-label {
  font-weight: 700;
  color: var(--ink);
}

.ai-detail-meta .meta-value {
  color: var(--ink-soft);
  word-break: break-all;
}

.ai-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(38, 38, 38, 0.25);
  transition: transform 0.25s ease, background 0.25s ease;
}

.ai-detail-close:hover {
  transform: rotate(90deg) scale(1.08);
  background: var(--ink-soft);
}

/* 打开时正文内容依次浮现 */
.ai-detail .ai-detail-body > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ai-detail.open.ready .ai-detail-body > * {
  opacity: 1;
  transform: translateY(0);
}

.ai-detail.open.ready .ai-detail-body > *:nth-child(2) { transition-delay: 0.08s; }
.ai-detail.open.ready .ai-detail-body > *:nth-child(3) { transition-delay: 0.14s; }
.ai-detail.open.ready .ai-detail-body > *:nth-child(4) { transition-delay: 0.20s; }
.ai-detail.open.ready .ai-detail-body > *:nth-child(5) { transition-delay: 0.26s; }
.ai-detail.open.ready .ai-detail-body > *:nth-child(6) { transition-delay: 0.32s; }

/* ---------- 画廊悬浮光标（桌面端） ---------- */
.ai-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ai-cursor.show { display: flex; }

.ai-cursor-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(38, 38, 38, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
}

.ai-cursor-tip {
  position: absolute;
  top: 56px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ai-cursor.hover .ai-cursor-dot {
  transform: scale(1.25);
  background: var(--sky-deep);
}

.ai-cursor.hover .ai-cursor-tip {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   联系方式
   ========================================================= */
.contact {
  background: var(--bg) url("../images/contact-bg.jpg") center / cover no-repeat;
  min-height: calc(100vh / var(--page-zoom) - 48px);
  display: flex;
  align-items: center;
  padding: 48px 0 72px;
}

.contact .container {
  width: 100%;
}

/* ---------- 背景过渡：区块边缘淡入页面底色，让背景图衔接自然 ---------- */
.hero,
.about,
.works,
.experience,
.contact {
  position: relative;
  isolation: isolate;
}

.hero::after,
.about::before,
.about::after,
.works::before,
.works::after,
.experience::before,
.experience::after,
.contact::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 130px;
  z-index: 1;
  pointer-events: none;
}

.hero::after,
.about::after,
.works::after,
.experience::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg), transparent);
}

.about::before,
.works::before,
.experience::before,
.contact::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg), transparent);
}

.about > .container,
.works > .container,
.experience > .container,
.contact > .container {
  position: relative;
  z-index: 2;
}

.contact-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--sky);
  opacity: 0.4;
  top: -110px;
  right: -90px;
}

.contact-card h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-bottom: 12px;
}

.contact-desc {
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 auto 36px;
}

.contact-ways {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 34px;
}

.contact-way {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-way:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.way-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--mint-soft);
  border-radius: 12px;
  font-size: 20px;
}

.contact-way strong {
  display: block;
  font-size: 14.5px;
}

.contact-way small {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  word-break: break-all;
}

.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

.contact-actions a {
  min-width: 236px;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(38, 38, 38, 0.22);
  background: var(--sky-deep);
}

/* Shiny CTA 按钮（参考 CodePen MWMqXbK / Ryan Mulligan）：旋转渐变描边 + 圆点 + 流光 + 呼吸光晕 */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-angle-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-percent {
  syntax: "<percentage>";
  initial-value: 5%;
  inherits: false;
}

@property --gradient-shine {
  syntax: "<color>";
  initial-value: white;
  inherits: false;
}

.shiny-cta {
  --shiny-cta-bg: var(--ink);
  --shiny-cta-bg-subtle: #3a3a3a;
  --shiny-cta-fg: #ffffff;
  --shiny-cta-highlight: var(--sky-deep);
  --shiny-cta-highlight-subtle: #bfe9f9;
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 1.25rem 2.5rem;
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 360px;
  color: var(--shiny-cta-fg);
  background: linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
    conic-gradient(
        from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
        transparent,
        var(--shiny-cta-highlight) var(--gradient-percent),
        var(--gradient-shine) calc(var(--gradient-percent) * 2),
        var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
        transparent calc(var(--gradient-percent) * 4)
      )
      border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine, transform;
}

.shiny-cta::before,
.shiny-cta::after,
.shiny-cta span::before {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  z-index: -1;
}

.shiny-cta:active {
  translate: 0 1px;
}

/* 圆点图案（旋转遮罩） */
.shiny-cta::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(
      circle at var(--position) var(--position),
      white calc(var(--position) / 4),
      transparent 0
    )
    padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  -webkit-mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
  mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
  border-radius: inherit;
  opacity: 0.4;
  z-index: -1;
}

/* 内部旋转流光 */
.shiny-cta::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--shiny-cta-highlight), transparent);
  -webkit-mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
}

.shiny-cta span {
  position: relative;
  z-index: 1;
}

.shiny-cta span::before {
  --size: calc(100% + 1rem);
  width: var(--size);
  height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
  opacity: 0;
}

.shiny-cta,
.shiny-cta::before,
.shiny-cta::after {
  animation: var(--animation) var(--duration), var(--animation) calc(var(--duration) / 0.4) reverse paused;
  animation-composition: add;
}

.shiny-cta span::before {
  transition: opacity var(--transition);
  animation: calc(var(--duration) * 1.5) breathe linear infinite;
}

.shiny-cta:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);
}

.shiny-cta:is(:hover, :focus-visible),
.shiny-cta:is(:hover, :focus-visible)::before,
.shiny-cta:is(:hover, :focus-visible)::after {
  animation-play-state: running;
}

.shiny-cta:is(:hover, :focus-visible) span::before {
  opacity: 1;
}

@keyframes gradient-angle {
  to {
    --gradient-angle: 360deg;
  }
}

@keyframes shimmer {
  to {
    rotate: 360deg;
  }
}

@keyframes breathe {
  from,
  to {
    scale: 1;
  }
  50% {
    scale: 1.2;
  }
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 48px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
}

.footer-brand .logo-mark {
  background: var(--sky);
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.footer-links a {
  font-size: 14px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.footer-links a:hover { opacity: 1; }

.footer-copy {
  font-size: 13px;
  opacity: 0.6;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 90;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover { background: var(--ink-soft); }

/* =========================================================
   滚动显现动画
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   响应式（手机自适应）
   ========================================================= */
@media (max-width: 900px) {
  .section { padding: 32px 0 64px; }

  .hero-title-img { width: min(680px, 90vw); }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-visual { max-width: 420px; }
  .about-visual { margin: 0 auto; }

  .about-badge { width: min(300px, 82%); }

}

@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }

  .section { padding: 26px 0 52px; }

  /* 移动端导航 */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(247, 247, 247, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 24px 18px;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(38, 38, 38, 0.06);
  }

  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--sky-deep); font-weight: 800; }

  /* Hero */
  .hero { padding: 72px 20px; }
  .hero-title-img { width: 92vw; }

  /* 区块标题 */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
  }

  /* 轮播卡片 */
  .work-card {
    width: 100%;
    grid-template-columns: 1fr;
  }
  /* 视频号账号展示与爆款案例：手机端上下堆叠 */
  .video-split {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .duwu-cases {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-media {
    order: -1; /* 手机单列时图片回到文字上方 */
    min-height: 0;
    padding: 14px;
  }
  .work-media > span {
    min-height: 170px;
    font-size: 46px;
  }
  .account-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .account-shot figcaption {
    font-size: 11.5px;
  }
  .account-link {
    font-size: 11px;
    padding: 5px 10px;
  }
  .card-body {
    padding: 20px 18px 22px;
  }
  .koc-case {
    flex-basis: 190px;
    width: 190px;
  }
  .case-modal {
    padding: 12px;
  }
  .case-modal-panel {
    padding: 22px 16px 24px;
    border-radius: 20px;
  }
  .case-grid {
    gap: 10px;
  }
  .case-note {
    border-radius: 12px;
    font-size: 12px;
  }
  /* AI 画廊：卡片加宽到接近全屏，左右留出手滑区域 */
  .ai-scroll { padding: 8px 20px 12px; }
  .ai-gallery { gap: 18px; }
  .ai-gallery-item { width: 72vw; }

  /* AI 详情浮层：手机上下布局 */
  .ai-detail { padding: 10px; }
  .ai-detail-wrap {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }
  .ai-detail-media {
    border-radius: 22px 22px 0 0;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .ai-detail-body { padding: 30px 22px 40px; }
  .ai-detail-bignum { font-size: 84px; top: 2px; right: 14px; }
  .ai-detail-close { top: 10px; right: 10px; width: 40px; height: 40px; }

  /* 触屏设备隐藏悬浮光标 */
  @media (hover: none), (pointer: coarse) {
    .ai-cursor { display: none !important; }
  }

  /* 统计卡 */
  .stats { gap: 12px; }
  .stat { min-width: 96px; padding: 14px 10px; }
  .stat strong { font-size: 20px; }

  /* 实习经历（航班滑块） */
  .flight-route { padding: 0 34px 54px; }
  .flight-node-dot { width: 13px; height: 13px; border-width: 3px; }
  .flight-node-label { font-size: 12px; letter-spacing: 0.2px; padding: 1px 6px; top: calc(100% + 36px); }
  .flight-cards { margin-top: 20px; }
  .flight-card { padding: 24px 20px 26px; }
  .timeline-head { flex-direction: column; gap: 6px; }

  /* 工牌缩小，避免倾斜后溢出屏幕 */
  .about-badge { width: min(230px, 58vw); }

  /* 联系 */
  .contact-card { padding: 40px 22px; border-radius: 28px; }
  .contact-ways { grid-template-columns: 1fr; }

  .back-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (max-width: 400px) {
  .stats { flex-direction: column; }
  .stat { width: 100%; }
  .footer-links { gap: 14px; }
}

/* 减少动态效果（无障碍） */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
