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

/* 头部样式 */
.site-header .navbar {
    padding: 1rem 0;
}

.site-header .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.site-header .nav-link:hover {
    color: #007bff !important;
}

.product-menu-dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.product-menu-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, 88vw);
    margin-top: 0;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.14s ease, visibility 0.14s ease;
    z-index: 1200;
}

.product-menu-dropdown:hover .product-menu-panel,
.product-menu-dropdown:focus-within .product-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-menu-columns {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
}

.product-menu-categories {
    display: grid;
    gap: 6px;
    padding-right: 8px;
    border-right: 1px solid #e9ecef;
}

.product-menu-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 12px;
    color: #1f2937;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.product-menu-category:hover,
.product-menu-category.active {
    background: #eef5ff;
    color: #0d6efd;
}

.product-menu-products {
    min-height: 180px;
}

.product-menu-product-group {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    align-content: start;
}

.product-menu-product-group.active {
    display: grid;
}

.product-menu-product {
    display: block;
    padding: 8px 10px;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    background: #f8fafc;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.product-menu-product:hover {
    background: #e8f1ff;
    color: #0d6efd;
    transform: translateY(-1px);
}

.product-menu-empty {
    padding: 10px;
    color: #6b7280;
}

/* 轮播图样式 */
.hero-section {
    position: relative;
    height: 500px;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
}

.swiper-button-next,
.swiper-button-prev,
.swiper-pagination {
    z-index: 20;
}

.swiper-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.swiper-content p {
    font-size: 1.2rem;
}

/* 产品卡片样式 */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.featuredProductsSwiper .product-card .card-img-top {
    height: 360px;
    object-fit: cover;
}

.products-list-section .product-card .card-img-top {
    height: 380px;
    object-fit: cover;
}

.featured-products-wrap {
    padding: 0 44px;
}

.featured-product-slide {
    height: auto;
}

.featured-product-slide .product-card {
    margin: 0;
}

.featured-products-next,
.featured-products-prev {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 20;
}

.featured-products-prev {
    left: 0;
}

.featured-products-next {
    right: 0;
}

.featured-products-next::before,
.featured-products-prev::before {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    transform: translate(-50%, -50%);
}

.featured-products-prev::before {
    content: '<';
}

.featured-products-next::before {
    content: '>';
}

/* 新闻卡片样式 */
.news-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* 页脚样式 */
.site-footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #adb5bd !important;
}

/* 通用间距 */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.swiper-container {
    overflow: hidden;
}

.featuredProductsSwiper {
    height: auto !important;
    overflow: hidden;
}

.featuredProductsSwiper .swiper-wrapper {
    align-items: stretch;
}

.featuredProductsSwiper .featured-product-slide {
    height: auto;
}

.featuredProductsSwiper .product-card {
    margin: 0;
    overflow: hidden;
}

.home-about-section {
    position: relative;
}

.home-about-intro {
    padding: 40px 36px;
    border-radius: 24px;
    background: linear-gradient(160deg, #133c69 0%, #1f5f96 100%);
    color: #fff;
    box-shadow: 0 18px 45px rgba(19, 60, 105, 0.18);
}

.section-eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.7);
}

.home-about-intro .lead {
    color: rgba(255, 255, 255, 0.92);
}

.home-about-intro p {
    color: rgba(255, 255, 255, 0.78);
}

.home-about-intro .btn {
    min-width: 140px;
    background: #fff;
    border-color: #fff;
    color: #133c69;
}

.home-about-card {
    height: 100%;
    padding: 28px 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.home-about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: #eaf3fb;
    color: #1f5f96;
    font-size: 22px;
}

.home-about-card h4 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.home-about-card p {
    margin-bottom: 0;
    color: #667085;
}
