/* 设计参照 explee.com：米白底、近黑文字、品牌绿、白卡片、大圆角、胶囊标签。
   不加载外部字体（国内访问 Google Fonts 很慢），用系统中文字体。 */
:root {
  --bg: #f6f5f3;
  --card: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #3d3d3d;
  --muted: #7a7873;
  --line: #e7e5e0;
  --chip: #eceae6;
  --green: #0d9467;
  --green-soft: #e3f3ec;
  --red: #e5484d;
  --red-soft: #fdecec;
  --amber: #b7791f;
  --amber-soft: #fbf1df;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.red { color: var(--red); }
.small { font-size: 13px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* 顶部导航 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246,245,243,.85); backdrop-filter: blur(10px); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; text-decoration: none; letter-spacing: -0.02em; }
.logo i { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); display: inline-grid; place-items: center; font-style: normal; color: #fff; font-size: 12px; }
.logo i::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav .links a { text-decoration: none; font-size: 15px; }
.nav .links a:hover { color: var(--green); }
@media (max-width: 600px) { .hide-sm { display: none; } .nav .links { gap: 14px; } }

/* 按钮与输入 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; font-size: 14px; white-space: nowrap; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); opacity: 1; }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 52px; padding: 0 28px; font-size: 16px; }
.input, textarea.input, select.input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; outline: none; transition: border-color .15s; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.6; }
.input:focus { border-color: var(--ink); }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

/* 胶囊标签 */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--chip); font-size: 13px; color: var(--ink-2); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* 卡片 */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 16px; }
.card h3 { font-size: 18px; margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

/* 表格 */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; }

/* 统计数字 */
.stat .n { font-size: 32px; letter-spacing: -0.03em; }
.stat .l { font-size: 13px; color: var(--muted); }

/* 提示条 */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 100; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.err { background: var(--red); }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--amber-soft); color: #7a5212; font-size: 14px; }
.notice.green { background: var(--green-soft); color: #0a6b4b; }

.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

footer.site { padding: 48px 0; color: var(--muted); font-size: 13px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
