/* =========================================================
   高级室内设计/空间交付作品集 — 国际顶级视觉设计系统 v32
   设计语言：Apple / Framer / Stripe 极简奢华风格 (Obsidian & Champagne Gold)
   ========================================================= */

:root {
  /* ---------- 品牌及暗黑模式默认色彩 ---------- */
  --bg:          #0c0c0e;
  --bg-soft:     #141418;
  --bg-card:     rgba(24, 24, 30, 0.72);
  --ink:         #f4f4f7;
  --ink-soft:    #a0a0aa;
  --ink-muted:   #63636e;
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent:      #c5a880;   /* 高级香槟金/暖琥珀 */
  --accent-d:    #9e815c;
  --accent-glow: rgba(197, 168, 128, 0.35);
  --radius:      18px;
  --radius-sm:   10px;
  --shadow:      0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --maxw:        1680px;
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --glass:       rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  --bg:          #fafafa;
  --bg-soft:     #f0f0f4;
  --bg-card:     rgba(255, 255, 255, 0.85);
  --ink:         #121215;
  --ink-soft:    #63636e;
  --ink-muted:   #92929e;
  --line:        rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.18);
  --accent:      #a6855b;
  --accent-d:    #7e623c;
  --accent-glow: rgba(166, 133, 91, 0.25);
  --shadow:      0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* 细微噪点贴面 (Subtle Organic Grain) */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none; opacity: 0.028;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* 顶部滚动进度条 */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--accent), #e6c89c);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.1s linear;
}

.container { max-width: 1920px; margin: 0 auto; padding: 0 40px; }

.section__title {
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section__title--light { color: #fff; }

.works__head .section__title { position: relative; display: inline-block; }
.works__head .section__title::after {
  content: ""; display: block; width: 50px; height: 3px; margin: 16px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-d));
}

/* ---------- 按钮系统 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 32px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
  cursor: pointer; border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: #0c0c0e;
  box-shadow: 0 10px 30px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px var(--accent-glow);
  filter: brightness(1.08);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: #fff;
  background: var(--glass);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(24px);
  background: rgba(12, 12, 14, 0.65);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
[data-theme="light"] .nav { background: rgba(250, 250, 250, 0.75); }

.nav.scrolled {
  background: rgba(12, 12, 14, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  max-width: 1920px; margin: 0 auto; padding: 0 40px; height: 66px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}

.nav__logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px; font-weight: 700; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 8px; justify-self: start;
}
.logo-name { color: var(--ink); }
.nav__logo span:last-child { font-size: 13px; color: var(--accent); font-weight: 500; }

.nav__links { display: flex; gap: 36px; justify-self: center; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft); position: relative; transition: color 0.25s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width 0.25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 14px; justify-self: end; }
.nav__controls { display: flex; align-items: center; gap: 10px; }
.nav__btn {
  height: 36px; min-width: 42px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--glass); color: var(--ink);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.25s var(--ease);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.nav__btn:hover { border-color: var(--accent); background: var(--accent); color: #0c0c0e; }
.nav__btn--admin {
  background: var(--accent-glow); border-color: var(--accent); color: var(--accent);
}
.nav__btn--admin:hover {
  background: var(--accent); color: #0c0c0e; box-shadow: 0 4px 14px var(--accent-glow);
}

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ---------- Hero 极光首屏 ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
  background: radial-gradient(130% 100% at 50% -10%, #1c1924 0%, #100e14 45%, #08070a 100%);
}
[data-theme="light"] .hero {
  background: radial-gradient(130% 100% at 50% -10%, #2a2533 0%, #15131b 45%, #0c0c0e 100%);
}

.hero__bg {
  position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
  transform: scale(1.06); animation: heroZoom 20s ease-out forwards; filter: saturate(1.1);
}
@keyframes heroZoom { to { transform: scale(1); } }

/* 动态极光 Ambient Flow */
.hero__aurora {
  position: absolute; inset: -20%; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0.65;
  background:
    radial-gradient(40% 40% at 25% 30%, rgba(197, 168, 128, 0.45), transparent 60%),
    radial-gradient(45% 45% at 75% 25%, rgba(110, 140, 190, 0.35), transparent 60%),
    radial-gradient(50% 50% at 50% 75%, rgba(180, 140, 100, 0.35), transparent 60%);
  filter: blur(48px); animation: auroraFlow 18s ease-in-out infinite;
}
@keyframes auroraFlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(2%, -3%, 0) scale(1.08); }
  66% { transform: translate3d(-3%, 2%, 0) scale(1.05); }
}

.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.12;
  background-image: linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
}

.hero__content {
  position: relative; z-index: 4; padding: 100px 24px 60px; max-width: 960px; animation: heroIn 1.2s var(--ease) both;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 8px 18px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(16px);
}
.hero__badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4cd964;
  box-shadow: 0 0 12px #4cd964; animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }

