/* =========================================================
   颂博 · 个人主页 — 设计系统
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0f1224;
  --bg-deep: #0b0e20;
  --bg-soft: #111633;
  --panel: #181d3a;
  --panel-2: #1a1e38;
  --text: #e8eaf6;
  --muted: #9aa0c0;
  --accent: #f6a821;
  --accent2: #38bdf8;
  --accent-green: #5eead4;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .45);
  --nav-h: 66px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(56, 189, 248, .06), transparent 60%),
    radial-gradient(1000px 520px at 0% 10%, rgba(246, 168, 33, .05), transparent 55%),
    var(--bg-deep);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 胶片噪点，叠加氛围质感（纯内嵌 SVG，无外部请求） */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 5; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(246, 168, 33, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* 细滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #2a3160; border-radius: 8px; border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

main { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ============ 背景动效 ============ */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: orbFloat 16s ease-in-out infinite alternate; }
.orb-a { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(56, 189, 248, .32), transparent 65%); }
.orb-b { width: 480px; height: 480px; top: 30%; right: -140px; background: radial-gradient(circle, rgba(246, 168, 33, .26), transparent 65%); animation-delay: -6s; }
@keyframes orbFloat {
  from { transform: translateY(-20px) scale(1); }
  to   { transform: translateY(40px) scale(1.12); }
}

/* ============ 导航 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(11, 14, 32, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(11, 14, 32, .82);
  border-bottom-color: rgba(255, 255, 255, .06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-size: 1.3rem; font-weight: 700; text-decoration: none; letter-spacing: 1px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 30px; text-decoration: none;
  color: var(--muted); font-size: .95rem; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: rgba(246, 168, 33, .14); }
.nav-links .nav-cta {
  color: var(--accent); border: 1px solid rgba(246, 168, 33, .5);
  margin-left: 6px;
}
.nav-links .nav-cta:hover { background: rgba(246, 168, 33, .12); color: var(--accent); }

/* 汉堡按钮 */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.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); }

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--nav-h) 24px 0;
  position: relative;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  color: var(--muted); letter-spacing: 3px; font-size: .82rem;
  text-transform: uppercase; margin-bottom: 20px;
}
.name-grad {
  font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 800; letter-spacing: 8px;
  background: linear-gradient(120deg, var(--accent2) 10%, #a2f1ff 40%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% auto;
  animation: shine 7s ease-in-out infinite;
  text-shadow: 0 0 46px rgba(56, 189, 248, .25);
}
@keyframes shine {
  from { background-position: 0% center; }
  50%  { background-position: 100% center; }
  to   { background-position: 0% center; }
}
.typed-wrap {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem); margin-top: 6px;
  color: var(--accent); min-height: 1.6em; font-weight: 500;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
}
.caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--accent); margin-left: 3px; vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.bio {
  color: var(--muted); margin-top: 22px; max-width: 560px; margin-inline: auto; font-size: 1.05rem;
}
.actions { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 滚动提示 */
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 16px; display: block;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 9px;
  margin-left: -2px; border-radius: 3px; background: var(--accent);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ 按钮 ============ */
.btn {
  padding: 13px 30px; border-radius: 40px; text-decoration: none;
  font-weight: 600; font-size: .98rem;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  transition: transform .22s, box-shadow .22s, background .22s, border-color .22s;
  cursor: pointer; border: 1px solid transparent;
}
.btn { -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  color: #0b0e20;
  box-shadow: 0 8px 22px rgba(56, 189, 248, .28);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(246, 168, 33, .5); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}
.btn-ghost:hover { border-color: var(--accent); color: #ffc95c; background: rgba(246, 168, 33, .10); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ============ Section ============ */
.section { padding: 96px 24px; }
.section.tinted { background: rgba(255, 255, 255, .018); border-top: 1px solid rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .04); }
.container { max-width: 980px; margin: 0 auto; }

h2 {
  font-size: 2rem; margin-bottom: 40px; position: relative;
  display: inline-flex; align-items: baseline; gap: 14px; font-weight: 700;
}
h2::after {
  content: ""; position: absolute; left: 0; bottom: -10px;
  width: 56px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}
.sec-no {
  font-size: .95rem; color: var(--accent); font-family: "SF Mono", Consolas, monospace;
  letter-spacing: 1px;
}
.section p { color: var(--muted); }
.section p strong, .section p b { color: var(--text); }

/* ============ 关于 ============ */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; margin-top: 8px; }
.split-text p { margin-bottom: 14px; }

