:root {
    --primary-color: #0388d1;
    --bg-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --header-height: 70px;
    --banner-height: 0px;
    --layout-top-offset: var(--header-height);
}

body.has-header-banner {
    --banner-height: 90px;
    --layout-top-offset: calc(var(--banner-height) + var(--header-height));
}

body.has-header-banner.banner-collapsed {
    --banner-height: 0px;
    --layout-top-offset: var(--header-height);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* 头部样式（与 newchinabuy.com 一致） */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-color);
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1002;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: top 0.25s ease, box-shadow 0.25s ease;
}

.header-left {
    display: flex;
    align-items: center;
}

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

.logo-link:hover .logo {
    opacity: 0.8;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    max-height: 42px;
    width: auto;
    display: block;
}

.category-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 40px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 16px;
    font-style: normal;
    opacity: 0.85;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: scaleX(1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}


.social-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons i {
    font-size: 22px;
}

/* 为每个平台设置特定的背景色 */
.social-icons .facebook {
    background-color: #1877f2;
}

.social-icons .twitter {
    background-color: #1da1f2;
}

.social-icons .instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-icons .linkedin {
    background-color: #0077b5;
}

.social-icons .youtube {
    background-color: #ff0000;
}

.social-icons a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}



/* 移动端适配 */
@media (max-width: 768px) {
    .category-nav,
    .search-container {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-right {
        gap: 10px;
    }

    .search-form {
        display: flex;
    }

    .social-icons {
        gap: 12px;
    }

    .login-btn {
        padding: 6px 16px;
        font-size: 14px;
        order: 2;
    }

    .theme-toggle {
        order: 3;
    }

    .logo {
        font-size: 28px;
    }

    .mobile-menu .social-icons {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 0.8em;
        margin-bottom: 8px;
    }

    .product-stats {
        font-size: 13px;
    }

    .product-stats .views {
        font-size: 12px;
    }

    .mobile-header-search {
        display: flex;
        align-items: center;
        margin-right: 0;
        margin-left: auto;
        max-width: 150px;
    }

    .mobile-header-search-input {
        width: 120px;
        padding: 4px 10px;
        font-size: 13px;
    }

    .mobile-header-search-btn {
        padding: 4px;
        margin-left: -25px;
        font-size: 14px;
    }
}

/* 移动端菜单 */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
}

.mobile-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.02);
}

.mobile-nav .nav-item:hover {
    background: rgba(var(--primary-color), 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-nav .nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    opacity: 0.8;
}

/* 移动端菜单按钮样式 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

header.menu-open .mobile-menu-btn i {
    transform: rotate(90deg);
}

/* 移动端菜单容器 */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-color);
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* 响应式布局优化 */
@media (max-width: 1024px) {
    .category-nav {
        gap: 20px;
        margin-left: 24px;
    }

    .nav-item {
        font-size: 14px;
    }

    .header-right {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .category-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        order: 1;
    }

    .header-right {
        gap: 10px;
    }

    .search-form {
        display: flex;
        margin-right: 0;
    }

    .logo {
        font-size: 22px;
    }

    .mobile-menu .social-icons {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 15px;
    }

    .header-right .social-icons {
        display: none;
    }

    .mobile-menu .social-icons {
        display: flex;
    }
}

.login-btn {
    display: none;
}

/* 首页样式（有 Banner 时 main 在 Banner 后，仅补顶栏高度） */
.home-content {
    margin-top: var(--header-height);
    padding: 24px 20px 40px;
}

body.has-header-banner:not(.banner-collapsed) .home-content,
body.has-header-banner:not(.banner-collapsed) .page-content:not(.page-content--list):not(.page-content--article-category) {
    margin-top: var(--header-height);
}

