/* 共享样式文件 - 减少代码冗余 */

/* 通用容器样式 */
.shared-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 通用卡片样式 */
.shared-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shared-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* 通用按钮样式 */
.shared-btn {
    background: #C7B198;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.shared-btn:hover {
    background: #a89985;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 177, 152, 0.3);
}

/* 通用搜索样式 */
.shared-search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 8px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.shared-search-container:focus-within {
    box-shadow: 0 6px 20px rgba(199, 177, 152, 0.2);
}

.shared-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #546d63;
    background: transparent;
}

.shared-search-btn {
    background: #C7B198;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shared-search-btn:hover {
    background: #a89985;
    transform: scale(1.05);
}

/* 通用文章卡片样式 */
.shared-article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shared-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.shared-article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shared-article-card:hover .shared-article-image {
    transform: scale(1.05);
}

.shared-article-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shared-article-title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.shared-article-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.shared-category-tag {
    background: rgba(199, 177, 152, 0.15);
    color: #C7B198;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

/* 通用加载动画 */
.shared-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(199, 177, 152, 0.3);
    border-radius: 50%;
    border-top-color: #C7B198;
    animation: spin 1s ease-in-out infinite;
}

body {
    margin: 0;
    font-family: 'Inter', 'PingFang SC', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.site-header {
    background-color: #F5F6F4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 40px;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 60px;
    box-sizing: border-box;
}

body { padding-top: 90px; }

.header-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.site-header .logo img { height: 36px; max-width: 130px; width: auto; transition: transform 0.3s ease; }
.site-header .logo img:hover { transform: scale(1.05); }
.site-title { font-size: 20px; font-weight: 600; color: #4A5A52; letter-spacing: 0.5px; }

.nav-menu { display: flex; gap: 40px; flex: 2; justify-content: center; align-items: center; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; }
.nav-menu a { color: #546d63; text-decoration: none; transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4,0,0.2,1); }
.nav-menu a:hover, .nav-menu a:focus { color: #C7B198; transform: scale(1.05); }

.header-right { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: flex-end; min-width: 0; flex-shrink: 0; }
.header-right .dashicons { font-size: 20px; color: #546d63; cursor: pointer; transition: color 0.3s ease, transform 0.3s ease; flex-shrink: 0; }
.header-right .dashicons:hover { color: #C7B198; transform: scale(1.1); }

.cart-icon-wrapper { position: relative; display: inline-block; }
.cart-link { position: relative; display: inline-block; text-decoration: none; }
.cart-link .dashicons { font-size: 20px; color: #546d63; transition: color 0.3s ease, transform 0.3s ease; }
.cart-link:hover .dashicons { color: #C7B198; transform: scale(1.1); }
.cart-count { position: absolute; top: -8px; right: -8px; background: #C7B198; color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; line-height: 1; min-width: 18px; }

/* 汉堡菜单图标 - 默认隐藏，仅在移动端显示 */
.hamburger { 
    display: none !important;
    font-size: 28px; 
    color: #4A5A52; 
    cursor: pointer; 
    transition: transform 0.3s ease; 
}

.hamburger:hover { 
    transform: scale(1.1); 
}

/* 桌面端强制隐藏汉堡菜单，显示导航菜单 */
@media (min-width: 1025px) { 
    .hamburger { 
        display: none !important; 
    }
    .nav-menu { 
        display: flex !important; 
    }
    .header-right > .dashicons { 
        display: inline-block !important; 
    }
}

.mobile-menu { position: fixed; top: 0; left: -100%; width: 280px; height: 100%; background-color: #F5F6F4; padding: 20px; box-shadow: 2px 0 8px rgba(0,0,0,0.15); transition: left 0.3s ease; z-index: 9999; font-family: 'Inter', 'PingFang SC', sans-serif; }
.mobile-menu.open { left: 0; }
.mobile-menu .logo img { height: 32px; max-width: 120px; width: auto; margin-bottom: 0; vertical-align: middle; }
.mobile-menu .mobile-menu-brand { display: inline-block; font-size: 20px; font-weight: 600; color: #4A5A52; vertical-align: middle; margin-left: 8px; margin-bottom: 0; }
.mobile-menu .site-title { font-size: 20px; font-weight: 600; color: #4A5A52; margin-bottom: 32px; }
.mobile-menu a { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 17px; font-weight: 500; color: #546d63; text-decoration: none; text-transform: uppercase; transition: color 0.3s ease, transform 0.3s ease; }
.mobile-menu a:hover, .mobile-menu a:focus { color: #C7B198; transform: translateX(8px); }
.mobile-menu .dashicons { font-size: 20px; color: #546d63; }
.mobile-menu-close { position: absolute; top: 20px; right: 20px; font-size: 28px; color: #4A5A52; cursor: pointer; transition: color 0.3s ease; }
.mobile-menu-close:hover { color: #C7B198; }

.search-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.search-overlay.active { opacity: 1; visibility: visible; }
.search-overlay-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); }
.search-popup { position: relative; background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); width: 90%; max-width: 600px; max-height: 80vh; overflow: hidden; transform: scale(0.9) translateY(-20px); transition: all 0.3s ease; }
.search-overlay.active .search-popup { transform: scale(1) translateY(0); }
.search-popup-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e0e0e0; background: #F5F6F4; }
.search-popup-header h3 { margin: 0; color: #4A5A52; font-size: 1.2rem; font-weight: 600; }
.search-close { font-size: 24px; color: #546d63; cursor: pointer; transition: color 0.3s ease; line-height: 1; }
.search-close:hover { color: #C7B198; }
.search-popup-content { padding: 24px; }
.search-input-container { position: relative; margin-bottom: 24px; }
#globalSearchInput { width: 100%; max-width: 100%; box-sizing: border-box; padding: 16px 50px 16px 20px; border: 2px solid #e0e0e0; border-radius: 50px; font-size: 16px; color: #546d63; background: #F5F6F4; transition: all 0.3s ease; outline: none; }
#globalSearchInput:focus { border-color: #C7B198; background: white; box-shadow: 0 0 0 3px rgba(199, 177, 152, 0.1); }
#globalSearchInput::placeholder { color: #aaa; }
.search-input-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #546d63; font-size: 18px; }
.search-results { min-height: 200px; max-height: 400px; overflow-y: auto; }
.search-suggestions { text-align: center; padding: 20px 0; }
.suggestions-title { color: #546d63; margin-bottom: 16px; font-weight: 500; }
.suggestion-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.suggestion-tag { display: inline-block; padding: 8px 16px; background: #A7D7C5; color: white; border-radius: 20px; font-size: 14px; cursor: pointer; transition: all 0.3s ease; }
.suggestion-tag:hover { background: #C7B198; transform: translateY(-2px); }
.search-result-item { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; transition: all 0.3s ease; cursor: pointer; margin-bottom: 12px; background: #ffffff; border: 1px solid #e8f0ed; box-shadow: 0 2px 8px rgba(74, 90, 82, 0.08); animation: fadeInUp 0.3s ease; }
.search-result-item:hover { background: #f8fdf9; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74, 90, 82, 0.15); border-color: #A7D7C5; }
.search-result-image { width: 70px; height: 70px; border-radius: 12px; flex-shrink: 0; overflow: hidden; background: #f8fdf9; border: 2px solid #e8f0ed; }
.search-result-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.search-result-content { flex: 1; min-width: 0; overflow: hidden; }
.search-result-title { font-weight: 600; color: #4A5A52; margin-bottom: 4px; font-size: 14px; line-height: 1.3; word-wrap: break-word; overflow-wrap: break-word; }
.search-result-type { font-size: 12px; color: #546d63; background: #A7D7C5; padding: 2px 8px; border-radius: 10px; display: inline-block; }
.search-result-price { font-weight: 600; color: #C7B198; font-size: 14px; }
.search-popup-footer { padding: 16px 0 0; text-align: center; border-top: 1px solid #e0e0e0; }
.view-all-results { background: #C7B198; color: white; border: none; padding: 12px 32px; border-radius: 25px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.view-all-results:hover { background: #4A5A52; transform: translateY(-2px); }
.search-loading, .search-error, .search-no-results { text-align: center; padding: 40px 20px; color: #666; }
.loading-spinner { width: 30px; height: 30px; border: 3px solid #f3f3f3; border-top: 3px solid #007cba; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) {
    .site-header { padding: 10px 20px; }
    .nav-menu, .header-right .dashicons { display: none; }
    .hamburger { display: block !important; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); z-index: 10001; }
    .header-left { margin-left: 56px; justify-content: flex-start; }
    .site-header .logo img { height: 32px; max-width: 110px; }
}

@media (max-width: 768px) {
    .site-header { padding: 8px 16px; }
    .site-title { font-size: 1.1rem; }
    /* Menu logic moved to 1024px */
    .search-overlay { padding: 0; background: rgba(0,0,0,0.95); transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    .search-overlay.active { transform: translateY(0); }
    .search-popup { width: 100%; max-width: 100%; height: 100vh; max-height: 100vh; margin: 0; border-radius: 0; display: flex; flex-direction: column; background: #fff; position: relative; touch-action: pan-y; }
    .search-popup-header { padding: 20px; border-bottom: 1px solid #eee; flex-shrink: 0; background: linear-gradient(135deg, #4A5A52 0%, #546d63 100%); color: white; position: relative; touch-action: manipulation; }
    .search-popup-header h3 { font-size: 1.3rem; color: white; margin: 0; font-weight: 600; }
    .search-close { color: white; font-size: 1.5rem; width: 44px; height: 44px; background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
    .search-close:hover, .search-close:active { background: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.5); transform: scale(1.1); }
    .search-popup-content { flex: 1; overflow-y: auto; padding: 0; background: #f8f9fa; }
    .search-input-container { padding: 20px; background: white; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 10; }
    #globalSearchInput { padding: 18px 50px 18px 24px; font-size: 16px; border-radius: 25px; border: 2px solid #e9ecef; background: #f8f9fa; transition: all 0.3s ease; }
    #globalSearchInput:focus { border-color: #4A5A52; background: white; box-shadow: 0 0 0 3px rgba(74, 90, 82, 0.1); }
    .search-input-icon { right: 24px; font-size: 18px; color: #4A5A52; }
    .search-suggestions { padding: 10px 20px; background: transparent; margin: 0; border-radius: 0; box-shadow: none; }
    .suggestions-title { color: #495057; font-size: 1rem; margin-bottom: 0; font-weight: 600; display: none !important; }
    .suggestion-tags { gap: 8px; justify-content: flex-start; }
    .suggestion-tag { padding: 10px 18px; font-size: 0.9rem; margin: 6px 8px 6px 0; border-radius: 20px; background: linear-gradient(135deg, #4A5A52 0%, #546d63 100%); color: white; border: none; font-weight: 500; box-shadow: 0 2px 4px rgba(74, 90, 82, 0.3); }
    .suggestion-tag:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(74, 90, 82, 0.4); background: linear-gradient(135deg, #546d63 0%, #4A5A52 100%); }
    .search-results { max-height: none; background: transparent; margin: 0; border-radius: 0; box-shadow: none; padding: 0 20px; }
    .search-result-item { padding: 20px 0; border-bottom: 1px solid #f0f0f0; transition: background-color 0.2s ease; }
    .search-result-item:hover { background-color: #f8f9fa; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
    .search-result-item:last-child { border-bottom: none; }
    .search-result-image { width: 60px; height: 60px; margin-right: 16px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
    .search-result-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
    .search-result-title { font-size: 1.1rem; margin-bottom: 8px; font-weight: 600; color: #2c3e50; }
    .search-result-type { font-size: 0.8rem; padding: 4px 10px; border-radius: 12px; font-weight: 600; text-transform: uppercase; }
    .view-all-results { margin: 20px; padding: 18px; font-size: 1rem; border-radius: 25px; background: linear-gradient(135deg, #4A5A52 0%, #546d63 100%); color: white; border: none; font-weight: 600; box-shadow: 0 4px 12px rgba(74, 90, 82, 0.3); transition: all 0.3s ease; }
    .view-all-results:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74, 90, 82, 0.4); background: linear-gradient(135deg, #546d63 0%, #4A5A52 100%); }
    .search-loading { padding: 40px 20px; text-align: center; background: white; margin: 10px 20px; border-radius: 12px; }
    .search-error { padding: 30px 20px; text-align: center; background: white; margin: 10px 20px; border-radius: 12px; color: #dc3545; }
    .search-no-results { padding: 40px 20px; text-align: center; background: white; margin: 10px 20px; border-radius: 12px; color: #6c757d; }
    .search-overlay.active { animation: mobileSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
}

@keyframes mobileSlideIn { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 480px) {
    .mobile-menu { width: 260px; padding: 16px; }
    .mobile-menu a { font-size: 16px; }
}
@media (max-width: 480px) {
    .site-header .logo img { height: 28px; max-width: 100px; }
    .site-title { font-size: 16px; }
    .mobile-menu { width: 240px; }
}

/* Product Image Hover Effects */
.group:hover .hover-target {
    opacity: 1;
}

.hover-target {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-color: #fff; /* Fix for transparent PNG overlap */
    z-index: 10;
}

.default-target {
    transition: opacity 0.5s ease-in-out;
}

.site-footer { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: #ecf0f1; font-family: 'Arial', sans-serif; }
.footer-main { padding: 60px 20px 40px; }
.footer-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; align-items: start; }
.footer-brand { padding-right: 20px; }
.brand-logo h3 { font-size: 2.2rem; font-weight: 700; color: #C7B198; margin: 0 0 5px 0; letter-spacing: -0.5px; }
.brand-tagline { font-size: 0.9rem; color: #bdc3c7; font-style: italic; display: block; margin-bottom: 20px; }
.brand-description { font-size: 0.95rem; line-height: 1.6; color: #bdc3c7; margin-bottom: 25px; }
.brand-features { display: flex; flex-direction: column; gap: 12px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #ecf0f1; }
.feature-icon { font-size: 1.2rem; width: 24px; text-align: center; }
.footer-column h4 { color: #C7B198; font-size: 1.1rem; margin-bottom: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links li a { color: #bdc3c7; text-decoration: none; font-size: 0.9rem; transition: all 0.3s ease; position: relative; }
.footer-links li a:hover { color: #C7B198; padding-left: 5px; }
.contact-info { margin-bottom: 25px; }
.contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; font-size: 0.9rem; color: #bdc3c7; }
.contact-icon { font-size: 1.1rem; width: 20px; text-align: center; margin-top: 2px; }
.social-section h5 { color: #C7B198; font-size: 1rem; margin-bottom: 15px; font-weight: 600; }
.footer-social-links { display: flex; gap: 15px; margin-top: 15px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; text-decoration: none; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(15px); position: relative; overflow: hidden; }
.footer-social-link::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.6s ease; }
.footer-social-link:hover::before { left: 100%; }
.footer-social-link:hover { background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1)); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1); }
.footer-social-icon { width: 26px; height: 26px; object-fit: contain; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.footer-social-link:hover .footer-social-icon { transform: scale(1.15) rotate(5deg); filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)); }
.footer-bottom { background: rgba(0, 0, 0, 0.2); padding: 20px; border-top: 1px solid rgba(199, 177, 152, 0.2); }
.footer-bottom-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.copyright p { margin: 0; font-size: 0.85rem; color: #95a5a6; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #95a5a6; text-decoration: none; font-size: 0.85rem; transition: color 0.3s ease; }
.footer-legal a:hover { color: #C7B198; }

@media (max-width: 1024px) {
    .footer-container { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: 1 / -1; text-align: center; padding-right: 0; }
    .brand-features { flex-direction: row; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .footer-main { padding: 40px 20px 30px; }
    .footer-container { grid-template-columns: 1fr; gap: 25px; text-align: center; }
    .footer-brand { grid-column: 1; }
    .brand-features { justify-content: center; }
    .footer-social-links { justify-content: center; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }
    .contact-item { justify-content: center; text-align: left; }
}
@media (max-width: 480px) {
    .brand-features { flex-direction: column; align-items: center; }
    .footer-legal { flex-direction: column; gap: 10px; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 通用淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shared-fade-in {
    animation: fadeIn 0.3s ease;
}

/* 响应式网格系统 */
.shared-grid {
    display: grid;
    gap: 30px;
}

.shared-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.shared-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.shared-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 响应式断点 */
@media (max-width: 1024px) {
    .shared-container {
        padding: 0 15px;
    }
    
    .shared-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shared-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shared-container {
        padding: 0 10px;
    }
    
    .shared-card {
        padding: 25px;
    }
    
    .shared-grid-4,
    .shared-grid-3,
    .shared-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .shared-article-content {
        padding: 20px;
    }
    
    .shared-article-title {
        font-size: 1.1rem;
    }
    
    .shared-article-excerpt {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .shared-container {
        padding: 0 8px;
    }
    
    .shared-card {
        padding: 20px;
    }
    
    .shared-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .shared-search-container {
        padding: 6px 15px;
    }
    
    .shared-search-btn {
        width: 35px;
        height: 35px;
    }
}
.cookie-consent{position:fixed;left:16px;right:16px;bottom:16px;background:#ffffff;border:1px solid rgba(74,90,82,.15);box-shadow:0 8px 24px rgba(0,0,0,.12);border-radius:12px;padding:16px;display:none;z-index:999}
.cookie-consent-content{color:#4A5A52;font-size:.95rem;margin-bottom:12px}
.cookie-consent-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.cookie-btn{background:#C7B198;color:#fff;border:none;border-radius:8px;padding:10px 16px;font-weight:600;cursor:pointer}
.cookie-btn.decline{background:#546d63}
.cookie-link{color:#4A5A52;text-decoration:underline}
.cookie-consent:focus-within{box-shadow:0 12px 30px rgba(74,90,82,.25)}
/* Rank Math Breadcrumbs Styling */
.rank-math-breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: #888;
    padding: 0 4px;
}
.rank-math-breadcrumb p {
    margin: 0;
    line-height: 1.5;
}
.rank-math-breadcrumb a {
    color: #546d63;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.rank-math-breadcrumb a:hover {
    color: #C7B198;
}
.rank-math-breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}
.rank-math-breadcrumb .last {
    color: #999;
    font-weight: normal;
}


/* ============================================
   HOMEPAGE V2 - NEW MODULES
   ============================================ */

/* === FIND YOUR SLEEP SETUP (3 Bundle Index) === */
.find-setup { max-width: 1200px; margin: 0 auto; padding: 24px 40px 72px; }
.find-setup .section-header { margin-bottom: 40px; }
.find-setup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.find-setup-card {
    position: relative; border-radius: 18px; overflow: hidden;
    aspect-ratio: 4/3; display: block; text-decoration: none;
    background: linear-gradient(135deg, #e8e0d5, #d4cfc8);
    box-shadow: 0 8px 32px rgba(74,90,82,0.08);
    transition: all 0.25s;
}
.find-setup-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(74,90,82,0.14); }
.find-setup-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.find-setup-card:hover img { transform: scale(1.04); }
.find-setup-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(45,58,53,0.78) 0%, transparent 55%);
    display: flex; align-items: flex-end; padding: 22px;
}
.find-setup-overlay h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0; }
.find-setup-overlay .fs-sub { font-size: 0.75rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 1.5px; display: block; margin-bottom: 4px; }

/* === BUNDLE PARALLAX (方案A: 全宽视差) === */
.parallax-bundle {
    position: relative;
    min-height: 70vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}
/* 深色渐变遮罩, 保证文字可读 */
.parallax-bundle::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(245,246,244,0.95) 0%, rgba(245,246,244,0.72) 40%, rgba(245,246,244,0.25) 75%, rgba(245,246,244,0) 100%);
    z-index: 1;
}
/* 底部额外渐变, 与下一区块自然过渡 */
.parallax-bundle::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--brand-bg) 0%, transparent 12%);
    z-index: 0;
    pointer-events: none;
}
.parallax-content {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto;
    padding: 80px 40px;
    width: 100%;
    color: var(--brand-dark);
}
.parallax-tag {
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2.5px;
    color: #4A5A52; margin-bottom: 14px;
    display: block;
}
.parallax-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem; font-weight: 600;
    color: #4A5A52; line-height: 1.25; margin-bottom: 12px;
}
.parallax-quote {
    font-size: 1.05rem; color: #4A5A52;
    font-style: italic; line-height: 1.6; margin-bottom: 28px;
    max-width: 540px;
}
/* 毛玻璃产品卡片 */
.parallax-products {
    display: flex; gap: 16px; margin-bottom: 28px;
    flex-wrap: wrap;
}
.parallax-product {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(199,177,152,0.3);
    border-radius: 14px; padding: 18px;
    text-align: center; flex: 1; min-width: 220px; max-width: 320px;
}
.parallax-product-img { color: var(--brand-text);
    width: 100%; aspect-ratio: 1; border-radius: 8px;
    background: rgba(255,255,255,0.15);
    margin-bottom: 8px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: rgba(255,255,255,0.7);
}
.parallax-product-img img { width: 100%; height: 100%; object-fit: cover; }
.parallax-product-name { font-size: 0.85rem; color: #4A5A52; font-weight: 600; }
.parallax-price-row {
    display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.parallax-price-from { font-size: 0.85rem; color: #4A5A52; }
.parallax-price { font-family: 'DM Sans', sans-serif; font-size: 1.8rem; font-weight: 700; color: #4A5A52; }
.parallax-price-orig { font-size: 0.95rem; color: #8A9A92; text-decoration: line-through; }
.parallax-save {
    background: #b85c4a; color: #fff; font-size: 0.78rem; font-weight: 700;
    padding: 4px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.parallax-btn {
    display: inline-block; background: #fff; color: var(--brand-green);
    padding: 15px 34px; border-radius: 50px;
    font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.05em;
    text-decoration: none; text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.2s;
}
.parallax-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* === BUNDLE DIVIDER (间隔条) === */
.bundle-divider {
    position: relative;
    height: 12vh;
    min-height: 80px;
    background: var(--brand-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bundle-divider .divider-label {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--brand-text);
    letter-spacing: 2px;
    text-align: center;
    max-width: 70%;
    line-height: 1.6;
}
.bundle-divider .divider-label em {
    color: var(--brand-gold);
    font-style: italic;
}

/* === SLOGAN BANNER === */
.slogan-banner {
    background: var(--brand-bg);
    border-top: 1px solid rgba(199,177,152,0.2);
    border-bottom: 1px solid rgba(199,177,152,0.2);
    padding: 48px 40px; text-align: center;
}
.slogan-banner .slogan-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem; font-weight: 500; font-style: italic;
    color: var(--brand-dark); letter-spacing: -0.01em;
}
.slogan-banner .slogan-text em { color: var(--brand-gold); }

/* === PRODUCT CAROUSEL === */
.carousel-section { max-width: 1200px; margin: 0 auto; padding: 0 40px 80px; overflow: hidden; }
.carousel-section .section-header { margin-bottom: 40px; }
.carousel-viewport { overflow: hidden; width: 100%; }
.carousel-track {
    display: flex; gap: 20px;
    animation: carousel-scroll 45s linear infinite;
    width: max-content;
}
.carousel-viewport:hover .carousel-track { animation-play-state: paused; }
@keyframes carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.carousel-card {
    flex: 0 0 240px;
    background: #fff; border: 1px solid rgba(199,177,152,0.2);
    border-radius: 14px; overflow: hidden; transition: box-shadow 0.25s;
}
.carousel-card:hover { box-shadow: 0 8px 28px rgba(74,90,82,0.12); }
.carousel-img {
    width: 240px; height: 240px;
    background: linear-gradient(135deg, #e8e0d5, #d4cfc8);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; color: rgba(74,90,82,0.45); font-weight: 600;
    overflow: hidden;
}
.carousel-img img {
    width: 240px; height: 240px;
    object-fit: cover;
    display: block;
}
.carousel-info { padding: 14px; }
.carousel-name { font-size: 0.82rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 4px; }
.carousel-price { font-family: 'DM Sans', sans-serif; font-size: 0.92rem; font-weight: 700; color: var(--brand-green); }
.carousel-orig { font-size: 0.75rem; color: #b0a090; text-decoration: line-through; margin-left: 6px; }
/* carousel-link: make product card an unobtrusive clickable link */
.carousel-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.carousel-link:hover .carousel-img img {
    transform: scale(1.04);
}
.carousel-card .carousel-img img {
    transition: transform 0.3s ease;
}

/* parallax product dual-image hover: SKU first, scene on hover */
.parallax-product-img {
    position: relative;
    overflow: hidden;
}
.parallax-product-img .sku-img,
.parallax-product-img .scene-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s ease;
}
.parallax-product-img .sku-img { opacity: 1; }
.parallax-product-img .scene-img { opacity: 0; }
.parallax-product:hover .parallax-product-img .sku-img { opacity: 0; }
.parallax-product:hover .parallax-product-img .scene-img { opacity: 1; }
@media (hover: none) {
    .parallax-product-img .scene-img { display: none; }
}


/* ============================================
   MOBILE BUNDLE (≤768px): Independent classes
   Zero desktop pollution — mob-bundle-* only
   ============================================ */

    /* Default: hide mobile bundle on desktop */
    .mob-bundle { display: none; }

@media (max-width: 768px) {
    /* Hide desktop parallax bundles */
    .parallax-bundle { display: none !important; }

    /* Show mobile bundles */
    .mob-bundle { display: block !important; }

    /* Mobile bundle container */
    .mob-bundle {
        background: #fff;
        border-radius: 16px;
        margin: 0 14px 20px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(74,90,82,0.1);
    }

    /* Section 1: Title + Quote (no background image) */
    .mob-bundle-header {
        padding: 20px 16px 12px;
        border-bottom: 1px solid #f0f0f0;
    }
    .mob-bundle-tag {
        font-family: 'Inter', sans-serif;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2.5px;
        color: #C7B198;
        background: rgba(199,177,152,0.15);
        padding: 4px 10px;
        border-radius: 999px;
        display: inline-block;
        margin-bottom: 10px;
    }
    .mob-bundle-header h2 {
        font-family: 'Playfair Display', serif;
        font-size: 1.4rem;
        font-weight: 600;
        color: #2d3a35;
        margin: 0 0 8px;
        line-height: 1.25;
    }
    .mob-bundle-quote {
        font-size: 0.85rem;
        color: #546d63;
        font-style: italic;
        margin: 0;
        line-height: 1.6;
    }

    /* Section 2: Two products with click-to-toggle SKU/Scene */
    .mob-bundle-products {
        display: flex;
        gap: 10px;
        padding: 14px 16px;
        margin: 0;
    }
    .mob-bundle-product {
        flex: 1 1 48%;
        min-width: 0;
        background: #F9F9FB;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 10px;
        text-align: center;
    }
    .mob-product-img {
        position: relative;
        aspect-ratio: 1;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 6px;
        cursor: pointer;
    }
    .mob-product-img img {
        position: absolute; inset: 0;
        width: 100%; height: 100%;
        object-fit: cover;
        transition: opacity 0.35s ease;
    }
    .mob-product-img .sku-img { opacity: 1; }
    .mob-product-img .scene-img { opacity: 0; }
    .mob-product-img.active .sku-img { opacity: 0; }
    .mob-product-img.active .scene-img { opacity: 1; }
    .mob-product-name {
        font-size: 0.75rem;
        color: #2d3a35;
        font-weight: 600;
        line-height: 1.3;
    }

    /* Section 3: Price + CTA */
    .mob-bundle-footer {
        padding: 14px 16px 16px;
        border-top: 1px solid #f0f0f0;
    }
    .mob-bundle-price-row {
        display: flex;
        align-items: baseline;
        gap: 8px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }
    .mob-price-from { font-size: 0.75rem; color: #546d63; }
    .mob-price { font-family: 'DM Sans', sans-serif; font-size: 1.4rem; font-weight: 700; color: #2d3a35; }
    .mob-price-orig { font-size: 0.8rem; color: #999; text-decoration: line-through; }
    .mob-save {
        background: #b85c4a; color: #fff;
        font-size: 0.7rem; font-weight: 700;
        padding: 3px 8px; border-radius: 4px;
        text-transform: uppercase; letter-spacing: 0.5px;
    }

    /* CTA button */
    .mob-bundle-btn {
        display: block;
        width: 100%;
        text-align: center;
        background: #4A5A52;
        color: #F5F6F4;
        padding: 14px 28px;
        border-radius: 50px;
        font-family: 'Inter', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-decoration: none;
        text-transform: uppercase;
        border: none;
        transition: background 0.2s;
    }
    .mob-bundle-btn:hover {
        background: #3a4740;
    }
}

/* =========================================
   Header Icons (inline SVG) — stable, no font dependency
   ========================================= */
.header-right .icon {
    width: 20px;
    height: 20px;
    color: #546d63;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}
.header-right .icon:hover {
    color: #C7B198;
    transform: scale(1.1);
}
.cart-link .icon { /* cart icon inherits same hover */ }
