body { margin: 0; font-family: "Microsoft YaHei", Arial, sans-serif; }
:root {
    --primary: #2c3e50;
    --accent: #b8860b;
    --text-dark: #2c3e50;
    --text-gray: #6c757d;
    --bg-light: #f0f2f5;
    --border-color: #dee2e6;
    --max-w: 1200px;
}

.page-banner { position: relative; width: 100%; overflow: hidden; height: 300px; }
.page-banner img { width: 100%; height: 100%; display: block; object-fit: cover; }
.page-banner .banner-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; z-index: 2; }
.page-banner .banner-overlay h1 { color: #fff; font-size: 36px; font-weight: bold; text-shadow: 0 2px 8px rgba(0,0,0,0.3); margin: 0; }

/* 面包屑 */
.breadcrumb-bar {
    background: #f8f8f8;
    padding: 12px 0;
    font-size: 14px;
    color: #999;
}
.breadcrumb-bar .container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 15px;
}
.breadcrumb-bar a { color: var(--text-dark); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--accent); }
.breadcrumb-bar .sep { margin: 0 8px; color: #ccc; }
.breadcrumb-bar .current { color: var(--accent); }

/* 左右布局 */
.product-layout {
    display: flex;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px 15px;
    gap: 40px;
}

/* 左侧栏 */
.product-sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: 90px;
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--border-color);
}
.product-sidebar .sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    margin: 0;
    padding: 16px 18px;
    text-align: center;
    letter-spacing: 1px;
}
.product-sidebar .sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.product-sidebar .sidebar-menu li {
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}
.product-sidebar .sidebar-menu li:last-child {
    border-bottom: none;
}
.product-sidebar .sidebar-menu a {
    display: block;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}
.product-sidebar .sidebar-menu a:hover {
    color: var(--accent);
    background: #f8f6f0;
}
.product-sidebar .sidebar-menu .active a {
    color: var(--accent);
    border-left-color: var(--accent);
    background: #f8f6f0;
    font-weight: 600;
}

/* 右侧内容 */
.product-main {
    flex: 1;
    min-width: 0;
}
.product-main .page-title {
    font-size: 26px;
    color: var(--primary);
    font-weight: bold;
    margin: 0 0 8px;
    line-height: 1.4;
    text-align: left;
}
.product-main .page-divider {
    border: none;
    border-top: 3px solid var(--accent);
    width: 50px;
    margin: 0 0 25px;
}

.product-grid { display: grid; gap: 25px; }
.product-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.col-4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    transition: all 0.3s; border: 1px solid #eee;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(44,62,80,0.1); border-color: var(--accent); }
.product-card .card-img {
    width: 100%; padding-bottom: 133%; position: relative;
    overflow: hidden; background: #fafafa;
}
.product-card .card-img img {
    position: absolute; top: 50%; left: 50%;
    width: 90%; height: 90%; object-fit: contain;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.5s;
}
.product-card:hover .card-img img { transform: translate(-50%, -50%) scale(1.08); }
.product-card .card-body { padding: 18px 15px; text-align: center; }
.product-card .card-body .card-name { font-size: 16px; color: var(--text-dark); font-weight: bold; margin: 0; line-height: 1.4; }
.product-card .card-body .card-name a { color: inherit; text-decoration: none; }
.product-card .card-body .card-name a:hover { color: var(--accent); }

.page-bar { text-align: left; margin-top: 40px; }
.page-bar .pagination { display: inline-flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.page-bar .pagination li { margin: 0; }
.page-bar .pagination a, .page-bar .pagination span {
    display: block; padding: 8px 14px; border: 1px solid #ddd;
    border-radius: 4px; font-size: 14px; color: var(--text-dark);
    text-decoration: none; transition: all 0.3s;
}
.page-bar .pagination a:hover { border-color: var(--accent); color: var(--accent); }
.page-bar .pagination .active span { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-bar .pagination .disabled span { color: #ccc; cursor: default; }

@media screen and (max-width: 768px) {
    .page-banner { height: 200px; }
    .page-banner .banner-overlay h1 { font-size: 24px; }
    .product-layout { flex-direction: column; padding: 20px 15px; gap: 20px; }
    .product-sidebar { flex: none; position: static; width: 100%; }
    .product-sidebar .sidebar-menu { display: block; }
    .product-sidebar .sidebar-menu li { border-bottom: 1px solid var(--border-color); border-right: none; }
    .product-sidebar .sidebar-menu li:last-child { border-bottom: none; }
    .product-sidebar .sidebar-menu a { padding: 14px 18px; font-size: 14px; border-left: none; text-align: center; }
    .product-sidebar .sidebar-menu .active a { border-left-color: transparent; border-bottom-color: transparent; background: #f8f6f0; }
    .product-grid.col-3, .product-grid.col-4 { grid-template-columns: repeat(2, 1fr); }
}
