/* Gizmo Yard · 样式（站主 11-10 选定 c3「线稿」，样稿 docs/design/2026-11-10/mock.html?t=c3）
 * 只有两种主题色：近黑 + 橙 #ff6a13。橙色只出现在：主按钮底、卡片图标线条、「新上」卡片色面、首页标题第二行、logo 方块。
 * 橙色上面的字和图标一律用深色 --on-accent，不用白字。没有渐变、发光、阴影、emoji。
 * 没有任何动画（hover 只让边线变亮一点），所以 prefers-reduced-motion 只需保证不平滑滚动。 */
:root {
  --bg: #0c0e11;
  --card: #121519;
  --cover: #1b1f25;
  --line: #252a32;
  --line-strong: #4a525e;
  --pill-line: #2c323b;
  --ink: #f3f5f7;
  --muted: #98a1ad;
  --accent: #ff6a13;
  --accent-hover: #ff8238;
  --on-accent: #160b02;
  --gutter: 32px;
  --max: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.15; }
h1 { font-weight: 850; letter-spacing: -0.035em; }
h2 { font-weight: 800; letter-spacing: -0.02em; }
h3 { font-weight: 750; letter-spacing: -0.015em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } * { transition: none !important; animation: none !important; } }

/* ---------- 按钮：主按钮橙底深色字，次按钮透明底细边线 ---------- */
.btn {
  font: inherit; font-weight: 750; font-size: 1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 12px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  cursor: pointer; text-decoration: none; touch-action: manipulation;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-quiet { background: transparent; border-color: var(--pill-line); color: var(--ink); font-weight: 650; }
.btn-quiet:hover { background: transparent; border-color: var(--line-strong); }

/* ---------- 顶栏：橙色方块 G + 站名，右边导航 ---------- */
.site-nav { background: var(--bg); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: 28px; }
.nav-home { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 17px; font-weight: 900; letter-spacing: 0; line-height: 1;
}
.nav-links { margin-left: auto; display: flex; gap: 22px; font-size: .95rem; font-weight: 600; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* ---------- 首页 ---------- */
.hub { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: 60px; line-height: 1.05; text-wrap: balance; }
.hero h1 .accent { color: var(--accent); }
.hero .tagline { margin: 16px auto 0; max-width: 600px; text-wrap: balance; color: var(--muted); font-size: 1.2rem; }
.hub-tools { margin: 0 0 26px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.search {
  width: 100%; max-width: 560px; height: 58px; padding: 0 20px; display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--muted);
}
.search:focus-within { border-color: var(--line-strong); }
.search svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.search input {
  flex: 1; min-width: 0; height: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; outline: 0; -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
  font: inherit; font-size: .92rem; font-weight: 650; min-height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--pill-line); background: var(--card); color: var(--ink); cursor: pointer; touch-action: manipulation;
}
.pill:hover { border-color: var(--line-strong); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.cards { list-style: none; margin: 0; padding: 6px 0 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards > li { min-width: 0; }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink);
}
.card:hover { border-color: var(--line-strong); }
.cover {
  position: relative; display: grid; place-items: center; height: 136px;
  background: var(--cover); color: var(--accent); border-bottom: 1px solid var(--line);
}
.cover svg { width: 60px; height: 60px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card.is-new .cover { background: var(--accent); color: var(--on-accent); border-bottom-color: var(--accent); }
.new {
  position: absolute; top: 16px; right: 16px; padding: 3px 9px; border-radius: 999px;
  background: var(--bg); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; line-height: 1.4;
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px 20px; }
.tag { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.no-match { margin: 0; padding: 18px 0 64px; text-align: center; color: var(--muted); }

/* ---------- gizmo 页：居中 H1 + 一句话，下面一块深色面板（工具本体） ---------- */
.gizmo { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 16px; }
.gizmo-head { text-align: center; padding: 36px 0 0; }
.gizmo-head h1 { font-size: 46px; line-height: 1.1; text-wrap: balance; }
.gizmo-head .tagline { margin: 10px auto 0; max-width: 640px; color: var(--muted); font-size: 1.12rem; }
.tool {
  max-width: 860px; margin: 30px auto 0; padding: 26px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
}
.tool label { display: block; margin-bottom: 10px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.tool textarea, .tool input[type="text"], .tool input[type="number"], .tool input[type="search"], .tool select {
  display: block; width: 100%; padding: 16px 18px; font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; -webkit-appearance: none; appearance: none;
}
.tool textarea { min-height: 170px; resize: vertical; }
.tool textarea::placeholder, .tool input::placeholder { color: var(--muted); opacity: 1; }
.tool textarea:focus, .tool input:focus, .tool select:focus { border-color: var(--line-strong); }
.tool textarea:focus-visible, .tool input:focus-visible, .tool select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.stats li { padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.stats strong { display: block; font-size: 1.9rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stats span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.tool-buy { margin: 18px 0 0; }

/* ---------- 说明区、FAQ：居中、左对齐、行宽不超过约 760px ---------- */
.about, .faq { max-width: 760px; margin: 0 auto; text-align: left; }
.about { margin-top: 56px; }
.about h2, .faq h2 { margin: 36px 0 10px; font-size: 1.45rem; }
.about > h2:first-child { margin-top: 0; }
.about p, .about li { color: #dde1e6; }
.about p { margin: 0 0 1em; }
.about ul { margin: 0 0 1em; padding-left: 1.25em; }
.about li { margin-bottom: .4em; }
.about a, .faq a, .doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.faq { margin-top: 20px; padding-bottom: 8px; }
.faq h2 { margin-top: 0; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; color: var(--muted); font-size: 1.4rem; font-weight: 500; line-height: 1; }
details[open] > summary::after { content: "\2212"; }
summary:focus-visible { outline-offset: 0; border-radius: 4px; }
details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- 说明页（隐私、404） ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 16px; }
.doc h1 { margin: 0 0 8px; font-size: 40px; line-height: 1.1; }
.doc h2 { margin: 34px 0 8px; font-size: 1.3rem; }
.doc p, .doc li { color: #dde1e6; }
.doc p { margin: 0 0 1em; }
.doc ul { margin: 0 0 1em; padding-left: 1.25em; }
.doc li { margin-bottom: .4em; }
.doc .updated { color: var(--muted); font-size: .9rem; }
.doc a.btn { color: var(--on-accent); text-decoration: none; }

/* ---------- 页脚 ---------- */
.site-foot { max-width: calc(var(--max) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); margin: 40px auto 0; padding: 22px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-foot p { margin: 4px 0; }
.site-foot a { color: var(--ink); }
.foot-fan { color: var(--ink); }

/* ---------- 响应式：≥1024 四列；800～1023 三列；640～799 两列；<640 一列 ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 24px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 799px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  :root { --gutter: 16px; }
  .nav-inner { height: 60px; }
  .hero { padding: 36px 0 22px; }
  .hero h1 { font-size: 40px; }
  .hero .tagline { font-size: 1.05rem; }
  .cards { grid-template-columns: 1fr; gap: 16px; padding-bottom: 48px; }
  .cover { height: 112px; }
  .gizmo-head { padding-top: 24px; }
  .gizmo-head h1 { font-size: 32px; }
  .gizmo-head .tagline { font-size: 1rem; }
  .tool { margin-top: 22px; padding: 16px; border-radius: 20px; }
  .tool textarea { min-height: 150px; padding: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats strong { font-size: 1.6rem; }
  .about { margin-top: 40px; }
  .doc h1 { font-size: 32px; }
  .tool-actions .btn { flex: 1 1 auto; }
}
