/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x:hidden;
}

/* 自定义颜色变量 */
:root {
    --primary-color: #c8102e;
    --secondary-color: #8a0f24;
    --gold-color: #063b71;
    --dark-color: #333;
    --black-color: #000;
    --light-color: #f8f9fa;
    --grey-color: #6c757d;
}

/* 通用间距类 */
.py-15 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .swiper-container {
        height: auto;
    }

    .product-item img {
        height: 200px;
    }

    .section-title {
        font-size: 2rem;
    }

    .py-15 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* 导航栏样式 */
.navbar {
    background-color: transparent !important;
    box-shadow: none;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    transition: background-color 0.3s ease;
}

/* 搜索框样式 */
.search-container {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    position: fixed;
    top: 70px;
    width: 100%;
    z-index: 999;
}

/* 图标样式 */
#search-icon, #language-icon {
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .search-container {
        top: 56px;
    }
}

.navbar.scrolled {
    background-color: #003c78 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 16px;
    margin-left: 20px;
    transition: color 0.3s ease, transform 0.3s;
}


    .navbar-nav .nav-link:hover {
        color: #0d6efd !important;
        transform: scale(1.1);
    }
.navbar.scrolled .navbar-nav .nav-link {
    color: #fff !important;
}
    .navbar.scrolled .navbar-nav .nav-link:hover {
        color: #0d6efd !important;
        transform: scale(1.1);
    }
.navbar-nav .nav-link.active {
    color: #0d6efd !important;
}
.navbar.scrolled .navbar-nav .nav-link.active {
    color: #0d6efd !important;
}
/* 轮播图样式 */
.swiper-container {
    width: 100%;
    margin-bottom: 0px;
    margin-top: 0;
    overflow: hidden;
    position: relative;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--gold-color);
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-container:hover .swiper-button-next,
.swiper-container:hover .swiper-button-prev {
    opacity: 1;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: rgba(0,0,0,0.5);
}

.swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    background-color: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: var(--gold-color);
    width: 30px;
    border-radius: 10px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片悬停效果 */
img {
    transition: all 0.3s ease;
}

    img:hover {
        transform: scale(1.02);
    }

/* 内容区域样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-weight: bold;
    color: var(--gold-color);
    font-size: 1.8rem;
    /*text-transform: uppercase;*/
    position: relative;
    padding-bottom: 8px;
}

    .section-title.text-left {
        text-align: left;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 3px;
        background-color: var(--gold-color);
    }

    .section-title.text-left::after {
        height: 0px;
    }

.text-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

    .text-more .line {
        width: 80%;
        height: 1px;
        background-color: #ddd;
        margin-right: 10px;
    }



/* 产品展示样式 */
.product-item {
    margin-bottom: 0px;
    text-align: center;
    padding: 0px;
    background-color: white;
    border-radius: 8px;
    /*box-shadow: 0 5px 15px rgba(0,0,0,0.1);*/
    transition: transform 0.3s ease;
}
    .product-item a {
        text-decoration:none;
    }
    .product-item:hover {
        transform: translateY(-10px);
    }
.product-xxzt .product-item {
    margin-bottom:30px;
}

.product-categories {
    position: relative;
    overflow: hidden;
}

    .product-categories::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('images/background-pattern.png');
        background-size: cover;
        opacity: 0.1;
        z-index: 1;
    }

.product-categories-row {
    margin: 0 auto;
}

