/* ==========================================================
   个人学习笔记站点 - 统一样式
   纯本地资源：无外部字体、无 CDN、无图片请求、无统计脚本
   ========================================================== */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f9fbfd;
  --ink: #1c2534;
  --ink-2: #4d5a6d;
  --ink-3: #8895a7;
  --line: #e4eaf2;
  --brand: #33507d;
  --brand-deep: #263d63;
  --brand-soft: #eaf0fa;
  --accent: #c1844a;
  --accent-soft: #fbf2e8;
  --green: #2f7d6a;
  --green-soft: #e9f4f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 6px rgba(28, 45, 78, .03), 0 12px 32px rgba(28, 45, 78, .055);
  --shadow-hover: 0 6px 14px rgba(28, 45, 78, .06), 0 20px 44px rgba(28, 45, 78, .10);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
}

* { 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);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.4; letter-spacing: -.01em; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
::selection { background: #d9e4f7; color: var(--brand-deep); }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 72px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), #5273a6);
  color: #fff; display: grid; place-items: center;
  font: 700 15px var(--mono); letter-spacing: -.06em;
  box-shadow: 0 6px 14px rgba(51, 80, 125, .22);
}
.brand-text { font-weight: 700; font-size: 16.5px; letter-spacing: .01em; white-space: nowrap; }
.brand-sub { display: block; font-size: 11px; font-weight: 400; color: var(--ink-3); line-height: 1.2; letter-spacing: .12em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-links a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.nav-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
  font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid #d5e9e1;
}
.nav-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: 9px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; display: block; }

