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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* 背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 255, 0, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 15s ease infinite;
}

@keyframes backgroundShift {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 主页英雄区域 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></svg>');
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 100px;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #ff00ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
    transform: translateY(-50px);
    animation: slideDown 1s ease-out forwards, gradientShift 3s ease infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content p {
    font-size: 28px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.platform-info {
    margin-top: 30px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.platform-info p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.coming-soon {
    margin-top: 10px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.douyin-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    vertical-align: middle;
}

.douyin-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 神秘身影 */
.mysterious-figure {
    position: relative;
    display: inline-block;
    margin-top: 40px;
    opacity: 1;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.mysterious-figure::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 300% 300%;
    border-radius: 20px;
    filter: blur(30px);
    z-index: -1;
    animation: gradientRotate 4s ease infinite;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mysterious-figure img {
    width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.3), 0 0 100px rgba(0, 255, 255, 0.2);
    animation: glow 3s ease-in-out infinite alternate;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.5s ease;
}

.mysterious-figure:hover img {
    transform: perspective(1000px) rotateY(10deg);
}

@keyframes glow {
    from {
        box-shadow: 0 0 50px rgba(255, 0, 255, 0.3), 0 0 100px rgba(0, 255, 255, 0.2);
    }
    to {
        box-shadow: 0 0 70px rgba(255, 0, 255, 0.5), 0 0 150px rgba(0, 255, 255, 0.4);
    }
}

/* OC设定区域 */
.unknown-info {
    padding: 150px 0;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.unknown-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.1), transparent);
    animation: slideRight 5s ease-in-out infinite;
}

@keyframes slideRight {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

.unknown-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.unknown-content h2 {
    font-size: 60px;
    text-align: center;
    margin-bottom: 80px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    background: linear-gradient(45deg, #ffffff, #ff00ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.info-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

.info-item:nth-child(1) { animation-delay: 0.2s; }
.info-item:nth-child(2) { animation-delay: 0.4s; }
.info-item:nth-child(3) { animation-delay: 0.6s; }
.info-item:nth-child(4) { animation-delay: 0.8s; }
.info-item:nth-child(5) { animation-delay: 1s; }
.info-item:nth-child(6) { animation-delay: 1.2s; }

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

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-item:hover::before {
    transform: scaleX(1);
}

.info-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.3);
    border-color: rgba(255, 0, 255, 0.5);
}

.info-item h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: 2px;
}

.info-item p {
    font-size: 22px;
    color: #ff00ff;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* 神秘信息区域 */
.mystery-message {
    padding: 150px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

.mystery-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/></svg>');
    animation: float 20s linear infinite;
}

.message-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.message-content p {
    font-size: 26px;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.message-content p:nth-child(1) { animation-delay: 0.2s; }
.message-content p:nth-child(2) { animation-delay: 0.4s; }
.message-content p:nth-child(3) { animation-delay: 0.6s; }
.message-content p:nth-child(4) { animation-delay: 0.8s; }

/* 页脚 */
footer {
    background-color: #0a0a0a;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 0, 255, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff00ff, #00ffff, #ff00ff, transparent);
    animation: gradientShift 3s ease infinite;
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    letter-spacing: 2px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 80px;
    }

    .mysterious-figure img {
        width: 500px;
    }

    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    }

    .hero-content h1 {
        font-size: 60px;
    }

    .hero-content p {
        font-size: 24px;
    }

    .mysterious-figure img {
        width: 400px;
    }

    .unknown-content h2 {
        font-size: 48px;
    }

    .info-item {
        padding: 30px;
    }

    .info-item h3 {
        font-size: 20px;
    }

    .info-item p {
        font-size: 18px;
    }

    .message-content p {
        font-size: 22px;
    }

    .mystery-message {
        clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 45px;
    }

    .hero-content p {
        font-size: 20px;
    }

    .platform-info p {
        font-size: 18px;
    }

    .coming-soon {
        font-size: 16px;
    }

    .mysterious-figure img {
        width: 300px;
    }

    .unknown-info,
    .mystery-message {
        padding: 100px 0;
    }

    .unknown-content h2 {
        font-size: 36px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-item {
        padding: 25px;
    }

    .message-content p {
        font-size: 18px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff00ff, #00ffff);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff00ff, #00ffff);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* 滚动驱动动画 */

/* 创建滚动时间线 */
@scroll-timeline scroll-timeline {
    source: auto;
    orientation: vertical;
    scroll-offsets: 0% 0%, 100% 100%;
}

/* 页面加载动画 */
body {
    animation: pageLoad 1s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 英雄区域视差效果 */
.hero-content {
    animation: heroParallax both linear;
    animation-timeline: scroll-timeline;
}

@keyframes heroParallax {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100px);
    }
}

/* 神秘身影滚动动画已移除，避免与现有动画冲突 */

/* OC设定区域视差效果 */
.unknown-info {
    animation: infoSectionParallax both linear;
    animation-timeline: scroll-timeline;
}

@keyframes infoSectionParallax {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(50px);
    }
}

/* 信息卡片滚动动画 */
.info-item {
    animation: infoItemParallax both linear;
    animation-timeline: scroll-timeline;
}

.info-item:nth-child(1) {
    animation-delay: 0s;
}

.info-item:nth-child(2) {
    animation-delay: 0.1s;
}

.info-item:nth-child(3) {
    animation-delay: 0.2s;
}

.info-item:nth-child(4) {
    animation-delay: 0.3s;
}

.info-item:nth-child(5) {
    animation-delay: 0.4s;
}

.info-item:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes infoItemParallax {
    from {
        transform: translateY(100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(-50px) scale(1.05);
        opacity: 1;
    }
}

/* 神秘信息区域视差效果 */
.message-content {
    animation: messageParallax both linear;
    animation-timeline: scroll-timeline;
}

@keyframes messageParallax {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100px);
    }
}

/* 信息段落滚动动画 */
.message-content p {
    animation: paragraphParallax both linear;
    animation-timeline: scroll-timeline;
}

.message-content p:nth-child(1) {
    animation-delay: 0s;
}

.message-content p:nth-child(2) {
    animation-delay: 0.2s;
}

.message-content p:nth-child(3) {
    animation-delay: 0.4s;
}

.message-content p:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes paragraphParallax {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(-50px);
        opacity: 1;
    }
}

/* 鼠标移动效果 */
.mysterious-figure {
    transition: transform 0.5s ease;
}

body:hover .mysterious-figure {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* 响应式滚动动画调整 */
@media (max-width: 768px) {
    @keyframes heroParallax {
        from {
            transform: translateY(0);
        }
        to {
            transform: translateY(50px);
        }
    }
    
    @keyframes figureParallax {
        from {
            transform: translateY(0) perspective(1000px) rotateY(0deg);
        }
        to {
            transform: translateY(25px) perspective(1000px) rotateY(10deg);
        }
    }
    
    @keyframes infoSectionParallax {
        from {
            transform: translateY(0);
        }
        to {
            transform: translateY(25px);
        }
    }
    
    @keyframes infoItemParallax {
        from {
            transform: translateY(50px) scale(0.9);
            opacity: 0;
        }
        to {
            transform: translateY(-25px) scale(1.02);
            opacity: 1;
        }
    }
    
    @keyframes messageParallax {
        from {
            transform: translateY(0);
        }
        to {
            transform: translateY(50px);
        }
    }
    
    @keyframes paragraphParallax {
        from {
            transform: translateY(25px);
            opacity: 0;
        }
        to {
            transform: translateY(-25px);
            opacity: 1;
        }
    }
}