list.css 2.6 KB
html{
    font-size: calc(100vw/7.5) ;
}
html,body{
    width: 100%;
    height: 100%;
}
*{
    margin: 0;
    padding: 0;
    font-family: 'Source Han Sans', sans-serif;
    box-sizing: border-box;
}
div{
    line-height: 1;
}
[v-cloak] {
    display: none !important;
}

.list-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F7F8FA;
}

.tabs {
    display: flex;
    background: #F3F6FF;
    padding: 0 .24rem;
    justify-content: space-between;
    align-items: center;
}

.tabs .left{
    display: flex;
}
.tabs .right{
    font-size: .28rem;
    color: #333;
    font-weight: 500;
    width: 1.56rem;
    height: .6rem;
    line-height: .6rem;
    border-radius: .48rem;
    background: #E1EBFE;
    text-align: center;
}

.tab-item {
    padding: .28rem .3rem;
    font-size: .36rem;
    color: #333;
    cursor: pointer;
    position: relative;
    margin-right: .4rem;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-item.active {
    color: #007bff;
    font-weight: 700;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: .08rem;
    background-color: #007bff;
}

.tab-item:hover {
    color: #007bff;
}

.search-section {
    padding: .2rem;
    background: #F3F6FF;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: .08rem;
    padding: .2rem .24rem;
    transition: border-color 0.3s;
    font-size: .28rem;
    color: #999;
}

.search-box:focus-within {
    border-color: #007bff;
}

.search-icon {
    width: .32rem;
    height: .32rem;
    margin-right: .16rem;
    opacity: 0.6;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: .28rem;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.list-section {
    flex: 1;
    overflow-y: auto;
    padding: .24rem;
}

.list-item {
    display: flex;
    align-items: flex-start;
    padding: .36rem .24rem;
    background: white;
    border-radius: .16rem;
    margin-bottom: .2rem;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-row {
    display: flex;
    align-items: center;
    margin-bottom: .26rem;
}

.item-row:last-child {
    margin-bottom: 0;
}

.item-icon-small {
    width: .32rem;
    height: .32rem;
    margin-right: .16rem;
    flex-shrink: 0;
}

.item-desc {
    font-size: .28rem;
    color: #333;
    line-height: .4rem;
}

.empty-state {
    text-align: center;
    padding: 1rem .4rem;
    color: #999;
    font-size: .32rem;
}