/* ---------- 通用排版件 ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font-size: clamp(26px, 3.2vw, 36px); }
.h3 { font-size: 19px; }
.lead { color: var(--ink-2); font-size: 16.5px; max-width: 700px; }
.muted { color: var(--ink-3); font-size: 14px; }
.section-head { margin-bottom: 40px; }
.section-head .lead { margin: 14px 0 0; }
.section-head.center .lead { margin-inline: auto; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .22s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(51, 80, 125, .20); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn .arrow { font-family: var(--mono); font-weight: 400; }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.tag.warm { background: var(--accent-soft); color: #9d6533; }
.tag.green { background: var(--green-soft); color: var(--green); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #d3dded; }

/* ---------- 首页 Hero ---------- */
.hero {
  padding: 84px 0 76px; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 380px at 84% 8%, #e7eefb 0%, rgba(231, 238, 251, 0) 70%),
    radial-gradient(520px 300px at 4% 92%, #f8efe4 0%, rgba(248, 239, 228, 0) 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--ink-2); box-shadow: var(--shadow); margin-bottom: 24px;
}
.hero .pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: block; }
.hero h1 { font-size: clamp(31px, 4vw, 46px); line-height: 1.34; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; isolation: isolate; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 9px;
  background: #f3dfc2; z-index: -1; border-radius: 3px;
}
.hero-desc { color: var(--ink-2); font-size: 16.5px; margin: 22px 0 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 30px; margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta div strong { display: block; font-size: 22px; color: var(--brand); line-height: 1.3; font-family: var(--mono); }
.hero-meta div span { font-size: 12.5px; color: var(--ink-3); }

/* 终端装饰卡 */
.terminal {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(31, 51, 88, .13); overflow: hidden;
  transform: rotate(1.2deg); min-width: 0;
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.terminal-bar i:nth-child(1) { background: #e7a8a2; }
.terminal-bar i:nth-child(2) { background: #ebcd97; }
.terminal-bar i:nth-child(3) { background: #a9d3bd; }
.terminal-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--ink-3); }
.terminal-body { padding: 26px 26px 30px; font: 13.5px/2 var(--mono); color: var(--ink-2); min-width: 0; }
.terminal-body .line { display: flex; gap: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.terminal-body .line > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.terminal-body .num { color: #b8c2d1; user-select: none; width: 16px; flex: none; }
.kw { color: #a2619c; } .str { color: #3c8a72; } .cm { color: #a3adba; } .fn { color: #3b5e9c; }
.float-note {
  position: absolute; right: -18px; bottom: -22px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  box-shadow: var(--shadow-hover); font-size: 12.5px; color: var(--ink-2);
  display: flex; align-items: center; gap: 10px; transform: rotate(-2deg);
}
.float-note b { color: var(--brand); font-size: 18px; font-family: var(--mono); }
.hero-visual { position: relative; }

/* ---------- 方向卡片 ---------- */
.dir-card .ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 22px;
}
.dir-card:nth-child(2) .ico { background: var(--accent-soft); color: #a76c37; }
.dir-card:nth-child(3) .ico { background: var(--green-soft); color: var(--green); }
.dir-card h3 { font-size: 19px; margin-bottom: 10px; }
.dir-card p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 18px; }
.dir-card .mini-link { font-size: 13.5px; font-weight: 600; }

/* ---------- 关于条 ---------- */
.notice-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notice-inner { display: flex; gap: 26px; align-items: center; padding: 34px 0; }
.notice-icon {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  background: var(--green-soft); color: var(--green); display: grid; place-items: center;
}
.notice-inner h3 { font-size: 17px; margin-bottom: 6px; }
.notice-inner p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.notice-inner .btn { flex: none; white-space: nowrap; }

/* ---------- 最近记录 ---------- */
.record-list { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.record {
  display: grid; grid-template-columns: 116px 1fr auto; gap: 20px; align-items: center;
  padding: 22px 28px; border-bottom: 1px solid var(--line); color: var(--ink);
  transition: background .2s ease, padding-left .2s ease;
}
.record:last-child { border-bottom: 0; }
.record:hover { background: var(--surface-2); padding-left: 34px; color: var(--ink); }
.record time { font: 12.5px var(--mono); color: var(--ink-3); }
.record strong { font-size: 16px; font-weight: 600; display: block; }
.record span.desc { font-size: 13px; color: var(--ink-3); }
.record .go { color: var(--brand); font-family: var(--mono); font-size: 18px; }

/* ---------- 内页页头 ---------- */
.page-head {
  padding: 64px 0 48px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
}
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 720px; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 8px; }

/* ---------- 正文排版 ---------- */
.prose { font-size: 16px; color: var(--ink-2); }
.prose h2 { font-size: 24px; color: var(--ink); margin: 46px 0 16px; padding-left: 14px; border-left: 3px solid var(--brand); }
.prose h3 { font-size: 18px; color: var(--ink); margin: 30px 0 12px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.4em; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 26px 0; padding: 18px 22px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 10px 10px 0; color: #7d5a37; font-size: 15px;
}
.prose code { font: 13px var(--mono); background: #eef2f8; padding: 2px 6px; border-radius: 5px; color: var(--brand-deep); }
.prose pre {
  background: #1e293d; color: #dbe5f4; padding: 20px 22px; border-radius: 12px;
  overflow-x: auto; font: 13px/1.9 var(--mono); margin: 24px 0;
}
.prose pre code { background: none; color: inherit; padding: 0; }
.prose img { border-radius: 12px; border: 1px solid var(--line); }

.callout {
  display: flex; gap: 18px; padding: 24px 26px; border-radius: var(--radius);
  background: var(--green-soft); border: 1px solid #d5e9e1; margin: 28px 0;
}
.callout .ico { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #fff; color: var(--green); display: grid; place-items: center; }
.callout p { margin: 0; font-size: 14.5px; color: #2b6455; }
.callout strong { display: block; color: #1f5145; margin-bottom: 4px; }

.fact-list { display: grid; gap: 14px; }
.fact {
  display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--ink-3); font-size: 14px; }
.fact dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- 笔记折叠 ---------- */
.note-list { display: grid; gap: 16px; }
.note {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease;
}
.note[open] { border-color: #cfdcee; box-shadow: var(--shadow-hover); }
.note > summary {
  list-style: none; cursor: pointer; padding: 24px 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
}
.note > summary::-webkit-details-marker { display: none; }
.note > summary:hover h3 { color: var(--brand); }
.note .meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 9px; }
.note time { font: 12px var(--mono); color: var(--ink-3); }
.note h3 { font-size: 17.5px; transition: color .2s ease; margin: 0 0 6px; }
.note .sub { font-size: 13.5px; color: var(--ink-3); }
.note .plus {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font: 400 20px/1 var(--mono); transition: transform .25s ease, background .2s ease;
}
.note[open] .plus { transform: rotate(45deg); background: var(--brand); color: #fff; }
.note-body { padding: 0 28px 26px; border-top: 1px solid var(--line); }
.note-body .prose { padding-top: 22px; font-size: 15px; }
.note-body .prose p:last-child { margin-bottom: 0; }
.note-body .prose h3 { margin-top: 22px; font-size: 16px; }

/* ---------- 练习稿 ---------- */
.work-card { padding: 0; overflow: hidden; }
.work-thumb { height: 178px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.work-info { padding: 22px 24px 26px; }
.work-info .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.work-info h3 { font-size: 17px; margin-bottom: 8px; }
.work-info p { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }
.work-info .foot { font-size: 12.5px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 14px; }
/* 纯 CSS 缩略图 */
.thumb-a { background: linear-gradient(150deg, #dce9f8, #b9cfea); }
.thumb-b { background: linear-gradient(150deg, #f6ead9, #efd7b8); }
.thumb-c { background: linear-gradient(150deg, #e2efe9, #c6e0d4); }
.thumb-d { background: linear-gradient(150deg, #e8e3f3, #d2c8ea); }
.thumb-e { background: linear-gradient(150deg, #f2e2e2, #e8c9c9); }
.thumb-f { background: linear-gradient(150deg, #e3ecf3, #c9d9e6); }
.mock {
  width: 72%; background: #fff; border-radius: 8px; box-shadow: 0 12px 28px rgba(28, 45, 78, .16);
  padding: 13px; font-size: 9px; color: #8490a3; transform: rotate(-2deg); transition: transform .3s ease;
}
.work-card:hover .mock { transform: rotate(0) translateY(-4px); }
.mock .m-row { display: flex; gap: 6px; align-items: center; margin-bottom: 7px; }
.mock .m-dot { width: 6px; height: 6px; border-radius: 50%; background: #d8e0eb; }
.mock .m-bar { height: 5px; border-radius: 3px; background: #e7edf5; flex: 1; }
.mock .m-bar.short { flex: .5; }
.mock .m-bar.dark { background: #9fb4d3; }
.mock .m-title { height: 9px; width: 58%; border-radius: 3px; background: #6d8bb8; margin: 10px 0 8px; }
.mock .m-block { height: 34px; border-radius: 5px; background: linear-gradient(120deg, #eaf1fa, #f6f9fd); margin-bottom: 7px; }
.mock .m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mock .m-grid i { height: 18px; border-radius: 3px; background: #edf2f8; display: block; }
.mock .m-list { display: grid; gap: 5px; }
.mock .m-list i { height: 6px; border-radius: 2px; background: #e9eef5; display: block; }
.mock .m-list i:nth-child(2) { width: 82%; } .mock .m-list i:nth-child(3) { width: 64%; }
.mock .m-chip { display: inline-block; height: 12px; width: 42px; border-radius: 6px; background: #d9e6f4; margin-right: 4px; }
.mock .m-circle { width: 38px; height: 38px; border-radius: 50%; border: 5px solid #dbe8dc; margin: 6px auto; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 28px; align-items: start; }
.mail-box {
  display: flex; align-items: center; gap: 18px; padding: 26px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.mail-ico { width: 48px; height: 48px; flex: none; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.mail-box span { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.mail-box a { font: 600 18px var(--mono); word-break: break-all; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.panel h3 { font-size: 17px; margin-bottom: 16px; }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.panel li:last-child { margin-bottom: 0; }
.panel li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: #c6d6ec; }
.panel li.ok::before { background: var(--green); }

/* ---------- 页脚 ---------- */
.site-footer { background: #eef2f8; border-top: 1px solid var(--line); padding: 56px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; max-width: 320px; }
.footer-col h4 { font-size: 14px; color: var(--ink); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid #dde4ee; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.footer-bottom a { color: var(--ink-3); }
.footer-bottom a:hover { color: var(--brand); }
.beian-row { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.police-item { display: inline-flex; align-items: center; gap: 5px; }
.police-item svg { width: 14px; height: 14px; flex: none; }
.footer-note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.8; }

/* ---------- 入场动效 ----------
   不依赖视口观察器：内容始终可见，只做一次极轻微的淡入。
   这样无论浏览器是否执行脚本、或审核方使用整页截图，
   页面内容都会完整呈现，不会出现空白区块。 */
.reveal { animation: rise .55s ease-out both; }
@keyframes rise {
  from { opacity: .9; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* 内页左侧正文 + 右侧信息栏 */
.split-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .split-layout { grid-template-columns: 1fr; }
  .split-layout aside { position: static !important; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 10px; font-size: 14px; }
  .nav-badge { display: none; }
}
@media (max-width: 720px) {
  .wrap, .narrow { width: min(100% - 32px, var(--max)); }
  .section { padding: 60px 0; }
  .section-sm { padding: 46px 0; }
  .nav { height: 62px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px;
    box-shadow: 0 18px 30px rgba(28, 45, 78, .08); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; font-size: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 60px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .hero-meta { gap: 22px; }
  .hero-visual { max-width: 100%; width: 100%; }
  .terminal { transform: none; }
  .terminal-body { padding: 18px 16px 22px; font-size: 11.5px; }
  .terminal-body .line { gap: 8px; }
  .float-note { right: 0; bottom: -16px; }
  .notice-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .record { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 18px 20px; }
  .record time { grid-column: 1 / -1; }
  .record span.desc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .fact { grid-template-columns: 1fr; gap: 3px; }
  .note > summary { padding: 20px; }
  .note-body { padding: 0 20px 22px; }
  .mail-box { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
