:root { --page:#eef2f6; --panel:#f8fafc; --card:#fff; --line:#d9e1ea; --ink:#17202a; --muted:#64748b; --blue:#2563eb; --green:#17803d; --red:#c93a3a; --gold:#d7ad38; --void:#6694ef; --board:#11141a; font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif; color:var(--ink); background:var(--page); }
* { box-sizing:border-box; } body { margin:0; min-width:320px; } button,input { font:inherit; } .site-header { min-height:54px; display:flex; align-items:center; gap:14px; padding:0 24px; background:#fff; border-bottom:1px solid var(--line); } .brand { color:var(--ink); font-size:15px; font-weight:700; text-decoration:none; } .crumb { color:var(--muted); font-size:13px; border-left:1px solid var(--line); padding-left:14px; } .back-link { color:#1d4ed8; font-size:13px; text-decoration:none; margin-left:auto; }
.workspace { display:grid; grid-template-columns:minmax(300px,360px) minmax(0,1fr); min-height:calc(100vh - 54px); } .control-panel { background:var(--panel); border-right:1px solid var(--line); display:flex; flex-direction:column; gap:18px; padding:24px; } .section-label { color:var(--muted); font-size:12px; font-weight:700; margin:0 0 5px; } h1,h2 { margin:0; text-wrap:balance; } h1 { font-size:22px; line-height:1.25; } h2 { font-size:18px; } .intro,.hint,.method-copy,.preview-note { color:var(--muted); font-size:13px; line-height:1.6; } .intro { margin:10px 0 0; }.drop-zone { align-items:center; background:#fff; border:1px dashed #9fb1c7; border-radius:8px; cursor:pointer; display:flex; flex-direction:column; gap:4px; justify-content:center; min-height:112px; padding:18px; transition:border-color 180ms ease,background 180ms ease; } .drop-zone:hover,.drop-zone:focus-within,.drop-zone.is-dragging { border-color:var(--blue); background:#eff6ff; } .drop-zone strong { color:#1d4ed8; font-size:14px; } .drop-zone span { color:var(--muted); font-size:12px; }.summary { display:grid; gap:8px; margin:0; }.summary div { display:grid; grid-template-columns:70px minmax(0,1fr); gap:10px; font-size:12px; }.summary dt { color:var(--muted); }.summary dd { color:var(--ink); font-family:Consolas,monospace; margin:0; overflow-wrap:anywhere; }.setting-group { border-top:1px solid var(--line); padding-top:16px; }.setting-heading { display:flex; justify-content:space-between; align-items:center; font-size:13px; font-weight:700; }.setting-heading output { color:#1d4ed8; font-family:Consolas,monospace; }.setting-group input[type=range] { accent-color:var(--blue); width:100%; margin:12px 0 4px; }.range-labels { display:flex; justify-content:space-between; color:var(--muted); font-size:11px; }.hint,.method-copy { margin:8px 0 0; }.status { border-radius:6px; font-size:13px; line-height:1.5; margin:0; padding:10px 11px; background:#e8eef5; color:#475569; }.status[data-kind=success] { background:#e9f7ee; color:#176b37; }.status[data-kind=error] { background:#fff0f0; color:#9c2828; }.status[data-kind=pending] { background:#eef5ff; color:#245fb3; }.download-button { background:var(--blue); border:0; border-radius:4px; color:#fff; cursor:pointer; font-size:13px; font-weight:700; min-height:40px; padding:0 14px; transition:background 160ms ease; }.download-button:hover { background:#1d4ed8; }.download-button:focus-visible,.back-link:focus-visible,.drop-zone:focus-within { outline:3px solid rgba(37,99,235,.24); outline-offset:2px; }.download-button:disabled { background:#94a3b8; cursor:not-allowed; }
.preview-panel { display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:0; padding:24px; gap:14px; }.preview-toolbar { align-items:center; display:flex; justify-content:space-between; gap:20px; }.legend { display:flex; flex-wrap:wrap; gap:12px; color:var(--muted); font-size:12px; }.legend span { align-items:center; display:inline-flex; gap:5px; }.legend i { border-radius:2px; display:inline-block; height:10px; width:10px; }.legend-board { background:var(--board); }.legend-gold { background:var(--gold); }.legend-void { background:var(--void); }.preview-shell { align-items:center; background:var(--board); border:1px solid #172433; border-radius:8px; display:flex; justify-content:center; min-height:420px; overflow:hidden; padding:18px; }.plate-preview { display:block; height:100%; max-height:calc(100vh - 190px); max-width:100%; width:100%; }.preview-void { fill:var(--void); }.plate-outline path { fill:none; stroke:var(--board); stroke-linecap:round; stroke-linejoin:round; stroke-width:1.4px; }.gold-lines path { fill:none; stroke:var(--gold); stroke-linecap:round; stroke-linejoin:round; }.empty-preview { align-items:center; color:#dce7f6; display:flex; flex-direction:column; gap:6px; text-align:center; }.empty-preview span { color:#9aa9bc; font-size:13px; }.empty-preview.error strong { color:#fecaca; }.empty-preview.error span { color:#fca5a5; max-width:520px; }.preview-note { margin:0; }
@media (max-width: 880px) { .workspace { grid-template-columns:1fr; }.control-panel { border-bottom:1px solid var(--line); border-right:0; }.preview-panel { min-height:600px; }.plate-preview { max-height:560px; }.site-header { padding:0 16px; }.crumb { display:none; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }
.gold-lines path { stroke-width: inherit; }

.site-copyright { color:var(--muted); font-size:12px; padding:0 24px 20px; text-align:center; }
