:root {
  --ink: #171714;
  --muted: #6e6d65;
  --paper: #f7f6f0;
  --card: #fffefa;
  --line: #deddd4;
  --lime: #c8f23b;
  --lime-dark: #a9d118;
  --violet: #7157d9;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 19%, rgba(200, 242, 59, .16), transparent 27rem),
    linear-gradient(rgba(23, 23, 20, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 20, .035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 32px 32px, 32px 32px, auto;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.topbar, footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  background: var(--lime);
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 900;
}
.privacy-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 12px ui-monospace, monospace;
  letter-spacing: .04em;
}
.privacy-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-dark);
  box-shadow: 0 0 0 4px rgba(169, 209, 24, .14);
}

.hero {
  width: min(820px, calc(100% - 40px));
  margin: 70px auto 0;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, .72);
  color: var(--muted);
  font: 12px ui-monospace, monospace;
  letter-spacing: .05em;
}
h1 {
  margin: 24px 0 16px;
  font-size: clamp(48px, 8.6vw, 84px);
  line-height: .98;
  letter-spacing: -.075em;
  font-weight: 850;
}
h1 span { position: relative; z-index: 0; }
h1 span::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -1%;
  right: -3%;
  bottom: 7%;
  height: 24%;
  background: var(--lime);
  transform: rotate(-1deg);
  border-radius: 4px;
}
.lead {
  max-width: 570px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.workspace {
  margin-top: 42px;
  text-align: left;
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 7px 7px 0 var(--ink);
  overflow: hidden;
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  background: #f0efe8;
}
.tabs button {
  position: relative;
  height: 58px;
  border: 0;
  background: transparent;
  color: #828078;
  cursor: pointer;
  font-weight: 650;
}
.tabs button:first-child { border-right: 1px solid var(--line); }
.tabs button.active { color: var(--ink); background: var(--card); }
.tabs button.active::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: -1px;
  height: 3px;
  background: var(--lime-dark);
}
.space-form, .space-view { padding: 32px; }
.space-form > label, .duration-picker legend, .section-label {
  display: block;
  margin-bottom: 10px;
  color: #494842;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .08em;
}
.code-row { display: flex; gap: 10px; }
.code-row input {
  min-width: 0;
  flex: 1;
  height: 54px;
  padding: 0 17px;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  background: #fff;
  outline: none;
  font-family: ui-monospace, monospace;
}
.code-row input:focus { box-shadow: 0 0 0 3px rgba(200, 242, 59, .55); }
.primary-button {
  min-height: 54px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 760;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}
.primary-button:hover { background: #d6fa55; }
.primary-button:disabled { opacity: .58; cursor: progress; }
.primary-button.compact { min-height: 42px; margin-left: auto; box-shadow: none; }
.hint { margin: 9px 0 26px; color: #918f86; font-size: 12px; }

.duration-picker { margin: 0; padding: 0; border: 0; }
.duration-picker > label {
  width: calc(50% - 5px);
  min-height: 70px;
  padding: 14px 15px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.duration-picker > label + label { margin-left: 10px; }
.duration-picker > label.selected { border-color: var(--ink); background: #fbfde7; }
.duration-picker input { position: absolute; opacity: 0; pointer-events: none; }
.duration-picker label > i {
  width: 17px;
  height: 17px;
  border: 1.5px solid #aaa89e;
  border-radius: 50%;
}
.duration-picker label.selected > i { border: 5px solid var(--violet); }
.duration-picker span { display: flex; flex-direction: column; gap: 4px; }
.duration-picker b { font-size: 14px; }
.duration-picker small { color: var(--muted); font-size: 12px; }
.notice {
  margin: 18px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--violet);
  background: #f1eefc;
  color: #4e3b9e;
  font-size: 13px;
}

.space-heading { display: flex; align-items: center; justify-content: space-between; }
.space-heading h2 {
  margin: 0;
  font: 700 30px ui-monospace, monospace;
  letter-spacing: -.04em;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.expiry {
  margin: 22px 0 18px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d8dfb9;
  border-radius: 10px;
  background: #f8fbe8;
}
.clock {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-size: 21px;
}
.expiry div { display: flex; flex-direction: column; gap: 3px; }
.expiry b { font-size: 13px; }
.expiry small { color: var(--muted); font-size: 11px; }

.dropzone {
  min-height: 108px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px dashed #aaa89d;
  border-radius: 12px;
  background: #faf9f4;
  transition: .15s ease;
}
.dropzone.dragging { border-color: var(--violet); background: #f2effd; }
.dropzone > input { display: none; }
.drop-copy { display: flex; flex-direction: column; gap: 5px; }
.drop-copy b { font-size: 14px; }
.drop-copy small { color: var(--muted); font-size: 11px; }
.upload-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--card);
  font-size: 23px;
  cursor: pointer;
}
.progress-track {
  height: 5px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e8e7df;
  overflow: hidden;
}
.progress-track i {
  width: 0;
  height: 100%;
  display: block;
  background: var(--violet);
  transition: width .2s ease;
}

.file-section { margin-top: 28px; }
.file-title { display: flex; align-items: center; gap: 10px; }
.file-title h3 { margin: 0; font-size: 15px; }
.file-title span {
  padding: 2px 7px;
  border-radius: 999px;
  background: #ebeae3;
  color: var(--muted);
  font-size: 11px;
}
.file-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.file-list li {
  padding: 13px 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.file-icon {
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f2f0fa;
  color: var(--violet);
}
.file-meta { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 4px; }
.file-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-meta small { color: var(--muted); font-size: 11px; }
.download-button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}
.empty-state {
  margin-top: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.steps {
  width: min(960px, calc(100% - 40px));
  margin: 90px auto 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.steps article { position: relative; padding-left: 42px; }
.steps article > span {
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--violet);
  font: 700 12px ui-monospace, monospace;
}
.steps b { display: block; margin-bottom: 7px; font-size: 14px; }
.steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
footer {
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #8b8981;
  font: 11px ui-monospace, monospace;
}

@media (max-width: 640px) {
  .topbar { height: 68px; }
  .privacy-pill { font-size: 0; }
  .privacy-pill::after { content: "匿名自托管"; font-size: 11px; }
  .hero { margin-top: 44px; }
  h1 { font-size: 50px; }
  .lead { font-size: 14px; }
  .workspace { margin-top: 32px; box-shadow: 4px 4px 0 var(--ink); }
  .space-form, .space-view { padding: 22px 18px; }
  .code-row { flex-direction: column; }
  .primary-button { width: 100%; }
  .duration-picker > label { width: 100%; }
  .duration-picker > label + label { margin: 9px 0 0; }
  .dropzone { align-items: flex-start; flex-wrap: wrap; }
  .dropzone .compact { width: 100%; margin: 5px 0 0; }
  .steps { margin: 68px auto 50px; grid-template-columns: 1fr; gap: 28px; }
  footer { flex-direction: column; gap: 8px; }
}
