:root {
    /* 品牌色 */
    --primary-color: #007AFF; /* 科技蓝 */
    --accent-color: #FF9500;  /* 活力橙 */
    --bg-color: #F5F5F7;      /* 苹果灰背景 */
    --text-color: #1D1D1F;
    --card-radius: 18px;
    --card-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --card-shadow-hover: 0 12px 30px rgba(15, 23, 42, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(255, 255, 255, 0.45);
    
    /* 手机模型参数 */
    --phone-width: 375px;
    --phone-height: 812px;
    --phone-border: 14px;
    --phone-radius: 40px;
    --phone-color: #2c2c2c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #e8edf4;
    height: 100vh;
    overflow: hidden;
    color: var(--text-color);
}

/* 订单列表页样式 */
.tab-segment {
    display: flex;
    background: rgba(255,255,255,0.9);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}

.segment-item {
    margin-right: 25px;
    font-size: 14px;
    color: #666;
    padding-bottom: 8px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}
 
.segment-item:active {
    color: var(--primary-color);
}

.segment-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.segment-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 {
    padding: 0 20px 90px;
}

.order-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.03);
}
 
.order-card:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: var(--card-shadow-hover);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 12px;
}

.order-id {
    font-size: 12px;
    color: #999;
}

.status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.status.processing { background: #e3f2fd; color: #1976d2; }
.status.completed { background: #e8f5e9; color: #2e7d32; }
.status.cancelled { background: #f5f5f5; color: #999; }

.order-body h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.worker-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.avatar-mini {
    width: 20px;
    height: 20px;
    background: #eee;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-body .time {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

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

.order-footer .price {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.btn-group-small {
    display: flex;
    gap: 8px;
}

/* 表单样式 */
.form-item {
    margin-bottom: 15px;
}

.form-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

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

.form-input:focus {
    border-color: var(--primary-color);
    background: white;
    outline: none;
}

/* 标签选择器 */
.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.select-tag {
    padding: 8px 15px;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.select-tag.selected {
    background: #e3f2fd;
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

/* 消息列表页样式 */

/* 核心布局：左右分屏 */
.presentation-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 左侧演示区 */
.demo-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #ffffff 0%, #e8edf4 100%);
    padding: 40px;
    position: relative;
}

/* 右侧说明面板 */
.context-panel {
    width: 400px;
    background: #ffffff;
    border-left: 1px solid rgba(0,0,0,0.06);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.08);
    z-index: 10;
}

/* 右侧面板内容样式 */
.panel-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.role-badge.boss { background: #e3f2fd; color: #1565c0; }
.role-badge.worker { background: #fff3e0; color: #ef6c00; }
.role-badge.agent { background: #e8f5e9; color: #2e7d32; }
.role-badge.manager { background: #f3e5f5; color: #7b1fa2; }

/* 管理端驾驶舱样式 */
.manager-dashboard {
    background: #1a1a2e; /* 深色背景 */
    color: white;
    min-height: 100%;
    padding: 20px;
}

.dashboard-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h2 {
    font-size: 20px;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card-dark {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card-dark .label {
    font-size: 12px;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.stat-card-dark .value {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.stat-card-dark .trend {
    font-size: 10px;
    color: #4caf50; /* Green for up */
    display: flex;
    align-items: center;
    gap: 4px;
}

.chart-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ccc;
    display: flex;
    justify-content: space-between;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    padding-top: 10px;
}

.bar-item {
    width: 12%;
    background: linear-gradient(to top, #3a7bd5, #00d2ff);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 1s ease;
}

.bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #888;
}

.live-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
}

.live-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.live-time { color: #888; }
.live-action { color: #fff; }
.live-amount { color: #ff9800; }

.panel-section h3 {
    font-size: 16px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

#features-list li {
    margin-bottom: 10px;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

#features-list li::before {
    content: "✨";
    position: absolute;
    left: 0;
}

.guide-box {
    background: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-group button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.1s;
}

.button-group button:active {
    transform: scale(0.95);
}

/* =========================================
   纯 CSS 绘制 iPhone 模型
   ========================================= */
.phone-mockup {
    width: var(--phone-width);
    height: var(--phone-height);
    background: #000;
    border-radius: var(--phone-radius);
    box-shadow: 
        0 0 0 var(--phone-border) var(--phone-color),
        0 0 0 15px #1a1a1a, /* Inner bezel shadow */
        0 35px 70px rgba(0,0,0,0.25), /* Drop shadow */
        inset 0 0 20px rgba(255,255,255,0.1); /* Gloss */
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

/* 屏幕区域 */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: calc(var(--phone-radius) - 4px);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 刘海 */
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 30px;
    background: var(--phone-color);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 100;
}

/* 物理按键 */
.phone-buttons {
    position: absolute;
    background: var(--phone-color);
    border-radius: 4px;
}
.button-left-1 { top: 100px; left: -16px; width: 4px; height: 26px; } /* 静音 */
.button-left-2 { top: 150px; left: -16px; width: 4px; height: 50px; } /* 音量+ */
.button-left-3 { top: 216px; left: -16px; width: 4px; height: 50px; } /* 音量- */
.button-right { top: 160px; right: -16px; width: 4px; height: 80px; } /* 电源 */

/* 状态栏 */
.status-bar {
    height: 44px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    z-index: 90;
    padding-top: 10px; /* 避开刘海 */
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.battery-icon {
    width: 22px;
    height: 11px;
    border: 1px solid #999;
    border-radius: 3px;
    position: relative;
    padding: 1px;
}

.battery-level {
    width: 80%;
    height: 100%;
    background: #000;
    border-radius: 1px;
}

/* 底部 Home 条 */
.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: #000;
    border-radius: 100px;
    z-index: 100;
}

/* 应用内容区域 */
.app-content {
    flex: 1;
    background: #f6f7fb;
    position: relative;
    overflow-y: auto;
    /* 隐藏滚动条但允许滚动 */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.app-content::-webkit-scrollbar { 
    display: none; 
}

/* 修复：外层容器禁止滚动，由内部内容滚动 */
#app-container {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* =========================================
   页面内容样式 (Pages)
   ========================================= */

/* 页面容器：确保占满高度并管理布局 */
.page {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pageEnter 0.35s ease;
}
 
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 通用组件 */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 10px 24px rgba(0, 122, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
 
.btn-primary:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.2);
}

.btn-small {
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 14px;
    font-size: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
 
.btn-small:active {
    transform: translateY(1px) scale(0.98);
}

/* 登录页 */
.login-page {
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.logo-area {
    text-align: center;
    margin-bottom: 60px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 20px rgba(0,122,255,0.3);
}

.login-form .input-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-form input {
    border: none;
    font-size: 16px;
    outline: none;
    flex: 1;
}

.verify-code {
    color: var(--primary-color);
    font-size: 14px;
    white-space: nowrap;
    margin-left: 10px;
    cursor: pointer;
}

.agreement {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 20px;
}

/* 角色选择页 */
.role-page {
    padding: 30px 20px;
    background: #f8f9fa;
}

.role-page h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.role-card {
    background: white;
    padding: 20px;
    border-radius: var(--card-radius);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

/* 老板角色卡片 - 蓝色系 */
.role-card:nth-child(1) {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #90caf9;
}
.role-card:nth-child(1) .icon {
    background: rgba(255,255,255,0.6);
    color: #1565c0;
}
.role-card:nth-child(1) h3 { color: #0d47a1; }
.role-card:nth-child(1) p { color: #1976d2; }

/* 工人角色卡片 - 绿色系 */
.role-card:nth-child(2) {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #a5d6a7;
}
.role-card:nth-child(2) .icon {
    background: rgba(255,255,255,0.6);
    color: #2e7d32;
}
.role-card:nth-child(2) h3 { color: #1b5e20; }
.role-card:nth-child(2) p { color: #388e3c; }

/* 中介角色卡片 - 紫色系 */
.role-card:nth-child(3) {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #ce93d8;
}
.role-card:nth-child(3) .icon {
    background: rgba(255,255,255,0.6);
    color: #7b1fa2;
}
.role-card:nth-child(3) h3 { color: #4a148c; }
.role-card:nth-child(3) p { color: #7b1fa2; }

/* 管理员角色卡片 - 橙色系 */
.role-card:nth-child(4) {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ffcc80;
}
.role-card:nth-child(4) .icon {
    background: rgba(255,255,255,0.6);
    color: #e65100;
}
.role-card:nth-child(4) h3 { color: #e65100; }
.role-card:nth-child(4) p { color: #f57c00; }

.role-card:active {
    transform: scale(0.98);
}

.role-card .icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 老板端 & 工人端 通用 */
.nav-bar {
    padding: 10px 20px;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    background: var(--glass-bg);
    font-weight: 600;
    font-size: 18px;
    position: relative;
    z-index: 100;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.nav-left {
    display: flex;
    justify-content: flex-start;
}

.back-icon {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

.nav-bar .avatar {
    font-size: 24px;
    cursor: pointer;
    justify-self: end;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
    gap: 18px;
}

.action-btn {
    background: white;
    padding: 22px;
    border-radius: var(--card-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.02);
    cursor: pointer;
    min-height: 120px;
}

.action-btn:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: var(--card-shadow-hover);
}

.action-btn .icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.action-btn span {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.action-btn .desc {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

/* Individual card styling */
.action-btn:nth-child(1) { /* Market */
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
}
.action-btn:nth-child(1) .icon { color: #1565c0; }

.action-btn:nth-child(2) { /* Publish Task */
    background: linear-gradient(135deg, #f3e5f5 0%, #ede7f6 100%);
}
.action-btn:nth-child(2) .icon { color: #7b1fa2; }

.action-btn:nth-child(3) { /* Manage Task */
    background: linear-gradient(135deg, #fff3e0 0%, #fff8e1 100%);
}
.action-btn:nth-child(3) .icon { color: #e65100; }

.action-btn:nth-child(4) { /* Order */
    background: linear-gradient(135deg, #e0f2f1 0%, #e8f5e9 100%);
}
/* Toast 提示 */
.toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    z-index: 1000;
    white-space: nowrap;
    animation: fadeInOut 2s ease-in-out forwards;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    15% { opacity: 1; transform: translate(-50%, -50%); }
    85% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

/* 模态框样式 */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease-out;
}
.modal-content {
    animation: scaleIn 0.2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.section-title {
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-title .more {
    font-size: 12px;
    color: #999;
}

.worker-list, .task-list {
    padding: 0 20px 90px;
}

.worker-card, .task-card {
    background: white;
    padding: 18px;
    border-radius: var(--card-radius);
    margin-bottom: 18px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.03);
}
 
.worker-card:active, .task-card:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: var(--card-shadow-hover);
}

.worker-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.status-active {
    font-size: 10px;
    color: #4caf50;
    background: #e8f5e9;
    padding: 2px 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.worker-avatar {
    width: 50px;
    height: 50px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

.tags span {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: #666;
    margin-right: 4px;
    margin-top: 4px;
}

.worker-action {
    border-top: 1px solid #f5f5f5;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.distance {
    font-size: 12px;
    color: #999;
}

/* 状态标签颜色 */
.status.pending { color: #ff9800; background: #fff3e0; padding: 2px 8px; border-radius: 4px; }
.status.processing { color: #2196f3; background: #e3f2fd; padding: 2px 8px; border-radius: 4px; }
.status.completed { color: #4caf50; background: #e8f5e9; padding: 2px 8px; border-radius: 4px; }
.status.cancelled { color: #9e9e9e; background: #f5f5f5; padding: 2px 8px; border-radius: 4px; }

/* 任务卡片特有 */
.task-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.task-header .price {
    color: #f44336;
    font-weight: bold;
}

.task-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-抢 {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 打卡按钮样式 */
.btn-checkin {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #e3f2fd;
    color: var(--primary-color);
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 80px;
}

.btn-checkin:active {
    transform: translateY(-50%) scale(0.95);
}

.checkin-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.checkin-text {
    font-size: 12px;
    font-weight: 600;
}

.checkin-days {
    font-size: 10px;
    opacity: 0.8;
}

.btn-checkin.checked {
    background: #e8f5e9;
    color: #2e7d32;
    cursor: default;
}

.btn-checkin.loading {
    background: #f5f5f5;
    color: #999;
}
.stat-banner {
    background: var(--primary-color);
    color: white;
    margin: 20px;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0, 122, 255, 0.25);
    display: flex;
    justify-content: space-around;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 简历页样式 */
.resume-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
}

.profile-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: #fff3e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.profile-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-verified {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: normal;
}

.profile-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f5f5f7;
    color: #666;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 技能标签样式 */
.skill-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-item {
    margin-bottom: 12px;
}

.skill-name {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.skill-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

.experience-item {
    border-left: 2px solid #eee;
    padding-left: 15px;
    margin-left: 5px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.exp-date {
    font-size: 12px;
    color: #999;
}

.exp-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.stat-item .num {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat-item .label {
    font-size: 12px;
    opacity: 0.8;
}

/* 中介端 */
.income-card {
    background: linear-gradient(135deg, #108ee9, #87d068);
    color: white;
    margin: 20px;
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(16, 142, 233, 0.25);
}

.income-card h1 {
    font-size: 32px;
    margin: 10px 0 20px;
}

.income-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.income-actions button {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.invite-section {
    background: white;
    margin: 20px;
    padding: 22px;
    border-radius: var(--card-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: #f0f0f0;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.qr-code {
    font-size: 40px;
}

.team-list {
    background: white;
    padding: 20px;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    min-height: 200px;
    box-shadow: var(--card-shadow);
}

.team-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

/* 底部Tabbar */
.tab-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 83px; /* 包含底部安全区 */
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    display: flex;
    padding-bottom: 20px; /* 适配Home Bar */
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.08);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}
 
.tab-item:active {
    transform: scale(0.96);
}

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

.tab-item .icon {
    font-size: 24px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}
 
.tab-item.active .icon {
    transform: translateY(-2px);
}
