/* Global styles */
* {
    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;
    overflow-y: scroll;
    margin: 10px 0;
}

/* Container */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px;
    background: rgba(168, 166, 156, 0.95);
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 20px);
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

/* Header */
.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, #sakura-toggle-btn, #message-btn, #login-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

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

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

#submit-data-btn:hover {
    background-color: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(33, 150, 243, 0.4);
}

#sakura-toggle-btn {
    background-color: #9C27B0;
}

#sakura-toggle-btn:hover {
    background-color: #7B1FA2;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(156, 39, 176, 0.4);
}

#sakura-toggle-btn:not(.active) {
    background-color: #757575;
}

#sakura-toggle-btn:not(.active):hover {
    background-color: #616161;
    box-shadow: 0 3px 6px rgba(117, 117, 117, 0.4);
}

#message-btn {
    background-color: #FF9800;
}

#message-btn:hover {
    background-color: #F57C00;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(255, 152, 0, 0.4);
}

#login-btn {
    background-color: #E91E63;
}

#login-btn:hover {
    background-color: #C2185B;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(233, 30, 99, 0.4);
}

#search-btn:active, #submit-data-btn:active, #sakura-toggle-btn:active, #message-btn:active, #login-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;
}

/* 横向分类导航栏样式 - 现代简约设计 */
#category-nav-container {
    margin: 4px 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-nav-loading {
    text-align: center;
    padding: 12px;
    color: #666;
    font-size: 0.9em;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 12px;
    align-items: center;
    justify-content: flex-start;
}

.category-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    min-width: 60px;
    height: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    color: #444;
    text-decoration: none;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.category-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.category-nav-item:hover:not(.disabled)::before {
    left: 100%;
}

.category-nav-item:hover:not(.disabled) {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.category-nav-item:active:not(.disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.category-nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
    transform: scale(1.05);
}

.category-nav-item.active:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: scale(1.05) translateY(-2px);
}

/* 禁用状态样式 */
.category-nav-item.disabled {
    background: linear-gradient(135deg, rgba(240, 240, 240, 0.6) 0%, rgba(230, 230, 230, 0.6) 100%);
    color: #999;
    border-color: rgba(0, 0, 0, 0.05);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-nav-item.disabled:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 分类名称部分 */
.category-nav-item .category-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* 隐藏数字显示 */
.category-nav-item .category-count {
    display: none;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .category-nav {
        padding: 8px;
        gap: 6px;
    }
    
    .category-nav-item {
        padding: 6px 14px;
        font-size: 12px;
        height: 32px;
        min-width: 70px;
    }
    
    /* 确保手机端选中状态样式生效 */
    .category-nav-item.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
}

@media (max-width: 480px) {
    .category-nav {
        padding: 6px;
        gap: 5px;
    }
    
    .category-nav-item {
        padding: 5px 12px;
        font-size: 11px;
        height: 28px;
        min-width: 60px;
    }
    
    /* 确保手机端选中状态样式生效 */
    .category-nav-item.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    
    .category-nav-item.active::after {
        display: none;
    }
    
    /* 小屏幕进一步优化空间利用 */
    .game-item {
        padding: 0 6px !important; /* 进一步减少左右边距 */
    }
    
    .game-item .game-title {
        max-width: 78%; /* 小屏幕标题占更多空间 */
    }
}

/* 分类推广图容器 */
.category-promo-box {
    margin: 2px 0;
    padding: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    display: none;
}

.category-promo-box a {
    display: inline-block;
    margin: 1px;
    vertical-align: middle;
}

.category-promo-container {
    margin: 2px 0;
    text-align: center;
    display: none;
}

.category-promo-link {
    display: inline-block;
    text-decoration: none;
}

.category-promo-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
    transition: opacity 0.2s;
    vertical-align: middle;
}

.category-promo-img:hover {
    opacity: 0.9;
}

/* 手机端隐藏分类推广图 */
@media (max-width: 768px) {
    .category-promo-box,
    .category-promo-container {
        display: none !important;
    }
}

/* 游戏列表样式 */
#content-container {
    flex: 1; /* 让内容区域自动扩展填充剩余空间 */
    min-height: 300px; /* 设置最小高度 */
}

.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: 600;
    font-size: 1em;
    margin: 2px 0 4px;
    padding: 5px 12px;
    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;
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-header .tip {
    font-size: 0.75em;
    font-weight: 400;
    color: #e91e63;
    animation: tipBlink 2s ease-in-out infinite;
}

@keyframes tipBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.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: 2px 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.2;
}

.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;
    font-size: 0.92em;
    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.75em; /* 从 0.8em 缩小到 0.75em */
}

.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: 5px;
    }
    
    .header-with-search h1 {
        font-size: 1.4em;
        margin-bottom: 0;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
        margin-top: 0;
        gap: 6px;
    }
    
    #search-input {
        width: 100%;
        max-width: 200px;
    }
    
    .info-message .visitor-stats {
        display: none !important;
    }
    
    .test-links-container {
        margin: 0;
        padding: 2px 0;
    }
    
    .test-links {
        gap: 10px;
        row-gap: 2px;
        justify-content: flex-start;
    }
    
    .test-links a {
        padding: 1px 0;
        font-size: 0.85em;
    }
    
    /* 手机端 DOWNLOAD 文字进一步缩小 */
    .game-links {
        font-size: 0.65em;
    }
}

