﻿

:root {
    /*--my-font-family: "Open Sans", sans-serif, Jost, 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;*/

    --my-font-family: "Open Sans", sans-serif;
    --zindex-dropdown: 1000;
    --zindex-sticky: 1020;
    --zindex-fixed: 1030;
    --zindex-offcanvas-backdrop: 1040;
    --zindex-offcanvas: 1045;
    --zindex-modal-backdrop: 1050;
    --zindex-modal: 1055;
    --zindex-popover: 1070;
    --zindex-tooltip: 1080;

    --border-color-light: #dee2e6;
    --soft-primary: rgba(230, 46, 4, 0.15);
    --solft-color: rgb(242, 243, 248);
}
* {font-family: var(--my-font-family);}
a {text-decoration: none;cursor: pointer;}
a:hover{  opacity: .65;}
a:focus,a:active,a:visited {
    box-shadow: none !important;
    outline: none !important;
}

a{
    color: #1c5c93;
}

.cursor_pointer{
    cursor: pointer !important;
}

.bg_soft_primary {background-color: var(--soft-primary) !important;}
.color_soft_primary {color:var(--soft-primary) !important;}

.fs-10 {font-size:0.625rem !important;}
.fs-11 {font-size:0.6875rem !important;}
.fs-12 {font-size:0.75rem !important;}
.fs-13 {font-size:0.8125rem !important;}
.fs-14 {font-size:0.875rem !important;}
.fs-15 {font-size:0.9375rem !important;}
.fs-16 {font-size:1rem !important;}
.fs-17 {font-size:1.0625rem !important;}
.fs-18 {font-size:1.125rem !important;}
.fs-19 {font-size:1.1875rem !important;}
.fs-20 {font-size:1.25rem !important;}
.fs-21 {font-size:1.3125rem !important;}
.fs-22 {font-size:1.375rem !important;}
.fs-23 {font-size:1.4375rem !important;}
.fs-24 {font-size:1.5rem !important;}
.fs-25 {font-size:1.5625rem !important;}
.fs-26 {font-size:1.625rem !important;}
.fs-27 {font-size:1.6875rem !important;}
.fs-28 {font-size:1.75rem !important;}
.fs-29 {font-size:1.8125rem !important;}
.fs-30 {font-size:1.875rem !important;}
.fs-31 {font-size:1.9375rem !important;}
.fs-32 {font-size:2rem !important;}

.me-45{margin-right: 1.875rem !important;}
.border-e2e5ec{border-color:#e2e5ec !important;}
.text-truncate-2 {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.text-truncate-1 {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}


.lh-11 {line-height: 1.1 !important;}
.lh-12 {line-height: 1.2 !important;}
.lh-13 {line-height: 1.3 !important;}
.lh-14 {line-height: 1.4 !important;}
.lh-15 {line-height: 1.5 !important;}
.lh-16 {line-height: 1.6 !important;}
.lh-17 {line-height: 1.7 !important;}
.lh-18 {line-height: 1.8 !important;}
.lh-19 {line-height: 1.9 !important;}
.lh-20 {line-height: 2 !important;}

.fw-bold-700 {font-weight: 700 !important;}
.fw-bold-600 {font-weight: 600 !important;}
.fw-bold-400 {font-weight: 400 !important;}
.fw-bold-500 {font-weight: 500 !important;}
.color_1b1b28{color:#1b1b28 !important;}
.border_color_light {border-color:var(--border-color-light);}
.object_fit_cover{object-fit: cover !important;}
.min_height_40{min-height: 40px !important;}
.margin_bottom_col_padding{
    margin-bottom:0.3125rem !important;
}

.bg_color_light {background-color:var(--border-color-light);}

.w_50 {
    width:50px !important;
}
.w_60 {
    width:60px !important;
}
.w_70 {
    width:70px !important;
}
.w_80 {
    width:80px !important;
}
.w_90 {
    width:90px !important;
}
.w_100 {
    width:100px !important;
}
.w_150 {
    width:150px !important;
}
.w_200 {
    width:200px !important;
}

.w-80 {
    width: 80% !important;
}
.w-85 {
    width: 85% !important;
}



.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1270px;
    min-width: 320px !important;
}
.badge {display: inline-block;padding: .3125em .625em;}
.breadcrumb-item + .breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, "›");
}
dl,dt,dd, ol{font-weight: 500;padding:0;margin:0;}
.breadcrumb {
    margin-bottom: 0rem;
}

.main_wrapper{
    background-color: #fff;
    min-width: 320px !important;
}
/*head*/
.logo_image_div_box {
    padding:1rem 0;
}
.logo_img {height:40px;}
.dropdown-menu-top-1 {z-index:2000;}
.dropdown-menu-top-1 .dropdown-item:focus,
.dropdown-menu-top-1 .dropdown-item:hover
{color: var(--bs-white);background-color: var(--bs-danger);}
.head_1_nav ul li a.now,
.head_1_nav ul li a:hover
{color:var(--bs-danger) !important;}


