/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

/* 头部样式 */
header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 服务网格样式 */
.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.service-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-item h3 {
    text-align: center;
    padding: 1rem;
    color: #2c3e50;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    header h1 {
        font-size: 2rem;
    }
    .services {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    header {
        padding: 1.5rem 0;
    }
    header h1 {
        font-size: 1.8rem;
    }
    header p {
        font-size: 1rem;
    }
    .services h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .service-item h3 {
        font-size: 1rem;
        padding: 0.8rem;
    }
}

/* 移动端触摸反馈 */
@media (max-width: 768px) {
    .service-item {
        -webkit-tap-highlight-color: transparent;
    }
    .service-item:active {
        transform: scale(0.98);
        box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    }
}

/* 嘉宾推荐样式 */
.review-list {
    overflow: hidden !important;
    -ms-overflow-style: none; /* IE和Edge */
    scrollbar-width: none; /* Firefox */
    position: relative;
    height: 400px; /* 设置合适的高度以显示多个嘉宾信息 */
    width: 100%;
}

/* Chrome, Safari等浏览器隐藏滚动条 */
.review-list::-webkit-scrollbar {
    display: none;
}

.review-item {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 1rem;
    width: calc(100% - 2rem); /* 确保宽度正确 */
    display: flex;
    align-items: flex-start;
}

.review-avatar {
    margin-right: 1rem;
}

.review-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.review-content {
    flex: 1;
}

.review-header {
    margin-bottom: 0.5rem;
}

.review-name {
    font-weight: bold;
    color: #2c3e50;
}

.review-text {
    margin: 0.2rem 0;
    color: #333;
    line-height: 1.5;
}

/* 响应式调整 - 相亲服务板块 */
@media (max-width: 768px) {
    .dating-section h2 {
        font-size: 1.5rem;
    }
    
    .review-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .review-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .review-list {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .dating-section {
        padding: 0 0.5rem;
    }
    
    .service-section {
        padding: 1rem;
    }
    
    .review-list {
        height: 300px;
    }
    
    .review-avatar img {
        width: 60px;
        height: 60px;
    }
}

/* 相亲服务板块样式 */
.dating-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.dating-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* 相亲服务单页面样式 */
.service-header {
    background-color: #f5f5f5;
    padding: 80px 0;
    text-align: center;
}

.service-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.service-header p {
    font-size: 18px;
    color: #666;
}

.service-info {
    padding: 60px 0;
    background-color: #fff;
}

.service-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.service-description p {
    margin-bottom: 20px;
}

.guests-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.review-list {
    position: relative;
    height: 500px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.review-item {
    display: flex;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    flex: 1;
}

.review-header {
    margin-bottom: 10px;
}

.review-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.review-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.6;
}

.service-process {
    padding: 60px 0;
    background-color: #fff;
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-steps ol {
    list-style-position: inside;
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.process-steps li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.contact-section {
    padding: 60px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.contact-info p {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

/* 详情页响应式样式 */
@media (max-width: 768px) {
    .service-header {
        padding: 60px 20px;
    }
    
    .service-header h1 {
        font-size: 28px;
    }
    
    .service-info,
    .guests-section,
    .service-process,
    .contact-section {
        padding: 40px 20px;
    }
    
    .review-list {
        height: 400px;
    }
    
    .review-item {
        padding: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .review-avatar {
        width: 60px;
        height: 60px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .qrcode {
        width: 150px;
        height: 150px;
    }
}

/* 客户评价基础样式 - 滚动效果通过页面内联样式实现 */
.reviews-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.reviews-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}
.review-item {
    display: flex;
    gap: 1rem;
}
.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f1f1f1;
    flex-shrink: 0;
    overflow: hidden;
}
.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-content {
    flex-grow: 1;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-date {
    color: #999;
    font-size: 0.8rem;
    margin-left: 1rem;
}
.review-name {
    font-weight: bold;
    color: #333;
}
.review-text {
    color: #666;
    line-height: 1.5;
}

/* 图片懒加载样式 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.lazy-load.loaded {
    opacity: 1;
}

/* 服务项图片样式 - 确保无额外图标和文字 */
.service-image {
    position: relative;
    z-index: 1;
}

.service-image::before, .service-image::after {
    content: none !important;
}

/* 移除可能的图标或文字覆盖 */
.service-item::before, .service-item::after {
    content: none !important;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}