/* service.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #fbec98;
    --dark-text: #000000;
    --dropdown-menu:  #ffdf29;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background-color: #fff5d5;
    color: var(--dark-text);
}

.intro-text {
    /* 基础文本样式 */
    font-size: 1.1rem;                    /* 与 index.html 一致 */
    line-height: 1.8;                     /* 舒适的行高 */
    color: var(--dark-text);              /* 使用主题深色文字 */
    margin: 2rem auto;                    /* 上下留白，水平居中 */
    max-width: 800px;                     /* 限制最大宽度，避免过宽 */
    padding: 0 1.5rem;                    /* 左右内边距，移动端友好 */
    text-align: left;                     /* 左对齐，便于阅读 */
}

/* 强调文本 */
.intro-text strong,
.intro-text b {
    color: var(--primary-color);         /* 加粗文字使用主题主色 */
    font-weight: 700;
}

/* 标题间距 */
.intro-text h2,
.intro-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}


/* 服务卡片样式 */
.service-section {
    padding: 2rem 5%;
}

.service-title {
    font-size: 1.2rem;
    color: rgb(59, 59, 59);
    background-color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    margin: 1rem 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.price-tag {
    font-weight: bold;
    color: #ff3232;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.price-note {
    font-size: 0.85rem;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background-color: var(--primary-color);
    color: #000;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* 服务流程样式 */
.process-section {
    padding: 3rem 5%;
    background-color: #fff;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    flex: 1 1 200px;
    text-align: center;
    padding: 1rem;
    background-color: #fffecb;
    border-radius: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.step-number {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 联系方式样式 */
.contact-section {
    padding: 3rem 5%;
    background-color: #fbec98;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.contact-qrcode {
    text-align: center;
}

.contact-qrcode img {
    max-width: 150px;
    height: auto;
    margin-bottom: 0.5rem;
}

/* 用户评价样式 */
.testimonials {
    padding: 3rem 5%;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-author span {
    font-weight: bold;
    color: var(--dark-text);
}

/* 响应式设计 */
@media (max-width: 700px) {
    .service-grid,
    .process-steps,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-qrcode {
        order: -1;
    }

    .process-step {
        margin-bottom: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .btn {
        font-size: 0.9rem;
    }
    .intro-text {
        font-size: 1rem;                 /* 移动端稍小字号 */
        line-height: 1.6;
        margin: 1.5rem 0;                /* 减少上下边距 */
        padding: 0 1rem;                 /* 减少左右内边距 */
    }
}

@media (max-width: 480px) {
    .service-card h3 {
        font-size: 1.1rem;
    }

    .price-tag {
        font-size: 0.9rem;
    }

    .testimonial-author img {
        width: 32px;
        height: 32px;
    }

    .intro-text {
        font-size: 0.95rem;              /* 小屏设备进一步优化 */
        line-height: 1.5;
    }
}