* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; background: #fff; color: #111; }
button, input, select { font: inherit; }
.shell { max-width: 430px; margin: 0 auto; min-height: 100vh; padding: 18px 14px 86px; background: #fff; }
.brand-logo { width: 88px; display: block; margin: 26px auto 10px; }
h1 { font-size: 20px; line-height: 1.35; text-align: center; margin: 10px 0 6px; font-weight: 700; }
h2 { font-size: 22px; margin: 22px 0 12px; }
.subtle { color: #666; font-size: 13px; text-align: center; }
.login-form { margin-top: 34px; display: grid; gap: 10px; }
.input-inside { position: relative; }
.input-inside input { padding-right: 104px; }
#sendCodeBtn { position: absolute; right: 2px; top: 1px; height: 28px; min-width: 92px; border: 0; background: transparent; color: #6266d8; font-size: 12px; cursor: pointer; }
#sendCodeBtn:disabled { color: #8a8da3; cursor: default; }
label { display: block; font-size: 14px; color: #333; margin: 10px 0 6px; font-weight: 600; }
input, select { width: 100%; height: 30px; padding: 5px 10px; border: 1px solid #aaa; border-radius: 4px; background: #fff; color: #111; }
input::placeholder { color: #b6b6b6; font-size: 12px; }
.primary, .ghost { border: 0; cursor: pointer; }
.primary { height: 34px; border-radius: 18px; background: #6261d6; color: #fff; }
.ghost { background: #6261d6; color: #fff; border-radius: 6px; padding: 8px 12px; }
#loginBtn { margin-top: 20px; }
.wide { width: 100%; margin-top: 20px; height: 40px; }
.hidden { display: none !important; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 14px; }
.topbar .subtle { text-align: left; }
.tabs { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 10; width: min(430px, 100vw); display: grid; grid-template-columns: repeat(3, 1fr); background: #4a4a4a; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 14px rgba(0,0,0,.12); }
.tab { border: 0; background: transparent; padding: 14px 0; color: #fff; font-size: 16px; }
.tab.active { color: #fff; font-weight: 700; }
.panel { padding: 0; margin-top: 14px; background: #fff; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.grid label { margin: 0; }
.grid input, .grid select { margin-top: 6px; height: 36px; border-color: #aaa; }
.section-head { display: flex; justify-content: space-between; align-items: center; }
.small { padding: 8px 10px; border-radius: 6px; }
.hero-image { width: 100%; display: block; }
.certificate-guide { font-size: 14px; line-height: 1.65; color: #111; }
.certificate-guide h2 { text-align: center; font-size: 18px; line-height: 1.45; margin: 18px 0 16px; font-weight: 800; }
.certificate-guide h3 { font-size: 16px; margin: 18px 0 8px; font-weight: 700; }
.certificate-guide p { margin: 6px 0; }
.certificate-guide ol, .certificate-guide ul { margin: 6px 0 10px; padding-left: 20px; }
.certificate-guide li { margin: 4px 0; }
.certificate-guide a { color: #6261d6; word-break: break-all; }
#certificateIntro h3 { font-size: 22px; margin: 22px 0 12px; }
#certificateIntro p { font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.cert-grid { display: grid; gap: 10px; margin-top: 10px; }
.cert-grid img { width: 100%; display: block; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: grid; place-items: center; padding: 16px; z-index: 30; }
.notice-box { position: relative; width: min(92vw, 340px); padding: 18px; background: #fff; border: 1px solid #999; border-radius: 4px; }
.close { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 28px; }
.qr { width: 160px; height: 160px; object-fit: contain; display: block; margin: 12px auto 0; border: 1px solid #e5e5e5; }