/* 数据提交弹窗样式 */
.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: 15px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

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

.submit-modal-body {
    padding: 20px 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: 8px 10px;
    margin-bottom: 12px;
    color: #856404;
    font-size: 0.85em;
    line-height: 1.4;
    text-align: center;
}

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

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

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

.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;
    background: white;
    resize: vertical;
    min-height: 60px;
}

.submit-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.submit-form-group input:focus, .submit-form-group textarea:focus, .submit-form-group select: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: 15px;
}

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

.captcha-input {
    flex: 1;
    max-width: 100px;
    height: 32px !important;
    padding: 6px 10px !important;
    font-size: 14px !important;
}

.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;
    }
}

/* WebGL樱花画布样式 */
#sakura {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* 确保樱花背景在所有内容后面 */
    pointer-events: none;
    background-color: #A8A69C; /* 默认使用原来的背景色 */
}

/* 搜索弹窗样式 - 暗色主题 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    padding-top: 12vh;
    backdrop-filter: blur(3px);
}

.search-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.search-modal-content.dark-theme {
    background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-modal-header {
    padding: 20px 25px;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.1);
}

.dark-theme .search-modal-header {
    background: linear-gradient(135deg, #4a5a4a 0%, #3d4d3d 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark-theme .search-modal-header h3 {
    color: #e0e0d8;
}

.search-hint {
    margin: 8px 0 0;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

.dark-theme .search-hint {
    color: #a0a098;
}

.search-modal-body {
    padding: 25px;
    background: white;
}

.dark-theme .search-modal-body {
    background: #2d2d2d;
}

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

.search-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
}

.dark-theme .search-label {
    color: #c0c0b8;
}

.search-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f8f9fa;
    cursor: pointer;
}

.dark-theme .search-select {
    background: #3a3a3a;
    border-color: #5a5a52;
    color: #e0e0d8;
}

.dark-theme .search-select:focus {
    outline: none;
    border-color: #6a7a6a;
    box-shadow: 0 0 0 3px rgba(106, 122, 106, 0.2);
}

.search-input-large {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f8f9fa;
}

.dark-theme .search-input-large {
    background: #3a3a3a;
    border-color: #5a5a52;
    color: #e0e0d8;
}

.dark-theme .search-input-large:focus {
    outline: none;
    border-color: #6a7a6a;
    background: #3a3a3a;
    box-shadow: 0 0 0 3px rgba(106, 122, 106, 0.2);
}

.dark-theme .search-input-large::placeholder {
    color: #808078;
}

.search-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 5px;
}

.search-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.search-modal-btn.primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.dark-theme .search-modal-btn.primary {
    background: linear-gradient(135deg, #4a7c59 0%, #3d6a4a 100%);
}

.search-modal-btn.primary:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.dark-theme .search-modal-btn.primary:hover {
    background: linear-gradient(135deg, #5a8c69 0%, #4a7c59 100%);
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.4);
}

.search-modal-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.dark-theme .search-modal-btn.secondary {
    background: linear-gradient(135deg, #5a5a52 0%, #4a4a42 100%);
    color: #e0e0d8;
}

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

.dark-theme .search-modal-btn.secondary:hover {
    background: linear-gradient(135deg, #6b6b63 0%, #5a5a52 100%);
}

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


/* 登录弹窗样式 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}
.login-box {
    max-width: 360px;
    margin: 80px auto;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.login-box h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}
.login-box .form-group {
    margin-bottom: 15px;
}
.login-box .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}
.login-box .captcha-row {
    display: flex;
    gap: 10px;
}
.login-box .captcha-row input {
    flex: 1;
}
.login-box .captcha-row img {
    height: 44px;
    border-radius: 6px;
    cursor: pointer;
}
.login-box .auth-btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
}
.login-box .auth-toggle {
    text-align: center;
    margin-top: 15px;
}
.login-box .auth-toggle span {
    color: #667eea;
    cursor: pointer;
}
.login-box .auth-close {
    text-align: center;
    margin-top: 10px;
}
.login-box .auth-close span {
    color: #999;
    cursor: pointer;
    font-size: 0.9em;
}


#content-container {
    position: relative;
    min-height: 500px;
}

.game-item {
    height: 30px !important;
    line-height: 45px !important;
    overflow: hidden;
    padding: 0 8px !important; /* 从 12px 改为 8px，减少左右空白 */
    display: flex;
    align-items: center;
}

.vr-wrapper {
    position: relative;
    width: 100%;
}

.vr-wrapper .date-section {
    position: absolute;
    width: 100%;
    left: 0;
}

#content-container {
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
}

.game-item .game-title {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.3;
    max-width: 75%; /* 从 70% 增加到 75%，让标题显示更多内容 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-item .game-links {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.3;
}
