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

/* 设置页面背景和字体 */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    position: relative;
    overflow: hidden;
}

/* 添加动态背景效果 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
    pointer-events: none;
}

/* 背景动画关键帧 */
@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1) rotate(180deg);
    }
}

/* 容器样式，增加内边距和阴影效果 */
.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    max-width: 600px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: containerFloat 6s ease-in-out infinite;
}

/* 容器悬停效果 */
.container:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 20px 25px -5px rgba(147, 51, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 容器加载动画 */
@keyframes containerFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 标题样式 */
h1 {
    font-size: 3em;
    margin-bottom: 25px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
    letter-spacing: 1px;
}

/* 标题动画效果 */
@keyframes titleGlow {
    0% {
        filter: brightness(1) contrast(1);
        transform: scale(1);
    }
    100% {
        filter: brightness(1.2) contrast(1.1);
        transform: scale(1.02);
    }
}

/* 标题下方装饰线 */
h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 2px;
    animation: decorLine 2s ease-in-out infinite alternate;
}

@keyframes decorLine {
    0% {
        width: 80px;
        opacity: 0.6;
    }
    100% {
        width: 120px;
        opacity: 1;
    }
}

/* 段落样式 */
p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #7f8c8d;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* 段落淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计：在小屏幕上调整容器宽度 */
@media (max-width: 600px) {
    .container {
        width: 90%;
        padding: 20px 30px;
    }

    h1 {
        font-size: 2em;
    }

    p {
        font-size: 1em;
    }
}

/* 更小屏幕适配 */
@media (max-width: 480px) {
    .container {
        padding: 15px 20px;
        margin: 20px;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    h1::after {
        width: 60px;
        height: 2px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .container {
        max-width: 800px;
        padding: 50px 60px;
    }

    h1 {
        font-size: 3.5em;
    }

    p {
        font-size: 1.4em;
    }
}