/* =============================
   基础重置 & 全局
   ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f6ef7;
    --primary-light: #7b93fa;
    --accent: #f7a44f;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* =============================
   背景动效
   ============================= */
.bg-animation {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -80px;
    animation-delay: -7s;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: #7c3aed;
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -40px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(40px, 30px) scale(1.02);
    }
}

/* 粒子 */
.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    animation: rise linear infinite;
    opacity: 0;
}

@keyframes rise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* =============================
   主体内容
   ============================= */
.main-content {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    max-width: 580px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================
   施工图标
   ============================= */
.icon-wrapper {
    margin-bottom: 1.5rem;
}

.construction-icon {
    width: 100px;
    height: 100px;
    color: var(--primary-light);
}

.pulsing-circle {
    animation: pulse 2s ease-in-out infinite;
    transform-origin: 60px 60px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
    50% {
        opacity: 0.5;
        stroke-dashoffset: -24;
    }
}

/* =============================
   标题
   ============================= */
.title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.title-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, #a78bfa 50%, var(--primary-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.title-dot {
    display: inline-block;
    color: var(--primary-light);
    animation: blink 1.5s infinite;
}

.title-dot:nth-child(2) { animation-delay: 0.2s; }
.title-dot:nth-child(3) { animation-delay: 0.4s; }
.title-dot:nth-child(4) { animation-delay: 0.6s; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* =============================
   副标题 & 描述
   ============================= */
.subtitle {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

/* =============================
   进度条
   ============================= */
.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    animation: progressPulse 2s ease-in-out infinite;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(79, 110, 247, 0.6);
}

@keyframes progressPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    min-width: 40px;
    text-align: right;
}

/* =============================
   预计上线日期 & 倒计时
   ============================= */
.datetime-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-align: center;
}

.datetime-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.datetime-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 12px;
}

.date-group {
    background: linear-gradient(135deg, rgba(79, 110, 247, 0.12) 0%, rgba(123, 147, 250, 0.08) 100%);
    border: 1px solid rgba(79, 110, 247, 0.18);
}

.time-group {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12) 0%, rgba(110, 231, 183, 0.08) 100%);
    border: 1px solid rgba(52, 211, 153, 0.18);
}

.datetime-divider {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0) 0%, rgba(148, 163, 184, 0.25) 50%, rgba(148, 163, 184, 0) 100%);
    border-radius: 1px;
    flex-shrink: 0;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    padding: 6px 8px;
    min-width: 46px;
}

.date-group .countdown-number {
    color: #a5b4fc;
    text-shadow: 0 0 12px rgba(79, 110, 247, 0.3);
}

.date-group .countdown-label {
    color: rgba(165, 180, 252, 0.65);
}

.time-group .countdown-number {
    color: #6ee7b7;
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

.time-group .countdown-label {
    color: rgba(110, 231, 183, 0.65);
}

.countdown-number {
    font-size: 1.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-label {
    font-size: 0.6rem;
    margin-top: 3px;
    white-space: nowrap;
}

.countdown-separator {
    font-size: 1.1rem;
    color: rgba(148, 163, 184, 0.5);
    font-weight: 300;
    animation: blink 1s infinite;
}

/* =============================
   到期状态样式（JS 动态注入的备用，这里做关键帧定义）
   ============================= */
.expired-shake {
    animation: expiredShake 0.6s ease-in-out;
}

@keyframes expiredShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* =============================
   页脚
   ============================= */
.footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.icp-info {
    margin-top: 6px;
}

.icp-info a {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.icp-info a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* =============================
   响应式
   ============================= */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .title {
        font-size: 1.8rem;
    }

    .construction-icon {
        width: 72px;
        height: 72px;
    }

    .datetime-wrapper {
        gap: 5px;
        padding: 8px 10px;
    }

    .datetime-group {
        padding: 5px 7px;
        gap: 4px;
    }

    .countdown-item {
        min-width: 38px;
        padding: 5px 5px;
        border-radius: 6px;
    }

    .countdown-number {
        font-size: 1rem;
    }

    .countdown-label {
        font-size: 0.55rem;
    }

    .datetime-divider {
        height: 24px;
    }

}
