/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根变量定义 */
:root {
    --primary-color: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4F46E5;
    --secondary-color: #F8FAFC;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --secondary-color: #1E293B;
        --text-primary: #F8FAFC;
        --text-secondary: #CBD5E1;
        --text-muted: #94A3B8;
        --border-color: #334155;
        --gradient-bg: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    }
}

/* 基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 2rem 5rem 2rem; /* 底部增加padding给ICP信息留出空间 */
    position: relative;
}

/* 维护卡片样式 */
.maintenance-card {
    background: var(--secondary-color);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

/* 图标容器 */
.icon-container {
    margin-bottom: 2rem;
    position: relative;
}

.maintenance-icon {
    width: 80px;
    height: 80px;
    color: var(--primary-color);
    animation: rotate 8s linear infinite;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

/* 标题样式 */
.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* 进度条容器 */
.progress-container {
    margin-bottom: 2.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    width: 75%;
    position: relative;
    animation: progressGlow 2s ease-in-out infinite alternate;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

#progress-percent {
    color: var(--primary-color);
    font-weight: 600;
}

/* 信息区域 */
.info-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition);
    max-width: 400px;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.info-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 状态指示器 */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--warning-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ICP备案信息 - 放在蓝色背景底部 */
.icp-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(99, 102, 241, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    text-align: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.icp-footer .icp-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem;
}

.icp-footer .icp-link:hover {
    color: white;
    text-decoration: underline;
}

.icp-footer .icp-link:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* 浮动粒子效果 */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: -0.5s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: -1s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    left: 60%;
    animation-delay: -2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    left: 80%;
    animation-delay: -3s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: -4s;
    animation-duration: 5s;
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes progressGlow {
    from {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
    to {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    }
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-10vh) rotate(180deg);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .maintenance-card {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .info-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .maintenance-card {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 1.75rem;
    }
    
    .maintenance-icon {
        width: 60px;
        height: 60px;
    }
    
    .info-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto 0.5rem;
    }
    
    .icp-footer .icp-link {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .icp-footer {
        padding: 0.75rem;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .floating-particles,
    .maintenance-icon {
        display: none;
    }
    
    .maintenance-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}