/* ============================================================
   员工 H5 端 - 移动端样式（现代医疗蓝版）
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    line-height: 1.6;
    padding-bottom: 70px;
}
a { color: #2563eb; text-decoration: none; }

/* === Header === */
.mobile-header {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(37,99,235,0.15);
}
.mobile-header h1 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

/* === Content === */
.mobile-content {
    padding: 14px;
    padding-bottom: 80px;
}

/* === Tab Bar === */
.mobile-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #fff;
    border-top: 1px solid #eef2f7;
    display: flex;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #94a3b8;
    gap: 3px;
    transition: all 0.2s;
    position: relative;
}
.tab-item.active {
    color: #2563eb;
    font-weight: 600;
}
.tab-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    border-radius: 0 0 4px 4px;
}

/* === Card === */
.m-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.m-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.m-card-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    border-radius: 2px;
}
.m-card-meta {
    font-size: 12px;
    color: #94a3b8;
}

/* === Task Card === */
.task-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(37,99,235,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.task-card:active {
    transform: scale(0.99);
}
.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    opacity: 0;
    transition: opacity 0.2s;
}
.task-card:hover::before { opacity: 1; }
.task-platform {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    background: #eff6ff;
    color: #2563eb;
    margin-bottom: 8px;
    font-weight: 500;
}
.task-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.5;
}
.task-info {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.task-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.task-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.reward-tag {
    font-size: 16px;
    font-weight: 700;
    color: #f59e0b;
}
.slots-tag {
    font-size: 12px;
    color: #64748b;
}

/* 任务图片 */
.task-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f1f5f9;
}
.task-thumb-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
}
.task-thumb-row img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f1f5f9;
}

/* === Form === */
.m-field { margin-bottom: 16px; }
.m-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.m-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: #1f2937;
    transition: all 0.2s;
}
.m-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}
.m-picker {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: #9ca3af;
    cursor: pointer;
}
.m-picker.selected { color: #1f2937; }
.m-picker-arrow {
    float: right;
    color: #cbd5e1;
}

/* === Button === */
.m-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.m-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.m-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(37,99,235,0.2);
}
.m-btn-outline {
    background: #fff;
    color: #2563eb;
    border: 1px solid #2563eb;
}
.m-btn-outline:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
}
.m-btn-danger {
    background: #ef4444;
    color: #fff;
}
.m-btn-block { display: block; width: 100%; }

/* === Badge === */
.m-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}
.m-badge-pending  { background: #fff7ed; color: #ea580c; }
.m-badge-passed   { background: #ecfdf5; color: #059669; }
.m-badge-rejected { background: #fef2f2; color: #dc2626; }
.m-badge-active   { background: #eff6ff; color: #2563eb; }
.m-badge-full     { background: #f3f4f6; color: #6b7280; }

/* 状态标签（旧版兼容） */
.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}
.s-full { background: #f3f4f6; color: #6b7280; }
.s-active { background: #eff6ff; color: #2563eb; }
.s-closed { background: #fff7ed; color: #d97706; }

/* === List === */
.m-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}
.m-list-item:last-child { border-bottom: none; }
.m-list-item .value { color: #64748b; font-size: 13px; }

/* === Toast === */
.toast {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(31,41,55,0.92);
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 9999;
    animation: fadeIn 0.2s;
    backdrop-filter: blur(4px);
}
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } }

/* === Stats === */
.m-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
.m-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.m-stat-label { font-size: 12px; color: #94a3b8; margin-bottom: 6px; }
.m-stat-value { font-size: 24px; font-weight: 700; color: #2563eb; }
.m-stat-value.orange { color: #f59e0b; }
.m-stat-value.green { color: #10b981; }
.m-stat-value.red { color: #ef4444; }

/* === Avatar === */
.m-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}

/* === Loading / Empty === */
.loading {
    text-align: center;
    padding: 50px 0;
    color: #94a3b8;
    font-size: 13px;
}
.pull-more {
    text-align: center;
    padding: 16px;
    color: #94a3b8;
    font-size: 13px;
}
.empty-tip {
    text-align: center;
    padding: 60px 16px;
    color: #94a3b8;
}
.empty-tip-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* === Me Page === */
.me-header {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    padding: 32px 20px 40px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.me-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.me-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 12px;
    backdrop-filter: blur(4px);
}
.me-name { font-size: 19px; font-weight: 600; }
.me-dept { font-size: 13px; opacity: 0.85; margin-top: 4px; }
.me-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #eef2f7;
    margin: -20px 16px 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}
.me-stat-item { background: #fff; text-align: center; padding: 16px 8px; }
.me-stat-label { font-size: 11px; color: #94a3b8; }
.me-stat-value { font-size: 20px; font-weight: 700; color: #2563eb; margin-top: 4px; }
.me-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    color: #1f2937;
    transition: background 0.15s;
}
.me-menu-item:last-child { border-bottom: none; }
.me-menu-item .arrow { color: #cbd5e1; font-size: 14px; }

/* === Report / Reward Cards === */
.report-card,
.reward-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.report-header,
.reward-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.report-title,
.reward-month { font-size: 15px; font-weight: 600; color: #1f2937; }
.report-time,
.reward-time { font-size: 12px; color: #94a3b8; }
.report-info,
.reward-remark { font-size: 13px; color: #64748b; margin-bottom: 8px; line-height: 1.6; }
.reward-amount { font-size: 18px; font-weight: 700; color: #f59e0b; }

/* === Reward Summary === */
.reward-summary {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #fff;
    padding: 32px 20px;
    text-align: center;
}
.reward-summary .label { font-size: 13px; opacity: 0.85; margin-bottom: 8px; }
.reward-summary .value { font-size: 38px; font-weight: 700; }
.reward-filter {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}
.reward-filter select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: #1f2937;
}
.reward-filter button {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(37,99,235,0.2);
}

/* === Login Page === */
.m-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    padding: 20px;
}
.m-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.m-login-card h1 {
    font-size: 22px;
    margin-bottom: 6px;
    text-align: center;
    color: #1f2937;
}
.m-login-card .subtitle {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    margin-bottom: 24px;
}

/* 辅助 */
.text-muted { color: #94a3b8; }
.text-primary { color: #2563eb; }
