﻿:root {
  --text: #171717;
  --muted: #777;
  --line: #dedede;
  --soft: #fafafa;
  --white: #fff;
  --font: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #fff; color: var(--text); font-family: var(--font); font-size: 14px; }
.shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 28px; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.masthead h1 { margin: 0; font-size: 25px; font-weight: 500; letter-spacing: -.03em; }
.header-status { color: #888; font-size: 11px; white-space: nowrap; }
.card { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.form-card { padding: 28px; }
.upload-zone { min-height: 126px; display: flex; align-items: center; gap: 20px; padding: 24px; border: 1px dashed #bbb; background: var(--soft); border-radius: 3px; cursor: pointer; transition: border-color .2s, background .2s; }
.upload-zone:hover, .upload-zone.dragging { border-color: #333; background: #f6f6f6; }
.upload-zone input { display: none; }
.upload-copy { flex: 1; }
.upload-copy strong, .upload-copy span { display: block; }
.upload-copy strong { margin-bottom: 7px; font-size: 15px; font-weight: 500; }
.upload-copy span { color: var(--muted); font-size: 11px; }
.upload-action, .ghost-button { padding: 9px 13px; color: var(--text); border: 1px solid #bbb; background: #fff; font: inherit; font-size: 11px; cursor: pointer; }
.upload-action:hover, .ghost-button:hover { border-color: #222; }
.file-meta { display: none; align-items: center; gap: 9px; padding: 10px 1px 1px; color: var(--muted); font-size: 11px; }
.file-meta.visible { display: flex; }
.file-meta button { margin-left: auto; padding: 0; border: 0; background: transparent; color: #555; font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.field-grid { display: grid; gap: 16px; }
.compact-grid { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field > span { color: #555; font-size: 11px; font-weight: 600; }
.field > span i { margin-left: 4px; color: #999; font-style: normal; font-weight: 400; }
.field input, .field select { width: 100%; height: 42px; padding: 0 11px; color: var(--text); border: 1px solid var(--line); border-radius: 3px; background: #fff; outline: none; font: inherit; font-size: 13px; }
.field input:focus, .field select:focus { border-color: #555; box-shadow: 0 0 0 2px #eee; }
.auto-row { display: flex; align-items: center; gap: 11px; margin: 14px 0 5px; }
#detect-message { color: var(--muted); font-size: 11px; }
.advanced { margin-top: 22px; border-top: 1px solid var(--line); }
.advanced summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 0 0; cursor: pointer; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary span { font-size: 12px; font-weight: 600; }
.advanced summary b { font-size: 16px; font-weight: 400; }
.advanced[open] summary b { transform: rotate(45deg); }
.advanced-body { padding-top: 2px; }
.template-panel { margin-top: 20px; padding: 16px; border: 1px solid var(--line); background: #fff; }
.toggle-line { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.toggle-line input { display: none; }
.toggle-ui { width: 34px; height: 18px; flex: 0 0 auto; position: relative; border: 1px solid #aaa; border-radius: 20px; transition: .2s; }
.toggle-ui::after { content: ''; width: 12px; height: 12px; position: absolute; left: 2px; top: 2px; border-radius: 50%; background: #aaa; transition: .2s; }
.toggle-line input:checked + .toggle-ui { border-color: #222; background: #222; }
.toggle-line input:checked + .toggle-ui::after { background: #fff; transform: translateX(16px); }
.toggle-line b, .toggle-line small { display: block; }
.toggle-line b { font-size: 12px; font-weight: 600; }
.toggle-line small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.template-select-wrap { max-height: 100px; overflow: hidden; transition: .2s; }
.template-select-wrap.hidden { max-height: 0; }
.primary-button { width: 100%; height: 50px; margin-top: 24px; color: #fff; border: 1px solid #222; border-radius: 3px; background: #222; font: inherit; font-weight: 600; letter-spacing: .03em; cursor: pointer; transition: background .2s, color .2s; }
.primary-button:hover { color: #222; background: #fff; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.result-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.result-section h2 { margin: 0 0 15px; font-size: 17px; font-weight: 500; }
.result-list { display: grid; }
.result-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; color: var(--text); border-bottom: 1px solid var(--line); text-decoration: none; }
.result-item:first-child { border-top: 1px solid var(--line); }
.result-item:hover strong { text-decoration: underline; }
.result-item > span { flex: 1; min-width: 0; }
.result-item strong, .result-item small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.result-item strong { font-size: 12px; font-weight: 500; }
.result-item small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.result-item > b { color: #555; font-size: 11px; font-weight: 400; }
.zip-button { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 12px 14px; color: #fff; border: 1px solid #222; background: #222; font-size: 12px; font-weight: 600; text-decoration: none; }
.zip-button:hover { color: #222; background: #fff; }
.zip-button span { color: #999; font-size: 10px; }
.notice { margin-top: 22px; padding: 14px 17px; border: 1px solid var(--line); background: #fff; }
.notice strong, .notice span { display: block; }
.notice strong { font-size: 12px; font-weight: 600; }
.notice span { margin-top: 4px; color: var(--muted); font-size: 11px; }
footer { padding: 24px 1px 0; color: #999; font-size: 10px; }
@media (max-width: 600px) {
  .shell { width: calc(100% - 28px); padding-top: 28px; }
  .masthead { align-items: flex-start; flex-direction: column; gap: 8px; }
  .masthead h1 { font-size: 22px; }
  .form-card { padding: 20px; }
  .compact-grid { grid-template-columns: 1fr; }
  .upload-zone { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
}
