/* pintrace.cn — same palette as pintrace.net (services/pintrace-site/public/site.css). */
:root {
  --bg: #f4f6f1; --surface: #ffffff; --text: #17221a; --muted: #5d6b60; --line: #dfe6dc;
  --green: #2f6b35; --green-deep: #234f28; --green-pale: #e7f0e3; --accent-text: #2f6b35;
  --warn-bg: #fff4e0; --warn-text: #7a4a00; --danger: #a3332b;
  --shadow: 0 10px 30px rgba(23, 34, 26, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1511; --surface: #18201a; --text: #e8efe7; --muted: #9aa99c; --line: #2a352c;
    --green: #4f9a57; --green-deep: #3d7f45; --green-pale: #1f2c21; --accent-text: #8fd197;
    --warn-bg: #3a2c12; --warn-text: #f3c77a; --danger: #f08a80;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1511; --surface: #18201a; --text: #e8efe7; --muted: #9aa99c; --line: #2a352c;
  --green: #4f9a57; --green-deep: #3d7f45; --green-pale: #1f2c21; --accent-text: #8fd197;
  --warn-bg: #3a2c12; --warn-text: #f3c77a; --danger: #f08a80;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--accent-text); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .wrap { display: flex; align-items: center; gap: 10px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
header.top nav { margin-left: auto; display: flex; gap: 16px; font-size: 15px; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a[aria-current="page"] { color: var(--text); font-weight: 700; }

main.wrap { padding-top: 24px; padding-bottom: 40px; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 32px 0 10px; }
h3 { font-size: 16px; margin: 20px 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.stack > * + * { margin-top: 12px; }

.app-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.app-head img { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); flex: none; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--green-pale); color: var(--accent-text); vertical-align: 3px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 54px; padding: 12px 18px; border-radius: 14px; border: 0;
  background: var(--green); color: #fff; font: inherit; font-size: 18px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.btn:active { background: var(--green-deep); }
.btn.secondary { background: var(--green-pale); color: var(--accent-text); font-size: 16px; min-height: 46px; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); pointer-events: none; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; margin-top: 10px; font-size: 14px; color: var(--muted); }

.notice { border-radius: 14px; padding: 14px 16px; background: var(--warn-bg); color: var(--warn-text); }
.notice b { display: block; margin-bottom: 2px; }
.notice[hidden] { display: none; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 14px 40px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-pale); color: var(--accent-text); font-weight: 800; text-align: center; line-height: 28px; font-size: 15px;
}
.steps li:last-child { padding-bottom: 0; }

details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details > div { padding-top: 8px; }
details ol, details ul { margin: 0; padding-left: 20px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.features div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.features b { display: block; }

code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.hash { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-top: 6px; }

/* WeChat / QQ: the "open in browser" pointer at the top right. */
.wx-overlay { position: fixed; inset: 0; z-index: 10; background: rgba(10, 16, 12, 0.82); color: #fff; padding: 16px; }
.wx-overlay[hidden] { display: none; }
.wx-overlay .arrow { position: absolute; top: 6px; right: 18px; font-size: 44px; line-height: 1; }
.wx-overlay .box { margin: 70px 0 0 auto; max-width: 320px; text-align: right; font-size: 18px; line-height: 1.6; }
.wx-overlay .box b { font-size: 22px; display: block; margin-bottom: 6px; }
.wx-overlay .dots { display: inline-block; padding: 0 8px; border: 1px solid rgba(255,255,255,0.6); border-radius: 8px; letter-spacing: 2px; }
.wx-overlay button { margin-top: 18px; background: transparent; border: 1px solid rgba(255,255,255,0.6); color: #fff; border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 13px; color: var(--muted); text-align: center; }
footer a { color: var(--muted); }
footer p { margin: 2px 0; }

.policy h2 { font-size: 18px; }
.policy ul { padding-left: 20px; }
.policy li { margin: 4px 0; }
