/* ==========================================================================
   Myrong · 作品集 —— 粉红玻璃拟态 / Pink Glassmorphism
   纯手写 CSS，无框架、无构建、无外部字体依赖
   结构：1 变量  2 基础  3 背景光斑  4 头部  5 首屏  6 章节  7 作品卡
        8 名片  9 关于  10 联系  11 页脚  12 灯箱  13 404  14 动效  15 响应式
   ========================================================================== */

/* ---------------- 1. 变量 ---------------- */
:root {
  --bg: #fff4f8;
  --bg-2: #fdeef7;

  --ink: #3a2430;
  --ink-soft: rgba(58, 36, 48, .74);
  --ink-faint: rgba(58, 36, 48, .48);

  --rose: #e0477f;
  --rose-deep: #b41f57;
  --rose-soft: #ffb6d0;

  --glass: rgba(255, 255, 255, .55);
  --glass-soft: rgba(255, 255, 255, .34);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-brd: rgba(255, 255, 255, .78);
  --glass-hi: rgba(255, 255, 255, .9);
  --glass-shadow: 0 22px 60px -24px rgba(186, 54, 106, .32);
  --line: rgba(178, 46, 96, .14);

  --blur: 22px;
  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 13px;

  --sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
          "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC",
           "Georgia", "Times New Roman", serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="dark"] {
  --bg: #170f16;
  --bg-2: #1d1220;

  --ink: #fceef5;
  --ink-soft: rgba(252, 238, 245, .8);
  --ink-faint: rgba(252, 238, 245, .54);

  --rose: #ff85b6;
  --rose-deep: #ffa8cb;
  --rose-soft: #ff5f9e;

  --glass: rgba(255, 255, 255, .07);
  --glass-soft: rgba(255, 255, 255, .045);
  --glass-strong: rgba(255, 255, 255, .12);
  --glass-brd: rgba(255, 255, 255, .14);
  --glass-hi: rgba(255, 255, 255, .18);
  --glass-shadow: 0 26px 70px -26px rgba(0, 0, 0, .78);
  --line: rgba(255, 255, 255, .13);
}

/* ---------------- 2. 基础 ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(165deg, #fff8fb 0%, var(--bg) 38%, var(--bg-2) 72%, #f9f0fd 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

[data-theme="dark"] body {
  background: linear-gradient(165deg, #1b1019 0%, var(--bg) 42%, var(--bg-2) 74%, #150d1c 100%);
}

body::after {
  /* 细腻噪点，避免大面积渐变出现色带 */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: .01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s var(--ease), opacity .3s var(--ease), letter-spacing .35s var(--ease);
}

img { max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(224, 71, 127, .22); color: var(--rose-deep); }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.05rem, 4vw, 2.6rem);
}

.skip {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: .8rem;
  transition: top .3s var(--ease);
}
.skip:focus { top: 14px; }

/* ---------------- 3. 背景光斑 ---------------- */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 14% 12%, rgba(255, 150, 190, .80), transparent 100%),
    radial-gradient(closest-side at 86% 16%, rgba(206, 172, 255, .62), transparent 100%),
    radial-gradient(closest-side at 74% 82%, rgba(255, 198, 170, .70), transparent 100%),
    radial-gradient(closest-side at 18% 78%, rgba(255, 168, 206, .62), transparent 100%),
    radial-gradient(closest-side at 52% 48%, rgba(255, 226, 236, .55), transparent 100%);
  background-size: 62% 62%, 56% 56%, 66% 66%, 54% 54%, 70% 70%;
  background-repeat: no-repeat;
  background-position: 0 0, 100% 0, 92% 100%, 0 92%, 30% 34%;
  filter: blur(38px) saturate(112%);
  animation: drift 34s ease-in-out infinite alternate;
  will-change: transform;
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(closest-side at 14% 12%, rgba(196, 44, 108, .55), transparent 100%),
    radial-gradient(closest-side at 86% 16%, rgba(112, 70, 190, .48), transparent 100%),
    radial-gradient(closest-side at 74% 82%, rgba(176, 74, 92, .42), transparent 100%),
    radial-gradient(closest-side at 18% 78%, rgba(124, 46, 130, .45), transparent 100%),
    radial-gradient(closest-side at 52% 48%, rgba(96, 38, 76, .40), transparent 100%);
  background-size: 62% 62%, 56% 56%, 66% 66%, 54% 54%, 70% 70%;
  background-repeat: no-repeat;
  background-position: 0 0, 100% 0, 92% 100%, 0 92%, 30% 34%;
  opacity: .95;
}

