* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
    background: url('https://s41.ax1x.com/2026/02/28/peSVXoF.webp') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 50%,
        rgba(59, 130, 246, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    body {
        background: url('https://s21.ax1x.com/2025/10/14/pVqCCcQ.jpg') no-repeat center center fixed;
        background-size: cover;
    }
}

.container {
    position: relative;
    width: 90%;
    max-width: 680px;
    animation: containerEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes containerEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glass-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 50px 45px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 80px rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.logo {
    font-size: 4rem;
    display: block;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(99, 102, 241, 0.4));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(-3deg); }
    75% { transform: translateY(-8px) rotate(3deg); }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(99, 102, 241, 0.3);
}

.subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 35px;
    line-height: 1.6;
}

.status-box {
    margin: 30px 0;
    padding: 16px 28px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.2) 0%, 
        rgba(139, 92, 246, 0.2) 100%);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.status-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: statusShine 3s infinite;
}

@keyframes statusShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.status-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.progress-wrapper {
    margin: 35px 0;
    position: relative;
}

.progress-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #3b82f6);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: progressGradient 2s linear infinite;
}

@keyframes progressGradient {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.4) 50%, 
        transparent 100%);
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loader-wrapper {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.loader {
    width: 70px;
    height: 70px;
    position: relative;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.loader::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid transparent;
    border-top-color: #6366f1;
    border-right-color: #8b5cf6;
    animation: spin 1s linear infinite;
}

.loader::after {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 3px solid transparent;
    border-top-color: #a5b4fc;
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results {
    text-align: left;
    margin-top: 30px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 8px;
}

.results::-webkit-scrollbar {
    width: 5px;
}

.results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.results::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 5px;
}

.domain-result {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 100%);
    margin: 14px 0;
    padding: 20px 24px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    overflow: hidden;
    animation: resultSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes resultSlide {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.domain-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s;
}

.domain-result:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(99, 102, 241, 0.15);
}

.domain-result:hover::before {
    opacity: 1;
}

.domain-result:active {
    transform: scale(0.97);
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.domain-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.domain-name {
    font-weight: 600;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.95);
}

.domain-ping {
    font-weight: 700;
    font-size: 1.15rem;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(99, 102, 241, 0.25));
    border-radius: 25px;
    color: #60a5fa;
    transition: all 0.3s;
    min-width: 90px;
    text-align: center;
}

.domain-result:hover .domain-ping {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(99, 102, 241, 0.4));
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.fastest {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.15) 0%, 
        rgba(52, 211, 153, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.fastest::before {
    background: linear-gradient(180deg, #10b981, #34d399);
    opacity: 1;
}

.fastest .domain-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(52, 211, 153, 0.3));
    animation: fastestGlow 1.5s infinite;
}

@keyframes fastestGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.5); }
}

.fastest .domain-ping {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(52, 211, 153, 0.3));
    color: #34d399;
}

.fastest-badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 12px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    animation: badgePulse 1.5s infinite;
    box-shadow: 0 3px 15px rgba(16, 185, 129, 0.4);
}

@keyframes badgePulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.05); }
}

.redirect-box {
    margin-top: 30px;
    padding: 28px 32px;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.2) 0%, 
        rgba(139, 92, 246, 0.15) 100%);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: boxEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes boxEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.redirect-title {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.redirect-domain {
    font-size: 1.2rem;
    font-weight: 700;
    color: #a5b4fc;
    word-break: break-all;
}

.redirect-timer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.countdown-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.countdown {
    font-weight: 800;
    font-size: 2rem;
    color: #fbbf24;
    min-width: 45px;
    text-align: center;
    animation: countPulse 1s infinite;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.click-hint {
    margin-top: 20px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: hintFloat 2s ease-in-out infinite;
}

@keyframes hintFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.error-notice {
    margin-top: 20px;
    padding: 16px 22px;
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.15) 0%, 
        rgba(248, 113, 113, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 14px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 600px) {
    .glass-card {
        padding: 35px 25px;
        border-radius: 24px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 0.92rem;
    }

    .status-box {
        padding: 12px 20px;
    }

    .status-text {
        font-size: 0.95rem;
    }

    .domain-result {
        padding: 16px 18px;
    }

    .domain-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .domain-name {
        font-size: 0.95rem;
    }

    .domain-ping {
        font-size: 0.95rem;
        padding: 6px 14px;
        min-width: 70px;
    }

    .fastest-badge {
        display: none;
    }

    .redirect-box {
        padding: 22px 20px;
    }

    .countdown {
        font-size: 1.6rem;
    }
}

@media (max-width: 400px) {
    .glass-card {
        padding: 28px 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 2.5rem;
    }
}
