:root {
  --green: #0f6e56;
  --green-dark: #0b5744;
  --green-soft: #e1f5ee;
  --green-border: #b8e0d0;
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f4f2ee;
  --border: #e4e0d8;
  --text: #2c2c2a;
  --text-2: #6b6a64;
  --text-3: #97958c;
  --warn: #854f0b;
  --danger: #a32d2d;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- topbar ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.topnav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.topnav a {
  padding: 5px 11px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13.5px;
  white-space: nowrap;
}
.topnav a:hover { background: var(--surface-2); text-decoration: none; }
.topnav a.active { background: var(--green-soft); color: var(--green); font-weight: 500; }

.page { padding: 30px 0 70px; }

/* ---------- hero ---------- */
.hero { padding: 44px 0 32px; text-align: center; }
.hero-badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--green-border);
}
.hero h1 {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero p {
  font-size: 15.5px;
  color: var(--text-2);
  margin: 0 auto 26px;
  max-width: 620px;
}
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--green);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}
.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.trust-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
}
.trust-t { font-weight: 600; margin-bottom: 3px; font-size: 14px; }
.trust-d { font-size: 12.5px; color: var(--text-2); }

/* ---------- section ---------- */
.sec-head { margin: 40px 0 18px; }
.sec-head h2 { font-size: 21px; font-weight: 600; margin: 0 0 5px; }
.sec-head p { margin: 0; color: var(--text-2); font-size: 13.5px; }

/* ---------- tool cards ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.tool-card:hover { border-color: var(--green); text-decoration: none; box-shadow: 0 2px 12px rgba(15,110,86,.07); }
.tool-top { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.tool-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-card h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.tool-ver {
  font-size: 11px;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 3px;
}
.tool-card p { margin: 0 0 13px; font-size: 13.5px; color: var(--text-2); flex: 1; }
.tool-feats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.tool-feat {
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 4px;
}
.tool-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.tool-size { font-size: 12px; color: var(--text-3); }
.tool-dl { font-size: 13.5px; font-weight: 500; color: var(--green); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
}
.step-n {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.step-t { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.step-d { font-size: 12.5px; color: var(--text-2); }

/* ---------- notice ---------- */
.notice {
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin: 18px 0;
  border: 1px solid;
}
.notice-warn { background: #fdf6e7; border-color: #f0dcb0; color: #633806; }
.notice-green { background: var(--green-soft); border-color: var(--green-border); color: var(--green-dark); }
.notice-t { font-weight: 600; display: block; margin-bottom: 3px; }

/* ---------- page head ---------- */
.phead { padding: 30px 0 6px; }
.phead h1 { font-size: 25px; font-weight: 600; margin: 0 0 8px; }
.crumb { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.crumb a { color: var(--text-3); }

/* ---------- tool detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.panel h2 { font-size: 16.5px; font-weight: 600; margin: 0 0 12px; }
.panel h3 { font-size: 14px; font-weight: 600; margin: 20px 0 8px; }

.feat-list { list-style: none; padding: 0; margin: 0; }
.feat-list li {
  padding: 7px 0 7px 24px;
  position: relative;
  font-size: 13.5px;
  border-bottom: 1px solid var(--surface-2);
}
.feat-list li:last-child { border-bottom: none; }
.feat-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.dl-box {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 14px;
}
.dl-size { font-size: 12.5px; color: var(--green-dark); margin-bottom: 12px; }
.dl-hash {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 9px;
  margin-top: 12px;
  word-break: break-all;
  text-align: left;
  cursor: pointer;
}

.sourcedetail { width: 100%; border-collapse: collapse; font-size: 13px; }
.sourcedetail td { padding: 8px 0; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
.sourcedetail td:first-child { color: var(--text-2); width: 110px; }

/* ---------- upload page ---------- */
.upload-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input[type="text"], .field input[type="email"], .field textarea, .field select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15,110,86,.1);
}
.field-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }

.dropbox {
  border: 1.5px dashed #cfccc3;
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 28px;
  text-align: center;
  cursor: pointer;
}
.dropbox:hover, .dropbox.drag { border-color: var(--green); background: var(--green-soft); }

.rule-list { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.rule-list li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--surface-2); }
.rule-list li:last-child { border-bottom: none; }
.rule-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 15px; height: 15px;
  border-radius: 4px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
}

/* ---------- admin ---------- */
.admin-bar {
  background: #2c2c2a;
  color: #fff;
  padding: 10px 20px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-bar a { color: #9fe1cb; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
}
.stat-n { font-size: 25px; font-weight: 600; color: var(--green); }
.stat-l { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }

table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th {
  text-align: left;
  padding: 10px;
  border-bottom: 1.5px solid var(--border);
  font-weight: 500;
  color: var(--text-2);
  font-size: 12.5px;
}
table.list td { padding: 11px 10px; border-bottom: 1px solid var(--surface-2); }
.tag { font-size: 11.5px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.tag-ok { background: var(--green-soft); color: var(--green); }
.tag-wait { background: #fdf6e7; color: var(--warn); }
.tag-no { background: #fceceb; color: var(--danger); }

footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 26px 0;
  font-size: 12.5px;
  color: var(--text-3);
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 860px) {
  .detail-layout, .upload-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .topbar-inner { gap: 10px; }
  .topnav a { padding: 4px 8px; font-size: 12.5px; }
}