@keyframes drift {
  0%   { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  50%  { transform: translate3d(1.5%, 1.5%, 0) scale(1.05); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); }
}

main, .site-head, .site-foot, .skip { position: relative; z-index: 1; }

/* ---------------- 4. 头部 ---------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-block: clamp(.75rem, 1.6vw, 1.1rem);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 2vw, 1.8rem);
  min-width: 0;
  padding: .5rem .55rem .5rem 1.05rem;
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(165%);
  backdrop-filter: blur(var(--blur)) saturate(165%);
  box-shadow: 0 12px 34px -18px rgba(186, 54, 106, .35),
              inset 0 1px 0 var(--glass-hi);
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}

[data-theme="dark"] .head-inner {
  /* 深色下用暗色玻璃，压住正文时字才不打架 */
  background: rgba(28, 17, 26, .62);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 14px 40px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--rose);
  flex-shrink: 0;
  transition: transform .8s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(72deg); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.brand-text small {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.15rem, .8vw, .45rem);
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  position: relative;
  padding: .42rem .78rem;
  border-radius: 999px;
  font-size: .76rem;
  letter-spacing: .12em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav a:hover { background: var(--glass-soft); color: var(--rose-deep); }
.nav a.is-active {
  color: var(--rose-deep);
  background: rgba(224, 71, 127, .1);
}
[data-theme="dark"] .nav a.is-active { background: rgba(255, 133, 182, .14); }

.theme-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--glass-brd);
  border-radius: 50%;
  background: var(--glass-soft);
  color: var(--rose-deep);
  cursor: pointer;
  transition: background .3s var(--ease), transform .4s var(--ease-out), border-color .3s var(--ease);
}
.theme-btn:hover { background: var(--glass-strong); transform: rotate(-18deg) scale(1.06); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-btn .icon-moon { display: block; }

/* ---------------- 5. 首屏 ---------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  padding-block: clamp(2.4rem, 6vw, 4.6rem) clamp(2.6rem, 6vw, 5rem);
}

.hero-copy {
  position: relative;
  padding: clamp(1.7rem, 4vw, 3.2rem);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--glass-strong), var(--glass-soft) 62%, var(--glass));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
  backdrop-filter: blur(var(--blur)) saturate(170%);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.5rem;
  padding: .38rem .9rem .38rem .72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
[data-theme="dark"] .eyebrow { background: rgba(255, 255, 255, .06); }
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(224, 71, 127, .16);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(224, 71, 127, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(224, 71, 127, .04); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.7rem);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.08;
  margin-bottom: .35em;
  background: linear-gradient(120deg, var(--ink) 26%, var(--rose-deep) 76%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .en {
  display: block;
  margin-top: 1.15rem;
  font-family: var(--sans);
  font-size: clamp(.66rem, 1.15vw, .82rem);
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--rose-deep);
  -webkit-text-fill-color: var(--rose-deep);
  opacity: .85;
}

.lede {
  font-size: clamp(.9rem, 1.15vw, 1rem);
  line-height: 2.05;
  color: var(--ink-soft);
  max-width: 34em;
}
.lede-wide {
  max-width: 46em;
  margin-top: 2.2rem;
  font-size: .9rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.9rem;
}
.hero-meta li {
  padding: .34rem .82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--ink-soft);
}
[data-theme="dark"] .hero-meta li { background: rgba(255, 255, 255, .05); }

/* 徽记圆盘 */
.sigil-wrap {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--glass-brd);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .85), transparent 58%),
    radial-gradient(circle at 70% 76%, rgba(224, 71, 127, .16), transparent 62%),
    var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow:
    0 30px 70px -26px rgba(186, 54, 106, .42),
    inset 0 1px 0 var(--glass-hi),
    inset 0 -30px 60px -40px rgba(224, 71, 127, .35);
}

[data-theme="dark"] .sigil-wrap {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .16), transparent 58%),
    radial-gradient(circle at 70% 76%, rgba(255, 133, 182, .22), transparent 62%),
    var(--glass);
}

