
/* 字体声明已移至 css/common/fonts.css 统一管理 */

  @font-face {
    font-family: var(--font-number);
    src: url("../fonts/DIN-Medium.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
  }

/* 顶部横幅区域 */
.partners-banner {
    padding: 80px 0 60px;
    text-align: center;
    background-color: #fff;
}

.partners-banner h2 {
    font-size: 30px;
    color: #333333;
    margin-bottom: 20px;
    font-family: var(--font-medium);
}

.partners-banner .subtitle {
    font-size: 16px;
    color: #333333;
    margin-bottom: 50px;
    font-family: var(--font-light);
}

/* 合作伙伴网格布局 */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-item {
    width: 220px;
    height: 160px;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 20px;
    transition: all 0.3s ease;
}

.partner-item:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.partner-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .partners-banner h2 {
        font-size: 28px;
    }

    .partner-item {
        width: 150px;
        height: 100px;
    }
}

@media screen and (max-width: 576px) {
    .partners-banner {
        padding: 50px 0 30px;
    }

    .partners-banner h2 {
        font-size: 24px;
    }

    .partner-item {
        width: 120px;
        height: 80px;
        margin: 5px;
    }
}

/* 合作类别区 */
.partners-categories {
    padding: 80px 0;
    text-align: center;
    background-color: #f2f4fa;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 主要类别展示 */
.main-category {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.main-category img {
    width: 50%;
    object-fit: cover;
}

.main-category-info {
    width: 50%;
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-category-info h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.main-category-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 九宫格分类 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.category-item {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.category-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.category-item img {
    width: 70%;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.category-item p {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.category-item.more-item {
    background-color: #f8f9fa;
    border: 2px dashed #ddd;
}

.category-item.more-item p {
    font-size: 18px;
    color: #0066ff;
    cursor: pointer;
}

/* 响应式布局 - 合作类别区 */
@media screen and (max-width: 992px) {
    .main-category {
        flex-direction: column;
    }

    .main-category img,
    .main-category-info {
        width: 100%;
    }

    .main-category-info {
        padding: 30px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .main-category-info {
        padding: 20px;
    }

    .main-category-info h3 {
        font-size: 20px;
    }
}

/* 合作客户评价区 */
.partners-testimonials {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 大型轮播评价 */
.testimonial-slider {
    margin-bottom: 60px;
}

.testimonial-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.testimonial-card {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 0 20px;
    width: 100%;
}

.testimonial-image {
    width: 30%;
    min-width: 200px;
    max-width: 300px;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding: 30px;
    text-align: left;
    flex: 1;
}

.testimonial-name {
    font-size: 20px;
    color: #161822;
    font-family: var(--font-primary);
    font-weight: 500;
    margin-bottom: 5px;
}

.testimonial-name span {
    font-size: 14px;
    font-weight: normal;
    color: #161822;
    margin-left: 8px;
}

.testimonial-stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 16px;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.8;
    color: #161822;
    font-family: var(--font-primary);
}

.testimonial-navigation {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px dashed #ddd;
}

.testimonial-navigation:hover {
    background-color: #0066ff;
    color: #fff;
    transform: scale(1.1);
    border-color: #0066ff;
}

.nav-arrow {
    font-size: 18px;
    font-weight: bold;
}

.testimonial-navigation.clicked {
    transform: scale(0.9);
}

/* 特殊布局 - 两行卡片，相反方向滚动 */
.testimonial-grid {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #f0f2f5;
}

/* 评价卡片轨道容器 */
.testimonial-track {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f0f2f5;
    height: 300px; /* 增加高度以容纳卡片 */
}

.track-center-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    will-change: transform;
    animation: scrollCards 30s linear infinite;
}

/* 反向滚动的轨道 */
.track-center-wrapper.reverse {
    animation: scrollCardsReverse 30s linear infinite;
}

@keyframes scrollCards {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-600px * 4 - 20px * 4)); /* 4是每行卡片数量，20px是gap */
    }
}

@keyframes scrollCardsReverse {
    0% {
        transform: translateX(calc(-600px * 4 - 20px * 4));
    }
    100% {
        transform: translateX(0);
    }
}

.track-center-wrapper:hover {
    animation-play-state: paused;
}

/* 小型评价卡片样式 */
.testimonial-small {
    flex: 0 0 600px;
    width: 600px;
    height: 260px;
    background: #fff;
    padding: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-small-inner {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    height: 100%;
}

.small-image {
    width: 200px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    font-family: var(--font-primary);
    color: #161822;
}

.small-content h4 {
    font-size: 20px;
    color: #161822;
    margin-bottom: 10px;
    display: flex;
    align-items: end;
    font-weight: 500;
    gap: 12px;
}

.small-content h4 span {
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
}

.small-content p {
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 轮播导航按钮 */
.testimonial-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #333;
}

.testimonial-nav-button:hover {
    background-color: #0066ff;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav-button.nav-left {
    left: 5%;
}

.testimonial-nav-button.nav-right {
    right: 5%;
}

.testimonial-nav-button i {
    font-size: 16px;
}

/* 激活状态的卡片效果 */
.special-layout .testimonial-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 1200px) {
    .testimonial-track {
        width: calc(600px * 1.5); /* 稍微调整小屏幕显示 */
    }

    .special-layout .testimonial-small {
        width: 580px;
    }

    .testimonial-nav-button.nav-left {
        left: 2%;
    }

    .testimonial-nav-button.nav-right {
        right: 2%;
    }
}

@media screen and (max-width: 992px) {
    .testimonial-track {
        width: calc(580px * 1.2); /* 平板尺寸 */
    }

    .special-layout .testimonial-small {
        width: 560px;
    }
}

@media screen and (max-width: 768px) {
    .testimonial-track {
        width: calc(540px * 1.1); /* 移动端尺寸 */
    }

    .special-layout .testimonial-small {
        width: 520px;
        height: 300px;
        padding: 25px;
    }

    .small-image {
        width: 180px;
        height: 230px;
    }

    .small-content h4 {
        font-size: 20px;
    }

    .small-content p {
        font-size: 16px;
        -webkit-line-clamp: 6;
    }
}

@media screen and (max-width: 576px) {
    .testimonial-track {
        width: calc(480px * 1.1);
    }

    .special-layout .testimonial-small {
        width: 460px;
        height: 280px;
        padding: 20px;
    }

    .small-image {
        width: 160px;
        height: 220px;
    }
}

/* 联系我们部分 */
.contact-us {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.section-title {
    font-size: 32px;
    color: #161822;
    margin-bottom: 20px;
    font-weight: 500;
    font-family: var(--font-medium);
}

.section-subtitle {
    font-size: 16px;
    color: #161822;
    margin-bottom: 40px;
    font-family: var(--font-light);
}

.contact-form {
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 6px 6px 6px 16px;
    max-width: 440px;
    margin: 0 auto;
}

.contact-input {
    flex: 1;
    border: 1.5px solid #E3EAF5;
    outline: none;
    font-size: 16px;
    padding: 8px 12px;
    background: #fff;
    color: #A9A9A9;
    box-shadow: none;
    transition: border-color 0.2s;
}

.contact-input::placeholder {
    color: #C0C7D1;
    font-size: 15px;
}

.contact-input:focus {
    border: 1.5px solid #4CA6FF;
    outline: none;
    box-shadow: none;
    background: #fff;
    color: #333;
}

.contact-input:hover {
    border: 1.5px solid #4CA6FF;
}

.contact-submit {
    padding: 0 28px;
    height: 42px;
    border: none;
    background: linear-gradient(90deg, #4CA6FF 0%, #1CB5FF 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(76,166,255,0.10);
}

.contact-submit:hover {
    background: linear-gradient(90deg, #4CA6FF 0%, #1CB5FF 100%);
    box-shadow: 0 2px 8px rgba(76,166,255,0.10);
}

.hover-float {
    transition: transform 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-5px);
}

/* 添加Swiper轮播样式 */
.testimonial-swiper {
    width: 100%;
    padding: 50px 0;
}

.testimonial-swiper .swiper-slide {
    width: 70%; /* 设置slide宽度 */
    max-width: 800px;
    background-color: transparent;
    transition: transform 0.3s;
}

.testimonial-swiper .swiper-slide-active {
    transform: scale(1.05);
    z-index: 1;
}

.testimonial-swiper .testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    width: 100%;
    height: 400px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.testimonial-swiper .testimonial-image {
    flex: 0 0 240px;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.testimonial-swiper .testimonial-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.3));
}

.testimonial-swiper .testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-swiper .testimonial-content {
    flex: 1;
    padding: 30px;
    position: relative;
    height: 100%;
    overflow-y: auto;
}

/* 自定义滚动条样式 */
.testimonial-swiper .testimonial-content::-webkit-scrollbar {
    width: 6px;
}

.testimonial-swiper .testimonial-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.testimonial-swiper .testimonial-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.testimonial-swiper .testimonial-content::-webkit-scrollbar-thumb:hover {
    background: #4CA6FF;
}

.testimonial-swiper .testimonial-name {
    font-size: 20px;
    margin-bottom: 15px;
    color: #161822;
    font-weight: 500;
    font-family: var(--font-primary);
}

.testimonial-swiper .testimonial-name span {
    font-size: 16px;
    color: #161822;
    font-family: var(--font-primary);
    font-weight: normal;
    margin-left: 10px;
}

.testimonial-swiper .testimonial-position {
    font-size: 14px;
    color: rgba(22, 24, 34, 0.5);
    margin-bottom: 15px;
    font-weight: normal;
    line-height: 1.5;
}

.testimonial-swiper .testimonial-text {
    color: #161822;
    line-height: 1.5;
    font-size: 14px;
    font-family: var(--font-primary);
}

/* 自定义导航按钮 */
.testimonial-swiper .swiper-button-next,
.testimonial-swiper .swiper-button-prev {
    color: #4CA6FF;
    background-color: rgba(255,255,255,0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonial-swiper .swiper-button-next:after,
.testimonial-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.testimonial-swiper .swiper-button-next:hover,
.testimonial-swiper .swiper-button-prev:hover {
    background-color: #4CA6FF;
    color: white;
}

