:root {
  --ink: #17241f;
  --muted: #66736d;
  --line: #dce4df;
  --paper: #ffffff;
  --wash: #f4f7f5;
  --green: #176b4d;
  --green-dark: #0e4f38;
  --green-pale: #e9f4ef;
  --gold: #d39a36;
  --red: #a73b35;
  --shadow: 0 12px 32px rgba(23, 49, 38, .08);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--wash);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 0, #e6f0eb 0, transparent 28rem), var(--wash); }
a { color: var(--green); text-decoration: none; }
button, input, textarea { font: inherit; }
.site-header { height: 68px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: white; }
nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.inline-form { display: inline; }
.link-button { padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.page { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.narrow-page { width: min(460px, calc(100% - 32px)); padding-top: 10vh; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { margin: 8px 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; }
.page-heading p, .muted { color: var(--muted); }
.split { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.back { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.card { background: var(--paper); border: 1px solid rgba(218,227,222,.9); border-radius: 18px; box-shadow: var(--shadow); }
.login-card { padding: 42px; }
.login-card h1 { margin: 10px 0; }
.form-stack { display: grid; gap: 20px; margin-top: 26px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #cbd7d0; border-radius: 10px; background: white; color: var(--ink); padding: 12px 14px; outline: none; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,77,.12); }
textarea { resize: vertical; line-height: 1.6; }
input[type=file] { padding: 10px; background: var(--wash); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }
small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.55; }
.required { color: var(--red); font-size: 12px; font-weight: 500; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; font-weight: 750; cursor: pointer; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { border-color: var(--line); background: white; color: var(--ink); }
.button.full { width: 100%; min-height: 48px; }
.alert { margin: 16px 0; padding: 12px 15px; border-radius: 10px; background: #eef4f1; color: var(--green-dark); font-size: 14px; }
.alert.error { background: #faecea; color: #8d302b; }
.alert.success { background: var(--green-pale); color: var(--green-dark); }
.task-list { display: grid; gap: 14px; }
.task-card { display: flex; justify-content: space-between; gap: 24px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: white; color: var(--ink); transition: .15s ease; }
.task-card:hover { border-color: #aabfb4; transform: translateY(-1px); box-shadow: var(--shadow); }
.task-main { display: flex; gap: 14px; align-items: flex-start; }
.task-main h2 { margin: 0 0 8px; font-size: 18px; }
.task-main p { margin: 0; color: var(--muted); font-size: 13px; }
.status-dot { flex: none; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: #20a875; box-shadow: 0 0 0 4px #e7f7f0; }
.status-dot.off { background: #929c97; box-shadow: 0 0 0 4px #edf0ee; }
.metrics { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.metrics strong { display: block; color: var(--ink); font-size: 22px; }
.empty-state { padding: 70px 30px; text-align: center; }
.empty-state.small { padding: 45px 20px; box-shadow: none; }
.empty-state p { color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: auto; border-radius: 16px; background: var(--green-pale); color: var(--green); font-size: 28px; }
.form-layout { display: grid; gap: 18px; }
.form-section { display: flex; gap: 22px; padding: 30px; }
.section-number { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green-pale); color: var(--green); font-weight: 800; }
.section-body { flex: 1; min-width: 0; }
.section-body h2 { margin: 4px 0 24px; }
.two-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 20px; }
.two-cols.compact { grid-template-columns: 1fr 1fr; }
.check-row { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 10px; background: var(--green-pale); }
.check-row span { flex: 1; }
.check-row small { margin-top: 4px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 8px; }
.share-panel { padding: 28px; }
.share-panel h2 { margin: 0 0 6px; }
.share-panel p { margin: 0; color: var(--muted); }
.copy-row { display: flex; margin: 18px 0; }
.copy-row input { background: var(--wash); font-family: Consolas, monospace; font-size: 13px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 13px; }
.badge { display: inline-block; padding: 7px 12px; border-radius: 999px; color: var(--green); background: var(--green-pale); font-size: 13px; font-weight: 750; }
.badge.off { color: #68706c; background: #edf0ee; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin: 34px 0 14px; }
.toolbar-actions { display: flex; gap: 10px; }
.table-card { overflow: hidden; box-shadow: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { padding: 14px 18px; color: var(--muted); background: var(--wash); font-size: 12px; }
td { padding: 16px 18px; border-top: 1px solid var(--line); }
.small-badge { padding: 5px 9px; border-radius: 999px; background: #f2f0e7; color: #756229; font-size: 12px; }
.small-badge.done { background: var(--green-pale); color: var(--green); }
.public-page { width: min(620px, calc(100% - 30px)); padding-top: 58px; }
.public-hero { text-align: center; margin-bottom: 28px; }
.public-hero h1 { margin: 10px 0; font-size: clamp(28px, 7vw, 42px); }
.public-hero .lead { color: var(--muted); line-height: 1.7; white-space: pre-wrap; }
.document-icon { display: grid; place-items: center; width: 62px; height: 70px; margin: 0 auto 20px; border-radius: 8px 18px 8px 8px; background: var(--green); color: white; font-size: 24px; font-weight: 800; box-shadow: 0 12px 24px rgba(23,107,77,.2); }
.file-chip { display: inline-flex; max-width: 100%; gap: 10px; margin-top: 12px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: 13px; }
.file-chip span { color: var(--muted); }
.file-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-card { padding: 34px; }
.public-card h2 { margin: 0 0 6px; }
.consent { background: transparent; padding: 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.privacy-note { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.6; }
.center { text-align: center; }
.success-card { padding: 42px; text-align: center; }
.success-card h1 { margin: 10px 0; }
.success-mark, .info-mark { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 50%; background: var(--green); color: white; font-size: 30px; }
.info-mark { background: #edf1ef; color: var(--muted); }
.receipt-detail { display: grid; grid-template-columns: 90px 1fr; gap: 12px; margin: 28px 0; padding: 20px; border-radius: 12px; background: var(--wash); text-align: left; font-size: 14px; }
.receipt-detail span { color: var(--muted); }
.receipt-detail strong { overflow-wrap: anywhere; }
footer { padding: 24px; color: #8b9690; text-align: center; font-size: 12px; }
@media (max-width: 720px) {
  .site-header { padding: 0 18px; }
  .site-header nav > a { display: none; }
  .page { width: min(100% - 28px, 1160px); padding-top: 34px; }
  .split, .task-card { display: grid; }
  .metrics { justify-content: space-between; gap: 12px; }
  .form-section { padding: 22px 18px; gap: 14px; }
  .two-cols, .two-cols.compact { grid-template-columns: 1fr; }
  .toolbar { align-items: flex-start; gap: 14px; }
  .toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .public-card, .success-card, .login-card { padding: 26px 20px; }
  .meta-row { display: grid; }
}
