

html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; -webkit-text-size-adjust: none; -ms-touch-action: manipulation; touch-action: manipulation; }
body { background: #000; overscroll-behavior: none; }
.err-page { height: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; background: #000; font-family: "Roboto", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 14px; }
.err-page * { box-sizing: border-box; }
.err-card { width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; background: #212121; border: 1px solid #1b1b1b; border-radius: 5px; box-shadow: 0 3px 7px rgba(0,0,0,.28); padding: 48px 32px; text-align: center; color: #fff; }
.err-card::-webkit-scrollbar { display: none; }
.err-icon { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 20px; border-radius: 50%; background: rgba(0,129,99,.12); color: #008163; font-size: 28px; font-weight: 700; }
.err-icon--error { background: rgba(230,33,23,.2); color: #e62117; }
.err-code { font-size: 56px; font-weight: 800; color: #008163; line-height: 1.1; letter-spacing: 2px; }
.err-title { margin: 12px 0 8px; font-size: 20px; font-weight: 700; color: #fff; }
.err-msg { margin: 0 0 12px; font-size: 15px; line-height: 1.8; color: #a2a2a2; word-break: break-word; }
.err-msg a { color: #008163; text-decoration: underline; }
.err-count { font-weight: 700; color: #008163; }
.err-actions { margin-top: 24px; }
.err-btn { display: inline-block; padding: 10px 28px; margin: 0 6px 8px; border-radius: 15px; background: #008163; color: #ffffff; text-decoration: none; font-size: 14px; font-weight: 700; transition: background .3s ease; }
.err-btn:hover { background: #1554b2; }
.err-btn--ghost { background: transparent; color: #008163; border: 2px solid #008163; }
.err-btn--ghost:hover { background: rgba(0,129,99,.08); }

 
@media (max-width: 640px) {
    html, body { position: fixed; top: 0; left: 0; right: 0; bottom: 0; }
    .err-page { padding: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px)); }
    .err-card { padding: 28px 18px; }
    .err-code { font-size: 44px; }
    .err-icon { width: 56px; height: 56px; line-height: 56px; }
    .err-title { font-size: 18px; }
    .err-msg { font-size: 14px; }
    .err-btn { padding: 10px 22px; }
}
 
@media (max-height: 560px) {
    .err-card { padding: 20px 18px; }
    .err-icon { width: 48px; height: 48px; line-height: 48px; margin-bottom: 12px; }
    .err-code { font-size: 40px; }
    .err-title { font-size: 17px; margin: 8px 0 6px; }
    .err-actions { margin-top: 14px; }
}
@media (max-height: 420px) {
    .err-page { padding: 8px; }
    .err-card { padding: 12px 16px; }
    .err-icon { width: 32px; height: 32px; line-height: 32px; font-size: 15px; margin-bottom: 6px; }
    .err-code { font-size: 26px; }
    .err-title { font-size: 14px; margin: 4px 0 3px; }
    .err-msg { font-size: 12px; margin-bottom: 5px; line-height: 1.5; }
    .err-countdown { font-size: 12px; }
    .err-actions { margin-top: 8px; }
    .err-btn { padding: 6px 16px; margin: 0 3px 4px; font-size: 12px; }
}

