html,
body {
    height: 100%;
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    margin: 0;
}

a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
}

a:hover {
    color: #474157;
}
a:focus {
   color: #fff;
}
a:active{
    color: #fff;
}
hr {
    max-width: 100px;
    margin: 25px auto 0;
    border-width: 1px;
    border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
    border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 200;
    letter-spacing: 1px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}


#mainbody {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow-y: hidden;
    background: #f1f6fd;
    color: #474157;
    height: calc(100vh - 61px);
}

#mainbody > .container > .text-center {
    text-align: center;
    padding: 350px 0 50px;
    position: relative;
    height: 100vh;
}

#mainbody > .container > .text-center h1 {
    font-size: 50px;
    font-weight: bold;
    color: #171347
}

#mainbody > .container > .text-center > a {
    background: #fdcc52;
    background: -webkit-linear-gradient(#fdcc52, #fdc539);
    background: linear-gradient(#fdcc52, #fdc539);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 300px;
    margin-top: 20px;
    padding: 10px 45px;
    font-size: 14px;
    text-decoration: none;
}

@media (max-height: 500px) {
    #mainbody {
        height: inherit;
    }
}

@media (min-width: 768px) {
    .navbar-default {
        background-color: transparent;
        border-color: transparent;
    }

    #mainbody .index-text {
        text-align: left;
    }
}

@media (max-width: 767px) {

    #mainbody > .container > .text-center {


        padding: 130px 0 0 0;
        height: calc(100vh - 261px);
    }

    #mainbody > .container > .text-center > h1 {


        font-size: 50px;
        margin-bottom: 20px;
    }
}

.footer {
    background-color: #222222;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.footer p {
    font-size: 14px;
    margin: 0;
}

/* 产品首页样式 */
.product-home-page {
    background-color: #F8F7F5;
    min-height: 100vh;
}

/* 轮播图区域 */
.product-carousel-section {
    background-color: #F8F7F5;
    padding: 0 180px;
    position: relative;
    display: flex;
    gap: 0;
}

.product-carousel {
    width: 80%;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.product-carousel .swiper-slide {
    width: 100%;
    height: auto;
}

.carousel-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.carousel-right {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 30vw;
    display: block;
    object-fit: cover;
}

/* 首页产品分类 — 深色侧栏样式（与截图一致） */
.product-carousel-section .desktop-category.ph-home-menu {
    position: relative;
    left: 0;
    top: 0;
    width: 20%;
    background: #5a595c;
    color: #fff;
    z-index: 3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    height: 30vw;
    display: flex;
    flex-direction: column;
    padding: 0;
    flex-shrink: 0;
}
.product-carousel-section .desktop-category.ph-home-menu h3 {
    margin: 0;
    padding: 14px 50px;
    background: #5a595c;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255);

}
.product-carousel-section .desktop-category.ph-home-menu .multi-level-menu {
    background: #5a595c;
    color: #fff;
    flex: 1;
    /* 确保内层占满并继承背景 */
    padding-top: 12px;
    padding-left: 50px;
}
.product-carousel-section .desktop-category.ph-home-menu .menu-level{
    
    
}
.product-carousel-section .desktop-category.ph-home-menu .menu-level .menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    padding-right: 20px;
    border-bottom: 1px solid rgba(255,255,255);
    cursor: pointer;
}
.product-carousel-section .desktop-category.ph-home-menu .menu-level .menu-item:last-child {
    border-bottom: 1px solid rgba(255,255,255);
}
.product-carousel-section .desktop-category.ph-home-menu .menu-level .menu-text {
    color: #fff;
    font-size: 14px;
	padding-left: 20px;
}
.level-1 .menu-text{
	padding-left: 0 !important;
}
.product-carousel-section .desktop-category.ph-home-menu .menu-level .menu-arrow {
    color: #ddd;
    font-style: normal;
    font-size: 14px;
}
.product-carousel-section .desktop-category.ph-home-menu .menu-level .menu-item:hover {
    background: rgba(255,255,255,0.06);
}
.product-carousel-section .desktop-category.ph-home-menu .dropdown-menu {
    background: #5a595c;
    color: #fff;
    min-width: 320px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    border-left: 1px solid rgba(255,255,255,0.25);
}
.product-carousel-section .desktop-category.ph-home-menu .menu-empty {
    padding: 12px 20px;
    color: #e6e6e6;
}

/* Swiper 分页器样式 */
.product-carousel .swiper-pagination {
    bottom: 20px;
    text-align: center;
}

.product-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #CCCCCC;
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.product-carousel .swiper-pagination-bullet-active {
    background-color: #D0151C;
    width: 12px;
    height: 12px;
}
.category-display{
    position: absolute;
    background: #5a595c;
}
/* 产品分类区域 */
.product-categories-section {
    background-color: #F8F7F5;
    padding: 60px 180px;
}

.categories-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: #E0E0E0;
    border: 1px solid #E0E0E0;
}

.ph-category-card {
    background-color: #ffffff;
    padding: 40px;
    transition: all 0.3s ease;
}

.ph-category-card:hover {
    background-color: #ffffff;
}

.ph-category-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.ph-category-text {
    flex: 1;
}

.ph-category-title {
    font-size: 28px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 20px;
    letter-spacing: 0;
}

.ph-category-description {
    width: 200px;
    height: 100px;
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.ph-category-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ph-btn-learn-more {
    display: inline-flex;
    align-items: center;
    background-color: #D0151C;
    color: #ffffff;
    padding: 8px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 8px;
    white-space: nowrap;
}
.ph-btn-learn-more img {
    width: 10px;
    height: 10px;
}
.ph-btn-show-list img {
    width: 10px;
    height: 10px;
}
.ph-btn-learn-more:hover {
    background-color: #cc001f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 38, 0.3);
}

.ph-btn-show-list {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #E0E0E0;
    padding: 8px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 8px;
    white-space: nowrap;
}

.ph-btn-show-list:hover {
    background-color: #F5F5F5;
    border-color: #CCCCCC;
    transform: translateY(-2px);
}

.ph-arrow-icon {
    font-size: 16px;
    font-weight: bold;
}

.ph-category-image {
    flex: 0 0 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ph-category-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1399px) {
    .ph-category-image {
        flex: 0 0 220px;
        max-width: 220px;
    }
}

@media (max-width: 1610px) {
    /* 1301px到1610px使用25%/75%比例 */
    .product-carousel {
        width: 75%;
    }

    .product-carousel-section .desktop-category.ph-home-menu {
        width: 25%;
    }
}

@media (max-width: 1300px) {
    .ph-category-image {
        flex: 0 0 200px;
        max-width: 150px;
    }

    /* 小屏幕时恢复30%/70%比例 */
    .product-carousel {
        width: 70%;
    }

    .product-carousel-section .desktop-category.ph-home-menu {
        width: 30%;
    }
}

@media (max-width: 1200px) {
    .carousel-content {
        width: 100%;
    }

    .categories-container {
        grid-template-columns: 1fr;
    }

    .ph-category-content {
        flex-direction: column;
        text-align: center;
    }

    .ph-category-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .ph-category-text {
        width: 100%;
    }

    .ph-category-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .ph-category-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .ph-category-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .ph-btn-learn-more,
    .ph-btn-show-list {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
