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

body {
    background-color: #A8A69C;
    line-height: 1.6;
}

/* 容器样式 */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px;
    background: none;
    border: none;
    box-shadow: none;
}

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

h1 {
    color: #333;
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 搜索框样式 */
.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: 180px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

#search-input:focus {
    outline: none;
    border-color: #4CAF50;
}

#search-btn, #submit-data-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    transition: background-color 0.2s ease;
}

#search-btn {
    background-color: #4CAF50;
}

#search-btn:hover {
    background-color: #45a049;
}

#submit-data-btn {
    background-color: #2196F3;
}

#submit-data-btn:hover {
    background-color: #1976D2;
}

#search-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(76, 175, 80, 0.4);
}

#search-btn:active {
    transform: translateY(0);
}

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

/* 提示信息样式 */
.info-message {
    color: #333;
    font-size: 0.9em;
    font-weight: 700;
    margin: 1px 0;
    padding: 3px 4px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.visitor-stats {
    color: #800080;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(128, 0, 128, 0.3);
    white-space: nowrap;
}

#visitor-count {
    color: #A2001D;
    font-weight: 700;
}

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

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

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

.test-links a:hover {
    text-decoration: underline;
    background: none;
    border: none;
    transform: none;
    box-shadow: none;
}

/* 游戏列表样式 */
.date-section {
    margin-bottom: 8px;
    padding-top: 2px;
    border-top: 1px solid rgba(128, 0, 128, 0.3);
}

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

.date-header {
    font-weight: 700;
    font-size: 1.4em;
    margin: 2px 0 4px;
    padding: 8px 15px;
    color: #800080;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0.28) 100%);
    border: 1px solid rgba(128, 0, 128, 0.5);
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    cursor: default;
}

.date-header:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.35) 100%);
    border-color: rgba(128, 0, 128, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(128, 0, 128, 0.3);
}

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

.game-item {
    margin-bottom: 2px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.35);
    font-size: 1em;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.game-item:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* 游戏标题样式 */
.game-title {
    color: #000;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.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: 4px;
    font-size: 0.8em;
}

.game-links a {
    color: #A2001D;
    text-decoration: none;
    font-weight: 700;
    padding: 0;
    border-radius: 0;
    transition: none;
}

.game-links a:hover {
    text-decoration: underline;
    background: none;
    color: #A2001D;
}

/* 加载相关样式 */
.loading {
    padding: 15px;
    color: #666;
    font-size: 1em;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin: 10px 0;
}

.loading-more {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 1em;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin: 10px 0;
}

.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: 20px;
    color: #999;
    font-size: 0.9em;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin: 10px 0;
}

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

.pagination button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.pagination button:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(76, 175, 80, 0.4);
}

.pagination button:active {
    transform: translateY(0);
}

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

.page-info {
    margin: 15px 0;
    color: #666;
    font-size: 0.9em;
    text-align: left;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

/* 搜索高亮样式 */
.game-item.highlight {
    background-color: #fff3cd;
    border: 2px solid #dc3545;
    border-radius: 6px;
    animation: blink 1s ease-in-out 3;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.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) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .header-with-search {
        flex-wrap: wrap;
        white-space: normal;
        gap: 8px;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
        margin-top: 3px;
    }
    
    #search-input {
        width: 100%;
        max-width: 200px;
    }
    
    .info-message .visitor-stats {
        display: none !important;
    }
    
    .test-links {
        gap: 6px;
        row-gap: 4px;
    }
    
    .test-links a {
        padding: 3px 6px;
        font-size: 0.85em;
    }
}

/* 数据提交弹窗样式 */
.submit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.submit-modal-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.submit-modal-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.submit-modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.submit-modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.submit-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 0.9em;
    line-height: 1.5;
}

.submit-form-group {
    margin-bottom: 18px;
}

.submit-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.submit-form-group input, .submit-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.submit-form-group input:focus, .submit-form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.submit-form-group input::placeholder, .submit-form-group textarea::placeholder {
    color: #999;
    font-size: 13px;
}

.required {
    color: #e74c3c;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.captcha-code {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    user-select: none;
    min-width: 80px;
    text-align: center;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-input {
    flex: 1;
    max-width: 100px;
    height: 42px;
}

.submit-modal-footer {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    justify-content: center;
    gap: 15px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #dee2e6;
}

.submit-modal-footer button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid transparent;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.submit-btn:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cancel-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: 2px solid transparent;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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



@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* 手机端强制隐藏访问统计 */
@media screen and (max-width: 768px) {
    .visitor-stats {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}