/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* 页面容器 */
.container {
    max-width: 1200px;
}

/* 产品卡片 */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 产品详情页 */
.product-image-main {
    height: 400px;
    object-fit: contain;
    background-color: #fff;
    border: 1px solid #ddd;
}

.product-thumbnails img {
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ddd;
    margin: 5px;
    transition: border-color 0.2s ease;
}

.product-thumbnails img:hover {
    border-color: #007bff;
}

/* 产品描述Markdown样式 */
.product-description {
    line-height: 1.6;
}

.product-description h1, 
.product-description h2, 
.product-description h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.product-description img {
    max-width: 100%;
    height: auto;
}

.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.product-description th, 
.product-description td {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
}

/* 类别侧栏 */
.category-sidebar {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.category-sidebar .nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
}

.category-sidebar .nav-link:hover {
    background-color: #f8f9fa;
    border-left-color: #ddd;
}

.category-sidebar .nav-link.active {
    color: #007bff;
    background-color: #e9f2ff;
    border-left-color: #007bff;
}

/* 管理员界面 */
.admin-dashboard-card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.admin-dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-dashboard-icon {
    font-size: 2.5rem;
    color: #007bff;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .product-image-main {
        height: 300px;
    }
    
    .product-thumbnails img {
        height: 60px;
    }
} 