/* 
 * Fortune Gems Theme Custom Styles
 * 所有样式都保留在Gutenberg编辑器中可编辑
 */

/* Estilos base - manteniendo el diseño original */
.page-holder {
    padding: 0;
    max-width: 100%;
    margin: 0;
}

.page-holder > .header,
.page-holder > .footer {
    max-width: 100%;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.bg-light {
    background-color: transparent;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.mr-4 {
    margin-right: 1.5rem !important;
}

.p-0 {
    padding: 0 !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-lg-5 {
    padding: 3rem !important;
}

.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.pr-sm-0 {
    padding-right: 0 !important;
}

.pl-sm-0 {
    padding-left: 0 !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-dark {
    color: #212529 !important;
}

.text-gray {
    color: #6c757d !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.small {
    font-size: 0.875rem !important;
}

.bg-white {
    background-color: transparent !important;
}

/* Header保持紫色渐变背景 */
.header.bg-white {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.footer.bg-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}

.border {
    border: 1px solid #dee2e6 !important;
}

.border-0 {
    border: 0 !important;
}

.shadow-0 {
    box-shadow: none !important;
}

.d-flex {
    display: flex !important;
}

.d-block {
    display: block !important;
}

.d-inline-block {
    display: inline-block !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.position-relative {
    position: relative !important;
}

.h-100 {
    height: 100% !important;
}

.w-100 {
    width: 100% !important;
}

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

.reset-anchor {
    color: inherit;
    text-decoration: none;
}

.reset-anchor:hover {
    color: inherit;
    text-decoration: underline;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-dark {
    color: #fff;
    background-color: #212529;
    border-color: #212529;
}

.btn-dark:hover {
    color: #fff;
    background-color: #1c1f23;
    border-color: #1a1e21;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Cart Button Styles */
.btn-cart {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6), 0 0 20px rgba(118, 75, 162, 0.4);
        transform: scale(1.02);
    }
}

.cart-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.cart-button:hover::before {
    left: 100%;
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.cart-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.cart-button i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.cart-button:hover i {
    transform: scale(1.2) rotate(-15deg);
}

.cart-button span {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.wp-block-button__link {
    white-space: nowrap !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 1rem 1.5rem !important;
    border: none !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.wp-block-button__link:hover::before {
    left: 100%;
}

.wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

.wp-block-button__link:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4) !important;
}

.wp-block-button__link i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.wp-block-button__link:hover i {
    transform: scale(1.2) rotate(-15deg);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    text-align: center;
}

.quantity-selector {
    white-space: nowrap;
    min-width: 0;
}

.quantity-selector span {
    white-space: nowrap;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.dec-btn, .inc-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1.2rem;
    line-height: 1;
}

.dec-btn:hover, .inc-btn:hover {
    opacity: 0.7;
}

.no-select {
    user-select: none;
}

.product {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.product img {
    transition: transform 0.3s ease;
    border-radius: 0.75rem;
}

.product:hover img {
    transform: scale(1.05);
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-rating {
    font-size: 1.2rem;
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
}

.product-tabs {
    border-bottom: 1px solid #dee2e6;
}

/* Tab标题深色样式 - 必须在全局.nav-link规则之后，使用最高优先级 */
.product-tabs h2.nav-link,
.product-tabs h2.nav-link.active,
.product-tabs .nav-item h2.nav-link,
.product-tabs .nav-item h2.nav-link.active,
.product-tabs .nav-link h2,
.product-tabs .nav-link.active h2,
div.product-tabs div.nav-item h2.nav-link,
div.product-tabs div.nav-item h2.nav-link.active {
    color: #212529 !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    margin: 0 !important;
    padding: 0.75rem 1.25rem !important;
    display: inline-block !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    cursor: default !important;
    box-shadow: none !important;
}

.product-tabs h2.nav-link:hover,
.product-tabs h2.nav-link:focus,
.product-tabs .nav-item h2.nav-link:hover,
.product-tabs .nav-item h2.nav-link:focus {
    background-color: transparent !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    color: #212529 !important;
    border: none !important;
}

/* 确保product-tabs中的所有nav-link元素都不会继承header的白色样式 */
.product-tabs .nav-link,
.product-tabs .nav-item .nav-link,
.product-tabs .nav-link.active,
.product-tabs .nav-item .nav-link.active,
div.product-tabs .nav-link,
div.product-tabs .nav-link.active {
    color: #212529 !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.fade {
    transition: opacity 0.15s linear;
}

.fade.show {
    opacity: 1;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.product-actions.row {
    flex-wrap: nowrap !important;
    margin-right: 0;
    margin-left: 0;
}

.col-sm-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-sm-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-quantity {
    flex: 0 0 auto;
    min-width: 200px;
    order: 2; /* 桌面端：选择框在右边（后面） */
}

.col-cart {
    flex: 1 1 auto;
    min-width: 0;
    order: 1; /* 桌面端：按钮在左边（前面） */
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.mx-1 {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
}

.pr-2 {
    padding-right: 0.5rem !important;
}

.pl-2 {
    padding-left: 0.5rem !important;
}

/* 调换产品列的顺序 - 桌面端：图片在左，文字在右 */
.product-columns {
    display: flex;
}

.product-info-column {
    order: 2;
    flex-basis: 50%;
    max-width: 50%;
}

.product-gallery-column {
    order: 1;
    flex-basis: 50%;
    max-width: 50%;
}

.product-gallery {
    margin-bottom: 2rem;
}

.main-product-image {
    margin-bottom: 1rem;
}

.main-product-image img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-thumbnails img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.product-thumbnails img:hover {
    opacity: 0.7;
}

/* Player Reviews Section Styles */
.player-reviews-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.reviews-columns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.review-header {
    margin-bottom: 1rem;
}

.review-rating {
    font-size: 1.1rem;
    color: #ffc107;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.review-author {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.review-author strong {
    color: #212529;
    font-weight: 600;
}

.review-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.8rem;
    margin-bottom: 0;
    color: #6c757d;
}

.related-products {
    margin-top: 3rem;
}

/* Product Meta Styles - 让产品元信息显示在一行 */
.product-meta {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.product-meta li {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0 !important;
    white-space: nowrap;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-bottom: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.header.full-width,
.footer.full-width {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* 确保所有页面的footer样式一致 */
footer.footer,
.footer.bg-dark.full-width {
    margin-top: 4rem !important;
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

/* 确保footer在page-holder内正确显示 */
.page-holder > footer.footer,
.page-holder > .footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.header.full-width .container,
.footer.full-width .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* 旧的navbar基础样式 - 已被.header .navbar覆盖 */

.header .nav-link i,
.header .nav-link small {
    color: rgba(255, 255, 255, 0.9) !important;
}

.header .nav-link:hover i,
.header .nav-link:hover small {
    color: #fff !important;
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.4em solid rgba(255, 255, 255, 0.8);
    border-right: 0.4em solid transparent;
    border-bottom: 0;
    border-left: 0.4em solid transparent;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 12rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 0.95rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    clear: both;
    font-weight: 500;
    color: #495057;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-item:hover::before,
.dropdown-item:focus::before {
    transform: scaleY(1);
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #667eea;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding-left: 1.5rem;
}

/* Footer Styles */
.footer {
    margin-top: 4rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 0;
    position: relative;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: #667eea;
}

.footer-link:hover {
    color: #fff;
    padding-left: 1.5rem;
    transform: translateX(5px);
}

.footer-link:hover::before {
    opacity: 1;
    left: 0;
}

.bg-dark {
    background-color: transparent !important;
}

.text-white {
    color: #fff !important;
}

.footer .border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 2rem;
    padding-top: 2rem;
}

/* Estilos para avisos de juego responsable +18 */
.text-warning {
    color: #ffc107 !important;
    font-weight: 700;
}

.footer .text-warning {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer p.text-white.small {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer .mb-2 {
    margin-bottom: 0.75rem !important;
}

.footer .mb-3 {
    margin-bottom: 1rem !important;
}

.footer .mb-4 {
    margin-bottom: 1.5rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.text-center {
    text-align: center !important;
}

.text-md-start {
    text-align: left !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

/* 所有图片通用圆角样式 */
img {
    border-radius: 0.75rem;
}

.wp-block-image img,
.wp-block-image figure img,
.wp-block-gallery img,
.wp-block-gallery figure img {
    border-radius: 0.75rem;
}

/* 确保所有图片元素都有圆角 */
figure img,
.wp-image-117,
.wp-image-102,
.wp-image-103,
.wp-image-104,
.wp-image-106,
.wp-image-109,
.wp-image-110,
.wp-image-111,
.wp-image-112 {
    border-radius: 0.75rem;
}

@media (max-width: 768px) {
    /* 确保body和html在移动端满屏 */
    body, html {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    
    .main-content {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px 10px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    .page-holder {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .wp-block-columns {
        flex-direction: column;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 2rem;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* 移动端：调换顺序，文字在上（order: 1），图片在下（order: 2）*/
    /* HTML中图片列在前，文字列在后，所以用order调换显示顺序 */
    .product-columns {
        flex-direction: column;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 移动端：调换顺序，图片在上（order: 1），文字在下（order: 2）*/
    .product-info-column {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .product-gallery-column {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .product-gallery {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .main-product-image,
    .main-product-image img {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 移动端：三张缩略图横向排列一行显示 */
    .product-thumbnails,
    .wp-block-gallery.product-thumbnails {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        width: 100% !important;
        margin-top: 1rem !important;
        columns: auto !important;
    }
    
    .product-thumbnails figure,
    .product-thumbnails .wp-block-image {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
        width: auto !important;
        max-width: none !important;
    }
    
    .product-thumbnails img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        aspect-ratio: 1 / 1;
    }
    
    .product-thumbnails a {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .row {
        flex-direction: column;
    }
    
    .product-actions.row {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }
    
    .col-sm-5, .col-sm-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .col-quantity {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 1rem !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        order: 2 !important; /* 手机端：选择框在下面 */
    }
    
    .col-cart {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
        order: 1 !important; /* 手机端：按钮在上面 */
    }
    
    .col-quantity .wp-block-group,
    .col-cart .wp-block-group {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .quantity-selector {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .col-cart .wp-block-buttons,
    .col-cart .wp-block-button {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .col-cart .wp-block-button__link {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-collapse {
        width: 100%;
        margin-top: 1rem;
    }
    
    .dropdown-menu {
        position: static;
        display: block;
        margin-top: 0.5rem;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
    }
    
    .footer .wp-block-columns {
        flex-direction: column;
    }
    
    .footer .wp-block-column {
        margin-bottom: 2rem;
    }
    
    /* 确保所有内容区域在移动端满屏显示 */
    .product-description-section,
    .tab-content,
    .tab-pane {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .tab-pane {
        padding: 1rem !important;
    }
    
    .related-products {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .related-products .wp-block-column {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    /* 确保图片和内容在移动端满屏 */
    .wp-block-image,
    .wp-block-image img,
    .wp-block-gallery,
    .wp-block-gallery img {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0.75rem !important;
    }
    
    /* 移动端所有图片保持圆角 */
    img {
        border-radius: 0.75rem !important;
    }
    
    /* 移动端评论模块样式 */
    .player-reviews-section {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
        padding: 0 !important;
    }
    
    .reviews-columns {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .reviews-columns .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .review-card {
        padding: 1.25rem !important;
        border-radius: 0.75rem !important;
    }
    
    .review-text {
        font-size: 0.875rem !important;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 强制product-tabs中的标题为深色 - 最高优先级规则，放在文件末尾 */
div.wp-block-group.product-description-section .product-tabs h2.nav-link,
div.wp-block-group.product-description-section .product-tabs h2.nav-link.active,
div.wp-block-group.product-description-section .product-tabs .nav-item h2.nav-link,
div.wp-block-group.product-description-section .product-tabs .nav-item h2.nav-link.active,
.wp-block-group.product-description-section .product-tabs h2.nav-link.active,
.product-description-section .product-tabs h2.nav-link.active,
body .product-tabs h2.nav-link.active,
html body .product-tabs h2.nav-link.active {
    color: #212529 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Modal弹窗样式 - 确保在最上层 */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    /* 增强背景遮罩，让背景更暗，弹窗内容更突出 */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.9) 100%) !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    /* 添加背景模糊效果，让背景文字更模糊 */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 2147483647 !important; /* 最大z-index值，确保在最上层 */
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease !important;
    /* 确保弹窗在所有元素之上 */
    isolation: isolate !important;
    transform: translateZ(0) !important; /* 创建新的层叠上下文 */
    will-change: opacity, visibility !important;
}

/* 当添加show-modal class时，显示弹窗 - 使用最高优先级，覆盖所有其他规则 */
html body #modal-overlay.show-modal,
html body .modal-overlay.show-modal,
#modal-overlay.show-modal,
.modal-overlay.show-modal {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    z-index: 2147483647 !important; /* 最大z-index值 */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    isolation: isolate !important;
    transform: translateZ(0) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-container {
    /* 增强背景色，确保内容清晰可见 */
    background: #ffffff !important;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%) !important;
    /* 添加明显的边框 */
    border: 3px solid rgba(102, 126, 234, 0.3) !important;
    border-radius: 16px !important;
    max-width: 800px !important;
    width: calc(100% - 40px) !important;
    max-width: min(800px, calc(100vw - 40px)) !important; /* 自适应客户端宽度 */
    max-height: 90vh !important;
    max-height: min(90vh, calc(100vh - 40px)) !important; /* 自适应客户端高度 */
    min-height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    /* 增强阴影效果，让弹窗更突出 */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 10px 30px rgba(102, 126, 234, 0.2) !important;
    animation: slideUp 0.3s ease;
    position: relative !important;
    margin: auto !important;
    z-index: 2147483647 !important; /* 确保容器也在最上层 */
    align-self: center !important;
    flex-shrink: 0 !important;
    /* 确保容器在所有内容之上 */
    isolation: isolate !important;
    transform: translateZ(0) !important;
    /* 添加内部阴影，增强层次感 */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 10px 30px rgba(102, 126, 234, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    /* 增强头部渐变背景 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 3s ease infinite !important;
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
    /* 添加头部阴影 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.modal-title {
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.25) !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    color: #fff !important;
    font-size: 2rem;
    line-height: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

.modal-body {
    padding: 2rem;
    line-height: 1.8;
    color: #212529;
    font-size: 1rem;
    /* 确保内容区域背景清晰 */
    background: #ffffff !important;
    /* 添加内容区域的内边距和样式 */
    position: relative;
}

.modal-body h3 {
    color: #667eea;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.8;
}

.modal-body ul,
.modal-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: #495057;
}

.modal-body li {
    margin-bottom: 0.75rem;
    color: #495057;
    line-height: 1.7;
}

.modal-body strong {
    color: #212529;
    font-weight: 600;
}

/* 添加内容区域的滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 响应式设计 - 移动端 */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px !important;
        align-items: flex-start !important;
        justify-content: center !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-top: 20px !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
    }

    .modal-container {
        max-width: calc(100vw - 20px) !important; /* 自适应移动端宽度 */
        width: calc(100vw - 20px) !important;
        margin: 0 auto !important;
        max-height: calc(100vh - 20px) !important; /* 自适应移动端高度 */
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        position: relative !important;
        z-index: 2147483647 !important; /* 确保移动端也在最上层 */
    }
    
    /* 确保移动端弹窗在视口顶部可见 */
    html body .modal-overlay.show-modal {
        align-items: flex-start !important;
        padding-top: 10px !important;
        width: 100vw !important;
        height: 100vh !important;
    }

    .modal-header {
        padding: 1rem 1.5rem;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.75rem;
    }
}

/* 平板设备 */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal-container {
        max-width: min(700px, calc(100vw - 40px)) !important;
        width: calc(100% - 40px) !important;
    }
}

/* 大屏幕设备 */
@media (min-width: 1025px) {
    .modal-container {
        max-width: min(800px, calc(100vw - 80px)) !important;
    }
}

/* 导航菜单样式 - 重新定义，确保优先级 */
.header .navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 0 !important;
    position: relative;
    flex-wrap: nowrap !important;
}

.header .navbar-brand {
    flex-shrink: 0 !important;
    margin-right: 2rem !important;
    display: flex !important;
    align-items: center !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    text-shadow: none !important;
}

.header .brand-link {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease !important;
}

.header .brand-link:hover {
    opacity: 0.8 !important;
    transform: none !important;
}

.header .site-logo {
    max-height: 50px !important;
    width: auto !important;
    height: auto !important;
}

.header .site-name {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    display: inline-block !important;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    order: 3;
}

.header .navbar-toggle span {
    width: 25px !important;
    height: 3px !important;
    background: #ffffff !important;
    margin: 3px 0 !important;
    transition: all 0.3s ease !important;
    border-radius: 2px !important;
    display: block !important;
}

.header .navbar-menu {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex: 1 !important;
    justify-content: flex-start !important;
    margin: 0 !important;
}

.header .navbar-nav {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2.5rem !important;
    align-items: center !important;
    flex-direction: row !important;
}

.header .nav-item {
    margin: 0 !important;
}

.header .nav-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem 1rem !important;
    position: relative !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
    background-color: transparent !important;
    border: 2px solid transparent !important;
    display: block !important;
}

.header .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.header .nav-link::after {
    display: none !important;
}

.header .nav-item.active .nav-link {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.header .navbar-actions {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    order: 2 !important;
}

/* 移动端按钮在PC端隐藏（移动端媒体查询会覆盖此设置） */
.navbar-actions-mobile {
    display: none;
}

.btn-register-mobile {
    display: none;
}

.header .btn-register,
.btn-register {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #ff6f00 100%) !important;
    color: #ffffff !important;
    padding: 0.875rem 2rem !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4),
                0 2px 8px rgba(255, 111, 0, 0.2) !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
}

.header .btn-register::before,
.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.header .btn-register:hover,
.btn-register:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5),
                0 4px 12px rgba(255, 111, 0, 0.3) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 50%, #ff8f00 100%) !important;
}

.header .btn-register:hover::before,
.btn-register:hover::before {
    left: 100%;
}

.header .btn-register:active,
.btn-register:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.4),
                0 2px 6px rgba(255, 111, 0, 0.25) !important;
}

/* 博客页面样式 */
.blog-header {
    text-align: center;
    padding: 3rem 0 2rem;
    max-width: 80%;
    margin: 0 auto;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

/* Blog页面主容器 */
.blog-main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.blog-main .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* 确保blog页面的footer样式与首页一致 */
.blog-main + .footer,
.page-holder .blog-main + .footer {
    margin-top: 4rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.blog-content {
    max-width: 80%;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.blog-posts {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    flex: 0 0 300px;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.post-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
}

.post-content {
    flex: 1;
}

.post-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.post-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #667eea;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.post-excerpt {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.post-read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-read-more:hover {
    color: #764ba2;
}

.blog-pagination {
    margin-top: 3rem;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.blog-pagination .page-numbers li {
    margin: 0;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers a:hover,
.blog-pagination .page-numbers .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* 响应式导航 - 移动端 */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
        position: relative;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .navbar-brand {
        margin-right: 0;
        flex: 0 0 auto;
        order: 1;
    }
    
    .site-logo {
        max-height: 40px;
    }
    
    .site-name {
        font-size: 1.25rem;
    }
    
    /* 移动端中间的按钮 */
    .navbar-actions-mobile {
        display: flex !important;
        flex: 1;
        justify-content: center;
        align-items: center;
        order: 2;
        margin: 0 0.5rem;
    }
    
    .btn-register-mobile {
        background: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #ff6f00 100%) !important;
        color: #ffffff !important;
        padding: 0.5rem 1rem !important;
        border-radius: 20px !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        font-size: 0.85rem !important;
        transition: all 0.3s ease !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4),
                    0 1px 4px rgba(255, 111, 0, 0.2) !important;
        border: none !important;
        position: relative !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        min-width: auto !important;
        max-width: 120px !important;
    }
    
    .btn-register-mobile::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }
    
    .btn-register-mobile:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5),
                    0 2px 6px rgba(255, 111, 0, 0.3) !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 50%, #ff8f00 100%) !important;
    }
    
    .btn-register-mobile:hover::before {
        left: 100%;
    }
    
    .btn-register-mobile:active {
        transform: translateY(0) !important;
    }
    
    .navbar-toggle {
        display: flex;
        order: 3;
        margin-left: 0;
        flex-shrink: 0;
    }
    
    /* PC端的注册按钮在移动端隐藏，将在折叠菜单中显示 */
    .navbar-actions {
        display: none !important;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        margin: 0;
        justify-content: flex-start;
        gap: 0;
        border-left: 1px solid #e9ecef;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    /* 添加遮罩层 */
    .navbar-menu.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-bottom: 2rem;
        order: 1;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #e9ecef;
    }
    
    .nav-item:first-child {
        border-top: 1px solid #e9ecef;
    }
    
    .nav-link {
        display: block;
        padding: 1.25rem 1rem;
        width: 100%;
        font-size: 1.1rem;
        font-weight: 500;
        color: #212529;
        transition: all 0.3s ease;
        border-radius: 0;
    }
    
    .nav-link:hover,
    .nav-link:active {
        padding-left: 1.5rem;
        background: #f8f9fa;
        color: #667eea;
    }
    
    /* 移动端菜单中的注册按钮 */
    .navbar-menu .navbar-actions {
        display: block !important;
        margin-left: 0;
        margin-top: auto;
        width: 100%;
        padding-top: 2rem;
        border-top: 2px solid #e9ecef;
        order: 2;
    }
    
    .navbar-menu .btn-register {
        width: 100%;
        text-align: center;
        margin-top: 0;
        padding: 1.125rem 2rem;
        font-size: 1.1rem;
        border-radius: 25px;
        background: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #ff6f00 100%);
        color: #fff !important;
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4),
                    0 2px 8px rgba(255, 111, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-menu .btn-register:hover {
        background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 50%, #ff8f00 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5),
                    0 4px 12px rgba(255, 111, 0, 0.3);
        color: #fff !important;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
        width: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    /* 博客页面移动端样式 */
    .blog-header {
        max-width: 100%;
        padding: 2rem 1rem 1rem;
    }
    
    .blog-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .blog-post-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-thumbnail {
        flex: 0 0 auto;
    }
    
    .post-image,
    .post-image-placeholder {
        height: 200px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
}

/* 强制应用导航栏样式 - 最高优先级，放在文件末尾 */
html body .header.bg-white {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

html body .header .navbar-nav .nav-link {
    color: #ffffff !important;
}

html body .header .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

html body .header .navbar-actions .btn-register {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #ff6f00 100%) !important;
    color: #ffffff !important;
}

html body .header .navbar-actions .btn-register:hover {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 50%, #ff8f00 100%) !important;
    color: #ffffff !important;
}

html body .header .site-name {
    color: #ffffff !important;
}

/* 确保所有导航相关样式正确应用 - 额外强制规则 */
.header.bg-white .container .navbar .navbar-nav .nav-item .nav-link {
    color: #ffffff !important;
    background-color: transparent !important;
}

.header.bg-white .container .navbar .navbar-nav .nav-item .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.header.bg-white .container .navbar .navbar-actions .btn-register {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #ff6f00 100%) !important;
    color: #ffffff !important;
}

.header.bg-white .container .navbar .navbar-actions .btn-register:hover {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 50%, #ff8f00 100%) !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
}

/* ========================================
   单篇文章页面样式 (Single Post)
   ======================================== */

/* 单篇文章主容器 */
.single-post-main {
    padding-top: 0;
}

/* 确保single页面的footer样式与首页一致 */
.single-post-main + .footer,
.page-holder .single-post-main + .footer,
.site-main.single-post-main ~ .footer {
    margin-top: 4rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* 确保single页面内容区域后的footer正确显示 */
main.single-post-main ~ footer.footer,
.page-holder main.single-post-main ~ footer.footer {
    margin-top: 4rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* 焦点图区域 */
.single-post-featured-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.featured-image-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 3rem 2rem;
    box-sizing: border-box;
}

.featured-image-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #ffffff;
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.single-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post-meta .icon-calendar::before,
.single-post-meta .icon-folder::before,
.single-post-meta .icon-tag::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    opacity: 0.8;
}

.single-post-meta a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-post-meta a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 没有特色图片时的标题栏 */
.single-post-header-no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 2rem;
    color: #ffffff;
}

.single-post-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.single-post-header-no-image .single-post-title {
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: none;
}

.single-post-header-no-image .single-post-meta {
    color: rgba(255, 255, 255, 0.9);
}

/* 文章内容区域（居中80%） */
.single-post-content-wrapper {
    max-width: 80%;
    margin: 0 auto;
    padding: 3rem 20px;
}

.single-post-article {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.single-post-entry-content {
    padding: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333333;
}

.single-post-entry-content h1,
.single-post-entry-content h2,
.single-post-entry-content h3,
.single-post-entry-content h4,
.single-post-entry-content h5,
.single-post-entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #212529;
}

.single-post-entry-content h2 {
    font-size: 2rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.single-post-entry-content h3 {
    font-size: 1.75rem;
    color: #764ba2;
}

.single-post-entry-content p {
    margin-bottom: 1.5rem;
}

.single-post-entry-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.single-post-entry-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.single-post-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-post-entry-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666666;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
}

.single-post-entry-content ul,
.single-post-entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post-entry-content li {
    margin-bottom: 0.75rem;
}

.single-post-entry-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.single-post-entry-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.single-post-entry-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #667eea;
    color: #ffffff;
    border-bottom-color: transparent;
}

/* 文章底部 */
.single-post-footer {
    padding: 0 3rem 3rem;
}

/* 作者信息框 */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 4px solid #667eea;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #212529;
}

.author-description {
    margin: 0;
    color: #666666;
    line-height: 1.6;
}

/* 文章导航 */
.post-navigation {
    margin: 3rem 0;
    padding-top: 3rem;
    border-top: 2px solid #e9ecef;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-link-prev {
    text-align: left;
}

.nav-link-next {
    text-align: right;
    flex-direction: row-reverse;
}

.nav-arrow {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-arrow {
    color: #ffffff;
    transform: scale(1.2);
}

.nav-text {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    color: inherit;
}

.nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    transition: color 0.3s ease;
}

.nav-link:hover .nav-title {
    color: #ffffff;
}

/* 相关文章 */
.related-posts {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e9ecef;
}

.related-posts-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #212529;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.related-post-thumbnail {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-image {
    transform: scale(1.1);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.related-post-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #667eea;
}

.related-post-date {
    font-size: 0.85rem;
    color: #666666;
}

/* 响应式样式 */
@media (max-width: 1200px) {
    .single-post-content-wrapper {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .featured-image-wrapper {
        height: 40vh;
        min-height: 300px;
        max-height: 400px;
    }

    .featured-image-overlay {
        padding: 2rem 1.5rem;
    }

    .single-post-title {
        font-size: 1.75rem;
    }

    .single-post-meta {
        flex-direction: column;
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .single-post-header-no-image {
        padding: 2.5rem 1.5rem;
    }

    .single-post-content-wrapper {
        max-width: 100%;
        padding: 2rem 15px;
    }

    .single-post-entry-content {
        padding: 2rem 1.5rem;
        font-size: 1rem;
    }

    .single-post-entry-content h2 {
        font-size: 1.5rem;
    }

    .single-post-entry-content h3 {
        font-size: 1.25rem;
    }

    .single-post-footer {
        padding: 0 1.5rem 2rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .author-avatar {
        margin: 0 auto;
    }

    .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .featured-image-wrapper {
        height: 35vh;
        min-height: 250px;
    }

    .single-post-title {
        font-size: 1.5rem;
    }

    .single-post-entry-content {
        padding: 1.5rem 1rem;
    }
}
