/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0f2027, #203a43, #1a2980, #26d0ce) fixed;
    background-size: 600% 600%;
    animation: gradientBG 20s ease infinite;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.wrapper {
    width: 100%;
    padding: 10px;
    position: relative;
    z-index: 1;
}

/* 顶部区域 */
.header-area {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo容器 */
.logo-container {
    padding: 10px 0;
    margin-bottom: 10px;
}

/* 自定义赛车Logo */
.racing-car-logo {
    position: relative;
    width: 45px;
    height: 30px;
    background-color: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transform: perspective(200px) rotateY(-5deg);
    transition: all 0.3s ease-in-out;
}

.racing-car-logo:hover {
    transform: perspective(200px) rotateY(5deg) scale(1.05);
}

.racing-car-logo .car-body {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a56db, #26d0ce);
    border-radius: 4px;
    overflow: hidden;
}

.racing-car-logo .car-roof {
    position: absolute;
    top: 2px;
    left: 10px;
    right: 10px;
    height: 7px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px 4px 0 0;
}

.racing-car-logo .car-windshield {
    position: absolute;
    top: 9px;
    left: 18px;
    width: 7px;
    height: 6px;
    background-color: rgba(0, 20, 50, 0.7);
    border-radius: 1px;
    transform: skewX(-15deg);
}

.racing-car-logo .car-headlight {
    position: absolute;
    top: 13px;
    right: 4px;
    width: 4px;
    height: 4px;
    background-color: #ffcc00;
    border-radius: 50%;
    box-shadow: 0 0 5px #ffcc00;
}

.racing-car-logo .car-wheel {
    position: absolute;
    bottom: 1px;
    width: 8px;
    height: 8px;
    background-color: #111;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.racing-car-logo .front-wheel {
    right: 7px;
}

.racing-car-logo .rear-wheel {
    left: 7px;
}

.racing-car-logo .car-spoiler {
    position: absolute;
    top: 0px;
    left: 3px;
    width: 5px;
    height: 12px;
    background-color: rgba(0, 20, 50, 0.8);
    border-radius: 4px 0 0 0;
}

/* 页脚版本的赛车Logo */
.footer-racing-car-logo {
    width: 38px;
    height: 25px;
    margin-bottom: 8px;
    transform: none;
}

/* 旧Logo样式保留，以确保兼容性 */
.car-logo {
    position: relative;
    width: 40px;
    height: 25px;
    background-color: white;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    height: 40px;
    width: auto;
    border-radius: 10px;
    background-color: white;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.logo-text {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-left: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, #1a56db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 5px 0;
}

/* 旧样式覆盖 */
.logo img {
    height: 40px;
    border-radius: 10px;
    background-color: white;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
}

/* 关键词容器 */
.keywords-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
}

/* 搜索容器 */
.search-container {
    margin: 10px 0;
    width: 100%;
    max-width: 300px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.2s ease;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.8);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(30, 40, 60, 0.95);
    border-radius: 0 0 15px 15px;
    margin-top: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    backdrop-filter: blur(8px);
}

.search-suggestions.active {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(255, 255, 255, 0.1);
}

.suggestion-item .highlight {
    color: #1a56db;
    font-weight: bold;
}

.no-suggestions {
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    text-align: center;
}

/* 游戏关键词 */
.game-keywords {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.game-keywords::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.keyword-tag {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    color: white;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.keyword-tag:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 关键词标签活跃状态 */
.keyword-tag.active {
    background: linear-gradient(145deg, rgba(0, 120, 255, 0.6), rgba(0, 80, 200, 0.6));
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 100, 255, 0.5);
    border-color: rgba(0, 150, 255, 0.5);
}

/* 游戏网格 - 瓷砖式布局 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-auto-rows: 100px;
    grid-auto-flow: dense;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 15px;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
}

/* 游戏卡片适应全屏 */
.game-tile {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #2a3a7e, #1d2757);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.game-tile:hover {
    transform: translateY(-10px) scale(1.02);
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.game-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.game-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.game-tile:hover .game-image {
    transform: scale(1.1);
}

/* 不同大小的游戏块调整 */
.game-tile.large {
    grid-column: span 2;
    grid-row: span 2;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.game-tile.wide {
    grid-column: span 2;
}

.game-tile.tall {
    grid-row: span 2;
}

/* 网站信息区域 */
.info-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin: 0 5px 30px 5px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #1a56db, #26d0ce);
}

.info-section h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a2980;
    position: relative;
    display: inline-block;
}

.info-section h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #1a56db;
}

.info-section h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #203a43;
}

.info-section p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.info-section ul {
    margin: 0 0 20px 25px;
}

