/* ============================================================
   赵宇阳 · 个人主页  样式表
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --bg: #f7f4ee;
  --bg-2: #efeae1;
  --surface: #fffdf8;
  --surface-2: #faf7f0;
  --ink: #191713;
  --ink-2: #3d3933;
  --muted: #7a736a;
  --line: #e6dfd3;
  --line-2: #d5cbba;
  --accent: #a8482a;
  --accent-2: #c05f3c;
  --accent-soft: #f3e3d9;
  --sage: #6f7f66;
  --shadow-sm: 0 1px 2px rgba(32, 26, 18, .04), 0 6px 20px rgba(32, 26, 18, .05);
  --shadow-lg: 0 30px 70px -30px rgba(48, 38, 26, .45);
  --radius: 20px;
  --maxw: 1120px;
  --nav-h: 68px;
  --font-body: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "Noto Serif SC", STSong, SimSun, serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211;
    --bg-2: #191817;
    --surface: #1c1a18;
    --surface-2: #211f1c;
    --ink: #f3efe7;
    --ink-2: #ded7cb;
    --muted: #a49c8f;
    --line: #2e2b26;
    --line-2: #3d3831;
    --accent: #e08a63;
    --accent-2: #eaa07d;
    --accent-soft: #33231c;
    --sage: #9aa88f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
  }
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.skip {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* 背景装饰 */
.bg-deco {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(820px 520px at 88% -8%, rgba(168, 72, 42, .13), transparent 62%),
    radial-gradient(680px 520px at -6% 18%, rgba(111, 127, 102, .12), transparent 62%),
    radial-gradient(700px 700px at 50% 108%, rgba(168, 72, 42, .07), transparent 65%);
}
header, main, footer { position: relative; z-index: 1; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }

.brand-mark {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  border-radius: 11px;
  font-family: var(--font-display); font-size: 19px; line-height: 1;
  box-shadow: 0 6px 16px -6px rgba(168, 72, 42, .8);
  transform: rotate(-3deg);
}
.brand-mark.sm { width: 30px; height: 30px; font-size: 16px; border-radius: 9px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 15.5px; letter-spacing: .02em; font-weight: 600; }
.brand-text i {
  font-style: normal; font-size: 9.5px; letter-spacing: .18em;
  color: var(--muted); text-transform: uppercase; margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 13px; border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  transform: translateX(-50%);
}

.icon-btn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink-2);
  cursor: pointer; transition: .2s;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 84px) 0 clamp(30px, 5vw, 60px);
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 8.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -.01em;
  font-weight: 600;
}

.hero-en {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: .42em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-tagline {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink-2);
  line-height: 1.6;
}
.hero-tagline::before {
  content: ""; display: block; width: 34px; height: 2px;
  background: var(--accent); margin-bottom: 18px; border-radius: 2px;
}

.hero-intro { margin-top: 18px; max-width: 33em; color: var(--ink-2); font-size: 15.5px; }
.hero-intro p { margin: 0 0 6px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .6); }

.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

.btn-sm { padding: 8px 14px; font-size: 13px; }

