body {
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
    background:#f5f6fa;
    color:#333;
}

.app{
    padding:12px;
    padding-bottom:80px;
}

.page-title{
    font-size:22px;
    font-weight:bold;
    margin-bottom:12px;
}

.banner{
    width:100%;
    height:140px;
    margin-bottom:12px;
    border-radius:12px;
    overflow:hidden;
}

.banner img{
    width:100%;
    height:100%;
    object-fit:cover;
}

input{
    width:100%;
    padding:12px 0 12px 6px;
    border-radius:8px;
    border:1px solid #ccc;
    background:#fff;
    color:#333;
    margin-bottom:10px;
    outline:none;
    transition:all 0.3s;
}
input:focus{
    border:1px solid #ccc;
}

.stock-card{
    background:#fff;
    border-radius:12px;
    padding:12px;
    margin-bottom:10px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    transition:0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position:relative;
}

.stock-card:hover{
    box-shadow:0 4px 12px rgba(0,0,0,0.12);
}

.stock-left{
    flex:1;
}

.stock-name{
    font-size:16px;
    font-weight:bold;
}

.stock-code{
    font-size:12px;
    color:#888;
    margin-left:6px;
}

.stock-price{
    font-size:14px;
    margin-top:4px;
}

.up{color:#0ecb81;}
.down{color:#f6465d;}

.chart-container{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:12px;
}

.chart{
  width:100%;
  height:260px;  /* 高度必须有 */
  background:#fff;  /* 简洁大气背景 */
  border-radius:12px;
  padding:8px;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.miniChart{
    width:100px;
    height:50px;
}

.click-hint{
    position:absolute;
    bottom:8px;
    right:12px;
    font-size:12px;
    color:#888;
}

button{
    background:#1677ff;
    border:none;
    color:white;
    padding:8px 16px;
    border-radius:8px;
    font-size:14px;
    cursor:pointer;
    margin:6px 6px 0 0;
}

.trade{
    background:#fff;
    color:#333;
    padding:10px;
    margin:10px 0;
    border-radius:10px;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.trade-container{
    margin-top:12px;
}

.hot-list{
    display:flex;
    flex-wrap:wrap;
    margin-bottom:12px;
}

.hot-item{
    padding:6px 12px;
    background:#e1e4f0;
    border-radius:20px;
    margin:5px;
    font-size:13px;
    cursor:pointer;
    color:#333;
}

.tabbar{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    height:60px;
    background:#fff;
    border-top:1px solid #ccc;
    display:flex;
    align-items: center;
}

.tabbar a{
    flex:1;
    text-align:center;
    text-decoration:none;
    color:#888;
    font-size:15px;
    /* padding-top:8px; */
}

.tabbar a.active{
    color:#1677ff;
}

.custom-alert-mask{
    position:fixed;
    top:0; left:0; width:100%; height:100%;
    background:rgba(0,0,0,0.3);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
    opacity:0;
    pointer-events:none;
    transition:opacity 0.3s;
}

.custom-alert-mask.show{
    opacity:1;
    pointer-events:auto;
}

.custom-alert-box{
    background:#fff;
    border-radius:12px;
    padding:20px;
    max-width:80%;
    text-align:center;
    box-shadow:0 4px 20px rgba(0,0,0,0.2);
    color:#333;
}

.custom-alert-box button{
    margin-top:12px;
    padding:6px 14px;
    border:none;
    border-radius:6px;
    background:#1677ff;
    color:#fff;
    font-size:14px;
    cursor:pointer;
}