/*
 * 首页样式文件
 * 包含首页的布局和样式
 */

/* 通用全屏区域样式 */
section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 第一屏：宣传视频 */
.hero-section {
    background-color: #000;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    display: none;
}

.hero-video.active {
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    overflow: hidden;
}

.video-content {
    position: absolute;
    bottom: 100px;
    left: 100px;
    text-align: left;
    color: white;
    z-index: 3;
    max-width: 800px;
}

.video-title {
    font-size: 2.604vw;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    font-family: 'Microsoft YaHei', sans-serif;
}

.video-subtitle {
    font-size: 2.604vw;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 400;
}

.play-button {
    display: inline-flex;
    margin-left: 4px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 30px;
    border: 1px solid white;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Microsoft YaHei', sans-serif;
}

.play-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.play-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* 右下角选项卡数字 */
.change-box {
    position: absolute;
    bottom: 85px;
    right: 65px;
    z-index: 3;
}

.change-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 10px;
/*    border-bottom: 1px solid rgba(255, 255, 255, 0.3);*/
}

.change-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.change-item:hover {
    transform: translateY(-3px);
}

.change-item.active {
    transform: translateY(-3px);
}

.change-item::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.change-item.active::after {
    opacity: 1;
}

.change-number {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 8px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.change-item.active .change-number {
    color: white;
}

.change-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Microsoft YaHei', sans-serif;
    transition: all 0.3s ease;
}

.change-item.active .change-text {
    color: white;
}

/* 第二屏：品牌理念 */
.brand-section {
    display: block;
}



.brand-content {
    display: flex;
    align-items: stretch;
    height: 100vh;
}

.brand-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    background-color: white;
}

.section-title {
    font-size: 2.604vw;
    font-weight: 400;
    margin-bottom: 0;
    color: #333;
    position: relative;
}



.brand-description {
    font-size: 18px;
    line-height: 2;
    color: #666;
    max-width: 600px;
    margin-top: 60px;
}

.read-more-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 24px;
    background-color: transparent;
    color: #666;
    text-decoration: none;
    border: 1px solid #7a7a7c;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 120px;
}

.read-more-btn:hover {
    transform: scale(1.05);
    background-color: transparent;
}

.brand-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}

.brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.i-about-box {
    font-family: "宋体", "SimSun", "STSong", "Noto Serif SC", serif;
    display: flex;
    width: 1200px;
    height: 40vh;
    overflow: hidden;
    color: #fff;
    margin: 6vh auto;
}
.i-about-l {
    overflow: hidden;
    width: 60%;
    display: flex;
    align-items: center;
}
.i-about-l img,.i-about-r img {
    width: 100%;   
    height: 50vh;
}
.i-about-r {
    background-size: 100% 100%;
    width: 40%;
    padding: 30px;
    text-align: center;
}
.i-about-r h3 {
    font-family: "宋体", "SimSun", "STSong", "Noto Serif SC", serif;
    font-size: 2.2em;
    margin: 5vh 0 2vh;
}
.i-about-r p {
    font-size: 1.1em;
    text-align: left;
    text-indent: 2em;
}

/* 第五屏：水源地介绍 */
.source-section {
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.source-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.source-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    height: 100vh;
    display: flex;
    align-items: flex-end;
}

.source-content {
    max-width: 600px;
    margin-left: -42vw;
    padding-bottom: 100px;
}

.source-title {
    font-size: 2.604vw;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
}

