:root {
  --text: #182011;
  --text-soft: #59654d;
  --line: rgba(116, 138, 96, 0.24);
  --line-strong: rgba(98, 126, 78, 0.42);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(247, 250, 240, 0.86);
  --surface-strong: rgba(245, 249, 234, 0.96);
  --shadow: 0 24px 60px rgba(67, 86, 43, 0.14);
  --shadow-soft: 0 18px 40px rgba(89, 112, 62, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: 320ms cubic-bezier(.2, .8, .2, 1);
  --transition-slow: 480ms cubic-bezier(.2, .8, .2, 1);
  --panel-count: 2;
  --panel-switch-duration: 600ms;
  --content-width: 1320px;
  --card-width: 236px;
  --card-gap: 18px;
}

* { box-sizing: border-box; }
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
}
body { position: relative; }
canvas,
img,
svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1,
h2,
h3,
h4,
p { margin: 0; }

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.空间-扭曲-容器 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  overflow: hidden;
}

.空间-核心 {
  position: fixed;
  width: 0;
  height: 0;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
}

.重力-场 {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(168,198,148,0.08) 0%, 
    rgba(138,165,118,0.04) 30%, 
    transparent 70%);
  transform: translate(-50%, -50%);
  animation: 收缩-扩张 4s ease-in-out infinite;
  pointer-events: none;
}

.重力-场:nth-child(1) {
  width: 150px;
  height: 150px;
  animation-delay: 0s;
}

.重力-场:nth-child(2) {
  width: 240px;
  height: 240px;
  animation-delay: 0.8s;
}

.重力-场:nth-child(3) {
  width: 360px;
  height: 360px;
  animation-delay: 1.6s;
}

.重力-场:nth-child(4) {
  width: 480px;
  height: 480px;
  animation-delay: 2.4s;
}

@keyframes 收缩-扩张 {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.85);
  }
  50% {
    opacity: 0.25;
    transform: translate(-50%, -50%) scale(1.15);
  }
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.85);
  }
}

.空间-涟漪 {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168,198,148,0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: 涟漪-扩散 3s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.空间-涟漪:nth-child(5) {
  width: 60px;
  height: 60px;
  animation-delay: 0s;
}

.空间-涟漪:nth-child(6) {
  width: 100px;
  height: 100px;
  animation-delay: 0.6s;
}

.空间-涟漪:nth-child(7) {
  width: 140px;
  height: 140px;
  animation-delay: 1.2s;
}

@keyframes 涟漪-扩散 {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.5);
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

.坍缩-核心 {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(255,255,255,0.6) 0%, 
    rgba(168,198,148,0.4) 40%, 
    transparent 80%);
  transform: translate(-50%, -50%);
  box-shadow: 
    0 0 15px rgba(168,198,148,0.35),
    0 0 30px rgba(168,198,148,0.2),
    0 0 45px rgba(168,198,148,0.08);
  transition: transform 0.15s ease;
}

body:hover .坍缩-核心.hover {
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 
    0 0 18px rgba(168,198,148,0.4),
    0 0 36px rgba(168,198,148,0.25),
    0 0 54px rgba(168,198,148,0.12);
}

.面板-首页 {
  cursor: none;
}

.面板-首页 * {
  cursor: none;
}

@media (max-width: 960px) {
  .空间-扭曲-容器,
  .空间-核心 {
    display: none;
  }
  
  .panel-home {
    cursor: auto;
  }
  
  .panel-home * {
    cursor: auto;
  }
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* ------------------------------
   横向两页结构
   ------------------------------ */
.horizontal-track {
  display: flex;
  width: calc(var(--panel-count) * 100vw);
  height: 100vh;
  transform: translate3d(0, 0, 0);
  transition: transform var(--panel-switch-duration) cubic-bezier(.2, .85, .15, 1);
  will-change: transform;
}

.panel {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.panel-scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.panel-scroll::-webkit-scrollbar {
  width: 9px;
}

.panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(140, 167, 106, 0.42);
  border-radius: 999px;
}

.panel-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.panel-projects,
.projects-stage {
  display: flex;
  flex-direction: column;
}

.projects-stage {
  width: 100%;
  height: 100%;
}

/* ------------------------------
   通用动画
   ------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 820ms ease, transform 820ms ease;
}

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

.js :is(.scroll-guide, .dock).reveal {
  transform: translateX(-50%) translateY(22px);
}

.js :is(.scroll-guide, .dock).reveal.in {
  transform: translateX(-50%) translateY(0);
}

.floaty {
  animation: floaty 6s ease-in-out infinite;
}

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

/* ------------------------------
   首页 Hero
   ------------------------------ */
.home-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 96px 0 92px;
  isolation: isolate;
  overflow: hidden;
  background: url('./assets/我的壁纸.jpg') center / cover no-repeat;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero::before {
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(248, 251, 236, 0.16), rgba(223, 233, 190, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(232, 241, 214, 0.18));
}

.home-hero::after {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100vw - 48px));
  padding: 42px 28px;
  text-align: center;
}

