/* 全局样式重置与基础设置 */
* {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "SimHei", sans-serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #BEBCB2;
}

/* 容器样式 */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

h1 {
    color: #333;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
}

/* 搜索框样式 */
.header-with-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    white-space: nowrap;
}

.search-box {
    display: flex;
    gap: 5px;
    align-items: center;
}

#search-input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 220px;
    font-size: 14px;
}

#search-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background-color: #4CAF50;
    color: #fff;
}

/* 分隔线样式 */
.header-separator {
    border: none;
    border-top: 2px solid #800080;
    margin: 5px 0;
}

/* 提示信息样式 */
.info-message {
    color: #333;
    font-size: 0.9em;
    font-weight: 700;
    margin: 3px 0;
}

/* 测试链接容器样式 */
.test-links-container {
    margin: 3px 0;
}

.test-links {
    display: flex;
    gap: 5px;
    font-size: 0.9em;
    font-weight: 700;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    row-gap: 2px;
}

.test-links a {
    color: #800080;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: inline-block;
}

.test-links a:hover {
    text-decoration: underline;
    background-color: rgba(128, 0, 128, 0.1);
}

/* 游戏列表样式 */
.date-section {
    margin-bottom: 20px;
    padding-top: 10px;
    border-top: 1px solid #800080;
}

.date-section:first-child {
    border-top: none;
}

.date-header {
    font-weight: 700;
    font-size: 1.4em;
    margin: 10px 0 10px;
    padding-bottom: 5px;
    color: #800080;
}

.games-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-item {
    margin-bottom: 5px;
    padding: 0;
    background-color: transparent;
    font-size: 1em;
    display: block;
}

/* 游戏标题样式 */
.game-title {
    color: #000;
    font-weight: 700;
}

.game-title.red {
    color: #ff0000;
}

.game-title.blue {
    color: #0000ff;
}

.game-title.dash {
    text-decoration: line-through;
}

.game-title.red.dash {
    color: #ff0000;
}

.game-title.blue.dash {
    color: #0000ff;
}

/* 下载链接样式 */
.game-links {
    display: inline;
    margin-left: 5px;
    font-size: 0.8em;
}

.game-links a {
    color: #A2001D;
    text-decoration: none;
    font-weight: 700;
}

.game-links a:hover {
    text-decoration: underline;
}

/* 加载相关样式 */
.loading {
    padding: 10px;
    color: #666;
    font-size: 1em;
    text-align: left;
}

.loading-more {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 1em;
    font-weight: 700;
}

.loading-more::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #666;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-left: 8px;
    animation: spin 1s linear infinite;
}

.no-more-data {
    text-align: center;
    padding: 15px;
    color: #999;
    font-size: 0.9em;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: flex-start;
    margin: 20px 0 10px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 6px 12px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.pagination button:hover {
    opacity: 0.9;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.page-info {
    margin: 10px 0;
    color: #666;
    font-size: 0.9em;
    text-align: left;
}

/* 搜索高亮样式 */
.game-item.highlight {
    background-color: #fff3cd;
    border: 2px solid #dc3545;
    border-radius: 4px;
    animation: blink 1s ease-in-out 3;
}

/* 动画关键帧 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 响应式适配（小屏幕） */
@media (max-width: 768px) {
    .header-with-search {
        flex-wrap: wrap;
        white-space: normal;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    #search-input {
        width: 100%;
        max-width: 300px;
    }
}