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

body {
    font-family: 'Arial', sans-serif;
    background: #f0f2f5;
    background-image: 
        linear-gradient(135deg, rgba(93, 75, 234, 0.1) 0%, rgba(166, 81, 196, 0.1) 50%, rgba(231, 76, 134, 0.1) 100%),
        radial-gradient(circle at 25% 25%, rgba(93, 75, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(231, 76, 134, 0.05) 0%, transparent 50%);
    background-size: 200% 200%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
    animation: gradientAnimation 15s ease infinite;
    font-size: 0.9rem;
    line-height: 1.4;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%;
    }
    50% {
        background-position: 100% 100%, 25% 25%, 75% 75%;
    }
    100% {
        background-position: 0% 0%, 0% 0%, 0% 0%;
    }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(240, 242, 255, 0.75) 100%);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), inset 0 0 30px rgba(93, 75, 234, 0.05);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out, containerGlow 8s ease-in-out infinite alternate;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 20px 0 10px;
    background: linear-gradient(135deg, #5d4bea 0%, #a651c4 50%, #e74c86 100%);
    position: relative;
    color: white;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.06)" d="M0,0 L100,0 L100,5 C80,25 70,30 50,30 C30,30 20,25 0,5 Z"></path></svg>');
    background-size: 100% 100%;
    background-position: center;
    opacity: 0.7;
    z-index: 1;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.04)" d="M0,100 L100,100 L100,95 C80,75 70,70 50,70 C30,70 20,75 0,95 Z"></path></svg>');
    background-size: 100% 100%;
    background-position: center;
    opacity: 0.8;
    z-index: 1;
}

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

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

/* 头部容器特殊样式 */
.header .container {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border: none;
    color: white;
    z-index: 3;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 15px 25px;
    max-width: 800px;
    margin: 0 auto;
}

.header .container h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    animation: glow 3s ease-in-out infinite alternate;
}

.header .container p {
    font-size: 1.2em;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
    padding: 0 15px;
    letter-spacing: 0.5px;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1), 0 0 20px rgba(93, 75, 234, 0.1);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.2), 0 0 30px rgba(166, 81, 196, 0.3);
    }
}

/* 主要区域特殊样式 */
main.container {
    margin-top: 20px;
    margin-bottom: 40px;
    z-index: 5;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 0 30px rgba(93, 75, 234, 0.05);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #5d4bea, #a651c4, #e74c86);
    box-shadow: 0 0 15px rgba(93, 75, 234, 0.5);
    z-index: 1;
}

.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="30" cy="10" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="50" cy="10" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="70" cy="10" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="90" cy="10" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="10" cy="30" r="1" fill="rgba(166, 81, 196, 0.05)"/><circle cx="30" cy="30" r="1" fill="rgba(166, 81, 196, 0.05)"/><circle cx="50" cy="30" r="1" fill="rgba(166, 81, 196, 0.05)"/><circle cx="70" cy="30" r="1" fill="rgba(166, 81, 196, 0.05)"/><circle cx="90" cy="30" r="1" fill="rgba(166, 81, 196, 0.05)"/><circle cx="10" cy="50" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="30" cy="50" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="50" cy="50" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="70" cy="50" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="90" cy="50" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="10" cy="70" r="1" fill="rgba(166, 81, 196, 0.05)"/><circle cx="30" cy="70" r="1" fill="rgba(166, 81, 196, 0.05)"/><circle cx="50" cy="70" r="1" fill="rgba(166, 81, 196, 0.05)"/><circle cx="70" cy="70" r="1" fill="rgba(166, 81, 196, 0.05)"/><circle cx="90" cy="70" r="1" fill="rgba(166, 81, 196, 0.05)"/><circle cx="10" cy="90" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="30" cy="90" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="50" cy="90" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="70" cy="90" r="1" fill="rgba(93, 75, 234, 0.05)"/><circle cx="90" cy="90" r="1" fill="rgba(93, 75, 234, 0.05)"/></svg>');
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    animation: patternMove 120s linear infinite;
}