.我的头像-外环 {
  width: 170px;
  height: 170px;
  margin: 0 auto 18px;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,255,227,.95), rgba(170,213,180,.85), rgba(228,223,194,.9));
  box-shadow: 0 12px 45px rgba(138,167,111,.38), inset 0 0 24px rgba(255,255,255,.45);
}

.我的头像 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.7);
}

.eyebrow {
  color: rgba(17, 40, 20, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin-top: 14px;
  font-family: inherit;
  font-size: clamp(3.1rem, 8vw, 5rem);
  font-weight: 700;
  color: #f7faeb;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 28px rgba(9, 16, 7, 0.24), -1px -1px 0 rgba(0,0,0,0.3), 1px -1px 0 rgba(0,0,0,0.3), -1px 1px 0 rgba(0,0,0,0.3), 1px 1px 0 rgba(0,0,0,0.3);
  -webkit-text-stroke: 1px rgba(0,0,0,0.35);
}

.hero-stroke-soft,
.hero-desc,
.scroll-guide {
  color: #f4f8ee;
  text-shadow: 0 1px 0 rgba(15,24,10,.32), 0 4px 14px rgba(12,20,8,.24);
}

.hero-intro {
  max-width: 680px;
  margin: 18px auto 0;
  padding: 22px 26px;
  border-radius: 24px;
  border: 1px solid rgba(223, 236, 208, 0.72);
  background: rgba(16, 26, 11, 0.18);
  box-shadow: 0 12px 28px rgba(14, 21, 10, 0.1);
}

.hero-intro p {
  margin: 8px 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.88;
  color: #f6faee;
}

#daysAlive {
  display: inline-block;
  min-width: 4ch;
  font-weight: 800;
  color: #f3ffd8;
}

.scroll-guide {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 1;
  text-align: center;
}

.scroll-line {
  width: 1px;
  height: 60px;
  margin: 10px auto 0;
  background: linear-gradient(180deg, rgba(255,255,255,.95), transparent);
  animation: pulse-line 2s infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: .35; transform: scaleY(.86); }
  50% { opacity: 1; transform: scaleY(1); }
}

.panel-projects.wallpaper-信息-展示 .独立菜单,
.panel-projects.wallpaper-信息-展示 .独立菜单-弹出,
.panel-projects.wallpaper-信息-展示 .projects-layout {
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms ease;
}

.panel-projects.wallpaper-信息-展示 .壁纸-信息 {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.panel-projects {
  position: relative;
  background: url('./assets/斯特雷本庄园【灵黎朽歌（诺风之启）】.jpg') center center / cover no-repeat;
}

.projects-stage {
  position: relative;
}

/* ------------------------------
    第二页外层与顶部导航
    ------------------------------ */
.projects-scroll {
  flex: 1;
  min-height: 0;
  padding: 26px 24px 130px;
}

.独立菜单 {
  position: relative;
  z-index: 20;
  width: min(820px, calc(100% - 32px));
  margin: 18px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 999px;
}

.菜单-tab {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(148, 173, 128, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(248,250,240,.68));
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
  color: #24311c;
  position: relative;
  overflow: hidden;
}

.菜单-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transition: left 500ms ease;
}

.菜单-tab:hover::before {
  left: 100%;
}

.菜单-tab:hover,
.菜单-tab.激活 {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(110, 139, 91, 0.45);
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(250,252,245,.82));
  box-shadow: 0 8px 20px rgba(90,116,74,.12);
}

.菜单-tab::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(90, 116, 74, .82), transparent);
  transition: opacity 500ms ease;
  opacity: 0;
}

.菜单-tab.激活::after {
  opacity: 1;
}

.底部按钮组 {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 16px;
  z-index: 1000;
  opacity: 1;
  pointer-events: auto;
  width: fit-content;
}

.底部-显示 {
  display: inline-block;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(123, 149, 103, 0.35);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(240,245,231,.95));
  box-shadow: 0 12px 32px rgba(110,139,91,.15), inset 0 1px 0 rgba(255,255,255,.5);
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #24311c;
  cursor: pointer;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  position: relative;
  z-index: 1001;
  overflow: hidden;
}

