body {
    /* font-family: Arial, sans-serif; */
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    margin: 0;
    background: #fff;
}

#pop-stock {    
    display: flex;
    align-items: center;
    gap: 2px;
}
#pop-stock-info {
    overflow: hidden;
    font-size: 12px;
    
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hot-title {
    padding-left: 10px;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 500;
}

.nav-box {
    display: flex;
    background: #fff;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}
.operation-item {
    flex: 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header {
    background: #fff;
    padding: 10px;
    text-align: center;
    font-size: 20px;
    border-bottom: 1px solid #ddd;
}

.container {
    padding: 10px;
}

#search-box {
    display: flex;
    position: relative;
    align-items: center;
    margin-bottom: 10px;
}
#search-box svg {
    position: absolute;
    left: 7px;
}
#searchInput {
    width: 100%;
    padding: 8px 8px 8px 12px;
    padding-left: 25px;
    /* 左侧增加 12px 缩进 */
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    /* 保证 padding 不影响总宽度 */
}

.sort-buttons {
    margin-bottom: 15px;
    text-align: center;
}

.sort-buttons button {
    margin-right: 5px;
    padding: 5px 10px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    background: #eee;
}

.stock-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stock-list li {
    background: #fff;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.stock-left {
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 120px;
}

.stock-name {
    font-weight: bold;
    min-width: 50%;
    max-width: 50%;
}

.stock-price {
    font-size: 16px;
    width: 80px;
}

button.add-fav,
button.remove-fav {
    padding: 4px 6px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    background-color: transparent;
}

button.remove-fav {
    /* padding:4px 6px;border-radius:3px;border:none;cursor:pointer;background:#ff4444;color:#fff; */
}

canvas {
    width: 150px;
    height: 40px;
    flex-shrink: 0;
}

.stock-up {
    color: green;
}

.stock-down {
    color: red;
}

.nav {
    display: flex;
    justify-content: space-around;
    background: #fff;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #ddd;
}

.nav button {
    background: none;
    border: none;
    font-size: 16px;
}

@media (max-width:480px) {
    .hot {
        display: flex;
        overflow: scroll;
        margin-bottom: 10px;
        /* padding: 10px 0; */
        padding-bottom: 5px;
        gap: 10px;
    }

    .hot-item {
        display: flex;
        background: #fff;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        margin-left: auto;
        margin-right: auto;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .hot-item .stock-name {
        text-wrap: nowrap;
        width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hot-item .stock-name .stock-code {
        font-weight: lighter;
        font-size: 12px;
        color: #888;
    }

    .stock-left {
        flex: 1 1 100%;
        margin-bottom: 5px;
    }

    canvas {
        width: 100%;
        max-width: 120px;
        height: 30px;
    }

    .stock-name {
        font-size: 14px;
    }

    .stock-price {
        font-size: 14px;
        width: 60px;
    }

    button.add-fav,
    button.remove-fav {
        padding: 3px 5px;
        font-size: 12px;
    }
}

.banner img {
    height: 100%;
    width: 100%;
    /* 宽度自适应屏幕 */
    /* height: auto; */
    /* 高度按比例缩放 */
    display: block;
    /* 去掉下方空隙 */
    border-radius: 8px;
    /* 可选，圆角 */
    /* banner 和搜索框间距 */
    object-fit: cover;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .85);
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
    color: white;
}

.operation-box {
    height: 100%;
    display: flex;
}

.banner {
    height: 200px;
    margin-bottom: 20px;
}

.no-data-tip {
    display: none;
}