.fal, .far {
    font-family: "Font Awesome 5 Pro" !important;
}

.boheyun_adv {
    display: inline-block;
    padding-left: 3px;
    padding-right: 3px;
    border: 1px solid;
    font-size: 12px !important;
    font-style: normal;
    line-height: 16px !important;
    border-radius: 2px;
    border-color: #0008ff;
    background: #fff;
    color: #0008ff !important;
    position: relative;
    float: right;
    margin-top: 5px;
}

.boheyun_bq {
    background-color: rgba(200, 255, 0, 0.685);
    color: rgb(0, 0, 0) !important;
    margin-right: 2px;
    min-width: max-content;
    padding: 0 8px;
    height: 24px;
    line-height: 24px !important;
    font-size: 12px !important;
    font-weight: bold;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 8px;
}

.banner-desc p,
.banner-desc p span {
    margin-bottom: 0 !important;
    font-size: 12px !important;
}

.desc-box {
    margin-top: 10px !important;
    display: flex;
}

.desc-box .badge {
    font-family: Arial !important;
    font-weight: bold;
}

.desc-box .badge-score {
    color: #156ffb;
    font-weight: normal;
    background-image: linear-gradient(0deg, #fff, #f2f2f2);
}

.desc-box .badge-warning {
    color: #fff;
    background-color: #fc9f48;
}

.desc-box .badge-light-dark {
    background-image: linear-gradient(0deg, #f2f2f2, #eeeeee);
}

/* 璋冩暣涓诲唴瀹瑰尯鍩熷竷灞€ */
.col-sm-12 {
    padding-left: var(--sidebar_width) !important;
    width: calc(100% - var(--sidebar_width));
    padding: 60px 0 20px;
    box-sizing: border-box;
    background-color: #f7f7f9;
    min-height: calc(100vh - 61px);
}

/* 淇敼鏍囪鏍峰紡 */
.product-headline {
    background: #fff;
    color: #333;
    padding: 15px 20px;
    border-radius: 0;
    border: 1px solid #f1f1f1;
    margin-bottom: 20px;
    display: none;
}

.headline-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.headline-content {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 鍟嗗搧鍒楄〃瀹瑰櫒 */
.products-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 10px 0 15px;
}

.products-grid {
    display: grid;
    width: 100%;
    gap: var(--product_item_gap);
    grid-template-columns: repeat(auto-fill, minmax(var(--product_item_min_width), 1fr));
    transition: grid-template-columns 0.3s ease;
}

/* 鍟嗗搧鍗＄墖鏍峰紡浼樺寲 - 鏍稿績淇敼锛氬渾瑙�+涓婃诞鍔ㄧ敾 */
.product-item {
    background: #ffffff;
    border: 1px solid #eee;
    transition: all 0.3s ease !important; /* 寤堕暱杩囨浮鏃堕棿锛屾洿椤烘粦 */
    display: inline-block;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    vertical-align: top;
    box-sizing: border-box;
    z-index: 1;
    box-shadow: 0px 5px 20px 3px rgba(230, 233, 249, 0.3);
    border: 1px solid #d4d6d9;
    border-radius: 12px !important; /* 鍗＄墖鍦嗚锛岄噸鐐逛慨鏀� */
    overflow: hidden !important; /* 闃叉鍐呴儴鍐呭婧㈠嚭鍦嗚 */
    display: flex;
    flex: 1;
}

/* 榧犳爣鎮诞鐗规晥 - 涓婃诞+闃村奖寮哄寲 */
.product-item:hover {
    box-shadow: -2px -2px 20px rgba(55, 99, 170, 0.15), 8px 8px 20px rgba(55, 99, 170, 0.15) !important;
    border-color: #0052d9;
    z-index: 2;
    transform: translateY(-6px) !important; /* 涓婃诞6px锛岄噸鐐逛慨鏀� */
}

/* 璋冩暣浜у搧鏍囬瀹瑰櫒锛屼娇鍏朵笌搴撳瓨鍗＄墖绛夐珮骞跺眳涓� */
.product-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    background: #f7f7f9;
    display: flex;
    justify-content: space-between;
    align-items: center; /* 鍨傜洿灞呬腑瀵归綈 */
    min-height: 40px; /* 鍥哄畾鏈€灏忛珮搴︼紝纭繚涓庡簱瀛樺崱鐗囬珮搴︿竴鑷� */
    width: 100%;
}

.product-footer {
    padding: 5px 15px 0 15px;
}

/* 浜у搧鍚嶇О鍓嶆坊鍔犲皬 Logo */
.product-title {
    color: #000;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    -webkit-font-smoothing: subpixel-antialiased;
    word-break: break-all;
    word-wrap: break-word;
    transition: color 0.2s ease !important;
    padding-left: 24px; /* 涓篖ogo鐣欏嚭绌洪棿 */
    position: relative;
    display: flex;
    align-items: center; /* 鏂囨湰鍨傜洿灞呬腑 */
    min-height: 30px; /* 涓庡簱瀛樺崱鐗囬珮搴﹀尮閰� */
}

.product-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* 绮剧‘鍨傜洿灞呬腑 */
    width: 18px; /* Logo瀹藉害 */
    height: 18px; /* Logo楂樺害 */
    background-image: url('https://www.cyvps.cn/favicon.ico');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 鏍囬hover鍙樿壊锛屽寮轰氦浜� */
.product-title:hover {
    color: #0056ff !important;
}

/* 缇庡寲搴撳瓨鏄剧ず涓哄渾瑙掑皬鍗＄墖 */
.product-stock {
    padding: 2px 8px; /* 鍐呰竟璺濓紝褰㈡垚鍗＄墖鏁堟灉 */
    margin: 0;
    word-wrap: break-word;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px; /* 鍦嗚 */
    position: relative;
    min-height: 30px; /* 涓庢爣棰橀珮搴﹀尮閰� */
    display: flex;
    align-items: center; /* 搴撳瓨鏂囨湰鍨傜洿灞呬腑 */
    top: 0; /* 绉婚櫎涔嬪墠鐨勪笂绉� */
}

/* 绉婚櫎浜嗗師鏈夌殑绔栫嚎鍒嗛殧绗� */
.product-stock::after {
    display: none;
}

/* 涓轰笉鍚屽簱瀛樼姸鎬佽缃笉鍚屾牱寮� */
.product-stock:not(.warning):not(.danger) {
    /* 榛樿鐘舵€侊紙鏈夎揣锛� */
    color: #36b37e;
    background-color: rgba(54, 179, 126, 0.1);
    border: 1px solid rgba(54, 179, 126, 0.2);
}

.product-stock.warning {
    /* 璀﹀憡鐘舵€� */
    color: #ff5630;
    background-color: rgba(255, 86, 48, 0.1);
    border: 1px solid rgba(255, 86, 48, 0.2);
}

.product-stock.danger {
    /* 缂鸿揣鐘舵€� */
    color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.product-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(43, 109, 229, 0.1);
    color: #2B6DE5;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px !important; /* 鏍囩鍦嗚锛岄€傞厤鍗＄墖 */
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}

.product-body {
    padding: 15px;
    padding-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
}

.product-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.product-price-section {
    margin: 0;
    margin-top: auto;
    margin-bottom: 10px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #ff4d4f;
}

.price-main .currency {
    font-size: 14px;
}

.price-main .amount {
    font-size: 20px;
    font-weight: 500;
    transition: font-size 0.2s ease !important; /* 浠锋牸hover鏀惧ぇ杩囨浮 */
}

/* 浠锋牸hover鏀惧ぇ锛岀獊鍑洪噸鐐� */
.price-main .amount:hover {
    font-size: 22px !important;
}

.price-main .period {
    color: #999;
    font-size: 13px;
}

.daily-average,
.member-daily-average {
    color: #999;
    font-size: 12px;
}

.daily-average b,
.member-daily-average b {
    color: #ff4d4f;
    font-size: 15px;
    font-weight: 700;
}

/* 璐拱鎸夐挳 - 鏍稿績淇敼锛氬渾瑙�+鐐瑰嚮鍙嶉 */
.btn-buy {
    padding: 12px;
    background: #0056ff;
    color: #fff;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s ease !important;
    margin: 0 -15px 0;
    border-radius: 0 0 12px 12px !important; /* 鎸夐挳浠呭簳閮ㄥ渾瑙掞紝涓庡崱鐗囧懠搴� */
    text-decoration: none;
    display: block;
    position: relative !important;
    overflow: hidden !important;
}

/* 鎸夐挳hover鍔犳繁棰滆壊 */
.btn-buy:hover {
    background: #0047cc !important;
    color: #fff;
    box-shadow: inset 0 0 0 200px rgba(255,255,255,0.1) !important; /* 鎮诞娣″叆鏁堟灉 */
}

/* 鎸夐挳鐐瑰嚮娉㈢汗鐗规晥 */
.btn-buy::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 150% !important;
    height: 150% !important;
    background: rgba(255,255,255,0.3) !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important;
    transition: transform 0.6s ease-out !important;
}

