:root {
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #192d27;
  background: #f7f7ef;
  color-scheme: light;
  --ink: #192d27;
  --muted: #596760;
  --green: #23614b;
  --dark-green: #184837;
  --line: #dce3d8;
  --mint: #edf5e9;
  --card: #fffefa;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 3px solid #38836a; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(1140px, calc(100% - 88px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #e2e5da; }
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 0; font: 750 23px/1 system-ui, sans-serif; letter-spacing: -.08em; }
.brand > span:last-child { color: #42765f; }
.brand-mark { margin-right: 10px; width: 35px; height: 35px; border-radius: 10px; background: var(--dark-green); display: grid; place-items: center; }
.brand-mark i { width: 19px; height: 15px; border: 1.6px solid #edf5e4; border-radius: 3px; position: relative; overflow: hidden; }
.brand-mark i::before { content: ""; position: absolute; width: 4px; height: 4px; background: #edf5e4; border-radius: 50%; top: 2px; right: 3px; }
.brand-mark i::after { content: ""; position: absolute; width: 13px; height: 13px; border: 1.5px solid #edf5e4; border-radius: 2px; transform: rotate(45deg); top: 7px; left: 0; }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
nav a { color: var(--muted); padding-block: 9px; }
nav a:hover, nav .nav-current { color: var(--green); }
nav .nav-current { border-bottom: 2px solid var(--green); }
.intro { display: grid; grid-template-columns: 1fr minmax(250px, 335px); align-items: center; gap: 42px; padding-block: 50px 43px; }
.category { display: flex; gap: 9px; align-items: center; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.category span { width: 19px; height: 2px; background: #579278; }
h1 { font-size: clamp(53px, 6vw, 79px); font-weight: 820; letter-spacing: -.075em; line-height: 1.15; margin: 10px 0 15px; }
h1 span { font-family: system-ui, sans-serif; color: #438471; margin-left: .055em; }
.subtitle { font-size: clamp(17px, 2vw, 22px); font-weight: 660; letter-spacing: -.025em; }
.intro-description { color: var(--muted); margin-top: 9px; font-size: 14px; line-height: 1.65; }
.sample { position: relative; overflow: hidden; display: block; height: 199px; width: 100%; padding: 0; text-align: left; color: white; border: 0; border-radius: 17px; background: #294d41; isolation: isolate; }
.sample img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.sample:hover img { transform: scale(1.035); }
.sample::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent, #102a22ea); pointer-events: none; }
.sample-caption { position: absolute; z-index: 1; bottom: 15px; left: 17px; right: 16px; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.sample-caption strong, .sample-caption small { display: block; }
.sample-caption strong { font-size: 15px; }
.sample-caption small { font-size: 11px; color: #f0f3ef; margin-top: 3px; }
.sample-arrow { min-width: 33px; height: 33px; display: grid; place-items: center; font-size: 20px; background: #ffffff26; border: 1px solid #ffffff60; border-radius: 50%; }
.workspace { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(275px, 1fr); align-items: start; gap: 20px; scroll-margin-top: 20px; }
.card { background: var(--card); border: 1px solid #dce1d6; border-radius: 21px; box-shadow: 0 10px 26px #20352206; padding: 23px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
h2 { font-size: 19px; font-weight: 750; letter-spacing: -.04em; }
.privacy { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; background: #eaf2e6; color: #325d48; font-size: 12px; border-radius: 7px; white-space: nowrap; font-weight: 650; }
.lock-icon { display: inline-block; position: relative; border: 1.2px solid currentColor; width: 9px; height: 7px; border-radius: 2px; margin-top: 3px; }
.lock-icon::before { content: ""; position: absolute; left: 1px; right: 1px; top: -5px; height: 5px; border: 1.2px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 250px; text-align: center; padding: 26px 14px; background: #eef5eb; border: 1.5px dashed #9fbbab; border-radius: 14px; transition: background .16s, border-color .16s; }
.dropzone.is-dragging { border-color: #3c805e; background: #dceddd; }
.dropzone h3 { font-size: 19px; font-weight: 730; margin: 13px 0 5px; }
.dropzone p, .upload-note { color: var(--muted); font-size: 13px; line-height: 1.55; }
.upload-icon { width: 53px; height: 53px; border-radius: 14px; background: #dcebdd; display: grid; place-items: center; color: var(--green); }
.upload-icon i { width: 22px; height: 9px; border: 1.75px solid currentColor; border-top: 0; border-radius: 0 0 4px 4px; position: relative; margin-top: 14px; }
.upload-icon i::before { content: ""; position: absolute; left: 50%; width: 2px; height: 15px; background: currentColor; top: -14px; transform: translateX(-50%); border-radius: 2px; }
.upload-icon i::after { content: ""; position: absolute; left: 50%; width: 9px; height: 9px; border-left: 1.8px solid currentColor; border-top: 1.8px solid currentColor; top: -14px; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.button { border-radius: 9px; padding: 9px 14px; font-weight: 700; font-size: 13px; line-height: 1.45; white-space: nowrap; }
.primary { background: var(--dark-green); border: 1px solid var(--dark-green); color: white; margin-top: 18px; padding: 11px 19px; }
.primary:hover { background: #285f4b; }
.primary span { margin-right: 4px; }
.secondary { background: #eef5eb; border: 1px solid #c8ddcc; color: var(--dark-green); }
.secondary:hover:enabled { background: #deeddf; }
.upload-note { margin-top: 13px; text-align: center; }
.feedback { margin-top: 12px; background: #fff5df; color: #784614; padding: 9px 12px; border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.settings-icon { color: var(--green); font-size: 22px; line-height: 1; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.option { display: flex; align-items: center; gap: 10px; border: 1px solid #e4e7de; border-radius: 10px; padding: 9px 11px; cursor: pointer; min-height: 54px; }
.option + .option { margin-top: 7px; }
.option:hover { border-color: #9fbbab; }
.option:has(input:checked) { background: #eaf3e8; border-color: #93b8a2; }
.option input { accent-color: var(--green); width: 15px; height: 15px; flex: none; margin: 0; }
.option strong, .option small { display: block; }
.option strong { font-size: 13px; }
.option small { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.settings-note { color: var(--muted); border-top: 1px solid #e4e7de; padding-top: 12px; margin-top: 15px; font-size: 12px; line-height: 1.55; }
.settings-note span { color: var(--green); margin-right: 4px; }
.results { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 19px; }
.results-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.results-header p { color: var(--muted); margin-top: 5px; font-size: 12px; }
.queue { list-style: none; padding: 0; margin: 12px 0 0; }
.file-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding-block: 10px; border-bottom: 1px solid #e7eae2; }
.file-tag { display: grid; place-items: center; width: 43px; height: 38px; background: #edf4e9; color: var(--green); border-radius: 8px; font: 700 10px system-ui, sans-serif; }
.file-name { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-detail { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
.file-detail.error { color: #99432a; }
.file-save { font: 700 12px system-ui, sans-serif; color: var(--green); }
.file-actions { display: flex; align-items: center; justify-content: end; gap: 4px; }
.file-actions a, .file-actions button, .clear-button { background: transparent; border: 0; color: var(--green); font-size: 12px; font-weight: 700; padding: 8px 6px; border-radius: 5px; }
.file-actions a:hover, .file-actions button:hover, .clear-button:hover { background: #edf4e9; }
.file-actions button { color: var(--muted); font-size: 17px; }
.clear-button { margin-top: 7px; }
.faq { display: grid; grid-template-columns: minmax(155px, 1fr) minmax(0, 2.4fr); gap: 25px; border-top: 1px solid #dce1d6; margin-top: 42px; padding-block: 25px 44px; scroll-margin-top: 20px; }
.faq h2 { font-size: 22px; }
.faq-questions { border-top: 1px solid #dce1d6; }
details { border-bottom: 1px solid #dce1d6; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-size: 19px; line-height: 1; font-weight: 500; }
details[open] summary::after { content: "−"; }
details p { padding: 0 22px 12px 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.site-footer { border-top: 1px solid #e2e5da; color: var(--green); font: 700 13px system-ui, sans-serif; }
.site-footer .wrap { padding-block: 20px; display: flex; gap: 12px; }
.site-footer span { color: var(--muted); font-weight: 500; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .intro { gap: 22px; }
  .workspace { gap: 14px; }
  .card { padding: 17px; }
}
@media (max-width: 670px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 59px; }
  nav { gap: 14px; font-size: 12px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 31px; height: 31px; margin-right: 7px; }
  .intro { grid-template-columns: 1fr; gap: 16px; padding-block: 27px 19px; }
  .intro h1 { margin-bottom: 9px; }
  .sample { height: 116px; }
  .sample img { object-position: 50% 56%; }
  .workspace, .faq { grid-template-columns: 1fr; }
  .dropzone { min-height: 225px; }
  .faq { margin-top: 25px; gap: 12px; padding-bottom: 26px; }
}
@media (max-width: 365px) {
  .file-row { column-gap: 5px; }
  .file-tag { width: 31px; }
  .file-actions a { padding-inline: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
