/* ============================================================
   小工具站 · 样式
   风格：日系清新 (Japanese Fresh)
   约束：只用发丝级边框 / 只用细字重 / 无可见阴影 / 无深色背景 / 大留白
   禁止（本文件已规避）：font-bold、uppercase、border-2+、shadow-lg/xl、
                        bg-black、rounded-none、<200ms 的过渡

   修订 02：
     - 首屏收紧，工具卡片无需滚动即可看见
     - 手机端工具栏改成横向芯片条，不再纵向堆在顶部
   ============================================================ */

:root {
  --sky: #64b5f6;
  --mint: #98d8c8;
  --pink: #ffb7c5;
  --powder: #b8d4e3;
  --rice: #fafaf8;
  --text: #4a5568;
  --text-2: #7a8a9e;
  --muted: #b0b8c4;
  --border: #d4d4cf;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--rice);
  /* 极淡的亚麻/和纸纹理，用纯 CSS 渐变实现，不引入图片 */
  background-image:
    repeating-linear-gradient(0deg, rgba(74, 85, 104, 0.014) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(74, 85, 104, 0.014) 0 1px, transparent 1px 3px);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
               "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.015em;
}

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 1px solid var(--sky); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: 10px; z-index: 50;
}
.skip:focus { left: 16px; top: 16px; }

/* ───────────────────────── 顶栏 ───────────────────────── */

.topbar {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(212, 212, 207, 0.5);
  backdrop-filter: blur(6px);
}
.topbar-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 32px; height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark { font-size: 9px; color: var(--sky); }
.brand-name { font-size: 16px; letter-spacing: 0.1em; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.16em; }

.nav { display: flex; gap: 28px; font-size: 13px; color: var(--text-2); }
.nav a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 500ms var(--ease), border-color 500ms var(--ease);
}
.nav a:hover { color: var(--text); border-bottom-color: rgba(212, 212, 207, 0.9); }
.nav a[aria-current] { color: var(--text); border-bottom-color: var(--sky); }
/* 工具页顶栏里的第二个链接：手机上靠工具栏导航，就藏起来省地方 */
body.is-tool .nav a[href="random.html"] { display: none; }
body.is-tool .nav { gap: 0; }
/* 手机上工具栏第一条就是「首页」，顶栏再放一个就重复了 */
@media (max-width: 720px) {
  body.is-tool .nav { display: none; }
}

/* ───────────────────────── 排版 ───────────────────────── */

.eyebrow {
  font-size: 11px; color: var(--muted); letter-spacing: 0.22em;
  margin: 0 0 10px;
}
h1, h2, h3 { font-weight: 200; letter-spacing: 0.04em; margin: 0; }
/* 大标题同时跟着视口高度收缩：720p 的笔记本上首屏更要紧 */
h1 { font-size: clamp(26px, 2.6vw + 0.8vh, 38px); line-height: 1.4; }
h2 { font-size: clamp(19px, 2.4vw, 25px); line-height: 1.6; }
h3 { font-size: 17px; line-height: 1.7; }
.lede {
  color: var(--text-2); font-size: 14px; line-height: 1.95;
  max-width: 34em; margin: 16px 0 0;
}
.hint { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }

/* ───────────────────────── 首页 Hero ───────────────────────── */

.hero { position: relative; overflow: hidden; }
.hero-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 40px 32px 26px;              /* 修订 03：进一步收紧首屏 */
  position: relative;
}
.botanical {
  position: absolute; right: 32px; bottom: 12px;
  width: 270px; max-width: 30vw; height: auto;
  pointer-events: none; opacity: 0.5;
}
.hero-actions {
  margin-top: 18px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}

/* ───────────────────────── 按钮 ───────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 300;
  letter-spacing: 0.08em; line-height: 1;
  padding: 14px 28px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(212, 212, 207, 0.6);
  background: #fff; color: var(--text-2);
  transition: all 500ms var(--ease);
}
.btn:hover {
  color: var(--text);
  border-color: rgba(212, 212, 207, 1);
  transform: translateY(-1px);
}
.btn:active { transform: scale(0.99); }

.btn-primary {
  background: rgba(100, 181, 246, 0.9);
  border-color: rgba(100, 181, 246, 0.5);
  color: #fff;
}
.btn-primary:hover {
  background: rgba(100, 181, 246, 1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-quiet { padding: 10px 18px; font-size: 13px; border-radius: 10px; }

/* ───────────────────────── 工具卡片网格（首页） ───────────────────────── */

