:root {
  --bg: #f7f8fa; --panel: #fff; --text: #182333; --muted: #576477; --line: #dce2eb;
  --accent: #2455d6; --accent-dark: #1b40a4; --warn: #a52e19;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 44px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.4; }
button:hover, .button:hover { border-color: #a0b0c9; background: #f3f6fb; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover, .button.primary:hover { background: var(--accent-dark); }
:focus-visible { outline: 3px solid #2455d6; outline-offset: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--text); color: #fff; z-index: 20; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { width: min(1184px, calc(100% - 48px)); margin: auto; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -.6px; white-space: nowrap; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 7px); gap: 4px; padding: 10px; border-radius: 11px; background: var(--accent); transform: rotate(-5deg); }
.brand-mark i { width: 7px; height: 7px; background: #fff; border-radius: 2px; }
.brand-mark i:last-child { background: #cdf373; }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--accent-dark); }
.primary-nav { margin-left: auto; gap: 6px; }
.primary-nav a { padding: 10px 14px; border-radius: 9px; font-weight: 600; }
.primary-nav a[aria-current] { background: #edf2ff; }
.language-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); text-decoration: none; font-size: 13px; }
.hero, .page-heading, .tool-intro, .section, .tool-workspace { width: min(1184px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 70px; align-items: center; padding: 64px 0 56px; }
h1, h2, h3, strong { line-height: 1.25; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { font-size: clamp(2.15rem, 4vw, 3.2rem); margin: 10px 0 16px; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin: 0 0 16px; }
h3 { font-size: 1.15rem; }
.hero h1 { font-size: clamp(2.8rem, 4.8vw, 4.25rem); line-height: 1.08; margin: 21px 0; letter-spacing: -.055em; }
.hero h1 span { color: var(--accent); }
.hero-copy > p:not(.local-badge) { font-size: 17px; color: var(--muted); max-width: 480px; }
.local-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 650; color: #28583e; background: #e7f1e9; border: 1px solid #d1e2d5; border-radius: 30px; padding: 5px 12px; margin: 0; }
.local-badge > span { width: 6px; height: 6px; background: #34764b; border-radius: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; }
.quiet-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 650; font-size: 13px; color: var(--text); text-decoration: none; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 22px; }
.hero-shortcuts { padding: 28px; background: #eef1f6; border: 1px solid #e2e7ef; border-radius: 24px; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.shortcut { display: flex; align-items: center; gap: 16px; border: 1px solid rgba(24,35,51,.07); border-radius: 13px; padding: 19px 17px; margin-top: 12px; color: var(--text); text-decoration: none; box-shadow: 0 3px 0 rgba(24,35,51,.03); transition: transform .15s ease; }
.shortcut:hover { transform: translateY(-3px); }
.shortcut > span:last-child { margin-left: auto; }
.shortcut small { font-size: 11px; color: #48576a; display: block; margin-bottom: 5px; }
.shortcut strong { font-size: 15px; display: block; }
.shortcut-symbol { font: 700 24px/1 ui-monospace, monospace; width: 40px; flex-shrink: 0; white-space: nowrap; }
.shortcut-blue { background: #e0e9ff; }.shortcut-green { background: #e8f2d8; }.shortcut-peach { background: #fbe9d8; }
.shortcut-foot { font-size: 11px; color: var(--muted); margin: 19px 0 0; text-align: center; }
.section { padding: 36px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; }
.count-label { color: var(--muted); font: 12px ui-monospace, monospace; white-space: nowrap; padding-bottom: 5px; }
.catalog-section { border-top: 1px solid var(--line); }
.search-form { display: flex; align-items: center; gap: 10px; padding: 8px 9px 8px 18px; background: #fff; border: 1px solid #bcc9dc; border-radius: 13px; box-shadow: 0 4px 16px #18233304; }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #2455d61f; }
.search-form input { flex: 1; width: 0; min-width: 0; border: 0; height: 44px; background: transparent; color: var(--text); padding: 8px; outline: 0; font-size: 15px; }
.search-form input::placeholder { color: #69778c; }
.search-icon { color: var(--muted); font-size: 29px; line-height: 1; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.filter-bar button { min-height: 40px; padding: 8px 16px; border-radius: 24px; font-size: 12px; background: transparent; font-weight: 600; }
.filter-bar button[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.catalog-meta { display: flex; justify-content: space-between; align-items: center; min-height: 56px; gap: 10px; font-size: 12px; color: var(--muted); }
.catalog-meta p { margin: 0; }
.text-button { border: 0; padding: 6px 0; font-size: 12px; color: var(--accent-dark); background: none; min-height: 44px; }
.tool-grid, .article-grid, .category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-grid.small, .article-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-card, .article-card, .category-card { min-width: 0; display: flex; flex-direction: column; gap: 11px; padding: 23px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; overflow-wrap: anywhere; }
.tool-card:hover, .article-card:hover, .category-card:hover { border-color: #8da4cc; box-shadow: 0 5px 16px #18233308; }
.tool-card strong, .article-card strong, .category-card strong { font-size: 16px; letter-spacing: -.02em; }
.tool-card p, .article-card p, .category-card p { font-size: 12px; color: var(--muted); line-height: 1.65; margin: 0; }
.tool-card > span, .article-card > span, .category-card > span:not(.tool-icon) { color: var(--muted); font-size: 11px; }
.catalog-grid .tool-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-top { display: flex; align-items: center; gap: 11px; margin-bottom: 5px; }
.card-top > span:not(.tool-icon) { font-size: 10px; color: var(--muted); }
.card-arrow { margin-left: auto; font-size: 17px !important; }
.tool-icon { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; border-radius: 10px; font: 650 17px/1 ui-monospace, monospace; background: #e9eef7; color: #3c5277; flex-shrink: 0; }
[data-tone="csv-tools"] { background: #e0efe6; color: #275841; }[data-tone="json-tools"] { background: #e3eaff; color: #294da4; }[data-tone="text-tools"] { background: #f6e7d9; color: #85501b; }[data-tone="markdown-html-tools"] { background: #eee6f8; color: #68448f; }[data-tone="spreadsheet-tools"] { background: #e2eeed; color: #285f5b; }[data-tone="workflow-printables"] { background: #f2edcc; color: #6b601f; }
.catalog-more { text-align: center; margin: 26px 0 0; }.catalog-more p { color: var(--muted); font-size: 11px; }
.empty-state { text-align: center; padding: 38px 20px; border: 1px dashed #becbdc; border-radius: 14px; color: var(--muted); background: #fff; }.empty-state > span { font-size: 30px; }.empty-state h3 { color: var(--text); }.empty-state p { margin: 0 0 12px; }
.category-card { padding: 24px; }.category-card .tool-icon { margin-bottom: 4px; }
.guide-feature { padding-bottom: 64px; }.article-card > span { letter-spacing: .08em; display: flex; justify-content: space-between; }
.page-heading, .tool-intro { padding: 40px 0 28px; }.page-heading > p:not(.eyebrow), .tool-intro > p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.page-heading .inline-note { font-size: 12px !important; display: flex; flex-wrap: wrap; gap: 16px; }
.page-heading + .catalog-section { padding-top: 28px; }
.narrow { max-width: 780px; }.muted-copy, .plain-list { color: var(--muted); }.muted-copy { margin: 0 0 14px; }.plain-list { padding-left: 20px; }.plain-list li { margin: 8px 0; }.plain-list a { color: var(--accent-dark); }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }.two-column > * { min-width: 0; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; text-decoration: none; margin-bottom: 10px; }.back-link::before { content: "←"; margin-right: 8px; }
.privacy-note { display: inline-block; font-size: 12px; max-width: 760px; color: #365c47; background: #eaf2ed; border-radius: 8px; padding: 8px 12px; margin-top: 4px; }
.disclaimer-note { font-size: 12px; max-width: 760px; padding: 10px 12px; background: #fff2e2; border: 1px solid #e9ceb0; border-radius: 8px; color: #795323; margin-top: 10px; }
.tool-intro h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0 0 10px; }
.tool-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; margin-bottom: 20px; }
.panel, .options-panel { min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.options-panel h2 { font-size: 15px; margin: 0 0 18px; letter-spacing: 0; }.output-panel { grid-column: 1 / -1; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }.panel-head label { font-size: 14px; font-weight: 700; }.panel-head button { font-size: 12px; }
.compact-actions, .action-stack { display: flex; flex-wrap: wrap; gap: 8px; }.action-stack { margin-top: 20px; }.action-stack .primary { flex: 1; }
textarea { display: block; width: 100%; min-height: 220px; max-height: 65vh; resize: vertical; border: 1px solid #ccd5e3; border-radius: 9px; background: #fafbfd; padding: 14px; color: var(--text); font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.output-panel textarea { background: #f6f8fc; }textarea:focus { background: #fff; }
.option-row, .inline-controls label { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-bottom: 16px; font-size: 12px; font-weight: 650; }
.option-row:has(input[type="checkbox"]) { flex-direction: row; justify-content: space-between; align-items: center; min-height: 44px; }.option-row input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--accent); }
input[type="text"], input[type="number"], select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #ccd5e3; border-radius: 8px; color: var(--text); background: #fff; }
.inline-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.error { margin: 0 0 10px; padding: 12px; border-radius: 8px; background: #fff0ec; border: 1px solid #ecbeb0; color: var(--warn); font-size: 13px; }.status { font-size: 12px; color: var(--muted); margin: 12px 0 0; min-height: 22px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }summary { cursor: pointer; font-weight: 650; min-height: 30px; }details p { color: var(--muted); font-size: 14px; }
.table-preview { max-height: 360px; overflow: auto; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 8px; }.table-preview table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }.table-preview th, .table-preview td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }.table-preview th { background: #edf2fa; }
.printable-preview { max-height: 550px; background: #fff; }.print-sheet { padding: 18px; color: #111; }.print-sheet .print-title { font-size: 1.6rem; margin: 0 0 12px; }.print-sheet h2 { font-size: 1.05rem; border-bottom: 1px solid var(--line); padding-bottom: 4px; margin: 18px 0 8px; }.preview-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-weight: 500; }.preview-check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 4px; }.preview-disclaimer { border-left: 4px solid #e4c29b; background: #fff8ed; padding: 8px 10px; }
.guide-group-list { display: grid; gap: 32px; }.guide-group { border-bottom: 1px solid var(--line); padding-bottom: 28px; }.guide-group h3 { margin-top: 0; }.guide-group p { color: var(--muted); }.article-body { display: grid; gap: 22px; }.article-body section { border-bottom: 1px solid var(--line); padding-bottom: 20px; }.article-body p { color: #455268; }
.site-footer { margin-top: 32px; padding: 40px 0 22px; border-top: 1px solid var(--line); background: #fff; }.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; }.footer-inner p { color: var(--muted); font-size: 12px; max-width: 410px; }.footer-inner nav { align-items: start; align-content: start; font-size: 12px; }.footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; }.footer-note { grid-column: 1/-1; border-top: 1px solid #edf0f5; padding-top: 20px; margin: 0; max-width: none !important; }.brand-dot { color: var(--accent); }
.zh-hero h1 { letter-spacing: -.04em; line-height: 1.35; }.zh-hero { padding-bottom: 40px; }.zh-info { padding: 30px; background: #eef2fa; border-radius: 18px; border: 1px solid var(--line); }.zh-info p { color: var(--muted); }.zh-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }.category-state { display: inline-block; background: #f0f3f8; color: var(--muted); border-radius: 20px; font-size: 11px; padding: 3px 9px; width: fit-content; }.data-key-list code { overflow-wrap: anywhere; font-size: 12px; }.language-notice { padding: 16px 20px; border-left: 3px solid var(--accent); background: #edf2ff; font-size: 13px; border-radius: 4px 10px 10px 4px; }
@media (max-width: 1000px) {
 .hero { gap: 28px; }.hero-shortcuts { padding: 20px; }.shortcut { padding: 16px 12px; }.header-inner { gap: 15px; }.primary-nav a { padding: 10px; }.hero h1 { font-size: 3.1rem; }.footer-inner { grid-template-columns: 1fr; }.zh-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
 .header-inner, .footer-inner, .hero, .page-heading, .tool-intro, .section, .tool-workspace { width: calc(100% - 36px); }
 .header-inner { flex-wrap: wrap; gap: 0; min-height: 112px; padding: 14px 0 8px; }.brand { font-size: 18px; }.brand-mark { padding: 8px; }.language-link { margin-left: auto; order: 1; min-height: 40px; padding: 7px 10px; }.primary-nav { order: 2; width: 100%; margin: 10px 0 0; gap: 4px; }.primary-nav a { padding: 8px 13px; font-size: 13px; min-height: 40px; }.primary-nav a:first-child { margin-left: -9px; }
 .hero { grid-template-columns: minmax(0,1fr); gap: 30px; padding: 32px 0 30px; }.hero h1 { font-size: clamp(2.5rem, 9vw, 3.3rem); margin: 19px 0; }.hero-copy > p:not(.local-badge) { font-size: 15px; }.hero-actions { gap: 14px; margin-top: 21px; }.hero-proof { gap: 17px; margin-top: 18px; font-size: 11px; }.hero-shortcuts { padding: 17px; border-radius: 17px; }.shortcut { padding: 15px; }.shortcut small { font-size: 10px; }.shortcut strong { font-size: 14px; }.shortcut-symbol { font-size: 21px; }.shortcut-foot { margin-top: 14px; }.hero-shortcuts .eyebrow { margin-bottom: 8px; }
 .section { padding: 28px 0; }.section-heading { gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }.section-heading h2 { font-size: 1.5rem; }.count-label { font-size: 10px; }.search-form { padding-left: 12px; gap: 3px; }.search-form input { font-size: 13px; }.search-form button { padding: 10px 13px; font-size: 12px; }.search-icon { font-size: 24px; }.filter-bar { gap: 6px; margin-top: 14px; }.filter-bar button { padding: 8px 12px; font-size: 11px; min-height: 44px; }.catalog-meta { font-size: 11px; }
 .tool-grid, .tool-grid.small, .article-grid, .article-grid.compact { grid-template-columns: minmax(0,1fr); gap: 12px; }.category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.category-card { padding: 18px; }.category-card strong { font-size: 14px; }.category-card p { font-size: 11px; }.tool-card, .article-card { padding: 21px; }.tool-card strong { font-size: 16px; }.catalog-grid .tool-card p { font-size: 12px; }.card-top { margin-bottom: 0; }.card-top .tool-icon { width: 32px; height: 32px; }.guide-feature { padding-bottom: 36px; }
 .page-heading, .tool-intro { padding: 25px 0 22px; }.page-heading h1 { font-size: 2.15rem; }.page-heading > p:not(.eyebrow), .tool-intro > p:not(.eyebrow) { font-size: 14px; }.tool-workspace, .two-column, .inline-controls { grid-template-columns: minmax(0,1fr); gap: 14px; }.tool-workspace { gap: 12px; }.panel, .options-panel { padding: 16px; }.panel-head { flex-wrap: wrap; gap: 10px; }.panel-head label { width: auto; flex: 1; }.panel-head .compact-actions { width: 100%; }.compact-actions button { flex: 1; }.output-panel { grid-column: auto; }.options-panel .option-row { margin-bottom: 10px; }.options-panel h2 { margin-bottom: 12px; }textarea { min-height: 200px; }.action-stack { margin-top: 14px; }.back-link { margin-bottom: 2px; }.privacy-note { font-size: 11px; }.tool-intro h1 { font-size: 1.9rem; }
 .footer-inner { gap: 18px; }.footer-inner nav { gap: 8px 20px; }.site-footer { padding-top: 28px; }.zh-info { padding: 23px; }.zh-hero h1 { font-size: 2.5rem; }.zh-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .tool-intro,
  .options-panel,
  .panel:not(.output-panel),
  .output-panel .panel-head,
  .output-panel textarea,
  .status,
  .section {
    display: none !important;
  }

  .tool-workspace {
    width: auto;
    margin: 0;
    display: block;
  }

  .output-panel {
    border: 0;
    padding: 0;
  }

  .printable-preview,
  .table-preview {
    display: block !important;
    max-height: none;
    overflow: visible;
    border: 0;
  }

  .print-sheet {
    padding: 0;
    font-size: 12pt;
  }
}


@media (max-width: 760px) { .hero:not(.zh-hero) .hero-shortcuts { display: none; } }

@media (max-width: 760px) { .hero:not(.zh-hero) { padding-bottom: 24px; } .tool-intro .eyebrow { margin-bottom: 5px; } }

.preset-bar { width: min(1120px, calc(100% - 64px)); margin: 0 auto 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.preset-bar label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.preset-bar select { max-width: 480px; }
.preset-bar p, .preset-count { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 760px) { .preset-bar { width: calc(100% - 36px); } }
@media print { .preset-bar { display: none !important; } }

.print-text { display: none; }
.print-sheet .print-title { border: 0; padding: 0; }
@media print {
  .print-text:not([hidden]) { display: block; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 11pt/1.5 ui-monospace, monospace; color: #111; }
}
