/* ============================================
   SplashCraft 首页特定样式
   注意：通用样式、Header和Footer样式已移至 common.css
   ============================================ */
:root {
    --color: #4DB6E3;
    --color1: #6FC5EB;
    --hovercolor: #333333;
    --fontcolor: #333333;
    --titlecolor: #333333;
    --introcolor: #666666;
    --headercolor: #ffffff;
    --footercolor: #333333;
    --bgcolor: linear-gradient(90deg, var(--color1, var(--color)), var(--color));
    --prosaspectratio: 1/1;
    --newssaspectratio: 3/2;
    --hometitlefont: 40px;
    --fontsize12: 12px;
    --fontsize13: 13px;
    --fontsize14: 14px;
    --fontsize15: 15px;
    --fontsize16: 16px;
    --fontsize17: 17px;
    --fontsize18: 18px;
    --fontsize20: 20px;
    --fontsize22: 22px;
    --fontsize24: 24px;
    --fontsize26: 26px;
    --fontsize28: 28px;
    --fontsize30: 30px;
    --fontsize32: 32px;
    --fontsize34: 34px;
    --fontsize36: 36px;
    --fontsize38: 38px;
    --fontsize40: 40px;
    --fontsize48: 48px;
    --fontbold3: 300;
    --fontbold4: 400;
    --fontbold5: 500;
    --fontbold6: 600;
    --fontbold7: 700;
    --fontbold8: 800;
    --fontbold9: 900;
    --borderradius: 5px;
    --fontfamily: "Raleway", "Open Sans", "Roboto", "Poppins", "Oswald", "Noto Sans", "Montserrat", sans-serif
}

/* 主视觉区域 - Swiper轮播图 */
.hero {
    position: relative;
    min-height: 600px;
    overflow: visible;
}

.hero-swiper {
    width: 100%;
    height: 600px;
}

.hero-swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    background-color: #1C2B4C;
}

.hero-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}





/* Swiper导航按钮样式 */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* Swiper分页器样式 */
.hero-swiper .swiper-pagination {
    bottom: 180px;
    z-index: 20;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 6px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: var(--text-white);
    padding: 40px 0;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title-bold {
    font-weight: 700;
    display: block;
    margin-top: 10px;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

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

/* 首页各模块统一标题样式 */
.section-head {
    margin-bottom: 32px;
    padding-bottom: 18px;
    border-bottom: 1px solid #d9d9d9;
    text-align: center;
}

.section-title {
    font-size: var(--hometitlefont);
    line-height: 1.2;
    font-weight: var(--fontbold7);
    color: var(--titlecolor);
    text-align: center;
    text-transform: uppercase;
}

.home-title {
    font-size: var(--hometitlefont);
    font-weight: var(--fontbold5);
    color: var(--fontcolor);
    text-align: center;
    text-transform: capitalize;
    line-height: 1.4;
}

.home-title span {
    color: var(--color);
}

.home-about,
.home-cate {
    position: relative;
    padding: 4% 0
}

.home-cate {
    background: #f5f5f5
}

.home-cate .cateul {
    margin-top: 2em;
    display: flex;
    justify-content: center;
    background: #e6e7e7;
    border-radius: 26px;
    height: 52px;
    padding: 6px 14px
}

.home-cate .cateul li {
    color: #666;
    width: 16%;
    height: 40px;
    line-height: 40px;
    border-radius: 18px;
    padding: 0 10px;
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    margin: 0 10px;
    transition: all .1s linear;
    font-weight: var(--fontbold5);
    cursor: pointer
}

.home-cate .cateul li.active {
    background: #fff;
    color: var(--color)
}

.home-cate .cateul li:hover {
    color: var(--color);
}

.home-cate .catewrap {
    display: block;
    margin-top: 40px
}

.home-cate .catelist {
    position: relative;
    width: 100%;
    transition: height .3s ease
}

.home-cate .catelist .catelist-ul {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease
}

.home-cate .catelist .catelist-ul.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    position: relative
}

.home-cate .catelist ul li {
    background: #fff;
    border-radius: 3px;
    text-align: center;
    position: relative;
    overflow: hidden
}

.home-cate .catelist ul li .img {
    width: 100%;
    aspect-ratio: 4/3
}

.home-cate .catelist ul li .img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block
}

