/* app-creative.min.css */
.modal-header {
    /*padding: 6px 12px !important;*/
    padding: 16px !important;
}
.btn-danger:focus,
.btn-danger:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:focus,
.btn-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
    box-shadow: none;
}
body, .wrapper, .content-page {
    overflow: visible;
}

/* header */
.header-navbar {
    height: 70px;
    background-color: #fff;
    box-shadow: 0 0 35px 0 rgb(154 161 171 / 15%);
}
.header-flex {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-title {
    font-size: 24px;
    font-weight: 700;
    display: inline-block;
    color: #000;
    margin-left: 10px;
    vertical-align: middle;
    font-family: "SimHei";
}

body {
    /*background-color: #fafafa;*/
    background-color: #f3f4f6;
    height: 100%;
}
body[data-leftbar-compact-mode=condensed] {
    min-height: 0;
}
body[data-layout=topnav] .content-page {
    padding: 0!important;
    min-height: 0;
}
.content {
    margin-bottom: 69px;
}
.page-title-right {
    display: block !important;
    float: right !important;
    margin-top: 17px !important;
}
@media screen and (max-width: 380px) {
    .app-search {
        width: 160px;
    }
}
.hyper-wrapper a {
    color: #000;
}
.hyper-footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 20px 0;
    line-height: 16px;
    border-top: 1px solid rgba(152,166,173,.2);
    color: #98a6ad;
}
@media screen and (max-width: 768px) {
    .hyper-footer {
        text-align: center;
    }
}
.hyper-footer a {
    color: #919ca7;
}
@media screen and (max-width: 576px) {
    .container {
       padding: 0 12px; 
    }
}
@media screen and (min-width: 576px) {
    .container {
       padding: 0; 
    }
}
@media screen and (min-width: 992px) {
    .hyper-sm-last {
        -webkit-box-ordinal-group: 14;
        -ms-flex-order: 13;
        order: 13;
    }
}

/* Home Page */

/* modal-dialog */
.modal-body img {
    max-width: 100%;
    height: auto;
}
@media screen and (min-width: 1367px) {
    .modal-dialog {
        max-width: 900px !important;
    }
}
@media screen and (max-width: 1367px) {
    .modal-dialog {
        max-width: 700px !important;
    }
}
@media screen and (max-width: 768px) {
    .modal-dialog {
        max-width: 500px !important;
    }
}

/* Select Button */

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.nav-list::-webkit-scrollbar {
    display: none; 
}
@media screen and (min-width: 767px) {
    .tab-link {
        min-width: 100px;
    }
}
@media screen and (max-width: 767px) {
    .tab-link {
        min-width: 60px;
    }
}
.tab-link {
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: .5rem;
    /*border: 1px solid #3688fc;*/
    border: 1px solid #183153;
    color: #183153;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tab-link.active {
    color: #fff;
    /*background: linear-gradient(-45deg, #3369ff, #3798f7);*/
    background: #183153;
}

.img-checkmark img {
    width: 36px;
}
.tab-link.active .img-checkmark {
    display: block;
}
.img-checkmark {
    position: absolute;
    opacity: 0.8;
    right: -6px;
    bottom: -12px;
    display: none;
}

/* Home Card */

