:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #142033;
  --muted: #667085;
  --line: #d8dee8;
  --brand: #08763a;
  --brand-dark: #075c2f;
  --amber: #a86500;
  --red: #b42318;
  --blue: #175cd3;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 22px 54px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 { font-size: 20px; margin-bottom: 4px; }
h3 { font-size: 16px; margin-bottom: 8px; }

.lead, .panel-head p, .info p, .status-card p, .upload-zone p, .progress p {
  color: var(--muted);
  line-height: 1.7;
}

.status-card, .panel, .info {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-card {
  padding: 18px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 8px;
}

.panel {
  margin-top: 18px;
  overflow: hidden;
}

.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-head p { margin-bottom: 0; }

.upload-zone {
  margin: 22px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.2fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1.5px dashed #a9b4c4;
  border-radius: 8px;
  background: #fbfcfe;
}

.upload-zone.drag {
  border-color: var(--brand);
  background: #f0f8f3;
}

input[type="file"] {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.actions {
  display: flex;
  gap: 12px;
  padding: 0 22px 22px;
  flex-wrap: wrap;
}

button, .download {
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: var(--brand);
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover, .download:hover { background: var(--brand-dark); }
button:disabled { opacity: .6; cursor: not-allowed; }

.ghost {
  color: var(--text);
  background: #eef2f6;
}
.ghost:hover { background: #e4e9f0; }

.progress {
  padding: 0 22px 22px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: #e7ecf3;
  overflow: hidden;
}

.bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--brand);
  transition: width .25s ease;
}

.message {
  margin: 0 22px 22px;
  padding: 14px 16px;
  border-radius: 6px;
  border-left: 4px solid var(--blue);
  background: #eef4ff;
  color: #12336b;
  line-height: 1.65;
}

.message.error {
  border-left-color: var(--red);
  background: #fff2f0;
  color: #7a271a;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.download:nth-child(2) { background: #1f2937; }
.download:nth-child(3) { background: var(--amber); }

.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info {
  box-shadow: none;
  padding: 18px;
}

@media (max-width: 800px) {
  .hero, .upload-zone, .grid, .download-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 28px; }
}