/* dropdown_category_box */
.a_dropdown_category {
    padding: 1rem 0rem;
}

.a_dropdown_category .a_dropdown_category_item{
    padding: .125rem .5rem;
    background-color: var(--solft-color);
}
.box_dropdown_category {
    position: absolute;
    background-color: transparent;
    left:0;
    width: 100%;
    height: 100%;
    top:100%;
    right:0;
    z-index:var(--zindex-offcanvas-backdrop);

}
.box_dropdown_category .container .arrow_box {
    margin-left:0px;
    padding:13px 1rem;
    background-color: var(--soft-primary);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.box_dropdown_category .container .arrow_box:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    border-top: 0;
    border-right: 12px solid transparent;
    border-bottom: 12px solid var(--soft-primary);
    border-left: 12px solid transparent;
    top: -12px;
    right: 20px;
}

.box_dropdown_category .ul_dropdown_category_menu {
    background-color: #fff;
    list-style: none;
    padding:0 0 5px 0;
    margin:0;
    border-radius: 4px;
}
.box_dropdown_category .ul_dropdown_category_menu li a.a_li_root{
    display: inline-block;
    width: 100%;
    padding:15px 1rem;
    color:#333;
}
.box_dropdown_category .ul_dropdown_category_menu li a.a_li_root:hover{
    opacity:1;
}

.box_dropdown_category .ul_dropdown_category_menu li:hover a.a_li_root{
    -moz-box-shadow:2px 2px 2px #C9C9C9; -webkit-box-shadow:2px 2px 2px #C9C9C9; box-shadow:2px 2px 2px #C9C9C9;
}

.dp_menu_child_box {
    padding:1rem;
    position: absolute;
    background-color: #fff;
    -moz-box-shadow:0px 0px 5px #C9C9C9; -webkit-box-shadow:0px 0px 5px #C9C9C9; box-shadow:0px 0px 5px #C9C9C9;
    left: calc(25%);
    right:0px;
    top:0;
    width: calc(100% - 25%);
    z-index: var(--zindex-offcanvas-backdrop);
    min-height: 200px;
}
.category_sidebar_box {
    -moz-box-shadow:2px 2px 2px #E3E3E3; -webkit-box-shadow:2px 2px 2px #E3E3E3; box-shadow:2px 2px 2px #E3E3E3;
}

.dp_menu_child_box .dt_child{
    margin-bottom:1px;
    padding-bottom:8px;
    border-bottom: 1px solid #f2f2f2;
}

.li_dropdown_item_box:hover .dp_menu_child_box {
    display: block !important;
}











/*foot*/
.blk_foot_2 dl,
.blk_foot_2 dt,
.blk_foot_2 dd
{
    padding:0;
    margin:0;
}
.mobile_foot_box {
    height: 50px;
    box-shadow: 0px -1px 10px rgb(0 0 0 / 15%) !important;
}
.mobile_foot_box .col {
    width:20%;
    padding:0;
    margin:0;
}
.mobile_foot_box .col a{
    padding:8px 0;
    display: block;
    text-align: center;
    color:rgba(0,0,0,.5) !important;
    line-height:1.3 !important;
    width: 100%;
}

.mobile_foot_box .col a:hover{
    opacity: 1 !important;
}

.mobile_foot_box .cartbag {
    z-index:1050;
    height: 50px;
    width: 50px;
    border-radius: 100%;
    background-color: var(--bs-danger);
    border:4px solid #fff;
    color:#fff;
    box-shadow: 0px -5px 10px rgb(0 0 0 / 15%);
}



/*index*/
.swiper_slide_index{
    height: 50vh;
}
.swiper_slide_index .slide_image {
    object-fit: cover;
}

.swiper_goods {
    transform: translate3d(0px, 0px, 0px);
}
.swiper_goods .slide_image {
    object-fit: cover;
    height: 210px;
    max-height: 210px;
}
.swiper_goods .content_text .name{
    min-height: 32px;
}
.swiper_goods .content_text .name a {
    transition: all 0.3s ease;
    min-height: 32px;
}
.swiper_goods .content_box{
    border:1px solid #f2f2f2;
    box-sizing:border-box;
}
.swiper_goods .content_box:hover{
    box-shadow: 1px 2px 8px rgb(0 0 0 / 10%) !important;
    transition: all 0.3s ease;
}

