/* app-creative.min.css 
 */
.modal-header {
    padding: 6px 12px !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: 80px;
    margin-bottom: 24px;
    /* background-color: #fff307; 
    box-shadow: 0 0 35px 0 rgb(154 161 171 / 15%); */
}
.header-flex {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-title {
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
    color: #3687fc;
    margin-left: 2px;
    vertical-align: middle;
    font-family: "Nunito,sans-serif";
}
.menu-container {
    background: #494746;
    border-radius: 0.6rem;
    padding: 0.18rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.18rem;
}

/* 手机端菜单适配 */
@media (max-width: 768px) {
    .header-flex {
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .menu-container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.1rem;
        padding: 0.1rem;
        max-width: none;
        flex: 1;
        min-width: 0;
    }
    
    .menu-container a.btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        font-size: 11px;
        padding: 0.25rem 0.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .title-search {
        display: none;
    }
    
    .logo-title {
        font-size: 16px;
    }
}
a.btn.head-menu-con {
    background: #f5ede9;
    color: #494746;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
a.btn.head-menu-sc {
    color: #f5ede9;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
a.btn.head-menu-sc:hover {
    background: #3687fc;
    color: #fff;
}
a.btn.head-menu-con:hover {
   background: #3687fc;
   color: #fff;
}

/* 用户下拉菜单样式 - 符合mhfaka模板风格 */
.head-menu-user {
    background: #494746;
    color: #f5ede9;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #494746;
}

.head-menu-user:hover {
    background: #3687fc;
    color: #fff;
    border-color: #3687fc;
}

.head-menu-user i {
    font-size: 16px;
}

/* 用户余额显示样式 - 符合mhfaka模板风格 */
.user-balance {
    background: #f5ede9;
    color: #494746;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    display: inline-block;
    border: 1px solid #d1cdb2;
    transition: all 0.3s ease;
}

.head-menu-user:hover .user-balance {
    background: #fff;
    color: #3687fc;
    border-color: #3687fc;
    transform: scale(1.05);
}

/* 下拉菜单项样式 - 符合mhfaka模板风格 */
.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    color: #495057;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: #f5ede9;
    color: #494746;
}

.dropdown-menu {
    border: 1px solid #d1cdb2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.4rem;
    padding: 0.25rem 0;
    min-width: 180px;
    background-color: #fff;
}

.dropdown-divider {
    margin: 0.25rem 0;
    border-top: 1px solid #d1cdb2;
}

/* 购买页面用户信息样式 - 符合mhfaka模板风格 */
.user-login-info-simple {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fdfcfc;
    border: 1px solid #d1cdb2;
    border-radius: 0.5rem;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.user-login-info-simple .user-name {
    font-weight: 600;
    color: #494746;
    font-size: 15px;
}
.user-login-info-simple .user-email {
    font-size: 12px;
    color: #6c757d;
    font-family: monospace;
    background: #f5ede9;
    padding: 2px 6px;
    border-radius: 0.25rem;
    border: 1px solid #e9ecef;
}
.user-login-info-simple .user-balance {
    background: #f5ede9;
    color: #494746;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    margin-left: auto;
    display: inline-block;
    border: 1px solid #d1cdb2;
    transition: all 0.3s ease;
}

/* 支付页面样式 */
.user-info-simple {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: #fdfcfc;
    border: 1px solid #d1cdb2;
    border-radius: 0.5rem;
}

.user-info-simple .user-name {
    font-weight: 600;
    color: #494746;
    font-size: 16px;
}

.user-info-simple .user-email {
    font-size: 13px;
    color: #6c757d;
    font-family: monospace;
}

.user-info-simple .user-balance {
    background: #f5ede9;
    color: #494746;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    border: 1px solid #d1cdb2;
    width: fit-content;
}

.help-content p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.5;
}

.table-borderless td {
    padding: 8px 0;
    border: none;
}

.table-borderless .text-muted {
    width: 120px;
    font-weight: 500;
}

.badge {
    font-size: 12px;
    padding: 4px 8px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

body {
    background-color: #f5ede9;
    height: 100%;
}
body[data-leftbar-compact-mode=condensed] {
    min-height: 0;
}
body[data-layout=topnav] .content-page {
    padding: 0!important;
    min-height: 0;
}
.page-title-box {
    display: none;
}
@media screen and (max-width: 767px) {
    .page-title-box {
    display: block;
  }
}
.title-search {
    position: relative;
    flex: 1;
    margin-left: 18px;
    margin-right: 222px;
    z-index: 3;
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .title-search {
    margin-right: 58px;
  }
    .card.card-body.sticky {
    background: #fdfcfc;
  }
    .card.card-body.buy-product{
      background: #fdfcfc;
  }
}
@media screen and (max-width: 767px) {
    .title-search {
    display: none;
  }
    .card.card-body.sticky {
    background: #fdfcfc;
  }
    .card.card-body.buy-product{
      background: #fdfcfc;
  }
}

.title-search .form-control {
    border: none;
    height: 48px;
    padding-left: 18px;
    padding-right: 20px;
    background-color: #eee3de;
    box-shadow: none;
    border-radius: 0.6rem;
}
.title-search span {
    position: absolute;
    z-index: 9;
    font-size: 22px;
    line-height: 48px;
    right: 15px;
    top: 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;
    }
    .table td, .table th{
         padding: 1.3rem 0.2rem 1.3rem 0rem;
     }
}
.mhfaka-wrapper a {
    color: #000;
}
@media screen and (max-width: 411px) and (max-width: 991px) {
    .logo-title {
        display: none;
    }
    .table td, .table th{
         padding: 1.3rem 0.2rem 1.3rem 0rem;
     }
}
.mhfaka-footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 20px 0;
    line-height: 16px;
    border-top: 0px solid rgba(152,166,173,.2);
    color: #c38b8b;
    font-size: 13px;
}
@media screen and (max-width: 768px) {
    .mhfaka-footer {
        text-align: center;
    }
}
.mhfaka-footer a {
    color: #c38b8b;
}
@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) {
    .mhfaka-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;
    }
}
@media (max-width: 991px) {
    .notice-1 {
        display: block !important;
    }
    .custom-image-0 {
        width: 400px !important;
        height: 69px !important;
    }
    .stk-column-95f5b65 {
        width: 100% !important;
    }
}
@media (max-width: 576px) {
    .custom-image-0 {
        width: 345px !important;
        height: 60px !important;
    }
    .custom-image-1 {
        width: 300px !important;
        height: 239px !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;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tab-link.active {
    color: #fff;
    background: linear-gradient(-45deg, #3369ff, #3798f7);
}
.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 3px 6px 0 rgb(0 0 0 / 12%);
    transition: all .5s;
}
.home-card:hover {
    box-shadow: 1px 3px 2px 0 rgb(0 0 0 / 5%);
}
@media screen and (max-width: 767px) {
    .mhfaka-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;
    	border-radius: 5px;
    	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) {
    .mhfaka-wrapper {
        padding-left: 0;
        padding-right: 0;
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
        grid-gap: 12px;
    }
    .home-card {
        padding: 32px 20px 14px 20px;
        font-size: 14px;
        display: flex;
        flex-direction: column;
    	border-radius: 5px;
    	cursor: pointer;
        background-color: #fff;
    }
    .home-img {
        max-width: 88%;
        margin: 0 auto auto auto;
    }
    .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) {
    .mhfaka-wrapper {
        padding-left: 0;
        padding-right: 0;
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        grid-gap: 12px;
    }
    .home-card {
        padding: 32px 20px 14px 20px;
        font-size: 14px;
        display: flex;
        flex-direction: column;
    	border-radius: 5px;
    	cursor: pointer;
        background-color: #fff;
    }
    .home-img {
        max-width: 88%;
        margin: 0 auto auto auto;
    }
    .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) {
    .mhfaka-wrapper {
        padding-left: 0;
        padding-right: 0;
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
        grid-gap: 12px;
    }
    .home-card {
        padding: 32px 20px 14px 20px;
        font-size: 14px;
        display: flex;
        flex-direction: column;
    	border-radius: 5px;
    	cursor: pointer;
        background-color: #fff;
    }
    .home-img {
        max-width: 88%;
        margin: 0 auto auto auto;
    }
    .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;
        background: #fdfcfc;
    }
    .buy-shop {
        grid-column: span 2 / span 2;
    }
    .buy-product {
        grid-column: span 4 / span 4;
        background: #fdfcfc;
    }
}
img.custom-image-0 {
    position: relative !important;
}
/* 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 {
    background-color: #fff0;
    border: 1px solid #dbe6f1;
    padding: 4.35px 0 4.35px 15px;
    border-radius: .6rem;
}
.pay-type:hover {
    background-color: #fff;
    color: #000;
}
.pay-type.active {
    background-color: #f5ede9;
    color: #071c3a;
    border: 1px solid #d1cdb2;
    font-weight: 500;
}

/* 支付方式图标和名称样式 */
.pay-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.pay-name {
    vertical-align: middle;
    font-size: 14px;
    font-weight: 500;
}

.pay-type {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pay-type:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #c38b8b;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    color: #c38b8b;
    font-size: 16px;
    margin-bottom: 24px;
}

/* 余额统计卡片样式 */
.balance-stats-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.balance-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 余额记录表格样式 */
.balance-records-table .table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.balance-records-table .table td {
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.balance-records-table .badge {
    font-size: 12px;
    padding: 4px 8px;
}


.mhfaka-category-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3688fc 0%, #3798f7 100%);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(54, 136, 252, 0.3);
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.mhfaka-category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mhfaka-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(54, 136, 252, 0.4);
}

.mhfaka-category-badge:hover::before {
    left: 100%;
}

/* 公告区域样式 */
.notice-section {
    margin-top: 20px;
    width: 100%;
    position: relative;
}

/* 公告标签样式 - 与容器结合 */
.notice-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #42d29d 0%, #28a745 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(66, 210, 157, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-bottom: none;
}


