/*
 * 水健康知识页面样式文件
 * 包含水健康知识页面的布局和样式
 */

/* 全局样式 */
* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 通栏banner图 */
.water-page {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    display: block;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.water-banner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
/*    background-color: rgba(0, 0, 0, 0.5);*/
}

.by-line {
    background: url('../images/by-line.png');
    background-size: contain;
    width: 100%;
    height: 12px;
}

.banner-content {
    text-align: center;
    color: white;
}

.banner-title {
    font-size: 3em;
    font-weight: 400;
    margin-top: 50px;
    text-shadow: 0 0 7px rgba(0,0,0,.3);
}

/* 水的种类模块 */
.water-category {
    padding: 60px 0;
/*    background-color: white;*/
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-title {
    font-size: 2.865vw;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.category-item {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.category-item-title {
    font-size: 1.458vw;
    font-weight: 400;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.category-item-desc {
    font-size: 1.042vw;
    line-height: 1.563vw;
    color: #666;
    text-align: left;
}
.water-bz {
    width: 1200px;
    margin: 50px auto 30px;
    height: 680px;
    display: flex;
}
.water-bz-l {
    width: 50%;
    display: inline-block;
    margin-right: 5vw;
}
.water-bz-l img {
    width: 100%;
}
.water-bz-l p {
    color: #808080;
    font-size: 1.28vw;
    line-height: 1.8em;
    margin-top: 30px;
}
.water-bz-r {
    width: 50%;
    display: inline-block;
}
.water-bz-r img {
    height: 60vh;
}
/* 水与生命健康模块 */
.lifeCon .desc,.lifeCon .content {
    color: #808080;
} 
.waterLife {
    display: flex;
    align-items: center;
    background-color: #f5f4f9;
    padding: 0;
    margin: 0 auto;
    width: 80vw;
    height: 520px;
}
.desc {
    font-size: 2vw;
    color: #bdbdbd!important;
    margin-bottom: 2vh;
}
.waterLife .lifeBox {
    position: relative;
    left: 8vw;
    top: -250px;
}

.waterLife .lifeBox .pie {
    position: relative;
    width: 100%;
    height: 100%;
    top: 45px;
}
.waterLife .lifeCon .title {
    font-size: 2.865vw;
    line-height: 2.708vw;
    margin-bottom: 1.25vw;
    color: #808080;
}
.waterLife .lifeCon .slogon {
    font-size: 1.458vw;
    line-height: 1.458vw;
    margin-bottom: 3.073vw;
}
.waterLife .lifeCon {
    flex: 1;
    color: #333;
    text-align: left;
    margin: 0 5vw;
    height: 150px;
}
.lifeImg {
    width: 35vw;
    height: 520px;
    margin-right: -2px;
}
.waterLife .lifeCon .content-tip {
/*    padding-top: 1.563vw;*/
}
.content-tip {
    position: relative;
    font-size: 1.242vw;
    color: #999;
    line-height: 2vw;
}
.content-tip:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1.042vw;
    height: 2px;
    display: block;
}

.waterLife .lifeBox .pie img.active {
    display: block;
}
.waterLife .lifeBox .pie img {
    position: absolute;
    z-index: -10;
    display: none;
}

.waterLife .lifeBox .pie .slice {
/*    overflow: hidden;*/
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    transform-origin: 0 100%;
    cursor: pointer;
    z-index: 2;
    width: 105px;
    height: 105px;
    border-radius:105px;
    line-height: 21px;
    padding-top: 28px;
    border: 1px solid #989898;
    text-align: center;
}
.slice-0 {
    left: 0;
}
.slice-1 {
    left: 125px;
}
.slice-2 {
    left: 250px;
}
.slice-3 {
    left: 375px;    
}
/*.waterLife .lifeBox .pie .slice-1 {
    transform: rotate(-15deg) skewY(-18deg);
}
.waterLife .lifeBox .pie .slice-0 {
    transform: rotate(-87deg) skewY(-18deg);
}
.waterLife .lifeBox .pie .slice-2 {
    transform: rotate(57deg) skewY(-18deg);
}
.waterLife .lifeBox .pie .slice-3 {
    transform: rotate(129deg) skewY(-18deg);
}
.waterLife .lifeBox .pie:before {
    content: "";
    display: block;
    width: 35.35vw;
    height: 35.35vw;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url('../images/icon-sector5.png');
    background-size: 100%;
    z-index: 1;
}
.waterLife .lifeBox .pie:after {
    content: "";
    display: block;
    width: 20.938vw;
    height: 20.938vw;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -10.469vw;
    margin-top: -10.469vw;
    background-image: url('../images/sj-4.png');
    background-size: 100%;
    z-index: 1;
}*/

.waterLife .lifeBox .pie img.active {
    display: block;
}
.waterLife .lifeBox .pie img {
    position: absolute;
    z-index: 1;
    display: none;
}
img, input {
    border: none;
    vertical-align: middle;
}
.clearfix {
    zoom: 1;
}
.pie .active {
    background: #989898;
    color: #fff;
    box-shadow: inset 0 0 0px 4px rgba(255, 255, 255, 0.9);
}
.pie .active i {
    display: block;
    width: 16px;
    height: 14px;
    background: #989898;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    position: absolute;
    left: 42px;
    top: -20px;
    z-index: 1;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .life-content-wrapper {
        flex-direction: column;
    }
    
    .life-tabs-container {
        margin-bottom: 40px;
    }
    
    .life-content {
        margin-left: 0;
    }
    
    .life-circle {
        width: 300px;
        height: 300px;
    }
    
    .life-circle-center {
        width: 150px;
        height: 150px;
    }
}

/* 水中的矿物质选项卡模块 */
.water-mineral {
    padding: 60px 0;
    background-color: white;
}

.mineral-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.mineral-title {
    font-size: 2.064vw;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.mineral-tabs {
    display: block;
    justify-content: center;
    height: 210px;
    flex-wrap: wrap;
}

.mineral-tab {
    padding: 10px 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #9b9b9b;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 21px;
    color: #9b9b9b;
    display: block;
    min-width: 235px;
    position: relative;
}

.mineral-tab:hover,
.mineral-tab.active {
    background-color: #9b9b9b;
    color: white;
}
.mineral-tab.active i {
    display: block;
    width: 14px;
    height: 16px;
    background: #989898;
    clip-path: polygon(0 0, 0 100%, 100% 50%);
    position: absolute;
    left: -25px;
    top: 17px;
    z-index: 1;
}
.mineral-content {
    max-width: 1200px;
    margin: 0 auto;
/*    background-image: url('../images/sj-3.png');*/
    padding: 40px;
    border-radius: 8px;
    position: absolute;
    z-index: 1;
    left: 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.mineral-desc {
    font-size: 1.18vw;
    line-height: 2.5vw;
    color: #808080;
    display: block;
    width: 100%;
}

/* pH值图片模块 */
.ph-num {
    width: 100%;
    overflow: hidden;
}

.ph-num-container {
    width: 100%;
}

.ph-num-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* 水的pH值模块 */
.pH-mode {
    margin: 0 auto;
    height: 100vh;
    width: 95%;
    float: right;
    text-align: center;
    position: relative;
}
.pH-mode>div {
    width: 1200px;
    margin: 0 auto;
    position: absolute;
    z-index: 1;
    top: 35vh;
    left: 15vw;
}
.pH-mode>div p {
    font-size: 1.21vw;
}

.water-PH {
    background-color: white;
    position: relative;
    padding-bottom: 35vh;
}

.ph-banner {
    width: 100%;
    height: 400px;
    background-image: url('../images/sj-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.ph-banner-content {
    text-align: center;
    color: white;
}

.ph-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
    overflow: hidden;
    background-image: url('../images/sj-2.png');
    background-position: center 370px; 
    height: 460px;
    position: absolute;
    top: 25vh;
    left: 0;
    right: 0;
}

.ph-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image: url('../images/sj-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.2;
}

.ph-title {
    font-size: 2.865vw;
    font-weight: 400;
    margin-bottom: 80px;
    color: white;
}

.ph-subtitle {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.ph-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.ph-desc {
    font-size: 18px;
    line-height: 28px;
    color: #666;
    margin-bottom: 20px;
}

.PH-link {
    margin-top: 30px;
    text-align: center;
}

.ph-link-item {
    display: inline-block;
    padding: 8px 20px;
    color: #9f7a36;
    text-decoration: none;
    border: 1px solid #9f7a36;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-top: 13.5vh;
}

.ph-link-item:hover {
    background-color: #9f7a36;
    color: white;
}

/* ========== 1. 按钮样式 ========== */
.tab-header {
    display: block;
    gap: 10px; /* 按钮之间的间距 */
}
.pH-tab {
    padding: 10px 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #9b9b9b;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 21px;
    color: #9b9b9b;
    display: block;
}
    /* 按钮激活状态 */
    .pH-tab.active {
        background-color: #9b9b9b; /* 绿色背景，可根据你的UI主题修改 */
        color: #fff;
        border-color: #9b9b9b;
    }

/* ========== 2. 内容区域样式 ========== */
.pH-content {
    margin-top: 30vh;
}
/* 默认隐藏所有内容面板 */
.tab-panel {
    display: none; 
    padding: 20px;
    border-radius: 0 0 4px 4px;
    text-align: left;
}
    /* 显示激活的内容面板 */
    .tab-panel.active {
        display: block;
    }
.mineral-desc {
    margin: 8px 0;
    line-height: 1.6;
    color: #808080;
}

/* banner firstLevel-title模块 */
.banner.firstLevel-title {
    width: 100%;
    height: 29vw;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: right;
    padding-right: 8vw;
}

.banner-container {
    text-align: center;
    color: white;
}

.banner-heading {
    font-size: 36px;
    font-weight: 400;
}

/* QA-box模块 */
.QA-box {
    padding: 60px 0 0;
    background-color: white;
}

.qa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.qa-item {
    padding: 40px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.qa-text {
    width: 60%;
    padding-left: 40px;
}

.qa-image {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 第一列和第三列：左边文字右边图片 */
.qa-item:nth-child(1) .qa-text,
.qa-item:nth-child(3) .qa-text {
    padding-left: 0;
    padding-right: 40px;
}

.qa-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
}

.qa-title {
    font-size: 2.8em;
    font-weight: 300;
    margin-bottom: 20px;
    color: #808080;
}

.qa-desc {
    font-size: 1.042vw;
    line-height: 2.563vw;
    color: #666;
}
.qa-desc p {
    line-height: 2vw;
}

/* 表格样式 */
.qa-table {
    margin: 30px 0;
    color: #808080; 
}

.qa-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.qa-table th,
.qa-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
}

.qa-table th {
    background-color: #b3b3b3;
    font-weight: 400;
    color: #fff;
    text-align: center;
    font-size: 18px;
}

.table-note {
    font-size: 1.042vw;
    line-height: 1.563vw;
    color: #666;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .water-page {
        height: 300px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .category-list {
        flex-direction: column;
    }
    
    .category-item {
        min-width: 100%;
    }
    
    .mineral-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .mineral-tab {
        margin: 5px 0;
    }
    
    .life-content,
    .mineral-content,
    .ph-content,
    .qa-item {
        padding: 20px;
    }
    
    .banner.firstLevel-title {
        height: 150px;
    }
    
    .banner-heading {
        font-size: 28px;
    }
    
    .qa-table table {
        font-size: 14px;
    }
    
    .qa-table th,
    .qa-table td {
        padding: 8px;
    }
    
    .qa-item {
        flex-direction: column;
    }
    
    .qa-text,
    .qa-image {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .qa-image {
        margin-top: 30px;
    }
    
    .qa-item:nth-child(1) .qa-text,
    .qa-item:nth-child(3) .qa-text {
        padding-left: 0;
        padding-right: 0;
    }
}