/* styles.css */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

h1 {
    color: #333;
    text-align: center;
    margin-top: 20px;
}

h2 {
    color: #333;
    margin: 0;
}

table {
    width: 80%;
    margin: 20px auto;
    border-collapse: separate;
    border-spacing: 0;
}

th, td {
    padding: 8px;
    text-align: center;
    width: 8svw;
}

th.header-class {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    padding: 12px;
}

tr.item-row {
    background-color: #fff;
    cursor: pointer;
    border-bottom: 2px solid #ddd;
    margin-bottom: 10px; /* 行之间有间隔 */
    display: block; /* 确保行之间有间隔 */
    overflow: auto;
    max-width: 100svw; /* 限制最大宽度 */
}

tr.item-row:hover {
    background-color: #e0e0e0;
}

.item {
    display: inline-block;
    text-align: center;
}

.item img {
    max-width: 100px;
    height: auto;
}

.amount {
    margin: 5px 0 0 0;
    font-size: 14px;
}

/* 主要项目样式 */
td.rec:first-child div.item.main {
    border-right: none;
    padding: 20px;
    background-color: #f8f8f8; /* 更深的背景颜色 */
}

td.rec:first-child div.item.main:hover {
    background-color: #e0e0e0;
}

/* 常规项目样式 */
td.rec:not(:first-child) div.item.regular {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-left: none; /* 避免左边重复边框 */
}

td.rec:not(:first-child) div.item.regular:hover {
    background-color: #d0d0d0;
}

.desc {
    color: #3f3f3f;
    font-size: 14px;
    margin-top: 10px;
    text-align: left; /* 描述文本左对齐 */
}

a {
    color: #03A9F4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 为header部分添加一些样式 */
.header {
    width: 100%;
    background-color: #f8f8f8;
    border-bottom: 2px solid #ddd;
}

.header th {
    padding: 15px;
}

.header td {
    padding: 10px;
}

.header h1 {
    margin: 0;
}

/* 确保行的第一项突出 */
tr.item-row td:first-child {
    background-color: #f0f0f0; /* 更深的背景颜色 */
    border-left: 2px solid #4CAF50; /* 突出的左边框 */
}

tr.item-row td:first-child:hover {
    background-color: #e0e0e0;
}

img {
    max-width: 8svw;
}


img:not(.imge) {
    width: 4svw;
}


/* 确保过滤容器样式正确 */
.filter-container {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.filter-container form {
    display: inline-block;
}

.filter-container input[type="text"] {
    padding: 5px;
    font-size: 14px;
    margin-right: 10px;
}

.filter-container button {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    background-color: #03A9F4;
    color: white;
    cursor: pointer;
}

.filter-container button:hover {
    background-color: #0288d1;
}
