/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff4d4f;
    --secondary-color: #26A69A;
    --secondary-color-dark: #1a7a70;
    --text-primary: #303133;
    --primary-light: #ff7875;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    --text-secondary: #666666;
    --text-disabled: #999999;
    --border-color: #e8e8e8;
    --background-color: #f5f7fa;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    min-height: 100vh;
    /* 为底部导航栏留出空间，同时适配 iPhone X+ 安全区域 */
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

/* ==================== 页面头部渐变背景区域 ==================== */
.page-header {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 30%, rgba(255, 120, 117, 0.1) 60%, transparent 100%);
    padding-top: 12px;
    padding-bottom: 12px;
    position: relative;
}

/* 顶部导航栏 */
.top-nav {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: white;
    min-height: 44px;
}

/* 顶部导航栏中的消息滚动容器 */
.top-nav .message-scroll-container {
    flex: 1;
    overflow: hidden;
    height: 24px;
    position: relative;
}

.top-nav .message-scroll-content {
    position: absolute;
    white-space: nowrap;
    animation: scrollLeft 20s linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.message-item {
    display: inline-block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    padding-right: 30px;
}

.master-nickname {
    font-weight: 500;
}

.master-distance {
    opacity: 0.9;
}

.master-phone {
    opacity: 0.85;
}

/* ==================== Banner区域 ==================== */
.banner-section {
    width: 100%;
    padding: 0 16px 0;
    background: transparent;
    position: relative;
}

.banner-carousel {
    width: 100%;
    height: 120px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: var(--text-disabled);
    font-size: 14px;
}

.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

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

.indicator-dot.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

/* ==================== 服务网格区域 ==================== */
.service-grid-section {
    padding: 20px 15px;
    background: var(--background-color);
    /* 为底部导航栏留出空间，同时适配 iPhone X+ 安全区域 */
    padding-bottom: calc(20px + 60px + env(safe-area-inset-bottom, 0px));
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color-dark);
    margin-bottom: 16px;
    padding-left: 4px;
    letter-spacing: 0.5px;
}

/* ==================== 底部信息区域 ==================== */
.page-footer {
    background: var(--white);
    padding: 20px 16px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 60px; /* 为底部导航留出空间 */
}

.footer-info {
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.footer-contact {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==================== 底部导航栏（新版）==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

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

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

/* ==================== 6宫格布局 ==================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
    background-color: transparent;
}

.grid-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.grid-item:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.grid-item-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #5a5a5a;
    font-weight: 500;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* 糖果色背景 - 淡粉色 */
.grid-item-empty.candy-pink {
    background-color: #FFD1DC;
}

/* 糖果色背景 - 淡蓝色 */
.grid-item-empty.candy-blue {
    background-color: #AEC6CF;
}

/* 糖果色背景 - 淡黄色 */
.grid-item-empty.candy-yellow {
    background-color: #FDFD96;
}

/* 糖果色背景 - 薄荷绿 */
.grid-item-empty.candy-mint {
    background-color: #B2F0E8;
}

/* 空卡片图标容器 */
.grid-item-empty .empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    opacity: 0.7;
}

/* 品牌化占位图图标（水滴+气泡/工具箱） */
.grid-item-empty .empty-icon-brand {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

/* 海豚品牌占位图图标（带围巾的可爱海豚） */
.grid-item-empty .empty-icon-dolphin {
    width: 60px;
    height: 84px;  /* 从90px调整为84px，匹配100x140的viewBox比例 */
    margin-bottom: 12px;
    color: rgba(70, 130, 180, 0.9);  /* 钢蓝色，与围巾颜色协调 */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 空卡片站点Logo */
.grid-item-empty .empty-icon-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    object-fit: contain;
}

/* 空卡片文字 */
.grid-item-empty .empty-text {
    font-size: 13px;
    color: #5a5a5a;
    font-weight: 500;
}

/* ==================== 产品卡片 ==================== */
.product-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 宽高比 4:3，图片占卡片60%高度 */
    overflow: hidden;
}

.product-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-icon-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 78px; /* 确保信息区域有足够高度 */
}

.product-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    min-height: 36px; /* 2行文字高度：13px × 1.4 × 2 ≈ 36px */
}

.product-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto; /* 价格固定在底部 */
    padding-top: 6px;
}

.product-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff4d4f;
    letter-spacing: 0.3px;
    line-height: 1;
}