body.has-header-banner.banner-collapsed .home-content,
body.has-header-banner.banner-collapsed .page-content:not(.page-content--list):not(.page-content--article-category) {
    margin-top: var(--header-height);
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4500 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.categories {
    padding: 40px 0;
}

.categories h2 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 1.8em;
    color: #333;
    font-weight: 600;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 首页仅 1 个有商品分类时居中展示 */
.category-grid--single {
    grid-template-columns: minmax(200px, 280px);
    justify-content: center;
}

.category-card {
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 16px 20px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(var(--primary-rgb), 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.category-card:hover::before {
    transform: translateX(100%);
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-card h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
    position: relative;
}

.category-card:hover h3 {
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .categories {
        padding: 30px 0;
    }

    .categories h2 {
        margin-bottom: 25px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 15px;
    }
    
    .category-card {
        padding: 14px 16px;
    }
    
    .category-card h3 {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .categories {
        padding: 25px 0;
    }

    .categories h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .category-grid {
        gap: 12px;
        padding: 0 12px;
    }

    .category-card {
        padding: 12px 14px;
    }
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-card i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* 商品列表样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 15px;
    margin-top: 0;
}

.product-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 90%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 0.85em;
    margin: 0 0 10px 0;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;  /* 添加标准属性 */
    -webkit-box-orient: vertical;
    box-orient: vertical;  /* 添加标准属性 */
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.product-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.product-stats .price {
    color: var(--primary-color);
    font-weight: 500;
}

.product-stats .views {
    color: #999;
    font-size: 13px;
}

.product-stats .views i {
    margin-right: 4px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 0.8em;
        margin-bottom: 8px;
    }

    .product-stats {
        font-size: 13px;
    }

    .product-stats .views {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 0.75em;
        margin-bottom: 6px;
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0 16px;
    position: relative;
    overflow: hidden;
}

.pagination button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}

.pagination button:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: 0s;
}

.pagination .prev-btn,
.pagination .next-btn {
    min-width: 80px;
}

.pagination button:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination button:not(:disabled):active {
    transform: translateY(0);
    box-shadow: none;
}

.pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 响应式分页样式 */
@media (max-width: 768px) {
    .pagination {
        gap: 8px;
    }
    
    .pagination button {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        padding: 0 12px;
    }
    
    .pagination .prev-btn,
    .pagination .next-btn {
        min-width: 60px;
    }
}

/* 页脚样式 */
footer {
    background-color: #f8f9fa;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 10px 0;
}

.footer-content .copyright {
    color: #999;
    font-size: 13px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    footer {
        padding: 30px 0;
        margin-top: 40px;
    }

    .footer-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 25px 0;
    }

    .footer-content p {
        font-size: 13px;
        line-height: 1.6;
    }
} 

/* 加载状态 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), #ff6b6b);
    animation: loading 1s ease infinite;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s;
}

.loading.active {
    opacity: 1;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 响应式动画优化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 暗色模式优化 */
body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --border-color: #333333;
}

body.dark-mode header {
    border-top-color: var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 24px;
    padding: 8px;
    transition: color 0.3s;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

/* 问答模块样式 */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    margin-bottom: 8px;
    background: var(--bg-color);
}

.faq-question {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-color);
    font-weight: 500;
    user-select: none;
    font-size: 14px;
}

.faq-question i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
    padding: 0 15px;
    height: 0;
    opacity: 0;
    transform-origin: top;
    transform: scaleY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    height: auto;
    opacity: 1;
    transform: scaleY(1);
    padding: 0 15px 15px 15px;
    pointer-events: auto;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
    .faq-section {
        padding: 0 15px;
    }

    .faq-question {
        padding: 12px;
        font-size: 0.95em;
    }

    .faq-item.active .faq-answer {
        padding: 0 12px 12px 12px;
    }
} 

/* 响应式优化 */
@media (max-width: 768px) {
    .header-left {
        gap: 16px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        font-size: 18px;
    }
    
    .category-nav {
        display: none;
    }
    
    .nav-item {
        font-size: 14px;
    }
} 

/* 商品详情页布局 */
.product-detail {
    margin-top: calc(var(--header-height) + 20px);
}

/* 面包屑导航 */
.product-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #666;
    width: 100%;
    box-sizing: border-box;
}

.product-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.product-breadcrumb a:hover {
    color: var(--primary-color);
}

.product-breadcrumb i {
    font-size: 12px;
    color: #999;
}

.product-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 商品图片区域 */
.product-gallery {
    position: relative;
    width: 50%;
    max-width: 500px;
    flex-shrink: 0;
}

.main-image {
    width: 100%;
    padding-bottom: 100%;  /* 1:1 宽高比 */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f8f8f8;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    background: #f8f8f8;
}


.thumbnail-list img {
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s;
    object-fit: contain;
    background: #f8f8f8;
}