.swiper-button-1 {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50em;
    border: 0;
    box-shadow: 0 0 1px 1px rgba(20, 23, 28, 0.1),
    0 3px 1px 0 rgba(20, 23, 28, 0.1);
    font-size: 15px;
    line-height: 40px;
    padding: 0;
    text-align: center;
}
.swiper-button-next-1::after, .swiper-button-prev-1::after {
    font-family: swiper-icons;
    font-size: var(--swiper-navigation-size);
    text-transform: none !important;
    letter-spacing: 0;
    text-transform: none;
    font-variant: initial;
    line-height: 1;
    font-size:12px !important;
}
.swiper-button-next-1,
.swiper-button-prev-1 {
    cursor: pointer;
    color: #333;
}

.swiper-button-next-1 {
    right: 5px;
    left: auto;
}
.swiper-button-prev-1 {
    left: 5px;
    right: auto;
}

/* all */
.currency_code {
    padding:0;margin:0;
}


/*goods*/
.content_box {
    cursor: pointer !important;
}
.img_height_210{
    height: 210px;
}
.goods_box:hover{
    box-shadow: 1px 2px 8px rgb(0 0 0 / 10%) !important;
    transition: all 0.3s ease;
}
.col_goods_box {
    padding:0 0.3125rem 0.3125rem 0.3125rem;
}



/* page */
.page_box .pagination{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.page_box .pagination li{
    margin:0 2px;
}
.page_box .pagination span,
.page_box .pagination a
{
    min-width: 36px;
    min-height: 36px;
    line-height: 36px;
    text-align: center;
    padding: 0;
    border: 0;
    font-size: 0.875rem;
    border-radius: 50% !important;
    color: var(--bs-dark);
    background-color: #fff;
    display: block;
}

.page_box .pagination .active span,
.page_box .pagination a:hover
{
    background-color: var(--bs-danger);
    color:#fff;
}


/** goods detail */
#vue_goods_detail #goods_details_tab a {

}
#vue_goods_detail #goods_details_tab .active {
    border-bottom:2px solid var(--bs-danger) !important;
}

#vue_goods_detail #description img {
    max-width: 100% !important;
}

#vue_goods_detail .input-group-text {
    padding: .275rem .45rem;
}

#vue_goods_detail #goods_details_content table {
    width: 100% !important;
}


/** swiper **/
.swiper_goods_image .img_box{
    background-color: #fff;
    border-radius: 5px;
    min-height: 300px !important;
    overflow: hidden;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper_goods_image .img_box img{
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}


.swiper_goods_thumb .img_box{
    border:1px solid #eee;
    background-color: #fff;
    border-radius: 5px;
    padding:2px;
    height: 4.2rem;
    overflow: hidden;
}
.swiper_goods_thumb .img_box img{
    width: 100%;
    object-fit: cover;
    height: 4.2rem;
}
.swiper-slide-thumb-active .img_box{
    border:2px solid var(--bs-danger);
    padding:1px;
}


.swiper-button-goods-detail {
    position: absolute;
    z-index: 2;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 100%;
    border: 0;
    box-shadow: 0 0 1px 1px rgba(20, 23, 28, 0.1), 0 3px 1px 0 rgba(20, 23, 28, 0.1);
    font-size: 13px;
    line-height: 30px;
    padding: 0;
    text-align: center;
    margin-top: -15px;
}
.swiper-button-goods-detail:hover{
    box-shadow: 0 2px 8px 2px rgba(20, 23, 28, 0.15) !important;
}
.swiper-button-goods-prev::after, .swiper-button-goods-next::after {
    font-family: swiper-icons;
    font-size: var(--swiper-navigation-size);
    text-transform: none !important;
    letter-spacing: 0;
    text-transform: none;
    font-variant: initial;
    line-height: 1;
    font-size:12px !important;
    color:#aaa;
}

.swiper-button-goods-prev {
    left: 0px;
    right: auto;
}

.swiper-button-goods-next {
    right: 0px;
    left: auto;
}


/* cart */

.blk_cart .row_steps .col {
    background: url('https://www.chahaxi.com/assets/img/arrow_right.png') no-repeat right center;
    background-size: auto 40%;
}
.blk_cart .row_steps .col:last-child {
    background: none;
}

.cart_list_goods_image {
    width: 100%;
    height: 100%;
}

#edit_address_dlg .form-select{
    font-size:0.8125rem;
}

.blk_cart_confirm .table tr:last-child td{
    border: none !important;
}
.blk_cart_confirm .address_box .address_item {
    display: none;

}
.blk_cart_confirm .address_box .address_item_now {
    display: block;
}
.blk_cart_confirm .address_box .address_item_now .address_tag {
    border-color:var(--bs-danger) !important;
    border-width: 2px !important;
}
.blk_cart_confirm .address_tag {
    cursor: pointer;
    white-space: normal;
    word-break: break-all;
}

#edit_address_dlg .form-control {
    font-size:12px !important;
}

#edit_address_dlg .help-block{
    margin-top:8px;
}

#edit_address_dlg .help-block a{
    border:1px solid #ccc;
    color:#333;
    font-size:12px;
}


