/**
 * 页面样式修复 - About Us, Customer Review, Contact Us, Video
 * 修复这些页面的样式错乱问题
 */

/* ========== 通用布局样式 ========== */
.p-t-120 {
    padding-top: 120px;
}

.p-t-60 {
    padding-top: 60px;
}

.p-t-40 {
    padding-top: 40px;
}

.p-t-20 {
    padding-top: 20px;
}

.p-b-80 {
    padding-bottom: 80px;
}

.p-b-120 {
    padding-bottom: 120px;
}

.m-t-20 {
    margin-top: 20px;
}

/* ========== 容器样式 ========== */
.bx, .cbx, .cbx2, .cbxm {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 面包屑导航 ========== */
.mbx {
    background: #f8f8f8;
    padding: 15px 0;
}

.mbx .bx {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.mbx a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.mbx a:hover {
    color: #D4AF37;
}

.mbx .iconfont {
    font-size: 12px;
}

/* ========== About Us 页面样式 ========== */
.about .list1 .con {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about .list1 .con h2 {
    font-size: 32px;
    color: #2C2C2C;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.about .list1 .con .text {
    line-height: 1.8;
    color: #666;
    font-size: 16px;
}

.about .list1 .con .text p {
    margin-bottom: 20px;
}

.about .list1 .con .text img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

/* ========== Contact Us 页面样式 ========== */
.contact .list1 .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.contact .list1 .item {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact .list1 .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.contact .list1 .item .top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #D4AF37;
}

.contact .list1 .item .top .iconfont {
    font-size: 36px;
    color: #D4AF37;
}

.contact .list1 .item .top span {
    font-size: 20px;
    font-weight: 700;
    color: #2C2C2C;
    text-transform: uppercase;
}

.contact .list1 .item .bottom {
    padding-top: 20px;
}

.contact .list1 .item .bottom p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.contact .list1 .item .bottom a {
    display: inline-block;
    margin-top: 15px;
    color: #D4AF37;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s;
}

.contact .list1 .item .bottom a:hover {
    color: #B8860B;
}

/* ========== Customer Review 页面样式 ========== */
.news .list3 .cbx {
    max-width: 1280px;
    margin: 0 auto;
}

.news .list3 .cson {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news .list3 .cson .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.news .list3 .cson .user-info .img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.news .list3 .cson .user-info .name {
    font-weight: 700;
    color: #2C2C2C;
    font-size: 16px;
}

.news .list3 .cson .user-info .date {
    color: #999;
    font-size: 14px;
    margin-left: auto;
}

.news .list3 .cson .text {
    color: #666;
    line-height: 1.8;
}

.news .list3 .cson .text .p {
    margin-bottom: 20px;
}

.news .list3 .cson .text .p.collapsed {
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.news .list3 .cson .text .p.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, white);
}

.news .list3 .cson .show-more {
    color: #D4AF37;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

.news .list3 .cson .show-more:hover {
    color: #B8860B;
}

.news .list3 .cson .img-box {
    margin: 20px 0;
}

.news .list3 .cson .single-image img {
    max-width: 100%;
    border-radius: 8px;
}

.news .list3 .cson .swiper-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.news .list3 .cson .swiper-slide img {
    width: 100%;
    height: auto;
}

.news .list3 .cson .rep {
    margin-top: 20px;
    padding: 20px;
    background: #f8f8f8;
    border-left: 3px solid #D4AF37;
    border-radius: 5px;
}

.news .list3 .cson .comment-btn {
    margin-top: 20px;
    padding: 10px 30px;
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.news .list3 .cson .comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* 评论表单样式 */
.news .list1 .cbxm {
    max-width: 1000px;
    margin: 0 auto;
}

.news .list1 .eva {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news .list1 .eva label {
    display: block;
}

.news .list1 .eva label > span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 20px;
}

.news .list1 .eva textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
}

.news .list1 .eva textarea:focus {
    outline: none;
    border-color: #D4AF37;
}

.news .list1 .eva .upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.news .list1 .eva .add-image-btn {
    width: 100px;
    height: 100px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.news .list1 .eva .add-image-btn:hover {
    border-color: #D4AF37;
    background: #f8f8f8;
}

.news .list1 .eva .add-image-btn .iconfont {
    font-size: 24px;
    color: #999;
}

.news .list1 .eva .add-image-btn span {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.news .list1 .eva .file-input {
    display: none;
}

.news .list1 .eva .image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
}

.news .list1 .eva .image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news .list1 .eva .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.news .list1 .eva .submit-area {
    text-align: right;
    margin-top: 20px;
}

/* 分页样式 */
.cbx2 {
    max-width: 1000px;
    margin: 40px auto;
}

/* ========== 分页样式 ========== */
.cbx2 .page-fenye,
section .page-fenye {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    gap: 20px;
}

.cbx2 .page-fenye p,
section .page-fenye p {
    margin: 0;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.cbx2 .page-fenye nav,
section .page-fenye nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.cbx2 .page-fenye a,
.cbx2 .page-fenye span,
section .page-fenye a,
section .page-fenye span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    max-width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    background: white;
    flex-shrink: 0;
}

.cbx2 .page-fenye a[rel="prev"],
.cbx2 .page-fenye a[rel="next"],
.cbx2 .page-fenye span[aria-label*="Previous"],
.cbx2 .page-fenye span[aria-label*="Next"],
section .page-fenye a[rel="prev"],
section .page-fenye a[rel="next"],
section .page-fenye span[aria-label*="Previous"],
section .page-fenye span[aria-label*="Next"] {
    min-width: auto;
    max-width: none;
    padding: 0 12px;
}

.cbx2 .page-fenye a:hover,
section .page-fenye a:hover {
    background: #E8F4FD;
    color: #4A90E2;
    border-color: #4A90E2;
}

.cbx2 .page-fenye .active,
.cbx2 .page-fenye span[aria-current="page"],
section .page-fenye .active,
section .page-fenye span[aria-current="page"] {
    background: #4A90E2 !important;
    color: white !important;
    border-color: #4A90E2 !important;
    font-weight: 500;
}

.cbx2 .page-fenye .disabled,
.cbx2 .page-fenye span[aria-disabled="true"],
section .page-fenye .disabled,
section .page-fenye span[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #F5F5F5;
}

.cbx2 .page-fenye .dots,
.cbx2 .page-fenye span[aria-disabled="true"]:not([aria-label]),
section .page-fenye .dots,
section .page-fenye span[aria-disabled="true"]:not([aria-label]) {
    border: none;
    background: transparent;
    color: #999;
    cursor: default;
    min-width: 20px;
    max-width: 20px;
}

.cbx2 .page-fenye a[rel="prev"]::before,
.cbx2 .page-fenye span[aria-label*="Previous"]::before,
section .page-fenye a[rel="prev"]::before,
section .page-fenye span[aria-label*="Previous"]::before {
    content: "‹";
    margin-right: 4px;
}

.cbx2 .page-fenye a[rel="next"]::after,
.cbx2 .page-fenye span[aria-label*="Next"]::after,
section .page-fenye a[rel="next"]::after,
section .page-fenye span[aria-label*="Next"]::after {
    content: "›";
    margin-left: 4px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s;
}

.modal .close-btn:hover {
    background: #D4AF37;
    color: white;
}

/* ========== Video 页面样式 ========== */
.vr .list1 .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.vr .list1 .item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.vr .list1 .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.vr .list1 .item .a {
    cursor: pointer;
}

.vr .list1 .item .img {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.vr .list1 .item .img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vr .list1 .item:hover .img img {
    transform: scale(1.05);
}

.vr .list1 .item .img video {
    display: none;
}

.vr .list1 .item .img .iconfont {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 42px;
    color: white;
    background: rgba(212, 175, 55, 0.8);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index:99;
}

.vr .list1 .item:hover .img .iconfont {
    background: rgba(212, 175, 55, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.vr .list1 .item .videotitle {
    padding: 15px;
    font-size: 14px;
    color: #2C2C2C;
    font-weight: 600;
    text-align: center;
}

.vr .list1 .item .info-item-op {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
}

.vr .list1 .item .info-item-img {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.vr .list1 .item .info-item-img img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.vr .list1 .item .info-item-img img:hover {
    transform: scale(1.1);
}

.vr .list1 .item .info-item-shop {
    text-align: center;
}

.vr .list1 .item .addShopCart {
    padding: 10px 20px;
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vr .list1 .item .addShopCart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* 视频弹窗 */
.video-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-box.on {
    display: none;
}

.video-box-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-box-bg.on {
    opacity: 1;
}

.video-box-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.video-box-content .close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
}

.video-box-content .close:hover {
    color: #D4AF37;
}

.video-box-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .vr .list1 .grid-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .p-t-120 {
        padding-top: 80px;
    }

    .contact .list1 .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vr .list1 .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .about .list1 .con,
    .contact .list1 .item,
    .news .list3 .cson,
    .news .list1 .eva {
        padding: 20px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .vr .list1 .grid-4 {
        grid-template-columns: 1fr;
    }

    .news .list3 .cson .user-info {
        flex-wrap: wrap;
    }

    .news .list3 .cson .user-info .date {
        margin-left: 0;
        width: 100%;
    }
}

/* ========== 通用工具类 ========== */
.gaps-30 {
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
