

html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
.err-page { min-height: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; touch-action: manipulation; background: #1c1c1c; font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
@supports (min-height: 100dvh) { .err-page { min-height: 100dvh; } }
.err-page * { box-sizing: border-box }
.err-card { width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #252525; border: 1px solid #3a3a3a; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.4); padding: 48px 32px; text-align: center; }
.err-icon { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 20px; border-radius: 50%; background: rgba(255,77,66,.1); color: #ff4d42; font-size: 28px; font-weight: 700 }
.err-icon--error { background: rgba(255,77,66,.14); color: #ff6a60 }
.err-code { font-size: 56px; font-weight: 800; color: #dadada; line-height: 1.1; letter-spacing: 2px }
.err-title { margin: 12px 0 8px; font-size: 20px; font-weight: 700; color: #dedede }
.err-msg { margin: 0 0 12px; font-size: 15px; line-height: 1.8; color: #9f9f9f; word-break: break-word }
.err-msg a { color: #ff4d42; text-decoration: underline }
.err-count { font-weight: 700; color: #ff4d42 }
.err-actions { margin-top: 24px }
.err-btn { display: inline-block; padding: 10px 28px; margin: 0 6px 8px; border-radius: 8px; background: #ff4d42; color: #ffffff; text-decoration: none; font-size: 14px; font-weight: 700; transition: background .2s ease }
.err-btn:hover { background: #e0403a }
.err-btn--ghost { background: transparent; color: #dedede; border: 1px solid #4f535a }
.err-btn--ghost:hover { background: #333333 }
.err-footer { margin-top: 28px; font-size: 12px; color: #6e6e6e }
@media (max-width: 480px) { .err-page { padding: 12px } .err-card { padding: 32px 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: 640px) { .err-page { padding: 10px } .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 } .err-footer { margin-top: 14px } }