.product-card-original-price {
    font-size: 12px;
    color: var(--text-disabled);
    text-decoration: line-through;
    line-height: 1;
}

.product-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* ==================== 通用按钮样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:active {
    opacity: 0.8;
}

.btn-block {
    width: 100%;
}

/* ==================== 加载状态 ==================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-secondary);
}

.loading::after {
    content: '';
    width: 24px;
    height: 24px;
    margin-left: 10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== 空状态 ==================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-disabled);
    margin: 0;
}

/* 头部导航 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
}

.header-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

/* 6宫格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

/* 展开/收起按钮样式 */
.expand-btn-wrapper,
.collapse-btn-wrapper {
    margin-top: 8px;
    text-align: center;
}

.expand-btn,
.collapse-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-btn:hover,
.collapse-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.expand-btn:active,
.collapse-btn:active {
    opacity: 0.8;
}

/* 展开的商品项 */
.expanded-item {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 登录页面 ==================== */

/* 登录页面 */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--white) 40%);
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
    color: var(--white);
}

.login-logo h1 {
    font-size: 28px;
    margin-top: 16px;
}

.login-form {
    background-color: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
}

.form-input-with-btn {
    display: flex;
    gap: 10px;
}

.form-input-with-btn .form-input {
    flex: 1;
}

.sms-btn {
    padding: 12px 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.sms-btn:disabled {
    background-color: var(--text-disabled);
    cursor: not-allowed;
}

/* 产品详情页 */
.product-detail-page {
    background-color: var(--white);
    min-height: 100vh;
}

.product-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info-section {
    padding: 16px;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--error-color);
}

.product-original-price {
    font-size: 16px;
    color: var(--text-disabled);
    text-decoration: line-through;
}

.product-discount {
    padding: 2px 8px;
    background-color: var(--error-color);
    color: var(--white);
    font-size: 12px;
    border-radius: 4px;
}