.底部-显示::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.6), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.底部-显示:hover::before {
  opacity: 1;
}

.底部-显示:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(88, 116, 70, 0.50);
  background: linear-gradient(180deg, rgba(235,243,219,.96), rgba(250,251,244,.98));
  box-shadow: 0 18px 42px rgba(90,116,74,.18), inset 0 1px 0 rgba(255,255,255,.6);
}

.壁纸-退出 {
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(123, 149, 103, 0.35);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(240,245,231,.95));
  box-shadow: 0 12px 32px rgba(110,139,91,.15), inset 0 1px 0 rgba(255,255,255,.5);
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #24311c;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.壁纸-退出::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.6), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.壁纸-退出:hover::before {
  opacity: 1;
}

.壁纸-退出:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(88, 116, 70, 0.50);
  background: linear-gradient(180deg, rgba(235,243,219,.96), rgba(250,251,244,.98));
  box-shadow: 0 18px 42px rgba(90,116,74,.18), inset 0 1px 0 rgba(255,255,255,.6);
}

.panel-projects:not(.wallpaper-信息-展示) .壁纸-退出 {
  display: none;
}

.panel-projects.wallpaper-信息-展示 .底部-显示 {
  display: none;
}

.panel-projects.wallpaper-信息-展示 .壁纸-退出 {
  display: inline-block;
}

@keyframes 显示壁纸-脉动 {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.98); }
}

.独立菜单-弹出 {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) !important;
  z-index: 18;
  width: calc(100% - 40px);
  max-width: 720px;
  margin: 0;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(131, 158, 111, 0.28);
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(90,116,74,.10);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease !important;
  animation: none !important;
}

.独立菜单-弹出.打开 {
  opacity: 1 !important;
  pointer-events: auto;
  transform: translateX(-50%) !important;
}

.独立菜单-弹出.关闭中 {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) !important;
}

.独立菜单-弹出:empty {
  display: none;
}

.独立菜单-弹出.关闭中 {
  opacity: 0;
  transform: translateY(-8px) scale(.985);
  pointer-events: none;
}

.菜单-label {
  display: block;
  margin-bottom: 14px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(49, 70, 38, 0.78);
  text-transform: uppercase;
}

.菜单-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.link-按钮 {
  min-width: 112px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(123, 149, 103, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(240,245,231,.95));
  box-shadow: 0 8px 18px rgba(110,139,91,.1), inset 0 1px 0 rgba(255,255,255,.5);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  position: relative;
  overflow: hidden;
}

.link-按钮::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: left 500ms ease;
}

.link-按钮:hover::before {
  left: 100%;
}

.link-按钮:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(88, 116, 70, 0.46);
  background: linear-gradient(180deg, rgba(235,243,219,.96), rgba(250,251,244,.98));
  box-shadow: 0 14px 24px rgba(90,116,74,.14), inset 0 1px 0 rgba(255,255,255,.6);
}



.壁纸-信息 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  padding: 32px 40px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(235,243,219,.94), rgba(250,251,244,.92));
  border: 1px solid rgba(131, 158, 111, 0.28);
  box-shadow: 0 24px 60px rgba(67, 86, 43, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms ease, transform 420ms cubic-bezier(.2,.8,.2,1);
  z-index: 50;
}

.壁纸-信息-内容 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #24311c;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.壁纸-信息-副标题 {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #59654d;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

.壁纸-信息-关闭 {
  display: block;
  width: fit-content;
  margin: 24px auto 0;
  min-height: 46px;
  padding: 0 28px;
  border: 1px solid rgba(123, 149, 103, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(240,245,231,.95));
  box-shadow: 0 8px 18px rgba(110,139,91,.1), inset 0 1px 0 rgba(255,255,255,.5);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #24311c;
  cursor: pointer;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  position: relative;
  overflow: hidden;
}

.壁纸-信息-关闭::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: left 500ms ease;
}

.壁纸-信息-关闭:hover::before {
  left: 100%;
}

.壁纸-信息-关闭:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(88, 116, 70, 0.46);
  background: linear-gradient(180deg, rgba(235,243,219,.96), rgba(250,251,244,.98));
  box-shadow: 0 14px 24px rgba(90,116,74,.14), inset 0 1px 0 rgba(255,255,255,.6);
}

.toolbar-flyout,
.content-group,
.content-card,
.dock,
.back-to-top {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,240,.9));
  border: 1px solid rgba(112, 136, 92, 0.26);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.toolbar-flyout,
.content-group,
.content-card {
  border-radius: var(--radius-xl);
}

/* ------------------------------
   第二页内容区
   ------------------------------ */
