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

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #ff6600;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

.top-nav {
    background-color: #f7f7f7;
    border-bottom: 1px solid #eee;
    height: 30px;
    line-height: 30px;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
}

.top-nav-left a,
.top-nav-right a {
    margin-right: 20px;
    color: #666;
    font-size: 12px;
}

.top-nav-left a:last-child,
.top-nav-right a:last-child {
    margin-right: 0;
}

.header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 2px solid #ff6600;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
}

.search-box {
    flex: 1;
    margin: 0 40px;
}

.search-tabs {
    margin-bottom: 8px;
}

.search-tabs span {
    display: inline-block;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

.search-tabs span.active {
    background-color: #ff6600;
    color: #fff;
    border-radius: 3px 3px 0 0;
}

.search-input-wrapper {
    display: flex;
}

.search-input {
    flex: 1;
    height: 40px;
    border: 2px solid #ff6600;
    border-right: none;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    width: 100px;
    height: 40px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.hot-search {
    margin-top: 8px;
    font-size: 12px;
}

.hot-search span {
    color: #999;
}

.hot-search a {
    color: #666;
    margin-right: 10px;
}

.hot-search a:hover {
    color: #ff6600;
}

.cart a {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 5px;
}

.cart-icon {
    margin-right: 8px;
    font-size: 20px;
}

.main-nav {
    background-color: #ff6600;
    height: 40px;
}

.main-nav .container {
    display: flex;
    height: 100%;
}

.category-menu {
    width: 200px;
    background-color: #e55a00;
    position: relative;
}

.category-title {
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
}

.category-list {
    position: absolute;
    top: 40px;
    left: 0;
    width: 200px;
    background-color: #fff;
    border: 1px solid #ff6600;
    border-top: none;
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-list.show {
    display: block;
    opacity: 1;
}

.category-item {
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.category-item:hover {
    background-color: #fff5ee;
    color: #ff6600;
}

.category-item .arrow {
    color: #ccc;
}

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-links a {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 20px;
    color: #fff;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #e55a00;
}

.main-content {
    padding: 20px 0;
}

.main-content .container {
    display: flex;
    gap: 20px;
}

.left-sidebar,
.right-sidebar {
    width: 200px;
}

.middle-content {
    flex: 1;
}

.sidebar-box {
    background-color: #fff;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.sidebar-box h3 {
    height: 35px;
    line-height: 35px;
    padding: 0 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

.sidebar-links {
    padding: 10px;
}

.sidebar-links a {
    display: inline-block;
    padding: 5px 8px;
    font-size: 12px;
    color: #666;
}

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

.quick-entry,
.service-links,
.news-list {
    padding: 10px;
}

.quick-entry a,
.service-links a,
.news-list a {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px dashed #eee;
}

.quick-entry a:last-child,
.service-links a:last-child,
.news-list a:last-child {
    border-bottom: none;
}

.quick-entry a:hover,
.service-links a:hover,
.news-list a:hover {
    color: #ff6600;
    background-color: #fff5ee;
}

.slider-area {
    background-color: #fff;
    margin-bottom: 20px;
    height: 350px;
    overflow: hidden;
}

.slider img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.section {
    background-color: #fff;
    margin-bottom: 20px;
    padding: 15px;
}

.gender-tabs-nav {
    background-color: #ff6600;
    height: 40px;
    margin-bottom: 10px;
}

.gender-tabs-nav .container {
    display: flex;
    height: 100%;
}

.gender-tabs {
    flex: 1;
    display: flex;
    align-items: center;
}

.gender-tabs span {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 25px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.gender-tabs span:hover,
.gender-tabs span.active {
    background-color: #e55a00;
}

.product-tabs-nav {
    background-color: #ff6600;
    height: 40px;
    margin-bottom: 15px;
}

.product-tabs-nav .container {
    display: flex;
    height: 100%;
}

.product-tabs {
    flex: 1;
    display: flex;
    align-items: center;
}

.product-tabs span {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 20px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.product-tabs span:hover,
.product-tabs span.active {
    background-color: #e55a00;
}

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

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

.section-sub {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.more-link {
    font-size: 12px;
    color: #666;
}

.more-link:hover {
    color: #ff6600;
}

.merchant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.merchant-item {
    width: calc(50% - 7.5px);
}

.merchant-info {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.merchant-info:hover {
    border-color: #ff6600;
}

.merchant-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.merchant-detail h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.merchant-detail p {
    font-size: 12px;
    color: #999;
}

.merchant-detail p span {
    color: #ff6600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.product-item {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 10px;
    transition: all 0.3s;
}

.product-item:hover {
    border-color: #ff6600;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.1);
}

.product-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.product-title {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.product-price {
    font-size: 16px;
    color: #ff6600;
    font-weight: bold;
}

.excellent-merchants {
    background-color: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
}

.excellent-merchants .section-header {
    margin-bottom: 20px;
}

.merchants-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.merchant-card {
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.merchant-card:hover {
    border-color: #ff6600;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.1);
}

.merchant-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 10px;
}

.merchant-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.merchant-card p {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.footer {
    background-color: #fff;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.copyright {
    text-align: center;
    font-size: 13px;
    color: #666;
}

.copyright p {
    margin: 8px 0;
}

.copyright p:first-child {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.tech-support {
    color: #999;
    font-size: 12px;
}

/* 翻页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

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

.page-btn:disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.page-ellipsis {
    color: #999;
    font-size: 14px;
    padding: 0 5px;
}

.page-info {
    color: #666;
    font-size: 13px;
    margin-left: 15px;
}

/* 供应链咨询弹出框样式 */
.consult-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.consult-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.consult-modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.consult-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.consult-modal-close:hover {
    color: #ff6600;
}

.consult-modal-header {
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: #fff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.consult-modal-header h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.consult-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.consult-info {
    margin-bottom: 25px;
}

.consult-name {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.consult-phone {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.consult-phone a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}

.consult-phone a:hover {
    text-decoration: underline;
}

.consult-wechat {
    border-top: 1px dashed #eee;
    padding-top: 25px;
}

.wechat-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.wechat-qrcode {
    width: 200px;
    height: 200px;
    border: 2px solid #eee;
    border-radius: 8px;
    object-fit: cover;
}

/* 手机端响应式样式 - 测试用的古怪效果 */
@media screen and (max-width: 768px) {
    .container {
        width: 200%;
        padding: 0 50px;
    }

    /* 头部样式 */
    .header .container {
        flex-direction: row-reverse;
        gap: 50px;
    }

    .logo img {
        height: 200px;
        transform: rotate(15deg);
    }

    .search-box {
        margin: 0;
        width: 300px;
    }

    .search-tabs span {
        padding: 20px 30px;
        font-size: 30px;
        color: #ff00ff;
    }

    .search-input {
        font-size: 5px;
        background-color: #00ffff;
    }

    .search-btn {
        width: 200px;
        font-size: 8px;
        background-color: #ffff00;
        color: #ff0000;
    }

    /* 主内容区 */
    .main-content .container {
        flex-direction: row-reverse;
    }

    .middle-content {
        width: 50%;
    }

    /* 轮播图 */
    .slider-area {
        height: 50px;
    }

    .slider img {
        height: 50px;
        transform: scaleX(0.5);
    }

    /* 分类标签 */
    .gender-tabs-nav {
        margin-bottom: 50px;
        background-color: #00ff00;
    }

    .gender-tabs span {
        padding: 30px 50px;
        font-size: 25px;
        color: #0000ff;
        transform: skewX(10deg);
    }

    .gender-tabs span:hover,
    .gender-tabs span.active {
        background-color: #ff00ff;
    }

    .product-tabs-nav {
        margin-bottom: 50px;
        background-color: #ff0000;
    }

    .product-tabs {
        overflow-x: visible;
        white-space: normal;
        flex-wrap: wrap;
    }

    .product-tabs span {
        padding: 20px 40px;
        font-size: 20px;
        color: #ffff00;
        transform: rotate(-5deg);
    }

    /* 商品网格 */
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 50px;
    }

    .product-item {
        transform: scale(0.3);
        background-color: #00ffff;
    }

    .product-img {
        height: 300px;
        transform: rotate(180deg);
    }

    .product-price {
        font-size: 50px;
        color: #ff0000;
    }

    /* 翻页控件 */
    .pagination {
        padding: 50px 0;
        gap: 30px;
        flex-direction: column;
    }

    .page-btn {
        padding: 30px 50px;
        font-size: 25px;
        background-color: #ffff00;
        color: #ff00ff;
    }

    .page-info {
        font-size: 2px;
        width: 100%;
        text-align: right;
        margin-top: 50px;
        color: #00ff00;
    }

    /* 弹出框 */
    .consult-modal-content {
        width: 200%;
        max-width: 800px;
        transform: rotate(5deg);
    }

    .consult-modal-header {
        background: linear-gradient(135deg, #ff00ff, #00ffff);
    }

    .consult-modal-header h3 {
        font-size: 40px;
        transform: scaleX(2);
    }

    .consult-name {
        font-size: 5px;
        color: #00ff00;
    }

    .consult-phone a {
        font-size: 3px;
        color: #ffff00;
    }

    .wechat-qrcode {
        width: 50px;
        height: 50px;
        transform: rotate(45deg);
    }

    /* Footer */
    .footer {
        padding: 100px 0;
        background-color: #0000ff;
    }

    .copyright p {
        font-size: 40px;
        color: #ff00ff;
        transform: skewY(-5deg);
    }

    .tech-support {
        font-size: 2px;
        color: #00ffff;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 300%;
        padding: 0 100px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 100px;
    }

    .product-img {
        height: 50px;
        transform: scale(3);
    }

    .product-tabs span {
        padding: 40px 60px;
        font-size: 35px;
        transform: rotate(15deg);
    }

    .gender-tabs span {
        padding: 50px 70px;
        font-size: 40px;
        transform: scaleY(2);
    }
}