/* 隐藏页脚下方的翻译工具栏 */
#translate {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.search-bar {
    max-width: 600px;
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    margin-left: auto;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-btn {
    padding: 12px 20px;
    background: #ff6b35;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #ff5722;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.action-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b35;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* 导航栏 */
.nav {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-item-link {
    color: white;
    text-decoration: none;
    padding: 12px 0;
    display: block;
    transition: opacity 0.3s;
}

.nav-item-link:hover,
.nav-item.active .nav-item-link {
    opacity: 0.8;
    border-bottom: 2px solid white;
}

/* 下拉菜单 */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 12px;
}

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

.dropdown-content {
    padding: 10px 0;
    min-width: 220px;
    max-height: 600px;
    overflow-y: auto;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.language-select {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    min-width: 120px;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-select option {
    background: #2c3e50;
    color: white;
    padding: 10px;
}

/* 下拉菜单滚动条 */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 主要内容区域 */
.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 400px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* 商品部分 */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.section-nav {
    display: flex;
    gap: 10px;
}

.nav-arrow {
    width: 35px;
    height: 35px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.nav-arrow:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.view-all-btn {
    background: transparent;
    border: none;
    color: #667eea;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.view-all-btn:hover {
    color: #764ba2;
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* 商品卡片 */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b35;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /*background: #f8f8f8;*/
}

.product-info {
    padding: 15px;
}

.product-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #666;
}

.product-seller img{
    width: 32px;
    margin: 10px 0;
}

.seller-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ddd;
}

.product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 39px;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b35;
}

.product-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-shipping {
    color: #52c41a;
}

.product-actions {
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.product-card .action-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.product-card .action-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.product-card .like-btn.liked {
    color: #ff6b35;
}

.product-card .like-btn.liked svg {
    fill: #ff6b35;
}

.product-card .action-btn svg {
    width: 16px;
    height: 16px;
    transition: all 0.3s;
}

.product-card .like-count,
.product-card .comment-count {
    font-size: 13px;
    font-weight: 500;
}

.action-icon {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.action-icon:hover {
    border-color: #667eea;
    color: #667eea;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    overflow-y: auto;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

/* 热门优惠列表 */
.deal-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.deal-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.deal-rank {
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}

.deal-info {
    flex: 1;
}

.deal-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.deal-rating {
    font-size: 12px;
    color: #ffc107;
}

/* 趋势商品列表 */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trending-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.trending-item:hover {
    background: #f8f8f8;
}

.trending-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.trending-info {
    flex: 1;
}

.trending-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
}

.trending-price {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 5px;
}

.trending-rating {
    font-size: 12px;
    color: #ffc107;
}

/* 特色商家 */
.featured-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-badge {
    padding: 8px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

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

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .header {
        width: 100%;
    }

    .header-top {
        position: relative;
        flex-wrap: wrap;
        width: 100%;
        gap: 12px;
        padding: 12px 0;
    }

    .logo {
        order: 1;
        flex-shrink: 0;
        width: 100%;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
        position: absolute;
        right: 0;
        top: 12px;
    }

    .search-bar {
        order: 3;
        flex: 1;
        max-width: none;
        width: calc(100% - 115px);
        margin-left: 0;
    }

    .language-switcher {
        order: 4;
        margin-left: 8px;
        flex-shrink: 0;
    }

    .language-select {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 100px;
        white-space: nowrap;
    }

    .action-btn span {
        display: none;
    }

    .nav {
        width: 100%;
    }

    .nav-list {
        gap: 15px;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        padding: 0;
    }

    .dropdown-menu {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        margin-top: 0;
        border-radius: 0;
        max-height: 60vh;
    }

    .dropdown-content {
        max-height: 60vh;
    }

    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown.active .dropdown-menu {
        transform: translateY(0);
    }

    .nav-item.dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }

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

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 10px;
    }

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

    .product-price {
        font-size: 16px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

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

    .section-header h2 {
        font-size: 18px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        border-radius: 8px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.pagination a{
    text-decoration: none;
}
