/* ============================================================
   Personal Portfolio - 主样式表
   清新治愈风 | 青绿色/薄荷蓝/嫩黄色
   水彩渐变 + 毛玻璃质感 + 柔和纹理
   ============================================================ */

/* ---------- 字体方案 ----------
   系统字体栈（不再依赖外部字体，国内访问稳定）
   --------------------------------------- */

/* ============================================================
   CSS 变量（全局配色体系）
   ============================================================ */
:root {
  /* 主色调：薄荷蓝 / 青绿系 */
  --mint: #73d2de;
  --mint-dark: #5cb8c4;
  --mint-light: #a8dadc;
  --mint-pale: #c8e9ec;

  /* 辅助色：淡蓝 / 嫩黄 / 奶油 */
  --blue-light: #90e0ef;
  --blue-pale: #caf0f8;
  --yellow-light: #fff3b0;
  --yellow-pale: #fff9d6;
  --cream: #fefae0;

  /* 中性色 */
  --white: #ffffff;
  --white-60: rgba(255, 255, 255, 0.6);
  --white-75: rgba(255, 255, 255, 0.75);
  --white-85: rgba(255, 255, 255, 0.85);

  /* 文字色 */
  --text-dark: #2d3436;
  --text-mid: #4a5558;
  --text-gray: #636e72;
  --text-light: #8b9598;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 2px 12px rgba(115, 210, 222, 0.12);

  /* 圆角 */
  --radius-xl: 20px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* 过渡 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   全局重置 + 基础样式
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;

  /* 多层水彩渐变背景 */
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(144, 224, 239, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(168, 218, 220, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 80%, rgba(255, 243, 176, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 70%, rgba(254, 250, 224, 0.30) 0%, transparent 55%),
    linear-gradient(170deg, #fefae0 0%, #fff9d6 15%, #fff3b0 35%, #e8f8fb 55%, #caf0f8 75%, #d4f0f4 100%);
  background-attachment: fixed;
}

/* ---------- 文字选中颜色 ---------- */
::selection {
  background: rgba(115, 210, 222, 0.25);
  color: var(--text-dark);
}

/* ---------- 自定义滚动条 ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--mint-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mint);
}

/* ============================================================
   背景纹理层（柔和的点状纹理）
   ============================================================ */
.bg-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;

  /* 细微的网格纹理 */
  background-image:
    radial-gradient(circle, #636e72 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ============================================================
   浮动光斑装饰（缓慢漂移的半透明圆）
   ============================================================ */
.floating-orb {
  position: fixed;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
  animation: floatOrb 12s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(144, 224, 239, 0.12);
  top: -60px;
  right: -40px;
  animation-delay: 0s;
}

.orb-2 {
  width: 220px;
  height: 220px;
  background: rgba(255, 243, 176, 0.15);
  bottom: 10%;
  left: -50px;
  animation-delay: -4s;
  animation-duration: 15s;
}

.orb-3 {
  width: 180px;
  height: 180px;
  background: rgba(168, 218, 220, 0.12);
  top: 50%;
  right: 5%;
  animation-delay: -8s;
  animation-duration: 18s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(20px, -25px) scale(1.05); }
  50%      { transform: translate(-10px, -15px) scale(0.95); }
  75%      { transform: translate(-20px, 15px) scale(1.08); }
}

/* ============================================================
   装饰元素（右上角花卉/枝叶）
   ============================================================ */
.decorations {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
}

.deco-top-right {
  width: 320px;
  height: auto;
  filter: saturate(0.8);
}

/* ============================================================
   通用页面容器
   ============================================================ */
.page {
  display: none;
  min-height: 100vh;
  padding: 60px 20px 40px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.5s ease;
}

.page.active {
  display: block;
}

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

/* ============================================================
   通用标题
   ============================================================ */
.section-title {
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 44px;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 1px;
}

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition);
  text-decoration: none;
  outline: none;
  touch-action: manipulation;  /* 禁止双击缩放 */
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(115, 210, 222, 0.4);
}

/* 封面进入按钮 */
.btn-enter {
  background: linear-gradient(135deg, var(--mint), #5ebec9);
  color: #fff;
  font-size: 1.1rem;
  padding: 15px 40px;
  box-shadow: 0 4px 18px rgba(115, 210, 222, 0.35);
  letter-spacing: 1px;
}

.btn-enter:hover {
  background: linear-gradient(135deg, #5ebec9, var(--mint-dark));
  box-shadow: 0 8px 28px rgba(115, 210, 222, 0.45);
  transform: translateY(-3px);
}

.btn-enter:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(115, 210, 222, 0.3);
}

/* 轮廓按钮 */
.btn-outline {
  background: transparent;
  border: 2px solid var(--mint);
  color: var(--mint-dark);
}

.btn-outline:hover {
  background: var(--mint);
  color: #fff;
  box-shadow: 0 4px 16px rgba(115, 210, 222, 0.25);
}

/* 底部双按钮导航 */
.bottom-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* 返回按钮 */
.btn-back {
  display: inline-block;
  margin: 0;
  background: var(--white-75);
  border: 2px solid var(--mint-light);
  color: var(--text-mid);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-back:hover {
  background: var(--mint-pale);
  border-color: var(--mint);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* 下一章节按钮 */
.btn-next {
  display: inline-block;
  margin: 0;
  background: linear-gradient(135deg, var(--mint), #5ebec9);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(115, 210, 222, 0.3);
}

.btn-next:hover {
  background: linear-gradient(135deg, #5ebec9, var(--mint-dark));
  box-shadow: 0 6px 24px rgba(115, 210, 222, 0.4);
  transform: translateY(-2px);
}

/* ============================================================
   占位框（待替换内容区域）
   ============================================================ */
.placeholder-box {
  background: var(--white-60);
  border: 2px dashed var(--mint-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition);
  text-align: center;
  padding: 16px;
}

.placeholder-box.placeholder-sm {
  min-height: 120px;
  min-width: 120px;
}

/* ---------- 隐藏类 ---------- */
.hidden {
  display: none !important;
}

/* ============================================================
   封面页 (Cover Page)
   ============================================================ */
.cover-page.active {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
}

.cover-content {
  position: relative;
  z-index: 1;
}

.cover-title {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(115, 210, 222, 0.15);
  animation: titleFloat 3s ease-in-out infinite;
}

/* 标题轻微浮动 */
@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.cover-subtitle {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mint-dark);
  letter-spacing: 5px;
  margin-bottom: 44px;
  text-transform: uppercase;
}

/* 进入按钮脉冲引导 */
.btn-enter {
  animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(115, 210, 222, 0.35); }
  50%      { box-shadow: 0 6px 30px rgba(115, 210, 222, 0.55), 0 0 0 12px rgba(115, 210, 222, 0.08); }
}

/* ============================================================
   目录页 (Table of Contents)
   ============================================================ */
.toc-page {
  text-align: center;
  padding-top: 100px;
}

.toc-page .section-title,
.toc-page .section-subtitle {
  animation: fadeInUp 0.6s ease both;
}

.toc-page .section-subtitle {
  animation-delay: 0.1s;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

/* 目录卡片 — 毛玻璃质感 */
.toc-card {
  background: var(--white-60);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  /* 默认隐藏，由JS触发依次显示 */
  opacity: 0;
  transform: translateY(30px);
}

/* JS 触发渐入 */
.toc-card.reveal {
  animation: cardReveal 0.5s ease forwards;
}

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

/* 卡片顶部渐变条（hover显示） */
.toc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mint), var(--blue-light), var(--mint-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toc-card:hover::before {
  opacity: 1;
}

.toc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(115, 210, 222, 0.3);
  background: var(--white-75);
}

.toc-icon {
  font-size: 2.8rem;
  color: var(--mint);
  margin-bottom: 14px;
  transition: var(--transition);
}

.toc-card:hover .toc-icon {
  transform: scale(1.1);
  color: #5ebec9;
}

.toc-card h3 {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.toc-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================================
   模块页通用样式
   ============================================================ */
.module-page {
  padding-top: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- 子模块卡片（毛玻璃） ---------- */
.sub-module {
  background: var(--white-60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 32px 30px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.sub-module:hover {
  box-shadow: var(--shadow-card);
}

/* 子模块标题 */
.sub-module > h3 {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
  border-left: 4px solid var(--mint);
  padding-left: 14px;
  border-radius: 0 4px 4px 0;
}

.sub-module h4 {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-mid);
  font-size: 1.05rem;
}

/* ============================================================
   模块1：个人简介
   ============================================================ */

/* --- 基本信息三栏布局 --- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 44px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-left {
  text-align: right;
}

.profile-right {
  text-align: left;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-left .info-item {
  align-items: flex-end;
}

.profile-right .info-item {
  align-items: flex-start;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* --- 个人照片 --- */
.profile-photo {
  display: flex;
  justify-content: center;
}

.profile-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(115, 210, 222, 0.4);
  box-shadow: 0 4px 20px rgba(115, 210, 222, 0.15);
  transition: var(--transition);
}

.profile-avatar:hover {
  border-color: var(--mint);
  box-shadow: 0 6px 28px rgba(115, 210, 222, 0.25);
}

.photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--white-75), var(--white-60));
  border: 3px solid rgba(115, 210, 222, 0.4);
  box-shadow: 0 4px 20px rgba(115, 210, 222, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  gap: 8px;
  transition: var(--transition);
}

.photo-placeholder:hover {
  border-color: var(--mint);
  box-shadow: 0 6px 28px rgba(115, 210, 222, 0.25);
}

.photo-placeholder i {
  font-size: 3.5rem;
  color: var(--mint-light);
}

.photo-placeholder span {
  font-size: 0.85rem;
}

/* --- 技能卡片区 --- */
.skills-section {
  background: var(--white-60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
}

.skills-section > h3 {
  text-align: center;
  margin-bottom: 24px;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--white-75);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--mint);
  transition: var(--transition);
}

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

.skill-card h4 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 700;
}

.skill-card ul {
  list-style: none;
  padding: 0;
}

.skill-card li {
  padding: 5px 0;
  color: var(--text-mid);
  font-size: 0.93rem;
}

.skill-card li::before {
  content: "✦ ";
  color: var(--mint);
  font-size: 0.7rem;
}

/* ============================================================
   模块2：能力展示
   ============================================================ */

/* --- 社媒作品 --- */
.social-media-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* 左侧分析文字滚动区 */
.analysis-scroll {
  max-height: 420px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 8px;
}

.analysis-item {
  background: var(--white-75);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  border-left: 3px solid transparent;
  transition: var(--transition);
  line-height: 1.7;
}

.analysis-item:hover {
  border-left-color: var(--mint);
  background: var(--white-85);
}

.analysis-item strong {
  color: var(--mint-dark);
}

/* 右侧截图滚动区 */
.social-screenshots h4 {
  margin-bottom: 12px;
}

.screenshot-scroll {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 8px;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: var(--shadow-sm);
}

.screenshot-item .placeholder-box {
  min-height: 180px;
}

/* 证书图片 */
.certificate-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.certificate-card:hover img {
  box-shadow: var(--shadow);
}

/* 板块大标题 */
.article-main-title {
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

/* --- 文案写作：双卡片并排 --- */
.article-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.article-card {
  background: var(--white-75);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.7);
}

.article-card h4 {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
  border-left: 3px solid var(--mint);
  padding-left: 10px;
}

.article-card-body {
  margin-bottom: 16px;
}

.article-card-body p {
  margin-bottom: 8px;
  font-size: 0.93rem;
  line-height: 1.7;
}

.article-card-body strong {
  color: var(--mint-dark);
}

.article-card-title {
  font-weight: 700;
  font-size: 0.98rem !important;
  color: var(--text-dark);
}

/* 论文卡片：标签组 */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(115, 210, 222, 0.12);
  color: var(--mint-dark);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* 论文卡片：元信息 */
.article-meta {
  font-size: 0.82rem !important;
  color: var(--text-light) !important;
  margin-bottom: 16px !important;
  line-height: 1.5;
}

/* 论文卡片：段落小标题 */
.article-section-title {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--mint-dark);
  margin: 16px 0 6px 0;
}

/* 论文卡片：PDF 下载链接 */
.article-pdf-link {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(115,210,222,0.25);
}

.article-pdf-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.article-pdf-link a:hover {
  color: #5cb8c4;
  text-decoration: underline;
}

.article-pdf-link i {
  font-size: 1.1rem;
  color: #e74c3c;
}

/* 摘要文字 */
.article-summary {
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* 查看详情按钮 */
.btn-detail {
  background: transparent;
  border: 2px solid var(--mint);
  color: var(--mint-dark);
  font-size: 0.9rem;
  padding: 8px 22px;
}

.btn-detail:hover {
  background: var(--mint);
  color: #fff;
}

/* ============================================================
   论文详情弹窗
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.25s ease;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 620px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: rgba(0,0,0,0.05);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-gray);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: #ffe0e0;
  color: #d63031;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  padding-right: 30px;
  color: var(--text-dark);
}

.modal-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* 移动端弹窗 */
@media (max-width: 480px) {
  .modal-content {
    padding: 24px 20px;
    width: 94vw;
    max-height: 90vh;
  }
}

.article-card-preview {
  text-align: center;
}

.article-card-preview .phone-frame {
  width: 220px;
  height: 360px;
}

/* 移动端：双卡片 → 上下堆叠 */
@media (max-width: 768px) {
  .article-dual {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-card-preview .phone-frame {
    width: 200px;
    height: 320px;
  }
}

/* --- 公众号推文：左右分栏 --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.article-intro {
  background: var(--white-75);
  padding: 22px;
  border-radius: var(--radius);
}

.article-intro p {
  margin-bottom: 10px;
  font-size: 0.93rem;
  line-height: 1.7;
}

.article-intro strong {
  color: var(--mint-dark);
}

/* 手机预览框 */
.phone-frame {
  width: 280px;
  max-width: 100%;
  height: 480px;
  margin: 0 auto;
  border: 7px solid #3a3f42;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* 手机顶部刘海 */
.phone-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #3a3f42;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  overflow-y: auto;
  padding: 18px 14px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.phone-screen .placeholder-content {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  background: rgba(200, 200, 200, 0.15);
  border-radius: var(--radius-xs);
  padding: 20px;
  text-align: center;
}

/* --- 相册 --- */
.album-section {
  margin-bottom: 10px;
}

.album-container {
  text-align: center;
}

/* 相册查看器 */
.album-viewer {
  position: relative;
  padding: 20px;
  background: var(--white-75);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.album-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.album-nav {
  background: var(--white-85);
  border: 2px solid var(--mint-light);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-nav:hover {
  background: var(--mint);
  color: #fff;
  border-color: var(--mint);
  box-shadow: 0 4px 14px rgba(115, 210, 222, 0.3);
}

.album-photo {
  flex: 1;
  max-width: 500px;
}

.album-photo .placeholder-box {
  min-height: 300px;
}

/* 自动轮播：照片区居中，支持左右滑动/拖动 */
.album-photo-viewer .album-photo {
  max-width: 500px;
  margin: 0 auto;
  cursor: grab;
  touch-action: pan-y;           /* 保留上下滚动，横向手势交给滑动切换 */
  user-select: none;
  -webkit-user-select: none;
}

.album-photo-viewer .album-photo:active {
  cursor: grabbing;
}

/* 图片本身不响应指针，避免拖动图片干扰滑动手势 */
.album-photo-viewer .album-photo img {
  pointer-events: none;
}

.album-counter {
  margin-top: 14px;
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- 视频 --- */
.video-section {
  margin-top: 12px;
}

.video-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.video-player {
  width: 100%;
  border-radius: var(--radius);
  background: #1a1a1a;
  min-height: 300px;
  box-shadow: var(--shadow);
}

.video-placeholder-text {
  margin-top: 10px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.video-stage {
  flex: 1;
  max-width: 700px;
  min-width: 0;
}

.video-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 10px;
}

/* ============================================================
   模块3：其他
   ============================================================ */

/* --- 志愿活动 --- */
.volunteer-intro {
  margin-bottom: 24px;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--text-mid);
}

.certificate-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.certificate-card {
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  overflow: hidden;
}

.certificate-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.certificate-card .placeholder-box {
  min-height: 260px;
}

/* --- 游戏/二次元 --- */
.hobby-gallery {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 18px;
  text-align: center;
  padding: 8px 40px 16px 8px;       /* 右侧留空让最后一张卡片部分可见 */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  cursor: grab;
}

.hobby-gallery:active {
  cursor: grabbing;
}

/* 隐藏滚动条但保留滚动功能 */
.hobby-gallery::-webkit-scrollbar {
  height: 6px;
}
.hobby-gallery::-webkit-scrollbar-track {
  background: transparent;
}
.hobby-gallery::-webkit-scrollbar-thumb {
  background: var(--mint-light);
  border-radius: 10px;
}

.hobby-card {
  flex: 0 0 180px;                   /* 固定宽度，不伸缩 */
  scroll-snap-align: start;
  background: var(--white-75);
  border-radius: var(--radius);
  padding: 18px 14px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.6);
  user-select: none;                 /* 拖动时不选中文字 */
}

.hobby-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--mint-light);
}

.hobby-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  display: block;
}

.hobby-card .placeholder-box {
  margin-bottom: 10px;
}

.hobby-card span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-mid);
  font-weight: 500;
}