.source-divider {
    width: 80px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.source-description {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 40px;
}

.source-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.source-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

/* 第四屏：产品展示 */
.products-section {
    background-color: white;
    background-image: url(../images/ibj-4.png);
    background-size: cover;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.product-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 产品分类 */
.product-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 8px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background-color: white;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: #9f7a36;
    color: #9f7a36;
}

.category-btn.active {
    border-color: #9f7a36;
    background-color: #9f7a36;
    color: white;
}

/* 产品列表 */
.product-slider-container {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.product-slider {
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-slide {
    display: flex;
    gap: 20px;
    min-width: max-content;
}

.product-item {
    flex: 0 0 250px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #fff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-name {
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    color: #333;
    font-weight: 400;
    font-family: 'Microsoft YaHei', sans-serif;
    transition: all 0.3s ease;
}

.product-item:hover .product-name {
    color: #9f7a36;
    transform: translateY(-2px);
}

/* 滑动按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 1px solid #9f7a36;
    border-radius: 50%;
    background-color: white;
    color: #9f7a36;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-btn:hover {
    border-color: #9f7a36;
    background-color: #9f7a36;
    color: white;
    box-shadow: 0 2px 8px rgba(159, 122, 54, 0.3);
}

.slider-btn.left {
    left: 10px;
}

.slider-btn.right {
    right: 10px;
}

.arrow {
    font-weight: 400;
}

/* 第五屏：企业责任 */
.responsibility-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.responsibility-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.responsibility-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/mulun-5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
}
.responsibility-image img {
    display: none;
}

.responsibility-button {
    position: relative;
    z-index: 10;
    margin-bottom: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.responsibility-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 第六屏：天然山泉水大健康系统 */
.system-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-image: url('../images/ibj-7.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.system-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.system-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.system-title {
    font-size: 2.604vw;
    font-weight: 400;
    color: #333;
    margin-bottom: 20px;
    align-self: flex-start;
    text-align: left;
}

.system-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    align-self: flex-start;
    text-align: left;
}

.system-button {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent;
    color: #666;
    text-decoration: none;
    border: 1px solid #7a7a7c;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-bottom: 40px;
}

.system-button:hover {
    transform: scale(1.05);
    background-color: transparent;
}

.system-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.system-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 第七屏：走进木论思泉 */
.about-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-image: url('../images/ibj-6.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.about-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
}

.about-title {
    font-size: 2.604vw;
    font-weight: 400;
    color: #333;
    margin-bottom: 20px;
}

.about-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.about-button {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent;
    color: #666;
    text-decoration: none;
    border: 1px solid #7a7a7c;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 120px;
}

.about-button:hover {
    transform: scale(1.05);
    background-color: transparent;
}

/* 新闻动态栏目 */
.news-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4vw 6vw;
}

.news-section-title {
    font-size: 2.604vw;
    font-weight: 400;
    color: #333;
    margin: 0;
}

.news-all-button {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent;
    color: #666;
    text-decoration: none;
    border: 1px solid #7a7a7c;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.news-all-button:hover {
    transform: scale(1.05);
    background-color: transparent;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-content {
        bottom: 60px;
        left: 40px;
    }
    
    .video-title {
        font-size: 48px;
    }
    
    .video-subtitle {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .play-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .change-box {
        bottom: 30px;
        right: 30px;
    }
    
    .change-list {
        gap: 20px;
    }
    
    .change-number {
        font-size: 14px;
    }
    
    .change-text {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .source-title {
        font-size: 32px;
    }
    
    .brand-container,
    .source-container,
    .products-container,
    .responsibility-container {
        padding: 0 20px;
    }
    
    .brand-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .brand-text {
        text-align: center;
    }
    
    .section-title::after {
        margin: 20px auto 0;
    }
    
    .brand-image {
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .product-image {
        height: 250px;
    }
    
    /* 第六屏和第七屏响应式 */
    .system-content {
        align-items: center;
        text-align: center;
    }
    
    .system-title,
    .system-subtitle,
    .system-button {
        align-self: center;
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image,
    .about-text {
        flex: 0 0 100%;
    }
    
    .news-section {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .video-content {
        bottom: 40px;
        left: 30px;
    }
    
    .video-title {
        font-size: 36px;
    }
    
    .video-subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .play-button {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    .change-box {
        bottom: 20px;
        right: 20px;
    }
    
    .change-list {
        gap: 15px;
    }
    
    .change-number {
        font-size: 12px;
    }
    
    .change-text {
        font-size: 10px;
    }
}


/* 视频弹窗 */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.video-modal.show {
  display: flex;
}
.video-modal video {
  width: 90%;
  max-width: 1000px;
  height: auto;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* 水源地介绍 */
.water-bz {
    width: 1200px;
    margin: 50px auto 30px;
    height: 680px;
    display: flex;
}
.water-bz-l {
    width: 65%;
    display: inline-block;
    margin-right: 5vw;
}
.water-bz-l img {
    width: 90%;
}
.water-bz-l p {
    color: #808080;
    font-size: 1.28vw;
    line-height: 2.28em;
    margin-top: 30px;
}
.water-bz-r {
    width: 35%;
    display: inline-block;
}
.water-bz-r img {
    height: 60vh;
}
.water-bz-l h1 {
    color: #fff;
    font-size: 4.8em;
    line-height: 1.2em;
    margin-top: 5vh;
}