.tools { padding: 0 32px 130px; }
.tools-inner { max-width: 1140px; margin: 0 auto; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; padding-bottom: 11px; margin-bottom: 18px;
  border-bottom: 1px solid rgba(212, 212, 207, 0.45);
}
.section-count { font-size: 11px; color: var(--muted); letter-spacing: 0.16em; }

/* 首页工具网格：可用工具用统一网格排（三个刚好一行），
   「正在准备」的占位单独成组。分类信息主要由左侧工具栏承担。 */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.tool-group { margin-top: 40px; }
.tool-group-title {
  font-size: 11px; font-weight: 300; color: var(--muted);
  letter-spacing: 0.22em; margin: 0 0 14px;
}

.tool-card {
  position: relative; display: block; background: #fff;
  border: 1px solid rgba(212, 212, 207, 0.45);
  border-radius: 16px; padding: 26px 30px 44px;   /* 底部多留一点，给「打开 →」 */
  transition: all 500ms var(--ease);
}
.tool-card:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 212, 207, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.tool-card:active { transform: scale(0.995); }
.tool-card h3 { margin-bottom: 8px; }
.tool-card p {
  margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.95;
  max-width: 30em;
}
/* 「打开 →」放右下角，不占一整行高度 */
.tool-card-meta {
  position: absolute; right: 30px; bottom: 18px;
  font-size: 11px; color: var(--muted); letter-spacing: 0.14em;
}

/* 未建好的工具，先占位，不做成可点的链接 */
.tool-card-empty {
  border-style: dashed; background: transparent;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 148px;
}
.tool-card-empty h3 { color: var(--muted); font-size: 15px; }
.tool-card-empty p { color: var(--muted); font-size: 12px; }

/* ───────────────────────── 页脚 ───────────────────────── */

.site-footer {
  border-top: 1px solid rgba(212, 212, 207, 0.45);
  background: rgba(255, 255, 255, 0.6);
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 56px 32px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.footer-note { font-size: 12px; color: var(--muted); line-height: 2.1; margin: 0; }

/* ───────────────────────── 工具页：左侧工具栏 ───────────────────────── */

.shell {
  max-width: 1140px; margin: 0 auto;
  padding: 40px 32px 120px;
  display: grid; grid-template-columns: 194px minmax(0, 1fr); gap: 60px;
  align-items: start;
}

.rail { position: sticky; top: 84px; }
.rail-group + .rail-group { margin-top: 30px; }
.rail-label {
  font-size: 10px; color: var(--muted); letter-spacing: 0.22em;
  margin: 0 0 12px; padding-left: 13px;
}
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list a, .rail-item-off {
  display: block; padding: 9px 13px; font-size: 13px; border-radius: 10px;
  border-left: 1px solid transparent;
  transition: all 500ms var(--ease);
}
.rail-list a { color: var(--text-2); }
.rail-list a:hover {
  color: var(--text); background: rgba(255, 255, 255, 0.85);
  transform: translateX(2px);
}
.rail-list a[aria-current] {
  color: var(--text);
  background: rgba(184, 212, 227, 0.22);
  border-left-color: var(--sky);
}
.rail-item-off { color: var(--muted); font-size: 12px; }

/* ───────────────────────── 工具页：主内容 ───────────────────────── */

.tool-head { position: relative; margin-bottom: 34px; }
.tool-head .lede { margin-top: 16px; }
.tool-botanical {
  position: absolute; right: 0; top: -10px;
  width: 170px; max-width: 24vw; height: auto;
  opacity: 0.5; pointer-events: none;
}

.card {
  background: #fff;
  border: 1px solid rgba(212, 212, 207, 0.5);
  border-radius: 16px; padding: 32px;
}
.card + .card { margin-top: 20px; }
.card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 24px;
}