@keyframes containerGlow {
    0% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), inset 0 0 30px rgba(93, 75, 234, 0.05);
    }
    50% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), inset 0 0 40px rgba(166, 81, 196, 0.08);
    }
    100% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), inset 0 0 30px rgba(231, 76, 134, 0.05);
    }
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 500px 500px;
    }
}

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

/* 搜索栏样式 */
.search-container {
    max-width: 600px;
    margin: 0 auto 35px;
    padding: 0 20px;
    position: relative;
}

.search-box {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(226, 232, 240, 0.7);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03), inset 0 0 10px rgba(93, 75, 234, 0.02);
    backdrop-filter: blur(5px);
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), inset 0 0 15px rgba(93, 75, 234, 0.03);
    background: rgba(255, 255, 255, 0.85);
}

.search-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #5d4bea 0%, #a651c4 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.search-button:hover {
    background: linear-gradient(135deg, #4e3ed1 0%, #9543b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.25);
}

.search-button:hover::before {
    left: 100%;
}

/* Filters */
.filters {
    margin-bottom: 20px;
    padding: 0 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #4a5568;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

/* 分类组样式 */
.category-group {
    margin-bottom: 20px;
    position: relative;
}

.category-group-title {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-left: 10px;
    padding-left: 12px;
}

.category-group-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, #a651c4 0%, #e74c86 100%);
    border-radius: 2px;
}

/* 分类网格样式 */
.categories {
    margin-bottom: 50px;
    position: relative;
    padding: 10px 0 20px;
    z-index: 2;
}

.categories::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(240, 242, 245, 0.1), transparent);
    z-index: -1;
    pointer-events: none;
}

.categories h2, .popular-games h2 {
    margin-bottom: 30px;
    font-weight: 700;
    color: #2d3748;
    font-size: 1.8rem;
    position: relative;
    padding-left: 18px;
    display: inline-block;
    letter-spacing: -0.01em;
}

.categories h2::before, .popular-games h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 75%;
    background: linear-gradient(135deg, #5d4bea 0%, #a651c4 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(93, 75, 234, 0.4);
}

.categories h2::after, .popular-games h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 18px;
    width: 40px;
    height: 3px;
  
    border-radius: 3px;
}

.category-grid-wrapper {
    position: relative;
    padding: 10px 5px;
    overflow: hidden;
}

.category-grid-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: calc(100% + 40px);
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(93, 75, 234, 0.03) 0%, 
        rgba(255, 255, 255, 0) 20%, 
        rgba(255, 255, 255, 0) 80%, 
        rgba(231, 76, 134, 0.03) 100%);
    pointer-events: none;
    z-index: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 5px;
    position: relative;
    z-index: 1;
}

.category-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(93, 75, 234, 0.02) 0%, 
        rgba(166, 81, 196, 0.02) 50%, 
        rgba(231, 76, 134, 0.02) 100%);
    filter: blur(10px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.category-grid:hover::before {
    opacity: 1;
}

.category-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 250, 0.85));
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 18px 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, background 0.3s ease;
    transition-delay: calc(0.05s * var(--card-index, 0));
    transform-style: preserve-3d;
    perspective: 1000px;
}

.category-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg) translateY(-100%);
    transition: transform 0.7s ease;
    z-index: 2;
}

.category-card:hover::before {
    transform: rotate(30deg) translateY(100%);
}

.category-card:nth-child(3n+1) {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 247, 255, 0.85));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05), inset 0 0 20px rgba(102, 126, 234, 0.03);
}

.category-card:nth-child(3n+2) {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 240, 255, 0.85));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05), inset 0 0 20px rgba(59, 130, 246, 0.03);
}

.category-card:nth-child(3n+3) {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 240, 0.85));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05), inset 0 0 20px rgba(249, 115, 22, 0.03);
}

