/*
Theme Name: Otaku Child - ANIMEAIPRINT
Description: OTAKU主题的子主题，专为ANIMEAIPRINT定制，包含LinkPrint功能
Author: ANIMEAIPRINT Team
Template: otaku
Version: 1.0.0
Text Domain: otaku-child
*/

/* 
==========================================================================
ANIMEAIPRINT 自定义样式
==========================================================================
*/


/* ANIMEAIPRINT 品牌Logo优化 */
.header-logo .logo-text {
    color: #EE9CA7 !important;
    font-family: Helvetica !important;
    font-size: 24px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
}

.page_content_wrap {
    padding-top: 2.1rem !important;
    padding-bottom: 3.4rem !important;
}

/* 搜索框增强效果 */
.search-field:focus {
    box-shadow: 0 0 0 3px rgba(111, 201, 205, 0.2);
    border-color: #6FC9CD;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .linkprint-top-banner {
        padding: 6px 0;
    }
    
    .linkprint-top-banner .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



/* 自定义按钮样式 */
.btn-animeai {
    background: linear-gradient(135deg, #6FC9CD, #5AB8BC);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-animeai:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 201, 205, 0.3);
    color: white;
}
.content_wrap, .content_container{
    width:  var(--theme-var-page_width_boxed,1360px);
    max-width: 1360px !important;
    margin: 0 auto;
    padding-left: var(--theme-var-page_fullwide_extra);
    padding-right: var(--theme-var-page_fullwide_extra);
}

/* ================================================================ */
/* 核心LinkPrint Header和Footer样式 - 确保所有页面都有基本样式 */
/* ================================================================ */

/* LinkPrint Top Banner */
.linkprint-top-banner {
    background: #000000;
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.linkprint-top-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: var(--theme-var-page_width_boxed);
    max-width: 1400px !important;
    margin: 0 auto;
    padding-left: var(--theme-var-page_fullwide_extra);
    padding-right: var(--theme-var-page_fullwide_extra);
}

.banner-location, .banner-brand {
    color: #e59c0e;
    font-size: 0.85rem;
    font-weight: bold;
}

/* LinkPrint Header */
.linkprint-header {
    background: #000000;
    color: white;
    padding: 0;
}

.linkprint-header .container, .header-navigation .container, .linkprint-footer .container {
    width: var(--theme-var-page_width_boxed);
    max-width: 1400px !important;
    margin: 0 auto;
    padding-left: var(--theme-var-page_fullwide_extra);
    padding-right: var(--theme-var-page_fullwide_extra);
}

.header-content {
    display: flex;
    align-items: center;
    padding: 5px 0;
    justify-content: space-between;
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-image {
    width: 32px !important;
    height: 32px !important;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.header-search {
    flex: 1;
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 40px;
    width: 400px !important;
    max-width: 550px !important;
}

.search-field {
    width: 100%;
    padding: 15px 60px 15px 25px !important;
    border: none;
    border-radius: 30px !important;
    background: transparent;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-field::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.search-submit {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: black !important;
    cursor: pointer;
    padding: 12px 15px !important;
    border-radius: 30px !important;
    display: flex;
    align-items: center;
    background: white !important;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-actions {
    display: flex;
    gap: 15px;
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    min-width: fit-content;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 7px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
}

.header-action:hover span {
    color: #EE9CA7;
}

.header-action svg {
    width: 24px;
    height: 24px;
}

.cart-count, .wishlist-count {
    position: absolute;
    top: -8px;
    left: 15px;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Account Dropdown Styles */
.account-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.account-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.account-trigger:hover span {
    color: #EE9CA7;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.account-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.account-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #000000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-dropdown:hover .account-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item:active,
.dropdown-item:focus {
    background-color: #000000;
    color: #EE9CA7;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    color: white;
    transition: color 0.2s ease;
}

.dropdown-item:hover svg,
.dropdown-item:active svg,
.dropdown-item:focus svg {
    color: #EE9CA7;
}
/* Content and Sidebar */


.sidebar_left [class*="content_wrap"] > .content  { float: none; }


/* Mobile Sidebar User Info Styles */
.sidebar-user-info {
    padding: 20px 16px 10px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
}

.user-greeting svg {
    color: #EE9CA7;
}

.logout-item {
    border-top: 1px solid #e5e7eb;
    margin-bottom: 0px;
    padding-top: 16px;
}

.logout-item:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.logout-item:hover svg {
    color: #dc2626;
}

/* Header Navigation */
.header-navigation {
    background: #1A1A1A;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    justify-content: center;
    height: 50px;
    align-items: center;
    font-size: 0.9rem;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 0;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-item.current .nav-link {
    color: #EE9CA7;
}

/* LinkPrint Footer */
.linkprint-footer {
    background: #000000;
    color: white;
    padding: 60px 0 20px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    clear: both !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    display: block !important;
    visibility: visible !important;
}

.footer-section p {
    line-height: 1.6;
    color: #CBD5E1;
    margin-bottom: 6px;
}

.footer-section.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
    visibility: visible !important;
}

.footer-section.menu li {
    margin-bottom: 6px;
    display: block !important;
    visibility: visible !important;
}

.footer-section.menu a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section.menu a:hover {
    color: #60A5FA;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #374151;
}

.footer-copyright p {
    margin: 0;
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* 404 Page Specific Styles */
.error-404-container {
    text-align: center;
    padding: 2rem 0;
    max-width: 100%;
    margin: 0 auto;
}

.error-404-image {
    max-width: 600px;
    width: 60%;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.error-404-actions {
    margin-top: 2rem;
}

.back-to-home-btn {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666;
    padding: 7px 18px;
    border: 2px solid #ddd;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.back-to-home-btn:hover {
    background-color: #EE9CA7;
    color: white;
    border-color: #EE9CA7;
    box-shadow: 0 4px 12px rgba(238, 156, 167, 0.3);
}

.back-to-home-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(238, 156, 167, 0.3);
}

/* Ensure proper spacing for the 404 page */
body.error404 .page_content_wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

body.error404 .content_wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

body.error404 .content {
    width: 100%;
}

/* 平板端优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .error-404-image {
        max-width: 500px;
        width: 70%;
    }
}

/* 通用下拉框样式修改 - 箭头距离右侧5px */
.select_container:after {
    right: 8px !important;
    content:'' !important;
}

/* 通用select元素样式 - 适用于所有下拉框 */
select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px;
}


/* 响应式设计 - 基本版本 */
@media (max-width: 768px) {
    /* 手机端Logo文字大小 */
    .header-logo .logo-text {
        font-size: 18px !important;
        margin-left: 5px !important;
    }
    
    .linkprint-top-banner .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
        align-items: center;
    }
    
    .header-search {
        order: 2;
        max-width: 100%;
        width: 100%;
    }
    
    .search-wrapper {
        width: calc(100% - 60px) !important;
        max-width: calc(100% - 60px) !important;
    }
    
    .header-actions {
        order: 3;
        justify-content: center;
        gap: 25px;
    }
    
    .header-action {
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 12px 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* 404 Page Mobile Styles */
    body.error404 .page_content_wrap {
        padding: 0.5rem 0;
        min-height: auto;
        display: block;
        align-items: flex-start;
    }
    
    .error-404-container {
        padding: 0.5rem;
    }
    
    .error-404-image {
        max-width: 350px;
        width: 75%;
        margin-bottom: 1rem;
    }
    
    .back-to-home-btn {
        padding: 10px 25px;
        font-size: 14px;
        margin: 0 1rem;
    }
    
    .error-404-actions {
        margin-top: 1rem;
    }
}

/* WooCommerce 下拉框箭头位置修正 - 强制样式 */
.woocommerce .woocommerce-ordering .select_container:after,
body.woocommerce .woocommerce-ordering .select_container:after,
html body.woocommerce .woocommerce-ordering .select_container:after {
    right: 10px !important;;
}

/* WooCommerce 商品列表顶部对齐 */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0;
}

.woocommerce .woocommerce-result-count {
    line-height: 48px; /* 与下拉框高度对齐 */
    margin-right: 20px;
    font-size: 18px;
}

.woocommerce .woocommerce-ordering {
    margin: 0;
}

.woocommerce .woocommerce-ordering select {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 30px 0 15px !important;
    font-size: 16px !important;
}

/* ================================================================ */
/* 产品页面购物车按钮样式 */
/* ================================================================ */

.add_to_cart_wrap button,
.add_to_cart_wrap input[type="button"],
.add_to_cart_wrap input[type="submit"],
.add_to_cart_wrap .button,
.add_to_cart_wrap .btn,
.add_to_cart_wrap a.button,
.add_to_cart_wrap a.btn {
    background: #000000 !important;
    color: #FFFFFF !important;
    font-family: Helvetica !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: normal !important;
    border: none !important;
    padding: 0 15px !important;
    height: 40px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.add_to_cart_wrap button:hover,
.add_to_cart_wrap input[type="button"]:hover,
.add_to_cart_wrap input[type="submit"]:hover,
.add_to_cart_wrap .button:hover,
.add_to_cart_wrap .btn:hover,
.add_to_cart_wrap a.button:hover,
.add_to_cart_wrap a.btn:hover {
    background: #555555 !important;
    /* 移除按钮移动效果 */
    transform: none !important;
}

/* 平板端购物车按钮优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .add_to_cart_wrap button,
    .add_to_cart_wrap input[type="button"],
    .add_to_cart_wrap input[type="submit"],
    .add_to_cart_wrap .button,
    .add_to_cart_wrap .btn,
    .add_to_cart_wrap a.button,
    .add_to_cart_wrap a.btn {
        font-size: 13px !important;
        padding: 0 12px !important;
        height: 38px !important;
        min-width: 80px !important;
    }
}

/* 手机端购物车按钮优化 */
@media (max-width: 768px) {
    .add_to_cart_wrap button,
    .add_to_cart_wrap input[type="button"],
    .add_to_cart_wrap input[type="submit"],
    .add_to_cart_wrap .button,
    .add_to_cart_wrap .btn,
    .add_to_cart_wrap a.button,
    .add_to_cart_wrap a.btn {
        font-size: 16px !important;
        padding: 0 20px !important;
        height: 44px !important;
        min-width: 120px !important;
        border-radius: 6px !important;
        touch-action: manipulation !important;
    }
}

/* 小手机端购物车按钮优化 */
@media (max-width: 480px) {
    .add_to_cart_wrap button,
    .add_to_cart_wrap input[type="button"],
    .add_to_cart_wrap input[type="submit"],
    .add_to_cart_wrap .button,
    .add_to_cart_wrap .btn,
    .add_to_cart_wrap a.button,
    .add_to_cart_wrap a.btn {
        font-size: 14px !important;
        padding: 0 16px !important;
        height: 42px !important;
        min-width: 100px !important;
    }
}

/* ================================================================ */
/* 全站通用产品价格样式设置 - 适用于整个主题 */
/* ================================================================ */

/* 全站原价样式 ($18.50) - 深灰色，Inter字体 */
/* 适用于：产品列表、单品页、购物车、结账页、订单页、小工具等所有位置 */
.woocommerce .price del,
.woocommerce .price del *,
.woocommerce .price del .amount,
.woocommerce .price del .woocommerce-Price-amount,
.woocommerce .price del .woocommerce-Price-currencySymbol,
.woocommerce-Price-amount del,
.price del,
.price del *,
.price del .amount,
.woocommerce .regular-price,
.woocommerce-price-suffix del,
del .amount,
del .woocommerce-Price-amount,
/* 产品列表页 */
.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del *,
.woocommerce-page ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del *,
/* 单品页 */
.woocommerce div.product .price del,
.woocommerce div.product .price del *,
.single-product .price del,
.single-product .price del *,
/* 购物车页面 */
.woocommerce-cart .price del,
.woocommerce-cart .price del *,
.cart-item .price del,
.cart-item .price del *,
/* 结账页面 */
.woocommerce-checkout .price del,
.woocommerce-checkout .price del *,
/* 订单页面 */
.woocommerce-order .price del,
.woocommerce-order .price del *,
.woocommerce-account .price del,
.woocommerce-account .price del *,
/* 小工具 */
.widget .price del,
.widget .price del *,
.sidebar .price del,
.sidebar .price del *,
/* 相关产品 */
.related .price del,
.related .price del *,
.cross-sells .price del,
.cross-sells .price del *,
.up-sells .price del,
.up-sells .price del * {
    color: #333333 !important;
    font-family: Inter !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: normal !important;
    text-decoration: line-through !important;
}

/* 全站现价样式 ($15.00) - 红色，Helvetica字体 */
/* 适用于：产品列表、单品页、购物车、结账页、订单页、小工具等所有位置 */
.woocommerce .price ins,
.woocommerce .price ins .amount,
.woocommerce .price ins .woocommerce-Price-amount,
.woocommerce-Price-amount ins,
.price ins,
.price ins .amount,
.sale-price,
.woocommerce .sale-price,
.woocommerce .price > .amount,
.woocommerce .price > .woocommerce-Price-amount,
.price > .amount,
.woocommerce-Price-amount,
/* 产品列表页 */
.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins *,
.woocommerce-page ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins *,
.woocommerce ul.products li.product .price > .amount,
.woocommerce-page ul.products li.product .price > .amount,
/* 单品页 */
.woocommerce div.product .price ins,
.woocommerce div.product .price ins *,
.single-product .price ins,
.single-product .price ins *,
.woocommerce div.product .price > .amount,
.single-product .price > .amount,
/* 购物车页面 */
.woocommerce-cart .price ins,
.woocommerce-cart .price ins *,
.cart-item .price ins,
.cart-item .price ins *,
.woocommerce-cart .price > .amount,
.cart-item .price > .amount,
/* 结账页面 */
.woocommerce-checkout .price ins,
.woocommerce-checkout .price ins *,
.woocommerce-checkout .price > .amount,
/* 订单页面 */
.woocommerce-order .price ins,
.woocommerce-order .price ins *,
.woocommerce-account .price ins,
.woocommerce-account .price ins *,
.woocommerce-order .price > .amount,
.woocommerce-account .price > .amount,
/* 小工具 */
.widget .price ins,
.widget .price ins *,
.sidebar .price ins,
.sidebar .price ins *,
.widget .price > .amount,
.sidebar .price > .amount,
/* 相关产品 */
.related .price ins,
.related .price ins *,
.cross-sells .price ins,
.cross-sells .price ins *,
.up-sells .price ins,
.up-sells .price ins *,
.related .price > .amount,
.cross-sells .price > .amount,
.up-sells .price > .amount {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
    text-decoration: none !important;
}

/* 强制现价显示红色 */
.woocommerce .price ins *,
.price ins *,
ins * {
    color: #F5222D !important;
    font-family: Helvetica !important;
    text-decoration: none !important;
}

/* 价格区间连字符样式 */
.woocommerce .price,
.price {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1 !important;
}

/* 价格区间中的连字符 "-" 样式 */
.woocommerce .price .separator,
.woocommerce .price-separator,
.price .separator,
.price-separator {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 4px !important;
}

/* 通用连字符样式 - 匹配所有可能的连字符 */
.woocommerce .price:contains("–"),
.woocommerce .price:contains("-"),
.price:contains("–"),
.price:contains("-") {
    color: #F5222D !important;
}

/* 更具体的价格区间样式 */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.woocommerce .single-product .price {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

/* 使用伪元素处理连字符 */
.woocommerce .price del + ins::before,
.price del + ins::before {
    content: " – " !important;
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 4px !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* 隐藏原始连字符，用我们的样式替换 */
.woocommerce .price .woocommerce-price-suffix,
.price .woocommerce-price-suffix {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
}

/* 针对WooCommerce价格区间的特殊处理 */
.woocommerce .price .amount:first-child + .amount::before,
.price .amount:first-child + .amount::before {
    content: " – " !important;
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 4px !important;
}

/* 强制所有价格容器内的文本显示红色 - 最高优先级 */
.woocommerce .price,
.woocommerce .price *,
.woocommerce .price::before,
.woocommerce .price::after,
.price,
.price *,
.price::before,
.price::after {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
}

/* 覆盖所有可能的连字符和文本节点 */
.woocommerce .price,
.woocommerce .price span,
.woocommerce .price .amount,
.woocommerce .price .woocommerce-Price-amount,
.woocommerce .price .woocommerce-Price-currencySymbol,
.price,
.price span,
.price .amount,
.price .woocommerce-Price-amount,
.price .woocommerce-Price-currencySymbol {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
}

/* 全站强制价格相关文本节点显示红色 */
.woocommerce .price,
.woocommerce .price *,
.price,
.price *,
/* 产品列表页 */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price *,
.woocommerce-page ul.products li.product .price,
.woocommerce-page ul.products li.product .price *,
/* 单品页 */
.woocommerce div.product .price,
.woocommerce div.product .price *,
.single-product .price,
.single-product .price *,
/* 购物车页面 */
.woocommerce-cart .price,
.woocommerce-cart .price *,
.cart-item .price,
.cart-item .price *,
/* 结账页面 */
.woocommerce-checkout .price,
.woocommerce-checkout .price *,
/* 订单页面 */
.woocommerce-order .price,
.woocommerce-order .price *,
.woocommerce-account .price,
.woocommerce-account .price *,
/* 小工具 */
.widget .price,
.widget .price *,
.sidebar .price,
.sidebar .price *,
/* 相关产品 */
.related .price,
.related .price *,
.cross-sells .price,
.cross-sells .price *,
.up-sells .price,
.up-sells .price * {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
}

/* 全站单一价格 (无折扣时) - 显示为红色突出 */
.woocommerce .price:not(:has(del)):not(:has(ins)) .amount,
.woocommerce .price:not(:has(del)):not(:has(ins)) .woocommerce-Price-amount,
.price:not(:has(del)):not(:has(ins)) .amount,
/* 产品列表页单一价格 */
.woocommerce ul.products li.product .price:not(:has(del)):not(:has(ins)) .amount,
.woocommerce-page ul.products li.product .price:not(:has(del)):not(:has(ins)) .amount,
/* 单品页单一价格 */
.woocommerce div.product .price:not(:has(del)):not(:has(ins)) .amount,
.single-product .price:not(:has(del)):not(:has(ins)) .amount,
/* 购物车页面单一价格 */
.woocommerce-cart .price:not(:has(del)):not(:has(ins)) .amount,
.cart-item .price:not(:has(del)):not(:has(ins)) .amount,
/* 结账页面单一价格 */
.woocommerce-checkout .price:not(:has(del)):not(:has(ins)) .amount,
/* 订单页面单一价格 */
.woocommerce-order .price:not(:has(del)):not(:has(ins)) .amount,
.woocommerce-account .price:not(:has(del)):not(:has(ins)) .amount,
/* 小工具单一价格 */
.widget .price:not(:has(del)):not(:has(ins)) .amount,
.sidebar .price:not(:has(del)):not(:has(ins)) .amount,
/* 相关产品单一价格 */
.related .price:not(:has(del)):not(:has(ins)) .amount,
.cross-sells .price:not(:has(del)):not(:has(ins)) .amount,
.up-sells .price:not(:has(del)):not(:has(ins)) .amount {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
}

/* 平板端价格样式优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    /* 原价 (划线价格) */
    .woocommerce .price del,
    .woocommerce .price del .amount,
    .woocommerce .price del .woocommerce-Price-amount,
    .price del,
    .price del .amount {
        font-size: 15px !important;
    }
    
    /* 现价 */
    .woocommerce .price ins,
    .woocommerce .price ins .amount,
    .woocommerce .price > .amount,
    .woocommerce .price > .woocommerce-Price-amount,
    .sale-price,
    .woocommerce .sale-price,
    .woocommerce .price:not(:has(del)):not(:has(ins)) .amount {
        font-size: 18px !important;
    }
    
    /* 平板端价格对齐 */
    .woocommerce .price,
    .price {
        gap: 6px !important;
    }
    
    /* 平板端连字符 */
    .woocommerce .price .separator,
    .price .separator {
        font-size: 18px !important;
    }
}

/* 手机端价格样式优化 */
@media (max-width: 768px) {
    /* 原价 (划线价格) */
    .woocommerce .price del,
    .woocommerce .price del .amount,
    .woocommerce .price del .woocommerce-Price-amount,
    .price del,
    .price del .amount {
        font-size: 16px !important;
        font-weight: 600 !important;
    }
    
    /* 现价 */
    .woocommerce .price ins,
    .woocommerce .price ins .amount,
    .woocommerce .price > .amount,
    .woocommerce .price > .woocommerce-Price-amount,
    .sale-price,
    .woocommerce .sale-price,
    .woocommerce .price:not(:has(del)):not(:has(ins)) .amount {
        font-size: 18px !important;
        font-weight: 600 !important;
    }
    
    /* 手机端价格对齐 */
    .woocommerce .price,
    .price {
        gap: 4px !important;
        flex-wrap: nowrap !important;
    }
    
    /* 手机端连字符 */
    .woocommerce .price .separator,
    .price .separator {
        font-size: 18px !important;
    }
}

/* 小手机端价格样式优化 */
@media (max-width: 480px) {
    /* 原价 (划线价格) */
    .woocommerce .price del,
    .woocommerce .price del .amount,
    .woocommerce .price del .woocommerce-Price-amount,
    .price del,
    .price del .amount {
        font-size: 14px !important;
    }
    
    /* 现价 */
    .woocommerce .price ins,
    .woocommerce .price ins .amount,
    .woocommerce .price > .amount,
    .woocommerce .price > .woocommerce-Price-amount,
    .sale-price,
    .woocommerce .sale-price,
    .woocommerce .price:not(:has(del)):not(:has(ins)) .amount {
        font-size: 16px !important;
    }
    
    /* 小手机端价格对齐 */
    .woocommerce .price,
    .price {
        gap: 3px !important;
        font-size: 14px !important;
    }
    
    /* 小手机端连字符 */
    .woocommerce .price .separator,
    .price .separator {
        font-size: 16px !important;
    }
}

/* ================================================================ */
/* JavaScript辅助样式 - 处理动态生成的连字符 */
/* ================================================================ */

/* 为JavaScript添加的红色连字符类 */
.red-separator {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

/* 通用文本节点强制样式 */
.woocommerce .price {
    color: #F5222D !important;
}

.woocommerce .price > * {
    color: inherit !important;
}

.woocommerce-table--order-details .woocommerce-table__line-item .woocommerce-table__product-name a{
    color: var(--theme-color-text_dark) !important;
}

/* 全站最高优先级强制样式 - 覆盖所有其他样式 */
html body .woocommerce .price,
html body .price,
html body .woocommerce ul.products li.product .price,
html body .woocommerce-page ul.products li.product .price,
html body .woocommerce div.product .price,
html body .single-product .price,
html body .woocommerce-cart .price,
html body .cart-item .price,
html body .woocommerce-checkout .price,
html body .woocommerce-order .price,
html body .woocommerce-account .price,
html body .widget .price,
html body .sidebar .price,
html body .related .price,
html body .cross-sells .price,
html body .up-sells .price {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
}

html body .woocommerce .price *:not(del):not(del *),
html body .price *:not(del):not(del *),
html body .woocommerce ul.products li.product .price *:not(del):not(del *),
html body .woocommerce-page ul.products li.product .price *:not(del):not(del *),
html body .woocommerce div.product .price *:not(del):not(del *),
html body .single-product .price *:not(del):not(del *),
html body .woocommerce-cart .price *:not(del):not(del *),
html body .cart-item .price *:not(del):not(del *),
html body .woocommerce-checkout .price *:not(del):not(del *),
html body .woocommerce-order .price *:not(del):not(del *),
html body .woocommerce-account .price *:not(del):not(del *),
html body .widget .price *:not(del):not(del *),
html body .sidebar .price *:not(del):not(del *),
html body .related .price *:not(del):not(del *),
html body .cross-sells .price *:not(del):not(del *),
html body .up-sells .price *:not(del):not(del *) {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
}

/* 全站原价强制覆盖 - 确保删除线价格显示深灰色 */
html body .woocommerce .price del,
html body .woocommerce .price del *,
html body .price del,
html body .price del *,
html body .woocommerce ul.products li.product .price del,
html body .woocommerce ul.products li.product .price del *,
html body .woocommerce-page ul.products li.product .price del,
html body .woocommerce-page ul.products li.product .price del *,
html body .woocommerce div.product .price del,
html body .woocommerce div.product .price del *,
html body .single-product .price del,
html body .single-product .price del *,
html body .woocommerce-cart .price del,
html body .woocommerce-cart .price del *,
html body .cart-item .price del,
html body .cart-item .price del *,
html body .woocommerce-checkout .price del,
html body .woocommerce-checkout .price del *,
html body .woocommerce-order .price del,
html body .woocommerce-order .price del *,
html body .woocommerce-account .price del,
html body .woocommerce-account .price del *,
html body .widget .price del,
html body .widget .price del *,
html body .sidebar .price del,
html body .sidebar .price del *,
html body .related .price del,
html body .related .price del *,
html body .cross-sells .price del,
html body .cross-sells .price del *,
html body .up-sells .price del,
html body .up-sells .price del * {
    color: #333333 !important;
    font-family: Inter !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
}

/* ================================================================ */
/* 购物车页面价格红色修改 - 仅修改颜色，保持其他样式 */
/* ================================================================ */

/* 购物车表格中的价格 - 只修改颜色为红色，排除表格标题 */
html body.woocommerce-cart table.cart tbody .product-price,
html body.woocommerce-cart table.cart tbody .product-price *,
html body.woocommerce-cart table.cart tbody .product-price .woocommerce-Price-amount,
html body.woocommerce-cart table.cart tbody .product-price .woocommerce-Price-currencySymbol,
html body.woocommerce-cart table.cart tbody .product-subtotal,
html body.woocommerce-cart table.cart tbody .product-subtotal *,
html body.woocommerce-cart table.cart tbody .product-subtotal .woocommerce-Price-amount,
html body.woocommerce-cart table.cart tbody .product-subtotal .woocommerce-Price-currencySymbol,
html body.woocommerce-cart table.cart tbody td.product-price,
html body.woocommerce-cart table.cart tbody td.product-price *,
html body.woocommerce-cart table.cart tbody td.product-subtotal,
html body.woocommerce-cart table.cart tbody td.product-subtotal *,
html body.woocommerce-cart .price:not(thead *):not(th *),
html body.woocommerce-cart .price *:not(thead *):not(th *),
html body.woocommerce-cart .price .woocommerce-Price-amount:not(thead *):not(th *),
html body.woocommerce-cart .price .woocommerce-Price-currencySymbol:not(thead *):not(th *),
html body.cart-item .price,
html body.cart-item .price *,
html body.cart-item .price .woocommerce-Price-amount,
html body.cart-item .price .woocommerce-Price-currencySymbol {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
    text-decoration: none !important;
}

/* 购物车总计区域价格 - 只修改颜色为红色 */
html body.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-Price-amount,
html body.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-Price-currencySymbol,
html body.woocommerce-cart .order-total .woocommerce-Price-amount,
html body.woocommerce-cart .order-total .woocommerce-Price-currencySymbol {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
    text-decoration: none !important;
}

/* ================================================================ */
/* 电脑端购物车总计样式 - 与平板端保持一致 */
/* ================================================================ */

/* 电脑端购物车总计区域样式优化 */
@media (min-width: 769px) {
    html body.woocommerce-cart .cart-collaterals {
        width: 100% !important;
        float: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        margin-top: 30px !important;
    }
    
    html body.woocommerce-cart .cart-collaterals .cart_totals {
        width: 400px !important;
        max-width: 100% !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
        border-radius: 8px !important;
        padding: 30px !important;
        margin: 0 !important;
    }
    
    html body.woocommerce-cart .cart_totals h2 {
        text-align: center !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #e9ecef !important;
    }
    
    html body.woocommerce-cart .cart_totals table {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    html body.woocommerce-cart .cart_totals table tr {
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    html body.woocommerce-cart .cart_totals table tr:last-child {
        border-bottom: none !important;
        font-weight: 700 !important;
    }
    
    html body.woocommerce-cart .cart_totals table th,
    html body.woocommerce-cart .cart_totals table td {
        padding: 15px 0 !important;
        text-align: left !important;
        vertical-align: middle !important;
    }
    
    html body.woocommerce-cart .cart_totals table td {
        text-align: right !important;
    }
    
    html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
        margin-top: 20px !important;
        text-align: center !important;
    }
    
    html body.woocommerce-cart .cart_totals .checkout-button {
        width: 100% !important;
        padding: 15px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
    }
}

/* ================================================================ */
/* 手机端购物车总计样式 - 兼容布局 */
/* ================================================================ */

/* 手机端购物车总计区域样式优化 */
@media (max-width: 768px) {
    html body.woocommerce-cart .cart-collaterals {
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin-top: 20px !important;
        padding: 0 15px !important;
    }
    
    html body.woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        max-width: 100% !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
        border-radius: 8px !important;
        padding: 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    html body.woocommerce-cart .cart_totals h2 {
        text-align: center !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        margin-bottom: 15px !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid #e9ecef !important;
    }
    
    html body.woocommerce-cart .cart_totals table {
        width: 100% !important;
        margin-bottom: 0 !important;
        font-size: 14px !important;
    }
    
    html body.woocommerce-cart .cart_totals table tr {
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    html body.woocommerce-cart .cart_totals table tr:last-child {
        border-bottom: none !important;
        font-weight: 700 !important;
    }
    
    html body.woocommerce-cart .cart_totals table th,
    html body.woocommerce-cart .cart_totals table td {
        padding: 12px 0 !important;
        text-align: left !important;
        vertical-align: middle !important;
        font-size: 14px !important;
    }
    
    html body.woocommerce-cart .cart_totals table td {
        text-align: right !important;
    }
    
    html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
        margin-top: 15px !important;
        text-align: center !important;
    }
    
    html body.woocommerce-cart .cart_totals .checkout-button {
        width: 100% !important;
        padding: 15px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }
}

/* 小手机端进一步优化 */
@media (max-width: 480px) {
    html body.woocommerce-cart .cart-collaterals {
        padding: 0px 0px !important;
        margin-top: 15px !important;
    }

    html body.woocommerce-cart .cart-collaterals .cart_totals {
        padding: 15px !important;
    }

    html body.woocommerce-cart .cart_totals h2 {
        font-size: 15px !important;
        margin-bottom: 12px !important;
        padding-bottom: 6px !important;
    }

    html body.woocommerce-cart .cart_totals table {
        font-size: 13px !important;
    }

    html body.woocommerce-cart .cart_totals table th,
    html body.woocommerce-cart .cart_totals table td {
        padding: 10px 0 !important;
        font-size: 13px !important;
    }

    html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
        margin-top: 12px !important;
    }

    html body.woocommerce-cart .cart_totals .checkout-button {
        padding: 15px !important;
        font-size: 13px !important;
    }
}

/* ================================================================ */
/* 手机端购物车、结账和订单页面左右留白8px */
/* ================================================================ */

@media (max-width: 768px) {
    /* 购物车页面左右留白 */
    html body.woocommerce-cart .content_wrap,
    html body.woocommerce-cart .page_content_wrap {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* 结账页面左右留白 */
    html body.woocommerce-checkout .content_wrap,
    html body.woocommerce-checkout .page_content_wrap {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* 订单详情页面左右留白 */
    html body.woocommerce-order-received .content_wrap,
    html body.woocommerce-order-received .page_content_wrap,
    html body.woocommerce-view-order .content_wrap,
    html body.woocommerce-view-order .page_content_wrap {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* ================================================================ */
/* 手机端购物车变体信息间距优化 */
/* ================================================================ */

/* 手机端购物车变体信息样式调整 */
@media (max-width: 768px) {
    /* 变体信息容器 */
    .woocommerce table.cart .variation,
    .woocommerce-page table.cart .variation {
        margin: 5px 0 0 0 !important;      /* 上边距5px，左边距0 */
        padding: 0 !important;             /* 移除内边距 */
        text-align: left !important;       /* 左对齐 */
    }
    
    /* 变体信息列表 */
    .woocommerce table.cart .variation dl,
    .woocommerce-page table.cart .variation dl {
        margin: 0 !important;              /* 移除外边距 */
        padding: 0 !important;             /* 移除内边距 */
    }
    
    /* 变体信息项目 */
    .woocommerce table.cart .variation dt,
    .woocommerce table.cart .variation dd,
    .woocommerce-page table.cart .variation dt,
    .woocommerce-page table.cart .variation dd {
        margin: 0 !important;              /* 移除外边距 */
        padding: 0 !important;             /* 移除内边距 */
        font-size: 13px !important;        /* 字体大小 */
        color: #666 !important;            /* 灰色文字 */
        line-height: 1.6 !important;       /* 行高 */
    }
    
    /* 变体标签样式 - 与值同行展示 */
    .woocommerce table.cart .variation dt,
    .woocommerce-page table.cart .variation dt {
        display: inline-block !important;  /* 内联块级显示，确保与值同行 */
        font-weight: 500 !important;       /* 稍微加粗 */
        margin-right: 4px !important;      /* 标签和值之间留出空隙 */
        vertical-align: top !important;
    }
    
    /* 变体值样式 - 默认与标签同一行 */
    .woocommerce table.cart .variation dd,
    .woocommerce-page table.cart .variation dd {
        display: inline !important;        /* 与标签同一行 */
        vertical-align: top !important;
    }
    
    /* 每组属性结束后换行 */
    .woocommerce table.cart .variation dd::after,
    .woocommerce-page table.cart .variation dd::after {
        content: "";
        display: block;
        margin-bottom: 4px;
    }
    
    /* 最后一组不需要额外外边距 */
    .woocommerce table.cart .variation dd:last-child::after,
    .woocommerce-page table.cart .variation dd:last-child::after {
        margin-bottom: 0;
    }
    
    /* 清除dd内部p标签的margin，避免额外空白 */
    .woocommerce table.cart .variation dd p,
    .woocommerce-page table.cart .variation dd p {
        margin: 0 !important;
        display: inline !important;
    }
    
    /* 图片信息单独一行显示 */
    .woocommerce table.cart .variation dd.variation-Image,
    .woocommerce-page table.cart .variation dd.variation-Image {
        display: block !important;         /* 图片信息独占一行 */
        margin-top: 4px !important;
    }
    
    .woocommerce table.cart .variation dd.variation-Image::after,
    .woocommerce-page table.cart .variation dd.variation-Image::after {
        content: none;
        display: none;
    }
    
    .woocommerce table.cart .variation dd.variation-Image p,
    .woocommerce-page table.cart .variation dd.variation-Image p {
        display: block !important;
    }
    
    /* 如果变体信息在产品名称内部 */
    .woocommerce table.cart .product-name .variation,
    .woocommerce-page table.cart .product-name .variation {
        margin-top: 3px !important;        /* 更小的上边距 */
        margin-left: 0 !important;         /* 左边距0，与产品名称对齐 */
    }
    
    /* 产品名称内的变体信息 */
    .woocommerce table.cart .product-name-inner .variation,
    .woocommerce-page table.cart .product-name-inner .variation {
        margin-top: 3px !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* 小手机端进一步优化 */
@media (max-width: 480px) {
    /* 小屏幕下的变体信息 */
    .woocommerce table.cart .variation,
    .woocommerce-page table.cart .variation {
        margin-top: 3px !important;        /* 更小的上边距 */
        font-size: 12px !important;        /* 更小的字体 */
    }
    
    .woocommerce table.cart .variation dt,
    .woocommerce table.cart .variation dd,
    .woocommerce-page table.cart .variation dt,
    .woocommerce-page table.cart .variation dd {
        font-size: 12px !important;        /* 更小的字体 */
    }
    
    .woocommerce table.cart .variation dd::after,
    .woocommerce-page table.cart .variation dd::after {
        margin-bottom: 2px;               /* 缩小组间距 */
    }
}

/* 
==========================================================================
AI Membership 功能样式
==========================================================================
*/


/* AI Membership页面样式 */
.ai-membership-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ai-membership-header {
    text-align: center;
    margin-bottom: 40px;
}

.ai-membership-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.ai-membership-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 配额统计区域 */
.quota-stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    color: white;
}

.quota-stats-section h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 会员等级网格 */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 会员卡片 */
.membership-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.membership-card.basic::before {
    background: linear-gradient(90deg, #2196F3, #1976D2);
}

.membership-card.premium::before {
    background: linear-gradient(90deg, #FF9800, #F57C00);
}

.membership-card.professional::before {
    background: linear-gradient(90deg, #9C27B0, #7B1FA2);
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* 当前等级标识 */
.current-tier-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    padding: 8px 40px;
    font-size: 0.9rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    z-index: 10;
}

.membership-card.current-tier {
    border: 3px solid #007cba;
    box-shadow: 0 25px 50px rgba(0,123,186,0.3), 0 0 30px rgba(0,123,186,0.2);
}

.membership-card.current-tier:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,123,186,0.4), 0 0 40px rgba(0,123,186,0.3);
}

.membership-level {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #666;
    text-align: center;
}

.membership-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.membership-price {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* 配额部分 */
.quota-section {
    margin-bottom: 25px;
}

.quota-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.quota-item:last-child {
    border-bottom: none;
}

.quota-label {
    font-weight: 500;
    color: #666;
}

.quota-value {
    font-weight: bold;
    color: #333;
}

/* 功能列表 */
.features-section {
    margin-bottom: 25px;
    flex-grow: 1;
}

.features-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-item {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 30px;
    text-align: left;
}

.feature-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    margin-right: 8px;
}

/* 无等级信息提示 */
.no-tiers-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-membership-page {
        padding: 15px;
    }
    
    .ai-membership-header h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .membership-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .membership-card {
        padding: 20px;
        min-height: auto;
    }
    
    .features-section {
        flex-grow: 0;
    }
    
    .membership-name {
        font-size: 1.5rem;
    }
    
    .membership-price {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}




.cta-button {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    width: 100%;
    align-self: flex-end;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 置灰按钮样式 */
.cta-button.disabled,
.cta-button:disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
}

.cta-button.disabled:hover,
.cta-button:disabled:hover {
    background: #cccccc !important;
    color: #666666 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 桌面端响应式调整样式 */
/* 隐藏桌面端菜单文字 */
@media (max-width: 1100px) and (min-width: 768px) {
    .wishlist-text-desktop, .gallery-text-desktop, .cart-text-desktop {
        display: none !important;
    }
}

/* 调整搜索框宽度 */
@media (max-width: 1000px) and (min-width: 900px) {
    .header-search form .search-wrapper {
        width: 300px !important;
    }
}

@media (max-width: 900px) and (min-width: 768px) {
    .header-search form .search-wrapper {
        width: 200px !important;
    }
}

/* ==========================================
   平板端和中屏设备产品列表布局优化
   ========================================== */

/* 平板端和中屏设备（768px - 1300px）产品列表页每行显示4个产品 */
@media (min-width: 768px) and (max-width: 1300px) {
    /* 强制产品列表使用4列布局 - 覆盖所有可能的column类 */
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0px !important;
    }

    /* 确保每个产品项占据正确的宽度 - 覆盖column-1_3等类 */
    .woocommerce ul.products li.product,
    .woocommerce ul.products li.product.column-1_3,
    .woocommerce ul.products li.product.column-1_4,
    .woocommerce-page ul.products li.product,
    .woocommerce-page ul.products li.product.column-1_3,
    .woocommerce-page ul.products li.product.column-1_4 {
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
    }

    /* 相关产品和追加销售也使用4列 - 覆盖所有可能的类 */
    .woocommerce .related.products ul.products,
    .woocommerce .related.products ul.products.columns-3,
    .woocommerce .related.products ul.products.columns-4,
    .woocommerce .upsells.products ul.products,
    .woocommerce .upsells.products ul.products.columns-3,
    .woocommerce .upsells.products ul.products.columns-4 {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 7px !important;
    }

    /* 覆盖相关产品中可能的column-1_3类 */
    .woocommerce .related.products ul.products li.product,
    .woocommerce .related.products ul.products li.product.column-1_3,
    .woocommerce .related.products ul.products li.product.column-1_4,
    .woocommerce .upsells.products ul.products li.product,
    .woocommerce .upsells.products ul.products li.product.column-1_3,
    .woocommerce .upsells.products ul.products li.product.column-1_4 {
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
    }
    .woocommerce ul.products li.product a img, .woocommerce-page ul.products li.product a img {
        max-height: 270px !important;
        border-radius: 10px !important;
        height: 270px !important;
    }
}

/* ========================================
   手机端个人信息页面样式优化
   ======================================== */
@media (max-width: 768px) {
    /* 个人信息页面容器左右留白8px */
    html body.woocommerce-account .content_wrap,
    html body.woocommerce-account .page_content_wrap {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* 订单表格整体样式 - 固定布局填满容器 */
    html body.woocommerce-account table.my_account_orders {
        width: 100% !important;
        table-layout: fixed !important;
        font-size: 11px !important;
    }

    html body.woocommerce-account table.my_account_orders th,
    html body.woocommerce-account table.my_account_orders td {
        padding: 8px 4px !important;
        font-size: 11px !important;
    }

    

    /* 设置剩余4列的宽度百分比 - ORDER, STATUS, TOTAL, ACTIONS */
    html body.woocommerce-account table.my_account_orders th:nth-child(1),
    html body.woocommerce-account table.my_account_orders td:nth-child(1) {
        width: 20% !important; /* ORDER */
    }

    html body.woocommerce-account table.my_account_orders th:nth-child(3),
    html body.woocommerce-account table.my_account_orders td:nth-child(3) {
        width: 25% !important; /* STATUS */
    }

    html body.woocommerce-account table.my_account_orders th:nth-child(4),
    html body.woocommerce-account table.my_account_orders td:nth-child(4) {
        width: 30% !important; /* TOTAL */
    }

    html body.woocommerce-account table.my_account_orders th:nth-child(5),
    html body.woocommerce-account table.my_account_orders td:nth-child(5) {
        width: 25% !important; /* ACTIONS */
    }

    /* 订单列表 - TOTAL列价格和"for N item"分两行显示 */
    html body.woocommerce-account table.my_account_orders .woocommerce-orders-table__cell-order-total .woocommerce-Price-amount {
        display: block !important;
        margin-bottom: 2px !important;
    }

    /* ACTIONS列按钮样式优化 */
    html body.woocommerce-account table.my_account_orders .woocommerce-button.view {
        padding: 4px 8px !important;
        font-size: 14px !important;
    }
    .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column--billing-address{
        width: 100% !important;
        float: none !important;
    }

    .woocommerce-MyAccount-content  .woocommerce-customer-details .woocommerce-column--shipping-address {
        width: 100% !important;
        float: none !important;
        margin-top: 20px !important;
    }
    .woocommerce table.shop_table tbody:first-child tr:first-child td:last-child{
        max-width: 120px !important;
        width: 120px !important;
    }
    
}

@media (max-width: 480px) {
    html body.woocommerce-account .content_wrap,
    html body.woocommerce-account .page_content_wrap {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
}
html .woocommerce-MyAccount-content .woocommerce-MyAccount-orders tbody th:nth-child(1)   {
    
    border-bottom: 1px solid #D8DEE6 !important;
}
 /* 订单号颜色 - 仅修改第一列数据单元格的颜色，不修改表头 */
 html .woocommerce-MyAccount-content .woocommerce-MyAccount-orders tbody th:nth-child(1),
 html .woocommerce-MyAccount-content .woocommerce-MyAccount-orders tbody th:nth-child(1) a {
     color: #F9627D !important;
     background-color: #FFFFFF !important;
     text-decoration: none; 
 }

 html .woocommerce-MyAccount-content .woocommerce-MyAccount-orders tbody th:nth-child(1),
 html .woocommerce-MyAccount-content .woocommerce-MyAccount-orders tbody th:nth-child(1) a:hover {
     color: #000000 !important;
 }

 html .woocommerce-MyAccount-content .woocommerce-pagination--without-numbers .woocommerce-Button{
     background: #000 !important;
     color: #fff !important;
     border-radius: 6px !important;
 }

 html .woocommerce-MyAccount-content .woocommerce-pagination--without-numbers .woocommerce-Button:hover{
    background: #333 !important;
    color: #fff !important;
    border-radius: 6px !important;
}