/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #E5E5E5;
    color: #333;
    line-height: 1.6;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* 容器布局 */
.container {
    width: 375px;
    min-height: 100vh;
    background-color: #FAFAFA;
    position: relative;
    overflow-x: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background-color: #fff; /* 白色背景 */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 30px 0;
    position: fixed;
    height: 100%;
    z-index: 10;
}

.logo {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.logo h2 {
    color: #4a6fa5; /* 蓝色文字 */
    font-size: 28px;
    margin-bottom: 5px;
}

.logo p {
    color: #888; /* 灰色文字 */
    font-size: 14px;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar nav ul li:hover {
    background-color: #f5f5f5; /* 浅灰色背景 */
}

.sidebar nav ul li.active {
    background-color: #f0f8ff; /* 浅蓝色背景 */
    border-left-color: #4a6fa5; /* 蓝色边框 */
    color: #4a6fa5; /* 蓝色文字 */
}

.sidebar nav ul li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 主内容区 */
.main-content {
    width: 375px;
    margin-top: 60px;
    background-color: #FAFAFA;
    height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.content-wrapper {
    width: 375px;
    position: relative;
}

.content-section {
    width: 375px;
    position: relative;
    display: none;
    padding: 10px;
    box-sizing: border-box;
    background-color: #FAFAFA;
}

.content-section.active {
    display: block;
}

/* 顶部标签栏样式 */
.top-tabs {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    padding: 0.25rem 1rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    box-sizing: border-box;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 32px;
    color: #4a6fa5; /* 蓝色文字 */
    margin-bottom: 10px;
}

.header p {
    color: #666; /* 灰色文字 */
    font-size: 16px;
}


/* -------------------------------------------待响应订单模块 */

/* 头部区域 */
.header.with-filter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 0 10px;
}

.header-title h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-title p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.badge {
    background-color: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.filter-controls {
    width: 100%;
    margin-top: 10px;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    margin-bottom: 10px;
}

/* 订单卡片列表 */
.order-list {
    padding: 0 10px;
}

.order-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-alert {
    background-color: #FFF5F5;
    color: #e53e3e;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-header {
    margin-bottom: 12px;
}

.pet-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.pet-avatar {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    border: 2px solid #4a6fa5;
}

.pet-meta h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.pet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background-color: #F0F7FF;
    color: #4a6fa5;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-status {
    text-align: right;
}

.status-badge {
    background-color: #ff6b6b; /* 红色背景 */
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.timer {
    color: #666; /* 灰色文字 */
    font-size: 14px;
}

.timer i {
    margin-right: 5px;
}

/* 服务地址、服务时间、费用明细、特殊要求容器 */
.service-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

/* 每个模块的通用样式 */
.service-address,
.service-time,
.detail-item {
    background-color: #F8FAFC;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* 悬停效果 */
.service-address:hover,
.service-time:hover,
.detail-item:hover {
    transform: translateY(-5px); /* 轻微上移 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 图标 */
.service-address i,
.service-time i,
.detail-item i {
    color: #4a6fa5;
    font-size: 16px;
    margin-top: 2px;
}

/* 标题 */
.service-address h4,
.service-time h4,
.detail-item h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

/* 文本 */
.service-address p,
.service-time p,
.detail-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* 服务时间的时间文本（红色加粗） */
.service-time .time-text {
    font-weight: bold;
    color: #ff6f61; /* 更柔和的红色 */
    font-size: 16px;
}

/* 费用明细 */
.price-breakdown {
    width: 100%;
}

.price-breakdown p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.price-breakdown .total-price {
    color: #e53e3e;
    font-weight: 600;
    font-size: 14px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* 特殊要求列表 */
.requirements {
    list-style-type: none; /* 去掉默认列表符号 */
    padding-left: 0;
}

.requirements li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.requirements li::before {
    content: "•"; /* 自定义列表符号 */
    color: #4a6fa5;
    font-size: 16px;
    position: absolute;
    left: 0;
    top: 0;
}

/* 响应式设计：小屏幕下堆叠显示 */
@media (max-width: 768px) {
    .service-address,
    .service-time,
    .detail-item {
        flex: 1 1 100%; /* 每行一个模块 */
    }
}
/* 用户信息卡片 */
.user-card {
    background-color: #f5f5f5; /* 浅灰色背景 */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

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

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #4a6fa5; /* 蓝色边框 */
}

.user-meta h4 {
    font-size: 16px;
    color: #4a6fa5; /* 蓝色文字 */
    margin-bottom: 5px;
}

.user-rating {
    color: #ffcc80; /* 橙色文字 */
}

.user-details {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.detail-col p {
    color: #666; /* 灰色文字 */
    font-size: 14px;
}

.detail-col i {
    margin-right: 5px;
    color: #4a6fa5; /* 蓝色文字 */
}

/* 操作按钮组 */
.action-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.accept-btn,
.reject-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.accept-btn {
    background-color: #4a6fa5;
    color: white;
}

.reject-btn {
    background-color: #F8FAFC;
    color: #666;
    border: 1px solid #eee;
}

.secondary-actions {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}

.icon-btn {
    color: #666;
    font-size: 16px;
    padding: 8px;
}

/* 聊天与沟通模块 */
.communication-panel {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-header {
    padding: 12px;
    background-color: #F8FAFC;
    border-bottom: 1px solid #eee;
}

.chat-header.with-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.online-status {
    color: #81c784; /* 绿色文字 */
    font-size: 14px;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.chat-history {
    padding: 12px;
    max-height: 300px;
}

.message {
    margin-bottom: 12px;
}

.message.received {
    text-align: left;
}

.message.sent {
    text-align: right;
}

.msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.msg-content {
    padding: 10px;
    border-radius: 8px;
    max-width: 85%;
}

.message.received .msg-content {
    background-color: #F0F7FF;
}

.message.sent .msg-content {
    background-color: #4a6fa5;
    color: white;
    margin-left: auto;
}

.msg-actions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.react-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #666; /* 灰色文字 */
    cursor: pointer;
}

.edit-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #4a6fa5; /* 蓝色文字 */
    cursor: pointer;
}

.chat-input-area {
    padding: 12px;
    background-color: #F8FAFC;
    border-top: 1px solid #eee;
}

.input-tools {
    margin-bottom: 8px;
}

textarea {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
}

.quick-replies {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.quick-reply {
    white-space: nowrap;
    background-color: #F0F7FF;
    color: #4a6fa5;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
}

.send-btn {
    background-color: #4a6fa5; /* 蓝色背景 */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 订单状态跟踪 */
.order-timeline {
    margin-top: 20px;
}

.timeline-steps {
    display: flex;
    gap: 20px;
}

.step {
    flex: 1;
    text-align: center;
}

.step-icon {
    font-size: 24px;
    color: #4a6fa5; /* 蓝色文字 */
    margin-bottom: 10px;
}

.step-content h5 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.step-content p {
    color: #666; /* 灰色文字 */
    font-size: 14px;
}

.step.active .step-icon {
    color: #81c784; /* 绿色文字 */
}
/* ====================== 全局样式 ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* ====================== 进行中订单模块 ====================== */
.content-section[data-type="in-progress"] {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 头部区域 */
.content-section[data-type="in-progress"] .header {
    margin-bottom: 20px;
}

.content-section[data-type="in-progress"] .header h1 {
    font-size: 24px;
    color: #4a6fa5;
    margin-bottom: 5px;
}

.content-section[data-type="in-progress"] .header p {
    font-size: 14px;
    color: #666;
}

/* 订单详情 */
.order-details {
    margin-bottom: 20px;
}

/* 宠物信息 */
.pet-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.pet-info .pet-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 15px;
}

.pet-info .pet-meta h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
}

.pet-info .pet-meta .pet-age {
    font-size: 14px;
    color: #666;
}

.pet-info .pet-meta .pet-tags {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.pet-info .pet-meta .pet-tags .tag {
    font-size: 12px;
    padding: 4px 8px;
    background-color: #f0f8ff;
    border-radius: 12px;
    color: #4a6fa5;
}

/* 订单进度 */
.order-progress {
    margin-bottom: 15px;
}

.order-progress .progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.order-progress .progress-bar .progress {
    height: 100%;
    background-color: #4a6fa5;
    border-radius: 4px;
}

.order-progress p {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 订单状态 */
.order-status {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.order-status .status-badge {
    font-size: 14px;
    padding: 4px 8px;
    background-color: #f0f8ff;
    border-radius: 12px;
    color: #4a6fa5;
}

.order-status .timer {
    font-size: 14px;
    color: #666;
}

/* 服务地址 */
.service-address {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.service-address i {
    font-size: 18px;
    color: #4a6fa5;
}

.service-address h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.service-address p {
    font-size: 14px;
    color: #666;
}

/* 服务时间 */
.service-time {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.service-time i {
    font-size: 18px;
    color: #4a6fa5;
}

.service-time h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.service-time p {
    font-size: 14px;
    color: #666;
}

/* 操作按钮组 */
.action-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-group .complete-btn,
.action-group .cancel-btn {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-group .complete-btn {
    background-color: #4a6fa5;
    color: #fff;
}

.action-group .complete-btn:hover {
    background-color: #3a5a85;
}

.action-group .cancel-btn {
    background-color: #f0f0f0;
    color: #666;
}

.action-group .cancel-btn:hover {
    background-color: #e0e0e0;
}

/* 聊天框 */
.chat-box {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

/* 聊天头部 */
.chat-box .chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}

.chat-box .chat-header .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-box .chat-header .user-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 2px;
}

.chat-box .chat-header .user-info .online-status {
    font-size: 12px;
    color: #28a745;
}

.chat-box .chat-header .user-info p {
    font-size: 12px;
    color: #666;
}

.chat-box .chat-header .chat-actions {
    display: flex;
    gap: 10px;
}

.chat-box .chat-header .chat-actions .icon-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chat-box .chat-header .chat-actions .icon-btn:hover {
    color: #4a6fa5;
}

/* 聊天记录 */
.chat-box .chat-messages {
    padding: 10px;
    background-color: #fff;
    max-height: 300px;
    overflow-y: auto;
}

.chat-box .chat-messages .message {
    margin-bottom: 10px;
}

.chat-box .chat-messages .message.received .msg-content {
    background-color: #f0f8ff;
    color: #333;
}

.chat-box .chat-messages .message.sent .msg-content {
    background-color: #4a6fa5;
    color: #fff;
}

.chat-box .chat-messages .message .msg-content {
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 70%;
    position: relative;
}

.chat-box .chat-messages .message .msg-content p {
    font-size: 14px;
    margin: 0;
}

.chat-box .chat-messages .message .msg-header {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.chat-box .chat-messages .message .msg-actions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.chat-box .chat-messages .message .msg-actions .react-btn,
.chat-box .chat-messages .message .msg-actions .edit-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chat-box .chat-messages .message .msg-actions .react-btn:hover,
.chat-box .chat-messages .message .msg-actions .edit-btn:hover {
    color: #4a6fa5;
}

/* 消息输入 */
.chat-box .chat-input {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #f0f0f0;
}

.chat-box .chat-input .input-tools {
    display: flex;
    gap: 10px;
    margin-right: 10px;
}

.chat-box .chat-input .input-tools .icon-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chat-box .chat-input .input-tools .icon-btn:hover {
    color: #4a6fa5;
}

.chat-box .chat-input textarea {
    flex: 1;
    padding: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
    resize: none;
}

.chat-box .chat-input .send-btn {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #4a6fa5;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-box .chat-input .send-btn:hover {
    background-color: #3a5a85;
}


/* ====================== 已完成订单模块 ====================== */

/* 模块容器 */
.content-section[data-type="completed"] {
    padding: 20px;
    background-color: #fff; /* 白色背景 */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

/* 头部区域 */
.content-section[data-type="completed"] .header {
    margin-bottom: 20px;
}

.content-section[data-type="completed"] .header h1 {
    font-size: 24px;
    color: #4a6fa5; /* 主色调蓝色 */
    margin-bottom: 5px;
}

.content-section[data-type="completed"] .header p {
    font-size: 14px;
    color: #666; /* 灰色副标题 */
}

/* 收入统计 */
.income-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px; /* 间距 */
}

.income-stats .stat-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background-color: #f0f8ff; /* 浅蓝色背景 */
    border-radius: 8px;
    transition: background-color 0.3s ease; /* 悬停效果 */
}

.income-stats .stat-item:hover {
    background-color: #e0f0ff; /* 悬停时背景色变深 */
}

.income-stats .stat-item span {
    display: block;
    font-size: 14px;
    color: #666; /* 灰色文字 */
}

.income-stats .stat-item .stat-value {
    font-size: 18px;
    color: #4a6fa5; /* 主色调蓝色 */
    font-weight: bold;
}

/* 订单筛选 */
.order-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* 支持换行 */
}

.order-filter .filter-item {
    flex: 1;
    min-width: 200px; /* 最小宽度 */
}

.order-filter label {
    font-size: 14px;
    color: #666; /* 灰色文字 */
    margin-right: 10px;
}

.order-filter input,
.order-filter select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd; /* 浅灰色边框 */
    border-radius: 4px;
    font-size: 14px;
    color: #333; /* 黑色文字 */
}

/* 历史订单 */
.history-orders {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 间距 */
}

.history-orders .order-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9; /* 浅灰色背景 */
    border-radius: 8px;
    border: 1px solid #f0f0f0; /* 浅灰色边框 */
    transition: box-shadow 0.3s ease; /* 悬停效果 */
}

.history-orders .order-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 悬停时阴影 */
}

.history-orders .order-item .pet-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.history-orders .order-item .order-meta {
    flex: 1;
}

.history-orders .order-item .order-meta h3 {
    font-size: 16px;
    color: #333; /* 黑色标题 */
    margin-bottom: 5px;
}

.history-orders .order-item .order-meta p {
    font-size: 14px;
    color: #666; /* 灰色文字 */
    margin-bottom: 5px;
}

/* 客户评分 */
.order-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.order-rating .stars {
    color: #ffc107; /* 金色星星 */
}

.order-rating .rating-value {
    font-size: 14px;
    color: #666; /* 灰色文字 */
}

/* 订单操作按钮 */
.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.order-actions button {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* 悬停效果 */
}

.order-actions .details-btn {
    background-color: #4a6fa5; /* 蓝色背景 */
    color: #fff; /* 白色文字 */
}

.order-actions .details-btn:hover {
    background-color: #3a5a85; /* 悬停时背景色变深 */
}

.order-actions .review-btn {
    background-color: #ffc107; /* 金色背景 */
    color: #fff; /* 白色文字 */
}

.order-actions .review-btn:hover {
    background-color: #e0a800; /* 悬停时背景色变深 */
}

.order-actions .share-btn {
    background-color: #81c784; /* 绿色背景 */
    color: #fff; /* 白色文字 */
}

.order-actions .share-btn:hover {
    background-color: #66bb6a; /* 悬停时背景色变深 */
}

/* ====================== 个人档案模块 ====================== */

/* 模块容器 */
.content-section[data-type="profile"] {
    padding: 20px;
    background-color: #fff; /* 白色背景 */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

/* 头部区域 */
.content-section[data-type="profile"] .header {
    margin-bottom: 20px;
}

.content-section[data-type="profile"] .header h1 {
    font-size: 24px;
    color: #4a6fa5; /* 主色调蓝色 */
    margin-bottom: 5px;
}

.content-section[data-type="profile"] .header p {
    font-size: 14px;
    color: #666; /* 灰色副标题 */
}

/* 档案详情 */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 间距 */
}

/* 头像和基本信息 */
.profile-header {
    text-align: center;
}

.profile-header .profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.profile-header h3 {
    font-size: 20px;
    color: #333; /* 黑色标题 */
    margin-bottom: 5px;
}

.profile-header p {
    font-size: 14px;
    color: #666; /* 灰色文字 */
    margin-bottom: 10px;
}

.profile-header .edit-profile-btn {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #4a6fa5; /* 蓝色背景 */
    color: #fff; /* 白色文字 */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* 悬停效果 */
}

.profile-header .edit-profile-btn:hover {
    background-color: #3a5a85; /* 悬停时背景色变深 */
}

/* 详细信息 */
.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 自适应布局 */
    gap: 15px; /* 间距 */
}

.profile-info .info-item {
    padding: 10px;
    background-color: #f0f8ff; /* 浅蓝色背景 */
    border-radius: 8px;
}

.profile-info .info-item span {
    display: block;
    font-size: 14px;
    color: #666; /* 灰色文字 */
}

.profile-info .info-item span:first-child {
    font-weight: bold;
    color: #333; /* 黑色标题 */
}

/* 统计信息 */
.profile-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* 间距 */
}

.profile-stats .stat-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background-color: #f0f8ff; /* 浅蓝色背景 */
    border-radius: 8px;
}

.profile-stats .stat-item span {
    display: block;
    font-size: 14px;
    color: #666; /* 灰色文字 */
}

.profile-stats .stat-item .stat-value {
    font-size: 18px;
    color: #4a6fa5; /* 主色调蓝色 */
    font-weight: bold;
}

/* 操作按钮 */
.profile-actions {
    display: flex;
    justify-content: center;
    gap: 10px; /* 间距 */
}

.profile-actions button {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* 悬停效果 */
}

.profile-actions .certificate-btn {
    background-color: #81c784; /* 绿色背景 */
    color: #fff; /* 白色文字 */
}

.profile-actions .certificate-btn:hover {
    background-color: #66bb6a; /* 悬停时背景色变深 */
}

.profile-actions .share-profile-btn {
    background-color: #4a6fa5; /* 蓝色背景 */
    color: #fff; /* 白色文字 */
}

.profile-actions .share-profile-btn:hover {
    background-color: #3a5a85; /* 悬停时背景色变深 */
}

.profile-actions .contact-btn {
    background-color: #ffc107; /* 金色背景 */
    color: #fff; /* 白色文字 */
}

.profile-actions .contact-btn:hover {
    background-color: #e0a800; /* 悬停时背景色变深 */
}

/* 评价展示 */
.profile-reviews {
    margin-top: 20px;
}

.profile-reviews h4 {
    font-size: 18px;
    color: #333; /* 黑色标题 */
    margin-bottom: 15px;
}

.profile-reviews .review-item {
    padding: 15px;
    background-color: #f9f9f9; /* 浅灰色背景 */
    border-radius: 8px;
    margin-bottom: 10px;
}

.profile-reviews .review-item .review-header {
    display: flex;
    align-items: center;
    gap: 10px; /* 间距 */
    margin-bottom: 10px;
}

.profile-reviews .review-item .review-header .review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.profile-reviews .review-item .review-header .review-meta {
    flex: 1;
}

.profile-reviews .review-item .review-header .review-meta .review-user {
    font-size: 14px;
    color: #333; /* 黑色文字 */
}

.profile-reviews .review-item .review-header .review-meta .review-stars {
    color: #ffc107; /* 金色星星 */
}

.profile-reviews .review-item .review-content {
    font-size: 14px;
    color: #666; /* 灰色文字 */
}
.content-section {
    display: none; /* 默认隐藏所有模块 */
}

.content-section.active {
    display: block; /* 显示当前激活的模块 */
}
/* 完善个人信息弹窗 */
.profile-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    z-index: 1000; /* 确保在最上层 */
    justify-content: center;
    align-items: center;
}

.profile-modal .modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* 弹窗标题 */
.profile-modal .modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-modal .modal-header h2 {
    font-size: 24px;
    color: #4a6fa5;
    margin-bottom: 10px;
}

.profile-modal .modal-header p {
    font-size: 14px;
    color: #666;
}

/* 表单输入组 */
.profile-modal .input-group {
    margin-bottom: 20px;
}

.profile-modal .input-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.profile-modal .input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.profile-modal .input-group input:focus {
    border-color: #4a6fa5;
    outline: none;
}

/* 文件输入样式 */
.profile-modal .input-group input[type="file"] {
    padding: 8px;
}

/* 提交按钮 */
.profile-modal .btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #4a6fa5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-modal .btn-submit:hover {
    background-color: #3a5a85;
}

/* 关闭按钮 */
.profile-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.profile-modal .close-btn:hover {
    color: #333;
}
 html {
     background-color: #E5E5E5;
     width: 100%;
     height: 100%;
     display: flex;
     justify-content: center;
 }

body {
    width: 375px;
    margin: 0;
    background-color: #FAFAFA;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 375px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.main-content {
    width: 375px;
    margin-top: 60px;
    position: relative;
}

.content-wrapper {
    width: 375px;
    position: relative;
}

.content-section {
    width: 375px;
    position: relative;
    display: none;
    padding: 10px;
    box-sizing: border-box;
}

.content-section.active {
    display: block;
}

/* 顶部标签栏样式 */
.top-tabs {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    max-width: 375px;
    margin: 0 auto;
    padding: 0.25rem 1rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    box-sizing: border-box;
}

.tab-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    position: relative;
    cursor: pointer;
}

.tab-item.active span {
    color: #4A90E2;
    font-weight: 600;
}

.tab-item span {
    color: #8E8E93;
    font-size: 14px;
}

.status-indicator {
    height: 3px;
    background-color: #4A90E2;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    transition: transform 0.3s ease;
}

/* 调整卡片样式 */
.order-card {
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    background-color: white;
    box-sizing: border-box;
    margin-bottom: 15px;
}

/* 调整头部样式 */
.header {
    padding: 15px;
    margin-bottom: 15px;
}

.header-title h1 {
    font-size: 20px;
}

/* 调整按钮样式 */
.action-group {
    display: flex;
    gap: 10px;
    padding: 10px;
    flex-wrap: nowrap;
}

.accept-btn, .reject-btn, .complete-btn, .cancel-btn, .unread-message-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    border: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.unread-message-btn {
    background-color: #ff4d4f;
    color: white;
}

.unread-message-btn:hover {
    background-color: #ff7875;
}

.unread-message-btn i {
    font-size: 14px;
}

.unread-message-btn .badge {
    background-color: white;
    color: #ff4d4f;
    border-radius: 10px;
    padding: 1px 4px;
    font-size: 11px;
    font-weight: bold;
}

/* 调整进行中订单模块的布局 */
.content-section[data-type="in-progress"] {
    padding-bottom: 20px;
}

.order-details {
    flex-shrink: 0;
}