.home-cate .catelist ul li .title {
    width: 100%;
    font-size: var(--fontsize18);
    color: #333;
    transition: all .1s linear;
    padding: 8px 15px;
    height: 70px;
}

.home-cate .catelist ul li:hover img {
    transform: scale(1.03)
}

.home-cate .catelist ul li:hover .title {
    color: var(--color)
}


.home-about .about-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center
}

.home-about .about-item .about-img {
    width: 50%;
    position: relative
}

.home-about .about-item .about-img img {
    width: 100%
}

.home-about .about-item .about-content {
    flex: 1;
    padding-left: 5%
}

.home-about .about-item .about-content .icon1 {
    font-weight: var(--fontbold6);
    background: var(--bgcolor);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px
}

.home-about .about-item .about-content .text {
    color: var(--introcolor)
}

.home-about .about-item .about-content .list {
    margin-top: 20px
}

.home-about .about-item .about-content .list li {
    margin-top: 10px;
    display: flex
}

.home-about .about-item .about-content .list li em {
    width: 18px;
    height: 18px;
    background: var(--bgcolor);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    margin-right: 10px;
    margin-top: 6px
}

.home-about .about-item .about-content .list li p {
    flex: 1
}

.home-about .about-item .about-content .home-more {
    margin-top: 2rem
}


.home-about .about-item.item2 .icon2 {
    font-weight: var(--fontbold6);
    color: var(--color);
    margin-bottom: 20px
}

.home-about .about-item.item2 .about-content {
    padding-left: 0;
    padding-right: 15%
}

.home-about .about-item.item2 .about-img {
    padding: 8% 0;
    z-index: 1
}

.home-about .about-item.item2 .about-img::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1920px;
    height: 100%;
    background: #f5f5f5;
    z-index: -1
}

.home-factory {
    padding: 0 0 5%;
    background: #fff
}

.home-factory .factory-slider-wrap {
    position: relative;
    padding: 0 40px;
}

.home-factory .factory-slider {
    position: relative;
    overflow: hidden
}

.home-factory .factory-list {
    box-sizing: border-box
}

.home-factory .factory-slider .swiper-slide {
    height: auto
}

.home-factory .factory-card {
    min-height: 240px;
    background: #f6f4f2;
    border-radius: 24px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 18px
}

.home-factory .factory-card-image {
    width: 48%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 20px
}

.home-factory .factory-card-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    transition: transform .45s ease
}

.home-factory .factory-card-content {
    flex: 1;
    padding: 0 18px 0 0
}

.home-factory .factory-card-title {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #ddd6cf;
    font-size: 28px;
    font-weight: var(--fontbold7);
    color: #1d1d1d;
    line-height: 1.3
}

.home-factory .factory-card-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color);
    font-size: 15px;
    font-weight: var(--fontbold6);
    text-transform: uppercase;
    letter-spacing: .04em
}

.home-factory .factory-card-link::after {
    content: ">";
    font-size: 18px;
    line-height: 1
}

.home-factory .factory-card:hover .factory-card-image img {
    transform: scale(1.08)
}

.home-factory .factory-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(77, 182, 227, 0.96);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
}

.home-factory .factory-nav.prev {
    left: 12px;
}

.home-factory .factory-nav.next {
    right: 12px;
}

.home-factory .factory-nav:hover {
    background: #3BA3D1;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.home-news {
    padding: 0 0 5%;
    background: #fff
}

.home-news .news-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px
}

.home-news .news-card {
    min-width: 0
}

.home-news .news-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #f3f3f3
}

.home-news .news-card-image img {
    width: 100%;
    aspect-ratio: 4/4;
    object-fit: cover;
    display: block;
    transition: transform .45s ease
}