.home-card {
    box-shadow: 0 0px 6px 0 rgb(0 0 0 / 6%);
    transition: all .5s;
}
.home-card:hover {
    box-shadow: 0px 4px 12px 0 rgb(0 0 0 / 12%);
}
@media screen and (max-width: 767px) {
    .hyper-wrapper {
        padding-left: 0;
        padding-right: 0;
        display: grid;
        grid-gap: 12px;
        gap: 12px;
    }
    .home-card {
        padding: 12px;
        margin-bottom: 0;
        font-size: 14px;
        display: flex;
        /*align-items: flex-start;*/
        align-items: center;
    	border-radius: .25rem;
    	cursor: pointer;
        background-color: #fff;
    	
    }
    .home-img {
        max-width: 80px;
        margin-right: 12px;
    }
    .flex {
        display: flex;
        flex-direction: column;
    }
    .name {
        font-size: 14px;
        min-height: 42px;
    	display: -webkit-box;
        -webkit-line-clamp: 2;
    	-webkit-box-orient: vertical;
    	overflow: hidden;
    	text-align: left;
    }
    .price {
        color: #d0021b;
    }
    .price b {
        font-size: 14px;
    }
}
@media screen and (min-width: 768px) {
    .hyper-wrapper {
        padding-left: 0;
        padding-right: 0;
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
        grid-gap: 12px;
    }
    .home-card {
        padding: 20px 20px 14px 20px;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    	/*border-radius: .25rem;*/
    	border-radius: 16px;
    	cursor: pointer;
        background-color: #fff;
    }
    .home-img {
        /*max-width: 88%;*/
        /*margin: 0 auto auto auto;*/
        /*margin: 6%;*/
    }
    .flex {
        display: flex;
        flex-direction: column;
        margin-top: 12px;
    }
    .name {
        font-size: 16px;
        min-height: 42px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .price {
        color: #d0021b;
        text-align: center;
    }
    .price b {
        font-size: 24px;
    }
}

@media screen and (min-width: 992px) {
    .hyper-wrapper {
        padding-left: 0;
        padding-right: 0;
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        grid-gap: 12px;
    }
    .home-card {
        padding: 20px 20px 14px 20px;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    	/*border-radius: .25rem;*/
    	border-radius: 16px;
    	cursor: pointer;
        background-color: #fff;
    }
    .home-img {
        /*max-width: 88%;*/
        /*margin: 0 auto auto auto;*/
        /*margin: 6%;*/
    }
    .flex {
        display: flex;
        flex-direction: column;
        margin-top: 12px;
    }
    .name {
        font-size: 16px;
        min-height: 42px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .price {
        color: #d0021b;
        text-align: center;
    }
    .price b {
        font-size: 24px;
    }
}
@media screen and (min-width: 1320px) {
    .hyper-wrapper {
        padding-left: 0;
        padding-right: 0;
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
        grid-gap: 12px;
    }
    .home-card {
        padding: 20px 20px 14px 20px;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    	/*border-radius: .25rem;*/
    	border-radius: 16px;
    	cursor: pointer;
        background-color: #fff;
    }
    .home-img {
        /*max-width: 88%;*/
        /*margin: 0 auto auto auto;*/
        /*margin: 6%;*/
    }
    .flex {
        display: flex;
        flex-direction: column;
        margin-top: 12px;
    }
    .name {
        font-size: 16px;
        min-height: 42px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .price {
        color: #d0021b;
        text-align: center;
    }
    .price b {
        font-size: 24px;
    }
}

/* Buy Page*/
.form-group h3 {
    font-weight: 400;
    color: #212529;
}
.geetest_holder.geetest_wind {
    width: 100% !important;
    min-width: 100% !important;
}
.buy-product img {
    max-width:100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
}
@media screen and (min-width: 992px) {
    .buy-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px;
    }
    .sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 6px;
    }
    .buy-shop {
        grid-column: span 2 / span 2;
    }
    .buy-product {
        grid-column: span 4 / span 4;
    }
}
/* pay-type */
@media screen and (min-width: 1367px) {
    .pay-grid {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,200px));
        grid-gap: 12px;
    }
}
@media screen and (min-width: 991px) and (max-width: 1367px) {
    .pay-grid {
        display: grid;
        grid-template-columns: repeat(1,minmax(0,300px));
        grid-gap: 6px;
    }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .pay-grid {
        display: grid;
        grid-template-columns: repeat(4,minmax(0,200px));
        grid-gap: 12px;
    }
}
@media screen and (min-width: 576px) and (max-width: 768px) {
    .pay-grid {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,200px));
        grid-gap: 12px;
    }
}
@media screen and (max-width: 576px) {
    .pay-grid {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,200px));
        grid-gap: 12px;
    }
}
@media screen and (max-width: 380px) {
    .pay-grid {
        display: grid;
        grid-template-columns: repeat(1,minmax(0,300px));
        grid-gap: 6px;
    }
}
.pay-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    min-height: 48px;
    min-width: 140px;
    background-color: #fff;
    color: #333333;
    /*border: 2px solid #bdcfe1;*/
    border: 1px solid #dbe6f1;
    border-radius: 6px;
}
.pay-type:hover {
    background-color: #fff;
    color: #000000;
}
.pay-type.active {
    /*background-color: #fff;*/
    /*color: #3688fc;*/
    /*border: 2px solid #3688fc;*/
    background-color: #f1f6ff;
    color: #071c3a;
    border: 1px solid #d0d0d0;
}
.qrpay-wrapper {
    position: relative;
    display: inline-block;
}
.qrpay-wrapper img {
    position: relative;
    z-index: 1;
}