.sigil-wrap::before,
.sigil-wrap::after {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px dashed var(--line);
  pointer-events: none;
}
.sigil-wrap::after {
  inset: -5%;
  border-style: solid;
  border-color: rgba(224, 71, 127, .12);
  animation: halo 6s var(--ease) infinite alternate;
}

@keyframes halo {
  from { transform: scale(1); opacity: .7; }
  to   { transform: scale(1.035); opacity: .25; }
}

.sigil {
  width: 100%;
  height: 100%;
  padding: 15%;
  color: var(--rose);
  overflow: visible;
  transition: transform .6s var(--ease-out);
}

.spin-slow { animation: spin 90s linear infinite; transform-origin: 100px 100px; }
.spin-rev  { animation: spin 64s linear infinite reverse; transform-origin: 100px 100px; }
.breathe   { animation: breathe 7s ease-in-out infinite; transform-origin: 100px 100px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(1.06); opacity: 1; }
}

/* ---------------- 6. 章节通用 ---------------- */
.section { padding-block: clamp(2.8rem, 6vw, 5rem); }

.sec-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .6rem 1.1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.sec-num {
  font-size: .6rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
}

.sec-title {
  font-size: clamp(1.5rem, 3.1vw, 2.25rem);
  font-weight: 500;
  letter-spacing: .03em;
}

.sec-sub {
  margin-left: auto;
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------- 7. 作品卡 ---------------- */
.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 1.8vw, 1.5rem);
}

.work {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.3rem, 2.2vw, 1.8rem);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--glass-strong) 0%, var(--glass-soft) 55%, var(--glass) 100%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(165%);
  backdrop-filter: blur(var(--blur)) saturate(165%);
  box-shadow: 0 16px 44px -26px rgba(186, 54, 106, .38), inset 0 1px 0 var(--glass-hi);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .5s var(--ease);
}

.work::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(closest-side at 50% 0%, rgba(255, 143, 184, .35), transparent 100%);
  transition: opacity .5s var(--ease);
  pointer-events: none;
}

.work:hover,
.work:focus-within {
  transform: translateY(-6px);
  border-color: var(--rose-soft);
  box-shadow: 0 32px 60px -28px rgba(186, 54, 106, .5), inset 0 1px 0 var(--glass-hi);
}
.work:hover::before,
.work:focus-within::before { opacity: 1; }

.work-num {
  position: absolute;
  top: .9rem;
  right: 1.2rem;
  z-index: 0;
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--rose);
  opacity: .16;
  pointer-events: none;
}

.work-emblem {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--rose-deep);
  transition: transform .6s var(--ease-out), color .4s var(--ease);
}
.work:hover .work-emblem { transform: translateY(-2px) scale(1.06); color: var(--rose); }

.work h3 {
  position: relative;
  z-index: 1;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.work-en {
  position: relative;
  z-index: 1;
  margin: .4rem 0 .9rem;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.work-desc {
  position: relative;
  z-index: 1;
  font-size: .84rem;
  line-height: 1.95;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1.3rem;
}
.chips li {
  padding: .22rem .62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  font-size: .58rem;
  letter-spacing: .12em;
  color: var(--ink-soft);
}
[data-theme="dark"] .chips li { background: rgba(255, 255, 255, .05); }

/* 保持 static，好让「进入作品」的覆盖层以整张卡为参照 */
.work-foot { margin-top: auto; position: static; }

.work-go {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--rose-deep);
  font-weight: 500;
}
.work-go svg { width: 26px; height: 10px; transition: transform .4s var(--ease-out); }
.work:hover .work-go svg { transform: translateX(4px); }

/* 整张卡可点 */
.work-go::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.work-alt {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .9rem;
  min-height: 2.1rem;
  margin-top: .85rem;
  padding-top: .7rem;
  border-top: 1px dashed var(--line);
  font-size: .64rem;
  letter-spacing: .06em;
}
.work-alt a { color: var(--ink-faint); }
.work-alt a:hover { color: var(--rose-deep); }
.work-alt.is-empty { border-top-color: transparent; }

/* ---------------- 8. 名片 ---------------- */
.plates {
  display: grid;
  gap: clamp(.8rem, 1.6vw, 1.3rem);
  margin-bottom: clamp(.9rem, 1.8vw, 1.4rem);
}
.plates-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plates-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.plate {
  margin: 0;
  padding: .65rem .65rem .1rem;
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--glass-strong), var(--glass-soft));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  box-shadow: 0 18px 48px -28px rgba(186, 54, 106, .4), inset 0 1px 0 var(--glass-hi);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .4s var(--ease);
}
.plate:hover,
.plate:focus-visible {
  transform: translateY(-4px);
  border-color: var(--rose-soft);
  box-shadow: 0 30px 60px -30px rgba(186, 54, 106, .5), inset 0 1px 0 var(--glass-hi);
}