.category-item {
    position: relative;
    z-index: 2;
    padding: 0px 0px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .category-item:hover {
        transform: translateY(-5px);
    }

    .category-item.active {
        border-bottom: 3px solid var(--gold-color);
    }

    .category-item h4, .category-item p {
        display: none;
    }

.category-icon i {
    color: var(--gold-color);
}

.category-icon img {
    width: 100%;
    object-fit: contain;
}

.category-title {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.text-gold {
    color: var(--gold-color) !important;
}

.text-grey {
    color: var(--grey-color) !important;
}

.product-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.product-item h3 {
    color: var(--dark-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-item p {
    color: #666;
    font-size: 1rem;
    display: none;
}

/***/
#distillery {
    background-color: white;
    padding: 0;
}

.distillery-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.distillery-carousel {
    width: 100%;
    max-width: none;
}

.swiper-container-distillery {
    width: 100%;
    padding: 100px 0;
    margin: 0 auto;
    overflow: hidden;
}

    .swiper-container-distillery .swiper-slide img {
        width: 100%;
        height: auto;
    }



    .swiper-container-distillery .swiper-slide {
        width: auto;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .swiper-container-distillery .swiper-slide-active {
        z-index: 10;
    }

    .swiper-container-distillery .swiper-slide-prev,
    .swiper-container-distillery .swiper-slide-next {
        z-index: 9;
        transform: scale(1.4);
    }

    .swiper-container-distillery .swiper-slide-active {
        opacity: 1;
        transform: scale(1.8);
        z-index: 10;
    }

    /* 分页器样式 */
    .swiper-container-distillery .swiper-pagination {
        bottom: 0;
    }

    .swiper-container-distillery .swiper-pagination-bullet {
        background-color: #ccc;
        width: 10px;
        height: 10px;
        opacity: 0.7;
    }

    .swiper-container-distillery .swiper-pagination-bullet-active {
        background-color: var(--primary-color);
        opacity: 1;
        width: 12px;
        height: 12px;
    }

/* 响应式调整 */
@media (max-width: 768px) {
    .swiper-container-distillery img {
        max-height: 300px;
    }

    .swiper-container-distillery .swiper-button-prev,
    .swiper-container-distillery .swiper-button-next {
        display: none;
    }
}
/* 按钮样式 */
.btn-danger {
    background-color: transparent;
    border: 1px solid var(--gold-color);
    color: var(--gold-color);
    padding: 10px 30px;
    font-size: 1rem;
    border-radius: 0;
    transition: all 0.3s;
}

    .btn-danger:hover {
        background-color: var(--gold-color);
        border-color: var(--gold-color);
        color: white;
        transform: scale(1.05);
    }

/* 新闻卡片样式 */
.card {
    border: none;
    /*border-radius: 8px;*/
    overflow: hidden;
    /*box-shadow: 0 5px 15px rgba(0,0,0,0.1);*/
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    color: var(--black-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.card-time {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-btn {
    text-align: center;
}

.news-body .card-time, .news-body .card-title {
    text-align: left;
}
.news-body a{text-decoration:none;}
.news-body:hover {
    background: var(--gold-color);
    color: #fff;
}
    .news-body:hover .card-title, .news-body:hover .card-time, .news-body:hover .card-text {
        color: #fff !important;
    }
    .news-body:hover .btn-danger {
        border: 1px solid #fff;
        color: #fff;
    }
.news-body .card-btn{
    text-align:right;
}
.newstitle {
    color:#333;
    font-size:16px;
    font-weight:bold;
    line-height:30px;
    text-align:center;
}
.newstime{
    color:#999;
    font-size:14px;
    line-height:20px;
    text-align:center;
}
.about_text_content {
    color: #333;
    font-size: 14px;
    line-height:25px;
}
.about_text_content {
    margin-top:20px;
}
    .about_text_content img, .about_text_content video {
        display: block;
        margin: 0 auto;
        max-width: 100%;
    }
.producttype{display:flex; justify-content:center;}
.producttype-item {
    margin: 10px;
    border-radius: 20px;
    border:1px solid #ddd;
}
    .producttype-item a{
        text-decoration:none;
    }
.producttype-item-t{margin:2px; border-radius:20px; background:#ddd; font-size:14px; color:#fff; padding:5px 20px;}
.product-content {
    width:80%;
    color:#999;
}
.product-content img {
    max-width: 100%;
}
.producttype-item.on {
    border: 1px solid var(--gold-color);
}
    .producttype-item.on .producttype-item-t {
        background: var(--gold-color);
    }
.productrow {
    align-items:center;
}
.product-the {
     width:70%; margin:0 auto;
     border-top:1px solid #eee;
      padding:20px  0px;

}
    .product-the span {
        display: block;
        line-height: 20px;
        font-size:14px;
        color:#999;
    }
.product-img{ padding:4px; border:1px solid #eee; display:inline-block;}
    .product-img img{border-radius:0px;}
    .product-the span.cs {
        color: var(--gold-color);
        font-size: 14px;
    }
.product-qrcode img{
    display:block;
    margin:0 auto;
    width:120px;
}
.product-qrcode-txt {
    margin-top:10px;
    font-size: 12px;
    color: #666;
    text-align:center;
}
/* 关于我们样式 */
#about p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.factory-store img{margin-bottom:0px;}
.factory-store h3 {
    background: #cccccc;
    color:var(--gold-color);
    padding:10px;

}
.factory-store-tel {
    text-align:left; color:#666;
    display:flex;
    align-items:center;
}
.factory-store-addr {
    text-align: left;
    color: #666;
    display: flex;
    align-items: center;
}
.factory-store-tel img, .factory-store-addr img{
    width:15px;
    margin-right:5px;
}
.factory-store-title {
    background: #003c78;
    text-align: center;
    height: 50px;
    line-height: 50px;
    color: #fff;
}
.factory-store-select {
    background: #ededed;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px;
    margin-bottom:30px;
}
    .factory-store-select span {
        display:inline-block;
        margin:0 10px;
    }
    .factory-store-select input {
        width:30%;
    }
    .factory-store-select select {
        width: 20%;
    }
    .factory-store-select button {
        width: 10%;
        background: #003c78;
        margin-left:10%;
    }
    .factory-store-select input, .factory-store-select select {
        background: #fff;
        border: 1px solid #eee;
        height: 35px;
        line-height: 35px;
    }
    /* 页脚样式 */
    footer {
        background-color: var(--dark-color);
        color: var(--light-color);
        padding: 40px 0;
    }

    footer.bg-grey {
        background-color: #fbfbfb;
    }

    footer .col-left-line {
        position: relative;
    }

        footer .col-left-line::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 1px;
            height: 100%;
            background-color: #ddd;
        }

    footer .col-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 3%;
    }

    footer .text-bold {
        font-size: 25px;
        font-weight: bold;
    }

    footer .col-justify-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    footer h4 {
        color: var(--gold-color);
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    footer a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        footer a:hover {
            color: var(--gold-color);
        }

    footer .border-white-20 {
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

    footer .text-white-70 {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    footer .text-gold-70 {
        color: var(--gold-color) !important;
    }

    footer .text-grey-70 {
        color: var(--grey-color) !important;
    }

    footer img {
        max-width: 100%;
        height: auto;
    }

    footer p {
        margin-bottom: 5px;
        color: #ccc;
    }

.footer-contact {
    text-align: center;
}

footer .list-unstyled {
    display: flex;
}

    footer .list-unstyled .mb-2 {
        margin-right: 20px;
        display: flex;
        flex-direction: column;
        line-height: 25px;
    }

        footer .list-unstyled .mb-2 a {
            font-size: 14px;
            color: var(--gold-color);
        }
/* 社交图标样式 */
.social-icons {
    margin: 20px 0;
}

    .social-icons a {
        display: inline-block;
        margin: 0 15px;
        transition: all 0.3s;
    }

        .social-icons a:hover {
            transform: scale(1.2);
        }

    .social-icons i {
        color: var(--gold-color);
        font-size: 2rem;
    }

.aboutbanner {
    width:100%;
}
    .aboutbanner img {
        display:block;
        width:100%;
    }
.aboutmenu {
    padding:20px;
    
}
    .aboutmenu .menu {
        display: flex;
        justify-content: center;
        
        
    }
    .aboutmenu .menu-item {
        margin:10px 20px;
    }
        .aboutmenu .menu-item a {
            color: #333;
            text-decoration:none;
        }
            .aboutmenu .menu-item a:hover, .aboutmenu .menu-item a.on {
                color: var(--gold-color);
            }
.aboutname {
    color: var(--gold-color);
    font-weight:bold;
    border-top: 1px solid #ddd;
    padding:20px 0px 40px 0px;
    margin-top:40px;
}
.aboutcontent {
    line-height: 25px;
    color: #333;
    font-size: 14px;
}
    .aboutcontent img{
        display:block;
        width:100%;
    }

/* 发展历程样式 */
#history {
    padding: 60px 0;
    background-color: #ffffff;
}

.history-timeline {
    position: relative;
    margin: 0px 0;
    padding: 20px 0;
}

    .history-timeline::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #e0e0e0;
        transform: translateY(-50%);
        z-index: 0;
    }

.swiper-container-timeline {
    position: relative;
    z-index: 1;
    height: 80px;
}

.year-slide {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    height: 60px;
    width: 80px;
    margin-top: 20px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

    .year-slide::after {
        content: '';
        position: absolute;
        bottom: 35px;
        left: 50%;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #e0e0e0;
        transform: translateX(-50%);
        transition: all 0.3s ease;
    }

    .year-slide.active {
        color: #002f7b;
        font-weight: bold;
    }

        .year-slide.active::after {
            background-color: #002f7b;
            width: 16px;
            height: 16px;
            bottom: 32px;
        }

.history-content {
    padding: 40px 0;
}

.swiper-container-content {
    height: auto;
}

.history-item {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

    .history-item.swiper-slide-active {
        opacity: 1;
        transform: scale(1);
    }

    .history-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .history-item h3, .history-header-content h3 {
        color: #002f7b;
        font-size: 1.2rem;
        margin-bottom: 20px;
        font-weight: bold;
    }

    .history-item p {
        line-height: 1.8;
        color: #666;
        font-size: 1rem;
    }

.history-heritage {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

    .history-heritage h3 {
        font-size: 1.5rem;
        color: #002f7b;
        margin-bottom: 20px;
        font-weight: bold;
    }

    .history-heritage p {
        font-size: 1rem;
        line-height: 1.8;
        color: #666;
        max-width: 800px;
        margin: 0 auto;
    }


/* 传承与发展样式 */
#heritage {
    padding: 60px 0;
}

.heritage-tabs {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.swiper-container-tabs {
    width: 480px !important;
    margin: 0 auto;
    display: block;
}

    .swiper-container-tabs .swiper-slide {
        width: 150px !important;
        flex-shrink: 0;
        box-sizing: border-box;
    }

.heritage-tab {
    padding: 2px 10px;
    background-color: #f5f5f5;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #002f7b;
    text-align: center;
    min-width: 120px;
    box-sizing: border-box;
    border: 1px solid #002f7b;
}

    .heritage-tab.active {
        background-color: #002f7b;
        color: white;
    }

    .heritage-tab:hover:not(.active) {
        background-color: #002f7b;
        color: white;
    }

.heritage-content {
    background: #fdfdfd;
    width: 100%;
    overflow: hidden;
}

.contact-name {
    text-align:center;
    margin:20px 0px;
}
.contact-name-zw {
    font-size:20px;
    color:var(--gold-color);
    font-weight:bold;
}
.contact-name-yw{
    font-size:12px;
}

@media (min-width: 576px) {
    .heritage-content-info {
        max-width: calc(540px/2);
    }
}

@media (min-width: 768px) {
    .heritage-content-info {
        max-width: calc(720px/2);
    }
}

@media (min-width: 992px) {
    .heritage-content-info {
        max-width: calc(960px/2);
    }
}

@media (min-width: 1200px) {
    .heritage-content-info {
        max-width: calc(1140px/2);
    }
}

@media (min-width: 1400px) {
    .heritage-content-info {
        max-width: calc(1320px/2);
    }
}


.heritage-content .row {
    align-items: center;
}

.heritage-item h3 {
    color: #002f7b;
    margin-bottom: 20px;
}

.heritage-item p {
    line-height: 1.8;
    color: #666;
}

.heritage-item img {
    width: 100%;
    height: auto;
    border-radius: 0px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.heritage-item .heritage-content-info img {
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0);
}

    /* 响应式调整 */
    @media (max-width: 768px) {
        .swiper-container {
        height: auto;
    }

    .product-item img {
        height: auto;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .py-15 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    footer .col-left-line::before {
        width: 0px;
    }

    footer .col-menu {
        display: none;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }

    .product-item h3 {
        font-size: 1.25rem;
    }

    .btn-danger {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}
