:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --ink: #202824;
  --muted: #4d5952;
  --line: #dce2dd;
  --brand: #265b4a;
  --brand-dark: #1b4b3b;
  --soft: #e8f0eb;
  --good: #246046;
  --danger: #a13345;
  --white: #fff;
  --radius: 11px;
  --font: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; font: 500 1rem/1.55 var(--font); color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #43836b; outline-offset: 3px; }
button:disabled { cursor: not-allowed; }
.shell { max-width: 1080px; padding-inline: 32px; margin-inline: auto; }
.skip { position: fixed; inset: 8px auto auto 8px; translate: 0 -150%; z-index: 5; background: white; padding: 8px 14px; }
.skip:focus { translate: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { min-height: 64px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; font-size: 1.28rem; font-weight: 700; letter-spacing: -.034em; line-height: 1; }
.brand small { margin-inline-start: 7px; font-size: .73rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.brand-mark { display: grid; place-items: center; background: var(--brand); width: 34px; height: 34px; border-radius: 9px; }
.brand-mark i { width: 17px; height: 15px; border: 1.5px solid white; position: relative; overflow: hidden; border-radius: 3px; }
.brand-mark i::before { content: ""; position: absolute; top: 2px; left: 3px; width: 3px; height: 3px; background: white; border-radius: 50%; }
.brand-mark i::after { content: ""; position: absolute; width: 12px; height: 12px; left: 5px; top: 6px; border: 1.5px solid white; rotate: 45deg; }
.main-nav { display: flex; align-items: stretch; align-self: stretch; gap: 24px; }
.main-nav a, .footer-inner nav a { display: flex; align-items: center; font-size: .9rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.main-nav a { position: relative; }
.main-nav a[aria-current], .main-nav a:hover, .footer-inner a:hover { color: var(--brand-dark); }
.main-nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--brand); border-radius: 2px; }
.locale { display: flex; background: #edf0ec; border: 1px solid #e8ede8; padding: 3px; border-radius: 9px; margin-inline-start: auto; gap: 2px; }
.locale a { display: grid; place-items: center; min-width: 31px; min-height: 31px; border-radius: 6px; font-size: .81rem; font-weight: 700; color: var(--muted); }
.locale a[aria-current] { color: var(--brand-dark); background: white; box-shadow: 0 1px 3px #283f2414; }
h1, h2, h3, p { margin: 0; }
.page-intro { padding-block: 43px 27px; }
.page-intro h1 { font-size: clamp(1.95rem, 4vw, 2.8rem); line-height: 1.14; font-weight: 700; letter-spacing: -.04em; margin-bottom: 7px; }
html[lang="zh-Hans"] .page-intro h1 { letter-spacing: -.025em; }
.page-intro p, .intro { font-size: 1rem; line-height: 1.6; color: var(--muted); max-width: 66ch; text-wrap: pretty; }
::selection { background: #d2e6dd; color: var(--ink); }
.workbench { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.tool-tabs { display: flex; gap: 7px; align-items: center; padding: 7px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tool-tabs a { white-space: nowrap; color: var(--muted); font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; min-height: 39px; border-radius: 6px; padding-inline: 12px; }
.tool-tabs a:hover { color: var(--brand-dark); background: #f1f4f1; }
.tool-tabs .selected { color: var(--brand-dark); background: var(--soft); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .54fr); }
.board { padding: 20px; min-width: 0; display: flex; flex-direction: column; position: relative; }
.dropzone { min-height: 320px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 12px; border: 1px dashed #afc3b7; background: #fafcf9; border-radius: 9px; }
.board.dragging .dropzone { border-color: var(--brand); background: #edf4ef; }
.board.dragging::after { content: ""; border: 2px dashed var(--brand); border-radius: 12px; inset: 12px; position: absolute; pointer-events: none; }
.upload-mark { border-radius: 9px; background: #e8f1eb; width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 10px; }
.upload-mark i { width: 25px; height: 25px; position: relative; color: var(--brand); background: linear-gradient(currentColor,currentColor) center 3px / 2px 13px no-repeat; }
.upload-mark i::before { content: ""; position: absolute; inset: 4px auto auto 8px; width: 9px; height: 9px; border: 2px solid; border-right: 0; border-bottom: 0; transform: rotate(45deg); }
.upload-mark i::after { content: ""; position: absolute; inset: 13px 1px 1px; border: 2px solid; border-top: 0; border-radius: 0 0 4px 4px; }
.dropzone h2 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.038em; }
.dropzone p { color: var(--muted); font-size: .88rem; }
.drop-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-block: 18px 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 41px; padding: 7px 12px; gap: 7px; background: white; border: 1px solid transparent; border-radius: 6px; font-size: .9rem; line-height: 1.22; font-weight: 600; cursor: pointer; transition: background-color .16s, color .16s, border-color .16s; }
.primary { color: white; background: var(--brand); padding-inline: 16px; }
.primary:hover:not(:disabled) { background: var(--brand-dark); }
.primary:disabled { background: #e7ece8; color: #59655e; }
.subtle { color: var(--muted); background: transparent; }
.subtle:hover:not(:disabled) { color: var(--brand-dark); background: var(--soft); }
.subtle:disabled { opacity: .65; }
.secondary { color: var(--brand-dark); background: var(--soft); }
.secondary:hover:not(:disabled) { border-color: #96b7a7; }
.format-hint span { margin-inline: 4px; }
.settings { background: #fbfcfa; padding: 21px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 15px; }
.settings h2 { display: flex; gap: 8px; align-items: center; font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
#options:disabled { opacity: .7; }
.format-options legend, .quality-head, .number-grid label { font-size: .86rem; font-weight: 600; }
.format-options > div { display: grid; grid-template-columns: 1.24fr .84fr .84fr 1fr; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f1f3ef; margin-top: 6px; }
.format-options label { min-width: 0; display: grid; }
.format-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.format-options span { min-height: 34px; display: grid; place-items: center; border-radius: 6px; font-size: .82rem; color: var(--muted); font-weight: 600; cursor: pointer; }
.format-options input:checked + span { background: white; color: var(--brand-dark); box-shadow: 0 1px 3px #283f2414; }
.format-options input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.format-options input:disabled + span { cursor: not-allowed; opacity: .55; }
.quality-head { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; }
#quality-value { color: var(--brand-dark); font-variant-numeric: tabular-nums; }
#quality { width: 100%; margin: 3px 0 0; accent-color: var(--brand); height: 22px; cursor: pointer; }
#quality:disabled { cursor: not-allowed; }
.quality-scale { display: flex; justify-content: space-between; font-size: .77rem; color: var(--muted); }
.number-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-block: 10px 9px; }
.unit-field { position: relative; display: flex; margin-top: 4px; }
.unit-field input { width: 100%; min-width: 0; min-height: 40px; padding: 6px 36px 6px 9px; border: 1px solid #dce2dd; border-radius: 7px; background: white; color: var(--ink); }
.unit-field input:disabled { background: #eff3ef; cursor: not-allowed; }
.unit-field input::placeholder { color: #5a685f; opacity: 1; }
.unit-field > span { position: absolute; right: 9px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; font-weight: 600; font-size: .81rem; }
.check-line { display: flex; align-items: flex-start; gap: 5px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.check-line input { accent-color: var(--brand); flex: 0 0 auto; width: 15px; height: 15px; margin: 1px 2px 0 0; }
.setting-note { color: var(--muted); font-size: .8rem; margin-top: 7px; }
.process { width: 100%; margin-top: auto; }
.batch-head, .batch-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.batch-head h2 { font-size: 1rem; }
.batch-head > div { display: flex; gap: 3px; }
.file-list { margin: 10px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.file-row { border: 1px solid var(--line); border-radius: 10px; min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 8px; }
.thumb { width: 44px; height: 44px; border-radius: 6px; background: var(--soft); display: grid; place-items: center; color: var(--brand-dark); font-weight: 700; font-size: .7rem; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-name { font-size: .88rem; overflow-wrap: anywhere; line-height: 1.3; font-weight: 600; }
.file-meta { font-size: .77rem; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.file-meta.positive { color: var(--good); }
.file-meta.error, .status.error { color: var(--danger); }
.file-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 3px; }
.file-buttons .button { min-height: 34px; padding: 5px 8px; font-size: .77rem; }
.file-buttons .remove { font-size: 1.1rem; padding-inline: 8px; }
.batch-foot { border-top: 1px solid var(--line); padding-top: 10px; }
.batch-foot p { color: var(--muted); font-size: .86rem; }
.status { margin-top: 10px; color: var(--muted); font-size: .88rem; }
.compare-dialog { border: 1px solid var(--line); border-radius: 16px; background: white; padding: 15px; width: min(850px, calc(100% - 30px)); max-height: 94dvh; color: var(--ink); box-shadow: 0 18px 60px #14271933; }
.compare-dialog::backdrop { background: #1928209e; }
.compare-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; }
.compare-head h2 { font-size: 1.17rem; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare-grid figure { margin: 0; min-width: 0; }
.compare-grid figure div { display: grid; place-items: center; background: repeating-conic-gradient(#eef1ec 0 25%, #fff 0 50%) 0 / 18px 18px; border: 1px solid var(--line); border-radius: 8px; height: min(53vw, 52vh); overflow: hidden; }
.compare-grid img { width: 100%; height: 100%; object-fit: contain; }
.compare-grid figcaption { color: var(--muted); margin-top: 6px; font-size: .86rem; overflow-wrap: anywhere; }
.tool-directory, .faq, .guide-directory, .detail-section { margin-block: 39px; }
.detail-section { max-width: 48rem; margin-block: 34px; }
.detail-section p { margin-top: 8px; color: var(--muted); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-head h2, .faq h2, .detail-section h2, .related h2 { letter-spacing: -.032em; font-size: clamp(1.4rem, 2.75vw, 1.78rem); font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; border-top: 1px solid var(--line); }
.link-card { min-width: 0; display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.link-card:hover h3 { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.link-card h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.015em; }
.link-card p { font-size: .88rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.text-link { color: var(--brand-dark); font-size: .88rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq { display: grid; grid-template-columns: minmax(190px, .42fr) 1fr; gap: 22px; border-top: 1px solid var(--line); padding-top: 25px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 10px 2px; min-height: 44px; font-weight: 600; cursor: pointer; }
.faq details p { padding: 0 3px 10px; color: var(--muted); font-size: .94rem; }
.site-footer { background: white; border-top: 1px solid var(--line); margin-top: 48px; }
.footer-inner { min-height: 85px; display: flex; align-items: center; gap: 18px; }
.footer-inner p { color: var(--muted); font-size: .85rem; }
.footer-inner nav { margin-inline-start: auto; display: flex; gap: 17px; }
.editorial { padding-block: 43px; min-height: 53vh; }
.editorial h1 { font-size: clamp(1.95rem, 4vw, 2.8rem); letter-spacing: -.034em; max-width: 55rem; line-height: 1.12; margin-bottom: 12px; }
.editorial > .text-link { display: inline-block; margin-bottom: 12px; }
.editorial .card-grid { margin-top: 20px; }
.article-body { max-width: 46rem; margin-top: 27px; }
.article-body section { margin-bottom: 20px; }
.article-body h2 { font-size: 1.27rem; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 5px; }
.article-body p { color: var(--muted); }
.related { margin-top: 35px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media (max-width: 850px) {
  .shell { padding-inline: 22px; }
  .header-inner { gap: 24px; }
  .main-nav { gap: 16px; }
}
@media (max-width: 670px) {
  .shell { padding-inline: 15px; }
  .header-inner { min-height: 60px; gap: 14px; }
  .brand { font-size: 1.12rem; gap: 6px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-inner .brand small { display: none; }
  .main-nav { gap: 11px; }
  .main-nav a { font-size: .77rem; }
  .locale a { min-width: 27px; }
  .page-intro { padding-block: 26px 18px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .tool-tabs { padding: 8px; gap: 2px; }
  .tool-tabs a { padding-inline: 9px; font-size: .84rem; }
  .settings { border-left: 0; border-top: 1px solid var(--line); padding: 15px; }
  .board { padding: 12px; }
  .dropzone { min-height: 236px; }
  .faq { grid-template-columns: 1fr; gap: 4px; }
  .tool-directory, .faq, .guide-directory, .detail-section { margin-block: 31px; }
  .footer-inner { flex-wrap: wrap; gap: 8px 14px; padding-block: 15px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner p { order: 1; flex: 0 0 100%; }
  .editorial { padding-block: 36px; }
}
@media (max-width: 430px) {
  .tool-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .tool-tabs a { justify-content: center; min-height: 34px; padding-inline: 4px; }
}
@media (max-width: 375px) {
  .main-nav { gap: 8px; }
  .main-nav a { font-size: .74rem; }
  .header-inner { gap: 7px; }
  .brand-mark { display: none; }
  .file-row { grid-template-columns: 38px minmax(0, 1fr); }
  .file-buttons { grid-column: 2; justify-content: flex-start; }
}

.breadcrumbs { margin-top: 18px; font-size: .875rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 3px 8px; padding: 0; margin: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; color: var(--brand-dark); }
.breadcrumbs + .page-intro, .breadcrumbs + .editorial { padding-top: 18px; }
.tool-steps { padding-left: 1.5em; margin: 10px 0 12px; color: var(--muted); }
.tool-steps li + li { margin-top: 6px; }
.article-date { display: block; margin-top: 8px; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.benchmark { margin: 18px 0 25px; }
.benchmark table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; table-layout: auto; }
.benchmark caption { font-weight: 700; text-align: left; padding-bottom: 8px; }
.benchmark th, .benchmark td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.benchmark th { font-weight: 600; }
.benchmark td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.benchmark p { margin-top: 9px; }
