:root {
  --ink: #171916;
  --paper: #f1f0eb;
  --paper-strong: #faf9f5;
  --line: #c9ccc4;
  --muted: #626861;
  --dark: #121512;
  --signal: #b8d956;
  --signal-deep: #637d18;
  --action: #3559e8;
  --alert: #da6249;
  font-family: "Aptos", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.site-shell { min-height: 100vh; }
.site-header { display: flex; justify-content: space-between; align-items: center; max-width: 1220px; margin: 0 auto; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.site-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.site-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #90988b; color: var(--signal-deep); font-family: "Cascadia Code", Consolas, monospace; font-size: 10px; font-weight: 700; }
.site-brand strong { font-family: "Bahnschrift SemiCondensed", "Noto Sans SC", sans-serif; font-size: 19px; font-weight: 600; }
.site-brand small { display: block; margin-top: 2px; color: var(--muted); font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 10px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--action); }
.language-pair { display: flex; gap: 2px; padding-left: 13px; border-left: 1px solid var(--line); }
.language-pair a { min-width: 31px; padding: 5px 6px; text-align: center; }
.language-pair a.is-current { color: #f1f4ed; background: var(--dark); }
.site-main { max-width: 1220px; margin: 0 auto; padding: 0 28px 58px; }

.site-hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 70px; padding: 76px 0 64px; }
.eyebrow { margin: 0; color: var(--signal-deep); font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.site-hero h1 { max-width: 700px; margin: 17px 0 20px; font-family: "Bahnschrift SemiCondensed", "Noto Sans SC", sans-serif; font-size: clamp(48px, 6vw, 70px); line-height: 1; font-weight: 600; }
.site-hero h1 em { color: var(--signal-deep); font-style: normal; }
.site-hero p { max-width: 590px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.hero-aside { align-self: end; padding: 16px 0 4px 20px; border-left: 1px solid var(--line); }
.hero-aside strong { display: block; margin: 8px 0 7px; font-family: "Bahnschrift SemiCondensed", sans-serif; font-size: 36px; font-weight: 600; }
.hero-aside p { font-size: 10px; line-height: 1.65; }

.site-section { padding: 34px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-head h2 { margin: 7px 0 0; font-family: "Bahnschrift SemiCondensed", "Noto Sans SC", sans-serif; font-size: 25px; font-weight: 600; }
.tool-directory, .tool-directory.has-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tool-entry { position: relative; min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tool-link { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: auto auto; min-height: 116px; align-content: center; padding: 18px 50px 18px 18px; color: var(--ink); background: transparent; text-decoration: none; transition: background .18s ease; }
.tool-link::after { content: ""; position: absolute; right: 18px; bottom: 18px; width: 18px; height: 1px; background: var(--line); transition: width .18s ease, background .18s ease; }
.tool-link:hover { background: var(--paper-strong); }
.tool-link:hover::after { width: 30px; background: var(--action); }
.tool-code { grid-row: 1 / 3; align-self: center; color: var(--signal-deep); font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; font-weight: 700; }
.tool-link strong { align-self: end; font-family: "Bahnschrift SemiCondensed", "Noto Sans SC", sans-serif; font-size: 16px; font-weight: 600; }
.tool-link span:last-child { align-self: start; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.directory-favorite { position: absolute; top: 13px; right: 13px; z-index: 1; width: 26px; height: 26px; padding: 0; border: 0; color: #90978f; background: transparent; font-size: 15px; }
.directory-favorite:hover, .directory-favorite[aria-pressed="true"] { color: var(--signal-deep); }
.site-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 390px); gap: 48px; align-items: start; }
.site-note h2 { max-width: 450px; margin: 8px 0 0; font-family: "Bahnschrift SemiCondensed", "Noto Sans SC", sans-serif; font-size: 28px; line-height: 1.15; font-weight: 600; }
.site-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); color: #8d948c; font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--action); }

.tool-breadcrumb { padding-top: 29px; color: var(--muted); font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; }
.tool-breadcrumb a { text-decoration: none; }
.tool-breadcrumb a:hover { color: var(--action); }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 54px; padding: 50px 0 64px; }
.tool-hero h1 { max-width: 760px; margin: 14px 0 15px; font-family: "Bahnschrift SemiCondensed", "Noto Sans SC", sans-serif; font-size: clamp(42px, 5vw, 62px); line-height: 1; font-weight: 600; }
.tool-hero .lede { max-width: 690px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.tool-aside { align-self: end; padding: 16px 0 0 18px; border-left: 1px solid var(--line); }
.tool-aside h2 { margin: 0 0 11px; font-family: "Bahnschrift SemiCondensed", "Noto Sans SC", sans-serif; font-size: 14px; font-weight: 600; }
.tool-aside ul { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 10px; line-height: 1.5; }
.tool-aside li::before { content: "/"; margin-right: 8px; color: var(--alert); }
.tool-aside a { text-decoration: none; }
.tool-aside a:hover { color: var(--action); }

.tool-workbench { overflow: hidden; border: 1px solid #2e342e; background: var(--dark); box-shadow: 0 24px 60px rgba(24, 28, 22, .12); }
.workbench-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-bottom: 1px solid #303630; color: #9da69d; font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; }
.workbench-top button, .workbench-top a { border: 0; color: #8ca2ff; background: transparent; font-size: 9px; text-decoration: none; cursor: pointer; }
.favorite-tool { margin-right: 2px; }
.workbench-grid { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); min-height: 312px; }
.workbench-pane { display: flex; flex-direction: column; min-width: 0; padding: 16px; }
.workbench-pane.output { background: #181c18; }
.workbench-pane textarea { flex: 1; min-height: 190px; resize: vertical; border: 0; outline: 0; color: #edf0e9; background: transparent; font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.75; }
.workbench-pane textarea::placeholder { color: #626b62; }
.output-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #9da69d; font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; }
.output-head button { border: 0; color: #8ca2ff; background: transparent; font-size: 9px; cursor: pointer; }
.output-head button:hover { color: #c1ccff; }
.workbench-meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; color: #626b62; font-family: "Cascadia Code", Consolas, monospace; font-size: 8px; }
.workbench-middle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-right: 1px solid #303630; border-left: 1px solid #303630; }
.run-tool { display: flex; justify-content: space-between; align-items: center; gap: 17px; min-width: 66px; padding: 10px 11px; border: 1px solid var(--signal); color: var(--dark); background: var(--signal); font-size: 10px; font-weight: 700; }
.run-tool:hover { color: var(--signal); background: transparent; }
.run-hint { color: #626b62; font-family: "Cascadia Code", Consolas, monospace; font-size: 7px; writing-mode: vertical-rl; }
.tool-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 27px; }
.info-block { padding: 17px 0; border-top: 2px solid var(--alert); background: transparent; }
.info-block h2 { margin: 0 0 9px; font-family: "Bahnschrift SemiCondensed", "Noto Sans SC", sans-serif; font-size: 15px; font-weight: 600; }
.info-block p, .info-block li { color: var(--muted); font-size: 11px; line-height: 1.8; }
.info-block p { margin: 0; }
.info-block ul { padding-left: 17px; margin: 0; }
.faq-section { padding-top: 34px; border-top: 1px solid var(--line); }
.faq-section h2 { margin: 0 0 15px; font-family: "Bahnschrift SemiCondensed", "Noto Sans SC", sans-serif; font-size: 21px; font-weight: 600; }
.faq-list { display: grid; }
.faq-list details { padding: 15px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-size: 12px; font-weight: 600; }
.faq-list p { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }

.legal-hero { padding: 64px 0 38px; }
.legal-hero h1 { margin: 14px 0 10px; font-family: "Bahnschrift SemiCondensed", "Noto Sans SC", sans-serif; font-size: clamp(42px, 6vw, 64px); line-height: 1; font-weight: 600; }
.legal-hero p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.legal-copy { max-width: 780px; padding: 34px 0 62px; border-top: 1px solid var(--line); }
.legal-copy h2 { margin: 27px 0 8px; font-family: "Bahnschrift SemiCondensed", "Noto Sans SC", sans-serif; font-size: 17px; font-weight: 600; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.file-input { display: none; }
.tool-file-control { margin: auto 0; color: #9da69d; font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; line-height: 1.6; }
.tool-file-control .file-picker { display: inline-flex; margin-bottom: 12px; padding: 10px 13px; border: 1px solid #59654a; color: var(--signal); background: transparent; font-size: 10px; font-weight: 600; cursor: pointer; }
.tool-file-control .file-picker:hover { color: var(--dark); background: var(--signal); }
.tool-file-control > span { display: block; overflow-wrap: anywhere; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 5; max-width: 320px; padding: 11px 14px; border-left: 2px solid var(--signal); color: #eff2eb; background: var(--dark); box-shadow: 0 16px 40px rgba(10, 12, 10, .22); font-size: 10px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.site-hero > div, .hero-aside, .tool-hero > .eyebrow, .tool-hero > h1, .tool-hero > .lede, .tool-workbench { animation: enter .5s ease both; }
.hero-aside, .tool-hero > h1 { animation-delay: .06s; }
.tool-hero > .lede { animation-delay: .11s; }
.tool-workbench { animation-delay: .16s; }

@media (max-width: 760px) {
  .site-header, .site-main { padding-right: 18px; padding-left: 18px; }
  .site-header { align-items: start; }
  .site-nav { gap: 10px; }
  .site-nav > a:first-child { display: none; }
  .site-hero, .tool-layout { display: block; }
  .site-hero { padding: 52px 0 50px; }
  .hero-aside, .tool-aside { margin-top: 34px; padding-left: 0; border-left: 0; }
  .tool-directory, .tool-directory.has-controls, .tool-info-grid { grid-template-columns: 1fr; }
  .tool-layout { padding-top: 42px; }
  .workbench-grid { display: block; }
  .workbench-middle { flex-direction: row; justify-content: space-between; padding: 12px 16px; border-top: 1px solid #303630; border-bottom: 1px solid #303630; }
  .run-hint { writing-mode: initial; }
  .workbench-pane textarea { min-height: 150px; }
  .site-note { display: block; }
  .site-note p { margin-top: 20px; }
}
@media (max-width: 480px) {
  .site-brand small { display: none; }
  .site-nav { font-size: 9px; }
  .site-hero h1, .tool-hero h1 { font-size: 44px; }
  .tool-link { grid-template-columns: 52px minmax(0, 1fr); min-height: 108px; padding-left: 14px; }
  .site-footer { display: block; line-height: 1.9; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 2026 interface system */
:root {
  --ink: #151915;
  --paper: #f5f6f1;
  --paper-strong: #ffffff;
  --line: #d8ddd4;
  --muted: #697168;
  --dark: #151915;
  --signal: #c7f36a;
  --signal-deep: #3c6d19;
  --action: #245bd7;
  --alert: #df6048;
  font-family: "Aptos", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
}
body {
  background-color: var(--paper);
  background-image: none;
}
::selection { color: var(--dark); background: var(--signal); }
html { scroll-padding-top: 84px; }
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  max-width: none;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.site-brand { gap: 10px; }
.site-brand-mark {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  color: var(--dark);
  background: var(--signal);
  box-shadow: inset 0 0 0 1px rgba(21, 25, 21, .12);
}
.site-brand strong { font-size: 20px; letter-spacing: -.01em; }
.site-brand small { font-size: 7px; }
.site-nav { gap: 16px; font-size: 11px; }
.site-nav > a { font-weight: 600; }
.language-pair a { border-radius: 4px; }
.language-pair a.is-current { color: var(--dark); background: var(--signal); }
.site-main { max-width: 1180px; padding-right: 0; padding-left: 0; }

.site-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 74px;
  padding: 62px 0 54px;
  overflow: hidden;
}
.site-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(rgba(30, 38, 30, .032) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 38, 30, .032) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}
.site-hero::after {
  content: "//";
  position: absolute;
  z-index: -1;
  right: 198px;
  bottom: -42px;
  color: rgba(35, 46, 35, .035);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 180px;
  font-weight: 700;
}
.eyebrow { font-size: 8px; }
.site-hero h1 { margin: 14px 0 18px; font-size: clamp(46px, 6vw, 68px); letter-spacing: -.015em; }
.site-hero h1 em { color: var(--action); }
.site-hero p { font-size: 14px; line-height: 1.8; }
.hero-aside {
  align-self: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .68);
}
.hero-aside strong { margin: 8px 0 6px; font-size: 38px; }
.hero-aside p { font-size: 9px; }

.site-section { padding: 38px 0 44px; }
.section-head { align-items: center; margin-bottom: 18px; }
.section-head h2 { font-size: 23px; letter-spacing: -.01em; }
.directory-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(340px, 100%);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
}
.directory-search:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px rgba(36, 91, 215, .08); }
.directory-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.directory-search input::placeholder { color: #929991; }
.tool-directory, .tool-directory.has-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border: 0; }
.tool-entry { border: 0; }
.tool-entry[hidden] { display: none; }
.tool-link {
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 126px;
  padding: 18px 45px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 0 rgba(25, 31, 25, .03);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tool-link:hover { transform: translateY(-2px); border-color: #afb8ad; background: #fff; box-shadow: 0 9px 24px rgba(30, 37, 30, .07); }
.tool-link::after { height: 2px; }
.tool-code { color: var(--action); }
.tool-link strong { font-size: 15px; }
.directory-favorite { top: 10px; right: 10px; border-radius: 4px; }
.directory-favorite:hover, .directory-favorite[aria-pressed="true"] { color: var(--action); background: #edf1eb; }

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px dashed #c7cdc4;
  border-radius: 6px;
  color: #8c948b;
  background: rgba(255, 255, 255, .46);
  font-family: "Cascadia Code", Consolas, monospace;
  text-align: center;
}
.ad-slot span { font-size: 8px; font-weight: 700; }
.ad-slot small { font-size: 7px; }
.ad-slot-horizontal { min-height: 82px; margin: 4px 0 34px; }
.ad-slot-rail { min-height: 210px; margin-top: 28px; }

.site-note { gap: 72px; }
.site-note h2 { font-size: 29px; letter-spacing: -.01em; }
.site-footer { padding: 20px 0 24px; }

.tool-breadcrumb { padding-top: 24px; }
.tool-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 48px; padding: 42px 0 60px; }
.tool-hero h1 { margin: 13px 0 15px; font-size: clamp(42px, 5vw, 58px); letter-spacing: -.015em; }
.tool-hero .lede { font-size: 14px; line-height: 1.8; }
.tool-aside {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 18px 0 0 20px;
  border-left-color: var(--line);
}
.tool-aside h2 { font-size: 15px; }
.tool-aside ul { gap: 11px; }
.tool-aside li::before { color: var(--alert); }
.tool-workbench { margin-top: 30px; border-radius: 8px; box-shadow: 0 18px 48px rgba(30, 37, 30, .1); }
.workbench-top { background: #181d18; }
.run-tool { border-radius: 5px; }
.tool-info-grid { gap: 22px; margin-top: 30px; }
.info-block { padding: 18px 0 0; border-top-width: 1px; border-top-color: var(--line); }
.info-block:first-child { border-top-color: var(--action); }
.info-block:last-child { border-top-color: var(--signal-deep); }
.faq-section { padding-top: 38px; }
.faq-list details { padding: 17px 0; }

.legal-hero { padding: 58px 0 36px; }
.legal-hero h1 { font-size: clamp(42px, 6vw, 60px); letter-spacing: -.015em; }

@media (max-width: 1228px) {
  .site-header { padding-right: 24px; padding-left: 24px; }
  .site-main { margin-right: 24px; margin-left: 24px; }
}
@media (max-width: 900px) {
  .tool-directory, .tool-directory.has-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 32px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 60px; padding-right: 18px; padding-left: 18px; }
  .site-main { margin-right: 18px; margin-left: 18px; padding-right: 0; padding-left: 0; }
  .site-hero { padding: 44px 0 46px; }
  .site-hero::after { right: -18px; bottom: 0; font-size: 130px; }
  .hero-aside { margin-top: 28px; padding: 15px; border: 1px solid var(--line); }
  .section-head { align-items: stretch; flex-direction: column; }
  .directory-search { width: 100%; }
  .tool-layout { display: block; }
  .tool-aside { position: static; margin-top: 32px; padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .tool-aside ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-slot-rail { min-height: 76px; margin-top: 24px; }
  .tool-workbench { margin-top: 26px; }
  .site-note { display: block; }
}
@media (max-width: 480px) {
  .site-brand-mark { width: 30px; height: 30px; }
  .site-brand strong { font-size: 18px; }
  .site-nav { gap: 7px; }
  .language-pair { padding-left: 7px; }
  .tool-directory, .tool-directory.has-controls { grid-template-columns: 1fr; }
  .tool-link { min-height: 108px; }
  .site-hero h1, .tool-hero h1 { font-size: 43px; }
  .tool-aside ul { grid-template-columns: 1fr; }
}