.plate img {
  display: block;
  width: 100%;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .55);
}
[data-theme="dark"] .plate img { background: rgba(255, 255, 255, .88); }

.plates-3 .plate img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.plate figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem .4rem .7rem;
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
}
.plate figcaption b {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .1em;
}
.plate figcaption span {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
}

/* ---------------- 9. 关于 ---------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}

.about > div {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, var(--glass-strong), var(--glass-soft));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(165%);
  backdrop-filter: blur(var(--blur)) saturate(165%);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi);
}

.about p {
  font-size: .92rem;
  line-height: 2.15;
  color: var(--ink-soft);
}
.about p:first-child {
  font-size: 1rem;
  color: var(--ink);
  padding-left: 1.15rem;
  border-left: 2px solid var(--rose);
  margin-bottom: 1.5em;
}

.aside-card {
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--glass), var(--glass-soft));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  box-shadow: 0 18px 48px -30px rgba(186, 54, 106, .4), inset 0 1px 0 var(--glass-hi);
}

.aside-card h3 {
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 1.1rem;
}

.aside-card li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .62rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .78rem;
  color: var(--ink-soft);
}
.aside-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-card li em {
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--rose);
  white-space: nowrap;
}

/* ---------------- 10. 联系 ---------------- */
.contact-line {
  position: relative;
  padding: clamp(2rem, 4.4vw, 3rem) clamp(1.2rem, 4vw, 3rem);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-xl);
  background:
    radial-gradient(closest-side at 50% 0%, rgba(255, 255, 255, .9), transparent 100%),
    linear-gradient(150deg, var(--glass-strong), var(--glass-soft));
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 26px 64px -30px rgba(186, 54, 106, .45), inset 0 1px 0 var(--glass-hi);
  text-align: center;
  overflow: hidden;
}

/* 面板里两团柔光，避免大块玻璃显得空 */
.contact-line::before,
.contact-line::after {
  content: "";
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(34px);
}
.contact-line::before {
  left: -10%;
  top: -30%;
  background: radial-gradient(closest-side, rgba(255, 155, 196, .55), transparent 100%);
}
.contact-line::after {
  right: -12%;
  bottom: -40%;
  background: radial-gradient(closest-side, rgba(196, 168, 255, .45), transparent 100%);
}
[data-theme="dark"] .contact-line::before {
  background: radial-gradient(closest-side, rgba(255, 84, 148, .32), transparent 100%);
}
[data-theme="dark"] .contact-line::after {
  background: radial-gradient(closest-side, rgba(126, 84, 220, .3), transparent 100%);
}

[data-theme="dark"] .contact-line {
  background:
    radial-gradient(closest-side at 50% 0%, rgba(255, 133, 182, .16), transparent 100%),
    linear-gradient(150deg, var(--glass-strong), var(--glass-soft));
}

.contact-mail {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.4vw, 2.15rem);
  letter-spacing: .03em;
  color: var(--ink);
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rose);
}
.contact-mail:hover { color: var(--rose-deep); letter-spacing: .07em; }

/* ---------------- 11. 页脚 ---------------- */
.site-foot {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}

.foot-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--ink-faint);
}

.foot-seal { width: 20px; height: 20px; color: var(--rose); flex-shrink: 0; }
.spacer { flex: 1; }

/* ---------------- 12. 灯箱 ---------------- */
.lb {
  border: 0;
  padding: 0;
  max-width: 94vw;
  max-height: 94vh;
  background: transparent;
  color: var(--ink);
}
.lb::backdrop {
  background: rgba(52, 16, 34, .55);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}

.lb-body {
  position: relative;
  padding: .8rem .8rem .2rem;
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55), inset 0 1px 0 var(--glass-hi);
}