.projects-anchor {
  height: 14px;
}

.projects-layout {
  width: min(var(--content-width), 100%);
  margin-left: auto;
  margin-right: auto;
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 0;
  transition: margin-top 500ms cubic-bezier(.25,.1,.25,1);
  opacity: 0.9;
}

.content-stack.有菜单打开 {
  margin-top: 120px;
}

.content-group {
  padding: 24px 22px 26px;
  scroll-margin-top: 120px;
}

.group-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  text-align: center;
}

.group-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(65, 84, 47, 0.65);
  text-transform: uppercase;
}

.group-heading h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #20301a;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--card-width), 100%), var(--card-width)));
  justify-content: center;
  gap: var(--card-gap);
}

.content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 12px 14px;
  overflow: hidden;
  text-align: center;
  color: #1e2b18;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: left 600ms ease;
  z-index: 1;
}

.content-card:hover::before {
  left: 100%;
}

.content-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 2px);
  border: 1px solid rgba(255,255,255,.55);
  pointer-events: none;
  z-index: 1;
}

.content-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(110, 139, 91, 0.38);
  box-shadow: 0 24px 34px rgba(77, 100, 55, 0.16);
}

.content-card-link {
  cursor: pointer;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  background: linear-gradient(180deg, rgba(238,246,225,.98), rgba(252,253,248,.94));
  box-shadow: inset 0 0 0 1px rgba(159, 185, 136, 0.26), 0 10px 18px rgba(90, 116, 74, 0.08);
  overflow: hidden;
}

.card-icon img {
  max-width: 40px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  position: absolute;
}

.card-icon svg {
  width: 40px;
  height: 40px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-video svg,
.icon-music svg,
.icon-support svg,
.icon-site svg,
.icon-tool svg,
.icon-design svg {
  stroke: #4f6d56;
}

.content-card h4,
.content-card p {
  margin-inline: auto;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.content-card h4 {
  max-width: 100%;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.22;
  white-space: normal;
  text-wrap: balance;
}

.content-card p {
  max-width: 100%;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-soft);
}

/* ------------------------------
   固定辅助控件
   ------------------------------ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 18;
  min-width: 124px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.back-to-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transition: left 500ms ease;
}

.back-to-top:hover::before {
  left: 100%;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 24px 34px rgba(77, 100, 55, 0.16);
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 14;
  display: inline-flex;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
}

.dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(96, 112, 82, 0.28);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.dot:hover {
  transform: scale(1.1);
}

.dot.active {
  background: #6e8b5b;
  box-shadow: 0 0 0 5px rgba(110, 139, 91, 0.16);
}

/* ------------------------------
    响应式
    ------------------------------ */
@media (max-width: 960px) {
  .独立菜单 {
    width: calc(100% - 24px);
  }

  .projects-scroll {
    padding-inline: 18px;
  }

  .content-group {
    padding-inline: 18px;
  }
}

@media (max-width: 760px) {
  .独立菜单 {
    width: calc(100% - 24px);
  }

  .独立菜单-弹出 {
    width: calc(100% - 24px);
  }

  .菜单-tab {
    min-height: 48px;
    padding: 0 18px;
    flex: 1 1 fit-content;
    min-width: 80px;
  }

  .独立菜单-弹出 {
    width: min(calc(100vw - 24px), 560px);
    max-width: calc(100vw - 24px);
    padding-inline: 14px;
  }

  .菜单-links {
    max-width: 100%;
  }

  .link-按钮 {
    flex: 1 1 120px;
    min-width: 0;
  }

  .projects-scroll {
    padding-bottom: 170px;
  }

  .content-grid {
    gap: 14px;
  }

  .content-card {
    padding-inline: 14px;
  }

  .back-to-top {
    right: 16px;
    bottom: 88px;
  }
}

@media (max-width: 560px) {
  .hero-content {
    width: min(100vw - 26px, 720px);
    padding: 28px 16px;
  }

  .我的头像-外环 {
    width: 144px;
    height: 144px;
  }

  .hero-intro {
    padding: 18px 18px;
  }

  .projects-scroll {
    padding: 20px 14px 110px;
  }

  .content-group {
    padding: 18px 14px 20px;
  }

  .group-heading h2 {
    font-size: 1.42rem;
  }

  .content-card {
    padding-top: 14px;
  }

  .底部按钮组 {
    bottom: 30px;
  }

  .底部-显示,
  .壁纸-退出 {
    min-height: 42px;
    padding: 0 18px;
    font-size: 0.9rem;
  }
}

/* ------------------------------
   减少动态效果时的降级
   ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