.home-news .news-card:hover .news-card-image img {
    transform: scale(1.08)
}

.home-news .news-date {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 96px;
    height: 28px;
    padding: 0 12px;
    border-radius: 16px;
    background: rgba(77, 182, 227, .95);
    color: #fff;
    font-size: 12px;
    line-height: 28px;
    text-align: center
}

.home-news .news-card-content {
    padding-top: 16px
}

.home-news .news-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #202020;
    font-size: 17px;
    font-weight: var(--fontbold7);
    line-height: 1.45;
    text-transform: uppercase
}

.home-news .news-card:hover .news-card-title {
    color: var(--color)
}

.home-message {
    padding: 0 0 5%;
    background: #fff
}

.home-message .message-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 36px;
    align-items: start
}

.home-message .message-image {
    overflow: hidden;
    border-radius: 20px;
    background: #f3f3f3
}

.home-message .message-image img {
    width: 100%;
    aspect-ratio: 10/9;
    object-fit: cover;
    display: block
}

.home-message .message-form-grid {
    display: grid;
    gap: 16px
}

.home-message .message-input,
.home-message .message-textarea {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #f4f4f4;
    color: #333;
    font-size: 15px;
    outline: none
}

.home-message .message-input {
    height: 44px;
    padding: 0 16px
}

.home-message .message-textarea {
    min-height: 140px;
    padding: 16px;
    resize: vertical
}

.home-message .message-input::placeholder,
.home-message .message-textarea::placeholder {
    color: #8d8d8d
}

.home-message .message-input:focus,
.home-message .message-textarea:focus {
    box-shadow: inset 0 0 0 1px var(--color)
}

.home-message .message-submit {
    margin-top: 14px;
    min-width: 230px;
    height: 44px;
    padding: 0 28px;
    border: 0;
    border-radius: 6px;
    background: var(--color);
    color: #fff;
    font-size: 22px;
    font-weight: var(--fontbold7);
    cursor: pointer;
    transition: background .2s ease
}

.home-message .message-submit:hover {
    background: #3BA3D1
}

/* 响应式设计 - 首页特定样式 */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .hero-swiper {
        height: 500px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .hero-swiper .swiper-button-next:after,
    .hero-swiper .swiper-button-prev:after {
        font-size: 16px;
    }

    .hero-swiper .swiper-pagination {
        bottom: 150px;
    }

    .home-cate .catelist .catelist-ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-about .about-item .about-img,
    .home-about .about-item .about-content {
        width: 100%;
        flex: none;
        padding: 0;
    }

    .home-about .about-item .about-content {
        margin-top: 24px;
    }

    .home-factory .factory-card {
        min-height: 0;
    }

    .home-factory .factory-nav {
        display: none;
    }

    .home-news .news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-message .message-wrap {
        grid-template-columns: 1fr;
    }

    .home-message .message-form-box {
        width: 100%;
    }

}

@media (max-width: 480px) {
    .hero {
        min-height: 450px;
    }

    .hero-swiper {
        height: 450px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 35px;
        height: 35px;
        display: none;
        /* 小屏幕隐藏导航按钮 */
    }

    .hero-swiper .swiper-pagination {
        bottom: 120px;
    }

    .hero-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .hero-swiper .swiper-pagination-bullet-active {
        width: 20px;
    }

    .home-cate .cateul {
        height: auto;
        flex-wrap: wrap;
        border-radius: 18px;
    }

    .home-cate .cateul li {
        width: calc(50% - 12px);
        margin: 6px;
    }

    .home-cate .catelist .catelist-ul {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .home-factory .factory-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .home-factory .factory-card-image {
        width: 100%;
    }

    .home-factory .factory-card-content {
        padding: 4px 0 0;
    }

    .home-factory .factory-card-title {
        font-size: 22px;
    }

    .home-news .news-list {
        grid-template-columns: 1fr;
    }

    .home-message .message-submit {
        width: 100%;
        min-width: 0;
        font-size: 18px;
    }

}