* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 顶部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6600 0%, #ff8833 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.3s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ff6600;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #ff6600;
}

.nav-links a:hover::after {
    width: 100%;
}

.user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: #ff6600;
    color: #ff6600;
}

.lang-btn.active {
    background: #ff6600;
    border-color: #ff6600;
    color: #fff;
}

.user-actions a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-actions a:hover {
    color: #ff6600;
}

.user-actions .btn-primary {
    background: #ff6600;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
}

.user-actions .btn-primary .btn-icon {
    display: none;
}

.user-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    vertical-align: middle;
}

.user-actions .btn-primary:hover {
    background: #ff8833;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
    padding: 5px;
    width: 32px;
    height: 32px;
}

.menu-icon,
.close-icon {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.mobile-menu-btn:hover {
    color: #ff6600;
}

/* 搜索区域 */
.search-section {
    background: linear-gradient(135deg, #ff6600 0%, #ff8833 100%);
    padding: 40px 0;
}

.search-box {
    display: flex;
    max-width: 800px;
    margin: 0 auto 15px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-btn {
    padding: 12px 40px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.hot-keywords {
    text-align: left;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-keywords span {
    font-size: 14px;
    opacity: 0.9;
}

.hot-keywords a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    display: inline-block;
}

.hot-keywords a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 轮播图和分类组合区域 */
.banner-category-section {
    padding: 20px 0;
    background: #fff;
}

.banner-category-wrapper {
    display: flex;
    gap: 15px;
}

/* 左侧分类栏 */
.category-sidebar {
    width: 220px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
    height: 384px;
}

.category-sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid #f5f5f5;
    height: 48px;
}

.category-sidebar-item:last-child {
    border-bottom: none;
}

.category-sidebar-item:hover {
    background: linear-gradient(90deg, #fff5f0 0%, #fff 100%);
    padding-left: 25px;
}

.category-sidebar-icon {
    font-size: 18px;
    margin-right: 12px;
}

.category-sidebar-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.category-sidebar-item:hover .category-sidebar-name {
    color: #ff6600;
}

/* 右侧轮播图 */
.banner-slider {
    flex: 1;
    position: relative;
    height: 384px;
    border-radius: 8px;
    overflow: hidden;
}

.banner-slider:hover .banner-arrow {
    opacity: 1;
}

.banner-slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.banner-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

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

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.banner-arrow-left {
    left: 20px;
}

.banner-arrow-right {
    right: 20px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.banner-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.banner-dots .dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.banner-dots .dot.active {
    background: #ff6600;
    width: 30px;
    border-radius: 5px;
    border: 1px solid #ff6600;
}

/* 分类区域 - 已移除，合并到轮播图区域 */

/* 推荐横幅 */
.recommendation-banner {
    padding: 40px 0;
    background: #f8f8f8;
}

.banner-title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.banner-title h3 {
    font-size: 28px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.banner-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #ff6600;
    border-radius: 2px;
}

.banner-title span {
    font-size: 14px;
    color: #999;
    margin-left: 15px;
}

.banner-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.banner-images .banner-item {
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
}

.banner-images .banner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.banner-images .banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.banner-images .banner-item:hover img {
    transform: scale(1.05);
}

/* 商品区域 */
.products-section {
    padding: 10px 0 50px 0;
}

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff6600;
}

.products-header h2 {
    font-size: 24px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.products-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #ff6600;
}

.products-tabs {
    display: flex;
    gap: 30px;
}

.products-tabs a {
    text-decoration: none;
    color: #666;
    font-size: 15px;
    transition: color 0.3s;
}

.products-tabs a:hover,
.products-tabs a.active {
    color: #ff6600;
}

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

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

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

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    color: #ff6600;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-company {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* 加载更多 */
.loading-more {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 14px;
}

.loading-text::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ff6600;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-more-text {
    color: #ccc;
}

/* 底部 */
.footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
}

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

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

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .mobile-lang-switcher {
        display: none;
    }
    
    .nav-links .mobile-lang-switcher {
        display: flex;
        gap: 10px;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        justify-content: center;
        background: #f8f8f8;
    }
    
    .mobile-lang-switcher .lang-btn {
        flex: 1;
        max-width: 100px;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .user-actions {
        gap: 10px;
    }
    
    .user-actions a {
        font-size: 13px;
    }
    
    .user-actions .btn-primary {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .banner-category-wrapper {
        gap: 12px;
    }
    
    .category-sidebar {
        width: 180px;
    }
    
    .category-sidebar-item {
        padding: 12px 15px;
    }
    
    .category-sidebar-icon {
        font-size: 18px;
    }
    
    .category-sidebar-name {
        font-size: 13px;
    }
    
    .banner-slider {
        height: 200px;
    }
    
    .banner-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .banner-arrow-left {
        left: 10px;
    }
    
    .banner-arrow-right {
        right: 10px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .category-item {
        padding: 20px 10px;
    }
    
    .category-icon {
        font-size: 36px;
    }
    
    .category-name {
        font-size: 13px;
    }
    
    .banner-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-tabs {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .header {
        border-bottom: 3px solid #ff6600;
    }
    
    .products-section .container {
        padding: 0 8px;
    }
    
    .header-top {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 24px;
        flex: 1;
    }
    
    .logo:hover {
        transform: none;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 0;
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .mobile-lang-switcher {
        display: none;
    }
    
    .nav-links .mobile-lang-switcher {
        display: flex;
        gap: 10px;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        justify-content: center;
        background: #f8f8f8;
    }
    
    .mobile-lang-switcher .lang-btn {
        flex: 1;
        max-width: 100px;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .user-actions {
        display: flex;
        gap: 45px;
        align-items: center;
    }
    
    .lang-switcher {
        display: none;
    }
    
    .user-actions a:not(.btn-primary) {
        display: none;
    }
    
    .user-actions .btn-primary {
        padding: 0;
        background: transparent;
        font-size: 28px;
        border-radius: 0;
        width: auto;
        height: auto;
        color: #5a7a9b;
    }
    
    .user-actions .btn-primary:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
        color: #ff6600;
    }
    
    .user-actions .btn-primary .btn-text {
        display: none;
    }
    
    .user-actions .btn-primary .btn-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0;
    }
    
    .user-icon {
        width: 28px;
        height: 28px;
    }
    
    .mobile-menu-btn {
        color: #333;
        width: 28px;
        height: 28px;
        padding: 0;
    }
    
    .mobile-menu-btn:hover {
        color: #ff6600;
    }
    
    .search-section {
        padding: 15px 0;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hot-keywords {
        font-size: 12px;
    }
    
    .banner-category-section {
        padding: 0;
        display: block;
    }
    
    .banner-category-section .container {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .banner-category-wrapper {
        display: block;
        width: 100%;
    }
    
    .category-sidebar {
        display: none;
    }
    
    .banner-slider {
        width: 100%;
        height: 150px !important;
        border-radius: 0;
        position: relative;
        display: block;
    }
    
    .banner-slides-wrapper {
        display: flex;
        width: 100%;
        height: 100%;
    }
    
    .banner-slide {
        flex-shrink: 0;
        width: 100%;
        height: 100%;
    }
    
    .banner-slide img {
        border-radius: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .banner-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .banner-arrow-left {
        left: 5px;
    }
    
    .banner-arrow-right {
        right: 5px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .category-item {
        padding: 18px 8px;
        border-radius: 12px;
    }
    
    .category-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .banner-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .banner-images .banner-item {
        height: 80px;
    }
    
    .products-header h2 {
        font-size: 18px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-card {
        border-radius: 8px;
        background: #fff;
    }
    
    .product-image {
        height: 180px;
        border-radius: 8px 8px 0 0;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-title {
        font-size: 13px;
        line-height: 1.4;
        height: 36px;
        margin-bottom: 6px;
    }
    
    .product-price {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .product-company {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .product-sales {
        font-size: 11px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .footer {
        padding: 20px 0 15px;
        background: #2a2a2a;
    }
    
    .footer-section {
        text-align: center;
        padding: 0 5px;
    }
    
    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 8px;
        color: #ff8833;
        font-weight: 600;
    }
    
    .footer-section a {
        font-size: 12px;
        margin-bottom: 5px;
        color: #aaa;
        transition: color 0.3s;
    }
    
    .footer-section a:hover {
        color: #ff8833;
    }
    
    .footer-bottom {
        padding-top: 12px;
        font-size: 11px;
        color: #888;
        border-top: 1px solid #444;
    }
}
