/* assets/css/style.css */
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
    pointer-events: none;
}

.hero-image-placeholder {
    padding: 20px;
}

.rankings-section {
    background: var(--light-color);
}

.ranking-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.ranking-card .card-header {
    background: white;
    border-bottom: 1px solid #e3e6f0;
}

.games-section {
    background-color: var(--light-color);
}

.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.game-cover {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-cover {
    transform: scale(1.05);
}

.about-section {
    min-height: 400px;
}

.about-text {
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1rem;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-outline-light:hover {
    color: #667eea;
    background-color: white;
}

/* 评分样式 */
.rating {
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-image-placeholder {
        margin-top: 30px;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 10px;
    }
    
    .navbar-nav .nav-link {
        margin: 2px 0;
    }
}

/* 页脚样式 */
footer {
    margin-top: auto;
}

footer a:hover {
    text-decoration: underline;
}

/* 列表组样式 */
.list-group-item {
    border: none;
    padding: 0.75rem 1.25rem;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* 代码块样式 */
.code-block {
    font-size: 0.9em;
    line-height: 1.4;
}

/* 表单样式 */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* 徽章样式 */
.badge {
    font-size: 0.75em;
}