* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    touch-action: manipulation;
}

button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #F3F0EB;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 1;
}

.app {
    max-width: 750px;
    margin: 0 auto;
    background-color: #F3F0EB;
    min-height: 100vh;
    padding-bottom: 20px;
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #6B9673 0%, #87A88F 100%);
    color: white;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-search {
    flex: 1;
    min-width: 0;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.header-info {
    display: flex;
    flex-direction: column;
}

.greeting {
    font-size: 13px;
    opacity: 0.9;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.notification {
    font-size: 18px;
}

.lang-switch {
    display: flex;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2px;
}

.lang {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang.active {
    background: white;
    color: #6B9673;
}

/* 搜索栏 */
.search-box {
    background: white;
    border-radius: 20px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.search-icon {
    font-size: 16px;
}

.search-text {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 轮播Banner */
.banner-section {
    padding: 20px;
    background: linear-gradient(135deg, #6B9673 0%, #87A88F 100%);
    position: relative;
}

.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.banner {
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: none;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner.active {
    display: block;
    animation: fadeIn 0.5s ease;
    pointer-events: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.banner-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.banner-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.2);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    z-index: 1;
}

.banner-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.banner-title {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.banner-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.banner-btn {
    background: white;
    color: #6B9673;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.banner-btn:hover {
    background: #999;
    color: white;
}

/* 快捷入口 */
.quick-actions {
    background: white;
    margin: 12px 20px;
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
}

.action-text {
    font-size: 13px;
    color: #666;
}

/* 通用Section */
.section {
    background: white;
    margin: 12px 20px;
    border-radius: 16px;
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.section-desc {
    font-size: 13px;
    color: #6B9673;
}

.section-more {
    font-size: 13px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.section-more:hover {
    color: #6B9673;
}

/* 热门服务（金刚区） */
.hot-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hot-service-card {
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hot-service-card:active {
    transform: scale(0.98);
}

.hot-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.hot-title {
    font-size: 17px;
    font-weight: bold;
    color: white;
    margin-bottom: 6px;
}

.hot-price {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.hot-hot-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: white;
}

/* 服务网格 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.service-grid-card {
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    background: #F8F9FA;
    transition: background 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.service-grid-card:active {
    background: #E9ECEF;
}

.service-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.service-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.service-price {
    font-size: 13px;
    color: #E74C3C;
    font-weight: 600;
}

/* 阿姨列表 */
.aunt-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aunt-card {
    background: #F8F9FA;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
    position: relative;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.aunt-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #E9ECEF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.aunt-online {
    position: absolute;
    top: 56px;
    left: 76px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
}

.aunt-online.online {
    background: #4CD964;
}

.aunt-online.offline {
    background: #CCCCCC;
}

.aunt-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #6B9673 0%, #87A88F 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.aunt-info {
    flex: 1;
    min-width: 0;
}

.aunt-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.aunt-rating {
    font-size: 13px;
    color: #FFB800;
    margin-bottom: 8px;
}

.aunt-skill {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.aunt-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat {
    font-size: 12px;
    color: #999;
}

/* 优惠活动 */
.promo-section {
    display: flex;
    gap: 12px;
}

.promo-card {
    flex: 1;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-card.new-user {
    background: linear-gradient(135deg, #FFECEC 0%, #FFF5F5 100%);
}

.promo-card.invite {
    background: linear-gradient(135deg, #ECEFFF 0%, #F5F8FF 100%);
}

.promo-content {
    flex: 1;
}

.promo-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.promo-desc {
    font-size: 12px;
    color: #999;
}

.promo-badge {
    font-size: 28px;
}

/* 预约小贴士 */
.tips-card {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF3D6 100%);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tips-icon {
    font-size: 24px;
}

.tips-text {
    font-size: 14px;
    color: #333;
}

/* 底部安全区 */
.safe-bottom {
    height: calc(20px + env(safe-area-inset-bottom, 0px));
}

/* 响应式 */
@media (max-width: 480px) {
    .hot-services {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 技师选择区域 */
.therapist-section {
    background: white;
    margin: 16px;
    border-radius: 12px;
    padding: 16px;
}

.therapist-section h2 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #333;
}

.therapist-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
}

.therapist-item {
    flex: 0 0 120px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.therapist-item.selected {
    border-color: #4c8d59;
    background: #e8f5ea;
}

.therapist-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B9673, #87A88F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 8px;
    overflow: hidden;
}

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

.therapist-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.therapist-skill {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.therapist-rating {
    font-size: 12px;
    color: #ff9800;
}

/* 服务规格标签 */
.specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.spec-tag {
    padding: 4px 12px;
    background: #e8f5ea;
    color: #4c8d59;
    border-radius: 20px;
    font-size: 12px;
}

/* 位置按钮 */
.location-btn {
    padding: 12px;
    background: #4c8d59;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}

.location-btn:disabled {
    background: #ccc;
}

/* 服务图标 */
.service-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* 分页容器 */
.pagination-container {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pagination-btn {
    padding: 8px 16px;
    border: none;
    background: #f0f0f0;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #e0e0e0;
}

.pagination-btn:disabled {
    background: #f8f8f8;
    color: #ccc;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 4px;
}

.pagination-page {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-page:hover:not(.active) {
    background: #f0f0f0;
}

.pagination-page.active {
    background: #6B9673;
    color: white;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #999;
    font-size: 14px;
}