/* 移动端：卡片略窄以露出更多下一张 */
@media (max-width: 768px) {
  .hobby-card {
    flex: 0 0 155px;
  }
  .hobby-gallery {
    padding-right: 30px;
  }
}

/* --- 音乐爱好者 --- */
.music-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 44px;
  align-items: start;
}

/* 旋转唱片 */
.record-player {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  align-self: center;           /* 垂直居中在左侧列 */
  min-height: 280px;            /* 给左侧足够空间让唱片居中 */
}

.record {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  animation: spin 5s linear infinite;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.2));
}

.record-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #2a2a2a 0deg, #3d3d3d 28deg, #1f1f1f 58deg, #353535 88deg,
    #1a1a1a 118deg, #2e2e2e 148deg, #383838 178deg,
    #222 208deg, #404040 238deg, #1c1c1c 268deg,
    #303030 298deg, #2d2d2d 328deg, #3a3a3a 360deg
  );
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.4),
    0 0 0 4px rgba(255,255,255,0.08);
}

/* 唱片同心圆纹理 */
.record-disc::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

.record-disc::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
}

.record-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint-light), var(--mint));
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 唱片中心小圆点 */
.record-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 歌曲列表 */
.song-list {
  background: var(--white-75);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.song-list h4 {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  margin-bottom: 18px;
  font-weight: 700;
}

#playlist {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
}