.tags { list-style: none; display: flex; gap: 12px; flex-wrap: wrap; }
.tags li {
  background: var(--panel); padding: 9px 16px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: .88rem; color: var(--text);
  transition: transform .2s, border-color .2s;
}
.tags li:hover { transform: translateY(-3px); border-color: rgba(246, 168, 33, .5); }

/* ============ 技能 ============ */
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.skill { background: var(--panel); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius); padding: 22px 24px; transition: transform .25s, border-color .25s; }
.skill:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, .4); }
.skill-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.skill-name { font-weight: 600; color: var(--text); }
.skill-val { color: var(--accent); font-family: "SF Mono", Consolas, monospace; }
.skill-bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.skill-bar span {
  display: block; height: 100%; width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transition: width 1.1s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in .skill-bar span { width: var(--w); }
.skill-desc { color: var(--muted); font-size: .86rem; margin-top: 10px; }

/* 技术标签滚动条 */
.marquee {
  margin-top: 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 12px; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  flex: 0 0 auto; padding: 8px 18px; border-radius: 30px;
  background: var(--panel); border: 1px solid rgba(255, 255, 255, .08);
  font-size: .86rem; color: var(--muted); font-family: "SF Mono", Consolas, monospace;
}
.marquee-track span:nth-child(odd) { color: var(--accent2); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ 项目卡片 ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border-radius: var(--radius); padding: 26px 26px 22px;
  border: 1px solid rgba(255, 255, 255, .06);
  display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(246, 168, 33, .55);
  box-shadow: var(--shadow);
}
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-icon {
  font-size: 2rem; line-height: 1;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(56, 189, 248, .20), rgba(246, 168, 33, .12));
  border: 1px solid rgba(255, 255, 255, .08);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4));
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-icon { transition: transform .3s; }
.card-tag {
  font-size: .72rem; color: var(--accent); letter-spacing: .5px;
  background: rgba(246, 168, 33, .1); border: 1px solid rgba(246, 168, 33, .2);
  padding: 4px 10px; border-radius: 20px;
}
.card h3 { color: var(--text); margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .93rem; flex: 1; }
.card-links { margin-top: 18px; }
.more {
  color: var(--accent2); text-decoration: none; font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.more span { transition: transform .2s; }
.more:hover span { transform: translateX(4px); }
.more { position: relative; }
.more::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 0;
  background: var(--accent2); transition: width .25s ease;
}
.more:hover::after { width: 100%; }

/* ============ 时间线 ============ */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--accent2), var(--accent));
  border-radius: 2px; opacity: .5;
}
.tl-item { position: relative; margin-bottom: 34px; }
.tl-dot {
  position: absolute; left: -30px; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-deep); border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(246, 168, 33, .15);
}
.tl-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(246, 168, 33, .6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.8); opacity: .9; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.tl-time {
  font-size: .78rem; color: var(--accent); font-family: "SF Mono", Consolas, monospace;
  letter-spacing: 1px; text-transform: uppercase;
}
.tl-body h3 { font-size: 1.15rem; margin: 4px 0 6px; color: var(--text); }
.tl-body p { font-size: .94rem; }

/* ============ 联系 ============ */
.contact-center { text-align: center; }
.contact-center h2 { text-align: center; }
.contact-center h2::after { left: 50%; transform: translateX(-50%); }
.contact-center .container > p { margin-bottom: 4px; }
.contact-center .actions { justify-content: center; }

/* ============ Footer ============ */
footer {
  text-align: center; padding: 40px 24px; color: var(--muted);
  font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .06);
  position: relative; z-index: 1;
}

/* ============ 返回顶部 ============ */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--panel); border: 1px solid rgba(246, 168, 33, .4);
  color: var(--accent); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: #232a4d; }

/* ============ 进入视口动效 ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }
.reveal[data-delay="5"] { transition-delay: .6s; }

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ 响应式 ============ */
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .skill-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 72px 20px; }
  .nav-inner { padding: 0 20px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 16px 20px;
    background: rgba(11, 14, 32, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-120%); opacity: 0; transition: transform .3s, opacity .3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { width: 100%; text-align: center; padding: 13px; }
  .nav-links .nav-cta { margin-left: 0; }
}

