* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
    min-height: 100vh;
    color: #e2e8f0;
}

/* 通用错误页（浅色） */
body:not(.jump-page) {
    background: #f0f2f5;
    color: #1a1a1a;
}

body:not(.jump-page) .wrap .card {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body:not(.jump-page) .card h1 {
    color: #222;
}

body:not(.jump-page) .desc {
    color: #666;
}

/* 跳转页深色科技风 */
.jump-page {
    background: #0a0e17;
    overflow: hidden;
}

.jump-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #0a0e17 0%, #0f172a 50%, #0a0e17 100%);
    z-index: 0;
}

.jump-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    z-index: 0;
}

.wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.jump-page .card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    padding: 0 0 32px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(37, 99, 235, 0.08);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.secure-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 12px;
    color: #6ee7b7;
}

.secure-strip .ico {
    width: 14px;
    height: 14px;
    color: #34d399;
}

.secure-strip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: pulse 2s ease-in-out infinite;
}

.secure-strip .status {
    color: #a7f3d0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.loader {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 28px auto 20px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #3b82f6;
    border-right-color: rgba(59, 130, 246, 0.3);
    animation: spin 1.2s linear infinite;
}

.loader-ring-2 {
    inset: 8px;
    border-top-color: #10b981;
    border-right-color: rgba(16, 185, 129, 0.2);
    animation: spin 1.8s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-core {
    position: absolute;
    inset: 18px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
}

.loader-core svg {
    width: 26px;
    height: 26px;
}

.jump-page .card h1 {
    font-size: 20px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.jump-page .desc {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 6px;
    padding: 0 24px;
}

.target {
    font-size: 12px;
    color: #64748b;
    font-family: "Consolas", "Monaco", monospace;
    margin-bottom: 20px;
    padding: 0 24px;
    word-break: break-all;
}

.countdown {
    margin-bottom: 18px;
}

.countdown-num {
    font-size: 36px;
    font-weight: 700;
    color: #60a5fa;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.countdown-unit {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.bar {
    position: relative;
    height: 3px;
    background: rgba(51, 65, 85, 0.8);
    margin: 0 32px 22px;
    border-radius: 3px;
    overflow: hidden;
}

.bar-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bar-inner {
    position: relative;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2563eb, #10b981);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
    transition: width 0.9s linear;
    z-index: 1;
}

.tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
    padding: 0 16px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #94a3b8;
    padding: 5px 10px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 20px;
}

.tag svg {
    width: 12px;
    height: 12px;
    color: #34d399;
}

.jump-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.jump-page .btn svg {
    width: 16px;
    height: 16px;
}

.jump-page .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(37, 99, 235, 0.45);
}

.jump-page .tip {
    margin-top: 20px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    padding: 0 24px;
}

.footer-note {
    margin-top: 20px;
    font-size: 11px;
    color: #475569;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 错误页简易样式 */
body:not(.jump-page) .wrap {
    min-height: 100vh;
}

body:not(.jump-page) .card {
    padding: 40px 32px;
    border-radius: 6px;
    max-width: 400px;
}

body:not(.jump-page) .card h1 {
    font-size: 20px;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .jump-page .card {
        border-radius: 12px;
    }
    .countdown-num {
        font-size: 30px;
    }
}

/* 强调色变量 */
.jump-page .bar-inner {
    background: linear-gradient(90deg, var(--accent, #2563eb), #10b981);
}

.jump-page .btn {
    background: linear-gradient(135deg, var(--accent, #2563eb) 0%, #1d4ed8 100%);
}

.jump-page .countdown-num {
    color: var(--accent, #60a5fa);
}

/* 简约亮色 */
.layout-minimal .card-minimal {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 28px;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.layout-minimal .minimal-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    background: #eff6ff;
    color: var(--accent, #1a56db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-minimal .minimal-icon svg { width: 26px; height: 26px; }
.layout-minimal h1 { color: #1e293b; font-size: 20px; margin-bottom: 8px; }
.layout-minimal .desc { color: #64748b; font-size: 14px; margin-bottom: 8px; }
.layout-minimal .target-light { color: #94a3b8; font-size: 12px; font-family: Consolas, monospace; margin-bottom: 16px; }
.layout-minimal .countdown-light .countdown-num { color: var(--accent, #1a56db); font-size: 32px; text-shadow: none; }
.layout-minimal .bar-light { background: #e2e8f0; margin-bottom: 20px; }
.layout-minimal .btn-minimal {
    display: inline-block;
    padding: 11px 32px;
    background: var(--accent, #1a56db);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}
.layout-minimal .tip-light { color: #94a3b8; font-size: 12px; margin-top: 16px; }

/* 商务深蓝 */
.layout-business .biz-lines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(14,165,233,0.03) 0, rgba(14,165,233,0.03) 1px, transparent 1px, transparent 80px);
    pointer-events: none;
}

.layout-business .card-business {
    background: rgba(12, 25, 41, 0.92);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 8px;
    padding: 32px 28px;
    max-width: 420px;
    text-align: center;
}

.layout-business .biz-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #38bdf8;
    font-size: 12px;
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
}

.layout-business .biz-header svg { width: 14px; height: 14px; }
.layout-business h1 { color: #f8fafc; font-size: 22px; margin-bottom: 10px; }
.layout-business .desc { color: #94a3b8; font-size: 13px; margin-bottom: 12px; }
.layout-business .biz-host { color: #64748b; font-family: Consolas, monospace; font-size: 12px; margin-bottom: 16px; }
.layout-business .biz-countdown { color: #cbd5e1; font-size: 14px; margin-bottom: 16px; }
.layout-business .biz-countdown strong { color: var(--accent, #0ea5e9); font-size: 20px; }
.layout-business .biz-tags { display: flex; justify-content: center; gap: 12px; margin: 16px 0; }
.layout-business .biz-tags span { font-size: 11px; color: #64748b; padding: 4px 10px; border: 1px solid #334155; border-radius: 3px; }
.layout-business .btn-business {
    display: inline-block;
    padding: 12px 36px;
    background: var(--accent, #0ea5e9);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 8px;
}

/* 渐变时尚 */
.layout-gradient .gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.layout-gradient .gradient-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent, #a855f7);
    top: -80px;
    left: -80px;
}

.layout-gradient .gradient-orb-2 {
    width: 250px;
    height: 250px;
    background: #ec4899;
    bottom: -60px;
    right: -60px;
}

.layout-gradient .card-gradient {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 36px 28px;
    max-width: 400px;
    text-align: center;
}

.layout-gradient .gradient-badge {
    display: inline-block;
    font-size: 11px;
    color: #e9d5ff;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    margin-bottom: 16px;
}

.layout-gradient h1 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.layout-gradient .desc { color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 20px; }
.layout-gradient .gradient-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-gradient .gradient-sec {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.layout-gradient .gradient-host {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-family: Consolas, monospace;
    margin-bottom: 16px;
}

.layout-gradient .btn-gradient {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--accent, #a855f7), #ec4899);
    color: #fff;
    text-decoration: none;
    border-radius: 24px;
    font-size: 14px;
    margin-top: 8px;
}

.layout-gradient .tip { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 16px; }
