/* 主样式文件 */

/* 全局变量 */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #f9f9f9;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --dark-color: #333;
    --light-color: #f0f5ff;
    --gray-color: #888;
    --border-color: #eeeeee;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 页面加载动画 */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(74, 144, 226, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-loading.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* 容器 */
.container {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

/* 头部导航 - 统一风格 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

/* 首页和"我的"页面专用头部样式 */
.header.home-header,
.header.user-header {
    /* 保留首页和用户页面特殊样式 */
}

/* "我的"页面专用头部样式 */
.header.user-header {
    background: linear-gradient(to right, #4a90e2, #51c6cf);
    color: #fff;
    padding: 20px 15px;
    position: relative;
    box-shadow: none;
}

/* 用户页面统计信息 */
.user-stat {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background-color: #fff;
    margin: 10px 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.stat-name {
    font-size: 12px;
    color: var(--gray-color);
}

/* 返回按钮 */
.back-btn {
    font-size: 16px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 页面标题 */
.header h1,
.header-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--dark-color);
    flex: 1;
    text-align: center;
}

/* 头部右侧图标 */
.header-right {
    font-size: 16px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right i {
    margin-left: 15px;
}

/* 保留原有的logo样式 */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

/* 导航按钮样式修改为客服图标 */
.nav-toggle {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
}

.nav-toggle i {
    display: block;
    font-size: 20px;
}

/* 移除旧的汉堡按钮样式 */
.nav-toggle span {
    display: inline-block;
    margin-left: 5px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

/* 轮播图 */
.swiper-container {
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* 标题样式 */
h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    padding: 15px;
    margin: 0;
}

/* 服务分类 */
.service-category {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px 0;
}

.service-category h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 0 15px;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0 15px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 24px;
}

.category-name {
    font-size: 14px;
    text-align: center;
}

/* 推荐技师 */
.technician-recommend {
    background-color: #fff;
    padding: 15px 0;
    margin-bottom: 20px;
}

.technician-recommend h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 0 15px;
}

.technician-list {
    padding: 0 15px;
}

.technician-item {
    display: flex;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow);
    position: relative;
    padding-bottom: 50px;
}

.technician-avatar {
    width: 120px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.technician-level {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 0 0 8px 0;
    font-weight: bold;
}

.technician-info {
    flex: 1;
    position: relative;
    padding-bottom: 10px;
}

.technician-info h3 {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.tech-age {
    font-size: 13px;
    color: var(--gray-color);
    margin-left: 8px;
    font-weight: normal;
}

.technician-desc {
    font-size: 13px;
    color: var(--gray-color);
    margin-bottom: 10px;
    line-height: 1.5;
}

.technician-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.technician-tags span {
    background: var(--light-color);
    color: var(--primary-color);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-right: 8px;
    margin-bottom: 5px;
}

.technician-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.rating-stars {
    color: var(--warning-color);
    font-size: 14px;
    margin-right: 5px;
}

.rating-count {
    color: var(--warning-color);
    font-size: 14px;
    font-weight: bold;
}

.technician-price {
    color: #ff5252;
    font-size: 16px;
    font-weight: bold;
    position: static;
    margin-bottom: 0;
}

.btn-order {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    position: static;
}

.btn-more {
    display: block;
    text-align: center;
    padding: 12px 0;
    color: var(--primary-color);
    font-size: 14px;
}

/* 服务流程 */
.service-process {
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.process-list {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px 20px;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.process-icon {
    width: 50px;
    height: 50px;
    background-color: #f0f9ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.process-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.process-name {
    font-size: 13px;
    color: var(--dark-color);
    text-align: center;
}

.process-arrow {
    color: var(--gray-color);
    margin: 0 5px;
    font-size: 16px;
}

/* 用户评价 */
.user-reviews {
    background-color: #fff;
    margin-bottom: 15px;
    padding: 15px 0;
}

.reviews-list {
    padding: 0 15px;
}

.review-item {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    background-color: #f9fbff;
    position: relative;
}

.review-user {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.review-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.review-user span {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-color);
}

.review-rating {
    color: var(--warning-color);
    margin-bottom: 10px;
    font-size: 14px;
}

.review-content {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--dark-color);
    padding: 0 5px;
}

.review-time {
    font-size: 12px;
    color: var(--gray-color);
    text-align: right;
}

.review-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray-color);
}

.review-tech {
    color: var(--primary-color);
}

.no-reviews {
    text-align: center;
    padding: 30px 0;
    color: var(--gray-color);
}

.no-reviews i {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-reviews p {
    font-size: 14px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 20px;
}

/* 底部导航 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.footer-nav {
    display: flex;
    height: 55px;
    max-width: 750px;
    margin: 0 auto;
}

.footer-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--gray-color);
}

.footer-nav-item.active {
    color: var(--primary-color);
}

.footer-nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.footer-nav-item span {
    font-size: 12px;
}

/* 常用按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* 响应式调整 - 小屏幕手机 */
@media screen and (max-width: 320px) {
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon i {
        font-size: 24px;
    }
    
    .process-icon {
        width: 40px;
        height: 40px;
    }
    
    .process-icon i {
        font-size: 20px;
    }
    
    .process-name {
        font-size: 12px;
    }
}

/* 退出登录按钮 */
.logout-btn {
    display: block;
    width: 90%;
    margin: 20px auto;
    padding: 15px 0;
    text-align: center;
    background-color: #fff;
    color: #ff6b6b;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid #ffebeb;
}

.logout-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: #ffebeb;
}

/* 未登录样式 */

/* 通用输入框美化样式 */
.styled-input {
    position: relative;
    margin-bottom: 15px;
    background-color: #f7f9fc;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    border: 1px solid transparent;
}

.styled-input:focus-within {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
    border: 1px solid var(--primary-color);
}

.styled-input i {
    width: 50px;
    text-align: center;
    font-size: 18px;
    color: var(--gray-color);
    flex-shrink: 0;
}

.styled-input input,
.styled-input select,
.styled-input textarea {
    width: 100%;
    padding: 15px 15px 15px 0;
    font-size: 16px;
    border: none;
    background-color: transparent;
    transition: all 0.3s;
}

.styled-input input:focus,
.styled-input select:focus,
.styled-input textarea:focus {
    outline: none;
}

.styled-input input::placeholder,
.styled-input select::placeholder,
.styled-input textarea::placeholder {
    color: #bbb;
}

.styled-input.no-icon input,
.styled-input.no-icon select,
.styled-input.no-icon textarea {
    padding-left: 15px;
}

/* 美化按钮样式 */
.styled-btn {
    display: block;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.styled-btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.styled-btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.25);
}

/* 技师卡片新布局 */
.tech-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tech-header h3 {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.tech-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
}

.technician-info {
    flex: 1;
    position: relative;
    padding-bottom: 10px;
}

.technician-info h3 {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.technician-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.technician-price {
    color: #ff5252;
    font-size: 16px;
    font-weight: bold;
    position: static;
    margin-bottom: 0;
}

.btn-order {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    position: static;
} 