/* ───────────────────────── 表单 ───────────────────────── */

.field-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px;
  margin-bottom: 24px;
}
.field label {
  display: block; font-size: 11px; color: var(--text-2);
  letter-spacing: 0.14em; margin-bottom: 4px;
}
.field input {
  width: 100%; padding: 9px 2px;
  font-family: inherit; font-size: 17px; font-weight: 300;
  color: var(--text);
  background: transparent;
  border: none; border-bottom: 1px solid rgba(212, 212, 207, 0.9);
  border-radius: 0;
  transition: border-color 500ms var(--ease);
}
.field input::placeholder { color: var(--muted); font-size: 14px; }
.field input:hover { border-bottom-color: rgba(212, 212, 207, 1); }
.field input:focus { outline: none; border-bottom-color: var(--sky); }
.field-hint { font-size: 11px; color: var(--muted); margin: 6px 0 0; line-height: 1.7; }

/* 多行文本：同样是「只有底线」的克制做法 */
.field textarea {
  width: 100%; padding: 9px 2px; resize: vertical;
  font-family: inherit; font-size: 15px; font-weight: 300; line-height: 1.8;
  color: var(--text); background: transparent;
  border: none; border-bottom: 1px solid rgba(212, 212, 207, 0.9);
  border-radius: 0;
  transition: border-color 500ms var(--ease);
}
.field textarea::placeholder { color: var(--muted); }
.field textarea:hover { border-bottom-color: rgba(212, 212, 207, 1); }
.field textarea:focus { outline: none; border-bottom-color: var(--sky); }

/* 下拉选择：去掉系统外观，换成一条底线加一个小箭头 */
.field select {
  width: 100%; padding: 9px 22px 9px 2px;
  font-family: inherit; font-size: 15px; font-weight: 300;
  color: var(--text); background: transparent;
  border: none; border-bottom: 1px solid rgba(212, 212, 207, 0.9);
  border-radius: 0;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 10px) calc(50% + 1px), calc(100% - 5px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color 500ms var(--ease);
}
.field select:hover { border-bottom-color: rgba(212, 212, 207, 1); }
.field select:focus { outline: none; border-bottom-color: var(--sky); }

/* 勾选项 */
.check {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 13px; color: var(--text-2); cursor: pointer; max-width: 38em;
}
.check input {
  appearance: none; margin: 4px 0 0; flex: 0 0 auto;
  width: 15px; height: 15px; cursor: pointer;
  border: 1px solid rgba(212, 212, 207, 1); border-radius: 5px;
  background: #fff;
  transition: all 500ms var(--ease);
}
.check input:hover { border-color: var(--sky); }
.check input:checked {
  background: rgba(100, 181, 246, 0.9);
  border-color: rgba(100, 181, 246, 0.7);
  box-shadow: inset 0 0 0 3px #fff;
}

.form-actions {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-top: 24px; margin-top: 24px;
  border-top: 1px solid rgba(212, 212, 207, 0.4);
}

/* ───────────────────────── 提示 / 错误 ───────────────────────── */

.notice {
  margin: 20px 0 0; padding: 13px 17px;
  border: 1px solid rgba(212, 212, 207, 0.65);
  border-radius: 12px;
  background: rgba(255, 183, 197, 0.14);
  color: var(--text); font-size: 13px; line-height: 1.85;
}

/* ───────────────────────── 结果 ───────────────────────── */

.view-switch { display: flex; gap: 8px; }
.view-btn {
  font-family: inherit; font-weight: 300; font-size: 12px;
  letter-spacing: 0.1em; padding: 9px 16px; cursor: pointer;
  background: #fff; color: var(--text-2);
  border: 1px solid rgba(212, 212, 207, 0.6); border-radius: 10px;
  transition: all 500ms var(--ease);
}
.view-btn:hover { color: var(--text); border-color: rgba(212, 212, 207, 1); }
.view-btn[aria-pressed="true"] {
  color: var(--text);
  background: rgba(184, 212, 227, 0.24);
  border-color: rgba(100, 181, 246, 0.45);
}

