:root {
    --primary-color: #ff4500;
    --bg-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --header-height: 70px;
}

* {
    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);
}

/* 头部样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.logo:hover {
    opacity: 0.8;
}

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

.nav-item {
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    transition: color 0.3s;
}

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


.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);
}

.flink{margin-bottom:20px;}
.flink ul{display:flex;max-width:1200px;flex-wrap:wrap;margin:auto;text-align:center;margin:auto;justify-content:center;}
.flink ul li{list-style:none;}
.flink ul li a{color:#666;text-decoration:none;padding:0 10px;}



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

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

    .header-right {
        gap: 10px;
    }

    .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;
}

.mobile-menu.active + header .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;
    }

    .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;
    }

    .social-icons {
        gap: 12px;
    }

    .login-btn {
        padding: 6px 16px !important;
        font-size: 14px !important;
        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);
    }
}

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

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

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

/* 动画效果 */
.mobile-menu {
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.category-nav {
    display: flex;
    gap: 30px;
}

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

.nav-item i {
    font-size: 18px;
}

.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-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-controls button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 24px;
    padding: 8px;
}

.login-btn {
    display: none;
}

/* 首页样式 */
.home-content {
    margin-top: var(--header-height);
    padding: 40px 20px;
}

.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;
}

.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: calc(var(--header-height) + 15px);
}

.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 {
    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 {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    background: var(--bg-color);
}

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

.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;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.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: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 商品图片区域 */
.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.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 {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail-list img {
    width: 70px !important;
    height: 70px !important;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    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-info {
    padding: 20px;
}

.product-title {
    font-size: 14px;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    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-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 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-gallery {
        position: static;
        max-width: 100%;
    }
    
    .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-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(var(--primary-color), 0.1);
    color: var(--primary-color);
    padding-left: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
    }
    
    .dropdown-toggle .fa-chevron-down {
        display: none;
    }
}

/* 搜索框样式 */
.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;
}

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

.search-input {
    border: none;
    background: none;
    padding: 8px 12px;
    width: 200px;
    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;
}

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

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

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

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

/* 移动端搜索按钮 */
.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* 移动端搜索框遮罩层 */
.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-search-btn {
        display: block;
        margin-right: 10px;
    }
}

/* 移动端导航栏搜索框 */
.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: calc(var(--header-height) + 20px);
    margin-bottom: 30px;
    background: var(--bg-color);
    padding: 20px 0;
    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-top: calc(var(--header-height) + 10px);
        margin-bottom: 20px;
        padding: 15px 0;
    }

    .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: 20px;
}
