:root { --red: #d43d2a; --blue: #2563eb; --bg: #f6f7f9; --card: #fff; --text: #1f2430; --muted: #6b7280; --border: #e5e7eb; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
header { padding: 18px 20px 10px; background: #fff; border-bottom: 1px solid var(--border); }
h1 { margin: 0 0 4px; font-size: 22px; }
h1 .ver { font-size: 13px; color: var(--muted); font-weight: normal; }
.disclaimer { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.api-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.api-bar input[type=text] { width: 340px; max-width: 90vw; }
nav#tabs { display: flex; gap: 4px; padding: 10px 20px 0; flex-wrap: wrap; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
nav#tabs button { border: 1px solid var(--border); background: #fff; padding: 8px 14px; border-radius: 8px 8px 0 0; cursor: pointer; font-size: 14px; }
nav#tabs button.active { background: var(--red); color: #fff; border-color: var(--red); }
main { padding: 16px 20px 40px; max-width: 1100px; margin: 0 auto; }
.tab { display: none; }
.tab.active { display: block; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.card b { display: block; font-size: 20px; margin-top: 4px; }
.card span { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
button { background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
button.secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
input, select, textarea { border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; font-size: 14px; }
textarea { width: 100%; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: 13px; margin: 8px 0; }
th, td { border: 1px solid var(--border); padding: 6px 8px; text-align: right; }
th:first-child, td:first-child { text-align: left; }
th { background: #fafafa; }
.balls { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ball { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--red); color: var(--red); display: flex; align-items: center; justify-content: center; cursor: pointer; background: #fff; font-size: 14px; }
.blue .ball { border-color: var(--blue); color: var(--blue); }
.ball.sel { background: var(--red); color: #fff; }
.blue .ball.sel { background: var(--blue); }
.ball.hit { background: #16a34a; border-color: #16a34a; color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { border-radius: 0; background: #fff; color: var(--text); }
.seg button.active { background: var(--red); color: #fff; }
.seg button[data-zone="back"].active { background: var(--blue); }
.win { color: #16a34a; font-weight: bold; }
.muted { color: var(--muted); font-size: 13px; }
pre { background: #111827; color: #e5e7eb; padding: 12px; border-radius: 8px; overflow: auto; font-size: 12px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
.bar { height: 10px; background: #e5e7eb; border-radius: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); }
.blue-bar i { background: var(--blue); }