/* 用户名在小屏仅显示头像图标 */
@media screen and (max-width: 576px) {
    .topbar-right-menu .user-dropdown .user-name-text {
        display: none;
    }
    .topbar-right-menu .user-dropdown .nav-link {
        padding-right: 0;
    }
}
.qrpay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 6px;
    z-index: 2;
}
.qrpay-icon svg {
    width: 32px;
    height: 32px;
}
.buy-price {
    color: #ea5455;
}

/* Orderinfo Page */

.orderinfo-grid {
    display: grid;
    grid-template-columns: auto;
}
@media screen and (min-width: 767px) {
    .orderinfo-card-grid {
        display: grid;
        grid-template-columns: repeat(6,minmax(0,1fr));
        grid-gap: 12px;
    }
    .orderinfo-info {
        grid-column: span 2 / span 2;
    }
    .orderinfo-kami {
        grid-column: span 4 / span 4;
    }
    .card{
        border-radius: 16px!important;
    }
    .modal-content{
	    border-radius:16px;
    }
}
@media screen and (max-width: 767px) {
    /*.orderinfo-info {*/
    /*    display: grid;*/
    /*    justify-content: center;*/
    /*}*/
    
    .card{
        border-radius: 8px!important;
    }
    .home-card{
        border-radius: 8px!important;
    }
    .modal-content{
	    border-radius:8px!important;
    }
}
.textarea-kami {
    min-height: calc(100% - 48px);
    /*min-height: calc(100% - 48px - 38px);*/
    background-color: #FFFFFF!important;
    color: #183153!important;
}
.kami-btn {
    margin-top: 6px;
    float: right;
}

/* 订单列表表格（个人中心 / 未登录查询通用） */
.order-table th,
.order-table td {
    vertical-align: middle;
    white-space: nowrap; /* 默认不换行，控制列单独放开 */
}
.order-table th.goods-col,
.order-table td.goods-col {
    white-space: normal; /* 商品名称允许换行，避免撑出滚动条 */
}
.order-table th.time-col,
.order-table td.time-col {
    white-space: normal; /* 时间列允许换行，减小宽度 */
}
.order-table th.order-sn-col,
.order-table td.order-sn-col {
    max-width: 220px;
}
.order-table td.status-cell {
    text-align: left; /* 状态文字左对齐 */
}

/* 订单列表按钮统一内边距 */
.order-table .btn {
    padding: 0.1rem 0.6rem;
    font-size: 0.8rem;
}

.order-table td.goods-col {
    min-width: 15rem;
}
.order-table td.time-col {
    min-width: 7.5rem;
}

/* 充值记录表格样式（与订单表格保持一致） */
.recharge-table th,
.recharge-table td {
    vertical-align: middle;
    white-space: nowrap; /* 所有列不换行 */
}
.recharge-table th.order-sn-col,
.recharge-table td.order-sn-col {
    max-width: 220px;
}
.recharge-table td.status-cell {
    text-align: left; /* 状态文字左对齐 */
}
.recharge-table td.time-col {
    min-width: 7.5rem;
    white-space: nowrap; /* 时间列也不换行 */
}
.user-center-recharges {
    margin-top: 1.5rem;
}

/* 自定义按钮样式 - 可在此处添加自定义样式 */
.btn-custom {
    /* 在此处添加您的自定义样式 */
}

.orderinfo-status {
    white-space: nowrap;
}
.orderinfo-status .btn {
    padding: 0.1rem 0.6rem;
    font-size: 0.8rem;
}