.category-card i {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #667eea;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

/* 图标颜色 */
.category-card:nth-child(3n+1) i {
    color: #667eea;
}

.category-card:nth-child(3n+2) i {
    color: #3b82f6;
}

.category-card:nth-child(3n+3) i {
    color: #f97316;
}

.category-card:hover i {
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* 添加图标的光晕效果 */
.category-card i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

.category-card:hover i::after {
    opacity: 1;
    width: 100%;
    height: 100%;
}

.category-card:nth-child(3n+1) i::after {
    background: rgba(102, 126, 234, 0.1);
}

.category-card:nth-child(3n+1):hover i {
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.category-card:nth-child(3n+2) i::after {
    background: rgba(59, 130, 246, 0.1);
}

.category-card:nth-child(3n+2):hover i {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.category-card:nth-child(3n+3) i::after {
    background: rgba(249, 115, 22, 0.1);
}

.category-card:nth-child(3n+3):hover i {
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

/* 添加脉冲效果 */
.category-card i::before {
    position: relative;
    z-index: 2;
}

.category-card i::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.category-card:hover i::after {
    animation: pulse 1.5s ease infinite;
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #2d3748;
    font-weight: 600;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: #667eea;
}

.category-card p {
    font-size: 0.75rem;
    color: #718096;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 2.8em;
}

.category-card .browse-btn {
    margin-top: auto;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.category-card:hover .browse-btn {
    opacity: 1;
    transform: translateY(0);
}

/* 不同类别的颜色主题 - 浏览按钮 */
.category-card:nth-child(3n+1) .browse-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.category-card:nth-child(3n+2) .browse-btn {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.category-card:nth-child(3n+3) .browse-btn {
    background: linear-gradient(135deg, #f97316, #ec4899);
}

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 30px 0;
    position: relative;
}

.games-grid h2, .categories h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2d3748;
    position: relative;
    font-weight: 600;
    display: inline-block;
}

.games-grid h2::after, .categories h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
   
    border-radius: 3px;
    transition: width 0.3s ease;
}

.games-grid h2:hover::after, .categories h2:hover::after {
    width: 100%;
}

/* 游戏卡片样式 */
.game-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(250, 252, 255, 0.85));
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    height: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2), inset 0 0 20px rgba(102, 126, 234, 0.03);
    border-color: rgba(255, 255, 255, 0.4);
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg) translateY(-150%);
    transition: transform 0.7s ease;
    z-index: 2;
    pointer-events: none;
}

.game-card:hover::before {
    transform: rotate(30deg) translateY(150%);
}

.game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f7fafc;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

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

.game-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

.game-title {
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-description {
    font-size: 0.9em;
    color: #718096;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #718096;
    margin-bottom: 12px;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-rating i {
    color: #f6ad55;
}

.game-plays {
    color: #718096;
}

/* 分类标签样式 */
.game-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #e2e8f0;
    border-radius: 4px;
    font-size: 0.8em;
    color: #4a5568;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination-button {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    min-width: 40px;
    justify-content: center;
}

.pagination-button:hover:not(:disabled) {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.pagination-button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #718096;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.no-results i {
    font-size: 3em;
    margin-bottom: 20px;
    color: #cbd5e0;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #e53e3e;
}

.error-message i {
    font-size: 3em;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .container {
        border-radius: 12px;
        padding: 20px;
    }
    
    main.container {
        margin-top: 15px;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .container::before {
        height: 6px;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
    
    .header {
        padding: 40px 0 80px;
    }
    
    .header h1 {
        font-size: 2.2em;
        margin-bottom: 12px;
    }
    
    .header p {
        font-size: 1.1em;
        padding: 0 20px;
    }
    
    .container {
        padding: 15px;
        border-radius: 10px;
    }
    
    main.container {
        margin-top: 15px;
    }
    
    .categories h2, .popular-games h2 {
        font-size: 1.3rem;
        padding-left: 12px;
    }
    
    .categories h2::before, .popular-games h2::before {
        width: 4px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-card {
        padding: 12px 10px;
    }
    
    .category-card i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .category-card h3 {
        font-size: 0.9rem;
    }
    
    .category-card .browse-btn {
        padding: 3px 10px;
        font-size: 0.7rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-image {
        height: 110px;
    }
    
    /* 游戏详情页响应式 */
    .game-details {
        padding: 20px;
    }

    .detail-title {
        font-size: 1.8em;
    }

    .detail-subtitle {
        font-size: 1.3em;
    }

    .detail-paragraph,
    .detail-list li {
        font-size: 1em;
    }

    .detail-blockquote {
        padding-left: 15px;
    }

    .detail-pre {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .game-card .game-title {
        font-size: 0.9em;
    }
    
    .game-image {
        height: 100px;
    }
    
    /* 游戏详情页响应式 */
    .game-details {
        padding: 15px;
    }

    .detail-title {
        font-size: 1.5em;
    }

    .detail-subtitle {
        font-size: 1.2em;
    }
}

.play-button {
    display: inline-block;
    padding: 5px 10px;
    background: linear-gradient(135deg, #5d4bea 0%, #a651c4 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.85em;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.play-button:hover {
    background: linear-gradient(135deg, #4e3ed1 0%, #9543b3 100%);
    transform: translateY(-2px);
}

.play-button:hover::before {
    left: 100%;
}

/* Game Frame Container */
.game-frame-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding-top: 51%;
}

.game-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 加载进度条容器 */
.loading-progress-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 300px;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* 加载进度条 */
.loading-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #5d4bea, #a651c4, #e74c86);
    background-size: 200% 100%;
    animation: progressAnimation 10s linear forwards, gradientMove 2s linear infinite;
    transform: translateX(-100%);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(93, 75, 234, 0.3);
}

@keyframes progressAnimation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

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

/* Game Details */
.game-details {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-title {
    font-size: 2em;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.detail-subtitle {
    font-size: 1.5em;
    color: #4a5568;
    margin: 30px 0 15px;
    line-height: 1.3;
}

.detail-paragraph {
    font-size: 1.1em;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 20px;
}

.detail-list {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}

.detail-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #4a5568;
}

.detail-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 1.5em;
    line-height: 1;
}

.detail-figure {
    margin: 30px 0;
    text-align: center;
}

.detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Game Details - Additional Styles */
.detail-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-link:hover {
    color: #5a6fd1;
    text-decoration: underline;
}

.detail-strong {
    font-weight: 600;
    color: #2d3748;
}

.detail-em {
    font-style: italic;
}

.detail-blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #4a5568;
}

.detail-code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: #2d3748;
}

.detail-pre {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: monospace;
    font-size: 0.9em;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

/* Ordered List Styles */
.detail-list ol {
    list-style-type: decimal;
    padding-left: 24px;
}

.detail-list ol li {
    position: relative;
    padding-left: 0;
    margin-bottom: 12px;
}

.detail-list ol li:before {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-details {
        padding: 20px;
    }

    .detail-title {
        font-size: 1.8em;
    }

    .detail-subtitle {
        font-size: 1.3em;
    }

    .detail-paragraph,
    .detail-list li {
        font-size: 1em;
    }

    .detail-blockquote {
        padding-left: 15px;
    }

    .detail-pre {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .game-details {
        padding: 15px;
    }

    .detail-title {
        font-size: 1.5em;
    }

    .detail-subtitle {
        font-size: 1.2em;
    }
}

/* 波浪动画 */
.header .wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    overflow: hidden;
    z-index: 2;
}

.header .wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 150" xmlns="http://www.w3.org/2000/svg"><path d="M0,100 C250,0 350,150 500,100 C650,50 750,150 1000,100 L1000,150 L0,150 Z" fill="rgba(240,242,245,1)"></path></svg>');
    background-size: 100% 100%;
    animation: wave 15s linear infinite;
}

.header .wave:nth-child(2) {
    bottom: 5px;
    opacity: 0.7;
    animation: wave 17s linear infinite;
    animation-delay: -3s;
}

.header .wave:nth-child(3) {
    bottom: 10px;
    opacity: 0.5;
    animation: wave 20s linear infinite;
    animation-delay: -5s;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 浮动游戏图标 */
.header .floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.header .floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    animation: floating-icon 6s ease-in-out infinite;
}

.header .floating-icon:nth-child(1) {
    top: 15%;
    left: 10%;
    font-size: 24px;
    animation-delay: 0s;
    animation-duration: 7s;
}

.header .floating-icon:nth-child(2) {
    top: 25%;
    left: 20%;
    font-size: 18px;
    animation-delay: 1s;
    animation-duration: 8s;
}

.header .floating-icon:nth-child(3) {
    top: 20%;
    right: 15%;
    font-size: 20px;
    animation-delay: 2s;
    animation-duration: 6s;
}

.header .floating-icon:nth-child(4) {
    top: 30%;
    right: 10%;
    font-size: 22px;
    animation-delay: 0.5s;
    animation-duration: 7.5s;
}

.header .floating-icon:nth-child(5) {
    top: 40%;
    left: 15%;
    font-size: 20px;
    animation-delay: 1.5s;
    animation-duration: 6.5s;
}

.header .floating-icon:nth-child(6) {
    top: 35%;
    right: 20%;
    font-size: 18px;
    animation-delay: 2.5s;
    animation-duration: 8.5s;
}

@keyframes floating-icon {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Footer样式 */
.footer {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, rgba(93, 75, 234, 0.03) 0%, rgba(166, 81, 196, 0.03) 50%, rgba(231, 76, 134, 0.03) 100%);
    color: #718096;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
}

.footer p {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #a651c4;
    text-decoration: underline;
}

/* 响应式设计增强 */
@media (max-width: 1200px) {
    .container {
        border-radius: 12px;
        padding: 20px;
    }
    
    main.container {
        margin-top: 15px;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .container::before {
        height: 6px;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
    
    .header {
        padding: 40px 0 80px;
    }
    
    .header h1 {
        font-size: 2.2em;
        margin-bottom: 12px;
    }
    
    .header p {
        font-size: 1.1em;
        padding: 0 20px;
    }
    
    .container {
        padding: 15px;
        border-radius: 10px;
    }
    
    main.container {
        margin-top: 15px;
    }
    
    .categories h2, .popular-games h2 {
        font-size: 1.3rem;
        padding-left: 12px;
    }
    
    .categories h2::before, .popular-games h2::before {
        width: 4px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-card {
        padding: 12px 10px;
    }
    
    .category-card i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .category-card h3 {
        font-size: 0.9rem;
    }
    
    .category-card .browse-btn {
        padding: 3px 10px;
        font-size: 0.7rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 10px;
    }
    
    .game-image {
        height: 110px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 0 50px;
    }
    
    .header h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    
    .header p {
        font-size: 1em;
        padding: 0 15px;
    }
    
    .container {
        padding: 12px;
        border-radius: 8px;
    }
    
    main.container {
        margin-top: -10px;
    }
    
    .categories h2, .popular-games h2 {
        font-size: 1.2rem;
        padding-left: 10px;
        margin-bottom: 15px;
    }
    
    .categories h2::before, .popular-games h2::before {
        width: 3px;
        height: 60%;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .category-card {
        padding: 10px 8px;
    }
    
    .category-card i {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .category-card h3 {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .category-card p {
        font-size: 0.7rem;
        line-height: 1.3;
        margin-bottom: 6px;
        -webkit-line-clamp: 1;
        max-height: 1.3em;
    }
    
    .category-card .browse-btn {
        padding: 2px 8px;
        font-size: 0.65rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 10px;
    }

    .search-button {
        width: 100%;
    }
    
    .game-image {
        height: 100px;
    }
}

/* 游戏加载遮罩层 */
.game-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* 加载文字 */
.loading-text {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    background: linear-gradient(135deg, #5d4bea 0%, #a651c4 50%, #e74c86 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    margin-bottom: 30px;
}

/* 进度条容器 */
.loading-progress-container {
    width: 80%;
    max-width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

/* 进度条 */
.loading-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #5d4bea, #a651c4, #e74c86);
    background-size: 200% 100%;
    transform: translateX(-100%);
    animation: progressAnimation 10s linear forwards, gradientMove 2s linear infinite;
}

/* 隐藏遮罩层的类 */
.hide-overlay {
    opacity: 0;
    pointer-events: none;
}

@keyframes progressAnimation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

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