/* layer */
.layui-layer-btn a {
    height: 28px;
    line-height: 28px;
    margin: 5px 5px 0;
    padding: 0 15px;
    border: 1px solid #dedede;
    background-color: #fff;
    color: #333;
    border-radius: 2px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
}

.layui-layer-btn .layui-layer-btn0 {
    border-color: var(--border-color-light) !important;
    background-color: #fff !important;
    color: #333 !important;
    border-radius: 5px;
    font-size:13px !important;
}


.layui-layer-btn .layui-layer-btn1 {
    border-color: var(--bs-danger);
    background-color: var(--bs-danger);
    color: #fff;
    border-radius: 5px;
    font-size:13px !important;
}









.mobile{
    display: none !important;
}
.mobile-flex{
    display: none !important;
}
.pc{
    display: block !important;
}
.pc-flex{
    display: flex !important;
}
/* <576(xs) 576(sm)  768(md)  992(lg) 1200(xl) 1400(xxl) */
@media (max-width: 992px) {
    .mobile{
        display: block !important;
    }
    .mobile-flex {
        display: flex !important;
    }
    .pc{
        display: none !important;
    }
    .pc-flex{
        display: none !important;
    }

    .swiper_slide_index{
        height: 40vh;
    }
    .swiper_goods .slide_image {
        height: 280px;
        max-height: 280px;
    }
    .blk_foot_1 .border-end{
        border:none !important;
        border-bottom:1px solid #f2f2f2 !important;
    }

    .img_height_210{
        height: 180px;
    }

    .page_box .pagination span,
    .page_box .pagination a{
        margin-bottom:0.25rem;
    }

}



@media (min-width: 992px) {
    .swiper_slide_index .slide_image {
        object-fit: cover;
        min-height: 50vh;
    }

}

@media (max-width: 576px) {
    .swiper_slide_index{
        height: 20vh;
    }
    .swiper_goods .slide_image {
        height: 188px;
        max-height: 188px;
    }

    .img_height_210{
        height: 180px;
    }
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 600px;
        margin: 1.75rem auto;
    }
}


@media (min-width: 768px) {
    .dywm {
        width: 50% !important;
    }
    .row_footer .md3 {
        width:52%;
    }
    .row_footer .md2 {
        width:16%;
    }
}

/* ===== UI修复版：保持原页面风格，修正首页错位 ===== */
body{
    background:#fff;
    overflow-x:hidden;
}
.main_wrapper{
    min-height:100vh;
}
.main_wrapper > .container:first-child{
    max-width:1248px;
}
.main_wrapper > .container:first-child .py-3{
    padding-top:8px!important;
    padding-bottom:8px!important;
}
.main_wrapper > .container:first-child img.rounded{
    width:30px!important;
    height:30px!important;
    object-fit:cover;
}
.main_wrapper > .container:first-child .fs-22{
    color:#1c5c93;
    line-height:30px;
}
#tronSearchForm .input-group{
    height:45px;
}
#tronSearchForm .form-control{
    height:45px;
    border-color:#cfd8e3;
    box-shadow:none!important;
    border-radius:4px 0 0 4px!important;
}
#tronSearchForm .input-group-text{
    min-width:86px;
    height:45px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:0 4px 4px 0!important;
    font-weight:600;
}
.container.mt-3 > .py-3.px-4{
    max-width:1248px;
    margin:0 auto;
    padding-top:16px!important;
    padding-bottom:34px!important;
    background:#f5f9fc!important;
}
.container.mt-3 .row.py-3{
    justify-content:center;
    margin-left:0;
    margin-right:0;
}
.md5f{
    flex:0 0 20%;
    max-width:20%;
    padding-left:12px!important;
    padding-right:12px!important;
}
.bgbox{
    border:1px solid #f2f5f8;
    box-shadow:none;
    transition:.18s ease;
}
.bgbox:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(28,92,147,.08);
}
a.con_btnss{
    position:static;
    z-index:auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:178px;
    height:40px;
    padding:0 18px;
    margin:20px 0 26px max(8px, calc((100% - 1248px)/2));
    border-radius:5px;
    background:#4f6df5;
    color:#fff!important;
    font-size:14px;
    font-weight:600;
    line-height:40px;
    text-decoration:none!important;
    box-shadow:none;
    border:0;
}
a.con_btnss:hover{
    color:#fff!important;
    background:#3158ef;
}
.site-footer-service{
    width:100%;
    background:#587187;
    color:#fff;
    margin-top:22px;
}
.site-footer-inner{
    max-width:1248px;
    min-height:72px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:flex-start;
}
.footer-service-link{
    display:inline-flex;
    align-items:center;
    color:#fff!important;
    text-decoration:none!important;
    font-size:16px;
}
.footer-service-link img{
    width:30px;
    height:30px;
    margin-right:8px;
}
.query-panel{
    background:#fff;
    border:1px solid #e7eef6;
    border-radius:8px;
    padding:18px;
    box-shadow:0 10px 30px rgba(28,92,147,.06);
}
.stat-card{
    background:#f8fbff;
    border:1px solid #e7eef6;
    border-radius:8px;
    padding:14px 12px;
    min-height:78px;
}
.stat-label{
    font-size:13px;
    color:#6b7f95;
    margin-bottom:6px;
}
.stat-value{
    font-size:20px;
    font-weight:700;
    color:#1c5c93;
    word-break:break-all;
}
.stat-value.small{
    font-size:14px;
}
.address-line{
    color:#5d7188;
    word-break:break-all;
}
.tron-table th{
    white-space:nowrap;
    color:#1c5c93;
    font-size:13px;
}
.tron-table td{
    font-size:13px;
    vertical-align:middle;
}
.query-status{
    font-size:14px;
    color:#5d7188;
}
@media (max-width: 768px){
    .main_wrapper > .container:first-child .py-3{
        padding-left:10px;
        padding-right:10px;
    }
    .pt-5{
        padding-top:2.2rem!important;
    }
    h1.fs-21{
        font-size:18px!important;
        line-height:1.45;
        padding:0 12px;
    }
    #tronSearchForm .input-group{
        height:auto;
    }
    #tronSearchForm .form-control{
        height:44px;
        font-size:13px!important;
    }
    #tronSearchForm .input-group-text{
        height:44px;
        min-width:74px;
        font-size:15px!important;
        padding-left:16px!important;
        padding-right:16px!important;
    }
    .container.mt-3 > .py-3.px-4{
        max-width:calc(100% - 20px);
        padding:14px 10px 22px!important;
    }
    .md5f{
        flex:0 0 50%;
        max-width:50%;
        padding-left:8px!important;
        padding-right:8px!important;
    }
    .bgbox{
        height:160px!important;
    }
    a.con_btnss{
        min-width:150px;
        height:38px;
        padding:0 12px;
        font-size:13px;
        line-height:38px;
        margin:16px 0 22px 10px;
    }
    .site-footer-inner{
        min-height:68px;
        padding:0 12px;
    }
}
@media (max-width: 420px){
    .md5f{
        flex:0 0 100%;
        max-width:100%;
    }
    .bgbox{
        height:auto!important;
        min-height:142px;
        padding-bottom:18px!important;
    }
}

