/* 首页专用样式 */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
}

/* 动态背景 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: 2s;
}

.shape-4 {
    width: 50px;
    height: 50px;
    top: 30%;
    left: 85%;
    animation-delay: 3s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    top: 70%;
    left: 60%;
    animation-delay: 4s;
}

.shape-6 {
    width: 90px;
    height: 90px;
    top: 10%;
    left: 60%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

/* Hero Container */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Hero Content */
.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #4FC3F7;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.hero-title {
    margin-bottom: 30px;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    line-height: 1.1;
}

.title-sub {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    margin-top: 10px;
}

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

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.highlight {
    color: #4FC3F7;
    font-weight: 600;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #4FC3F7, #667eea);
    border-radius: 1px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #4FC3F7;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}



.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: #4FC3F7;
    border-color: #4FC3F7;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(79, 195, 247, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.2);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
}

/* Hero Features */
.hero-features {
    display: flex;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.feature-item i {
    color: #4FC3F7;
    font-size: 1.1rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-preview {
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.game-preview:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) scale(1.05);
}

.game-screen {
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.screen-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4FC3F7;
}

.screen-score {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.screen-score span {
    color: #f093fb;
    font-weight: 700;
}

.game-board {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 3px;
    margin-bottom: 20px;
}

.board-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.block {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.5s ease;
}

.block:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.block-a {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.block-b {
    background: linear-gradient(45deg, #4ecdc4, #7bdff2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.block.active {
    animation: blockPulse 1s ease-in-out infinite;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(79, 195, 247, 0.5);
}

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

.game-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.effect-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #4FC3F7;
    border-radius: 50%;
    animation: particle 2s ease-in-out infinite;
}

.effect-particle:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.effect-particle:nth-child(2) {
    top: 60%;
    left: 70%;
    animation-delay: 0.7s;
}

.effect-particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 1.4s;
}

@keyframes particle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1) translateY(-20px);
    }
}

.preview-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.control-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4FC3F7;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.scroll-arrow {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #0f172a 0%, #1a1a2e 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #4FC3F7;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #4FC3F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
}

.feature-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.demo-blocks {
    display: flex;
    gap: 5px;
}

.demo-block {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.demo-block.block-a {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

.demo-block.block-b {
    background: linear-gradient(45deg, #4ecdc4, #7bdff2);
}

.demo-arrow {
    font-size: 1.5rem;
    color: #4FC3F7;
}

.demo-effect {
    font-size: 1.5rem;
    animation: sparkle 1s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

.demo-leaderboard {
    text-align: left;
}

.demo-rank {
    font-size: 0.9rem;
    margin: 3px 0;
    color: #4FC3F7;
}

.demo-social {
    display: flex;
    align-items: center;
    gap: 5px;
}

.demo-avatar {
    font-size: 1.5rem;
}

.demo-plus {
    font-size: 1.2rem;
    color: #4FC3F7;
    font-weight: bold;
}

.demo-rewards {
    display: flex;
    gap: 10px;
}

.demo-coin, .demo-gem, .demo-crown {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.demo-gem {
    animation-delay: 0.2s;
}

.demo-crown {
    animation-delay: 0.4s;
}





/* Footer Updates */
.footer {
    background: #0f0f23;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-container {
        gap: 60px;
    }
    
    .title-main {
        font-size: 3.5rem;
    }
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .title-main {
        font-size: 3rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    

}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    

    
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    

} 