:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --panel: rgba(255, 253, 247, 0.92);
  --panel-strong: #fffdf8;
  --ink: #142c35;
  --muted: #66706e;
  --line: rgba(29, 44, 46, 0.13);
  --accent: #194a59;
  --accent-2: #8d7b40;
  --danger: #9f2d2d;
  --shadow: 0 24px 70px rgba(37, 31, 19, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(25, 74, 89, 0.12), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(141, 123, 64, 0.14), transparent 30rem),
    var(--bg);
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 6vw, 64px);
}

.compact-hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 10vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.summary {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  line-height: 1.8;
}

.mark {
  display: grid;
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, #f8fbf9, #ece5d5);
}

.mark span {
  width: 58px;
  height: 72px;
  border: 7px solid var(--accent);
  border-top-width: 16px;
  border-radius: 13px;
  box-shadow: 18px 18px 0 -8px rgba(141, 123, 64, 0.45);
}

.package-card,
.upload-card {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 42px);
}

.section-head,
.package-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.package-main {
  margin-top: 34px;
  padding: 28px;
  border-radius: 24px;
  background: var(--panel-strong);
}

.muted {
  margin-bottom: 0;
  color: var(--muted);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: white;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(25, 74, 89, 0.18);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.primary {
  background: linear-gradient(135deg, var(--accent), #0f3540);
}

.ghost {
  border: 1px solid var(--line);
  color: var(--accent);
  background: rgba(255, 253, 248, 0.72);
}

.ghost:hover {
  color: white;
  background: var(--accent);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
}

.meta-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.68);
}

dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 760;
}

.upload-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 760;
}

.full {
  grid-column: 1 / -1;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
}

input[type="file"] {
  padding: 13px 16px;
}

.progress {
  margin-top: 22px;
}

.progress::before {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 44, 53, 0.1);
  content: "";
}

#progress-bar {
  height: 10px;
  width: 0%;
  margin-top: -10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 180ms ease;
}

#upload-message {
  margin: 12px 0 0;
  color: var(--muted);
}

.form-message,
.quiet-foot {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.quiet-foot {
  text-align: center;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.drop-zone {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1.5px dashed rgba(25, 74, 89, 0.26);
  border-radius: 24px;
  padding: 34px 24px;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(25, 74, 89, 0.06), rgba(141, 123, 64, 0.05)),
    #fffdf8;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.drop-zone strong {
  color: var(--ink);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.drop-zone span {
  line-height: 1.7;
}

.drop-zone small {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-weight: 800;
}

.drop-zone.is-dragging {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(25, 74, 89, 0.12), rgba(141, 123, 64, 0.09)),
    #fffdf8;
  box-shadow: 0 22px 44px rgba(25, 74, 89, 0.12);
  transform: translateY(-1px);
}

.drop-icon {
  position: relative;
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #eef5f3, #f7efe0);
}

.drop-icon::before,
.drop-icon::after {
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--accent);
  content: "";
}

.drop-icon::before {
  width: 8px;
  height: 40px;
  border-radius: 999px;
}

.drop-icon::after {
  width: 34px;
  height: 8px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 960px);
    padding: 24px 0;
  }

  .hero,
  .package-main,
  .section-head {
    align-items: flex-start;
  }

  .hero,
  .section-head,
  .package-main {
    flex-direction: column;
  }

  .mark {
    width: 92px;
    height: 92px;
    border-radius: 24px;
  }

  .mark span {
    width: 40px;
    height: 50px;
    border-width: 5px;
    border-top-width: 11px;
  }

  .button {
    width: 100%;
  }

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