/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 160px; /* 为固定导航栏留出空间 */
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* 顶部样式 */
.top-bar {
   background: #c0392b;
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
}

.top-left a, .top-right a {
  margin-right: 15px;
  text-decoration: none;
  color: var(--text-color);
}

.post-info-btn {
  background: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
}

/* 头部样式 */
header {
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 22px;
    color: var(--primary-color);
}

.logo-text p {
    font-size: 12px;
    color: #777;
}

 .search-area {
            flex: 1;
            max-width: 500px;
            margin: 0 20px;
        }
        
        .search-form {
            display: flex;
        }
        
        .search-form input {
            flex: 1;
            padding: 10px 15px;
            border: 2px solid var(--secondary-color);
            border-radius: 4px 0 0 4px;
            font-size: 16px;
        }
        
        .search-form button {
            background: var(--secondary-color);
            color: white;
            border: none;
            padding: 0 20px;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
        }
        
        .auth-buttons {
            display: flex;
        }
        
        .auth-buttons a {
            padding: 8px 15px;
            margin-left: 10px;
            border-radius: 4px;
            font-weight: 500;
        }
        
        .login-btn {
            color: var(--secondary-color);
            border: 1px solid var(--secondary-color);
        }
        
        .register-btn {
            background: var(--secondary-color);
            color: white;
        }

/* 导航栏样式 */
nav {
     background: #c0392b;
    
    position: relative;
    z-index: 999;
}

.nav-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 15px;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-menu {
    display: inline-flex;
    list-style: none;
}

.nav-menu li {
    padding: 15px 20px;
}

.nav-menu a {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* 固定导航栏 */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 网站简介 */
.intro {
    background: 
    color: white;
    padding: 25px 0;
    text-align: left;
    margin-bottom: 30px;
}

.intro h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.intro p {
    max-width: 100%px;
    margin: 0 auto;
    font-size: 16px;
}

/* 信息栏 */
.info-section {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.supply-list, .purchase-list {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 18px;
    color: var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.info-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.video-column {
    flex: 1.5;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    background: white;
    display: flex;
    flex-direction: column;
}

.video-container {
    flex: 1;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-placeholder {
    text-align: center;
}

.video-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

/* 产品展示 */
.products {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 120px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.product-info {
    padding: 10px;
}

.product-title {
    font-size: 14px;
    margin-bottom: 5px;
}

.product-price {
    color: var(--accent-color);
    font-weight: bold;
}

/* 展会信息栏 */
.exhibition {
    margin-bottom: 40px;
}

.exhibition-section {
    display: flex;
    gap: 20px;
}

.exhibition-info, .international-exhibition {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.exhibition-carousel, .logistics-carousel {
    flex: 1.5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    background: white;
    display: flex;
    flex-direction: column;
}

.carousel-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

.slide-img {
    flex: 1;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.slide-title {
    padding: 10px;
    text-align: center;
    background: #f5f5f5;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.carousel-prev, .carousel-next {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.indicator.active {
    background: white;
}

/* 物流信息栏 */
.logistics {
    margin-bottom: 40px;
}

.logistics-section {
    display: flex;
    gap: 20px;
}

.logistics-info, .freight-info {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* 综合信息 */
.comprehensive {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.companies, .technology, .news {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.scroll-list {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.scroll-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* 页脚 */
footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    padding: 5px 0;
}

.footer-contact, .footer-address {
    text-align: center;
    margin-bottom: 15px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 100%px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 200px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo-area {
        margin-bottom: 15px;
    }
    
    .search-area {
        max-width: 100%;
        margin: 0 0 15px;
    }
    
    .auth-buttons {
        justify-content: center;
    }
    
    .info-section, .comprehensive, .logistics-section, .exhibition-section {
        flex-direction: column;
    }
    
    .video-column, .exhibition-carousel, .logistics-carousel {
        height: 250px;
        order: -1;
        margin-bottom: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu li {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
}