.result-box { min-height: 110px; display: flex; align-items: center; }
.result-empty { font-size: 13px; color: var(--muted); margin: 0; }

.tiles { display: flex; flex-wrap: wrap; gap: 9px; }
.tile {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  font-size: 17px; font-weight: 300; color: var(--text);
  padding: 11px 17px; border-radius: 11px;
  background: rgba(250, 250, 248, 0.9);
  border: 1px solid rgba(212, 212, 207, 0.55);
  transition: all 500ms var(--ease);
}
.tile:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 181, 246, 0.5);
  background: rgba(184, 212, 227, 0.16);
}

.text-view {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  font-size: 15px; font-weight: 300; line-height: 2.1; color: var(--text);
  margin: 0; word-break: break-all;
}

.result-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(212, 212, 207, 0.4);
}
.save-note { font-size: 11px; color: var(--muted); margin-left: auto; letter-spacing: 0.08em; }

/* ───────────────────────── 历史记录 ───────────────────────── */

.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 16px 0;
  border-bottom: 1px solid rgba(212, 212, 207, 0.35);
}
.history-list li:last-child { border-bottom: none; }
.history-when { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; margin: 0 0 6px; }
.history-params {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px; color: var(--text-2); margin: 0;
}
.history-preview {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 13px; color: var(--text); margin: 5px 0 0;
  word-break: break-all; max-width: 46em;
}
.link-btn {
  font-family: inherit; font-weight: 300; font-size: 12px;
  color: var(--text-2); background: none; cursor: pointer;
  border: none; border-bottom: 1px solid transparent;
  padding: 2px 0; white-space: nowrap;
  transition: all 500ms var(--ease);
}
.link-btn:hover { color: var(--text); border-bottom-color: rgba(212, 212, 207, 0.9); }

/* ───────────────────────── 复制提示 ───────────────────────── */

.toast {
  position: fixed; left: 50%; bottom: 36px; z-index: 60;
  transform: translate(-50%, 12px);
  background: #fff; color: var(--text);
  border: 1px solid rgba(212, 212, 207, 0.8); border-radius: 12px;
  padding: 13px 24px; font-size: 13px; letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), visibility 500ms;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ───────────────────────── 行内等宽字（说明文字里夹的命令/字符） ───────────────────────── */

.mono-inline {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px; color: var(--text);
  background: rgba(250, 250, 248, 0.9);
  border: 1px solid rgba(212, 212, 207, 0.5);
  border-radius: 6px; padding: 1px 6px;
}

/* ───────────────────────── 密码生成器 ───────────────────────── */

/* 主密码：大号等宽，点一下就能复制 */
.pw-main {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: clamp(17px, 2.6vw, 25px); font-weight: 300;
  line-height: 1.6; letter-spacing: 0.02em;
  color: var(--text); margin: 0;
  word-break: break-all; cursor: pointer;
  transition: color 500ms var(--ease);
}
.pw-main:hover { color: var(--sky); }

/* 多条结果列表 */
.pw-list { list-style: none; margin: 0; padding: 0; }
.pw-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 13px 0;
  border-bottom: 1px solid rgba(212, 212, 207, 0.35);
}
.pw-list li:last-child { border-bottom: none; }
.pw-item {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 14px; font-weight: 300; color: var(--text);
  word-break: break-all; line-height: 1.7;
}

/* 强度条：四段发丝级刻度 */
.meter { display: flex; gap: 8px; }
.meter-seg {
  flex: 1; height: 3px; border-radius: 999px;
  background: rgba(212, 212, 207, 0.55);
  transition: background 500ms var(--ease);
}
.meter-seg[data-on="1"] { background: rgba(100, 181, 246, 0.75); }

/* ───────────────────────── 二维码生成器 ───────────────────────── */

.qr-stage {
  display: flex; align-items: center; justify-content: center;
  min-height: 260px; padding: 8px 0;
}
.qr-stage svg {
  display: block; width: 100%; max-width: 300px; height: auto;
  border-radius: 10px;
}
/* 二维码内部是黑白格，外面套一层极淡的边，避免白底融进卡片 */
.qr-stage svg rect { rx: 0; }