.btn-buy:active::after {
    transform: translate(-50%, -50%) scale(1) !important;
}

/* 鍞絼鎸夐挳鍚屾鍦嗚 */
.sold-out {
    padding: 12px;
    background: #f8f9fa;
    color: #999;
    font-size: 13px;
    text-align: center;
    cursor: not-allowed;
    margin: 0 -15px 0;
    border-radius: 0 0 12px 12px !important; /* 涓庤喘涔版寜閽繚鎸佷竴鑷� */
}

/* 鍒嗛〉鏍峰紡 */
.pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* 绌虹姸鎬佹牱寮� */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-icon {
    font-size: 32px;
    margin-bottom: 15px;
    color: #ccc;
}

/* 绉诲姩绔€傞厤 */
@media (max-width: 768px) {
    .navtop-standingPosition {
        top: 60px;
    }

    .category-nav {
        top: 120px;
        height: calc(100vh - 106px);
    }

    .col-sm-12 {
        width: 100%;
        padding-top: 66px;
        padding-left: 10px !important;
        padding-right: 10px;
    }

    .page-desc {
        max-width: 200px;
    }

    .products-container {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
}

/* 鎶樺彔鎸夐挳鏍峰紡 */
.sidebar-toggle {
    position: fixed;
    left: 20px;
    bottom: 90px;
    width: 40px;
    height: 40px;
    background: #2B6DE5;
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(43, 109, 229, 0.3);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #2259c7;
}

.sidebar-toggle i {
    font-size: 18px;
}

/* 绉诲姩绔€傞厤 */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
    }

    .category-nav {
        transform: translateX(-240px);
        transition: transform 0.3s ease;
    }

    .category-nav.show {
        transform: translateX(0);
    }
}

