/* ================================================================
   Vibe Coding Lab — 作品展示站样式
   深色大气风格 · 手机/平板/桌面 全端适配
   Hero 区: Mainframe 风（鼠标径向光晕 + typewriter + 药丸按钮）
================================================================ */

/* 外部字体（Mainframe 同款 Helvetica Now Display） */
@import url('https://db.onlinewebfonts.com/c/5ac3fe7c6abd2f62067f266d89671492?family=HelveticaNowDisplay-Medium');
@import url('https://db.onlinewebfonts.com/c/1aa3377e489837a26d019bba501e779d?family=HelveticaNowDisplayW01-Rg');

:root {
  /* Mainframe 字体变量 */
  --font-heading: 'HelveticaNowDisplay-Medium', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'HelveticaNowDisplayW01-Rg', 'Helvetica Neue', Arial, sans-serif;
  /* 暗色站原有变量 */
  --bg: #070b16;
  --bg-2: #0b1122;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eaeffb;
  --muted: #8d9bba;
  --accent: #7c6cff;
  --accent-2: #38bdf8;
  --grad: linear-gradient(120deg, #7c6cff 0%, #38bdf8 100%);
  --grad-warm: linear-gradient(120deg, #f472b6 0%, #fb923c 100%);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --nav-h: 64px;
  /* 主体字体优先用 Mainframe 风 */
  --font: var(--font-body), -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: "Cascadia Code", Consolas, monospace; }

/* ---------- 背景特效 ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 108, 255, 0.16), transparent 60%), var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 22s ease-in-out infinite alternate; }
.orb-a { width: 480px; height: 480px; background: rgba(124, 108, 255, 0.28); top: -160px; left: -120px; }
.orb-b { width: 420px; height: 420px; background: rgba(56, 189, 248, 0.2); bottom: -140px; right: -100px; animation-delay: -8s; }
.orb-c { width: 300px; height: 300px; background: rgba(244, 114, 182, 0.12); top: 42%; left: 55%; animation-delay: -14s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.grid-overlay { position: absolute; inset: 0; background-image:
  linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%); }

/* ---------- 导航 ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 11, 22, 0.72); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.06rem; letter-spacing: 0.2px; }
.logo-mark { font-size: 1.35rem; filter: drop-shadow(0 0 12px rgba(124,108,255,0.8)); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-size: 0.93rem; color: var(--muted); transition: 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a.on { color: var(--text); }
.nav-links a.on:not(.nav-admin) { background: var(--card); box-shadow: inset 0 -2px 0 var(--grad); border-radius: 10px 10px 4px 4px; }
.nav-admin { border: 1px solid var(--border); margin-left: 6px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 布局 ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: calc(var(--nav-h) + 40px) 24px 80px; }
.section { margin-top: 96px; }
.section-head { margin-bottom: 36px; }
.section-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; color: var(--accent-2); margin-bottom: 10px; }
.section-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; letter-spacing: 0.5px; }
.section-desc { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); font-size: 0.85rem; }

/* ---------- HERO ---------- */
.hero { text-align: center; padding: 60px 0 20px; }
.hero-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 3px;
  color: var(--accent-2); border: 1px solid rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.08);
  padding: 7px 18px; border-radius: 999px; margin-bottom: 28px; }
