:root { color-scheme: light; --ink:#12233d; --muted:#65738a; --line:#dde5ee; --surface:#fff; --accent:#176bff; --accent-dark:#0b45b4; --soft:#edf4ff; --danger:#9f2424; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif; color:var(--ink); background:linear-gradient(135deg,#edf3fb,#f8f5f0); }
.shell { width:min(820px,calc(100% - 32px)); margin:40px auto; padding:42px; background:rgba(255,255,255,.96); border:1px solid var(--line); border-radius:22px; box-shadow:0 20px 65px rgba(25,48,80,.1); }
.shell.wide { width:min(1180px,calc(100% - 32px)); }
.hero { margin-bottom:32px; }
.eyebrow { margin:0 0 10px; color:var(--accent); font-size:13px; font-weight:800; letter-spacing:.08em; }
h1 { margin:0; font-size:clamp(32px,6vw,50px); line-height:1.1; letter-spacing:-.04em; }
h2 { margin:34px 0 14px; font-size:22px; }
.lead { margin:14px 0; color:var(--muted); font-size:16px; line-height:1.75; }
.status { display:inline-block; padding:8px 12px; border-radius:9px; background:var(--soft); color:var(--accent-dark); font-size:13px; }
form { display:grid; gap:21px; }
label { display:grid; gap:8px; font-size:14px; font-weight:800; }
small { display:block; color:var(--muted); font-weight:400; line-height:1.6; }
.row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.compact-row { grid-template-columns:minmax(220px,360px); }
input,select,textarea { width:100%; border:1px solid var(--line); border-radius:11px; background:#fff; color:var(--ink); font:inherit; font-weight:400; padding:13px 14px; outline:none; }
input:focus,select:focus,textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(23,107,255,.12); }
input[type="checkbox"] { width:auto; accent-color:var(--accent); }
input[type="radio"] { width:auto; accent-color:var(--accent); }
.theme-fieldset { margin:0; padding:0; border:0; }
.theme-fieldset legend { margin-bottom:10px; font-size:14px; font-weight:800; }
.mode-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.mode-card { display:flex; align-items:flex-start; gap:10px; padding:15px; border:2px solid var(--line); border-radius:13px; background:#fff; cursor:pointer; }
.mode-card:has(input:checked) { border-color:var(--accent); background:var(--soft); }
.mode-card input { margin-top:3px; }
.mode-card span { display:grid; gap:4px; }
.theme-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.theme-card { position:relative; display:block; overflow:hidden; border:2px solid var(--line); border-radius:14px; background:#fff; cursor:pointer; transition:border-color .15s,transform .15s,box-shadow .15s; }
.theme-card:hover { transform:translateY(-2px); box-shadow:0 10px 26px rgba(25,48,80,.12); }
.theme-card:has(input:checked) { border-color:var(--accent); box-shadow:0 0 0 3px rgba(23,107,255,.12); }
.theme-card input { position:absolute; z-index:2; top:10px; right:10px; width:18px; height:18px; }
.theme-card img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; }
.theme-card span { display:block; padding:11px 12px 13px; }
.theme-card strong { display:block; margin-bottom:3px; }
.check { display:flex; grid-template-columns:auto 1fr; align-items:center; font-weight:600; }
textarea { min-height:250px; resize:vertical; line-height:1.65; }
.file-label { padding:16px; border:1px dashed #b8c6d8; border-radius:12px; color:var(--muted); }
.file-label input { border:0; padding:4px 0; }
.notice { padding:17px 18px; border-left:4px solid #e29b19; background:#fff9ea; color:#614817; font-size:13px; line-height:1.75; }
.notice p { margin:6px 0 0; }
button,.download { appearance:none; border:0; border-radius:11px; padding:14px 20px; color:#fff; background:var(--accent); font:inherit; font-weight:800; cursor:pointer; text-decoration:none; }
button:hover,.download:hover { background:var(--accent-dark); }
button:disabled { cursor:wait; opacity:.58; }
button.secondary { background:#6c7787; }
button.mini { padding:7px 10px; font-size:12px; }
.result { margin-top:24px; padding:20px; border-radius:12px; background:#eefaf4; color:#174d34; line-height:1.7; }
.result.error { background:#fff0f0; color:var(--danger); }
.result .download { display:inline-block; margin:8px 12px 8px 0; }
.progress { height:10px; margin:14px 0; overflow:hidden; border-radius:99px; background:#dce5ed; }
.progress i { display:block; height:100%; background:var(--accent); transition:width .3s ease; }
.panel { padding:22px; border:1px solid var(--line); border-radius:14px; background:#f9fbfd; }
.inline-form { display:flex; align-items:end; gap:14px; flex-wrap:wrap; }
.inline-form label { min-width:190px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.filter-form { display:flex; align-items:end; gap:8px; grid-template-columns:minmax(180px,280px) 130px auto; }
.filter-form button { padding:12px 16px; }
.action-cell { max-width:300px; white-space:normal; }
.action-cell button { display:block; margin-top:7px; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:12px; }
table { width:100%; border-collapse:collapse; background:#fff; font-size:13px; }
th,td { padding:12px 13px; text-align:left; border-bottom:1px solid var(--line); white-space:nowrap; }
th { background:#f3f6fa; color:#506078; }
code { font-family:ui-monospace,"Cascadia Mono",monospace; }
@media (max-width:650px) { .shell { margin:16px auto; padding:24px 20px; } .row,.theme-options,.mode-options { grid-template-columns:1fr; } .inline-form,.filter-form { align-items:stretch; display:grid; grid-template-columns:1fr; } }
