/* index页面专用样式 */
/* 轮播图样式 */
.carousel-section {
    height: 400px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* 内容卡片样式优化 */
.content-card {
    background: #fff;
    display: flex;
    align-items: stretch; /* 让两栏等高 */
    justify-content: flex-start;
    gap: 40px; /* 减小间距 */
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 40px 30px;
    box-sizing: border-box;
    position: relative;
}

.card-text {
    font-size: 13px;
    flex: 2 1 0;
    min-width: 260px;
    max-width: 60%;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10px;

}

.card-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.card-text h3 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

.card-text p {
    font-size: 11px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-text ul li {
    position: relative;
    padding-left: 0;
}

.card-text ul li strong {
    font-weight: 700;
    color: #333;
}

.card-image {
    flex: 1 1 0;
    display: flex;
    align-items: stretch; /* 让图片等高 */
    min-width: 180px;
    max-width: 36%;
    height: auto;
}

.therapy-image {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/* 产品标题样式 */
.product-title {
    text-align: center;
    margin-bottom: 40px;
}

.product-title h2 {
    font-size: 40px;
    font-weight: 700;
    color: #e74c3c;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.more-button-container {
    position: absolute;
    bottom: 45px;
    right: 440px;
    z-index: 100;
}

.more-button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.more-button:hover {
    background: #c0392b;
    color: #fff;
    text-decoration: none;
}

.button-text {
    font-weight: 600;
    letter-spacing: 1px;
}
/* 产品卡片样式 */
.product-card {
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 30px 0px 40px 0; /* 增加内边距 */
    box-sizing: border-box;
    margin-top: 30px;
}

.product-content-wrapper {
    display: flex;
    align-items: stretch; /* 确保左右两边等高 */
    gap: 20px;
    padding: 0px 86px 0 86px;
}

.product-main-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; /* 居中显示 */
    position: relative;
}

.main-product-img {
    width:460px; /* 固定宽度 */
    height: 100%; /* 高度填满容器，与右边等高 */
    object-fit: cover;
}

.product-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%; /* 高度填满容器，与左边等高 */
}

.product-item {
    display: flex;
    justify-content: center;
    align-items: stretch; /* 让每个图片项填满网格单元格 */
}

.product-content {
    text-align: center;
}

.product-img {
    width: 100%;
    height: 94%;
    object-fit: cover;
    transition: none;
}

.product-img:hover {
    transform: none;
}

.product-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

/* 客户评价轮播图样式 */
.testimonials-section {
    margin-top: 80px;
    padding: 60px 0;
}

.testimonials-header {
    text-align: left;
    margin-left: 100px;
    margin-bottom: 50px;
}

.testimonials-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.testimonials-header p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.testimonials-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.testimonials-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

.testimonial-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: transparent;
    min-height: 120px;
    align-items: flex-start;
}

.product-image {
    flex-shrink: 0;
}

.product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.testimonial-content {
    flex: 1;
}

.testimonial-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.stars {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 10px;
}

.testimonial-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.highlight {
    color: #e74c3c;
    text-decoration: underline;
    text-decoration-color: #e74c3c;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background: #e74c3c;
}

/* 证书轮播图样式 */
.certificates-section {
    background: #fef7f7;
    margin-top: 60px;
    padding: 40px 0 80px 0;
}

.certificates-header {
    text-align: center;
    margin-bottom: 50px;
}

.certificates-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: #e74c3c;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.certificates-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.left-arrow {
    left: -60px;
}

.right-arrow {
    right: -60px;
}

.carousel-arrow i {
    color: #666;
    font-size: 18px;
}

