@charset "utf-8";
/* CSS Document */

#container{
	width:100%;

	height:auto;
	margin: 0 auto;
        
	 
}
#nav{
	position:fixed; 
	top:0; 
	width:100%; 
	background: #F0F8FF;
	z-index: 999;
	margin:0;
	padding: 0;
}
table {
  border: 3px solid black;
  border-collapse: collapse;
}

.tr_blue{
	border: 1px solid #1E9FFF;
}
.tr_green{
	border: 1px solid #5FB878;
}
.tr_red{
	border: 1px solid #FF3333;
}	

td {
  height: 50px;
  vertical-align: center;
}
	
th, td {
  padding: 15px;
  text-align: left;
  vertical-align: center;
  border-color:#aaa;
}

.tdcenter{
	text-align: center;
}
  
.checkboxbig {
        margin-right: 0px;
        cursor: pointer;
        width: 30px;
        height: 30px;
        position: relative;
	}
	
.checkboxhidden{
	visibility: hidden;
	}
.spanhidden{
	visibility: hidden;
	}
		
.radiobig {
	top: 6px;
        margin-right: 5px;
        cursor: pointer;
        width: 20px;
        height: 20px;
        position: relative;
	}		

.button-xl{
	font-size:125%;
	background:rgb(28,184,65);
	color: white;
	border-style: none;

}

/* 科技感管理界面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    background-color: #f8fafc;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

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

/* 导航样式 */
.nav-bar {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nav-bar > a, .dropdown {
    color: #000000;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 15px;
    border-radius: 6px;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-bar > a:hover, .nav-bar > a:focus {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

/* 当前活动导航链接样式 */
.nav-bar a.active {
    color: #1890ff;
    font-weight: bold;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 6px;
    padding: 5px 0;
    top: 100%;
    left: 0;
    margin-top: 0; /* 移除间距，让菜单紧贴按钮 */
    border: 1px solid #e2e8f0;
}

/* 添加伪元素来扩展hover区域，解决鼠标移动问题 */
.dropdown::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.dropdown-content a {
    color: #000000;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

/* 标题样式 */
.page-title {
    color: #38bdf8;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
}

/* 表单容器样式 */
.form-container {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .nav-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-bar > a, .dropdown {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
    
    .dropdown-content {
        position: static;
        margin-top: 5px;
    }
}

        /* 切换按钮样式 */
        .toggle-container {
            text-align: center;
            margin: 10px 0;
        }
        .view-options {
            display: inline-flex;
            background: #fff;
            border-radius: 15px;
            padding: 2px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .toggle-btn {
            padding: 5px 15px;
            font-size: 14px;
            color: #666;
            cursor: pointer;
            border-radius: 13px;
            transition: all 0.3s ease;
        }
        
        .toggle-btn.active {
            background: #2196F3;
            color: white;
        }    

        /* 卡片布局样式 */
        .game-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            padding: 15px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .game-card {
            width: calc(25% - 8px); /* 4个卡片/行 */
            height: 400px; /* 固定高度 */
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 10px 10px 10px 10px;
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            cursor: pointer;
            text-align: left;
            position: relative;
            display: flex;
            flex-direction: column;
        }
        
        .game-info {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .game-card:hover {
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
            transform: translateY(-2px);
        }
        
        .game-card.selected {
            background: #005abb;
        }
        
        .game-card.selected img {
            filter: brightness(70%);
        }
        
        /* 已选游戏列表中的卡片不显示选中状态 */
        #selected-games .game-card.selected {
            background: white;
        }
        
        #selected-games .game-card.selected img {
            filter: none;
        }
        
        /* 排序选项样式 - 京东手机端风格 */
        .sort-container {
            margin: 5px 0;
            text-align: center;
            background: white;

        }
        
        .sort-options {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }
        
        .sort-label {
            display: none;
        }
        
        .sort-btn {
            padding: 4px 0;
            font-size: 13px;
            color: #333;
            text-decoration: none;
            background: transparent;
            border: none;
            font-weight: normal;
        }
        
        .sort-btn.active {
            color: #333;
            font-weight: bold;
        }
        .sort-arrow {font-size: 12px;}
        .sort-arrow.asc {color: #2196F3;}
        .sort-arrow.desc {color: #FF9800;}
        
        .game-card img {
            height: 320px; /* 固定图片高度 */
            object-fit: cover;
            border-radius: 4px;
            margin-bottom: 10px;
            display: block;
        }
        
        .game-name {
            font-size: 16px;
            margin-bottom: 5px;
            line-height: 1.1;
            min-height: 40px;
            text-align: left;
        }
        
        .game-size {
            font-size: 12px;
            color: #808080;
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255, 255, 255, 0.8);
            padding: 2px 6px;
            border-radius: 4px;
            z-index: 10;
        }
        
        .game-card input[type="checkbox"] {
            position: absolute;
            top: 10px;
            right: 10px;
            opacity: 0;
            cursor: pointer;
        }
        /* 响应式设计 */
        @media (max-width: 1200px) {
            .game-card {
                width: calc(25% - 12px); /* 4个卡片/行 */
            }
			.game-card img {
        		width: 100%;
            }
        }
        
        @media (max-width: 992px) {
            .game-card {
                width: calc(33.333% - 10px); /* 3个卡片/行 */
                
            }
			.game-card img {
        		width: 100%;
            }
            .game-size {
                font-size: 12px;
                top: 0;
                right: 0;
                text-align: right;
            }

        }
        
        @media (max-width: 768px) {
            .game-card {
                width: calc(33.333% - 8px); /* 3个卡片/行 */
                padding: 2px 2px 2px 2px;
                height: 380px; /* 等比缩小高度 */
            }
            .game-card img {
                height: 280px; /* 等比缩小图片高度 */
	        	width: 100%;
            }
            .game-size {
                font-size: 12px;
                top: 0;
                right: 0;
                text-align: right;
            }

        }
        
        @media (max-width: 480px) {
            .game-card {
                width: calc(33.333% - 8px); /* 3个卡片/行 */
                padding: 2px 2px 2px 2px;
            	height: 220px; /* 等比缩小高度 */
            }
            .game-card img {
			height: 160px; /* 等比缩小图片高度 */
        		width: 100%;
            }
            .game-size {
                font-size: 12px;
                top: 0;
                right: 0;
                text-align: right;
            }
            .game-name {
                font-size: 12px;
            }
        }
    /* 减小输入框宽度以便标签完整显示 */

    .layui-input, .layui-textarea {
    width: 180px;

    }
    .layui-form-label {
        width: 130px; 
    }
    .layui-form-item .layui-inline {
            margin-bottom: 0px;
        }