/* ==========================================================================
   落叶归根 · 个人站样式
   柔和二次元风格：暖白底、大圆角、细腻阴影、樱花粉点缀
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #fdfbf9;
  --bg-soft: #f6f1ec;
  --nav-bg: rgba(253, 251, 249, 0.78);
  --surface: #ffffff;
  --surface-2: #fbf7f4;

  --text: #3a3340;
  --text-muted: #8a8290;
  --text-faint: #b6adba;

  --border: rgba(58, 51, 64, 0.08);
  --border-strong: rgba(58, 51, 64, 0.14);

  --accent: #e5645a;
  --accent-deep: #c94b41;
  --accent-soft: #fdf1ef;
  --pink: #f2a7b8;
  --mint: #8ec5c0;

  --shadow-sm: 0 1px 2px rgba(58, 51, 64, 0.04), 0 2px 8px rgba(58, 51, 64, 0.04);
  --shadow: 0 2px 4px rgba(58, 51, 64, 0.04), 0 12px 32px rgba(58, 51, 64, 0.07);
  --shadow-lg: 0 4px 10px rgba(58, 51, 64, 0.05), 0 26px 64px rgba(58, 51, 64, 0.11);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --maxw: 1120px;
  --nav-h: 64px;

  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, serif;
}

[data-theme="dark"] {
  --bg: #17141c;
  --bg-soft: #1d1924;
  --nav-bg: rgba(23, 20, 28, 0.76);
  --surface: #211d29;
  --surface-2: #28232f;

  --text: #ece8f1;
  --text-muted: #a79fb0;
  --text-faint: #736b7d;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --accent: #ff857c;
  --accent-deep: #ffa39b;
  --accent-soft: rgba(255, 133, 124, 0.12);
  --pink: #e79bb0;
  --mint: #7fb8b3;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.24);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.34), 0 26px 64px rgba(0, 0, 0, 0.48);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

a:hover {
  color: var(--accent-deep);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- 背景装饰 ---------- */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-deco::before,
.bg-deco::after {
  content: "";
  position: absolute;
  width: 62vw;
  height: 62vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
}

.bg-deco::before {
  top: -14vw;
  left: -16vw;
  background: radial-gradient(circle, rgba(242, 167, 184, 0.34) 0%, rgba(242, 167, 184, 0) 68%);
}

.bg-deco::after {
  top: 46vh;
  right: -20vw;
  background: radial-gradient(circle, rgba(142, 197, 192, 0.26) 0%, rgba(142, 197, 192, 0) 68%);
}

[data-theme="dark"] .bg-deco::before {
  background: radial-gradient(circle, rgba(242, 167, 184, 0.16) 0%, rgba(242, 167, 184, 0) 68%);
}

[data-theme="dark"] .bg-deco::after {
  background: radial-gradient(circle, rgba(142, 197, 192, 0.14) 0%, rgba(142, 197, 192, 0) 68%);
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.brand span {
  color: var(--accent);
}

.nav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav__links a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.theme-toggle {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  transform: rotate(-15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* ---------- 首页 Hero ---------- */
.hero {
  padding: 56px 0 24px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.hero__id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
}

.hero__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow), 0 0 0 3px var(--accent-soft);
}

.hero__id-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.hero__id-sub {
  font-size: 13px;
  color: var(--text-faint);
}

.hero__title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-muted);
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(229, 100, 90, 0.3);
}

.btn--primary:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(229, 100, 90, 0.38);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- 轮播 ---------- */
.slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}

.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slider__slide.is-active {
  opacity: 1;
}

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

.slider__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
}

.slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: width 0.35s ease, background 0.35s ease;
}

.slider__dot.is-active {
  width: 26px;
  background: #fff;
}

.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  color: #3a3340;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 3;
}

.slider:hover .slider__arrow,
.slider__arrow:focus-visible {
  opacity: 1;
}

.slider__arrow:hover {
  background: #fff;
}

.slider__arrow--prev {
  left: 12px;
}

.slider__arrow--next {
  right: 12px;
}