.product-meta {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.product-meta-item {
    font-size: 13px;
    color: var(--text-secondary);
}

.product-description {
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--white);
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* ==================== 页面基础布局 ==================== */
.page {
    min-height: 100vh;
    background-color: var(--background-color);
    /* 为底部导航栏留出空间，同时适配 iPhone X+ 安全区域 */
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}



.btn-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.btn-back svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-placeholder {
    width: 32px;
}

.btn-add {
    padding: 6px 12px;
    font-size: 14px;
    color: var(--primary-color);
    background: none;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
}

/* ==================== 底部导航栏 ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 56px;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    flex: 1;
    height: 100%;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

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

/* ==================== 个人中心页样式 ==================== */
.profile-page {
    /* 为底部导航栏留出空间，同时适配 iPhone X+ 安全区域 */
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #42a5f5 100%);
    padding: 30px 20px 20px;
    color: var(--white);
}

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

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

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

.user-detail {
    flex: 1;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.user-phone {
    font-size: 14px;
    opacity: 0.85;
    margin: 0;
}

.btn-edit {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
}

.member-level {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.level-badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.level-expire {
    font-size: 12px;
    opacity: 0.8;
}

/* 订单快捷入口 */
.order-quick-entry {
    display: flex;
    justify-content: space-around;
    background: var(--white);
    margin: 15px;
    padding: 20px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.entry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.entry-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.entry-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.entry-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--error-color);
    color: var(--white);
    font-size: 11px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 功能菜单 */
.menu-section {
    margin: 15px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 10px 10px;
}

.menu-list {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background-color: var(--background-color);
}

.menu-icon {
    font-size: 22px;
    margin-right: 12px;
}

.menu-label {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
}

.menu-arrow {
    font-size: 20px;
    color: var(--text-disabled);
}

/* ==================== 订单列表页样式 ==================== */
.order-list-page {
    /* 为底部导航栏留出空间，同时适配 iPhone X+ 安全区域 */
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

.order-tabs {
    display: flex;
    background: var(--white);
    padding: 0 10px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab-item {
    padding: 12px 15px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}

.tab-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.order-list-container {
    padding: 15px;
}

.order-card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.order-no {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-status {
    font-size: 14px;
    font-weight: 500;
}

.order-status-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid;
    display: inline-block;
}

.status-danger { 
    /* 红色 - 待支付 */
}

.status-warning { 
    /* 橙色 - 待服务 */
}

.status-primary { 
    /* 蓝色 - 服务中 */
}

.status-success { 
    /* 绿色 - 已完成 */
}

.status-info { 
    /* 灰色 - 已关闭 */
}

.order-body {
    padding: 12px 0;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-name {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.service-time, .service-address {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.order-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--error-color);
}

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

.btn-outline {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:active {
    background: var(--background-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* 订单操作按钮组优化 */
.order-actions {
    display: flex;
    gap: 8px;
}

.order-actions .btn-sm {
    min-width: 70px;
    white-space: nowrap;
}

/* ==================== 订单分组样式 ==================== */
.status-group {
    margin-bottom: 16px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.status-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.status-group-header:active {
    background: #f0f0f0;
}

.status-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid;
}

.status-count {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.toggle-icon {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.status-group-content {
    padding: 0;
}

.status-group-content .order-card {
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
}

.status-group-content .order-card:last-child {
    border-bottom: none;
}

/* ==================== 订单详情页样式 ==================== */
.order-detail-page {
    /* 为底部导航栏留出空间，同时适配 iPhone X+ 安全区域 */
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

.order-detail-container {
    padding: 15px;
}

.status-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 15px;
}

.status-card.status-pending-pay { border-left: 4px solid var(--warning-color); }
.status-card.status-pending { border-left: 4px solid var(--primary-color); }
.status-card.status-serving { border-left: 4px solid #1890ff; }
.status-card.status-completed { border-left: 4px solid var(--success-color); }
.status-card.status-cancelled { border-left: 4px solid var(--text-disabled); }

.status-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.status-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-section {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
}

.detail-section .section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

/* 订单概览样式 */
.service-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
}

.meta-item.address {
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
    min-width: 70px;
}

.meta-value {
    font-size: 14px;
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
}

.meta-item.address .meta-value {
    text-align: left;
    line-height: 1.5;
}

/* 详细信息标题栏 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.btn-view-more {
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
}

.btn-view-more:hover {
    color: var(--primary-color);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-container {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.modal-body {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
}

.detail-group {
    margin-bottom: 20px;
}

.detail-group:last-child {
    margin-bottom: 0;
}

.detail-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.detail-item .item-label {
    color: var(--text-secondary);
    flex-shrink: 0;
    min-width: 80px;
}

.detail-item .item-value {
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
}

.detail-item .price {
    color: var(--error-color);
    font-weight: 600;
}

.detail-item .discount {
    color: var(--success-color);
}

.detail-item.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    font-weight: 600;
}

.remark-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.service-info-card {
    display: flex;
    gap: 12px;
}

.service-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail h4 {
    font-size: 15px;
    margin: 0 0 6px 0;
}

.service-spec {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 6px 0;
}

.service-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--error-color);
    margin: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-row .value {
    font-size: 14px;
    color: var(--text-primary);
}

.address-info .contact {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 6px 0;
}

.address-info .address {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.master-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.master-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

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

.master-detail h4 {
    font-size: 15px;
    margin: 0 0 4px 0;
}

.master-phone {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.amount-detail {
    padding-top: 10px;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.amount-row.total {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px dashed var(--border-color);
    font-weight: 600;
}

.total-amount {
    font-size: 18px;
    color: var(--error-color);
}

.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

/* ==================== 下单页面样式 ==================== */
.create-order-page {
    /* 为底部提交栏和导航栏留出空间，同时适配 iPhone X+ 安全区域 */
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.order-form-container {
    padding: 15px;
}

.form-section {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
}

.form-section .section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.service-card {
    display: flex;
    gap: 12px;
}

.service-card img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.service-card .service-info h3 {
    font-size: 15px;
    margin: 0 0 4px 0;
}

.service-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 6px 0;
}

.service-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--error-color);
    margin: 0;
}

.address-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--background-color);
    border-radius: 8px;
    cursor: pointer;
}

.address-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.address-summary .contact {
    font-size: 14px;
    font-weight: 500;
}

.address-summary .address {
    font-size: 13px;
    color: var(--text-secondary);
}

.placeholder {
    font-size: 14px;
    color: var(--text-disabled);
}

.arrow {
    font-size: 18px;
    color: var(--text-disabled);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    background: var(--background-color);
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot.selected {
    background: var(--primary-color);
    color: var(--white);
}

/* 禁止下单的黄色提示样式 */
.time-slot.disabled {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    cursor: not-allowed;
    opacity: 0.8;
}

.time-slot.disabled .date,
.time-slot.disabled .weekday,
.time-slot.disabled .time {
    color: #856404;
}

/* 节假日锁定样式 */
.time-slot.holiday-slot {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.time-slot.holiday-slot .date,
.time-slot.holiday-slot .weekday,
.time-slot.holiday-slot .time {
    color: #721c24;
}

/* 席位已满提示标签 */
.slot-tip {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    font-size: 10px;
    background: #ffc107;
    color: #fff;
    border-radius: 3px;
    font-weight: bold;
}

.time-slot .date {
    font-weight: 500;
}

.time-slot .weekday {
    font-size: 11px;
    margin: 2px 0;
}

.time-slot .time {
    font-size: 11px;
    opacity: 0.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

.fee-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.fee-description p {
    margin: 0;
}

.bottom-submit-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.bottom-submit-bar .total-amount {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.bottom-submit-bar .label {
    font-size: 14px;
    color: var(--text-secondary);
}

.bottom-submit-bar .price {
    font-size: 22px;
    font-weight: 600;
    color: var(--error-color);
}

.btn-submit {
    padding: 12px 30px;
}

/* ==================== 地址管理页样式 ==================== */
.address-list-page {
    /* 为底部导航栏留出空间，同时适配 iPhone X+ 安全区域 */
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

.address-list-container {
    padding: 15px;
}

.address-card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.address-card.default {
    border-color: var(--primary-color);
}

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

.contact-name {
    font-size: 15px;
    font-weight: 500;
}

.contact-phone {
    font-size: 14px;
    color: var(--text-secondary);
}

.default-badge {
    padding: 2px 8px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 11px;
    border-radius: 4px;
}

.address-body .address-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.address-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.btn-action {
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

.btn-action.delete {
    color: var(--error-color);
    border-color: var(--error-color);
}

.btn-action:active {
    opacity: 0.7;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 16px;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 20px;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    flex: 1;
}

/* ==================== 地址选择模态框样式 ==================== */
.address-modal .map-section {
    margin-bottom: 20px;
}

.address-modal #amapContainer {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.address-modal .map-tip {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

.address-modal .divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #999;
    font-size: 14px;
}

.address-modal .divider::before,
.address-modal .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.address-modal .divider span {
    padding: 0 10px;
}

.address-modal .form-group {
    margin-bottom: 15px;
}

.address-modal .form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.address-modal .form-group input,
.address-modal .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.address-modal .form-group textarea {
    resize: none;
}

/* 表单行布局 */
.address-modal .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.address-modal .form-group.half {
    flex: 1;
    margin-bottom: 0;
}

.address-modal .form-group.half label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.address-modal .form-group.half input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* 下拉选择框样式 */
.address-modal select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
}

.address-modal select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* 切换输入/选择链接样式 */
.address-modal .toggle-input {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 5px;
    cursor: pointer;
}

.address-modal .toggle-input:hover {
    text-decoration: underline;
}

/* 标签样式（包含切换链接） */
.address-modal .form-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

/* ==================== 收藏页样式 ==================== */
.favorites-page {
    /* 为底部导航栏留出空间，同时适配 iPhone X+ 安全区域 */
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

.favorites-list-container {
    padding: 15px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.favorite-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-image {
    position: relative;
    width: 100%;
    height: 120px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-unfavorite {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.card-info {
    padding: 10px;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-footer {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.card-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--error-color);
}

.card-original-price {
    font-size: 12px;
    color: var(--text-disabled);
    text-decoration: line-through;
}

/* ==================== 微信客服页面样式（简洁版）==================== */
:root {
    --wechat-primary: #07c160;
    --wechat-secondary: #06ad56;
}

.wechat-service-page {
    min-height: 100vh;
    background: #f5f5f5;
}

.wechat-service-page .service-content {
    padding: 30px 16px;
}

/* 主容器 */
.wechat-service-page .container {
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 平台Logo区域 */
.wechat-service-page .logo-section {
    text-align: center;
    margin-bottom: 20px;
}

.wechat-service-page .platform-logo {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
}

/* 客服说明 */
.wechat-service-page .description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    margin: 0 0 24px 0;
}

/* 二维码区域 */
.wechat-service-page .qr-section {
    text-align: center;
    margin: 20px 0;
}

.wechat-service-page .qr-section.empty {
    padding: 40px 0;
}

.wechat-service-page .qr-image {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    object-fit: contain;
    background: #f9f9f9;
}

.wechat-service-page .empty-qr {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-service-page .qr-tip {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

/* 客服电话区域 */
.wechat-service-page .phone-section {
    margin: 24px 0;
}

.wechat-service-page .phone-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wechat-service-page .phone-number {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    text-align: center;
}

/* 拨打按钮 */
.wechat-service-page .call-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: var(--wechat-primary);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.wechat-service-page .call-btn:hover {
    opacity: 0.9;
}

.wechat-service-page .call-btn:active {
    opacity: 0.8;
}

/* 服务时间提示 */
.wechat-service-page .tip {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.wechat-service-page .tip p {
    margin: 0;
}

/* ==================== 打卡进度展示样式 ==================== */
.checkin-progress-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.checkin-progress-section .section-title {
    color: white !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkin-progress-section .section-title i {
    font-size: 18px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0 8px 0;
}

.progress-bar {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    text-align: right;
    opacity: 0.9;
    margin-bottom: 16px;
}

.checkin-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkin-step {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 14px;
    color: var(--text-primary);
}

.checkin-step.completed {
    border-left: 4px solid var(--success-color);
}

.checkin-step.pending {
    border-left: 4px solid #d9d9d9;
    opacity: 0.7;
}

.step-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.checkin-step.completed .step-indicator {
    background: var(--success-color);
    color: white;
}

.step-info {
    flex: 1;
}

.step-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.step-time {
    font-size: 11px;
    color: #999;
}

.step-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.checkin-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s;
}

.checkin-image:hover {
    transform: scale(1.05);
}

.step-remark {
    margin-top: 10px;
    padding: 8px 10px;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-remark i {
    font-size: 14px;
}

/* 图片预览弹窗 */
.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-preview-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== 撤单申请页面样式 ==================== */
.cancel-apply-container {
    padding: 16px;
}

.order-info-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.order-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.order-sn {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-info-body .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.cancel-form {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-section {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-label.required::before {
    content: '*';
    color: var(--error-color);
    margin-right: 4px;
}

.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-primary);
    background: white;
    transition: all 0.3s;
}

.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-disabled);
    margin-top: 4px;
}

.image-upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-btn {
    width: 80px;
    height: 80px;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 77, 79, 0.05);
}

.upload-icon {
    font-size: 28px;
    color: var(--text-disabled);
    line-height: 1;
}

.upload-text {
    font-size: 12px;
    color: var(--text-disabled);
    margin-top: 4px;
}

.form-tip {
    font-size: 12px;
    color: var(--text-disabled);
    margin-top: 8px;
}

.notice-card {
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}

.notice-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-size: 14px;
    font-weight: 500;
    color: #d46b08;
    margin-bottom: 4px;
}

.notice-text {
    font-size: 12px;
    color: #873800;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
}

/* ==================== 撤单列表页面样式 ==================== */
.cancel-list-container {
    padding: 16px;
}

.cancel-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-item:active {
    transform: scale(0.98);
}

.cancel-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.order-sn {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.cancel-item-body .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.cancel-item-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.view-detail {
    font-size: 13px;
    color: var(--primary-color);
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-tag.status-pending {
    background-color: #fff7e6;
    color: #faad14;
    border: 1px solid #ffd591;
}

.status-tag.status-approved {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-tag.status-rejected {
    background-color: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
}

/* ==================== 撤单详情页面样式 ==================== */
.cancel-detail-container {
    padding: 16px;
}

.status-card {
    background: white;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.status-card.status-pending {
    border-left: 4px solid #faad14;
}

.status-card.status-approved {
    border-left: 4px solid #52c41a;
}

.status-card.status-rejected {
    border-left: 4px solid #ff4d4f;
}

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

.status-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.refund-status {
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-section {
    margin-bottom: 16px;
}

.section-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 3px solid var(--primary-color);
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.info-card .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-card .info-row:last-child {
    border-bottom: none;
}

.info-card .info-row.full-width {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.info-value.price {
    color: var(--primary-color);
    font-size: 16px;
}

.reason-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.action-bar {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.action-bar .btn {
    flex: 1;
}

/* 图片预览弹窗 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 分页样式 */
.pagination {
    padding: 16px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.page-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-info {
    font-size: 14px;
    color: var(--text-secondary);
}