.lb img {
  display: block;
  max-width: min(88vw, 1080px);
  max-height: 76vh;
  width: auto;
  border-radius: var(--r-md);
}

.lb-close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--glass-brd);
  border-radius: 50%;
  background: var(--glass-strong);
  color: var(--rose-deep);
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform .35s var(--ease-out), background .3s var(--ease);
}
.lb-close:hover { transform: rotate(90deg) scale(1.08); }
.lb-close svg { width: 15px; height: 15px; }

.lb-cap {
  margin: 0;
  padding: .8rem .4rem .7rem;
  text-align: center;
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------- 13. 404 ---------------- */
.err-wrap {
  min-height: 78vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding-block: clamp(3rem, 10vh, 7rem);
}
.err-wrap .eyebrow { margin-bottom: 1.5rem; }
.err-wrap .eyebrow::before { display: none; }
.err-wrap h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  margin-bottom: 1.2rem;
}
.err-wrap .lede { text-align: center; margin-inline: auto; max-width: 32em; }
.err-actions { margin-top: 2.2rem; }

.err-actions a {
  display: inline-block;
  padding: .7rem 1.6rem;
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  background: var(--glass);
  font-size: .72rem;
  letter-spacing: .16em;
  box-shadow: 0 12px 30px -18px rgba(186, 54, 106, .5);
}
.err-actions a:hover { border-color: var(--rose-soft); color: var(--rose-deep); }

/* ---------------- 14. 入场动画 ---------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity .9s var(--ease),
    transform .9s var(--ease-out),
    filter .9s var(--ease);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

html.js [data-reveal][data-delay="1"] { transition-delay: .08s; }
html.js [data-reveal][data-delay="2"] { transition-delay: .16s; }
html.js [data-reveal][data-delay="3"] { transition-delay: .24s; }

/* ---------------- 15. 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.4rem, 4vw, 2.4rem);
  }
  .sigil-wrap { width: min(74%, 340px); order: -1; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 5.2rem; }

  .head-inner {
    gap: .5rem;
    padding: .42rem .45rem .42rem .8rem;
  }
  .brand-text small { display: none; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-text b { font-size: .92rem; }

  .nav { gap: .1rem; }
  .nav a { padding: .38rem .55rem; font-size: .66rem; letter-spacing: .06em; }
  .theme-btn { width: 32px; height: 32px; }
  .theme-btn svg { width: 15px; height: 15px; }

  .hero { padding-block: 1.2rem 2rem; }
  .hero-copy { padding: 1.35rem 1.15rem 1.6rem; border-radius: var(--r-lg); }
  .hero h1 { font-size: clamp(2.1rem, 10.5vw, 3rem); }
  .hero h1 .en { letter-spacing: .3em; }
  .lede { font-size: .86rem; line-height: 1.95; }
  .hero-meta li { font-size: .62rem; padding: .28rem .68rem; }
  .sigil-wrap { width: min(76%, 268px); }

  .works { grid-template-columns: minmax(0, 1fr); }
  .work { padding: 1.25rem 1.15rem 1.2rem; }
  .work-alt.is-empty { display: none; }

  .plates-2, .plates-3 { grid-template-columns: minmax(0, 1fr); }
  .plates-3 .plate img { aspect-ratio: auto; }

  .sec-sub { display: none; }
  .about > div { padding: 1.35rem 1.15rem; border-radius: var(--r-lg); }
  .about p { font-size: .87rem; line-height: 2.05; }
  .about p:first-child { font-size: .94rem; }

  .contact-mail { font-size: clamp(1rem, 5.4vw, 1.5rem); }

  .foot-inner { font-size: .62rem; gap: .35rem .9rem; }
  .foot-inner .spacer { display: none; }
}

@media (max-width: 400px) {
  .nav a { padding: .34rem .42rem; font-size: .62rem; letter-spacing: .02em; }
  .brand { gap: .5rem; }
  .hero h1 { font-size: 2rem; }
  .work-num { font-size: 2rem; }
}

/* ---------------- 打印 / 降低动效 ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; filter: none; }
}

@media print {
  body::before, body::after, .site-head, .theme-btn, .lb { display: none !important; }
  body { background: #fff; color: #000; }
  .work, .plate, .hero-copy, .aside-card, .contact-line, .about > div {
    background: #fff !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
