/* 首页特有样式 */

.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 文字样式 */
.display-4 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 80vh;
    padding-top: 50px;
    overflow: hidden;
    position: relative;
}

.hero-row {
    min-height: 100vh;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* 标题和文字 */
.text-gradient {
    background: linear-gradient(120deg, #2b4c8c, #1a365d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .display-3 {
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* 响应式标题大小 */
@media (max-width: 768px) {
    .hero-section .display-3 {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .hero-section .display-4 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
}

/* 浮动卡片 */
.hero-image {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.floating-card i {
    color: #2b4c8c;
    margin-bottom: 10px;
}

.card1 { top: 20%; left: 10%; }
.card2 { top: 40%; right: 10%; animation-delay: 1s; }
.card3 { bottom: 20%; left: 30%; animation-delay: 2s; }

.card1, .card2, .card3 {
    animation: float 6s ease-in-out infinite;
}

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

/* 装饰形状 */
.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom right, transparent 49%, #fff 50%);
}

/* 游戏卡片 */
#game-cards {
    scroll-margin-top: 4rem;
    padding: 4rem 0;
}

#game-cards .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

#game-cards .card:hover {
    transform: translateY(-5px);
}

#game-cards .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-bottom: 1.5rem;
}

#game-cards .card-text {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

#game-cards .btn {
    align-self: flex-start;
    margin-top: auto;
    min-width: 120px;
    text-align: center;
}

#game-cards .btn.btn-secondary {
    background: #6c757d;
    cursor: not-allowed;
}

#game-cards .btn.btn-secondary:hover {
    background: #5a6268;
    transform: none;
    box-shadow: none;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .hero-section {
        text-align: center;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-row {
        margin: 120px auto;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 0.5rem 0;
    }

    .hero-section .display-3 {
        margin-bottom: 1rem;
    }

    .hero-section .display-4 {
        margin-bottom: 1rem;
    }

    .hero-section .lead {
        margin-bottom: 1.5rem;
    }
}

/* 全局按钮样式 */
.btn-primary {
    background: linear-gradient(120deg, #2b4c8c, #1a365d);
    border: none;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 76, 140, 0.3);
}

.btn-outline-dark {
    border: 2px solid #1a365d;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: #1a365d;
    color: white;
    transform: translateY(-2px);
} 


/* 卡片阴影效果 */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}