.hero-title { font-size: clamp(2.1rem, 6.2vw, 4.2rem); font-weight: 900; line-height: 1.22; letter-spacing: 1px; }
.hero-title .line { display: block; }
.hero-title .grad { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero-sub { max-width: 640px; margin: 26px auto 0; color: var(--muted); font-size: clamp(0.95rem, 2vw, 1.08rem); }
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-stats { display: flex; justify-content: center; gap: clamp(28px, 7vw, 84px); margin-top: 60px; flex-wrap: wrap; }
.stat-num { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; font-size: 0.96rem; font-weight: 700;
  cursor: pointer; border: 0; transition: 0.25s; font-family: var(--font); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 34px rgba(124, 108, 255, 0.38); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(124, 108, 255, 0.52); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--card); border-color: rgba(255,255,255,0.22); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.arrow { transition: transform 0.2s; }
.btn:hover .arrow, .latest-item:hover .arrow { transform: translateX(4px); }

/* ---------- 作品卡片 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; }
.work-card:hover { transform: translateY(-6px); border-color: rgba(124, 108, 255, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124,108,255,0.18); background: var(--card-hover); }
.work-cover { position: relative; aspect-ratio: 16 / 9.6; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.work-card:hover .work-cover img { transform: scale(1.06); }
.cover-emoji { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 900; color: rgba(255,255,255,0.92);
  text-shadow: 0 6px 30px rgba(0,0,0,0.35); }
.cover-grad.g0 { background: linear-gradient(135deg, #4338ca, #7c3aed 55%, #38bdf8); }
.cover-grad.g1 { background: linear-gradient(135deg, #0e7490, #2563eb 55%, #7c6cff); }
.cover-grad.g2 { background: linear-gradient(135deg, #9d174d, #db2777 55%, #f97316); }
.cover-grad.g3 { background: linear-gradient(135deg, #065f46, #059669 55%, #84cc16); }
.cover-grad.g4 { background: linear-gradient(135deg, #7c2d12, #d97706 55%, #facc15); }
.cover-grad.g5 { background: linear-gradient(135deg, #312e81, #6d28d9 55%, #ec4899); }
.work-cat { position: absolute; top: 12px; left: 12px; font-size: 0.72rem; font-weight: 700;
  background: rgba(7, 11, 22, 0.68); backdrop-filter: blur(8px); padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14); }
.work-star { position: absolute; top: 12px; right: 12px; font-size: 0.72rem; font-weight: 700;
  background: var(--grad-warm); padding: 4px 10px; border-radius: 999px; color: #fff; }
.work-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-title { font-size: 1.08rem; font-weight: 700; line-height: 1.4; }
.work-summary { color: var(--muted); font-size: 0.88rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.72rem; color: var(--accent-2); background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.22); padding: 2px 10px; border-radius: 999px; }
.tag-lg { font-size: 0.8rem; padding: 5px 14px; }
.work-views { font-size: 0.76rem; color: var(--muted); white-space: nowrap; }

/* ---------- 关于 ---------- */
.about-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: clamp(28px, 5vw, 56px); }
.about-text { color: var(--muted); margin: 18px 0 24px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.code-window { background: #0a0f1e; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); font-size: 0.85rem; }
.code-dots { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.code-dots i { width: 11px; height: 11px; border-radius: 50%; }
.code-dots i:nth-child(1) { background: #ff5f57; } .code-dots i:nth-child(2) { background: #febc2e; } .code-dots i:nth-child(3) { background: #28c840; }
.code-body { padding: 20px 22px; overflow-x: auto; line-height: 1.85; white-space: pre; }
.c-kw { color: #c792ea; } .c-var { color: #82aaff; } .c-str { color: #c3e88d; }

/* ---------- 最新列表 ---------- */
.latest-list { display: flex; flex-direction: column; gap: 4px; }
.latest-item { display: grid; grid-template-columns: 64px 1fr auto 28px; align-items: center; gap: 18px;
  padding: 20px 24px; border-radius: 14px; border: 1px solid transparent; transition: 0.25s; color: var(--text); }
.latest-item:hover { background: var(--card); border-color: var(--border); transform: translateX(6px); }
.latest-date { color: var(--accent-2); font-weight: 700; font-size: 0.88rem; }
.latest-title { font-weight: 600; }
.latest-cat { color: var(--muted); font-size: 0.8rem; }
.latest-item .arrow { color: var(--muted); }

/* ---------- 联系 ---------- */
.contact-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px;
  background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: clamp(28px, 5vw, 52px); }
.contact-text { color: var(--muted); margin: 16px 0 24px; }
.contact-email-card { display: flex; align-items: center; gap: 14px; background: rgba(7, 11, 22, 0.6);
  border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; flex-wrap: wrap; }
.ce-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 2px; color: var(--accent-2); }
.ce-value { font-weight: 600; word-break: break-all; }
.btn-copy { background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 6px 16px; border-radius: 8px; cursor: pointer; font-size: 0.82rem; transition: 0.2s; margin-left: auto; }
.btn-copy:hover { background: var(--card-hover); }

/* ---------- 表单 ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.f-2 { grid-column: span 2; }
.field input, .field textarea, .field select {
  background: rgba(7, 11, 22, 0.65); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; color: var(--text); font-size: 0.94rem; font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.18); }
.field input[type="file"] { padding: 10px; cursor: pointer; }
.field input[type="file"]::file-selector-button { background: var(--card); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 7px 14px; margin-right: 12px; cursor: pointer; font-family: var(--font); }
.field.checkbox { justify-content: flex-end; }
.ck { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text) !important; }
.ck input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-msg { padding: 12px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 0.9rem; }
.form-msg.ok { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7; }
.form-msg.err { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); color: #fca5a5; }
.empty-tip { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 20px;
  background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---------- 页头 / 筛选 ---------- */
.page-head { margin-bottom: 40px; }
.page-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; }
.page-desc { color: var(--muted); margin-top: 10px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { padding: 8px 20px; border-radius: 999px; font-size: 0.88rem; color: var(--muted);
  border: 1px solid var(--border); background: var(--card); transition: 0.2s; }
.chip:hover { color: var(--text); border-color: rgba(255,255,255,0.24); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 24px rgba(124,108,255,0.35); }

/* ---------- 作品详情 ---------- */
.work-detail { max-width: 860px; margin: 0 auto; }
.back-link { color: var(--muted); font-size: 0.9rem; display: inline-block; margin-bottom: 22px; transition: 0.2s; }
.back-link:hover { color: var(--text); }
.wd-cats { display: flex; gap: 10px; margin-bottom: 14px; }
.work-cat-lg { font-size: 0.78rem; font-weight: 700; color: var(--accent-2);
  background: rgba(56,189,248,0.09); border: 1px solid rgba(56,189,248,0.25); padding: 4px 14px; border-radius: 999px; }
.work-star-lg { font-size: 0.78rem; font-weight: 700; background: var(--grad-warm); color: #fff; padding: 4px 14px; border-radius: 999px; }
.wd-title { font-size: clamp(1.7rem, 4.6vw, 2.6rem); font-weight: 900; line-height: 1.3; }
.wd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted);
  font-size: 0.85rem; margin-top: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.wd-cover { margin-top: 30px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.wd-summary { margin-top: 30px; font-size: 1.08rem; font-weight: 600; line-height: 1.9;
  padding: 22px 26px; background: linear-gradient(120deg, rgba(124,108,255,0.1), rgba(56,189,248,0.07));
  border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; }
.wd-content { margin-top: 34px; color: #c6d0e8; font-size: 1rem; line-height: 2; }
.wd-content strong { color: var(--text); }
.wd-content code { background: rgba(124,108,255,0.13); color: #b3c7ff; padding: 1px 7px; border-radius: 6px; font-size: 0.88em; }
.wd-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--border); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); background: rgba(7, 11, 22, 0.6); margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 44px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-weight: 800; }
.footer-sub { color: var(--muted); font-size: 0.8rem; }
.footer-links { display: flex; gap: 22px; font-size: 0.88rem; }
.footer-links a { color: var(--muted); transition: 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-meta { text-align: right; font-size: 0.84rem; }

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 44px 36px; box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.login-logo { text-align: center; font-size: 2.4rem; margin-bottom: 14px; }
.login-card h1 { text-align: center; font-size: 1.4rem; font-weight: 800; }
.login-sub { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 8px 0 26px; }
.login-hint { color: var(--muted); font-size: 0.76rem; text-align: center; margin: 18px 0 8px; line-height: 1.6; }
.login-back { display: block; text-align: center; color: var(--muted); font-size: 0.84rem; }
.login-back:hover { color: var(--text); }

/* ---------- 后台 ---------- */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-shell-wide { grid-template-columns: 232px 1fr; }
.admin-side { background: rgba(11, 17, 34, 0.85); border-right: 1px solid var(--border);
  padding: 24px 16px; display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; padding: 0 10px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav a { padding: 11px 14px; border-radius: 12px; color: var(--muted); font-size: 0.92rem; transition: 0.2s; display: flex; align-items: center; gap: 4px; }
.admin-nav a:hover { color: var(--text); background: var(--card); }
.admin-nav a.on { color: var(--text); background: var(--grad); box-shadow: 0 8px 22px rgba(124,108,255,0.35); }
.badge { background: #ef4444; color: #fff; font-size: 0.68rem; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.admin-side-foot { display: flex; flex-direction: column; gap: 8px; padding: 0 10px; font-size: 0.84rem; }
.admin-side-foot a { color: var(--muted); transition: 0.2s; }
.admin-side-foot a:hover { color: var(--text); }
.admin-main { padding: clamp(20px, 3.5vw, 44px); max-width: 1100px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.5rem; font-weight: 800; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.astat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.astat span { display: block; font-size: 1.6rem; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.astat { color: var(--muted); font-size: 0.84rem; }
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 760px; }
.admin-table th { text-align: left; padding: 14px 16px; color: var(--muted); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.t-title a { font-weight: 600; }
.t-title a:hover { color: var(--accent-2); }
.t-ops { white-space: nowrap; display: flex; gap: 4px; align-items: center; }
.inline { display: inline; }
.op { background: none; border: 1px solid var(--border); color: var(--muted); font-size: 0.78rem;
  padding: 4px 12px; border-radius: 8px; cursor: pointer; transition: 0.2s; font-family: var(--font); }
.op:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.op-del:hover { color: #fca5a5; border-color: rgba(239,68,68,0.45); background: rgba(239,68,68,0.08); }
.status.ok { color: #6ee7b7; } .status.draft { color: #fbbf24; }
.admin-form { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: clamp(20px, 3.4vw, 36px); }
.form-sec { font-size: 1.02rem; font-weight: 700; margin: 10px 0 20px; color: var(--accent-2); }
.cover-preview { margin-bottom: 10px; }
.cover-preview img { max-height: 130px; border-radius: 10px; border: 1px solid var(--border); }
.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.msg-card.unread { border-color: rgba(124,108,255,0.45); background: rgba(124,108,255,0.05); }
.msg-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.msg-email { color: var(--accent-2); font-size: 0.85rem; }
.msg-body { color: #c6d0e8; font-size: 0.92rem; margin-bottom: 14px; }
.msg-ops { display: flex; gap: 8px; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.delay-0 { transition-delay: 0s; } .delay-1 { transition-delay: 0.12s; } .delay-2 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .hero-title .grad { animation: none; }
}

/* ================================================================
   响应式 — 平板（≤1024px）
================================================================ */
@media (max-width: 1024px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about-card { grid-template-columns: 1fr; gap: 32px; }
  .contact-card { grid-template-columns: 1fr; gap: 32px; }
}

/* ================================================================
   响应式 — 手机（≤640px）
================================================================ */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .page { padding: calc(var(--nav-h) + 24px) 16px 60px; }
  .section { margin-top: 64px; }
  .nav-inner { padding: 0 16px; }
  .logo-text { font-size: 0.98rem; }

  .nav-toggle { display: flex; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 16px 20px;
    background: rgba(7, 11, 22, 0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.25s; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 16px; font-size: 1rem; }
  .nav-admin { margin-left: 0; text-align: center; }

  .hero { padding-top: 36px; }
  .hero-badge { font-size: 0.64rem; letter-spacing: 2px; padding: 6px 14px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 30px 44px; }

  .works-grid { grid-template-columns: 1fr; gap: 18px; }
  .work-body { padding: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .f-2 { grid-column: auto; }

  .latest-item { grid-template-columns: 52px 1fr 22px; gap: 12px; padding: 16px 14px; }
  .latest-cat { display: none; }

  .contact-card, .about-card { padding: 24px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }

  /* 后台 */
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; align-items: center;
    justify-content: space-between; padding: 12px 16px; overflow-x: auto; }
  .admin-nav { flex-direction: row; gap: 6px; }
  .admin-nav a { white-space: nowrap; padding: 8px 12px; font-size: 0.84rem; }
  .admin-side-foot { flex-direction: row; align-items: center; }
  .admin-side-foot .muted { display: none; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-main { padding: 18px 14px; }
}

/* ================================================================
   Mainframe 风格：导航 + Hero 区（叠加在现有暗色风格之上）
   纯黑白极简 · 鼠标径向光晕 · typewriter · 药丸按钮
================================================================ */
.mf-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 20px;
  transition: background 0.25s, backdrop-filter 0.25s, border-color 0.25s;
  background: transparent; border-bottom: 1px solid transparent;
}
.mf-nav.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.mf-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.mf-logo {
  display: flex; align-items: center; gap: 12px; color: #fff;
  font-family: var(--font-heading); font-weight: 500;
  font-size: 21px; letter-spacing: -0.02em; user-select: none;
}
.mf-logo-asterisk {
  font-size: 25px; line-height: 1; letter-spacing: -0.02em;
  -webkit-text-stroke: 0.5px rgba(255,255,255,0.4);
}
@media (min-width: 640px) {
  .mf-nav { padding: 20px 32px; }
  .mf-logo { font-size: 26px; }
  .mf-logo-asterisk { font-size: 30px; }
}
.mf-logo sup { font-size: 0.45em; vertical-align: super; margin-left: 1px; }

.mf-links {
  display: none; color: #fff; font-family: var(--font-body);
  font-size: 23px; font-weight: 400; align-items: center; gap: 0;
}
.mf-links a {
  color: #fff; text-decoration: none; transition: opacity 0.2s;
  padding: 0; white-space: nowrap;
}
.mf-links a + a::before { content: ", "; opacity: 0.55; }
.mf-links a:hover { opacity: 0.6; }
.mf-links a.on { text-decoration: underline; text-underline-offset: 4px; }
.mf-cta {
  display: none; color: #fff; text-decoration: underline; text-underline-offset: 4px;
  font-family: var(--font-body); font-size: 23px;
  transition: opacity 0.2s;
}
.mf-cta:hover { opacity: 0.6; }
@media (min-width: 768px) {
  .mf-links, .mf-cta { display: inline-flex; }
}

/* Hamburger */
.mf-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.mf-toggle span {
  width: 24px; height: 2px; background: #fff; border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s; transform-origin: center;
}
.mf-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mf-toggle.open span:nth-child(2) { opacity: 0; }
.mf-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) { .mf-toggle { display: none; } }

/* 移动端全屏遮罩 */
.mf-menu {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 32px; gap: 32px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.mf-menu.open { opacity: 1; pointer-events: auto; }
.mf-menu a {
  color: #fff; font-family: var(--font-body); font-size: 32px; font-weight: 500;
  text-decoration: none;
}
.mf-menu a.mf-menu-cta { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 768px) { .mf-menu { display: none; } }

/* Hero 容器 */
.mf-hero {
  position: relative;
  /* 全屏出血：突破 .page 的 max-width 与内边距 */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: calc(-1 * (var(--nav-h) + 40px));
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: calc(var(--nav-h) + 64px) 20px 48px;
  overflow: hidden; color: #fff; font-family: var(--font-body);
  background: #0a0a0a;
}
@media (max-width: 640px) {
  .mf-hero {
    margin-top: calc(-1 * (var(--nav-h) + 24px));
    padding-bottom: 40px;
  }
}
@media (min-width: 768px) {
  .mf-hero { padding: var(--nav-h) 40px 80px; justify-content: center; padding-bottom: 0; }
}

/* 鼠标径向光晕 */
.mf-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle 380px at var(--mx, 50%) var(--my, 40%),
      rgba(190, 205, 255, 0.13), transparent 62%),
    radial-gradient(ellipse 90% 55% at 50% -12%,
      rgba(120, 140, 210, 0.10), transparent 70%),
    radial-gradient(ellipse 70% 60% at 85% 105%,
      rgba(90, 105, 170, 0.07), transparent 70%),
    linear-gradient(178deg, #131320 0%, #0b0b12 42%, #060608 100%);
  transition: background 0.15s;
}
.mf-bg-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.3; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 78% 66% at 50% 32%, #000 26%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 78% 66% at 50% 32%, #000 26%, transparent 82%);
}
.mf-bg-vignette {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.55) 100%);
}
.mf-bg-noise {
  position: absolute; inset: 0; z-index: 0; opacity: 0.04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mf-hero-content {
  position: relative; z-index: 2; max-width: 560px;
}

/* 1. Blurred 装饰标签 */
.mf-blur-label {
  pointer-events: none; user-select: none;
  margin-bottom: 24px;
  color: #fff; font-weight: 400; line-height: 1.3;
  font-size: clamp(18px, 4vw, 26px); filter: blur(4px);
}
@media (min-width: 640px) { .mf-blur-label { margin-bottom: 28px; } }

/* 2. Typewriter */
.mf-typewriter {
  white-space: pre-wrap; word-break: break-word;
  font-size: clamp(18px, 4vw, 26px); line-height: 1.35; font-weight: 400;
  color: #fff; min-height: 2.8em;
  margin-bottom: 24px;
}
@media (min-width: 640px) { .mf-typewriter { margin-bottom: 28px; } }
.mf-cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: #fff; vertical-align: -0.18em;
  margin-left: 2px; animation: mf-blink 1s step-end infinite;
}
.mf-cursor.done { animation: none; opacity: 0; }
@keyframes mf-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 3. 药丸按钮 */
.mf-pills {
  display: flex; flex-wrap: wrap; gap: 6px 0;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mf-pills.show { opacity: 1; transform: translateY(0); }
.mf-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #000;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  font-size: 13px; padding: 0.3em 16px;
  margin: 0 3px 8px;
  cursor: pointer; transition: background 0.2s, color 0.2s;
  font-family: var(--font-body); white-space: nowrap;
  user-select: none;
}
.mf-pill:hover { background: #000; color: #fff; }
@media (min-width: 640px) {
  .mf-pill { font-size: 15px; padding: 0.3em 20px; }
}
.mf-pill.outline {
  background: transparent; color: #fff; border: 1px solid #fff;
  gap: 8px; padding: 0.3em 12px 0.3em 18px;
}
.mf-pill.outline:hover { background: #fff; color: #000; }
.mf-pill.outline .mf-pill-email { text-decoration: underline; text-underline-offset: 2px; }
.mf-pill.outline svg { width: 12px; height: 12px; flex-shrink: 0; }
.mf-pill.toast { background: #16a34a; color: #fff; border-color: #16a34a; }

@media (min-width: 640px) {
  .mf-pill.outline { gap: 12px; }
}