.thumbnail-list img:hover,
.thumbnail-list img.active {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .product-gallery {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .product-gallery {
        position: static;
        max-width: 100%;
    }
    
    .thumbnail-list img {
        width: 50px !important;
        height: 50px !important;
    }
}

/* 商品信息区域 */
.product-details {
    text-align: left;
    flex: 1;
    min-width: 0;
}

.product-details .product-actions {
    margin: 20px 0 0;
}

.product-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.product-price {
    margin-bottom: 12px;
}

.product-price--dual {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.product-price--dual .price--cny,
.product-price--dual .price--usd {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1.2;
}

.product-price--dual .price-sep {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: bold;
    margin: 0 4px;
}

.product-purchase-hint {
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #eee);
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.product-purchase-hint strong {
    color: #333;
    font-weight: 600;
}

.current-price {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: bold;
}

/* 商品颜色 / 尺码 */
.product-variant {
    margin-top: 20px;
}

.product-variant__title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
}

.variant-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-color-item {
    width: 56px;
    height: 56px;
    padding: 2px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.variant-color-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.variant-color-item.is-active,
.variant-color-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(3, 136, 209, 0.2);
}

.variant-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-size-item {
    min-width: 44px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.variant-size-item:hover,
.variant-size-item.is-active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(3, 136, 209, 0.06);
}

/* 尺码标签 */
.product-size-label {
    margin: 16px 0;
    padding: 10px 16px;
    background: #f5f5f5;
    border-radius: 6px;
    text-align: center;
}

.product-size-label strong {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 商品操作按钮 */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    color: var(--text-color);
    text-decoration: none;
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-btn i {
    font-size: 16px;
}

#buyNowBtn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

#buyNowBtn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .product-container {
        gap: 30px;
    }
    
    .product-gallery {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        gap: 20px;
    }

    .product-gallery {
        width: 100%;
        max-width: 100%;
    }

    .product-details {
        text-align: center;
    }

    .product-details .product-actions {
        margin: 20px auto 0;
    }

    .thumbnail-list img {
        width: 60px !important;
        height: 60px !important;
    }

    .product-info {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .product-container {
        padding: 0 15px;
    }
    
    .thumbnail-list img {
        width: 40px;
        height: 40px;
    }
    
    .action-btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* 相关推荐模块 */
.related-products {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.related-products h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 0;
}.related-products .product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-products .product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-products .product-info {
    padding: 12px;
}

.related-products .product-title {
    font-size: 14px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;  /* 添加标准属性 */
    -webkit-box-orient: vertical;
    box-orient: vertical;  /* 添加标准属性 */
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.related-products .product-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

/* 应式适 */
@media (max-width: 1024px) {
    .related-products .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-breadcrumb {
        padding: 12px 15px;
        font-size: 13px;
    }


    .related-products h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .related-products .products-grid {
        gap: 15px;
    }

    .related-products .product-card img {
        height: 130px;
    }
}

@media (max-width: 480px) {
    .product-breadcrumb {
        padding: 10px 15px;
        font-size: 12px;
    }

    .related-products .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .related-products .product-card img {
        height: 120px;
    }

    .related-products .product-info {
        padding: 10px;
    }

    .related-products .product-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .related-products .product-stats {
        font-size: 11px;
    }
} 

/* 购物平台弹出层 */
.platform-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.platform-modal.active {
    display: flex;
}

.platform-modal .platform-content {
    width: 92%;
    max-width: 360px;
    max-height: min(520px, 75vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.platform-list--modal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
    margin: 0;
}

.platform-list--modal .platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.platform-list--modal .platform-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.platform-list--modal .platform-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 6px;
    border-radius: 4px;
}

.platform-list--modal .platform-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
}

.platform-list--modal .platform-type {
    font-size: 12px;
    color: var(--primary-color);
}

.platform-content {
    background: white;
    width: 90%;
    max-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.platform-header {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f8f8;
}

.platform-header h3 {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
}

.platform-list {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 8px;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    background: #fff;
}

.platform-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.platform-item img {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
    border-radius: 5px;
}

.platform-item span {
    font-size: 12px;
    color: #333;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .platform-content {
        width: 85%;
    }

    .platform-list {
        padding: 12px;
        gap: 8px;
        margin: 6px;
    }

    .platform-item {
        padding: 8px;
    }

    .platform-item img {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }

    .platform-item span {
        font-size: 11px;
    }
}

/* 商卡片样式 */
.product-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.product-stats .price {
    color: var(--primary-color);
    font-weight: 500;
}

.product-stats .views {
    color: #999;
    font-size: 13px;
}

/* 商品详情页价格和浏览量 */
.product-meta {
    display: flex;
    justify-content: flex-end;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.product-price {
    margin-bottom: 30px;
}

.current-price {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: bold;
}

.product-views {
    color: #999;
}

/* 相关商品卡片样式 */
.related-products .product-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.related-products .product-stats .price {
    color: var(--primary-color);
    font-weight: 500;
}

.related-products .product-stats .views {
    color: #999;
    font-size: 11px;
} 

.features {
    padding: 60px 0;

}

.features h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    color: #333;
    font-weight: 600;
}

.features-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.features-text p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #666;
    margin: 0;
}
.features-text p a {
    color: inherit;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.features-text p a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.features-text p a:hover {
    color: var(--primary-color);
}

.features-text p a:hover::after {
    transform: scaleX(1);
}
@media (max-width: 768px) {
    .features {
        padding: 40px 0;
    }

    .features h2 {
        font-size: 1.6em;
        margin-bottom: 25px;
    }

    .features-text {
        padding: 0 15px;
    }

    .features-text p {
        font-size: 1em;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .features {
        padding: 30px 0;
    }

    .features h2 {
        font-size: 1.4em;
        margin-bottom: 20px;
    }

    .features-text {
        padding: 0 12px;
    }
} 

/* 产品轮播 */
.product-carousel {
    padding: 40px 0;
    background-color: var(--bg-color);
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 calc(25% - 15px); /* 默认显示4个产品 */
    max-width: calc(25% - 15px);
    transition: all 0.3s ease;
}

.carousel-slide .product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.carousel-slide .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.carousel-slide .product-info {
    padding: 15px;
}

.carousel-slide h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #333;
    font-weight: 500;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.carousel-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* 平板电脑 - 显示3个产品 */
@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc(33.333% - 13.333px);
        max-width: calc(33.333% - 13.333px);
    }
    .carousel-container {
        padding: 0 35px;
    }
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
}

/* 大屏手机 - 显示2个产品 */
@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    .carousel-container {
        padding: 0 30px;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
    }
    .carousel-slide .product-info {
        padding: 12px;
    }
    .carousel-slide h3 {
        font-size: 0.9em;
    }
}

/* 小屏手机 - 显示1个产品 */
@media (max-width: 480px) {
    .carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .carousel-container {
        padding: 0 25px;
    }
    .carousel-track {
        gap: 15px;
    }
    .carousel-btn {
        width: 28px;
        height: 28px;
    }
    .carousel-slide .product-info {
        padding: 10px;
    }
    .carousel-slide h3 {
        font-size: 0.85em;
    }
}

/* 滚动优化 */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 动画性能优化 */
.product-card, 
.category-card, 
.carousel-btn,
.platform-item,
.nav-item {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 添加过渡效果前缀 */
.product-card {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* 添加变换效果前缀 */
.product-card:hover {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -o-transform: translateY(-5px);
    transform: translateY(-5px);
}

/* 添加阴影效果前缀 */
.product-card:hover {
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .product-card, .category-card {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        touch-action: manipulation;
    }
} 

/* 加载状态指示器 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: var(--primary-color);
}

.loading-spinner i {
    font-size: 2em;
    margin-bottom: 10px;
}

.loading-spinner span {
    display: block;
    font-size: 14px;
}

/* 全局消息提示 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: #fff;
    border-radius: 4px;
    padding: 12px 24px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    min-width: 250px;
    max-width: 450px;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    position: relative;
}

.toast.success {
    border-left: 4px solid #4caf50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.info {
    border-left: 4px solid var(--primary-color);
}

.toast i {
    margin-right: 8px;
}

/* 离线提示 */
.offline-alert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.offline-alert.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

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

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

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* 图片懒加载占位 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 优化滚动性能 */
.smooth-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 优化点击区域 */
.clickable {
    cursor: pointer;
    position: relative;
}

.clickable::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    z-index: -1;
} 
.product-carousel h2 {
    text-align: center;
    margin-bottom: 20px;  /* 可选：添加一些底部间距 */
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.pagination li.active a,
.pagination span.current { 
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.pagination .prev,
.pagination .next {
    min-width: 100px;
}

/* 移除点号和额外的空白 */
.pagination ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination li {
    display: flex;
    margin: 0;
    padding: 0;
}

/* 移除点号 */
.pagination li:before,
.pagination li:after {
    display: none;
}
    .platform-content::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .platform-content::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
    
  .platform-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.platform-content {
    background: white;
    width: 300px;  /* 缩小宽度到300px */
    height: 400px;
    border-radius: 8px;
    overflow-y: auto;
}

.platform-list {
    padding: 0;
}

.platform-item {
    display: block;
    padding: 12px 15px;  /* 减小左右内边距 */
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
}

.platform-header {
    padding: 12px 15px;  /* 减小header的内边距 */
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: rgba(3, 136, 209, 0.08);
    color: var(--primary-color);
    padding-left: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .mobile-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 4px 0 4px 12px;
        max-height: 280px;
        overflow-y: auto;
    }

    .mobile-nav .dropdown.collapsed .dropdown-menu {
        display: none;
    }

    .mobile-nav .dropdown-toggle .fa-chevron-down {
        display: inline-block;
        margin-left: auto;
        font-size: 12px;
        transition: transform 0.3s;
    }

    .mobile-nav .dropdown:not(.collapsed) .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
    }

    .category-nav .dropdown-menu {
        position: absolute;
    }

    .dropdown-toggle .fa-chevron-down {
        display: inline-block;
    }
}

/* 搜索框样式 */
.search-container {
    margin-right: 20px;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 6px 12px;
    transition: all 0.3s ease;
    margin-right: 20px;
    width: 100%;
    box-sizing: border-box;
}

.search-form:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search-input {
    border: none;
    background: none;
    padding: 8px 12px;
    flex: 1;
    min-width: 0;
    width: auto;
    font-size: 14px;
    color: var(--text-color);
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: none;
    border: none;
    color: #666;
    padding: 8px;
    cursor: pointer;
    transition: color 0.3s;
    flex-shrink: 0;
    margin-left: auto;
}

.search-btn:hover {
    color: var(--primary-color);
}

/* 顶栏搜索框宽度 */
.header-right .search-form {
    width: 220px;
    max-width: 42vw;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header-right .search-form {
        width: 150px;
        margin-right: 10px;
    }

    .search-input {
        padding: 6px 8px;
    }

    .search-btn {
        padding: 6px;
    }
}

/* 原站顶栏无独立 mobile-search 按钮，保留样式供扩展 */
.mobile-search-btn {
    display: none !important;
}

/* 移动端搜索框遮罩层 */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-search-overlay.active {
    display: flex;
    opacity: 1;
}

/* 移动端搜索容器 */
.mobile-search-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: var(--bg-color);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* 移动端搜索表单 */
.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 12px;
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 8px;
    font-size: 16px;
    color: var(--text-color);
    outline: none;
}

.mobile-search-submit,
.mobile-search-close {
    background: none;
    border: none;
    padding: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-search-submit {
    color: var(--primary-color);
}

.mobile-search-close {
    color: #666;
}

.mobile-search-submit:hover,
.mobile-search-close:hover {
    opacity: 0.8;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-container {
        display: none;
    }
}

/* 移动端导航栏搜索框 */
.mobile-header-search {
    display: none;
    margin-right: 15px;
}

.mobile-header-search-input {
    border: none;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 6px 12px;
    width: 150px;
    font-size: 14px;
    color: var(--text-color);
    outline: none;
}

.mobile-header-search-input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.mobile-header-search-btn {
    background: none;
    border: none;
    color: #666;
    padding: 6px;
    margin-left: -30px;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-header-search-btn:hover {
    color: var(--primary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-container {
        display: none;
    }

    .mobile-header-search {
        display: flex;
        align-items: center;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

/* 视频模块样式 */
.video-section {
    padding: 40px 0;
    background-color: var(--bg-color);
}

.video-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    padding: 0 20px;
    color: var(--text-color);
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    height: 0;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.video-info {
    max-width: 1000px;
    margin: 30px auto 0;
    padding: 0 20px;
    text-align: center;
}

.video-timestamps {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 16px;
}

.video-timestamps p {
    margin: 5px 0;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #4285f4;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-button:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.chrome-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .video-section {
        padding: 30px 0;
    }
    
    .video-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .video-container {
        padding: 0 15px;
        padding-bottom: 56.25%; /* 保持16:9的宽高比 */
    }
    
    .video-info {
        margin-top: 20px;
    }
    
    .video-timestamps {
        font-size: 14px;
    }
    
    .download-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .chrome-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 20px 0;
    }
    
    .video-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .video-container {
        padding: 0 10px;
        padding-bottom: 56.25%; /* 保持16:9的宽高比 */
    }
    
    .video-info {
        margin-top: 15px;
        padding: 0 15px;
    }
    
    .download-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .chrome-icon {
        width: 18px;
        height: 18px;
    }
}
/* 移动端搜索框样式优化 */
@media (max-width: 768px) {
    .header-left {
        flex: 1;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 20px;  /* 稍微减小 logo 字体大小 */
    }

    .mobile-header-search {
        display: flex;
        align-items: center;
        margin-right: 0;  /* 移除右边距 */
        margin-left: auto;  /* 将搜索框推到右边 */
        max-width: 150px;  /* 限制搜索框最大宽度 */
    }

    .mobile-header-search-input {
        width: 120px;  /* 减小搜索框宽度 */
        padding: 4px 10px;  /* 减小内边距 */
        font-size: 13px;  /* 减小字体大小 */
    }

    .mobile-header-search-btn {
        padding: 4px;
        margin-left: -25px;  /* 调整搜索按钮位置 */
        font-size: 14px;  /* 减小图标大小 */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;  /* 在更小的屏幕上进一步减小 logo 字体大小 */
    }

    .mobile-header-search {
        max-width: 120px;  /* 进一步限制搜索框最大宽度 */
    }

    .mobile-header-search-input {
        width: 100px;  /* 减小搜索框宽度 */
        padding: 3px 8px;  /* 减小内边距 */
    }
}

/* 热门推荐模块 */
.recommended-products {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.recommended-products .section-header {
    text-align: center;
    margin: 20px 0 15px;
}

.recommended-products .section-header h2 {
    display: inline-block;
    font-size: 20px;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 0 40px;
    margin: 0;
}

.recommended-products .section-header h2::before,
.recommended-products .section-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.recommended-products .section-header h2::before {
    left: 0;
}

.recommended-products .section-header h2::after {
    right: 0;
}

.recommended-products .products-grid {
    margin-top: 0;  /* 移除顶部边距 */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .recommended-products .section-header {
        margin: 15px 0 10px;
    }

    .recommended-products .section-header h2 {
        font-size: 18px;
        padding: 0 30px;
    }
}

/* 产品卡片样式优化 */
.recommended-products .product-info {
    padding: 10px;
}

.recommended-products .product-title {
    font-size: 12px;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.product-card .product-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .product-card .product-info {
        padding: 12px 15px;  /* 增加左右内边距 */
    }

    .product-card .product-title {
        font-size: 0.8em;
        margin-bottom: 8px;
    }

    .product-card .product-stats {
        padding: 0 3px;  /* 添加轻微的内边距 */
    }

}

.recommended-products .product-stats {
    font-size: 12px;
}

/* 分类选择器样式 */
.category-filter {
    margin-top: 0;
    margin-bottom: 12px;
    background: var(--bg-color);
    padding: 8px 0 12px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.filter-option {
    padding: 10px 25px;
    border-radius: 25px;
    background: #f8f9fa;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.filter-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(255, 69, 0, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.filter-option:hover::before {
    transform: translateX(100%);
}

.filter-option:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.filter-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
}

.filter-option.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 69, 0, 0.25);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .category-filter {
        margin-bottom: 12px;
        padding: 10px 0 12px;
    }

    .filter-container {
        padding: 0 15px;
    }

    .filter-options {
        gap: 10px;
    }

    .filter-option {
        padding: 8px 20px;
        font-size: 13px;
        min-width: 90px;
    }

}

@media (max-width: 480px) {
    .category-filter {
        padding: 12px 0;
    }

    .filter-container {
        padding: 0 12px;
    }

    .filter-option {
        padding: 6px 16px;
        font-size: 12px;
        min-width: 80px;
    }
}

/* 产品网格 */
.products-grid {
    margin-top: 0;
    padding-top: 8px;
}

.page-content.page-content--list .products-grid {
    padding-top: 4px;
}



.share-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.share-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.share-dropdown.is-open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .share-dropdown.is-open {
        transform: translateY(0);
    }
}

body.share-modal-open {
    overflow: hidden;
}

.share-item {
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.share-container {
    position: relative;
    display: inline-block;
}

.share-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.share-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.share-close {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.share-close:hover {
    color: #333;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 15px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.share-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.share-item:hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
}

.share-item i {
    width: 20px;
    margin-right: 8px;
    text-align: center;
    font-size: 16px;
}

/* 社交平台图标颜色 */
.share-item[data-platform="copy"] i {
    color: #495057;
}

.share-item[data-platform="facebook"] i {
    color: #1877f2;
}

.share-item[data-platform="twitter"] i {
    color: #1da1f2;
}

.share-item[data-platform="pinterest"] i {
    color: #e60023;
}

.share-item[data-platform="reddit"] i {
    color: #ff4500;
}

.share-item[data-platform="telegram"] i {
    color: #0088cc;
}

.share-item[data-platform="whatsapp"] i {
    color: #25d366;
}

.share-item[data-platform="line"] i {
    color: #00b900;
}

.share-item[data-platform="vk"] i {
    color: #45668e;
}

.share-item[data-platform="weibo"] i {
    color: #e6162d;
}

.share-item[data-platform="linkedin"] i {
    color: #0077b5;
}

.share-item[data-platform="tumblr"] i {
    color: #35465c;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .share-dropdown {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: translateY(100%);
        border-radius: 20px 20px 0 0;
        width: 100%;
        min-width: auto;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .share-header {
        padding: 15px;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
        text-align: center;
    }

    .share-header h3 {
        font-size: 15px;
        font-weight: 500;
    }

    .share-close {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        padding: 8px;
    }

    .share-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 15px;
        max-height: none;
    }

    .share-item {
        flex-direction: column;
        text-align: center;
        padding: 8px 5px;
        font-size: 12px;
    }

    .share-item i {
        font-size: 24px;
        width: auto;
        margin: 0 0 5px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 针对较小屏幕的优化 */
    @media (max-width: 360px) {
        .share-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            padding: 12px;
        }

        .share-item {
            padding: 8px 3px;
            font-size: 11px;
        }

        .share-item i {
            font-size: 22px;
            height: 22px;
        }
    }
}

/* 移动端暗色模式优化 */
@media (prefers-color-scheme: dark) {
    @media (max-width: 768px) {
        .share-header {
            background: #2d2d2d;
            border-bottom-color: #3d3d3d;
        }

        .share-item {
            background: transparent;
        }

        .share-item:active {
            background-color: #3d3d3d;
        }
    }
}

/* 添加移动端触摸反馈 */
@media (max-width: 768px) {
    .share-item {
        -webkit-tap-highlight-color: transparent;
    }

    .share-item:active {
        transform: scale(0.96);
        opacity: 0.8;
    }
}

/* 优化移动端动画 */
@media (max-width: 768px) {
    .share-dropdown {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.2s ease,
                    visibility 0.2s ease;
    }

    .share-overlay {
        transition: opacity 0.2s ease,
                    visibility 0.2s ease;
    }
}


.paragraph-2 {
    text-align: left;
    overflow-wrap: normal
}

.paragraph-3 {
    text-align: left
}

.text-block-2 {
    text-align: center;
    overflow-wrap: normal;
    background-color: #fafafa;
    font-size: 8px;
    line-height: 10px
}

/* 顶部推广 Banner（对齐 newchinabuy.com） */
.header-banner {
    width: 100%;
    height: 90px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    z-index: 1001;
}

.banner-close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.banner-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-slides {
    display: flex;
    transition: transform 0.3s ease;
}

.banner-slide {
    min-width: 100%;
    height: 90px;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.has-header-banner header {
    top: var(--banner-height);
}

body.has-header-banner header.banner-hidden,
body.has-header-banner.banner-collapsed header {
    top: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

body.has-header-banner:not(.banner-collapsed) .mobile-menu {
    top: var(--layout-top-offset);
    height: calc(100vh - var(--layout-top-offset));
}

body.has-header-banner.banner-collapsed .mobile-menu {
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
}

/*
 * Banner 在文档流中已占 90px，main 紧随其后；
 * 只需再留出固定顶栏高度，不可重复叠加 banner 高度。
 */
.page-content {
    margin-top: var(--header-height);
    padding: 0 20px 40px;
}

.page-content.page-content--list {
    margin-top: 0;
    padding: 16px 20px 40px;
}

.page-content.page-content--list > .category-filter:first-child {
    margin-top: var(--header-height);
    padding: 12px 0 10px;
    position: sticky;
    top: var(--layout-top-offset);
    z-index: 90;
    background: var(--bg-color);
}

body.has-header-banner.banner-collapsed .page-content.page-content--list > .category-filter:first-child {
    top: var(--header-height);
}

.page-content > .product-breadcrumb:first-child {
    padding: 8px 20px 4px;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.page-content.page-content--list > .product-breadcrumb:first-child {
    margin-top: var(--header-height);
}

.page-content.page-content--list > .product-breadcrumb:first-child + .category-filter {
    margin-top: 0;
}

.banner-placeholder {
    display: none;
}

/* 分类页双栏布局 */
.category-page-layout {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.category-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.category-sidebar h3 {
    font-size: 16px;
    margin: 0 0 12px;
    color: #333;
}

.category-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-sidebar-list li a {
    display: block;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.category-sidebar-list li.active a,
.category-sidebar-list li a:hover {
    background: rgba(3, 136, 209, 0.1);
    color: var(--primary-color);
}

.category-page-main {
    flex: 1;
    min-width: 0;
}

.page-search-form {
    max-width: 100%;
    width: 100%;
    margin: 16px 0;
}

.pagination-wrap {
    text-align: center;
    padding: 24px 0;
}

.pagination-wrap .pagination {
    display: inline-flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-wrap .pagination li a,
.pagination-wrap .pagination li span {
    display: block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.pagination-wrap .pagination li.active span {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.article-detail-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.article-detail-page .article-body {
    line-height: 1.7;
    margin-top: 20px;
}

.article-detail-page .article-body img {
    max-width: 100%;
    height: auto;
}

.platform-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.platform-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.platform-empty {
    padding: 20px;
    text-align: center;
    color: #888;
}

.thumbnail-list img.active {
    border: 2px solid var(--primary-color);
}

.logo-image {
    max-height: 42px;
    width: auto;
    display: block;
}

.category-card-img {
    max-width: 64px;
    max-height: 64px;
    margin: 0 auto 8px;
    display: block;
    object-fit: contain;
}

.platform-agent-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 10px;
}

.platform-item {
    display: flex;
    align-items: center;
}

.footer-contact {
    text-align: center;
    margin: 8px 0;
    font-size: 14px;
}

.footer-contact a {
    color: var(--primary-color);
}

.footer-contact-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

.footer-contact-btn:hover {
    opacity: 0.9;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.faq-question .faq-date {
    flex-shrink: 0;
    color: #888;
    font-size: 14px;
}

@media (max-width: 768px) {
    .category-page-layout {
        flex-direction: column;
    }

    .category-sidebar {
        width: 100%;
        position: static;
    }

    .category-sidebar-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .category-sidebar-list li a {
        padding: 6px 10px;
        background: #f5f5f5;
    }
}

.product-detail-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.product-detail-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    text-align: center;
}

.product-detail-section img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.search-page-header {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.search-page-header .page-search-form {
    max-width: 100%;
}

.faq-question-text {
    flex: 1;
    padding-right: 12px;
}

.faq-date {
    color: #888;
    font-size: 13px;
    white-space: nowrap;
}

.read-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.read-more-link:hover {
    text-decoration: underline;
}

.video-embed-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 24px auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tutorial-page .tutorial-back {
    text-align: center;
    margin-top: 24px;
}

.popular-products {
    margin-top: 40px;
}

/* Agent / 文章分类页（对齐 newchinabuy.com article-category） */
.page-content.page-content--article-category {
    margin-top: 0;
    padding: 0;
    max-width: none;
}

.page-content--article-category > .category-filter {
    margin-top: 0;
    position: static;
    top: auto;
}

/* 与 newchinabuy.com 一致：红色区用 padding 顶出导航，避免 margin 产生白条 */
.article-hero {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4500 100%);
    padding: calc(var(--header-height) + 20px) 20px 25px;
    text-align: center;
    color: #fff;
    box-sizing: border-box;
}

.article-hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: 0.5px;
}

.article-hero p {
    font-size: 14px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    line-height: 1.6;
}

.article-category-container.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.article-card .article-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.article-card .article-title {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .article-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.article-card .article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
    font-size: 13px;
    color: #999;
}

.article-card .article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-card .article-meta i {
    font-size: 14px;
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.25, 0.4, 0.2, 1);
    transform-origin: center;
}

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

.page-content--article-category .pagination-wrap {
    padding: 0 0 20px;
}

@media (max-width: 768px) {
    .article-hero {
        padding: calc(var(--header-height) + 16px) 16px 20px;
    }

    .article-hero h1 {
        font-size: 22px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }

    .article-card {
        padding: 15px;
    }

    .article-card .article-title {
        font-size: 15px;
    }

    .article-card .article-desc {
        font-size: 13px;
    }

    .article-card .article-meta {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .article-category-container.container {
        padding: 0 10px 30px;
    }

    .article-grid {
        gap: 10px;
    }

    .article-card {
        padding: 15px;
        min-height: 100px;
    }

    .article-card .article-title {
        font-size: 14px;
    }

    .article-card .article-desc {
        font-size: 12px;
    }

    .article-card .article-meta {
        font-size: 11px;
    }
}

/* —— 同步前台：服务端渲染链接 / details 折叠 —— */
a.banner-close {
    text-decoration: none;
}

details.faq-item .faq-answer {
    height: auto;
    opacity: 1;
    padding: 0 15px 12px;
}

details.faq-item:not([open]) .faq-answer {
    display: none;
}

details.faq-item > summary {
    list-style: none;
    cursor: pointer;
}

details.faq-item > summary::-webkit-details-marker {
    display: none;
}

a.article-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-buy-links {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color, #eee);
}

.product-buy-links__title {
    font-size: 16px;
    margin: 0 0 12px;
    font-weight: 600;
}

.platform-list--inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-list--inline .platform-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.platform-list--inline .platform-item:hover {
    border-color: var(--primary-color, #e74c3c);
    background: #fafafa;
}

.share-details {
    position: relative;
    display: inline-block;
}

.share-details__summary {
    list-style: none;
    cursor: pointer;
}

.share-details__summary::-webkit-details-marker {
    display: none;
}

.share-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 200;
    min-width: 280px;
    max-width: min(360px, 92vw);
    padding: 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.share-copy-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.share-copy-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.share-grid--server {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.share-grid--server .share-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #eee;
}

.share-grid--server .share-item:hover {
    background: #f5f5f5;
}

.action-btn--primary {
    text-decoration: none;
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.action-btn--primary:hover {
    background-color: #0277bd;
    color: #fff;
    border-color: #0277bd;
}

.action-btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .share-panel {
        position: fixed;
        left: 50%;
        right: auto;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
    }
}

/* 标题两边横杠样式 */
.section-title-with-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.section-title-with-lines::before,
.section-title-with-lines::after {
    content: '';
    flex: 1;
    max-width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.section-title-with-lines span {
    white-space: nowrap;
}
/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.video-modal.is-open {
    display: flex;
}
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}
.video-modal-close:hover {
    color: #ddd;
}
.video-modal-wrapper {
    width: 100%;
}
.video-modal-wrapper iframe,
.video-modal-wrapper video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

/* Buy Link 平台标签 */
.buy-platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-left: 4px;
}

.platform-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    background-color: #f0f0f0;
    color: #666;
    border: 1px solid #e0e0e0;
}

.platform-tag--weidian {
    background-color: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.platform-tag--taobao {
    background-color: #fff3e0;
    color: #e65100;
    border-color: #ffe0b2;
}

.platform-tag--1688 {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.platform-tag--pdd {
    background-color: #fce4ec;
    color: #c2185b;
    border-color: #f8bbd9;
}

.platform-tag--more {
    background-color: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
}
