:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #122033;
  --muted: #5b6777;
  --line: #d7dde6;
  --accent: #1e3a5f;
  --accent-2: #2a4d73;
  --ok: #15803d;
  --err: #b91c1c;
  --max: 1080px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; width: 100%; }
main { flex: 1; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-header nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4rem; gap: 1rem;
}
.brand { display: flex; flex-direction: column; gap: .1rem; text-decoration: none; }
.brand strong { font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }
.brand span { font-size: .72rem; color: var(--muted); }
.nav-mid { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav-mid a { text-decoration: none; font-size: .9rem; color: var(--muted); }
.nav-mid a:hover, .nav-mid a.active { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: .65rem; }
.nav-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-size: .9rem; padding: .55rem 1.1rem;
}
.nav-cta, .btn-solid { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.page { padding: 2.5rem 0 4rem; }
.page-h {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: .5rem;
}
.page-p { color: var(--muted); max-width: 40rem; margin-bottom: 1.75rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); padding: 1.25rem 1.2rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .92rem; margin-bottom: .85rem; }
.card .price { font-size: 1.35rem; font-weight: 700; color: var(--accent); margin-bottom: .85rem; }
.card .price small { font-size: .85rem; font-weight: 500; color: var(--muted); }

.form { display: grid; gap: .85rem; max-width: 420px; }
.form label { display: grid; gap: .3rem; font-size: .88rem; }
.form input, .form select, .form textarea {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: .65rem .75rem; font: inherit; border-radius: 0;
}
.form .hint { font-size: .8rem; color: var(--muted); }
.err { color: var(--err); font-size: .88rem; }
.ok { color: var(--ok); font-size: .88rem; }
.badge {
  display: inline-block; font-size: .72rem; padding: 2px 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
}
.badge-ok { background: rgba(21,128,61,.1); color: var(--ok); border-color: transparent; }
.badge-err { background: rgba(185,28,28,.1); color: var(--err); border-color: transparent; }

.site-footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 2rem 0 1.5rem; margin-top: auto;
}
.ft-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.25rem;
}
.ft-grid strong { display: block; margin-bottom: .35rem; }
.ft-grid p, .ft-grid a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.ft-grid ul { list-style: none; }
.ft-grid li { margin-bottom: .35rem; }
.ft-bottom {
  border-top: 1px solid var(--line); padding-top: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted);
}
.icp-link { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--line); }

.table-wrap { overflow: auto; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; background: var(--bg); }
code { font-size: .85em; }

@media (max-width: 800px) {
  .nav-mid { display: none; }
  .ft-grid { grid-template-columns: 1fr; }
}
/* Logo lockup — always square mark */
.brand {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}
.brand-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: block;
  object-fit: contain;
  border-radius: 0; /* 方形，不圆角胶囊 */
}
.brand-logo.lg { width: 48px; height: 48px; flex-basis: 48px; }
.brand-logo.sm { width: 28px; height: 28px; flex-basis: 28px; }
.brand-text {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  line-height: 1.25;
}
.brand-text strong {
  font-size: 1.1rem;
  font-weight: 700;
}
.brand-text span {
  font-size: .7rem;
  color: var(--muted, #5b6777);
}
.hero-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  display: block;
  object-fit: contain;
}