.status {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 30px; padding: 7px 15px 7px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: 13px; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.pulse {
  position: relative; width: 7px; height: 7px; border-radius: 50%;
  background: #57a05f;
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #57a05f; animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3); opacity: 0; } }

/* 头像 */
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 400px; }
.hero-art::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 1px solid var(--line-2); border-radius: 34px; transform: rotate(2deg);
}
.portrait {
  position: relative; aspect-ratio: 1 / 1.06; overflow: hidden;
  border-radius: 30px; background: var(--surface-2);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.6deg);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.portrait:hover { transform: rotate(0deg) translateY(-4px); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.portrait:hover img { transform: scale(1.04); }

.float-card {
  position: absolute; left: -6%; bottom: 8%;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 18px 12px 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.float-ico svg { width: 18px; height: 18px; }
.float-text { display: flex; flex-direction: column; line-height: 1.35; }
.float-text b { font-size: 13.5px; font-weight: 600; }
.float-text span { font-size: 11.5px; color: var(--muted); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1px solid var(--line-2); border-radius: 999px;
  display: grid; place-items: start center; padding-top: 7px;
}
.scroll-hint span {
  width: 3px; height: 7px; border-radius: 3px; background: var(--muted);
  animation: scrolldot 2s ease-in-out infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 区块通用 ---------- */
.sec { padding: clamp(52px, 7vw, 88px) 0; scroll-margin-top: var(--nav-h); }

.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.sec-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--accent); padding-top: 6px;
}
.sec-head h2 {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; letter-spacing: .01em;
}
.sec-line { flex: 1; height: 1px; background: var(--line); min-width: 40px; margin-top: 4px; }
.sec-hint { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

.about-text p { margin: 0 0 18px; font-size: clamp(15.5px, 1.6vw, 17px); color: var(--ink-2); line-height: 1.95; }
.about-text p:first-child { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink); line-height: 1.85; }

.id-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.id-card::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 140px; height: 140px;
  border-radius: 50%; background: var(--accent-soft); opacity: .55; filter: blur(8px);
}
.id-card-top { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.id-card-top img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.id-name { font-family: var(--font-display); font-size: 20px; line-height: 1.3; }
.id-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--muted); margin-top: 3px; }
.id-rows { margin: 16px 0 0; }
.id-rows > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 13.5px; }
.id-rows dt { color: var(--muted); flex: none; }
.id-rows dd { margin: 0; text-align: right; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--muted); letter-spacing: .04em; text-align: center;
}

/* ---------- 联系方式 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.contact-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 16px; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  cursor: pointer; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, color-mix(in srgb, var(--accent) 7%, transparent));
  opacity: 0; transition: opacity .3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.contact-card:hover::before { opacity: 1; }

.cc-icon {
  width: 36px; height: 36px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  transition: transform .3s;
}
.cc-icon svg { width: 18px; height: 18px; }
.contact-card:hover .cc-icon { transform: rotate(-6deg) scale(1.05); }
.cc-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.cc-label { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.cc-value { font-size: 13px; font-weight: 500; margin-top: 3px; overflow-wrap: anywhere; }
.cc-copy {
  position: absolute; right: 12px; top: 10px;
  font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
  background: var(--surface);
  opacity: 0; transition: .25s;
}
.contact-card:hover .cc-copy, .contact-card:focus-visible .cc-copy { opacity: 1; color: var(--accent); border-color: var(--accent); }

/* ---------- 公告 ---------- */
.notice-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

.notice-item {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 24px;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
  transition: background .25s, padding .25s;
}
.notice-item:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); padding-left: 14px; padding-right: 14px; }

.n-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); padding-top: 5px; letter-spacing: .04em; white-space: nowrap; }
.n-main { min-width: 0; }
.n-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; line-height: 1.4; flex-wrap: wrap; }
.n-body { margin-top: 7px; color: var(--ink-2); font-size: 14.5px; line-height: 1.85; white-space: pre-wrap; }
.n-pin {
  font-size: 10.5px; font-weight: 500; letter-spacing: .06em;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 2px 9px; flex: none;
}
.n-index { font-family: var(--font-display); font-size: 30px; color: var(--line-2); line-height: 1; padding-top: 2px; }