/* v5 查询结果页：接近参考站的明细表格样式 */
.query-detail-panel{
    background:#f5f9fc;
    border:1px solid #dce6ef;
    color:#001a33;
}
.wallet-summary{
    padding:8px 12px 10px 12px;
    border-bottom:1px solid #d4dee8;
    background:#f5f9fc;
}
.wallet-line{
    font-size:14px;
    line-height:26px;
    word-break:break-all;
}
.wallet-info-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap:4px 30px;
    max-width:760px;
    font-size:14px;
    line-height:22px;
}
.info-label{ color:#001a33; }
.filter-bar{
    padding:10px 12px;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px 16px;
    border-bottom:1px solid #d4dee8;
    background:#f5f9fc;
}
.coin-tabs{
    display:inline-flex;
    border:1px solid #cfd9e6;
    border-radius:6px;
    overflow:hidden;
    background:#fff;
}
.coin-tabs button{
    border:0;
    background:#fff;
    color:#1c5c93;
    padding:6px 26px;
    font-size:14px;
    line-height:18px;
}
.coin-tabs button.active{
    background:#0d6efd;
    color:#fff;
    font-weight:600;
}
.filter-select{ width:165px; }
.filter-input{ width:105px; }
.query-status{ padding:0 12px; font-size:13px; color:#5c768d; }
.query-status.success{ color:#5c768d; }
.query-status.error{ color:#dc3545; }
.summary-line{ padding:0 12px 8px; font-size:14px; }
.income-text{ color:#10a84a; margin:0 2px; }
.expense-text{ color:#dc3545; margin:0 2px; }
.detail-table{ margin:0; background:#f5f9fc; font-size:14px; }
.detail-table thead th{
    color:#001a33;
    font-weight:700;
    border-top:0;
    border-bottom:1px solid #d4dee8;
    white-space:nowrap;
    padding:9px 8px;
}
.detail-table tbody td{
    border-top:0;
    border-bottom:1px solid #d4dee8;
    padding:8px 8px;
    white-space:nowrap;
    vertical-align:middle;
}
.detail-table a{ color:#005fd1; text-decoration:none; }
.amount-pill{
    display:inline-block;
    color:#fff;
    padding:2px 8px;
    border-radius:4px;
    font-weight:700;
    line-height:18px;
    font-size:13px;
}
.amount-in{ background:#18a957; }
.amount-out{ background:#e53850; }

@media (max-width: 768px){
    .wallet-info-grid{ grid-template-columns:1fr; gap:2px; }
    .filter-bar{ gap:8px; }
    .coin-tabs button{ padding:6px 18px; }
    .filter-select,.filter-input{ width:140px; }
    .query-detail-panel{ margin-left:-6px; margin-right:-6px; }
    .detail-table{ font-size:12px; }
}

/* v9 查询筛选栏修复：按参考站布局，非悬浮 */
.chazhi-filter-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#f2f8fd;border-top:1px solid #d6e1ec;border-bottom:1px solid #d6e1ec;padding:10px 12px;margin:10px -12px 8px;}
.chazhi-filter-bar .coin-tabs{display:flex;border:1px solid #cbd8e4;border-radius:6px;overflow:hidden;background:#fff;}
.chazhi-filter-bar .coin-tabs button{min-width:88px;border:0;background:#fff;color:#07599f;padding:8px 18px;font-weight:500;line-height:1;}
.chazhi-filter-bar .coin-tabs button.active{background:#126df3;color:#fff;font-weight:700;}
.chazhi-filter-bar .filter-select{width:165px;height:32px;}
.chazhi-filter-bar .filter-input{width:105px;height:32px;}
.date-range-box{height:32px;display:flex;align-items:center;gap:8px;border:1px solid #cbd8e4;border-radius:6px;background:#fff;padding:0 10px;}
.date-range-box .date-icon{color:#13334d;font-size:15px;}
.date-range-box .date-input{border:0;outline:0;height:28px;width:130px;background:transparent;font-size:14px;color:#333;}
.date-range-box .date-sep{color:#999;}
.filter-btn{height:32px;padding:0 18px;border:1px solid #d8e0e8;border-radius:4px;background:#fff;color:#333;}
.filter-btn:hover{background:#f7fbff;color:#126df3;border-color:#126df3;}
@media (max-width:768px){.chazhi-filter-bar{gap:8px}.chazhi-filter-bar .coin-tabs button{min-width:70px}.chazhi-filter-bar .filter-select{width:145px}.date-range-box{width:100%;justify-content:center}.date-range-box .date-input{width:120px}}
/* v11 查询页筛选布局修复 */
.chazhi-filter-bar .filter-dash{color:#9aa8b5;margin-left:-8px;margin-right:-8px;}
.wallet-info-grid{grid-template-columns: repeat(2, minmax(160px,1fr));}
@media (min-width: 768px){.wallet-info-grid{grid-template-columns: repeat(2, minmax(240px,1fr));}}
@media (max-width:768px){.chazhi-filter-bar .filter-input{width:112px}.chazhi-filter-bar .filter-dash{margin-left:0;margin-right:0}.wallet-info-grid{grid-template-columns:1fr}}

/* v13 date range picker: single button + dropdown calendar */
.date-range-wrap{position:relative;display:inline-flex;align-items:center;height:32px;z-index:20;}
.date-range-trigger{height:32px;min-width:240px;border:1px solid #cbd8e4;border-radius:6px;background:#fff;color:#5c768d;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 14px;font-size:14px;line-height:1;cursor:pointer;}
.date-range-trigger .date-icon{color:#12334d;font-size:15px;}
.date-range-pop{position:absolute;top:40px;right:0;width:636px;background:#fff;border:1px solid #d8e0e8;box-shadow:0 2px 8px rgba(0,0,0,.12);z-index:9999;display:flex!important;}
.date-range-pop[style*="display: none"]{display:none!important;}
.date-quick-list{width:102px;border-right:1px solid #e4eaf0;padding:10px 0;background:#fff;}
.date-quick-list button{display:block;width:100%;border:0;background:#fff;color:#334;padding:7px 10px;text-align:left;font-size:14px;cursor:pointer;}
.date-quick-list button:hover{color:#126df3;background:#f3f8ff;}
.date-calendars{display:flex;width:532px;}
.date-calendar{width:266px;padding:12px 10px 10px;border-right:1px solid #e4eaf0;}
.date-calendar:last-child{border-right:0;}
.date-cal-head{height:28px;display:grid;grid-template-columns:32px 32px 1fr 32px;align-items:center;text-align:center;column-gap:6px;font-size:16px;color:#222;}
.date-calendar:nth-child(2) .date-cal-head{grid-template-columns:32px 1fr 32px 32px;}
.cal-nav{border:0;background:#fff;color:#1f3a56;font-size:24px;line-height:1;cursor:pointer;padding:0;height:28px;}
.cal-nav:hover{color:#126df3;}
.date-week,.date-days{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;}
.date-week{border-bottom:1px solid #e4eaf0;margin-top:4px;padding-bottom:8px;color:#111;font-weight:600;}
.date-days{padding-top:8px;row-gap:8px;}
.date-days button{height:28px;border:0;background:#fff;color:#111;border-radius:0;font-size:13px;cursor:pointer;}
.date-days button.muted{color:#b8c2cc;}
.date-days button:hover{background:#eaf2ff;color:#126df3;}
.date-days button.in-range{background:#eef5ff;color:#126df3;}
.date-days button.start,.date-days button.end{background:#126df3;color:#fff;border-radius:4px;}
.date-pop-actions{position:absolute;left:0;right:0;bottom:0;transform:translateY(100%);background:#fff;border:1px solid #d8e0e8;border-top:0;height:44px;display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:0 10px;box-shadow:0 2px 8px rgba(0,0,0,.08);}
.date-pop-actions button{height:30px;border-radius:4px;padding:0 16px;font-size:14px;cursor:pointer;}
.date-clear{border:0;background:#fff;color:#126df3;}
.date-confirm{border:1px solid #cbd8e4;background:#fff;color:#111;}
.date-confirm:hover{border-color:#126df3;color:#126df3;}
@media (max-width:768px){
  .date-range-wrap{width:100%;}
  .date-range-trigger{width:100%;min-width:0;}
  .date-range-pop{left:0;right:auto;width:calc(100vw - 24px);max-width:636px;overflow-x:auto;}
  .date-quick-list{width:92px;min-width:92px;}
  .date-calendars{width:532px;min-width:532px;}
}


/* v14 mobile/date filter fixes */
@media (max-width: 768px){
  .chazhi-filter-bar{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:8px !important;
    align-items:center;
    padding:10px 8px !important;
    margin-left:-8px !important;
    margin-right:-8px !important;
  }
  .chazhi-filter-bar .coin-tabs{grid-column:1 / 3;width:100%;}
  .chazhi-filter-bar .coin-tabs button{flex:1;min-width:0 !important;padding:8px 0 !important;}
  .chazhi-filter-bar .filter-select{width:100% !important;grid-column:1 / 2;}
  .chazhi-filter-bar .filter-input{width:100% !important;min-width:0;}
  .chazhi-filter-bar .filter-dash{display:none;}
  .date-range-wrap{grid-column:1 / 3;width:100% !important;position:static !important;height:auto !important;}
  .date-range-trigger{width:100% !important;min-width:0 !important;height:34px !important;}
  .chazhi-filter-bar .filter-btn{height:34px;min-width:0;width:100%;}
  .date-range-pop{
    position:fixed !important;
    left:10px !important;
    right:10px !important;
    top:74px !important;
    width:auto !important;
    max-width:none !important;
    max-height:78vh !important;
    overflow:auto !important;
    display:block !important;
    z-index:99999 !important;
  }
  .date-range-pop[style*="display: none"]{display:none !important;}
  .date-quick-list{width:100% !important;display:flex !important;border-right:0 !important;border-bottom:1px solid #e5edf5;}
  .date-quick-list button{flex:1;text-align:center !important;padding:10px 4px !important;white-space:nowrap;}
  .date-calendars{display:block !important;width:100% !important;}
  .date-calendar{width:100% !important;border-right:0 !important;padding:10px 12px !important;}
  .date-calendar + .date-calendar{border-top:1px solid #edf2f7;}
  .date-days,.date-week{grid-template-columns:repeat(7,1fr) !important;}
  .date-pop-actions{position:sticky;bottom:0;background:#fff;}
  .wallet-info-grid{grid-template-columns:1fr !important;}
  .summary-line{font-size:13px !important;line-height:1.6;}
  .detail-table{font-size:12px;}
  .detail-table th,.detail-table td{white-space:nowrap;}
}

/* v15: 手机端时间筛选优化 */
.mobile-date-fields{display:none;}
.mobile-date-fields label{display:block;margin:8px 0;}
.mobile-date-fields span{display:block;font-size:13px;color:#536b8a;margin-bottom:5px;}
.mobile-date-fields input{width:100%;height:36px;border:1px solid #d9e2ee;border-radius:4px;padding:0 10px;background:#fff;font-size:14px;box-sizing:border-box;}
@media (max-width: 600px){
  .date-range-wrap{position:static !important;width:100%;}
  .date-range-trigger{width:100%;justify-content:center;}
  .date-range-pop{position:fixed !important;left:12px !important;right:12px !important;top:18% !important;width:auto !important;max-width:none !important;z-index:99999;box-shadow:0 8px 30px rgba(0,0,0,.18);border-radius:8px;overflow:hidden;}
  .date-quick-list{display:grid !important;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px;border-bottom:1px solid #edf1f6;}
  .date-quick-list button{height:34px;border:1px solid #d9e2ee;border-radius:4px;background:#fff;font-size:13px;}
  .mobile-date-fields{display:block;padding:10px 14px;}
  .date-calendars{display:none !important;}
  .date-pop-actions{padding:10px 14px;border-top:1px solid #edf1f6;display:flex;justify-content:flex-end;gap:10px;}
  .date-pop-actions button{height:34px;min-width:64px;border-radius:4px;}
}


/* v16 final fixes: iPhone date sheet + no auto date apply + live price refresh */
@media (max-width: 600px){
  .date-range-pop{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    top:auto !important;
    width:100% !important;
    max-width:none !important;
    max-height:none !important;
    overflow:visible !important;
    border-radius:14px 14px 0 0 !important;
    box-shadow:0 -8px 28px rgba(0,0,0,.18) !important;
    z-index:999999 !important;
    background:#fff !important;
  }
  .date-range-pop[style*="display: none"]{display:none !important;}
  .date-quick-list{
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
    gap:8px !important;
    padding:12px 12px 8px !important;
    border-bottom:1px solid #edf1f6 !important;
    width:100% !important;
  }
  .date-quick-list button{
    height:36px !important;
    border:1px solid #d9e2ee !important;
    border-radius:6px !important;
    background:#fff !important;
    font-size:13px !important;
    padding:0 4px !important;
    text-align:center !important;
  }
  .mobile-date-fields{
    display:block !important;
    padding:8px 14px 4px !important;
  }
  .mobile-date-fields label{margin:6px 0 !important;}
  .mobile-date-fields input{height:38px !important;font-size:15px !important;}
  .date-calendars{display:none !important;}
  .date-pop-actions{
    position:relative !important;
    transform:none !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    height:auto !important;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom)) !important;
    border-top:1px solid #edf1f6 !important;
    border-left:0 !important;
    border-right:0 !important;
    border-bottom:0 !important;
    box-shadow:none !important;
    display:flex !important;
    justify-content:flex-end !important;
    gap:10px !important;
    background:#fff !important;
  }
  .date-pop-actions button{height:38px !important;min-width:72px !important;font-size:15px !important;}
}
.price-updated-at{font-size:12px;color:#a5aeb8;text-align:center;margin-top:4px;}


/* v17: 查询后不要自动弹出时间筛选；只有点击日期按钮才显示 */
.date-range-pop{display:none !important;}
.date-range-pop.is-open{display:flex !important;}
@media (max-width: 600px){
  .date-range-pop.is-open{display:block !important;}
}

/* v21: 修复详情页筛选栏凸出页面，只改排版不动接口 */
.query-detail-panel,
.query-detail-panel *{
  box-sizing:border-box;
}
.chazhi-filter-bar{
  margin:10px 0 8px !important;
  width:100% !important;
  max-width:100% !important;
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px 12px !important;
  align-items:center !important;
  overflow:visible !important;
}
.chazhi-filter-bar .coin-tabs{
  flex:0 0 auto;
}
.chazhi-filter-bar .filter-select{
  flex:0 1 165px;
  max-width:165px;
}
.chazhi-filter-bar .filter-input{
  flex:0 1 105px;
  max-width:105px;
}
.chazhi-filter-bar .date-range-wrap{
  flex:0 1 240px;
  max-width:100%;
}
.chazhi-filter-bar .date-range-trigger{
  max-width:100%;
}
.chazhi-filter-bar .filter-btn{
  flex:0 0 auto;
}
@media (max-width: 992px){
  .chazhi-filter-bar .date-range-wrap{flex:1 1 100%;}
  .chazhi-filter-bar .date-range-trigger{width:100%;}
}
@media (max-width: 768px){
  .chazhi-filter-bar{
    margin:10px 0 8px !important;
    padding:10px 8px !important;
    width:100% !important;
    max-width:100% !important;
  }
  .chazhi-filter-bar .filter-select,
  .chazhi-filter-bar .filter-input{
    max-width:none !important;
  }
}

/* v22: fix wallet summary empty middle/right area */
.wallet-summary{
    padding:8px 12px 10px 12px !important;
}
.wallet-info-grid{
    max-width:none !important;
    width:100% !important;
    display:grid !important;
    grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
    column-gap:28px !important;
    row-gap:4px !important;
}
@media (max-width: 992px){
    .wallet-info-grid{
        grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
    }
}
@media (max-width: 768px){
    .wallet-info-grid{
        grid-template-columns:1fr !important;
        column-gap:0 !important;
    }
}


/* v23: only layout/Unicode display fixes, APIs untouched */
.chazhi-filter-bar{
  margin:0 0 8px 0 !important;
  border-top:0 !important;
}
.wallet-summary{
  margin-bottom:0 !important;
}
.query-detail-panel .wallet-summary + .chazhi-filter-bar{
  margin-top:0 !important;
}

/* v24: logo旁边的网址 */
.brand-domain{
  display:inline-block;
  margin-left:20px;
  color:#c20909;
  font-size:18px;
  font-weight:700;
  letter-spacing:.2px;
  white-space:nowrap;
}
@media (max-width:576px){
  .brand-domain{font-size:18px;margin-left:8px;}
}