.hero__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.35em; opacity: 0.9; margin-bottom: 22px; text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), #fff); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__title {
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
  font-size: clamp(38px, 6.5vw, 76px); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 40%, #e6d8c5); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.hero__sub {
  margin: 24px auto 38px; font-size: clamp(15px, 1.8vw, 18px); color: rgba(255, 255, 255, 0.88);
  max-width: 720px; line-height: 1.75; font-weight: 400;
}

.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; opacity: 0.7; animation: floatBob 2.2s infinite;
}
.hero__scroll span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
@keyframes floatBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- 跑马灯 ---------- */
.marquee {
  overflow: hidden; background: var(--bg-soft); color: var(--ink); padding: 20px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 35s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-size: 15px; font-weight: 600; letter-spacing: 0.05em; white-space: nowrap; opacity: 0.85; }
.marquee__dot { color: var(--accent); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 能力矩阵 ---------- */
.strengths { padding: 120px 0; background: var(--bg); }
.strengths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.strength {
  position: relative; overflow: hidden; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 30px; backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.strength:hover {
  transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--accent);
}
.strength__num {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 700; color: var(--accent);
  margin-bottom: 16px; letter-spacing: 0.1em;
}
.strength__t { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.strength__d { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

/* ---------- 关于我 ---------- */
.about { padding: 120px 0; background: var(--bg-soft); }
.about__grid { display: grid; grid-template-columns: 360px 1fr; gap: 70px; align-items: center; }
.about__portrait { position: relative; }
.about__portrait::before {
  content: ""; position: absolute; inset: -14px; border-radius: calc(var(--radius) + 14px);
  background: conic-gradient(from 0deg, var(--accent), rgba(255,255,255,0.1), var(--accent-d), var(--accent));
  filter: blur(20px); opacity: 0.35; z-index: 0; animation: spinGlow 20s linear infinite;
}
@keyframes spinGlow { to { transform: rotate(360deg); } }

.about__portrait .portrait-placeholder {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(135deg, #2a2633, #15131c); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 110px; font-weight: 700; color: var(--accent); box-shadow: var(--shadow);
}

.about__lead { font-size: 20px; font-weight: 600; margin: 20px 0 16px; color: var(--ink); line-height: 1.6; }
.about__desc { color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0 16px; }
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, var(--accent), var(--accent-d)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: 13px; color: var(--ink-soft); margin-top: 8px; font-weight: 500; }
.about__note { font-size: 12px; color: var(--ink-muted); margin-top: 10px; }

/* ---------- 作品中心 ---------- */
.works { padding: 120px 0; background: var(--bg); }
.works__head { text-align: center; margin-bottom: 20px; }
.works__hint { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }

.filters { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 36px 0 46px; }
.filter {
  height: 42px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--ink-soft); font-size: 14px; font-weight: 500; cursor: pointer; transition: 0.25s var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--ink); }
.filter.is-active { background: var(--accent); color: #0c0c0e; border-color: var(--accent); font-weight: 600; box-shadow: 0 6px 20px var(--accent-glow); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 24px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--accent);
}

.card__img { aspect-ratio: 3/2; overflow: hidden; background: var(--bg-soft); position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card__img img { transform: scale(1.08); }

.card__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; background: linear-gradient(0deg, rgba(8,8,10,0.88), rgba(8,8,10,0) 65%); color: #fff;
}
.card__cat {
  display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15);
}
.card__title { font-size: 20px; font-weight: 700; margin-top: 10px; }
.card__sub { font-size: 13px; opacity: 0.85; margin-top: 4px; }

.card__overlay::after {
  content: "查看详情 ↗"; position: absolute; right: 20px; bottom: 20px;
  font-size: 13px; font-weight: 600; color: #0c0c0e; background: var(--accent); padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 6px 18px var(--accent-glow); opacity: 0; transform: translateY(10px); transition: 0.35s var(--ease);
}
.card:hover .card__overlay::after { opacity: 1; transform: none; }

.card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 3; background: rgba(12, 12, 14, 0.7);
  color: #fff; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------- 联系区块 ---------- */
