:root {
  --ink: #17212b;
  --muted: #657584;
  --line: #d9e2e8;
  --canvas: #f4f7f8;
  --panel: #fff;
  --accent: #087363;
  --accent-soft: #e3f2ef;
  --danger: #a03c38;
  --danger-soft: #f9e9e8;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
button, select, textarea { font: inherit; }
.app-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto 72px; }
.app-header { display: flex; justify-content: space-between; align-items: center; min-height: 82px; border-bottom: 1px solid var(--line); }
.back-link { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.back-link i { margin-right: 8px; color: var(--accent); }
.privacy-note { color: var(--muted); font-size: 13px; }
.privacy-note i { margin-right: 5px; color: var(--accent); }
.tool-intro { max-width: 760px; padding: 68px 0 38px; }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.tool-intro h1, .strict-notes h2 { margin: 0; letter-spacing: -.045em; }
.tool-intro h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1; }
.tool-intro > p:last-child { margin: 18px 0 0; color: var(--muted); line-height: 1.7; }
.conversion-panel { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px rgba(22, 38, 49, .06); }
.dialect-bar { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) auto; gap: 12px; align-items: end; padding-bottom: 20px; }
.dialect-bar label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
select { width: 100%; height: 42px; padding: 0 12px; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line); border-radius: 8px; outline-color: var(--accent); }
.swap-button, .convert-button, .editor-heading button { border: 0; border-radius: 8px; cursor: pointer; }
.swap-button { height: 42px; color: var(--accent); background: var(--accent-soft); }
.convert-button { min-width: 150px; height: 42px; padding: 0 18px; color: #fff; background: var(--accent); font-weight: 750; }
.convert-button:disabled { color: #80918f; background: #dfe9e6; cursor: wait; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor-card { min-height: 370px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.editor-heading { display: flex; align-items: center; justify-content: space-between; min-height: 45px; padding: 0 13px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 750; }
.editor-heading button { padding: 5px 8px; color: var(--accent); background: transparent; font-size: 12px; font-weight: 700; }
textarea, pre { display: block; width: 100%; min-height: 323px; margin: 0; padding: 16px; color: #233340; background: transparent; border: 0; font-family: "Cascadia Code", Consolas, monospace; font-size: 13px; line-height: 1.65; resize: vertical; tab-size: 2; white-space: pre-wrap; word-break: break-word; outline: none; }
pre { color: #0c564b; }
.output-card { background: #f7fbfa; }
.status-panel { display: flex; gap: 9px; align-items: center; min-height: 48px; margin-top: 16px; padding: 11px 13px; color: #576c6b; background: #f0f7f5; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.status-panel.success { color: #236356; background: #e5f3ef; }
.status-panel.error { color: var(--danger); background: var(--danger-soft); }
.status-panel.warning { color: #835d18; background: #fbf3db; }
.repair-report { margin-top: 12px; overflow: hidden; border: 1px solid #cfe3de; border-radius: 8px; background: #fbfefd; }
.repair-report[hidden] { display: none; }
.repair-report-heading { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; color: #236356; background: #eef8f5; font-size: 12px; font-weight: 750; }
.repair-report-heading i { margin-right: 6px; }
.repair-report-heading small { color: #657584; font-size: 12px; font-weight: 600; }
.repair-report ul { display: grid; gap: 8px; margin: 0; padding: 12px 14px; list-style: none; }
.repair-report li { display: flex; gap: 8px; color: #526671; font-size: 13px; line-height: 1.45; }
.repair-report li.repair i { color: var(--accent); }
.repair-report li.warning i { color: #a8791d; }
.strict-notes { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; margin-top: 54px; padding: 31px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strict-notes h2 { font-size: 27px; }
.note-list { display: grid; gap: 13px; }
.note-list p { display: flex; gap: 10px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.note-list i { padding-top: 4px; color: var(--accent); }
.note-list strong { color: var(--ink); }
@media (max-width: 760px) { .app-shell { width: min(100% - 30px, 1280px); } .privacy-note { display: none; } .tool-intro { padding: 50px 0 30px; } .dialect-bar, .editor-grid, .strict-notes { grid-template-columns: 1fr; } .swap-button { width: 42px; transform: rotate(90deg); } .convert-button { width: 100%; } .editor-card { min-height: 300px; } textarea, pre { min-height: 253px; } .strict-notes { gap: 22px; } }
