/* public/css/common.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========== Customer Testimonials ========== */
.testimonials-v1 {
    padding: 80px 40px 60px;
    background: #f5f5f5;
}

.section-title-v1 {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-v1 h2 {
    font-size: 32px;
    color: #b71c1c;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title-v1 h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #b71c1c;
}

.section-title-v1 p {
    font-size: 20px;
    color: #333;
    font-style: italic;
    letter-spacing: 2px;
}

.logo-grid-v1 {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.logo-card-v1 {
    background: #e8e8e8;
    border-radius: 4px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.logo-card-v1:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.logo-card-v1 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Pagination */
.pagination-v1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination-v1 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 14px;
    color: #555;
    background: #fff;
    transition: all 0.3s;
}

.pagination-v1 a:hover {
    border-color: #b71c1c;
    color: #b71c1c;
}

.pagination-v1 a.active-v1 {
    background: #b71c1c;
    color: #fff;
    border-color: #b71c1c;
}

/* ========== 响应式 ========== */

/* 平板竖屏 ≤992px */
@media screen and (max-width: 992px) {
    .logo-grid-v1 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .logo-card-v1 {
        height: 160px;
    }
}

/* 手机横屏 ≤768px */
@media screen and (max-width: 768px) {
    .testimonials-v1 {
        padding: 50px 20px 40px;
    }

    .section-title-v1 h2 {
        font-size: 24px;
    }

    .section-title-v1 p {
        font-size: 14px;
    }

    .logo-grid-v1 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .logo-card-v1 {
        height: 140px;
        padding: 20px;
    }

    .pagination-v1 a {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }
}

/* 手机竖屏 ≤480px */
@media screen and (max-width: 480px) {
    .logo-grid-v1 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .logo-card-v1 {
        height: 110px;
        padding: 14px;
    }

    .pagination-v1 {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination-v1 a {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }
}