:root {
  color-scheme: light;
  --navy: #20262f;
  --blue: #2469ee;
  --text: #273849;
  --muted: #4a6071;
  --line: #dbe5ec;
  --red: #af3028;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--text);
  background: #f0f3f8;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #1659d9; outline-offset: 3px; }
.shell { max-width: 570px; margin: 0 auto; padding: 24px 16px 28px; }
.back { display: inline-block; margin-bottom: 10px; color: var(--navy); font-size: .88rem; text-decoration: none; }
.back:hover { text-decoration: underline; }
.card { padding: 22px clamp(16px, 5vw, 30px) 20px; background: #fff; border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 10px 30px #10283e0c; }
.intro { text-align: center; margin-bottom: 18px; }
.shield { display: grid; place-items: center; width: 38px; height: 41px; margin: 0 auto 7px; background: var(--navy); color: #dce8fa; font-size: 1.35rem; font-weight: 750; clip-path: polygon(50% 0, 95% 15%, 95% 51%, 85% 71%, 72% 84%, 50% 100%, 28% 84%, 15% 71%, 5% 51%, 5% 15%); }
h1 { margin: 0; color: var(--navy); font-size: clamp(1.45rem, 5vw, 1.9rem); line-height: 1.24; }
.intro p { margin: 6px 0 0; color: var(--muted); font-size: .91rem; line-height: 1.55; }
label { display: block; margin-bottom: 7px; font-size: .89rem; font-weight: 720; color: var(--navy); }
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
input { width: 100%; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid #a9bdcb; border-radius: 8px; background: #fff; color: var(--navy); font-size: 1rem; }
input::placeholder { color: #526878; }
input[aria-invalid="true"] { border-color: var(--red); }
.secondary, .primary { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; font-size: .94rem; font-weight: 720; }
.secondary { padding: 0 14px; background: #f5f8fa; color: var(--navy); }
.secondary:hover:not(:disabled) { background: #e9f0f6; }
.secondary:disabled { opacity: .59; }
.result { margin-top: 13px; padding: 12px 15px 14px; border: 1px solid var(--line); border-radius: 11px; background: #f7f9fc; }
output { display: block; color: var(--navy); text-align: center; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 750; font-size: clamp(2.2rem, 9vw, 3.25rem); line-height: 1.2; letter-spacing: .075em; user-select: text; }
.timing { display: flex; justify-content: space-between; gap: .5rem; margin: 8px 0 6px; color: var(--muted); font-size: .83rem; font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 999px; background: #dfe8ef; accent-color: var(--blue); }
progress::-webkit-progress-bar { background: #dfe8ef; border-radius: 999px; }
progress::-webkit-progress-value { border-radius: 999px; background: var(--blue); }
progress::-moz-progress-bar { border-radius: 999px; background: var(--blue); }
.is-expiring { border-color: #e3aaa5; background: #fff4f2; }
.is-expiring output, .is-expiring #expires, .error { color: var(--red); }
.is-expiring progress { accent-color: var(--red); }
.is-expiring progress::-webkit-progress-value { background: var(--red); }
.is-expiring progress::-moz-progress-bar { background: var(--red); }
.primary { display: block; width: 100%; margin: 10px 0 0; background: var(--navy); color: #fff; }
.primary:hover:not(:disabled) { background: #1d405d; }
.primary:disabled { background: #dfe8ee; color: #465b6a; }
.feedback { min-height: 18px; margin: 5px 0 4px; font-size: .82rem; line-height: 1.35; text-align: center; color: #265840; }
.error { margin: 6px 0 0; font-size: .85rem; line-height: 1.5; }
.privacy { padding: 9px 11px; border-left: 3px solid var(--blue); border-radius: 6px; background: #eaf1fc; font-size: .85rem; line-height: 1.55; }
.privacy strong { color: var(--navy); }
.privacy p { margin: 2px 0 0; }
.faq { margin-top: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.faq details + details { border-top: 1px solid var(--line); }
summary { padding: 10px 0; color: var(--navy); font-size: .86rem; font-weight: 700; cursor: pointer; }
.faq p { margin: 0 0 10px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.clipboard-buffer { position: fixed; left: 0; top: 0; opacity: 0; pointer-events: none; }
@media (max-width: 380px) { .shell { padding: 12px 10px 20px; } .card { padding: 16px 13px 14px; } .intro { margin-bottom: 12px; } }