.song-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  margin-bottom: 8px;
  background: var(--white-85);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.93rem;
  border: 1.5px solid transparent;
}

.song-item:hover {
  background: var(--mint-pale);
  border-color: var(--mint-light);
  transform: translateX(3px);
}

.song-item i {
  color: var(--mint);
  width: 22px;
  text-align: center;
  font-size: 0.85rem;
  transition: var(--transition);
}

.song-item.playing {
  background: linear-gradient(135deg, var(--mint), #5ebec9);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(115, 210, 222, 0.3);
}

.song-item.playing i {
  color: #fff;
}

#audioPlayer {
  width: 100%;
  margin-top: 10px;
  border-radius: 20px;
}

/* 音频播放器样式美化 */
#audioPlayer::-webkit-media-controls-panel {
  background-color: var(--white-85);
}

/* ============================================================
   感谢观看页 (Thank You Page)
   ============================================================ */
.thanks-page.active {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thanks-content {
  max-width: 520px;
  padding: 44px 40px;
  background: var(--white-75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
}

.thanks-title {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.thanks-message {
  color: var(--text-gray);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.thanks-contact {
  margin-bottom: 28px;
  text-align: left;
}

.thanks-contact h3 {
  text-align: center;
  margin-bottom: 18px;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
}

.thanks-contact p {
  margin-bottom: 10px;
  color: var(--text-mid);
}

.thanks-contact i {
  color: var(--mint);
  margin-right: 10px;
  width: 22px;
  text-align: center;
}

.thanks-quote {
  font-size: 1.05rem;
  color: var(--text-gray);
  font-style: italic;
  margin-bottom: 28px;
  line-height: 1.9;
  position: relative;
  padding: 0 10px;
}

/* ============================================================
   图片放大遮罩层
   ============================================================ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: fadeInOverlay 0.25s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.overlay-content {
  max-width: 90vw;
  max-height: 90vh;
}

.overlay-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.overlay-close {
  position: absolute;
  top: 24px;
  right: 36px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1;
  transition: var(--transition);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.overlay-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

/* ============================================================
   响应式：平板端（≤768px）
   ============================================================ */
@media (max-width: 768px) {
  .cover-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

  /* 个人简介 → 上下堆叠 */
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .profile-left,
  .profile-right {
    text-align: center;
    align-items: center;
  }

  .profile-left .info-item,
  .profile-right .info-item {
    align-items: center;
  }

  .profile-photo {
    order: -1;
  }

  .photo-placeholder,
  .profile-avatar {
    width: 160px;
    height: 160px;
  }

  /* 社媒作品 → 上下堆叠 */
  .social-media-content {
    grid-template-columns: 1fr;
  }

  .analysis-scroll {
    max-height: 300px;
  }

  .screenshot-scroll {
    max-height: 300px;
  }

  .screenshot-item .placeholder-box {
    min-height: 140px;
  }

  /* 歌单高度缩小 */
  #playlist {
    max-height: 260px;
  }

  /* 公众号推文 → 上下堆叠 */
  .article-layout {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: 240px;
    height: 400px;
  }

  /* 音乐 → 上下堆叠 */
  .music-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .record {
    width: 160px;
    height: 160px;
  }

  /* 目录卡片 → 单列 */
  .toc-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  /* 技能卡片 → 单列 */
  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* 装饰图片缩小 */
  .deco-top-right {
    width: 200px;
  }

  /* 光斑缩小 */
  .orb-1 { width: 180px; height: 180px; }
  .orb-2 { width: 140px; height: 140px; }
  .orb-3 { width: 100px; height: 100px; }
}

/* ============================================================
   响应式：手机端（≤480px）
   ============================================================ */
@media (max-width: 480px) {
  .cover-title {
    font-size: 1.7rem;
  }

  .cover-subtitle {
    letter-spacing: 3px;
    font-size: 0.9rem;
  }

  .page {
    padding: 36px 12px 28px;
  }

  .sub-module {
    padding: 22px 16px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn-enter {
    padding: 13px 32px;
    font-size: 1rem;
  }

  .phone-frame {
    width: 200px;
    height: 360px;
  }

  .album-display {
    gap: 8px;
  }

  .album-nav {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .thanks-title {
    font-size: 1.8rem;
  }

  .thanks-content {
    padding: 28px 20px;
  }

  /* 底部导航 → 纵向堆叠 */
  .bottom-nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-back,
  .btn-next {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* 光斑进一步缩小 */
  .orb-1 { width: 120px; height: 120px; }
  .orb-2 { width: 90px; height: 90px; }
  .orb-3 { display: none; }
}

/* ============================================================
   响应式：超小屏（≤360px）
   ============================================================ */
@media (max-width: 360px) {
  .cover-title {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .phone-frame {
    width: 170px;
    height: 320px;
  }

  .record {
    width: 130px;
    height: 130px;
  }

  .photo-placeholder,
  .profile-avatar {
    width: 130px;
    height: 130px;
  }
}