.contact { padding: 120px 0; background: linear-gradient(135deg, #181520, #0c0c0e); color: #fff; text-align: center; }
.contact__sub { opacity: 0.85; margin: 16px 0 48px; font-size: 17px; max-width: 680px; margin-left: auto; margin-right: auto; }
.contact__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 820px; margin: 0 auto 48px; }
.ccard {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; text-align: left;
}
.ccard__k { font-size: 12px; letter-spacing: 0.15em; opacity: 0.6; text-transform: uppercase; }
.ccard__v { font-size: 18px; font-weight: 700; color: var(--accent); }
.ccard__t { font-size: 12px; opacity: 0.5; }

/* ---------- 页脚 ---------- */
.footer { padding: 36px 0; background: #08070a; color: var(--ink-muted); font-size: 13px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-admin-lock {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; opacity: 0.35; color: var(--ink-soft);
  padding: 4px; border-radius: 6px; transition: 0.25s var(--ease);
  text-decoration: none; cursor: pointer;
}
.footer-admin-lock:hover {
  opacity: 1; color: var(--accent); transform: scale(1.2);
}

/* =========================================================
   灯箱 (Lightbox) 极致 GPU 硬件加速缩放与拖拽
   ========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(12px); }

.lightbox__panel {
  position: relative; z-index: 2; background: var(--bg-card); border: 1px solid var(--line-strong);
  border-radius: 22px; overflow: hidden; width: min(1280px, 100%); max-height: 92vh;
  display: grid; grid-template-columns: 1.6fr 1fr; box-shadow: var(--shadow); animation: popModal 0.35s var(--ease);
}
@keyframes popModal { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.lightbox__media {
  position: relative; background: #000; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center; min-height: 420px; user-select: none;
}

.lightbox__imgwrap {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; touch-action: none;
}

/* ★ 彻底卡顿修复：lb-zoomable 始终保持常规流畅渲染 */
.lb-zoomable {
  display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain;
  cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-drag: none;
  transform-origin: center center;
}
.lightbox__imgwrap.is-zoomed .lb-zoomable { cursor: grab; }
.lightbox__imgwrap.grabbing .lb-zoomable { cursor: grabbing; }

.lb-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 12px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px; pointer-events: none; white-space: nowrap;
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15); z-index: 10;
}

.lightbox__videos { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.lightbox__videos video { width: 100%; border-radius: 12px; background: #000; }
.lb-videos-label { font-size: 13px; color: var(--ink-soft); }

.lightbox__meta { padding: 42px 38px; overflow-y: auto; background: var(--bg-card); }
.lightbox__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.15em; color: var(--accent); text-transform: uppercase; }
.lightbox__title { font-size: 26px; font-weight: 700; margin: 10px 0 24px; color: var(--ink); }

.lightbox__specs { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.lightbox__specs li { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.lightbox__specs span:first-child { color: var(--ink-soft); }
.lightbox__specs span:last-child { font-weight: 600; color: var(--ink); }

.lightbox__desc { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

.lightbox__files { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.lb-files-title { font-size: 12px; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.lb-file {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg-soft); color: var(--ink); font-size: 14px; font-weight: 600;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.lb-file:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.lb-file-ext { font-size: 11px; color: #0c0c0e; background: var(--accent); padding: 3px 8px; border-radius: 6px; font-weight: 700; }

.lightbox__close {
  position: absolute; top: 16px; right: 16px; z-index: 10; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 24px;
  line-height: 1; cursor: pointer; backdrop-filter: blur(8px); transition: 0.2s;
}
.lightbox__close:hover { background: var(--accent); color: #0c0c0e; }

.lb-origin {
  display: inline-block; margin-top: 20px; color: var(--accent); font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-strong); padding: 9px 18px; border-radius: 999px; transition: 0.25s;
}
.lb-origin:hover { background: var(--accent); color: #0c0c0e; }

/* ---------- 编辑弹窗 UI ---------- */
.modal { position: fixed; inset: 0; z-index: 250; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); }
.modal__panel {
  position: relative; z-index: 2; background: var(--bg-card); border: 1px solid var(--line-strong);
  border-radius: 20px; padding: 28px; width: min(480px, 100%); max-height: 90vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow);
}
.modal__panel h3 { font-size: 20px; font-weight: 700; }
.modal__panel label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.modal__panel input, .modal__panel select, .modal__panel textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px;
  font-family: inherit; color: var(--ink); background: var(--bg-soft); transition: 0.2s;
}
.fab-group {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  display: flex; gap: 10px; align-items: center;
}
.edit-fab, .admin-fab {
  background: var(--accent); color: #0c0c0e; border: 1px solid var(--accent);
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; box-shadow: 0 8px 25px rgba(0,0,0,0.35); transition: 0.25s var(--ease);
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.admin-fab {
  background: var(--bg-card); color: var(--ink); border-color: var(--line-strong); backdrop-filter: blur(16px);
}
.edit-fab:hover, .admin-fab:hover {
  transform: translateY(-2px); box-shadow: 0 12px 30px var(--accent-glow);
  border-color: var(--accent); color: var(--accent);
}
.edit-toolbar {
  position: fixed; right: 24px; bottom: 82px; z-index: 150; display: none; flex-direction: column; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 16px; padding: 12px; min-width: 150px;
  box-shadow: var(--shadow); backdrop-filter: blur(20px);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__portrait { max-width: 320px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid { grid-template-columns: 1fr; }
  .strengths__grid { grid-template-columns: 1fr; }
  .lightbox__panel { grid-template-columns: 1fr; max-height: 88vh; }
}

@media (max-width: 640px) {
  .nav__inner { display: flex; justify-content: space-between; padding: 0 20px; }
  .nav__links {
    position: fixed; top: 66px; right: 0; left: 0; flex-direction: column; gap: 0; justify-self: auto;
    background: var(--bg-card); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
  }
  .nav__links.is-open { max-height: 260px; }
  .nav__links a { padding: 16px 28px; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }
  .contact__cards { grid-template-columns: 1fr; }
}

/* 动效渐显 */
body.has-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
body.has-reveal .reveal.in { opacity: 1; transform: none; }
