@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 基础样式 */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f7;
}

/* Header样式 */
.site-header {
    background: linear-gradient(90deg, #6B46C1 0%, #3B82F6 100%);
    padding: 1.5rem 0;
}

.brand-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.brand-slogan {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

/* 搜索框样式 */
.search-container input {
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.search-container input:focus {
    background: white;
}

.search-container button {
    transition: all 0.3s ease;
}

/* 游戏卡片样式 */
.game-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.game-card:hover {
    transform: translateY(-2px);
}

.new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #EF4444;
    color: white;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* 游戏分类标签 */
.game-categories span {
    transition: all 0.2s ease;
    cursor: pointer;
}

.game-categories span:hover {
    transform: translateY(-1px);
}

/* 用户评论样式 */
.user-reviews .bg-white {
    transition: transform 0.2s ease;
}

.user-reviews .bg-white:hover {
    transform: translateY(-2px);
}

/* 主要内容布局 */
.main-content {
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.left-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 游戏区域容器样式 */
.game-section-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.game-container {
    width: 100%;
    max-width: 950px;
    height: auto;
    margin: 0 auto;
    padding: 1rem;
}

.game-container iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* 游戏社交互动区域 */
.social-interaction {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
}

/* 游戏信息区域样式 */
.game-info {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 右侧栏样式 */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.right-sidebar > div {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 广告区域样式 */
.ads-section {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    height: fit-content;
}

.other-games {
    margin-top: 2rem;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
}

.other-games h3 {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 卡片悬停效果 */
.bg-white.rounded-lg.shadow-lg {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.bg-white.rounded-lg.shadow-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 标题样式 */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-title i {
    color: #3b82f6;
    font-size: 1.5rem;
}

/* 关键词样式 */
.section-title .keyword,
.section-title .text-base {
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
}

/* 右侧栏标题样式 */
.right-sidebar h2.section-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
}

.right-sidebar h2.section-title::after {
    width: 50%;
    height: 2px;
    opacity: 0.8;
    background: linear-gradient(90deg, #007AFF 30%, rgba(0, 122, 255, 0.3));
}

.right-sidebar h2.section-title i {
    font-size: 1.1rem;
}

h3.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1D1D1F;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h3.feature-title i {
    color: #007AFF;
    font-size: 1.25rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #007AFF;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* 列表样式优化 */
.list-disc {
    list-style-type: none;
}

.list-disc li {
    position: relative;
    padding-left: 1.5rem;
}

.list-disc li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007AFF;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 70% 30%;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .right-sidebar {
        margin-top: 2rem;
    }
    
    .game-container {
        max-width: 100%;
        height: 500px;
    }
    
    .right-sidebar h2.section-title::after {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .game-container {
        height: 400px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .brand-slogan {
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.125rem;
    }
    
    .section-title .keyword {
        font-size: 0.75rem;
    }
    
    .section-title .text-base {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .game-container {
        height: 300px;
    }
    
    .brand-title {
        font-size: 1.75rem;
    }
    
    .brand-slogan {
        font-size: 0.75rem;
    }
}

/* 游戏下方布局 */
.info-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.game-info {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.more-games {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.game-thumbnail {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.game-thumbnail:hover {
    transform: translateY(-2px);
}

.thumbnail-img {
    width: 100%;
    height: 100px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-title {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.5rem;
}

/* 响应式调整更新 */
@media (max-width: 1024px) {
    .info-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Popular Games样式更新 */
.popular-games .game-card {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.popular-games .game-thumbnail {
    width: 100%;
    height: 100px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.popular-games .game-title {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* 游戏分类样式更新 */
.game-categories {
    background: linear-gradient(to bottom, #f0f2f5, #ffffff) !important;
}

.game-categories .flex {
    gap: 0.75rem;
}

/* 用户评论区样式更新 */
.user-reviews {
    background: linear-gradient(to bottom, #f5f7fa, #ffffff) !important;
}

.user-reviews .bg-white {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 评分系统样式 */
.rating-section {
    flex: 1;
    max-width: 200px;
}

.star-rating .stars {
    display: inline-flex;
    gap: 0.25rem;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.star-btn:hover ~ .star-btn {
    color: #D1D5DB !important;
}

/* 分享区域样式 */
.share-section {
    flex: 2;
    display: flex;
    justify-content: center;
}

.share-section .flex {
    gap: 0.5rem;
}

.social-btn {
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    transform: translateY(-1px);
}

/* 点赞/不喜欢按钮样式 */
.like-section {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.like-btn, .dislike-btn {
    position: relative;
    overflow: hidden;
    min-width: 80px;
    justify-content: center;
    font-size: 0.875rem;
}

.like-btn::before, .dislike-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.like-btn:active::before, .dislike-btn:active::before {
    width: 100px;
    height: 100px;
}

/* 游戏介绍样式 */
.game-introduction {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.game-introduction p {
    line-height: 1.6;
    color: #4b5563;
}

/* 评论区样式 */
.comment-form {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.comment-form textarea {
    min-height: 100px;
    transition: all 0.3s ease;
    background: white;
}

.comment-form textarea:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* 动画效果 */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.like-btn:active i,
.dislike-btn:active i {
    animation: likeAnimation 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .social-interaction {
        padding: 0.75rem;
    }

    .rating-section {
        max-width: none;
    }

    .share-section {
        margin: 0.5rem 0;
    }

    .like-section {
        justify-content: center;
    }

    .social-btn {
        width: 28px;
        height: 28px;
    }

    .like-btn, .dislike-btn {
        min-width: 70px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .social-interaction > div {
        flex-direction: column;
        gap: 0.75rem;
    }

    .rating-section, .share-section, .like-section {
        width: 100%;
        justify-content: center;
    }

    .share-section .flex {
        justify-content: center;
    }
}

/* Prose样式 - 用于内容格式化 */
.prose {
    color: #374151;
    max-width: 65ch;
}

.prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    list-style-type: disc;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 0.375em;
}

.prose.max-w-none {
    max-width: none;
}

.prose .list-disc {
    list-style-type: disc;
    padding-left: 1.625em;
}

.prose .list-disc li {
    display: list-item;
    margin-bottom: 0.5em;
} 