.certificates-container {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding: 0 6px;
    scroll-behavior: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.certificates-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.certificate-item {
    text-align: center;
    flex: 0 0 calc(16.66% - 20px);
    min-width: 120px;
    max-width: 120px;
    transition: transform 0.3s ease;
}

.certificate-img {
    /* height: 180px; */
    width: 100%;
    object-fit: inherit;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.certificate-label {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.certificates-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.cert-indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cert-indicator.active {
    background: #e74c3c;
}

/* 客户评价轮播指示器样式 */
.testimonials-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.testimonial-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.testimonial-indicator.active {
    border-color: #ffd700;
}

/* 联系表单样式 */
.contact-form-section {
    background: #fff;
}

.contact-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-form h2 {
    font-size: 30px;
    font-weight: 700;
    color: #e74c3c;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    /* gap: 25px; */
}

.form-row {
    display: flex;
    gap: 30px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: #f8f8f8;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    text-align: center;
    margin-bottom: 20px;
}

.submit-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #c0392b;
}

/* 响应式设计优化 */
@media (max-width: 1200px) {
    .content-card {
        gap: 30px;
        padding: 30px 20px;
    }

    .product-card {
        padding: 40px 50px;
    }
}

@media (max-width: 992px) {
    .content-card {
        gap: 25px;
        padding: 25px 15px;
    }

    .card-text {
        max-width: 65%;
    }

    .card-image {
        max-width: 30%;
    }

    .product-card {
        padding: 30px 40px;
    }

    .product-content-wrapper {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .content-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px 15px;
    }

    .card-text, .card-image {
        max-width: 100%;
        min-width: 0;
    }

    .card-image, .therapy-image {
        height: auto;
        width: 100%;
        max-width: 100%;
    }

    .product-card {
        padding: 20px 20px;
    }

    .product-content-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 0px 20px 0 20px;
    }

    .product-main-image {
        flex: none;
        width: 100%;
        position: relative;
    }

    .main-product-img {
        width: 100%;
        height: 300px;
        max-width: 100%;
    }

    .product-main-image span {
        position: absolute !important;
        bottom: 10px !important;
        left: 40px !important;
        padding: 8px 12px !important;
        border-radius: 5px !important;
        font-size: 14px !important;
        color: #fff !important;
        font-weight: bold !important;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 15px;
        flex: none;
        width: 100%;
    }

    .product-item {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-img {
        height: 180px;
        width: 100%;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .product-grid span {
        position: static;
        margin-top: 8px;
        font-size: 10px;
        padding: 4px 6px;
        background: transparent;
        border-radius: 0;
        font-weight: bold;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        color: #333;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .more-button-container {
        position: absolute;
        bottom: 25px;
        right: 20px;
        text-align: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    .more-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .main-content {
        padding: 20px 10px;
    }

    .testimonials-header {
        margin-left: 20px;
        margin-bottom: 30px;
    }

    .testimonials-header h2 {
        font-size: 32px;
    }

    .testimonials-header p {
        font-size: 16px;
    }

    .testimonials-grid {
        gap: 20px;
        margin-bottom: 30px;
    }

    .certificates-carousel {
        max-width: 100%;
        padding: 0 20px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
    }

    .left-arrow {
        left: -40px;
    }

    .right-arrow {
        right: -40px;
    }

    .certificate-item {
        flex: 0 0 calc(25% - 15px);
        min-width: 100px;
        max-width: 100px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .content-card {
        padding: 15px 10px;
        gap: 15px;
    }

    .card-text {
        font-size: 12px;
    }

    .card-text p {
        font-size: 10px;
    }

    .card-text ul li {
        font-size: 11px;
    }

    .card-text h3 {
        font-size: 12px;
    }

    .product-card {
        padding: 15px 15px;
    }

    .product-content-wrapper {
        padding: 0px 15px 0 15px;
        gap: 12px;
    }

    .main-product-img {
        height: 250px;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }

    .product-img {
        height: 150px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 6px;
    }

    .product-grid span {
        font-size: 9px;
        padding: 3px 5px;
        background: transparent;
        border-radius: 0;
        font-weight: bold;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        color: #333;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .more-button-container {
        position: absolute;
        bottom: 20px;
        right: 15px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .more-button {
        padding: 10px 25px;
        font-size: 13px;
        width: 100%;
        max-width: 200px;
    }

    .product-title h2 {
        font-size: 28px;
    }

    .testimonials-header h2 {
        font-size: 28px;
    }

    .testimonials-header {
        margin-left: 15px;
        margin-bottom: 25px;
    }

    .testimonials-header p {
        font-size: 14px;
    }

    .testimonials-grid {
        gap: 15px;
        margin-bottom: 25px;
    }

    .testimonial-item {
        padding: 10px;
        min-height: 100px;
    }

    .product-image img {
        width: 60px;
        height: 60px;
    }

    .certificates-carousel {
        padding: 0 15px;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
    }

    .left-arrow {
        left: -30px;
    }

    .right-arrow {
        right: -30px;
    }

    .certificate-item {
        flex: 0 0 calc(33.33% - 10px);
        min-width: 80px;
        max-width: 80px;
    }

    .certificate-img {
        margin-bottom: 10px;
    }

    .certificate-label {
        font-size: 12px;
    }

    .contact-form-container {
        padding: 0 15px;
    }

    .contact-form h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .submit-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .product-card {
        padding: 10px 10px;
    }

    .product-content-wrapper {
        padding: 0px 10px 0 10px;
        gap: 10px;
    }

    .main-product-img {
        height: 200px;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .product-img {
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 6px;
    }

    .product-grid span {
        font-size: 8px;
        padding: 2px 4px;
        background: transparent;
        border-radius: 0;
        font-weight: bold;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        color: #333;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .more-button {
        padding: 8px 20px;
        font-size: 12px;
        max-width: 180px;
    }

    .product-title h2 {
        font-size: 24px;
    }

    .testimonials-header h2 {
        font-size: 24px;
    }

    .certificates-header h2 {
        font-size: 24px;
    }

    .contact-form h2 {
        font-size: 24px;
    }

    .testimonials-header {
        margin-left: 10px;
        margin-bottom: 20px;
    }

    .testimonials-header p {
        font-size: 13px;
    }

    .testimonial-item {
        padding: 8px;
        min-height: 80px;
    }

    .product-image img {
        width: 50px;
        height: 50px;
    }

    .certificate-item {
        flex: 0 0 calc(50% - 8px);
        min-width: 70px;
        max-width: 70px;
    }

    .form-group input,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 12px;
    }

    .submit-btn {
        padding: 10px 25px;
        font-size: 13px;
    }
}
.product-main-image{
    position: relative;
}
.product-main-image span{
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    color: #fff;
    font-weight: bold;

}
.product-item{
    position: relative;
}
.product-grid span{
    position: absolute;
    font-size: 14px;
    color: #000000;
    bottom: -8px;
    left: 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* 响应式样式覆盖基础样式 */
@media (max-width: 768px) {
    .product-grid span {
        position: static !important;
        margin-top: 8px;
        font-size: 10px !important;
        padding: 4px 6px;
        background: transparent !important;
        border-radius: 0 !important;
        font-weight: bold;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        color: #333 !important;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        bottom: auto;
        left: auto;
    }
}

@media (max-width: 480px) {
    .product-grid span {
        position: static !important;
        font-size: 9px !important;
        padding: 3px 5px;
        background: transparent !important;
        border-radius: 0 !important;
        font-weight: bold;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        color: #333 !important;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        bottom: auto;
        left: auto;
    }
}

@media (max-width: 360px) {
    .product-grid span {
        position: static !important;
        font-size: 8px !important;
        padding: 2px 4px;
        background: transparent !important;
        border-radius: 0 !important;
        font-weight: bold;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        color: #333 !important;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        bottom: auto;
        left: auto;
    }
}

