:root {
  --ink: #1f2933;
  --muted: #697586;
  --line: #d7dde7;
  --paper: #fffdf7;
  --green: #2f6f5e;
  --green-soft: #dfeee8;
  --blue-soft: #e7eef8;
  --shadow: rgba(24, 32, 43, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 920px;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(47, 111, 94, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(47, 111, 94, 0.08) 1px, transparent 1px),
    #eef3f0;
  background-size: 28px 28px;
}

.desk {
  width: 1040px;
  margin: 0 auto;
  padding: 56px 0 76px;
}

.assistant {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px var(--shadow);
  overflow: hidden;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf0, #f7fbf7);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.pill {
  padding: 8px 12px;
  border: 1px solid #9bc6b8;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.drop-zone {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin: 28px 32px 18px;
  padding: 22px;
  border: 1px dashed #8aa99d;
  border-radius: 8px;
  background: #f8fbf8;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.drop-copy strong {
  font-size: 18px;
}

.drop-copy span {
  color: var(--muted);
  font-size: 13px;
}

button {
  height: 42px;
  min-width: 92px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status {
  margin: 0 32px 24px;
  color: var(--muted);
  font-size: 14px;
}

.status.error {
  color: #b42318;
}

.result {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  padding: 0 32px 32px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.panel h2 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--blue-soft);
  font-size: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  width: 45%;
  color: var(--muted);
  font-weight: 700;
}

td {
  word-break: break-word;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
}

.hidden {
  display: none;
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  color: #5d6b79;
  font-size: 13px;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
