/* 容器样式 */
.container {
    font-family: 'Arial', sans-serif;
    background-color: #ecf0f1;
    margin: 0 auto; /* 使容器水平居中 */
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    text-align: left; /* 主体内容左对齐 */
}

/* 标题样式 */
h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #2c3e50;
}

/* 输入框和按钮样式 */
.input-container {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px; /* 左侧圆角 */
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

button {
    padding: 10px 15px; /* 与输入框相同的内边距 */
    border: none;
    border-radius: 0 5px 5px 0; /* 右侧圆角 */
    font-size: 1rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

/* 下拉菜单样式 */
.select-container {
    position: relative;
    display: inline-block;
    width: auto;
    margin-top: 10px;
    text-align: left;
}

.select-input {
    display: block;
    width: auto;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #333333;
    outline: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.select-input:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #ccc;
    border-radius: 0 0 5px 5px;
    background-color: white;
    z-index: 1000;
    display: none;
}

.select-options li {
    padding: 10px 15px;
    cursor: pointer;
}

.select-options li:hover {
    background-color: #f0f0f0;
}

/* 自动发送区域样式 */
.auto-send-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-right: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.status {
    font-size: 0.9rem;
}

/* 信息显示区域样式 */
#SearchBiddingData-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    color: #333;
}


table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #fff; /* 表格背景色为白色 */
}

th {
	position: sticky;
	top: 0;
	background-color: #ffffff;
	color: #2c3e50;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 15px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	z-index: 100;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

td {
	padding: 15px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* 新增序号列样式 */
.serial-number {
    background: #f1f1f1; /* 序号列背景色为浅灰色 */
    text-align: center;
    font-weight: bold;
}

.serial-number:hover {
    background: #e9e9e9; /* 悬停时序号列背景色 */
    cursor: default;
}

tr:nth-child(even) .serial-number {
    background: #f5f5f5; /* 偶数行序号列背景色 */
}

tr:hover .serial-number {
    background: #e0e0e0; /* 悬停时序号列背景色 */
    transition: background 0.3s ease;
}

tr:nth-child(even) {
    background: #fafafa; /* 偶数行背景色 */
}

tr:hover {
    background: #f0f0f0; /* 悬停时行背景色 */
    transition: background 0.3s ease;
}

a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* CSS for SNH badge */
.snh-badge {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
}
/* 新增的样式 */
.bid-info {
    display: block;
    margin-top: 5px;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; /* 允许在小屏幕上换行 */
    max-width: 100%;
}

/* 为表格的 td 添加样式，使其在小屏幕上自动调整 */
@media (max-width: 768px) {
    td {
        padding: 10px;
    }

    .bid-info {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
}