/* 公告背景容器样式 - 符合mhfaka模板风格 */
.notice {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
    min-height: 120px;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
}


.notice::before {
    content: '\e7c3';
    font-family: 'unicons';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 24px;
    color: #3688fc;
    opacity: 0.8;
}

.notice::after {
    content: '\e7c3';
    font-family: 'unicons';
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 24px;
    color: #3798f7;
    opacity: 0.6;
    transform: rotate(180deg);
}

.notice h1, .notice h2, .notice h3, .notice h4, .notice h5, .notice h6 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    padding-left: 0;
    position: relative;
}

.notice h1::before, .notice h2::before, .notice h3::before, .notice h4::before, .notice h5::before, .notice h6::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(135deg, #3688fc 0%, #3798f7 100%);
    border-radius: 2px;
}

.notice p {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
    padding-left: 0;
}

.notice ul, .notice ol {
    color: #495057;
    padding-left: 20px;
    margin-bottom: 15px;
}

.notice li {
    margin-bottom: 8px;
    line-height: 1.7;
    position: relative;
}

.notice ul li::before {
    content: '▶';
    color: #3688fc;
    font-size: 12px;
    position: absolute;
    left: -20px;
    top: 0;
}

.notice a {
    color: #3688fc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.notice a:hover {
    color: #3798f7;
    border-bottom-color: #3798f7;
}

.notice strong, .notice b {
    color: #2c3e50;
    font-weight: 700;
}

.notice blockquote {
    border-left: 4px solid #3688fc;
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.notice code {
    background: #e9ecef;
    color: #e83e8c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}
.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;
    }
}
@media screen and (max-width: 767px) {
    .orderinfo-info {
        display: grid;
        justify-content: center;
    }
}
.textarea-kami {
    min-height: calc(100% - 48px - 38px)
}
.kami-btn {
    margin-top: 6px;
    float: right;
}

/* 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: 44px;
    height: 44px;
}