.info-section li {
    margin-bottom: 8px;
    font-size: 15px;
    color: #1a56db;
    list-style-type: disc;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.info-section li:hover {
    text-decoration: underline;
    transform: translateX(5px);
    color: #0f2027;
}

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px 20px 0 0;
    padding: 40px 30px 30px;
    margin: 40px 5px 0 5px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 35px;
    margin-bottom: 10px;
    background-color: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-logo p {
    font-size: 14px;
    color: #999;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 14px;
    color: #777;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #4a90e2;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.footer-bottom p {
    font-size: 12px;
    color: #999;
}

/* 游戏名称标签 */
.game-tile::after {
    content: attr(data-name);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    opacity: 1;
    transition: all 0.3s;
    text-align: center;
    z-index: 5;
    backdrop-filter: blur(3px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.game-tile:hover::after {
    background: rgba(0, 50, 200, 0.75);
    padding-bottom: 15px;
}

/* 游戏瓷砖特效 */
.highlight-effect {
    animation: highlight 1.5s ease;
}

@keyframes highlight {
    0% { box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.8); }
    100% { box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.5); }
}

.pulse-effect {
    animation: pulse 1.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 分类卡片选中效果 */
.category-selected {
    animation: categorySelect 0.5s ease;
}

@keyframes categorySelect {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* 链接点击效果 */
.link-clicked {
    animation: linkPulse 0.5s ease;
}

@keyframes linkPulse {
    0% { color: #4a90e2; }
    50% { color: #084f9e; }
    100% { color: #4a90e2; }
}

/* 导航栏响应式设计 */
@media (min-width: 768px) {
    .header-area {
        flex-direction: row;
        align-items: center;
        padding: 15px 25px;
        flex-wrap: wrap;
    }
    
    .logo-container {
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .search-container {
        flex: 1;
        margin: 0 20px;
        max-width: 400px;
        order: 1;
    }
    
    .keywords-container {
        width: 100%;
        order: 2;
        margin-top: 15px;
    }
}

@media (min-width: 992px) {
    .header-area {
        flex-wrap: nowrap;
    }
    
    .search-container {
        max-width: 300px;
    }
    
    .keywords-container {
        flex: 2;
        width: auto;
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .header-area {
        flex-direction: column;
        align-items: center;
        padding: 12px;
    }
    
    .logo-container {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .search-container {
        width: 100%;
        margin: 10px 0;
    }
    
    .keywords-container {
        width: 100%;
    }
    
    .keyword-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        grid-auto-rows: 100px;
        gap: 10px;
        padding: 0 10px;
    }
    
    .game-tile::after {
        font-size: 12px;
        padding: 8px;
    }
    
    .info-section {
        padding: 20px;
        margin: 0 5px 20px 5px;
    }
    
    .info-section h1 {
        font-size: 22px;
    }
    
    .info-section h2 {
        font-size: 18px;
    }
    
    .footer {
        padding: 25px 15px 20px;
    }
}

@media (max-width: 480px) {
    .keyword-tag {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .keyword-btn {
        padding: 4px 10px;
        font-size: 13px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        grid-auto-rows: 80px;
        gap: 8px;
    }
    
    .footer {
        padding: 20px;
    }
    
    .games-heading h2 {
        font-size: 20px;
    }
}

/* 游戏窗口弹出层 - 全屏风格 */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.game-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.game-container {
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 宽高比 */
    background-color: #000;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 1;
    visibility: visible;
    z-index: 1002;
    background-color: #000;
    display: block;
}

.game-modal-title {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    z-index: 1003;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    z-index: 1004;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.close-button:hover {
    background-color: rgba(255, 0, 0, 0.7);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    z-index: 1000;
}

.fullscreen-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    z-index: 1003;
    transition: all 0.3s ease;
}

.fullscreen-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 1);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 游戏标题区域 */
.games-heading {
    text-align: center;
    margin: 30px 0 20px;
    position: relative;
    color: white;
    padding: 0 15px;
}

/* 添加这个新样式 */
.heading-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.games-heading h2 {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    position: relative;
    margin-bottom: 5px;
    padding: 0 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.games-heading h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #26d0ce, #1a56db);
    border-radius: 3px;
}

/* 媒体查询整合 */
@media (min-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-auto-rows: 140px;
        padding: 0 30px;
    }
    
    .game-tile.large {
        grid-column: span 3;
        grid-row: span 2;
    }
}

@media (min-width: 1800px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        grid-auto-rows: 160px;
        gap: 20px;
    }
}

@media (min-width: 2400px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 200px;
        gap: 25px;
    }
}

/* 大标题区域 */
.hero-section {
    display: none;
}

.hero-section::before {
    display: none;
}

.hero-section h1 {
    display: none;
}

.hero-section p {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 游戏错误消息样式 */
.game-error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 80%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1003;
}

.game-error-message p {
    margin-bottom: 15px;
    font-size: 16px;
}

.game-error-message ul {
    text-align: left;
    margin: 0 0 20px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.game-error-message li {
    margin-bottom: 5px;
    font-size: 14px;
}

.error-action-button {
    background-color: rgba(0, 120, 255, 0.7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
    margin: 0 5px;
    display: inline-block;
}

.error-action-button:hover {
    background-color: rgba(0, 120, 255, 0.9);
}

/* 直接嵌入游戏 */
.games-direct {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 15px;
}

.game-section {
    width: 100%;
}

.game-title {
    font-size: 20px;
    color: white;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.direct-game-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.direct-game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.direct-game-container:hover .fullscreen-btn {
    opacity: 1;
}

.fullscreen-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 响应式调整 */
@media (min-width: 768px) {
    .games-direct {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .game-section {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .game-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 16px;
    }
}

/* 更多游戏区域样式 */
.more-games {
    margin-bottom: 50px;
}

.more-games .game-section {
    margin-bottom: 25px;
}

@media (min-width: 992px) {
    .more-games {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .more-games .game-section {
        width: 100%;
        margin-bottom: 0;
    }
}

@media (min-width: 1400px) {
    .games-direct {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 开发者链接样式 */
.dev-links {
    list-style-type: disc;
    margin-left: 25px;
}

.dev-links li {
    margin-bottom: 8px;
}

.dev-links a {
    color: #1a56db;
    text-decoration: none;
    transition: all 0.3s;
}

.dev-links a:hover {
    color: #0f2027;
    text-decoration: underline;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9000;
    display: none;
    backdrop-filter: blur(5px);
}

.dev-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #fff;
    border-radius: 15px;
    z-index: 9001;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    display: none;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    overflow: hidden;
}

.dev-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-content h2 {
    font-size: 26px;
    padding: 20px 30px;
    margin: 0;
    background: linear-gradient(to right, #1a56db, #26d0ce);
    color: white;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* 如何提交游戏模态框样式 */
.submission-steps {
    margin: 30px 0;
}

.step {
    display: flex;
    margin-bottom: 30px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a56db, #26d0ce);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 10px;
    color: #1a2980;
}

.highlight-link {
    color: #1a56db;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed;
    transition: all 0.3s;
}

.highlight-link:hover {
    color: #0f2027;
    border-bottom-style: solid;
}

.requirements {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.requirements h3 {
    margin-top: 0;
    color: #1a2980;
}

.requirements ul {
    margin-left: 20px;
}

.requirements li {
    margin-bottom: 8px;
    color: #555;
}

/* 开发者FAQ模态框样式 */
.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h3 {
    color: #1a2980;
    margin-bottom: 10px;
}

.faq-item p {
    margin-bottom: 10px;
}

.faq-item ul {
    margin-left: 20px;
}

.faq-item li {
    margin-bottom: 5px;
    color: #555;
}

/* 开发者API模态框样式 */
.api-section {
    margin-bottom: 30px;
}

.api-section h4 {
    color: #1a2980;
    margin-bottom: 15px;
}

.api-section ul, .api-section ol {
    margin-left: 20px;
}

.api-section li {
    margin-bottom: 8px;
    color: #555;
}

.code-example {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.code-example h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1a2980;
}

.code-example pre {
    margin: 0;
    overflow-x: auto;
    background: #333;
    color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.api-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.api-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #1a56db, #26d0ce);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.api-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 联系我们模态框样式 */
.contact-info {
    margin-bottom: 20px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-method {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 20px;
}

.contact-method h3 {
    margin-top: 0;
    color: #1a2980;
    margin-bottom: 10px;
}

.contact-method p {
    margin-bottom: 5px;
}

.icon-email:before {
    content: '✉';
    margin-right: 5px;
}

.contact-form {
    margin-top: 30px;
}

.contact-form h3 {
    color: #1a2980;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a56db;
    outline: none;
}

.submit-btn {
    background: linear-gradient(135deg, #1a56db, #26d0ce);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-media {
    margin-top: 40px;
    text-align: center;
}

.social-media h3 {
    color: #1a2980;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a56db, #26d0ce);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    margin-right: 10px;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 社交图标 */
.icon-twitter:before { content: 'X'; }
.icon-facebook:before { content: 'f'; }
.icon-instagram:before { content: 'I'; }
.icon-discord:before { content: 'D'; }

/* 响应式调整 */
@media (max-width: 768px) {
    .dev-modal {
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 22px;
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* 搜索通知样式 */
.search-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 40, 60, 0.9);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 80%;
}

.search-notification.show {
    transform: translateX(-50%) translateY(0);
}

.search-notification.error {
    background: rgba(220, 53, 69, 0.9);
}

.search-notification.success {
    background: rgba(40, 167, 69, 0.9);
}

/* 其他媒体查询调整 */
@media (max-width: 768px) {
    .heading-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .search-container {
        max-width: 90%;
    }
}

/* 空状态消息样式 */
.empty-state-message {
    text-align: center;
    padding: 60px 20px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease;
    color: white;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.8;
    animation: pulse 2s infinite ease-in-out;
}

.empty-state-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.empty-state-message p {
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
}

.reset-filter-btn {
    background: linear-gradient(135deg, #1a56db, #26d0ce);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.reset-filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #2563eb, #36e7e1);
}

@media (max-width: 768px) {
    .empty-state-message {
        padding: 40px 15px;
        margin: 20px 10px;
    }
    
    .empty-state-message h3 {
        font-size: 20px;
    }
    
    .empty-state-message p {
        font-size: 14px;
    }
} 