/* ============ 工具箱 ============ */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.tool-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.tool-card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, .4); box-shadow: var(--shadow); }
.tool-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tool-head h3 { font-size: 1.15rem; color: var(--text); }
.tool-tag { font-size: .72rem; color: var(--accent); background: rgba(246, 168, 33, .1); border: 1px solid rgba(246, 168, 33, .2); padding: 4px 10px; border-radius: 20px; }
.tool-card > p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.tool-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tool-controls .btn { padding: 8px 16px; font-size: .85rem; }
.file-btn { cursor: pointer; position: relative; overflow: hidden; }
.file-btn input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tool-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tool-col { display: flex; flex-direction: column; gap: 6px; }
.tool-label { font-size: .78rem; color: var(--muted); letter-spacing: 1px; }
.tool-canvas {
  width: 100%; height: 220px;
  object-fit: contain;
  background-image:
    linear-gradient(45deg, #1e2442 25%, transparent 25%),
    linear-gradient(-45deg, #1e2442 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1e2442 75%),
    linear-gradient(-45deg, transparent 75%, #1e2442 75%);
  background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: #181e3c;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px;
  display: block;
}
.tool-canvas-pick { height: 260px; grid-column: 1 / -1; }
.tool-slider { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tool-slider label { font-size: .85rem; color: var(--muted); }
.tool-slider label span { color: var(--accent); font-family: "SF Mono", Consolas, monospace; }
.tool-slider input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, .12); outline: none;
}
.tool-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 2px solid var(--bg-deep);
}
.tool-dl { align-self: flex-start; padding: 10px 22px; }
.color-result { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255, 255, 255, .04); border-radius: 10px; }
.color-swatch { width: 42px; height: 42px; border-radius: 8px; background: #333; border: 1px solid rgba(255, 255, 255, .12); flex-shrink: 0; }
.color-text { display: flex; flex-direction: column; gap: 2px; font-family: "SF Mono", Consolas, monospace; font-size: .85rem; color: var(--muted); }
.color-text span { color: var(--text); }

/* 工具箱：字符串转义 */
.tool-textarea {
  width: 100%; min-height: 92px; resize: vertical; margin-bottom: 12px;
  background: #0e1230; color: var(--text); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px; padding: 10px 12px; font-family: "SF Mono", Consolas, monospace; font-size: .84rem; line-height: 1.5;
}
.tool-textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-textarea[readonly] { background: #141a38; }
.esc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.esc-actions .btn { flex: 1 1 auto; min-width: 88px; justify-content: center; }

/* 工具箱：调色滤镜 */
.filter-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 14px 0; }
.filter-fields .tool-slider { margin-bottom: 8px; }
.presets { gap: 10px; }
.presets .btn { flex: 0 0 auto; }
.bytes { font-size: .85rem; color: var(--muted); margin: 10px 0 14px; line-height: 1.6; }
.bytes b { color: var(--accent); font-family: "SF Mono", Consolas, monospace; }

/* 工具箱：文本统计 */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.stat-cell {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px; padding: 14px 10px; text-align: center;
}
.stat-cell b { display: block; font-size: 1.6rem; font-weight: 700; color: var(--accent2); font-family: "SF Mono", Consolas, monospace; line-height: 1.2; }
.stat-cell span { font-size: .8rem; color: var(--muted); }

/* 工具箱：输入框与分组 */
.tool-input {
  flex: 1; min-width: 0; padding: 10px 12px; background: #0e1230; color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; font-family: "SF Mono", Consolas, monospace; font-size: .85rem; box-sizing: border-box;
}
.tool-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-block { margin-bottom: 16px; }
.tool-block .tool-label { display: inline-block; color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.qr-row { display: flex; justify-content: center; margin: 8px 0 6px; }
.qr-row canvas { max-width: 100%; height: auto; box-shadow: 0 6px 24px rgba(0,0,0,.45); }

@media (max-width: 880px) {
  .tools { grid-template-columns: 1fr; }
  .tool-stage { grid-template-columns: 1fr; }
  .tool-canvas { height: 200px; }
}

/* ============ 超小屏（手机竖握 ≤400px） ============ */
@media (max-width: 400px) {
  body { font-size: 15px; }
  .nav-inner { padding: 0 14px; }
  .section { padding: 60px 16px; }
  .name-grad { font-size: 2.5rem; letter-spacing: 2px; }
  .bio { font-size: .98rem; margin-top: 18px; }
  .actions { gap: 12px; flex-direction: column; align-items: center; }
  .actions .btn { width: 100%; max-width: 320px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .tool-controls { gap: 6px; }
  .tool-controls .btn { flex: 1 1 calc(50% - 4px); min-width: 0; white-space: nowrap; }
  .tool-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tool-stage { grid-template-columns: 1fr; }
  .tool-canvas, .tool-canvas-pick { height: 190px; }
  .timeline { padding-left: 26px; }
  .tl-dot { left: -26px; width: 14px; height: 14px; }
}
