:root { --bg:#0f1114; --surface:#171b25; --surface-soft:#202634; --text:#f4f5f7; --muted:#a9afbb; --border:rgba(255,255,255,.13); --accent:#ff5a2f; --accent-2:#f7b500; --focus:rgba(255,90,47,.35); font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif; }
[data-theme="light"] { --bg:#fbfaf7; --surface:#fff; --surface-soft:#fff6ee; --text:#151515; --muted:#5b5b5b; --border:rgba(15,15,15,.12); --focus:rgba(255,90,47,.25); }
* { box-sizing:border-box; }
body { min-height:100vh; margin:0; color:var(--text); background:radial-gradient(900px 500px at 10% -10%,rgba(255,90,47,.16),transparent 65%),var(--bg); }
a { color:inherit; }
.topbar { width:min(1120px,calc(100% - 32px)); min-height:68px; margin:auto; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); }
.brand { display:inline-flex; align-items:center; gap:10px; text-decoration:none; font-weight:800; }
.brand-mark { display:grid; place-items:center; width:32px; height:32px; color:#16110f; background:linear-gradient(135deg,var(--accent),var(--accent-2)); border-radius:10px; }
.topbar-actions { display:flex; align-items:center; gap:18px; }
.back-link { color:var(--muted); font-size:.93rem; }
.topbar-action { padding:0; border:0; color:var(--muted); background:transparent; font-size:.93rem; }
.topbar-action:hover { color:var(--text); }
.share-feedback { position:fixed; z-index:10; top:78px; right:20px; padding:8px 11px; border:1px solid var(--border); border-radius:7px; color:var(--text); background:var(--surface); box-shadow:0 8px 24px rgba(0,0,0,.2); font-size:.84rem; }
.share-feedback:empty { display:none; }
.share-panel { position:fixed; z-index:1000; inset:0; display:grid; place-items:center; padding:20px; background:rgba(0,0,0,.56); }
.share-panel[hidden] { display:none; }
.share-dialog { width:min(380px,100%); padding:18px; border:1px solid var(--border); border-radius:16px; color:var(--text); background:var(--surface); box-shadow:0 18px 50px rgba(0,0,0,.35); }
.share-dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:16px; }
.share-dialog-heading strong { display:block; font-size:1rem; }
.share-dialog-heading span { display:block; max-width:270px; margin-top:4px; overflow:hidden; color:var(--muted); font-size:.78rem; text-overflow:ellipsis; white-space:nowrap; }
.share-close { width:30px; height:30px; padding:0; border:1px solid var(--border); border-radius:50%; color:var(--muted); background:transparent; font-size:1.25rem; line-height:1; }
.share-close:hover { color:var(--text); }
.share-targets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.share-target { min-height:42px; border:1px solid var(--border); border-radius:9px; color:var(--text); background:var(--surface-soft); font-weight:750; }
.share-target:hover { border-color:var(--accent); }
.shell { width:min(1080px,calc(100% - 32px)); margin:auto; padding:52px 0 64px; }
.tool-heading { margin-bottom:34px; }
.eyebrow { margin:0 0 7px; color:var(--accent); font-size:.76rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
h1,h2,h3,p { margin-top:0; }
h1 { margin-bottom:8px; font-size:clamp(2rem,5vw,3rem); line-height:1.05; letter-spacing:-.045em; }
.tool-heading > p:last-child { margin-bottom:0; color:var(--muted); font-size:1.03rem; }
.translator-workspace { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:42px; align-items:start; }
.translator-fields { min-width:0; }
.field { display:grid; gap:8px; min-width:0; margin-bottom:24px; font-size:.92rem; font-weight:750; }
.field-label { display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
.field-label output { color:var(--muted); font-size:.8rem; font-weight:600; }
textarea { width:100%; min-height:126px; resize:vertical; padding:15px; color:var(--text); border:1px solid var(--border); border-radius:9px; background:var(--surface-soft); font:500 1rem/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; outline:none; }
textarea:focus,input:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
textarea[readonly] { color:color-mix(in srgb,var(--text) 90%,var(--muted)); }
button { font:inherit; cursor:pointer; }
.button,.toggle { min-height:40px; padding:0 13px; border:1px solid var(--border); border-radius:8px; color:var(--text); background:var(--surface-soft); font-weight:750; }
.button.primary { color:#1b100b; border-color:transparent; background:linear-gradient(135deg,var(--accent),#ff8351); }
.button:disabled { cursor:not-allowed; opacity:.5; }
.toggle[aria-pressed="true"] { color:#1b100b; border-color:transparent; background:var(--accent); }
.conversion-button { display:flex; align-items:center; justify-content:center; gap:8px; width:fit-content; margin:-8px auto 17px; padding:4px 8px; border:0; color:var(--muted); background:transparent; font-size:.84rem; font-weight:750; }
.conversion-button > span:first-child { color:var(--accent); font-size:1.45rem; line-height:1; }
.conversion-button:hover .conversion-action { color:var(--text); }
.conversion-action { color:var(--accent); font-size:.78rem; text-decoration:underline; text-underline-offset:3px; }
.controls-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.controls-divider { width:1px; height:26px; margin:0 3px; background:var(--border); }
.check-control { display:inline-flex; align-items:center; gap:6px; min-height:40px; color:var(--muted); font-size:.9rem; }
.check-control input { width:16px; height:16px; accent-color:var(--accent); }
.light-indicator { width:28px; height:28px; margin-left:3px; border:1px solid var(--border); border-radius:50%; background:#171b22; box-shadow:inset 0 0 10px rgba(0,0,0,.6); transition:background .08s,box-shadow .08s; }
.light-indicator.is-active { background:#fff7bd; box-shadow:0 0 16px 5px rgba(255,242,150,.9); }
.status { min-height:1.4em; margin:14px 0 0; color:var(--muted); font-size:.9rem; }
.settings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding-top:28px; }
.settings label { display:grid; justify-items:center; gap:8px; color:var(--muted); font-size:.86rem; font-weight:750; text-align:center; }
.settings output { color:var(--text); font-size:.88rem; }
input[type="range"] { width:148px; margin-top:56px; accent-color:var(--accent); transform:rotate(-90deg); transform-origin:center; }
.format-note { display:grid; grid-template-columns:1fr 1fr 1.25fr; gap:24px; margin-top:38px; padding-top:18px; border-top:1px solid var(--border); color:var(--muted); font-size:.9rem; line-height:1.55; }
.format-note p { margin-bottom:0; }
.format-note strong { color:var(--text); }
.hint { text-align:right; }
.guide { margin-top:66px; padding-top:28px; border-top:1px solid var(--border); }
.guide-intro { max-width:540px; }
.guide h2 { margin-bottom:0; font-size:1.65rem; letter-spacing:-.025em; }
.guide-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; margin-top:28px; }
.guide h3 { margin-bottom:8px; font-size:1rem; }
.guide p { margin-bottom:0; color:var(--muted); font-size:.92rem; line-height:1.6; }
.reference-row { display:grid; grid-template-columns:1fr 1fr; gap:30px; margin-top:34px; padding:22px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.faq { display:grid; grid-template-columns:1fr 1fr; gap:0 30px; margin-top:20px; }
.faq details { border-bottom:1px solid var(--border); }
.faq summary { padding:14px 0; cursor:pointer; font-size:.94rem; font-weight:750; }
.faq details p { padding-bottom:14px; }
code { color:var(--text); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.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; }
footer { width:min(1080px,calc(100% - 32px)); margin:auto; padding:0 0 32px; color:var(--muted); font-size:.87rem; }
footer a { margin-left:6px; }
@media (max-width:700px) { .shell { padding-top:36px; } .translator-workspace { grid-template-columns:1fr; gap:4px; } .settings { padding-top:8px; grid-template-columns:repeat(3,minmax(0,1fr)); } input[type="range"] { width:100%; margin-top:2px; transform:none; } .format-note,.guide-columns,.reference-row,.faq { grid-template-columns:1fr; gap:18px; } .hint { text-align:left; } }
@media (max-width:500px) { .topbar { min-height:60px; } .back-link { font-size:.82rem; } .shell { width:min(100% - 26px,1080px); } .controls-divider { display:none; } .button,.toggle { padding:0 11px; } .settings { gap:8px; } textarea { min-height:118px; } }
