:root {
  --green: #00a94f;
  --green-dark: #04723e;
  --green-soft: #b9ff68;
  --lime: #d7ff35;
  --ink: #101612;
  --paper: #fff9e8;
  --pink: #ff4fa3;
  --yellow: #ffd737;
  --blue: #38c5ff;
  --white: #ffffff;
  --shadow: 8px 8px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 14px 14px, rgba(16, 22, 18, 0.16) 3px, transparent 4px) 0 0 / 28px 28px,
    linear-gradient(135deg, var(--green-soft), var(--paper) 52%, #e8ffe6);
}

button,
input,
textarea,
a {
  font: inherit;
}

button {
  min-height: 44px;
  border: 3px solid var(--ink);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero {
  position: relative;
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr minmax(170px, 280px);
  gap: 24px;
  align-items: center;
  padding: 34px;
  border: 4px solid var(--ink);
  background:
    radial-gradient(circle at 78% 28%, var(--yellow) 0 10%, transparent 11%),
    repeating-linear-gradient(-18deg, rgba(0, 169, 79, 0.18) 0 12px, rgba(255, 255, 255, 0.4) 12px 24px),
    var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: 24%;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border: 4px solid var(--ink);
  background: var(--blue);
  transform: rotate(18deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 3px solid var(--ink);
  background: var(--lime);
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 12px;
  max-width: 660px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 var(--green-soft), 7px 7px 0 var(--ink);
}

.hero-text {
  max-width: 640px;
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 700;
}

.employee-link {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 14px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
}

.hero-badge {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--pink) 0 44%, transparent 45%),
    conic-gradient(var(--lime), var(--yellow), var(--green), var(--blue), var(--lime));
  box-shadow: var(--shadow);
  transform: rotate(7deg);
}

.hero-badge span,
.hero-badge strong {
  grid-area: 1 / 1;
}

.hero-badge span {
  transform: translateY(-28px);
  font-size: 24px;
  font-weight: 900;
}

.hero-badge strong {
  transform: translateY(18px);
  font-size: 54px;
  line-height: 1;
  text-shadow: 3px 3px 0 var(--white);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 24px;
  margin-top: 32px;
}

.report-form,
.table-panel {
  border: 4px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.report-form {
  padding: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-title span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  background: var(--pink);
  color: var(--white);
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}

.section-title h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 3px solid var(--ink);
  background: #f5fff0;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  box-shadow: inset 3px 3px 0 rgba(0, 169, 79, 0.16);
}

input[type="file"] {
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-right: 3px solid var(--ink);
  background: var(--green-dark);
  color: var(--white);
  font-weight: 900;
  padding: 10px 12px;
  cursor: pointer;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--lime), inset 3px 3px 0 rgba(0, 169, 79, 0.16);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-copy-actions {
  margin: -6px 0 16px;
}

.primary {
  background: var(--green);
  color: var(--white);
}

.secondary {
  background: var(--lime);
}

.danger {
  background: var(--pink);
  color: var(--white);
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 800;
  color: var(--green-dark);
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.link-panel {
  margin-top: 32px;
  padding: 24px;
  border: 4px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.table-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(215, 255, 53, 0.76), rgba(0, 169, 79, 0.18)),
    var(--white);
  border-bottom: 4px solid var(--ink);
}

.table-header .section-title {
  margin-bottom: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 4px solid var(--ink);
}

.metrics div {
  padding: 18px 20px;
  background: var(--paper);
}

.metrics div + div {
  border-left: 4px solid var(--ink);
}

.metrics span {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.metrics strong {
  font-size: 34px;
  line-height: 1;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  border-bottom: 3px solid var(--ink);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--green);
  color: var(--white);
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: #edffe7;
}

td:nth-child(4) {
  max-width: 260px;
  white-space: pre-wrap;
}

.empty-state {
  display: none;
  margin: 0;
  padding: 28px;
  font-weight: 900;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.employee-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12px 12px, rgba(16, 22, 18, 0.2) 3px, transparent 4px) 0 0 / 24px 24px,
    linear-gradient(150deg, var(--lime), #f4ffe2 48%, var(--green-soft));
}

.employee-shell {
  width: min(100% - 24px, 520px);
  margin: 0 auto;
  padding: 20px 0 28px;
}

.employee-hero {
  position: relative;
  margin-bottom: 18px;
  padding: 24px 20px;
  border: 4px solid var(--ink);
  background:
    radial-gradient(circle at 88% 18%, var(--pink) 0 16%, transparent 17%),
    repeating-linear-gradient(-18deg, rgba(0, 169, 79, 0.2) 0 10px, rgba(255, 255, 255, 0.65) 10px 20px),
    var(--white);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}

.employee-hero h1 {
  margin-bottom: 0;
  font-size: 50px;
}

.employee-identity {
  margin: 12px 0 0;
  font-weight: 900;
}

.employee-form {
  padding: 20px;
  box-shadow: 6px 6px 0 var(--ink);
}

.employee-form textarea {
  min-height: 260px;
}

.image-preview,
.report-image {
  display: block;
  max-width: 100%;
  border: 3px solid var(--ink);
  background: var(--white);
  object-fit: contain;
}

.image-preview {
  max-height: 240px;
  margin-top: 10px;
  box-shadow: 4px 4px 0 var(--ink);
}

.report-image {
  max-width: 220px;
  max-height: 160px;
  margin-top: 8px;
}

.employee-submit {
  flex: 1 1 180px;
  min-height: 54px;
  font-size: 20px;
}

.employee-reports {
  margin-top: 18px;
  padding: 18px;
  border: 4px solid var(--ink);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}

.employee-reports h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.employee-record {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 3px solid var(--ink);
}

.employee-record p {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.record-meta {
  display: block;
  margin-top: 8px;
  font-weight: 800;
  color: var(--green-dark);
}

@media (max-width: 900px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    width: min(220px, 70vw);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding: 16px 0;
  }

  .hero,
  .report-form,
  .table-header {
    padding: 18px;
  }

  h1 {
    font-size: 44px;
  }

  .form-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics div + div {
    border-top: 4px solid var(--ink);
    border-left: 0;
  }

  .table-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions button,
  .table-actions button {
    flex: 1 1 140px;
  }

  .employee-shell {
    width: min(100% - 18px, 520px);
    padding-top: 12px;
  }

  .employee-hero h1 {
    font-size: 44px;
  }

  .employee-record {
    grid-template-columns: 1fr;
  }
}
