:root {
  --primary: #1a73e8;
  --green: #188038;
  --red: #d93025;
  --amber: #f9ab00;
  --bg: #f5f7fa;
  --card: #fff;
  --text: #202124;
  --muted: #5f6368;
  --border: #e0e0e0;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5;
  padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
.app { max-width: 520px; margin: 0 auto; padding: 16px; }
h1 { font-size: 20px; margin: 8px 0 4px; }
h2 { font-size: 17px; margin: 16px 0 8px; }
.muted { color: var(--muted); font-size: 14px; }
.hidden { display: none !important; }
.ok { color: var(--green); font-weight: 600; margin: 8px 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
label { display: block; margin: 10px 0; font-size: 14px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px; margin-top: 4px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 16px; background: #fff; color: var(--text);
}
button {
  border: none; border-radius: 10px; padding: 12px 16px; font-size: 16px;
  background: #eef1f5; color: var(--text); cursor: pointer;
}
button.primary { background: var(--primary); color: #fff; width: 100%; margin-top: 8px; font-weight: 600; }
button.dur { background: #eef1f5; }
button.dur.active { background: var(--primary); color: #fff; }
.btn { display: inline-block; text-align: center; padding: 12px 16px; border-radius: 10px; background: #eef1f5; color: var(--text); text-decoration: none; margin-top: 8px; }
.qr { width: 220px; height: 220px; display: block; margin: 12px auto; background: #fff; padding: 8px; border: 1px solid var(--border); border-radius: 12px; }
.pkqr-box { text-align: center; margin: 10px 0 2px; }
.countdown { font-size: 44px; font-weight: 700; text-align: center; margin: 16px 0; color: var(--green); }
.banner {
  background: #fef7e0; border: 1px solid var(--amber); color: #7a5b00;
  padding: 12px; border-radius: 10px; margin: 8px 0; font-weight: 600; text-align: center;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; margin: 10px 0;
}
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; color: #fff; font-size: 12px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 8px 0; }
.tabs { display: flex; position: sticky; top: 0; background: var(--bg); z-index: 5; border-bottom: 1px solid var(--border); margin: -16px -16px 12px; }
.tabs button { flex: 1; border-radius: 0; background: transparent; border-bottom: 3px solid transparent; padding: 12px 4px; font-size: 14px; }
.tabs button.active { border-bottom-color: var(--primary); color: var(--primary); font-weight: 600; }
.section { display: none; }
.section.active { display: block; }
.alert { background: #fce8e6; border: 1px solid var(--red); }
.alert.amber { background: #fef7e0; border-color: var(--amber); }
.small { font-size: 13px; }
.center { text-align: center; }
.site-footer {
  text-align: center; color: #aaa; font-size: 12px;
  padding: 20px 12px; margin-top: 28px;
}
.brand-logo {
  display: inline-block; height: 26px; width: auto;
  vertical-align: middle; margin-right: 8px; border-radius: 6px;
}
