* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    overflow-x: hidden;
    background-color: #f5f5f5;
    width: 100%;
    min-height: 100vh;
}

.nav-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.5);
}

.logo {
    color: #333;
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar {
    display: flex;
    gap: 5px;
    margin-left: auto;
    margin-right: 10px;
}

.search-bar input {
    padding: 5px 10px;
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

.search-bar button {
    padding: 5px 10px;
    border: none;
    background: #b72626;
    color: #fff;
    border-radius: 40px;
    cursor: pointer;
}

.header2 {
    display: flex;
    gap: 15px;
}

.header2 a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.navbar a {
    color: #333;
    text-decoration: none;
    padding: 14px 16px;
    margin: 0 5px;
}

.dropdown {
    overflow: hidden;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(249, 249, 249, 0.95);
    min-width: 120px;
    z-index: 1000;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    display: block;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.split-line {
    border-right: 2px solid #333;
    padding-right: 20px;
}

.bg-image-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.bg-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.container {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 1100px;
    background: rgba(255,255,255,0.85);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);









     height: 80vh;        /* 固定高度 */
    overflow-y: auto;    /* 内容多了自动滚动 */
    overflow-x: hidden;  /* 禁止横向滚动 */
}

.category-wrapper {
    width: 100%;
}

.category-row {
    margin-bottom: 15px;
    line-height: 2.2;
}

.cate-title {
    font-size: 16px;
    font-weight: bold;
    color: #b72626;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 6px 8px 0;
    background: #f1f1f1;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.tag:hover {
    background: #e0e0e0;
}

.tag.active {
    background: #b72626;
    color: #fff;
}

.img-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.img-box.gongyi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.img-box.gongyi .img-item {
    width: 100%;
    padding: 5px; /* 框内部的间距 */
   
    max-width: 210px; /* 你可以根据需要调整这个数值 */
    margin: 0 auto; /* 让框在网格中居中 */
}


.img-item {
    width: 180px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 8px;
}

.img-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.img-item p {
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.footer {
    width: 100%;
    background: rgba(51,51,51,0.8);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
} 







/*加在你 CSS 最后面就行 */
.img-box.gongyi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.img-box.gongyi .img-item {
    width: 100%;
}