/* 东晟密封件B2B平台 - 主样式 */
:root {
    --primary-color: #0d1b2a;
    --secondary-color: #1b263b;
    --accent-color: #415a77;
    --highlight-color: #778da9;
    --warning-color: #ffc107;
    --text-light: #e0e1dd;
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    padding: 8px 0;
    font-size: 14px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header .navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-text {
    color: var(--warning-color);
}

.header .nav-link {
    color: var(--text-light) !important;
    padding: 10px 20px;
    transition: all 0.3s;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: var(--warning-color) !important;
}

.header .form-control {
    border-radius: 20px 0 0 20px;
    border: none;
}

.header .btn-warning {
    border-radius: 0 20px 20px 0;
}

/* Banner */
.banner-carousel {
    margin-top: 0;
}

.banner-carousel .carousel-item img {
    height: 400px;
    object-fit: cover;
}

.banner-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 100px 0;
}

/* Sections */
.section-padding {
    padding: 60px 0;
}

.section-title h2 {
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--warning-color);
}

/* Category Card */
.category-card {
    display: block;
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 30px;
    color: var(--warning-color);
}

.category-card h5 {
    color: var(--primary-color);
    margin: 0;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 50px;
}

.product-info {
    padding: 15px;
}

.product-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    color: #e53935;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.product-location,
.product-time {
    color: #999;
    margin: 0;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-item h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 50px 0 20px;
}

.footer h5,
.footer h6 {
    color: var(--warning-color);
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--warning-color);
}

.footer ul li {
    margin-bottom: 10px;
}

/* Main Content */
.main-content {
    min-height: 500px;
}

/* Product List */
.filter-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--warning-color);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary-color);
    color: white;
}

/* Product Detail */
.product-detail-image {
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-detail-image img {
    width: 100%;
    height: auto;
}

.product-detail-info {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-detail-price {
    font-size: 28px;
    color: #e53935;
    font-weight: bold;
}

.product-detail-meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.product-detail-meta p {
    margin: 5px 0;
}

/* Contact Form */
.contact-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Publish Form */
.publish-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.publish-form .form-label {
    font-weight: 600;
    color: var(--primary-color);
}

.publish-form .form-control {
    border-radius: 8px;
}

.publish-form .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 40px;
    font-weight: 600;
}

.publish-form .btn-primary:hover {
    background: var(--secondary-color);
}

/* Auth Pages */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
}

.auth-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.auth-card h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.auth-card .btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .banner-carousel .carousel-item img {
        height: 250px;
    }
    
    .banner-placeholder {
        padding: 60px 0;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .product-image {
        height: 150px;
    }
}
