/* ======================================
   Made-in-China.com International Site
   ====================================== */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =================== HEADER =================== */
.main-header {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 200;
}
.header-container {
    max-width: 1520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 30px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.logo-icon {
    background: #D0021B;
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-brand {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.5px;
}
.logo-sub {
    font-size: 10px;
    color: #999;
    font-weight: 400;
}

/* Search */
.search-box {
    flex: 1;
    max-width: 700px;
    display: flex;
    align-items: center;
    border: 2px solid #E64545;
    border-radius: 25px;
    overflow: hidden;
    height: 44px;
    background: #fff;
    position: relative;
}
.search-type {
    background: #fafafa;
    border-right: 1px solid #eee;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
    height: 100%;
}
.search-type i { font-size: 18px; color: #999; }
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 14px;
    height: 100%;
}
.search-camera {
    color: #bbb;
    cursor: pointer;
    font-size: 22px;
    padding: 0 8px;
    transition: color 0.2s;
}
.search-camera:hover { color: #E64545; }
.search-btn {
    background: #E64545;
    color: #fff;
    border: none;
    width: 56px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.search-btn:hover { background: #cc3333; }
.search-btn i { font-size: 24px; }

/* Header Actions */
.header-actions {
    display: flex;
    gap: 5px;
}
.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 12px;
    cursor: pointer;
    color: #555;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}
.action-item:hover { color: #E64545; }
.action-item i { font-size: 22px; margin-bottom: 2px; }
.signin-item {
    border-left: 1px solid #eee;
    padding-left: 18px;
    margin-left: 8px;
}

/* =================== NAV =================== */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.nav-container {
    max-width: 1520px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    padding: 0 20px;
}
.nav-left, .nav-right {
    display: flex;
    align-items: center;
}
.all-categories {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    cursor: pointer;
    padding-right: 20px;
    border-right: 1px solid #eee;
    margin-right: 5px;
    font-size: 13px;
}
.all-categories i { font-size: 20px; }
.nav-links {
    display: flex;
    align-items: center;
}
.nav-links li a {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-links li a:hover { color: #E64545; }
.nav-highlight { color: #333 !important; }
.badge-new {
    background: #ff4d4f;
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 4px;
    font-weight: 600;
}
.nav-right .nav-links li a i { font-size: 16px; margin-left: 2px; color: #999; }

/* =================== PROMO BAR =================== */
.promo-bar {
    background: linear-gradient(90deg, #D0021B 0%, #001529 100%);
    color: #fff;
    padding: 10px 0;
}
.promo-container {
    max-width: 1520px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.promo-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.promo-tag {
    background: #fff;
    color: #D0021B;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.promo-title {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.3px;
}
.promo-date {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.promo-date i { font-size: 14px; }
.promo-features {
    display: flex;
    gap: 15px;
    margin-left: 10px;
}
.promo-features span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}
.promo-features i { font-size: 14px; }
.promo-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 6px 22px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}
.promo-btn:hover {
    background: #fff;
    color: #D0021B;
}

/* =================== HERO SECTION =================== */
.hero-section {
    max-width: 1520px;
    margin: 15px auto;
    padding: 0 20px;
}
.hero-container {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 15px;
}

/* Sidebar Categories */
.sidebar-categories {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.side-title {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.side-title i { font-size: 20px; color: #555; }
.cat-list li {
    padding: 7px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 12.5px;
    color: #444;
    transition: all 0.15s;
    border-bottom: 1px dotted #f5f5f5;
}
.cat-list li:hover {
    background: #fef5f5;
    color: #E64545;
    padding-left: 20px;
}
.cat-list li i { font-size: 16px; color: #ccc; transition: color 0.15s; }
.cat-list li:hover i { color: #E64545; }

/* Middle Banner */
.middle-banner {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 420px;
}
.banner-slider { position: relative; width: 100%; height: 100%; }
.banner-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 40px 50px;
    opacity: 0;
    transition: opacity 0.6s;
    color: #fff;
}
.banner-slide.active { opacity: 1; z-index: 1; }
.slide-badge {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    position: absolute;
    top: 30px;
    left: 30px;
    line-height: 1.2;
    color: #fff;
}
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}
.slide-content h2 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.slide-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 5px;
}
.slide-date { font-size: 13px; opacity: 0.7; }
.slide-btn {
    margin-top: 20px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.slide-btn:hover { background: rgba(255,255,255,0.3); }
.slide-visual {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    height: 100%;
    overflow: hidden;
}
.slide-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.banner-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background: #E64545;
    width: 22px;
    border-radius: 10px;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
}
.banner-arrow:hover { background: rgba(255,255,255,0.4); }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }

/* You May Like */
.you-may-like {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}
.like-list {
    flex: 1;
    padding: 6px 12px;
}
.like-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
    transition: background 0.15s;
}
.like-item:hover { background: #fafafa; }
.like-item:last-child { border-bottom: none; }
.like-img {
    width: 50px;
    height: 50px;
    background: #f7f7f7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.like-img i { font-size: 28px; color: #999; }
.like-name { font-size: 13px; font-weight: 600; color: #333; }
.like-count { font-size: 11px; color: #999; margin-top: 2px; }
.post-request {
    padding: 14px;
    background: #fffbf0;
    border-top: 1px solid #f0e8d6;
    text-align: center;
}
.post-request p { font-size: 12px; color: #888; margin-bottom: 8px; }
.post-rfq-btn {
    background: #faad14;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}
.post-rfq-btn:hover { background: #e09a00; }
.post-rfq-btn i { font-size: 16px; }

/* =================== SERVICE FEATURES =================== */
.service-features {
    max-width: 1520px;
    margin: 15px auto;
    padding: 0 20px;
}
.features-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.feature-card {
    background: #fff;
    border-radius: 6px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.feat-title { font-weight: 700; font-size: 14px; color: #333; }
.feat-desc { font-size: 12px; color: #999; margin-top: 2px; }
.feat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fef5f5, #fee);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feat-icon i { font-size: 26px; color: #E64545; }

/* =================== HOT PRODUCTS =================== */
.section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #222;
}
.hot-products {
    max-width: 1520px;
    margin: 30px auto;
    padding: 0 20px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px 15px 15px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.2s;
}
.product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.product-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img i { font-size: 40px; color: #bbb; }
.product-name { font-size: 13px; font-weight: 600; color: #444; }

/* =================== INDUSTRY FLOORS =================== */
.industry-floor {
    max-width: 1520px;
    margin: 20px auto;
    padding: 0 20px;
}
.floor-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.floor-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}
.floor-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.floor-title {
    font-size: 22px;
    font-weight: 800;
    color: #222;
}
.floor-more {
    background: #E64545;
    color: #fff;
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}
.floor-more:hover { background: #cc3333; }
.floor-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #f0f0f0;
}
.floor-product {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}
.floor-product:hover { background: #fafafa; }
.floor-prod-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floor-prod-img i { font-size: 36px; color: #999; }
.floor-product p { font-size: 14px; font-weight: 600; color: #444; }

.floor-green .floor-title { color: #1a7a5a; }
.floor-green .floor-more { background: #1a7a5a; }
.floor-green .floor-more:hover { background: #146040; }
.floor-orange .floor-title { color: #c07a2e; }
.floor-orange .floor-more { background: #c07a2e; }
.floor-orange .floor-more:hover { background: #a06520; }

/* =================== TRADE SHOWS =================== */
.trade-shows {
    max-width: 1520px;
    margin: 30px auto;
    padding: 0 20px;
}
.shows-container {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: relative;
}
.shows-sub {
    color: #888;
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 25px;
}
.shows-more {
    position: absolute;
    top: 30px;
    right: 30px;
    background: #E64545;
    color: #fff;
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.shows-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.show-main {
    border-radius: 8px;
    overflow: hidden;
    min-height: 350px;
    background: linear-gradient(135deg, #1a2a4a, #2a4a6a);
    position: relative;
}
.show-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.show-overlay h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.show-overlay p { font-size: 13px; opacity: 0.8; }
.shows-list { display: flex; flex-direction: column; gap: 15px; }
.show-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.show-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.show-item-img {
    width: 140px;
    min-height: 90px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.show-item-img i { font-size: 36px; color: #bbb; }
.show-item-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.show-item-info p { font-size: 12px; color: #888; }

/* =================== HOT ITEMS =================== */
.hot-items {
    max-width: 1520px;
    margin: 30px auto;
    padding: 0 20px;
}
.hot-items-container {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.hot-items-container h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}
.hot-items-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px 25px;
}
.hot-col a {
    display: block;
    font-size: 12px;
    color: #666;
    padding: 4px 0;
    transition: color 0.2s;
}
.hot-col a:hover { color: #E64545; }

/* =================== FOOTER =================== */
.main-footer {
    background: #fff;
    margin-top: 40px;
    border-top: 3px solid #E64545;
}
.footer-container {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 40px 0;
}
.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: #777;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: #E64545; }
.footer-bottom {
    border-top: 1px solid #eee;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: #222;
}
.footer-logo .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 18px;
}
.footer-bottom p { font-size: 12px; color: #999; }

/* =================== SIDE WIDGETS =================== */
.side-widgets {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 300;
}
.widget-item {
    background: #fff;
    width: 52px;
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 9px;
    color: #666;
    border: 1px solid #eee;
    transition: background 0.2s;
}
.widget-item:first-child { border-radius: 6px 6px 0 0; }
.widget-item:last-child { border-radius: 0 0 6px 6px; }
.widget-item:hover { background: #f5f5f5; }
.widget-item i { font-size: 22px; margin-bottom: 2px; }
.widget-top {
    background: #f8f8f8;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* TradeMessenger */
.trade-messenger {
    position: fixed;
    right: 80px;
    bottom: 25px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    z-index: 300;
    transition: box-shadow 0.2s;
}
.trade-messenger:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.15); }
.tm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}
