.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after, .swiper-button-prev:after, .swiper-rtl .swiper-button-next:after{
    font-size: 9px;
}
.layui-input-block {
    margin: 0px;
}
.updown {
    font-size: 16px;
    color: #ffffff;
    margin-top: 4px;
}

#stock-list {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.stock-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.stock-item:last-child {
    border-bottom: none;
}

.stock-code {
    font-weight: bold;
    margin-right: 10px;
}

.stock-name {
    color: #666;
}        



.stock-container {
    margin: 10px 0;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 移动端默认高度 */
.swiper-slide img {
    width: 100%;
    height: 100%;
}

/* PC 端高度 */
@media (min-width: 768px) {
    .swiper-slide img {
        height: 21rem;
    }
}

/* 修改媒体查询，在电脑端使用flex布局，1行3列 */
@media (min-width: 768px) {
    #picList {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .stock-container {
        flex: 1 1 calc(33.33% - 20px); /* 每行3列，考虑间隙 */
        min-width: 300px;
        max-width: calc(33.33% - 20px);
        margin: 0;
    }
}

/* 移动端保持单列布局 */
@media (max-width: 767px) {
    .stock-container {
        width: 100%;
    }
    .layui-table-cell {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .layui-table[lay-size="sm"] .layui-table-cell {
        height: 30px;
        line-height: 30px;
    }
}

/* 添加回到顶部按钮的样式 */
#back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

#picList {
    position: relative;
    overflow: hidden;
}
.swiper-wrapper {
    display: flex;
    transition-property: transform;
}
.swiper-slide {
    flex-shrink: 0;
    width: 100%;
}
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    z-index: 10;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.2; /* 调整透明度，值范围 0 到 1 */
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1; /* 鼠标悬停时恢复不透明 */
}
.swiper-button-next {
    right: 10px;
}
.swiper-button-prev {
    left: 10px;
}

.dragon-1 {
    color: white;
    background-color: #ff1515;
    padding: 1px 4px;
    border-radius: 2px;
}

.dragon-2 {
    color: white;
    background-color: #fd6c6c;
    padding: 1px 4px;
    border-radius: 2px;
}

.dragon-3 {
    color: white;
    background-color: #fa9898;
    padding: 1px 4px;
    border-radius: 2px;
}

.childtitle {
    display: flex;    
    align-items: center;    
}
.childtitle small {
    margin-left: 15px;
}
#shortline {
    width: 100%;
    height: 200px;
    align-items: center;
    display: flex;
    justify-content: center;
}