.CSS/* mljj.css - 魅力夹江专题页样式 */

.mljj-page {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

.mljj-container {
    width: 100%;
    margin: 0 auto;
}

/* 0. Top Nav */
.mljj-top-nav {
    width: 100%;
    height: 40px;
    /* background: rgba(255, 255, 255, 0.85); 半透明浅色背景，适配黑色字体 */
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

.mljj-top-nav .mljj-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 246px;
    box-sizing: border-box;
}

.mljj-nav-left, .mljj-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mljj-nav-left a, .mljj-nav-right a, .mljj-nav-right span {
    color: #000;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.mljj-nav-left a:hover, .mljj-nav-right a:hover {
    opacity: 0.8;
}

.mljj-nav-split {
    color: rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

.mljj-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 导航栏图标优化 */
.mljj-nav-icon img {
    height: 24px; /* 统一高度，根据 16px 字体微调 */
    width: auto;
}

.mljj-nav-tag {
    background: #005bac;
    width: 110px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 14px 14px 0; /* 右侧圆弧形 */
    font-size: 14px !important; /* 标签稍微小一点，保持美观 */
    font-weight: bold;
    color: #fff !important; /* 蓝色背景上必须用白色字体 */
    padding: 0;
}

/* 调整 Hero 区域以适配绝对定位的 Top Nav */
.mljj-hero {
    position: relative;
    width: 100%;
    height: 718px;
    background: url(../images/mljj/1.png) no-repeat center top;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    z-index: 1;
}

.mljj-hero-content {
    margin-top: -250px;
}

.mljj-hero-logo {
    /* width: 350px; */
    /* height: auto; */
    /* margin-bottom: 15px; */
}

.mljj-hero-title {
    font-size: 52px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.mljj-hero-subtitle {
    font-size: 20px;
    letter-spacing: 3px;
    opacity: 0.9;
}

.mljj-section-overview {
    padding: 70px 0 80px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.mljj-wrapper {
    width: 1760px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mljj-wrapper.mljj-vertical {
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.mljj-overview-left {
    flex: 0 0 998px; 
    position: relative;
    z-index: 2; 
}

.mljj-video-box {
    position: relative;
    width: 100%;
    height: 622px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 2;
}

.mljj-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mljj-video-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mljj-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8) url(../images/mljj/play.png) no-repeat center center;
    background-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3;
}

.mljj-video-play:hover {
    background-color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.mljj-overview-right {
    flex: 1;
    padding-left: 60px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 622px; 
    justify-content: space-between;
}

.mljj-overview-title-zone {
    height: 80px;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    margin-top:10px;
}

.mljj-overview-text-zone {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

/* 伪元素实现通栏深色背景，仅覆盖文字区 */
.mljj-overview-text-zone::before {
    content: "";
    position: absolute;
    top: 0;
    left: -2000px;
    right: -2000px;
    height: 100%;
    background: #e9eff4;
    z-index: -1;
}

.mljj-title-image {
    margin-bottom: 25px;
}

.mljj-title-image img {
    max-height: 50px;
}

.mljj-overview-text {
    font-size: 16px;
    color: #333;
    line-height: 2;
    margin: 0;
    text-indent: 2em;
    text-align: justify;
}

.mljj-overview-text a {
    color: #c00;
    font-weight: bold;
    text-decoration: none;
    margin-left: 5px;
}

.mljj-overview-btn-zone {
    height: 180px;
    /* display: flex; */
    align-items: center;
    position: relative;
    z-index: 2; 
}

.mljj-grid-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px
}

.mljj-btn-img {
    display: block;
    width: 100%;
    height: 65px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.2s;
}

.mljj-btn-img:hover {
    transform: scale(1.03);
}

.mljj-btn-5 { background-image: url(../images/mljj/5.png); }
.mljj-btn-6 { background-image: url(../images/mljj/6.png); }
.mljj-btn-7 { background-image: url(../images/mljj/7.png); }
.mljj-btn-8 { background-image: url(../images/mljj/8.png); }
.mljj-btn-9 { background-image: url(../images/mljj/9.png); }
.mljj-btn-10 { background-image: url(../images/mljj/10.png); }

.mljj-section-gallery {
    /* padding: 80px 0; */
    background: #fcfcfc;
    overflow: hidden;
}

.mljj-gallery-container {
    width: 1760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mljj-gallery-side {
    width: 538px;
    height: 324px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.mljj-gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mljj-carousel-middle-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.mljj-carousel-viewport {
    width: 600px;
    height: 360px;
    perspective: 3000px; /* 增大视角距离，使 3D 效果更平缓 */
    position: relative;
}

.mljj-carousel-stage {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mljj-carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.mljj-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 旋转木马位置设定 (减小 Z 轴距离，使旋转圆环变小) */
.mljj-carousel-item[data-index="0"] { transform: rotateY(0deg) translateZ(350px); }
.mljj-carousel-item[data-index="1"] { transform: rotateY(120deg) translateZ(350px); }
.mljj-carousel-item[data-index="2"] { transform: rotateY(240deg) translateZ(350px); }

.mljj-carousel-btn {
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.8;
}

.mljj-carousel-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

.mljj-carousel-btn img {
    width: 100%;
    height: 100%;
}

.mljj-section-food {
    padding: 0px 0 60px;
    background: linear-gradient(to bottom, #f7f8f9, #fff);
}

.mljj-section-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    color: #000;
    font-family: "FZXiaoBiaoSong-B05S", "方正小标宋简体", "STSong", serif;
}

.mljj-section-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.mljj-section-title a:hover {
    color: #c00; /* 悬停变红，提示可点击 */
}

.mljj-section-title::before,
.mljj-section-title::after {
    content: "";
    width: 12px;
    height: 12px;
    background: #c00;
}

.mljj-small-title {
    font-size: 16px;
    color: #333;
    font-family: "Microsoft YaHei", sans-serif;
    font-weight: bold;
    text-align: center; /* 显式强制文字居中 */
    width: 100%;
    margin: 0; /* 清除默认边距，改用下方统一控制 */
}

.mljj-food-item .mljj-small-title {
    margin-bottom: 15px; /* 统一控制与下方图片的距离 */
}

.mljj-book-item .mljj-small-title {
    margin-top: 25px;
}

.mljj-title-image-center {
    margin-bottom: 50px;
    text-align: center;
    margin-top:30px;
}

.mljj-title-image-center img {
    max-height: 60px;
}

.mljj-food-list {
    display: flex;
    justify-content: center;
    /* gap: 60px;  */
    width: 100%;
    margin-top: 40px;
}

.mljj-food-item {
    flex-shrink: 0;
}

.mljj-food-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.mljj-food-circle {
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #fff;
    transition: transform 0.3s;
}

.mljj-food-circle:hover {
    transform: translateY(-8px);
}

.mljj-food-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mljj-section-books {
    padding: 0 0 120px;
    /* background: #f7f8f9; */
    text-align: center;
}

.mljj-books-list {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 80px; 
}

.mljj-book-item {
    width: 215px;
}

.mljj-book-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.mljj-book-item .mljj-small-title {
    margin-top: 25px;
    transition: color 0.3s;
}

.mljj-book-item a:hover .mljj-small-title {
    color: #c00;
}

.mljj-book-cover {
    /* width: 100%; */
    /* height: 300px; */
    /* box-shadow: 10px 10px 20px rgba(0,0,0,0.15); */
    /* margin-bottom: 20px; */
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease; /* 添加平滑过渡 */
    cursor: pointer;
}

.mljj-book-cover:hover {
    transform: translateY(-10px) scale(1.02); /* 向上移动并略微放大 */
    box-shadow: 15px 15px 30px rgba(0,0,0,0.25); /* 增强阴影感 */
}

.mljj-book-cover img {
    /* width: 100%; */
    /* height: 100%; */
    /* object-fit: cover; */
}

.mljj-book-name {
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .mljj-wrapper { width: 95%; }
    .mljj-gallery-item { width: 30%; }
}
@media (max-width: 1300px) {
    .mljj-gallery-side {
        width: 220px;
    }
    .mljj-carousel-viewport {
        max-width: 480px;
    }
    .mljj-food-item {
        width: 130px;
    }
    .mljj-food-circle {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 1024px) {
    .mljj-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .mljj-overview-left, .mljj-overview-right {
        flex: auto;
        width: 100%;
    }
    .mljj-overview-right {
        padding-left: 0;
        height: auto;
    }
    .mljj-overview-text-zone::before {
        left: -50px;
        right: -50px;
    }
    .mljj-gallery-container {
        flex-direction: column;
        width: 100%;
    }
    .mljj-gallery-side {
        width: 90%;
        order: 2;
    }
    .mljj-carousel-middle-wrap {
        order: 1;
        width: 100%;
    }
    .mljj-carousel-viewport {
        max-width: 85vw;
        aspect-ratio: 4 / 3;
        height: auto;
    }
    .mljj-side-left, .mljj-side-right {
        display: flex;
        justify-content: center;
    }
    .mljj-book-item {
        width: 150px;
    }
    .mljj-section-title {
        font-size: 32px;
    }
    .mljj-video-box{
        height: auto;
    }
    .mljj-video-box video {
        height: auto;
    }
    .mljj-carousel-item,
    .mljj-carousel-item img{
        height: auto;
    }

    .mljj-food-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 30px;
        padding-bottom: 15px;
    }

    .mljj-food-list::-webkit-scrollbar {
        height: 4px;
    }
    .mljj-food-list::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 4px;
    }
    .mljj-food-list::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .mljj-food-item {
        flex: 0 0 auto;
        width: 130px;
    }

    .mljj-books-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 30px;
        padding-bottom: 15px;
        justify-content: flex-start;
        margin-top: 40px;
        width: 100%;
    }

    .mljj-books-list::-webkit-scrollbar {
        height: 4px;
    }
    .mljj-books-list::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 4px;
    }
    .mljj-books-list::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .mljj-book-item {
        flex: 0 0 auto;
        width: 180px;
    }
    .mljj-book-cover img{
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mljj-top-nav .mljj-wrapper {
        padding: 8px 20px;
        justify-content: center;
    }
    .mljj-nav-left, .mljj-nav-right {
        justify-content: center;
        font-size: 12px;
    }
    .mljj-nav-left a, .mljj-nav-right a, .mljj-nav-right span {
        font-size: 12px;
        white-space: nowrap;
    }
    .mljj-nav-tag {
        font-size: 10px !important;
        padding: 0 8px;
        height: 24px;
    }
    .mljj-hero {
        min-height: 380px;
        padding-top: 100px;
        height: auto;
    }
    .mljj-overview-text {
        font-size: 14px;
    }
    .mljj-food-list {
        gap: 25px;
        justify-content: normal;
    }
    .mljj-food-item {
        width: 110px;
    }
    .mljj-food-circle {
        width: 100px;
        height: 100px;
    }
    .mljj-small-title {
        font-size: 13px;
    }
    .mljj-section-title {
        font-size: 26px;
        gap: 12px;
    }
    .mljj-book-item {
        width: 130px;
    }
    .mljj-carousel-btn {
        width: 32px;
        height: 32px;
    }
    .mljj-carousel-viewport {
        max-width: 90vw;
    }
    .mljj-gallery-side {
        width: 100%;
        height: auto;
    }

    .mljj-food-item {
        width: 110px;
    }
    .mljj-food-list {
        gap: 25px;
    }

    .mljj-book-item {
        width: 150px;
    }
    .mljj-books-list {
        gap: 25px;
    }
    .mljj-hero-logo{
        width: 90%;
    }
}

@media (max-width: 480px) {
    .mljj-food-item {
        width: 90px;
    }
    .mljj-food-circle {
        width: 80px;
        height: 80px;
    }
    .mljj-book-item {
        width: 110px;
    }
    .mljj-book-item .mljj-small-title {
        font-size: 12px;
    }
    .mljj-section-title {
        font-size: 22px;
    }
    .mljj-overview-text {
        font-size: 13px;
        line-height: 1.6;
    }
    .mljj-title-image img {
        max-height: 40px;
    }
    .mljj-nav-left, .mljj-nav-right {
        gap: 8px;
    }
    .mljj-nav-icon img {
        height: 18px;
    }
    .mljj-section-overview{
        padding-bottom: 40px;
    }
    .mljj-food-item {
        width: 90px;
    }
    .mljj-book-item {
        width: 130px;
    }
}