/* 运营工具集（/tools/）：和名片生成同一套纸面语言。纸色 #f4f4ed、墨绿 #282c20，
   荧光绿只用在标题底色和悬停；Brier 衬线 + Mona Sans，字体用网站 /assets 里现成的。
   不用发光和阴影，线条不压在文字下面。 */

@font-face { font-family: "Brier"; src: url("/assets/67b6113a220f85ad6497495a_Brier-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("/assets/67bc6274c5b4108b123aa4d5_MonaSans-VariableFont_wdth,wght.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; }

:root {
  --bg: #f4f4ed;
  --panel: #fafaf6;
  --ink: #282c20;
  --ink-2: #535450;
  --ink-3: #878a7b;
  --line-strong: rgba(40, 44, 32, .3);
  --lime: #d2ff00;
  --display: "Brier", "Mona Sans", Georgia, serif;
  --sans: "Mona Sans", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --cn: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Mona Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.19, 1, .22, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* 顶栏 */
.tl-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 48px); }
.tl-brand { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1; letter-spacing: -.01em; text-decoration: none; }

/* 标题 */
.tl-main { max-width: 1120px; margin: 0 auto; padding: clamp(32px, 7vw, 96px) clamp(16px, 4vw, 48px) 96px; }
.tl-meta { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-2); }
.tl-meta i { font-style: normal; color: var(--ink-3); margin: 0 8px; }
.tl-meta-mid { color: var(--ink-3); }
.tl-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin: clamp(28px, 5vw, 56px) 0 0; line-height: 1; }
.tl-title-cn { font-family: var(--cn); font-weight: 800; font-size: clamp(40px, 6.4vw, 80px); letter-spacing: .02em; }
.tl-title-en { position: relative; z-index: 0; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.4vw, 68px); letter-spacing: -.01em; }
.tl-title-en::after { content: ""; position: absolute; left: -3px; right: -5px; bottom: .08em; height: .34em; background: var(--lime); z-index: -1; }
.tl-lead { margin: 20px 0 0; color: var(--ink-2); font-size: 16px; }

/* 工具列表 */
.tl-list { list-style: none; margin: clamp(36px, 6vw, 64px) 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.tl-list li { border-bottom: 1px solid var(--line-strong); }
.tl-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 28px 12px; text-decoration: none; transition: background-color .25s var(--ease); }
.tl-item:hover { background: var(--panel); }
.tl-num { align-self: start; padding-top: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--ink-3); }
.tl-body { display: grid; gap: 10px; min-width: 0; }
.tl-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; line-height: 1.15; }
.tl-name b { font-family: var(--cn); font-weight: 800; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: .02em; }
.tl-name em { font-family: var(--display); font-weight: 700; font-style: normal; font-size: clamp(22px, 2.6vw, 28px); color: var(--ink-2); }
.tl-desc { color: var(--ink-2); }
.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-tags i { font-style: normal; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--ink-2); }
.tl-go { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 8px; font-family: var(--cn); font-weight: 700; white-space: nowrap; transition: background-color .25s var(--ease); }
.tl-item:hover .tl-go { background: var(--lime); }
.tl-more { margin: 20px 0 0; font-size: 13px; color: var(--ink-3); }
.tl-courses { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0 12px 28px 108px; }
.tl-courses a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; text-underline-offset: 5px; }
.tl-courses a:hover { background: var(--lime); }

@media (max-width: 640px) {
  .tl-courses { padding: 0 4px 24px 52px; gap: 8px 20px; }
  .tl-brand { font-size: 38px; }
  .tl-meta-mid { display: none; }
  .tl-item { grid-template-columns: 36px minmax(0, 1fr); gap: 14px 12px; padding: 24px 4px; }
  .tl-num { padding-top: 6px; }
  .tl-go { grid-column: 2; justify-self: start; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
