/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量定义 - 与admin.css保持一致 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #06b6d4;
    --accent-color: #ec4899;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    cursor: pointer;
}

/* 确保所有文本元素使用指针样式 */
body * {
    cursor: pointer;
}

/* 背景渐变效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 容器样式 */
.container {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 首页样式 */
.home-container {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-content {
    width: 100%;
    animation: fadeIn 1s ease;
}

.home-container h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.2;
    animation: fadeInDown 1s ease;
}

.home-container p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 500;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.3s both;
    text-align: center;
}

/* 隐藏的管理员入口 */
.hidden-admin {
    margin-top: 4rem;
    animation: fadeIn 1s ease 0.6s both;
}

.admin-link {
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    background: rgba(51, 65, 85, 0.1);
    border: 1px solid transparent;
}

.admin-link:hover {
    color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-link:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* 管理员文字入口样式 */
.admin-entrance {
    position: relative;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
    display: inline;
    transition: none;
}

.admin-entrance:hover {
    color: inherit;
    background: transparent;
    border: none;
    transform: none;
    box-shadow: none;
    cursor: pointer;
}

.admin-entrance::after {
    content: none;
}

/* 跳转页面通用样式 */
.redirect-container,
.animated-container,
.minimal-container {
    text-align: center;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    margin: 2rem;
    max-width: 700px;
    width: 100%;
    transition: var(--transition);
}

.redirect-container:hover,
.animated-container:hover,
.minimal-container:hover {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* 默认跳转样式 */
.redirect-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.redirect-container p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 倒计时样式 */
.countdown {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 2rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite ease-in-out;
}

/* 动画样式 */
.animated-container {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.animated-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    animation: rotate 8s linear infinite;
    z-index: -1;
}

.animated-container h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 800;
    animation: fadeInDown 1s ease;
}

.animated-container p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    animation: fadeInUp 1s ease 0.3s both;
    line-height: 1.7;
}

.animated-container .countdown {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 2.5rem 0;
    animation: bounceIn 1s ease 0.5s both, pulse 2s infinite ease-in-out 1s;
}

/* 简约样式 */
.minimal-container {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.minimal-container h1 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.minimal-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

.minimal-container .countdown {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 2rem 0;
    font-weight: 700;
}

/* 错误页面通用样式 */
.error-container,
.error-standard,
.error-minimal,
.error-animated {
    text-align: center;
    padding: 3rem;
    max-width: 700px;
    width: 100%;
    margin: 2rem auto;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.error-container:hover,
.error-standard:hover,
.error-minimal:hover,
.error-animated:hover {
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* 默认错误样式 */
.error-container h1 {
    font-size: 5rem;
    color: var(--error-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
    animation: bounceIn 1s ease;
}

.error-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.error-container p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 失效页面标准样式 */
.error-standard {
    border-left: 4px solid var(--error-color);
}

.error-standard h1 {
    font-size: 4.5rem;
    color: var(--error-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.error-standard h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.error-standard p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left;
    max-width: 400px;
    margin-left: 0;
    margin-right: auto;
}

.error-standard ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: 0;
    margin-right: auto;
}

.error-standard li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: left;
}

.error-standard li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--error-color);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.2;
}

/* 失效页面简约样式 */
.error-minimal {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 2.5rem;
}

.error-minimal h1 {
    font-size: 4rem;
    margin-bottom: 1.2rem;
    color: var(--error-color);
    font-weight: 800;
    letter-spacing: -2px;
}

.error-minimal h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.error-minimal p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

/* 失效页面动画样式 */
.error-animated {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.error-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(239, 68, 68, 0.1), transparent);
    animation: rotate 8s linear infinite;
    z-index: -1;
}

.error-animated h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounceIn 1s ease;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--error-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.error-animated h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.3s both;
    color: var(--text-primary);
    font-weight: 700;
}

.error-animated p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.5s both;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 进度条样式 */
.progress-container {
    width: 100%;
    max-width: 400px;
    height: 12px;
    background-color: var(--bg-tertiary);
    border-radius: 6px;
    margin: 2.5rem auto;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    border-radius: 6px;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* 动画定义 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -20px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -10px, 0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .home-container h1 {
        font-size: 2.5rem;
    }
    
    .home-container p {
        font-size: 1.1rem;
    }
    
    .redirect-container,
    .animated-container,
    .minimal-container,
    .error-container,
    .error-standard,
    .error-minimal,
    .error-animated {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .redirect-container h1,
    .animated-container h1,
    .minimal-container h1 {
        font-size: 2rem;
    }
    
    .redirect-container p,
    .animated-container p,
    .minimal-container p {
        font-size: 1rem;
    }
    
    .countdown {
        font-size: 2rem;
    }
    
    .error-container h1,
    .error-animated h1 {
        font-size: 3.5rem;
    }
    
    .error-standard h1,
    .error-minimal h1 {
        font-size: 3rem;
    }
    
    .error-container h2,
    .error-standard h2,
    .error-minimal h2,
    .error-animated h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .home-container h1 {
        font-size: 2rem;
    }
    
    .home-container p {
        font-size: 1rem;
    }
    
    .redirect-container,
    .animated-container,
    .minimal-container,
    .error-container,
    .error-standard,
    .error-minimal,
    .error-animated {
        padding: 1.5rem;
    }
    
    .redirect-container h1,
    .animated-container h1,
    .minimal-container h1 {
        font-size: 1.8rem;
    }
    
    .error-container h1,
    .error-animated h1 {
        font-size: 3rem;
    }
    
    .error-standard h1,
    .error-minimal h1 {
        font-size: 2.5rem;
    }
    
    .error-container h2,
    .error-standard h2,
    .error-minimal h2,
    .error-animated h2 {
        font-size: 1.5rem;
    }
    
    .countdown {
        font-size: 1.8rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 选择文本样式 */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}