/* PC版回收网站样式 */

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

body {
    font-family: 'Microsoft YaHei', Arial, 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 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: #04c484;
    font-size: 24px;
}

.nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #04c484;
}

.user-actions button {
    margin-left: 10px;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-login {
    background: transparent;
    border: 1px solid #04c484;
    color: #04c484;
}

.btn-login:hover {
    background: #04c484;
    color: white;
}

.btn-register {
    background: #04c484;
    color: white;
}

.btn-register:hover {
    background: #03a870;
}

/* Banner区域 */
.banner {
    margin-top: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 40px;
}

.banner-buttons button {
    margin: 0 10px;
    padding: 15px 40px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #04c484;
    color: white;
}

.btn-primary:hover {
    background: #03a870;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 196, 132, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
}

.btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* 分类区域 */
.categories {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

/* 分类标题区域 */
.category-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.category-label img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* 分类内容区域 */
.category-body {
    display: flex;
    gap: 15px;
    flex: 1;
}

/* 左侧内容 */
.category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-content .product-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

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

/* 右侧图片 */
.category-image {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 80px;
    object-fit: contain;
}

/* 品牌区域 */
.brands {
    padding: 80px 0;
    background: white;
}

/* 品牌列表 - 横向滚动 */
.brand-scroll-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 20px;
    -webkit-overflow-scrolling: touch;
}

/* 美化滚动条 */
.brand-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.brand-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.brand-scroll-container::-webkit-scrollbar-thumb {
    background: #04c484;
    border-radius: 3px;
}

.brand-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #03a870;
}

.brand-card {
    flex: 0 0 auto;
    width: 120px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: #04c484;
    background: white;
}

.brand-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.brand-card h3 {
    font-size: 14px;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 回收流程 */
.how-it-works {
    padding: 80px 0;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    padding: 30px;
}

.step-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.step p {
    color: #666;
}

/* 优势特点 */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #666;
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #04c484;
}

.footer-section p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.social-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #04c484;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .nav {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    .banner-content h2 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
}
