body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}

.top-bar {
    background: linear-gradient(#00C853 70%,#f7f8fa 30%);
    color: white;
    padding: 12px 0 0;
    align-items: center;
    justify-content: space-between;
}

.location-section {
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 0 0 12px auto;
}

.location-section i {
    font-size: 14px;
    margin-right: 5px;
    color: white;
}

.top-bar-menu i {
    font-size: 20px;
}

.search-bar-container {
    background-color: #fff; /* Green color from design */
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-radius: 30px;
}

.city-selector {
    background-color: rgba(255, 255, 255, 0.2);
    color: #000;
    padding: 8px 12px;
    border-radius: 15px;
    margin-right: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.city-selector i {
    margin-left: 5px;
}

.search-input-wrapper {
    flex-grow: 1;
    background-color: #f5f6f8;
    border-radius: 15px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    color: #999;
    margin-right: 8px;
}

.search-input-wrapper input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 14px;
    background: #f5f6f8;
}

.filter-tabs {
    display: flex;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    white-space: nowrap;
}

.filter-tab {
    padding: 8px 15px;
    margin-right: 10px;
    font-size: 14px;
    color: #333;
    border-radius: 15px;
    background-color: #fff;
}

.filter-tab.active {
    font-weight: bold;
    color: #fff;
    background-color: #00C853;
}

/* 筛选弹出层样式 */
.filter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

.close-btn i {
    font-size: 16px;
    color: #666;
}

.filter-popup.active {
    display: flex;
}

.filter-section {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-option {
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    border: none;
}

.filter-option.active {
    background-color: #e6f7f0;
    color: #00C853;
}

.filter-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background-color: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 10px;
}

.filter-actions {
    display: flex;
    padding: 15px 20px;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    gap: 15px;
}

.filter-action-btn {
    flex: 1;
    padding: 12px 0;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: none;
}

.reset-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.confirm-btn {
    background-color: #00C853;
    color: #fff;
}

.more-filters {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    margin-left: auto; /* Pushes to the right */
    padding: 8px 0;
}

/* 预约弹窗样式 */
.booking-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 修改为100vh，覆盖整个视口高度 */
    z-index: 1000;
    display: none; /* 默认不显示，通过JS控制显示 */
}

.booking-popup-overlay {
    position: fixed; /* 修改为fixed，相对于视口定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    cursor: pointer; /* 添加指针样式，提示可点击 */
}

.booking-popup-content {
    position: absolute;
    background-color: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 1002;
    max-height: 70vh;
    overflow-y: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.booking-popup-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    position: relative;
}

.booking-popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.booking-close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

.booking-popup-body {
    padding: 15px 20px;
    overflow-y: auto;
    flex: 1;
}

.technician-brief {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fff;
}

.technician-brief img {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    margin-right: 15px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

.technician-brief-info {
    flex-grow: 1;
}

.technician-brief-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.technician-brief-stats {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.technician-brief-stats .certification {
    color: #00C853;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.technician-brief-stats .certification i {
    margin-right: 3px;
}

.technician-brief-stats .rating {
    color: #FFA000;
    margin-right: 10px;
}

.service-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    background-color: #fff;
    border-radius: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.service-item-left {
    margin-right: 12px;
    width: 83px;
    height: 83px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.service-item-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 1px;
}

.service-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.service-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #ff4d4f;
}

.service-item-duration {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
}

.service-item.last-item {
    border-bottom: none;
    margin-bottom: 0;
}

.service-item-duration i {
    margin-right: 4px;
    color: #4cd964;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background-color: #4cd964;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 1;
    padding: 0;
    padding-bottom: 4px;
}

.minus-btn {
    background-color: #f5f5f5;
    color: #333;
    display: none; /* 默认隐藏减号按钮 */
}

.quantity-num {
    margin: 0 8px;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
    display: none; /* 默认隐藏数量显示 */
}

/* 底部结算栏样式 */
.booking-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #f0f0f0;
    z-index: 1003;
    margin-top: auto;
    border-radius: 0 0 16px 16px;
}

.booking-total {
    font-size: 14px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.total-line {
    display: flex;
    align-items: center;
    width: 100%;
}

.total-price {
    font-size: 18px;
    font-weight: bold;
    color: #ff4d4f;
    margin-left: 5px;
}

.order-details {
    display: none; /* 隐藏订单详情 */
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    max-height: 60px;
    overflow-y: auto;
    width: 100%;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1004;
    cursor: pointer;
}

.popup-close-btn i {
    font-size: 16px;
    color: #666;
}

.submit-order-btn {
    background-color: #4cd964;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.more-filters i {
    margin-left: 5px;
}

.technician-list-area {
    padding: 0 10px;
}

.technician-card-new {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    display: flex;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.technician-avatar-new {
    width: 95px;
    height:95px;
    border-radius: 60px;
    margin-right: 15px;
    position: relative;
    overflow: visible; /* Changed to visible to show service label */
}

.service-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #eaa309;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.technician-avatar-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.technician-badge-new {
    position: absolute;
    top: -5px;
    left: -5px;
    background-color: red;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 5px;
    font-weight: bold;
    transform: rotate(-15deg);
}

.technician-badge-new.gold {
    background-color: gold;
    color: #333;
    padding: 5px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    bottom: 0;
    right: 0;
    top: auto;
    left: auto;
    transform: none;
}

.technician-info-new {
    flex-grow: 1;
}

.technician-header-new {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.technician-name-new {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-right: 8px;
}

.skill-tag {
    background-color: #00C853; /* Light green */
    color: #fff; /* Darker green */
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.availability-time {
    font-size: 12px;
    color: #00796B; /* Darker green */
    margin-left: auto; /* Pushes to the right */
    font-size:13px;
    padding: 0 12px;
    background: #e8f9ef;
}

.technician-stats {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 60px;
}

.technician-stats .rating {
    color: #FFA000; /* Orange for rating */
    margin-right: 3px;
}
.technician-stats .rating i {
    margin-right: 2px;
}

.technician-stats span {
    margin-right: 10px;
}

.technician-actions-new {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.technician-actions-new span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.technician-actions-new i {
    margin-right: 4px;
}

.book-button-new {
    background-color: #00C853; /* Green color from design */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    bottom: 15px;
}

.distance-info {
    font-size: 13px;
    color: #00796B; /* Darker green */
    position: absolute;
    right: 20px;
    top: 60px; /* Adjust as needed */
}