.slider__arrow svg {
  width: 16px;
  height: 16px;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card--pad {
  padding: 32px 36px;
}

/* ---------- 通用标题 ---------- */
.section-head {
  margin-bottom: 28px;
}

.section-head__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head__title {
  margin-top: 6px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head__desc {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- 能力清单 ---------- */
.skills {
  display: grid;
  gap: 14px;
}

.skill {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.skill__num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.skill__text {
  font-size: 16px;
  line-height: 1.7;
}

.skill--quote {
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
  border-color: transparent;
}

.skill--quote .skill__text {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}

/* ---------- 页头 ---------- */
.page-head {
  padding: 52px 0 8px;
  text-align: center;
}

.page-head__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-head__desc {
  margin-top: 10px;
  color: var(--text-muted);
}

/* ---------- 引言横幅 ---------- */
.banner {
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fdf1ef 0%, #fbf3f6 48%, #eef6f5 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .banner {
  background: linear-gradient(135deg, rgba(255, 133, 124, 0.13) 0%, rgba(231, 155, 176, 0.1) 48%, rgba(127, 184, 179, 0.1) 100%);
}

.banner::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 167, 184, 0.4), transparent 68%);
  pointer-events: none;
}

.banner__title {
  position: relative;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.banner__quote {
  position: relative;
  margin-top: 20px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 2;
  color: var(--text-muted);
}

/* ---------- 两栏内容 ---------- */
.split {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: start;
}

.split__aside {
  display: grid;
  gap: 20px;
}

.panel {
  padding: 32px 34px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.panel__title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--pink));
}

/* ---------- 诗歌排版 ---------- */
.poem {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 2.15;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--text);
}

.poem p {
  margin: 0 0 1.5em;
}

.poem p:last-child {
  margin-bottom: 0;
}

.poem__author {
  margin-top: 24px;
  text-align: right;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-faint);
}

.quote {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--text);
}

.quote__by {
  margin-top: 12px;
  text-align: right;
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- 资料列表 ---------- */
.facts {
  display: grid;
  gap: 2px;
}

.facts__row {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
}

.facts__row:last-child {
  border-bottom: none;
}

.facts__key {
  flex-shrink: 0;
  width: 52px;
  color: var(--text-faint);
}

.facts__val {
  color: var(--text);
}

/* ---------- 精选图片 ---------- */
.gallery-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gallery-mini img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: zoom-in;
}

.gallery-mini img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.gallery-mini .span-2 {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-mini .span-1 {
  aspect-ratio: 3 / 4;
}

/* ---------- 作品网格 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.work {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work:hover img {
  transform: scale(1.07);
}

.work__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 20, 26, 0.55), transparent 58%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.work:hover .work__veil {
  opacity: 1;
}

.work__cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.work:hover .work__cap {
  opacity: 1;
  transform: none;
}

/* ---------- 二维码卡片 ---------- */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.qr-card img {
  width: 168px;
  height: 168px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px;
}

.qr-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.qr-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.qr-card__dot--wechat {
  background: #07c160;
}

.qr-card__dot--qq {
  background: #12b7f5;
}

.qr-card__hint {
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 32px;
  background: rgba(22, 17, 24, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: grid;
  animation: fade-in 0.25s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox__img {
  max-width: min(1040px, 92vw);
  max-height: 84vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: rotate(90deg);
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 72px;
  padding: 48px 0 40px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__brand {
  font-size: 20px;
  font-weight: 800;
}

.footer__brand span {
  color: var(--accent);
}

.footer__line {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__nav a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__copy {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- 滚动入场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__media {
    order: -1;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .slider {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  .container,
  .nav__inner,
  .footer__inner {
    padding: 0 18px;
  }

  .section {
    padding: 44px 0;
  }

  .nav__links a {
    padding: 7px 10px;
    font-size: 14px;
  }

  .brand {
    font-size: 20px;
  }

  .nav__inner {
    gap: 10px;
  }

  .card--pad,
  .panel {
    padding: 24px 20px;
  }

  .banner {
    padding: 36px 24px;
  }

  .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .hero {
    padding: 32px 0 16px;
  }
}

@media (max-width: 480px) {
  .nav__links a {
    padding: 6px 8px;
    font-size: 13px;
  }

  .hero__actions .btn {
    flex: 1;
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
    gap: 20px;
  }
}

/* ---------- 无障碍 / 打印 ---------- */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .nav,
  .theme-toggle,
  .slider__arrow,
  .slider__dots,
  .bg-deco {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
