﻿@charset "utf-8";

     /* ===== 页面横幅 ===== */
        .page-banner {
            background: linear-gradient(135deg, rgba(10, 47, 108, 0.82) 0%, rgba(26, 75, 140, 0.70) 100%),
                        url('../img1/a8.jpg') center / cover no-repeat;
            padding: 5rem 2rem;
            text-align: center;
            color: #fff;
            position: relative;
            overflow: hidden;
        }
        .page-banner::before {
            content: '';
            position: absolute;
            right: -80px;
            top: -80px;
            width: 350px;
            height: 350px;
            background: radial-gradient(circle, rgba(106, 176, 254, 0.2) 0%, transparent 70%);
            border-radius: 50%;
        }
        .page-banner::after {
            content: '';
            position: absolute;
            left: -40px;
            bottom: -40px;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(143, 203, 255, 0.15) 0%, transparent 70%);
            border-radius: 50%;
        }
        .page-banner .banner-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            margin: 0 auto;
        }
        .page-banner .banner-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: #b3d9ff;
            background: rgba(255, 255, 255, 0.12);
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: auto;
            margin-right: auto;
            border: 2px solid rgba(255, 255, 255, 0.25);
            text-shadow: 0 2px 10px rgba(0,0,0,0.4);
            animation: float 3s ease-in-out infinite;
        }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }
        .page-banner h1 {
            font-size: 2.6rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-shadow: 0 4px 20px rgba(0,0,0,0.5);
            margin-bottom: 0.6rem;
        }
        .page-banner p {
            font-size: 1.15rem;
            font-weight: 300;
            letter-spacing: 0.5px;
            opacity: 0.92;
            text-shadow: 0 2px 12px rgba(0,0,0,0.4);
        }
        @media (max-width: 768px) {
            .page-banner { padding: 3.5rem 1.5rem; }
            .page-banner h1 { font-size: 1.8rem; }
            .page-banner p { font-size: 0.95rem; }
        }

        /* ===== 主内容区：左菜单 + 右产品网格 ===== */
        .products-layout {
            display: flex;
            gap: 2.5rem;
            margin: 2.8rem auto 2.5rem;
            width: 73%;
            align-items: flex-start;
        }

        /* ===== 左栏菜单 ===== */
        .sidebar-menu {
            flex: 0 0 280px;
            background: #fff;
            border-radius: 20px;
            box-shadow: 0 4px 24px rgba(10, 47, 108, 0.08);
            border: 1px solid #e8f0fe;
            overflow: hidden;
            position: sticky;
            top: 92px;
        }
        .sidebar-menu .menu-header {
            background: linear-gradient(135deg, #0a2f6c, #1a6bc4);
            padding: 1.5rem 1.5rem;
            color: #fff;
            text-align: center;
        }
        .sidebar-menu .menu-header h3 {
            font-size: 1.1rem;
            font-weight: 700;
            margin: 0;
            letter-spacing: 0.5px;
        }
        .sidebar-menu .menu-header .menu-count {
            font-size: 0.78rem;
            opacity: 0.8;
            margin-top: 0.3rem;
            font-weight: 300;
        }
        .sidebar-menu ul {
            list-style: none;
            margin: 0;
            padding: 0.5rem 0;
        }
        .sidebar-menu ul li {
            margin: 0;
        }
        .sidebar-menu ul li a {
            display: flex;
            align-items: center;
            gap: 0.9rem;
            padding: 0.95rem 1.5rem;
            color: #2a4a6a;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            transition: all 0.25s ease;
            border-left: 3px solid transparent;
            position: relative;
            cursor: pointer;
        }
        .sidebar-menu ul li a .menu-num {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background: #e8f2ff;
            color: #1a6bc4;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.78rem;
            font-weight: 700;
            transition: all 0.25s ease;
            flex-shrink: 0;
        }
        .sidebar-menu ul li a:hover {
            background: #f5f9fe;
            color: #08305c;
            border-left-color: #6ab0fe;
            padding-left: 1.8rem;
        }
        .sidebar-menu ul li a:hover .menu-num {
            background: #1a6bc4;
            color: #fff;
            transform: scale(1.1);
        }
        .sidebar-menu ul li a.active {
            background: linear-gradient(90deg, rgba(26, 107, 196, 0.08), rgba(26, 107, 196, 0.02));
            color: #08305c;
            font-weight: 600;
            border-left-color: #1a6bc4;
        }
        .sidebar-menu ul li a.active .menu-num {
            background: linear-gradient(135deg, #1a6bc4, #0a2f6c);
            color: #fff;
            box-shadow: 0 4px 12px rgba(26, 107, 196, 0.3);
        }

        /* ===== 右栏产品区域 ===== */
        .products-main {
            flex: 1;
            min-width: 0;
        }
        .products-main .category-header {
            margin-bottom: 2rem;
        }
        .products-main .category-header h2 {
            font-size: 1.8rem;
            font-weight: 700;
            color: #08305c;
            margin-bottom: 0.3rem;
        }
        .products-main .category-header .category-desc {
            font-size: 0.95rem;
            color: #5d7a9e;
            letter-spacing: 0.3px;
            padding: 0.4rem 0 0.6rem;
        }
        .products-main .category-divider {
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, #1a6bc4, #6ab0fe);
            border-radius: 3px;
            margin-bottom: 2rem;
        }

        /* ===== 产品网格 ===== */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.8rem;
        }
        .product-card {
            background: #fff;
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid #e8f0fe;
            box-shadow: 0 2px 12px rgba(10, 47, 108, 0.04);
            transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            cursor: pointer;
            position: relative;
        }
        .product-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 16px 40px rgba(10, 47, 108, 0.14);
            border-color: #6ab0fe;
        }
        .product-card .card-img-wrapper {
            position: relative;
            width: 100%;
            padding-top: 90%;
            background: #f5f9fe;
            overflow: hidden;
        }
        .product-card .card-img-wrapper img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .product-card:hover .card-img-wrapper img {
            transform: scale(1.08);
        }
        /* 图片上的渐变遮罩 */
        .product-card .card-img-wrapper::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40%;
            background: linear-gradient(to top, rgba(10, 47, 108, 0.35), transparent);
            z-index: 1;
            pointer-events: none;
            transition: opacity 0.3s;
        }
        .product-card:hover .card-img-wrapper::after {
            opacity: 0.6;
        }
        /* 悬停时出现的查看按钮 */
        .product-card .card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 47, 108, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 2;
            pointer-events: none;
        }
        .product-card:hover .card-overlay {
            opacity: 1;
        }
        .product-card .card-overlay span {
            background: rgba(255,255,255,0.95);
            color: #1a6bc4;
            padding: 0.6rem 1.6rem;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.9rem;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            transform: translateY(10px);
            transition: transform 0.3s ease;
        }
        .product-card:hover .card-overlay span {
            transform: translateY(0);
        }
        .product-card .card-body {
            padding: 1.3rem 1.2rem 1.5rem;
            position: relative;
            z-index: 1;
            background: #fff;
            text-align: center;
        }
        .product-card .card-body .product-name {
            font-size: 1.05rem;
            font-weight: 600;
            color: #08305c;
            line-height: 1.4;
        }
        .product-card .card-tag {
            position: absolute;
            top: 12px;
            right: 12px;
            background: linear-gradient(135deg, #1a6bc4, #0a2f6c);
            color: #fff;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 0.25rem 0.8rem;
            border-radius: 20px;
            z-index: 3;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 8px rgba(10, 47, 108, 0.25);
        }

        /* 响应式 */
        @media (max-width: 1200px) {
            .product-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 900px) {
            .products-layout { flex-direction: column; margin: 1.5rem 1rem 2rem; width: auto; }
            .sidebar-menu {
                flex: none;
                width: 100%;
                position: static;
                border-radius: 16px;
            }
            .sidebar-menu ul {
                display: flex;
                flex-wrap: wrap;
                gap: 0.3rem;
                padding: 0.8rem;
            }
            .sidebar-menu ul li a {
                padding: 0.6rem 1rem;
                font-size: 0.82rem;
                border-left: none;
                border-radius: 10px;
                background: #f5f9fe;
            }
            .sidebar-menu ul li a:hover {
                padding-left: 1rem;
                background: #e8f2ff;
            }
            .sidebar-menu ul li a .menu-num { display: none; }
            .sidebar-menu ul li a.active {
                background: linear-gradient(135deg, #1a6bc4, #0a2f6c);
                color: #fff;
            }
            .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
        }
        @media (max-width: 600px) {
            .product-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
            .product-card { border-radius: 14px; }
            .product-card .card-body { padding: 0.8rem 0.8rem 1rem; }
            .product-card .card-body .product-name { font-size: 0.85rem; }
            .products-main .category-header h2 { font-size: 1.4rem; }
        }
        @media (max-width: 400px) {
            .product-grid { grid-template-columns: 1fr; }
        }