/* 公共样式文件 */
:root {
    --primary-color: #ff6b35;
    --primary-light: #ff8c5a;
    --primary-gradient: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
    --bg-color: #f5f5f5;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

* {
    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;
    background-color: var(--bg-color);
    padding-bottom: 70px;
    max-width: 750px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 页面容器 */
.page {
    display: none;
    min-height: calc(100vh - 70px);
}
.page.active {
    display: block;
}

/* 顶部位置栏 */
.location-bar {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.location-bar i {
    font-size: 14px;
}

/* Banner轮播 */
.banner-section {
    position: relative;
    overflow: hidden;
}
.banner-carousel {
    display: flex;
    transition: transform 0.5s ease;
}
.banner-item {
    min-width: 100%;
    position: relative;
}
.banner-item img {
    width: 100%;
    height: auto;
    display: block;
}
.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.banner-indicators span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.banner-indicators span.active {
    background: white;
}

/* 保障标签 */
.guarantee-bar {
    display: flex;
    justify-content: space-around;
    padding: 12px 8px;
    background: white;
    border-bottom: 1px solid #eee;
}
.guarantee-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}
.guarantee-item i {
    color: var(--primary-color);
}

/* 快捷入口 */
.quick-entry {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
    background: white;
    margin-bottom: 10px;
}
.quick-entry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.quick-entry-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}
.quick-entry-text {
    font-size: 12px;
    color: #333;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: white;
    gap: 10px;
    margin-bottom: 10px;
}
.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px 16px;
    gap: 8px;
}
.search-input input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
}
.search-input i {
    color: #999;
}
.search-actions {
    display: flex;
    gap: 10px;
}
.search-actions i {
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
}

/* 技师卡片网格 */
.technician-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}
.technician-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.technician-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}
.technician-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.technician-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #4a90d9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}
.technician-rating {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: bold;
}
.technician-rating i {
    color: var(--primary-color);
}
.technician-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    color: #999;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 4px;
}
.technician-info {
    padding: 12px;
}
.technician-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.technician-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.technician-orders {
    font-size: 12px;
    color: #999;
}
.technician-distance {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}
.book-btn {
    display: block;
    width: 100%;
    padding: 6px 0;
    text-align: center;
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.book-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 服务页面 */
.page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 16px;
    font-size: 20px;
    font-weight: bold;
}
.page-header::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    margin-top: 8px;
    border-radius: 2px;
}

.service-list {
    padding: 10px;
}
.service-card {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--card-shadow);
    gap: 16px;
}
.service-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}
.service-tags {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
.service-sold {
    font-size: 12px;
    color: #999;
    margin-bottom: auto;
}
.service-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.service-price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}
.service-price::before {
    content: '¥';
    font-size: 14px;
}
.service-price-old {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}
.service-book-btn {
    padding: 6px 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* 订单页面 */
.order-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}
.order-tab {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
}
.order-tab.active {
    color: var(--primary-color);
    font-weight: bold;
}
.order-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}
.empty-state img {
    width: 200px;
    margin-bottom: 20px;
}
.empty-state-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    position: relative;
}
.empty-box {
    width: 120px;
    height: 100px;
    border: 3px solid #ddd;
    border-top: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: white;
}
.empty-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -3px;
    right: -3px;
    height: 20px;
    border: 3px solid #ddd;
    border-bottom: none;
    background: #f5f5f5;
}
.empty-face {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.empty-eyes {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}
.empty-eye {
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}
.empty-mouth {
    width: 20px;
    height: 10px;
    border: 2px solid #333;
    border-top: none;
    border-radius: 0 0 10px 10px;
}
.empty-cloud {
    position: absolute;
    top: 0;
    font-size: 40px;
    color: #eee;
}
.empty-text {
    color: #999;
    font-size: 14px;
}

/* 订单列表 */
.order-list {
    padding: 10px;
}
.order-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.order-no {
    font-size: 12px;
    color: #999;
}
.order-status {
    font-size: 12px;
    font-weight: bold;
}
.status-pending { color: var(--primary-color); }
.status-completed { color: #4caf50; }
.status-cancelled { color: #999; }
.order-body {
    display: flex;
    padding: 16px;
    gap: 12px;
}
.order-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.order-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.order-info {
    flex: 1;
}
.order-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}
.order-tech, .order-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.order-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    align-self: flex-end;
}
.order-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #f5f5f5;
}
.order-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}
.btn-cancel {
    background: white;
    border: 1px solid #ddd;
    color: #666;
}
.btn-contact {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

/* 我的页面 */
.profile-header {
    background: linear-gradient(180deg, #3a3a3a 0%, #4a4a4a 100%);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-info {
    flex: 1;
}
.profile-name {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}
.profile-phone {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}
.profile-actions {
    display: flex;
    gap: 12px;
}
.profile-actions i {
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.vip-card {
    margin: -20px 16px 16px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}
.vip-info h3 {
    color: #8B4513;
    font-size: 18px;
    margin-bottom: 4px;
}
.vip-info p {
    color: #a0522d;
    font-size: 12px;
}
.vip-btn {
    padding: 8px 20px;
    background: white;
    color: #8B4513;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.menu-section {
    background: white;
    margin: 0 16px 16px;
    border-radius: 12px;
    padding: 16px;
}
.menu-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
}
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.menu-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.menu-icon.yellow { background: #fff3e0; color: #ff9800; }
.menu-icon.red { background: #ffebee; color: #f44336; }
.menu-icon.pink { background: #fce4ec; color: #e91e63; }
.menu-icon.green { background: #e8f5e9; color: #4caf50; }
.menu-icon.blue { background: #e3f2fd; color: #2196f3; }
.menu-icon.purple { background: #f3e5f5; color: #9c27b0; }
.menu-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.promo-banner {
    margin: 0 16px 16px;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.promo-text h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 4px;
}
.promo-text h3 span {
    color: #ffe066;
}
.promo-text p {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
}
.promo-img {
    font-size: 50px;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    background: white;
    display: flex;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}
.nav-item.active {
    color: var(--primary-color);
}
.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}
.nav-item span {
    font-size: 11px;
}

