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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    overscroll-behavior-x: none;
    color: #333;
    background: #f5f5f5;
}

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

/* 头部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

.nav {
    display: none;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    margin: 0 15px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #e74c3c;
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* Banner */
.banner {
    height: 420px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-primary {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 14px 35px;
    font-size: 17px;
    border-radius: 25px;
    cursor: pointer;
}

/* 通用标题 */
.section-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin: 35px 0 12px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 3px;
    background: #e74c3c;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

/* 服务分类 */
.categories {
    padding: 15px 0 35px;
    background: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.category-icon {
    font-size: 32px;
    margin-bottom: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

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

.category-card h3 {
    font-size: 13px;
    color: #333;
}

/* 服务列表 */
.services-list {
    padding: 15px 0 35px;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    position: relative;
}

.service-image {
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

.service-content {
    padding: 18px;
}

.service-content h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #333;
}

.service-content p {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 15px;
}

.price-value {
    color: #e74c3c;
    font-size: 22px;
    font-weight: bold;
}

.price-unit {
    color: #666;
    font-size: 13px;
}

.btn-book {
    width: 100%;
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

/* 服务优势 */
.advantages {
    padding: 15px 0 35px;
    background: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.advantage-item {
    text-align: center;
    padding: 20px 10px;
    border-radius: 10px;
    background: #f8f9fa;
}

.advantage-icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon-img {
    width: 100%;
    max-width: 80px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 10px;
    border-radius: 12px;
    overflow: hidden;
}

.advantage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.advantage-item h3 {
    font-size: 15px;
    margin-bottom: 5px;
    color: #333;
}

.advantage-item p {
    color: #666;
    font-size: 12px;
}

/* 服务流程 */
.process {
    padding: 15px 0 35px;
    background: #f8f9fa;
}

.process-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.process-step {
    text-align: center;
    padding: 12px;
    width: 100%;
    max-width: 200px;
}

.step-number {
    width: 42px;
    height: 42px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: bold;
    margin: 0 auto 8px;
}

.process-step h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.process-step p {
    color: #666;
    font-size: 12px;
}

.process-arrow {
    font-size: 18px;
    color: #ddd;
    transform: rotate(90deg);
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 35px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 13px;
}

/* 预约弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    color: #333;
}

.close-btn {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

.modal form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.btn-submit {
    width: 100%;
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 5px;
}

/* 二级服务菜单 */
.service-card.has-submenu {
    position: relative;
    overflow: visible;
}

.sub-services {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 100;
    padding: 80px 0 0 0;
    overflow: hidden;
}

.sub-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.sub-service-item:last-child {
    border-bottom: none;
}

.sub-service-item:hover {
    background: #f5f5f5;
}

.sub-name {
    font-size: 14px;
    color: #333;
}

.sub-price {
    font-size: 13px;
    color: #ff6b6b;
    font-weight: 500;
}

/* 服务人员 */
.workers {
    padding: 40px 0;
    background: #fff;
}

.workers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.worker-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.worker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.worker-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.worker-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.worker-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.worker-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.worker-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.worker-tag {
    background: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.worker-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

.worker-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 底部固定导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    transition: color 0.3s;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: #e74c3c;
}

.bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 3px;
    font-style: normal;
}

/* 为底部导航栏预留空间 */
body {
    padding-bottom: 60px;
}

/* 桌面端适配 */
@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    
    .header-phone {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .banner {
        height: 450px;
    }
    
    .banner-content h1 {
        font-size: 44px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 25px 15px;
    }
    
    .category-icon {
        font-size: 40px;
    }
    
    .category-card h3 {
        font-size: 15px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .process-steps {
        flex-direction: row;
        justify-content: center;
    }
    
    .process-arrow {
        transform: none;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}