/* ---------- 图片墙 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

.shot {
  position: relative; margin: 0; overflow: hidden; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--line);
  aspect-ratio: 1 / 1; cursor: zoom-in;
  transition: transform .35s, box-shadow .35s;
}
.shot { background: #fff; }
.shot img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px; font-size: 12.5px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
  opacity: 0; transition: opacity .3s;
}
.shot:hover figcaption { opacity: 1; }
.shot figcaption:empty { display: none; }

.gallery-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px;
  background: color-mix(in srgb, var(--surface) 50%, transparent);
}
.gallery-empty b { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 6px; font-weight: 600; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-name { font-size: 14px; }
.footer-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.footer-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-updated { font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }

.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line-2);
  transition: color .2s, border-color .2s;
}
.link-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 抽屉 ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(18, 15, 12, .38); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.scrim.show { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(460px, 94vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px -40px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform .38s cubic-bezier(.3, .9, .2, 1);
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 22px 16px;
}
.drawer-title { font-family: var(--font-display); font-size: 20px; }
.drawer-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.drawer-sub.ok { color: var(--sage); }
.drawer-sub.err { color: var(--accent); }

.drawer-tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.drawer-tabs button {
  background: none; border: none; cursor: pointer;
  padding: 10px 12px; font-size: 13.5px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.drawer-tabs button:hover { color: var(--ink); }
.drawer-tabs button.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px 40px; }

.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .05em; margin-bottom: 7px; }
.field small { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.6; }

input[type="text"], input[type="password"], input[type="date"], textarea, select {
  width: 100%; padding: 10px 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14px; line-height: 1.6;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
textarea { resize: vertical; min-height: 84px; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-line {
  padding: 9px 16px; border-radius: 10px; font-size: 13.5px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  transition: .2s;
}
.btn-line:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-line.danger:hover { border-color: var(--accent); color: var(--accent); }

.item-box {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; margin-bottom: 12px; background: var(--surface);
}
.item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.item-head b { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .06em; }
.mini {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 12px; padding: 4px 8px; border-radius: 7px; transition: .2s;
}
.mini:hover { color: var(--accent); background: var(--accent-soft); }

.avatar-edit { display: flex; align-items: center; gap: 14px; }
.avatar-edit img { width: 68px; height: 68px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); }

.upzone {
  border: 1.5px dashed var(--line-2); border-radius: 14px;
  padding: 26px 18px; text-align: center; cursor: pointer;
  color: var(--muted); font-size: 13.5px; line-height: 1.7;
  transition: .25s; background: var(--surface-2);
}
.upzone:hover, .upzone.drag { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.upzone b { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 4px; font-weight: 600; }
.upzone small { font-size: 11.5px; opacity: .8; }

.img-edit { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.img-edit img { width: 74px; height: 74px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.img-edit .grow { flex: 1; min-width: 0; }
.img-edit input { font-size: 13px; padding: 7px 10px; }

.note {
  font-size: 12.5px; line-height: 1.8; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 18px;
}
.note b { color: var(--ink-2); }

.empty-line { font-size: 13px; color: var(--muted); padding: 10px 0 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 120;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg);
  padding: 11px 20px; border-radius: 999px;
  font-size: 13.5px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(12, 10, 8, .9);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: .3s;
  padding: 6vh 4vw;
}
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 80vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 40px 100px -40px #000;
}
.lightbox figcaption { color: rgba(255, 255, 255, .82); font-size: 13.5px; text-align: center; }
.lb-close {
  position: absolute; top: 22px; right: 26px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; cursor: pointer; font-size: 15px; transition: .2s;
}
.lb-close:hover { background: rgba(255, 255, 255, .2); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

.hero-copy > *, .hero-art { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .12s; }
.hero-copy > *:nth-child(3) { animation-delay: .18s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .3s; }
.hero-copy > *:nth-child(6) { animation-delay: .36s; }
.hero-copy > *:nth-child(7) { animation-delay: .42s; }
.hero-art { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { max-width: 340px; order: -1; justify-self: start; }
  .hero { min-height: auto; padding-top: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .id-card { max-width: 420px; }
  .notice-item { grid-template-columns: 96px 1fr; gap: 16px; }
  .n-index { display: none; }
  .scroll-hint { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; gap: 12px; }
  .nav-links { display: none; }
  .hero-name { font-size: clamp(46px, 15vw, 64px); }
  .hero-intro { font-size: 14.5px; }
  .hero-en { letter-spacing: .3em; }
  .float-card { left: 0; bottom: 4%; padding: 10px 14px 10px 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .notice-item { grid-template-columns: 1fr; gap: 6px; }
  .n-date { order: -1; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .toast { bottom: 20px; }
  .sec-head .sec-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .drawer, .scrim, .toast, .lightbox, .footer-right, .hero-actions, .scroll-hint { display: none !important; }
  body { background: #fff; }
}

/* ---------- 登录框 ---------- */
.login-box { padding: 6px 0; }
.login-ico { font-size: 26px; margin-bottom: 12px; opacity: .85; }
.login-title { font-family: var(--font-display); font-size: 22px; margin: 0 0 8px; font-weight: 600; }
.login-desc { color: var(--muted); font-size: 13.5px; line-height: 1.8; margin: 0 0 20px; }
.login-err { color: var(--accent); font-size: 12.5px; min-height: 18px; margin-top: 10px; }

.btn-line.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-line.primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.btn-line[disabled] { opacity: .6; cursor: default; }
