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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 背景动画 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
    z-index: -1;
    pointer-events: none;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(10px) rotate(0.5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题样式优化 */
.title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    width: 100%;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card h2 {
    font-size: 2rem;
    color: #2c5282;
    margin-bottom: 2rem;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.section {
    margin-bottom: 2rem;
    text-align: left;
}

.section h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* 代码块 */
.code-block {
    background: #1a202c;
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0;
    border: 1px solid #2d3748;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: inherit;
    background: transparent;
}

/* 步骤列表 */
.steps {
    counter-reset: step-counter;
    list-style: none;
    margin: 1rem 0;
}

.steps li {
    position: relative;
    padding: 0.75rem 0 0.75rem 3rem;
    margin: 0.5rem 0;
    border-left: 3px solid #4299e1;
    color: #4a5568;
}

.steps li:before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    background: #4299e1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

/* 状态信息 */
.status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.status-label {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.status-value {
    font-weight: 600;
    color: #2d3748;
}

.url {
    background: #f0f4f8;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #2b6cb0;
    margin: 0.5rem 0;
    word-break: break-all;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(45deg, #4299e1, #3182ce);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.5);
    background: linear-gradient(45deg, #3182ce, #2b6cb0);
}

.btn-outline {
    background: transparent;
    color: #4299e1;
    border: 2px solid #4299e1;
}

.btn-outline:hover {
    background: rgba(66, 153, 225, 0.1);
    transform: translateY(-2px);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* 404 页面样式 */
.error-page {
    justify-content: center;
}

.error-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

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

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: #e53e3e;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #e53e3e, #c53030);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-message {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 2rem;
}

.redirect-info {
    margin: 2rem 0;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.redirect-info .countdown {
    font-size: 4rem;
    font-weight: 700;
    color: #4299e1;
    margin: 0.5rem 0;
}

.redirect-info p {
    color: #718096;
    font-size: 1.1rem;
}

/* 页脚 */
.footer {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: auto;
}

.footer a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .status {
        grid-template-columns: 1fr;
    }
    
    .error-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .error-code {
        font-size: 6rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .redirect-info .countdown {
        font-size: 3rem;
    }
}
