/* src/css/base.css */
/* 基础样式 */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    color: #333;
    /* Text color */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, .5);
    max-width: 95%;
    width: 600px;
    /* Wider like 01 */
    position: relative;
    z-index: 10;
}

h1 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: none;
}

.countdown {
    font-size: 3.5rem;
    font-weight: 700;
    color: #3CB371;
    /* Green */
    margin: 1.2rem 0;
    text-shadow: 0 4px 10px rgba(60, 179, 113, 0.2);
    position: relative;
    font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
}

.countdown::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3CB371;
    border-radius: 2px;
}

.message {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.target-url {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    color: #3CB371;
    word-break: break-all;
    font-weight: 600;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: #E8F5E9;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.progress-bar {
    height: 100%;
    background: #3CB371;
    border-radius: 4px;
    width: 100%;
    animation: progress 5s linear forwards;
    box-shadow: 0 0 10px rgba(60, 179, 113, 0.3);
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.loading-dots {
    display: inline-flex;
    gap: 5px;
    margin-left: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #3CB371;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

/* Add Logo Style */
.logo {
    width: auto;
    height: 64px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
}

.dot:nth-child(1) {
    animation-delay: -.32s;
}

.dot:nth-child(2) {
    animation-delay: -.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.footer {
    margin-top: 1.5rem;
    color: #999;
    font-size: .9rem;
}

/* Background Decoration */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    background-color: #f5f7fa;
}

.floating-ball {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    mix-blend-mode: multiply;
}

.ball-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 30% 30%, rgba(60, 179, 113, 0.4), rgba(60, 179, 113, 0.1) 70%, transparent);
    top: -10%;
    left: -10%;
    animation: floatingBall1 25s infinite ease-in-out;
}

.ball-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 70% 70%, rgba(46, 139, 87, 0.35), rgba(46, 139, 87, 0.08) 70%, transparent);
    top: 40%;
    right: -5%;
    animation: floatingBall2 30s infinite ease-in-out;
}

.ball-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at 50% 50%, rgba(60, 179, 113, 0.3), rgba(60, 179, 113, 0.05) 70%, transparent);
    bottom: -10%;
    left: 20%;
    animation: floatingBall3 35s infinite ease-in-out;
}

@keyframes floatingBall1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(5%, 10%) rotate(90deg);
    }

    50% {
        transform: translate(2%, 5%) rotate(180deg);
    }

    75% {
        transform: translate(-3%, 8%) rotate(270deg);
    }
}

@keyframes floatingBall2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-8%, -5%) rotate(-90deg);
    }

    50% {
        transform: translate(-4%, -10%) rotate(-180deg);
    }

    75% {
        transform: translate(-6%, -2%) rotate(-270deg);
    }
}

@keyframes floatingBall3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(6%, -8%) rotate(120deg);
    }

    66% {
        transform: translate(-4%, -4%) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}