/* 个人中心顶部信息卡片统一下边距 */
.user-center-account {
    margin-bottom: 0.75rem;
}

/* 充值弹窗整体样式 */
.recharge-modal .modal-dialog {
    max-width: 450px !important;
    width: 450px !important;
}
@media (max-width: 480px) {
    .recharge-modal .modal-dialog {
        max-width: 100% !important;
        width: auto !important;
        margin: 0 12px;
    }
}
.recharge-modal .modal-content {
    border-radius: 12px;
}
.recharge-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0.4rem;
}
.recharge-modal .modal-footer {
    border-top: none;
}

/* 充值弹窗快速金额按钮布局：一行显示 3 个 */
.recharge-amount-list {
    display: flex;
    flex-wrap: wrap;  /* 允许换行，每行3个 */
    gap: 8px;
}
.recharge-amount-list .recharge-quick-amount {
    flex: 0 0 calc(33.333% - 12px);  /* 每行3个，预留间距 */
    text-align: center;
}

/* 充值弹窗快速金额按钮美化（样式与 .pay-type 一致，方形小圆角） */
.recharge-quick-amount {
    padding: 0.4rem 0.4rem;
    font-size: 0.9rem;
    border-radius: 6px;         /* 小圆角，方形风格 */
}
.recharge-quick-amount .font-weight-bold {
    font-size: 1rem;
}
/* 未选中与 hover：对齐 .pay-type / .pay-type:hover，并覆盖 bootstrap 的 .btn-outline-secondary */
.recharge-quick-amount {
    background-color: #ffffff !important; /* 与 .pay-type 一致 */
    color: #333333 !important;            /* 与 .pay-type 一致 */
    border: 1px solid #dbe6f1 !important; /* 与 .pay-type 一致 */
    box-shadow: none !important;
}
.recharge-quick-amount:hover,
.recharge-quick-amount:focus {
    color: #000000 !important;            /* 与 .pay-type 一致 */
}
/* 选中状态：对齐 .pay-type.active，并覆盖 bootstrap 的 active 状态 */
.recharge-quick-amount.active,
.recharge-quick-amount.active:hover,
.recharge-quick-amount.active:focus,
.recharge-quick-amount:active {
    background-color: #f1f6ff !important;
    color: #071c3a !important;
    border: 1px solid #d0d0d0 !important;
}
.recharge-quick-amount.active .recharge-bonus-text {
    opacity: 0.9;
}

/* 充值二维码区域：真实/占位统一边框 */
#recharge-pay-area .qrpay-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    background: #f5f5f8;
    overflow: hidden;
    box-shadow: 0px 0px 1px #666666;
}
#recharge-pay-area .qrpay-wrapper img,
#recharge-pay-area .recharge-qr-placeholder {
    width: 100%;
    height: 100%;
}
.recharge-qr-placeholder {
    background-image:
        linear-gradient(90deg, rgba(220,220,230,0.9) 1px, transparent 1px),
        linear-gradient(180deg, rgba(220,220,230,0.9) 1px, transparent 1px);
    background-size: 12px 12px;
}
#recharge-qr-wrapper .recharge-qr-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 8px;
    z-index: 10; /* 确保蒙版在二维码之上 */
}
#recharge-qr-wrapper .recharge-qr-mask #recharge-mask-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* 顶部用户下拉菜单样式优化 */
.topnav-navbar .user-dropdown > a {
    color: #f1f5f9; /* 保持和其它 nav 一致的浅色，而不是灰色 */
}
.topnav-navbar .user-dropdown.show > a {
    color: #ffffff;
}
.topnav-navbar .dropdown-menu {
    min-width: auto; /* 取消默认最小宽度，随内容自适应 */
}
.dropdown-menu .dropdown-item {
    color: #183153;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #f1f6ff; /* 变浅而不是加深 */
    color: #071c3a;
}

/* Footer */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 120px;
    right: 20px;
    z-index: 99;
}
#back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    width: 36px;
    height: 36px;
    padding-bottom: 10px;
}