/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 1.5rem;
    border-left: 4px solid #007bff;
    padding-left: 10px;
    margin-bottom: 20px;
}

/* 头部导航 */
.navbar-brand img {
    height: 40px;
}

.cart-count {
    position: relative;
    top: -8px;
}

/* 轮播图 */
.carousel-item img {
    height: 400px;
    object-fit: cover;
}

/* 商品卡片 */
.product-card {
    transition: all 0.3s;
    height: 100%;
    border: 1px solid #eee;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-title {
    font-size: 16px;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-box {
    margin: 10px 0;
}

.current-price {
    color: #f44336;
    font-size: 18px;
    font-weight: bold;
}

.original-price {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
    margin-left: 5px;
}

/* 分销商品样式 */
.distribute-card {
    position: relative;
}

.distribute-badge {
    position: absolute;
    top: 10px;
    right: 0;
    background: #ff5722;
    color: white;
    padding: 3px 10px;
    font-size: 12px;
    z-index: 1;
    border-radius: 4px 0 0 4px;
}

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 底部样式 */
footer {
    background-color: #343a40;
    color: white;
    padding: 40px 0 0 0;
    margin-top: 50px;
}

footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #aaa;
    text-decoration: none;
}

footer ul li a:hover {
    color: #fff;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.copyright {
    background-color: #212529;
    padding: 15px 0;
    color: #aaa;
    text-align: center;
    margin-top: 20px;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .carousel-item img {
        height: 200px;
    }
    
    .product-card .card-img-top {
        height: 160px;
    }
    
    footer {
        text-align: center;
    }
    
    footer .col-md-3 {
        margin-bottom: 30px;
    }
}

/* 登录/注册表单 */
.login-container, .register-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    background: white;
}

.form-title {
    text-align: center;
    margin-bottom: 25px;
    color: #343a40;
}

/* 购物车样式 */
.cart-table th {
    background-color: #f8f9fa;
}

.cart-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
} 