/* 淇椤甸潰妯悜婊氬姩 */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* 淇瀹瑰櫒瀹藉害 */
.row {
    margin: 0;
    width: 100%;
}

.price-original {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.discount-tag {
    color: #ff4d4f;
    font-weight: bold;
    margin-right: 4px;
}

/* 鎻愮ず妗嗘暣浣撲紭鍖� - 缁熶竴鍦嗚鍜岄槾褰� */
.ewy-elem-quote {
    border-radius: 8px !important; /* 澧炲ぇ鍦嗚锛屼笌鍗＄墖椋庢牸缁熶竴 */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important; /* 杞诲井闃村奖澧炲己灞傛鎰� */
    transition: all 0.3s ease !important; /* 杩囨浮鍔ㄧ敾 */
    padding: 18px 20px !important; /* 澧炲姞鍐呰竟璺濓紝鍐呭涓嶆嫢鎸� */
    margin-bottom: 18px !important; /* 璋冩暣闂磋窛 */
    border-width: 0 !important; /* 绉婚櫎鍘熻竟妗� */
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 鎻愮ず妗嗗乏渚ф坊鍔犲僵鑹茶楗版潯锛屼繚鐣欒鲸璇嗗害 */
.ewy-elem-quote::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 4px !important;
    height: 100% !important;
}

/* 鐏拌壊涓婚鎻愮ず妗� */
.ewy-elem-quote.grey-theme {
    background-color: #f8f9fa !important; /* 鏇存煍鍜岀殑鐏拌壊 */
    color: #495057 !important;
    margin-left: 0 !important;
}

.ewy-elem-quote.grey-theme::before {
    background: #adb5bd !important; /* 鐏拌壊瑁呴グ鏉� */
}

/* 绾㈣壊涓婚鎻愮ず妗� */
.ewy-elem-quote.red-theme {
    background-color: #fff5f5 !important; /* 鏇存祬鐨勭孩鑹茶儗鏅� */
    color: #c92a2a !important; /* 鏇存繁鐨勭孩鑹叉枃瀛楋紝鎻愬崌鍙鎬� */
}

.ewy-elem-quote.red-theme::before {
    background: #ff4d4f !important; /* 绾㈣壊瑁呴グ鏉� */
}

.ewy-elem-quote.red-theme p {
    color: #c92a2a !important; /* 缁熶竴绾㈣壊涓婚鏂囧瓧鑹� */
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* 钃濊壊涓婚鎻愮ず妗� */
.ewy-elem-quote.blue-theme {
    background-color: #f0f7ff !important; /* 鏇存祬鐨勮摑鑹茶儗鏅� */
    color: #1864ab !important; /* 娣辫摑鑹叉枃瀛� */
    margin-left: 0 !important;
}

.ewy-elem-quote.blue-theme::before {
    background: #156ffb !important; /* 钃濊壊瑁呴グ鏉� */
}

/* 鎻愮ず妗嗗唴閾炬帴浼樺寲 */
.ewy-elem-quote a {
    color: #156ffb !important; /* 缁熶竴閾炬帴鑹蹭负鍝佺墝钃� */
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 2px 0 !important;
    border-bottom: 1px dotted #156ffb !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    padding-right: 20px !important;
}

.ewy-elem-quote a::after {
    content: "" !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    width: 5px !important;
    height: 5px !important;
    border-right: 2px solid #156ffb !important;
    border-bottom: 2px solid #156ffb !important;
    transform: translateY(-50%) rotate(-45deg) !important;
    transition: right 0.3s ease !important;
}

.ewy-elem-quote a:hover {
    color: #0052d9 !important;
    border-bottom-style: solid !important;
}

.ewy-elem-quote a:hover::after {
    right: 5px !important;
}

/* 鎻愮ず妗嗘爣棰�/鍐呭浼樺寲 */
.ewy-elem-quote #description {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #b074d1 !important;
}

/* 鎮仠寰姩鏁� */
.ewy-elem-quote:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

/* 鍏憡杞挱鏍峰紡 */
.announcement-wrapper {
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    margin-left: 0 !important; /* 鍘绘帀宸︿晶鍥哄畾杈硅窛 */
    width: 100% !important; /* 瀹藉害鏀逛负100% */
    box-sizing: border-box !important;
}

.announcement-wrapper:before {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background: #0056ff;
    box-shadow: 0 16px 16px 0 rgba(55, 69, 103, 0.02), 0 8px 8px 0 rgba(235, 240, 252, 0.02);
    border-radius: 0 0 2px 2px;
    left: 24px;
    top: 0;
}

.minimal-carousel {
    padding: 20px;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    text-decoration: none;
    color: #374567;
    padding: 10px 0;
    transition: opacity 0.3s ease;
    opacity: 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.slide.active {
    display: block;
    opacity: 1;
    position: relative;
}

.slide .badge {
    display: inline-block;
    padding: 2px 12px;
    background: linear-gradient(90deg, #0e52ff 0, #0e52ff 100%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
}

.content-wrapper {
    display: inline-block;
    vertical-align: middle;
    max-width: calc(100% - 120px);
    overflow: hidden;
    white-space: nowrap;
}

.content {
    display: inline-block;
    font-size: 14px;
    color: #7a8ba6;
    transition: transform 0.5s ease;
}

.content.scrolling {
    animation: scrollText 15s linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .ewy-elem-quote {
        padding: 12px 15px !important;
        font-size: 13px !important;
    }

    .ewy-elem-quote.grey-theme,
    .ewy-elem-quote.blue-theme,
    .announcement-wrapper {
        margin-left: 0 !important;
    }

    .announcement-wrapper {
        width: 100% !important;
    }
}

.nav-btn {
    background: none;
    border: 1px solid #ebf0fc;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #7a8ba6;
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #0e52ff;
    color: #fff;
    border-color: #0e52ff;
}

.indicators {
    display: flex;
    margin: 0 10px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ebf0fc;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #0e52ff;
    transform: scale(1.2);
}

/* 鍝嶅簲寮忚皟鏁� */
@media (max-width: 768px) {
    .content-wrapper {
        max-width: calc(100% - 80px);
    }

    .slide .badge {
        padding: 2px 8px;
        font-size: 11px;
    }

    .content {
        font-size: 13px;
    }
}

.login-alert p {
    margin: 0;
}

.login-alert {
    margin-bottom: 10px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.banner-desc {
    font-size: 14px;
    line-height: 1.5;
}



.banner-desc .second-line {
    color: #ba3772;
    display: block;
    font-size: 13px;
    margin-bottom: 0 !important;
}

.small,
small {
    font-size: 90% !important;
}

.ewy_tip {
    background-color: rgba(252, 241, 235, 1);
    color: rgba(254, 95, 71, 1) !important;
    margin-right: 2px;
    min-width: max-content;
    padding: 0 8px;
    height: 24px;
    line-height: 24px !important;
    font-size: 12px !important;
    font-weight: bold;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 8px;
}

.ewy_lcpu {
    display: inline-block;
    padding: 3px;
    border: 2px solid #cfcfcf;
    font-size: 12px !important;
    font-style: normal;
    line-height: 16px !important;
    border-radius: 5px;
    background-image: linear-gradient(-225deg, #DFFFCD 0%, #90F9C4 48%, #39F3BB 100%);
    background: linear-gradient(220.55deg, #97E8B5 0%, #5CB67F 100%);
    color: #fff !important;
    position: relative;
    float: right;
}

.ewy_mcpu {
    display: inline-block;
    padding: 3px;
    border: 2px solid #cfcfcf;
    font-size: 12px !important;
    font-style: normal;
    line-height: 16px !important;
    border-radius: 5px;
    background-image: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%);
    color: #fff !important;
    position: relative;
    float: right;
}

.ewy_hcpu {
    display: inline-block;
    padding: 3px;
    border: 2px solid #cfcfcf;
    font-size: 12px !important;
    font-style: normal;
    line-height: 16px !important;
    border-radius: 5px;
    background-image: linear-gradient(to right, #ff8177 0%, #ff867a 0%, #ff8c7f 21%, #f99185 52%, #cf556c 78%, #b12a5b 100%);
    color: #fff !important;
    position: relative;
    float: right;
}

.ewy_bandw {
    display: inline-block;
    padding: 3px;
    border: 2px solid #cfcfcf;
    font-size: 12px !important;
    font-style: normal;
    line-height: 16px !important;
    border-radius: 5px;
    background-image: linear-gradient(to right, #0acffe 0%, #495aff 100%);
    color: #fff !important;
    position: relative;
    float: right;
}

hr {
    margin-top: initial !important;
    border-top: 1px solid rgba(0, 0, 0, .1) !important;
}

.icon-sm {
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    font-size: 75%;
}