/* 普通说明列表 */
.plain-list {
  margin: 0; padding-left: 20px;
  font-size: 13px; color: var(--text-2); line-height: 2;
}
.plain-list li + li { margin-top: 6px; }
.plain-list code { margin: 0 2px; }
/* 手机上别挡住内容 */
@media (max-width: 720px) {
  .toast { left: 16px; right: 16px; bottom: 16px; transform: translateY(12px); }
  .toast.is-on { transform: translateY(0); }
}

/* ═══════════════════════════ 响应式 ═══════════════════════════ */

/* ── 平板：工具栏移到顶部单列 ── */
@media (max-width: 980px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .shell { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .tool-botanical { display: none; }
}

/* ── 窄屏（含大屏手机 / 小屏平板）：工具栏立刻变横向芯片条 ──
   这一步单独放在 760px 而不是跟着手机的 720px，是因为工具栏一旦变成单列，
   在 720~760px 这段里纵向堆叠的样子很难看（手机上截图就是这个宽度）。 */
@media (max-width: 760px) {
  .rail {
    position: static;
    display: flex; gap: 8px;
    overflow-x: auto; scroll-snap-type: x proximity;
    margin: 0 -20px -4px; padding: 2px 20px 6px;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail-group { display: contents; }
  .rail-label { display: none; }
  .rail-list { display: flex; gap: 8px; }
  .rail-list a, .rail-item-off {
    white-space: nowrap; padding: 9px 16px; border-radius: 999px;
    font-size: 13px; scroll-snap-align: start;
    border: 1px solid rgba(212, 212, 207, 0.6);
    background: #fff;
  }
  .rail-list a[aria-current] {
    border-color: rgba(100, 181, 246, 0.45);
    background: rgba(184, 212, 227, 0.24);
    border-left-color: rgba(100, 181, 246, 0.45);
  }
  .rail-item-off { font-size: 12px; color: var(--muted); background: transparent; }
  .shell { padding-left: 20px; padding-right: 20px; }

  /* 首页工具区：同样是横向滑动，一眼就能看到有哪些工具。
     放在 760px 这一档，和工具栏芯片条同时生效。 */
  .tools { padding: 0 0 90px; }
  .tools-inner { max-width: none; }
  .section-head {
    padding: 0 20px 12px; margin-bottom: 16px;
    flex-direction: row; align-items: baseline; gap: 10px;
  }
  .tool-group { margin-top: 26px; }
  .tool-group-title { padding-left: 20px; margin-bottom: 10px; }
  .tool-grid {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x proximity;
    padding: 0 20px 12px;
    scrollbar-width: none;
  }
  .tool-grid::-webkit-scrollbar { display: none; }
  .tool-card {
    flex: 0 0 78vw; padding: 20px; border-radius: 14px;
    scroll-snap-align: start;
  }
  .tool-card p {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tool-card-meta { position: static; display: block; margin-top: 18px; }
  .tool-card-empty { min-height: 124px; }
}

/* ── 手机 ── */
@media (max-width: 720px) {
  body { font-size: 14px; }

  .topbar-inner { padding: 0 20px; height: 56px; gap: 16px; }
  .brand-sub { display: none; }
  .nav { font-size: 12px; }

  /* 首页 */
  .hero-inner { padding: 34px 20px 26px; }
  .botanical { display: none; }
  .eyebrow { margin-bottom: 12px; }
  .lede { margin-top: 14px; line-height: 1.95; }
  .hero-actions { margin-top: 22px; gap: 12px; }

  /* 工具页 */
  .shell { padding-top: 20px; padding-bottom: 80px; gap: 18px; }
  .tool-head { margin-bottom: 22px; }
  .card { padding: 22px 18px; }
  .field-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
  .form-actions { padding-top: 20px; margin-top: 20px; }
  .btn { padding: 14px 24px; }
  .result-box { min-height: 84px; }
  .save-note { display: none; }

  .footer-inner { padding: 42px 20px; }
}

/* 尊重系统的「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:hover, .tool-card:hover, .tile:hover, .rail-list a:hover { transform: none; }
}
