* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --primary-light: #e8f0fe;
    --secondary: #34a853;
    --secondary-light: #e6f4ea;
    --warning: #fbbc04;
    --danger: #ea4335;
    --dark: #202124;
    --gray: #5f6368;
    --gray-light: #f8f9fa;
    --border: #e0e0e0;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: var(--dark);
    line-height: 1.6;
}

/* ==================== 页面头部 ==================== */
.page-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: white;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ==================== 快捷导航 ==================== */
.quick-nav {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-link {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--gray);
    background: var(--gray-light);
    transition: all 0.3s;
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

/* ==================== 系统区块 ==================== */
.system-section {
    padding: 24px 16px;
    background: var(--gray-light);
}

.system-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.system-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.system-icon.blue {
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: white;
}

.system-icon.orange {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.system-info h2 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 6px;
    font-weight: 700;
}

.system-info p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ==================== 角色区块 ==================== */
.role-block {
    background: #fff;
    border-radius: 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: white;
}

.role-header.blue-theme {
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
}

.role-header.green-theme {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e8e3e 100%);
}

.role-header.orange-theme {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.role-header.purple-theme {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.role-tag {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-tag i {
    font-size: 1rem;
}

.role-tag.blue, .role-tag.green, .role-tag.orange, .role-tag.purple {
    background: rgba(255,255,255,0.2);
    color: white;
}

.role-user {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.role-user i {
    font-size: 0.9rem;
}

.role-desc {
    background: white;
    padding: 20px;
}

.role-desc h3 {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-desc h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.role-desc p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 12px 14px;
}

/* ==================== 功能列表 ==================== */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 24px 20px;
    background: white;
}

.feature-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #eef2f7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-item:hover {
    background: white;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-item > i {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, #1565c0 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.4);
}

/* 绿色主题图标 */
.role-block:has(.green-theme) .feature-item > i {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e8e3e 100%);
    box-shadow: 0 8px 20px rgba(52, 168, 83, 0.4);
}

/* 橙色主题图标 */
.role-block:has(.orange-theme) .feature-item > i {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}

/* 紫色主题图标 */
.role-block:has(.purple-theme) .feature-item > i {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.feature-item strong {
    display: block;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
    display: block;
}

.feature-item div {
    text-align: center;
}

/* ==================== 手机预览 ==================== */
.phone-preview {
    display: flex;
    justify-content: center;
    padding: 30px 16px 36px;
    background: white;
}

.phone-frame {
    width: 340px;
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 44px;
    padding: 14px;
    box-shadow: 
        0 30px 70px rgba(0,0,0,0.3),
        0 15px 30px rgba(0,0,0,0.2),
        inset 0 1px 1px rgba(255,255,255,0.1);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 7px;
    background: #333;
    border-radius: 4px;
}

.phone-screen {
    background: var(--gray-light);
    border-radius: 32px;
    min-height: 580px;
    overflow: hidden;
    margin-top: 6px;
}

/* ==================== PC预览框架 ==================== */
.pc-preview {
    padding: 24px 20px 30px;
    background: white;
}

.pc-frame {
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.pc-toolbar {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 6px;
    background: #3d3d3d;
}

.pc-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.pc-dot.red { background: #ff5f57; }
.pc-dot.yellow { background: #febc2e; }
.pc-dot.green { background: #28c840; }

.pc-screen {
    background: white;
    min-height: 400px;
    overflow: hidden;
}

/* ==================== 大屏预览框架 ==================== */
.dashboard-preview {
    padding: 24px 20px 30px;
    background: white;
}

.dashboard-frame {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* 管理后台/调度后台图标颜色 */
.admin-features .feature-item > i {
    background: linear-gradient(135deg, #ea4335 0%, #c62828 100%);
    box-shadow: 0 8px 20px rgba(234, 67, 53, 0.4);
}

.dispatcher-features .feature-item > i {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
}

.dashboard-features .feature-item > i {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 8px 20px rgba(26, 26, 46, 0.4);
}

/* ==================== 商户端样式 ==================== */
.merchant-home {
    background: white;
    min-height: 100%;
}

.merchant-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: white;
    padding: 24px 14px 18px;
}

.merchant-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.merchant-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.merchant-name h3 { font-size: 0.95rem; }
.merchant-name p { font-size: 0.7rem; opacity: 0.9; }

.balance-card {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 12px;
}

.balance-label { font-size: 0.7rem; opacity: 0.9; }
.balance-amount { font-size: 1.5rem; font-weight: bold; margin: 4px 0 10px; }

.balance-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
}

.balance-item { text-align: center; }
.balance-item .num { font-size: 0.8rem; font-weight: 600; }
.balance-item .label { font-size: 0.6rem; opacity: 0.8; margin-top: 2px; }

.app-content {
    padding: 14px;
}

.qrcode-section {
    background: white;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 14px;
}

.qrcode-box {
    width: 60px;
    height: 60px;
    background: var(--gray-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.8rem;
    color: var(--dark);
}

.qrcode-section h4 { font-size: 0.85rem; color: var(--dark); margin-bottom: 2px; }
.qrcode-section p { font-size: 0.7rem; color: var(--gray); }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.menu-item {
    text-align: center;
}

.menu-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 4px;
    font-size: 0.9rem;
}

.menu-item .icon.blue { background: var(--primary-light); color: var(--primary); }
.menu-item .icon.green { background: var(--secondary-light); color: var(--secondary); }
.menu-item .icon.orange { background: #fff3e0; color: #ff9800; }
.menu-item .icon.red { background: #ffebee; color: var(--danger); }

.menu-item span { font-size: 0.65rem; color: var(--dark); }

.section-title-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-title-small h4 { font-size: 0.85rem; color: var(--dark); }
.section-title-small a { font-size: 0.7rem; color: var(--primary); text-decoration: none; }

.trade-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

.trade-item:last-child { border-bottom: none; }

.trade-info h5 { font-size: 0.8rem; color: var(--dark); margin-bottom: 2px; }
.trade-info p { font-size: 0.65rem; color: var(--gray); }

.trade-amount { text-align: right; }
.trade-amount .money { font-size: 0.85rem; font-weight: 600; color: var(--secondary); }
.trade-amount .money.out { color: var(--dark); }
.trade-amount .money.pending { color: var(--warning); }
.trade-amount .fee { font-size: 0.6rem; color: var(--gray); margin-top: 2px; }

.app-bottom-nav {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 8px 0 10px;
    border-top: 1px solid var(--border);
}

.app-bottom-nav .nav-item {
    text-align: center;
    color: var(--gray);
    font-size: 0.6rem;
}

.app-bottom-nav .nav-item i {
    font-size: 1.1rem;
    margin-bottom: 2px;
    display: block;
}

.app-bottom-nav .nav-item.active {
    color: var(--primary);
}

/* ==================== 客户端样式 ==================== */
.customer-home {
    background: var(--gray-light);
    min-height: 100%;
}

.customer-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #1b5e20 100%);
    padding: 24px 14px 20px;
}

.wallet-card {
    color: white;
    text-align: center;
}

.wallet-card .label { font-size: 0.75rem; opacity: 0.9; }
.wallet-card .amount { font-size: 1.8rem; font-weight: bold; margin: 4px 0 14px; }

.wallet-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wallet-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.scan-section {
    background: white;
    margin: -14px 14px 10px;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.scan-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.4rem;
    color: white;
}

.scan-section h4 { font-size: 0.9rem; color: var(--dark); }

.debt-card {
    background: #fff8e1;
    margin: 0 14px 10px;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ffe082;
}

.debt-info { display: flex; align-items: center; gap: 8px; }
.debt-info i { color: var(--warning); font-size: 1rem; }
.debt-info h5 { font-size: 0.75rem; color: var(--dark); }
.debt-info p { font-size: 0.65rem; color: var(--gray); }
.debt-amount { font-size: 0.95rem; font-weight: bold; color: var(--danger); }

/* ==================== 称重员端样式 ==================== */
.weigh-form {
    background: white;
    min-height: 100%;
}

.weigh-header {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 24px 14px 14px;
    display: flex;
    align-items: center;
}

.weigh-header i { margin-right: 8px; font-size: 0.95rem; }
.weigh-header h2 { font-size: 1rem; }

.weigh-merchant {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--gray-light);
}

.weigh-merchant .avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.weigh-merchant h4 { font-size: 0.85rem; color: var(--dark); }
.weigh-merchant p { font-size: 0.7rem; color: var(--gray); }

.form-section {
    padding: 10px 14px;
    background: white;
}

.form-section h5 {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-item label {
    font-size: 0.65rem;
    color: var(--gray);
}

.form-select, .form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    background: var(--gray-light);
}

.weight-display {
    background: var(--dark);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1.6rem;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    margin: 8px 0;
}

.weight-display span { font-size: 0.75rem; color: #888; }

.weigh-tip {
    font-size: 0.6rem;
    color: var(--gray);
    font-weight: normal;
}

.weigh-add-btn {
    width: 100%;
    padding: 10px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.weigh-records {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
}

.weigh-record-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    background: var(--gray-light);
    border-radius: 6px;
    margin-bottom: 4px;
}

.record-num { font-size: 0.65rem; color: var(--gray); width: 36px; }
.record-weight { flex: 1; font-size: 0.8rem; font-weight: 600; color: var(--dark); }
.record-del { color: var(--danger); padding: 2px; font-size: 0.65rem; }

.weigh-record-total {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    border-top: 1px dashed var(--border);
    margin-top: 4px;
    font-size: 0.75rem;
}

.weigh-record-total span:first-child { color: var(--gray); }
.total-weight { font-weight: bold; color: var(--primary); font-size: 0.85rem; }

.item-summary {
    background: var(--secondary-light);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.8rem;
}

.item-row:last-child {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 8px;
    margin-top: 4px;
    font-weight: bold;
    color: var(--primary);
}

.form-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.form-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: white;
}

.form-btn.secondary {
    background: var(--gray-light);
    color: var(--dark);
    border: 1px solid var(--border);
}

/* ==================== 工人端样式 ==================== */
.worker-home {
    background: var(--gray-light);
    min-height: 100%;
}

.worker-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 24px 14px 18px;
}

.worker-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.worker-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.worker-name h3 { font-size: 0.95rem; }
.worker-name p { font-size: 0.7rem; opacity: 0.9; }
.worker-name .badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.6rem;
    margin-top: 4px;
}

.worker-stats {
    display: flex;
    gap: 6px;
}

.worker-stat {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.worker-stat .num { font-size: 1.1rem; font-weight: bold; }
.worker-stat .label { font-size: 0.6rem; opacity: 0.9; margin-top: 2px; }

.task-card {
    background: white;
    margin: 14px;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.task-card .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-card .header h4 { font-size: 0.9rem; color: var(--dark); }

.task-card .status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.task-card .status.working { background: var(--primary-light); color: var(--primary); }

.task-card .task-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.task-card .task-detail .item {
    background: var(--gray-light);
    padding: 10px;
    border-radius: 8px;
}

.task-card .task-detail .label {
    font-size: 0.65rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.task-card .task-detail .value {
    font-size: 0.8rem;
    color: var(--dark);
    font-weight: 500;
}

.sign-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sign-btn.signed {
    background: var(--secondary-light);
    color: var(--secondary);
}

.salary-preview {
    background: white;
    margin: 0 14px 14px;
    border-radius: 12px;
    padding: 14px;
}

.salary-preview .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.salary-preview .header h4 { font-size: 0.9rem; color: var(--dark); }
.salary-preview .header .month { font-size: 0.7rem; color: var(--gray); }

.salary-preview .salary-amount {
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.salary-preview .salary-amount .label { font-size: 0.7rem; color: var(--gray); }
.salary-preview .salary-amount .money { font-size: 1.6rem; font-weight: bold; color: var(--primary); }

.salary-preview .salary-breakdown {
    display: flex;
    justify-content: space-around;
}

.salary-preview .salary-breakdown .item { text-align: center; }
.salary-preview .salary-breakdown .num { font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.salary-preview .salary-breakdown .label { font-size: 0.65rem; color: var(--gray); margin-top: 2px; }

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.task-card-header h4 { font-size: 0.85rem; color: var(--dark); }

.task-status {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
}

.task-status.waiting { background: #fff3e0; color: #ff9800; }

.task-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--secondary) 0%, #1b5e20 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
}

.salary-card {
    background: white;
    margin: 0 14px 10px;
    border-radius: 12px;
    padding: 12px;
}

.salary-card h4 {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.salary-amount {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.salary-amount .label { font-size: 0.7rem; color: var(--gray); }
.salary-amount .money { font-size: 1.5rem; font-weight: bold; color: var(--primary); }

.salary-breakdown {
    display: flex;
    justify-content: space-around;
}

.salary-breakdown .item { text-align: center; }
.salary-breakdown .num { font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.salary-breakdown .label { font-size: 0.6rem; color: var(--gray); margin-top: 2px; }

/* ==================== 班组长端样式 ==================== */
.leader-home {
    background: var(--gray-light);
    min-height: 100%;
}

.leader-header {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 24px 12px 14px;
}

.leader-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leader-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.leader-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.leader-name h3 { font-size: 0.9rem; }
.leader-name p { font-size: 0.65rem; opacity: 0.9; }

.leader-stats {
    display: flex;
    gap: 6px;
}

.leader-stat {
    text-align: center;
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 6px;
}

.leader-stat .num { font-size: 0.95rem; font-weight: bold; }
.leader-stat .label { font-size: 0.55rem; opacity: 0.85; }

.leader-content {
    padding: 10px;
}

.new-task-alert {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.15);
    border: 2px solid var(--danger);
}

.alert-header {
    background: linear-gradient(135deg, var(--danger) 0%, #c62828 100%);
    color: white;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-badge {
    background: white;
    color: var(--danger);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: bold;
}

.alert-time { font-size: 0.65rem; opacity: 0.9; }

.alert-body { padding: 10px; }

.alert-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alert-title i { color: var(--primary); }

.alert-info {
    display: flex;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.alert-info span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.alert-actions {
    display: flex;
    gap: 8px;
    padding: 0 10px 10px;
}

.alert-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.alert-btn.reject {
    background: var(--gray-light);
    color: var(--gray);
}

.alert-btn.accept {
    background: linear-gradient(135deg, var(--secondary) 0%, #1b5e20 100%);
    color: white;
}

.current-task {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.current-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: white;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-header h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.progress-ring {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.current-body { padding: 10px; }

.current-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.current-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.progress-bar-bg {
    flex: 1;
    height: 6px;
    background: var(--gray-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, #4caf50 100%);
    border-radius: 3px;
}

.current-progress span {
    font-size: 0.7rem;
    color: var(--gray);
    white-space: nowrap;
}

.current-crew {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px;
    background: var(--gray-light);
    border-radius: 6px;
}

.crew-label {
    font-size: 0.65rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 3px;
}

.crew-avatars {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.crew-avatar {
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
}

.crew-avatar.empty {
    background: white;
    color: var(--gray);
    border: 1px dashed var(--border);
}

.crew-count {
    font-size: 0.65rem;
    color: var(--secondary);
    font-weight: 600;
    margin-left: auto;
}

.complete-btn {
    width: calc(100% - 20px);
    margin: 10px;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==================== PC管理后台样式 ==================== */
.admin-layout { display: flex; height: 100%; }

.admin-sidebar {
    width: 140px;
    background: var(--dark);
    color: white;
    padding: 12px 0;
    flex-shrink: 0;
}

.admin-logo {
    padding: 0 12px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

.admin-logo h3 {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-logo h3 i { color: var(--primary); }

.admin-menu { list-style: none; }

.admin-menu li {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #aaa;
    font-size: 0.65rem;
    transition: all 0.2s;
}

.admin-menu li:hover { background: rgba(255,255,255,0.05); color: white; }
.admin-menu li.active { background: var(--primary); color: white; }
.admin-menu li i { width: 14px; font-size: 0.7rem; }

.admin-main { flex: 1; background: var(--gray-light); overflow: auto; }

.admin-header {
    background: white;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.admin-header h2 { font-size: 0.85rem; color: var(--dark); }

.admin-user { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; }

.admin-user .avatar {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.65rem;
}

.admin-content { padding: 12px 14px; }

.stats-row { display: flex; gap: 10px; margin-bottom: 12px; }

.stat-card {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.stat-card .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.stat-card .header span { font-size: 0.6rem; color: var(--gray); }
.stat-card .header i { font-size: 0.9rem; color: var(--primary); }
.stat-card .value { font-size: 1.1rem; font-weight: bold; color: var(--dark); }
.stat-card .change { font-size: 0.55rem; color: var(--secondary); margin-top: 2px; }
.stat-card .change.danger { color: var(--danger); }

.data-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.data-card .header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-card .header h4 { font-size: 0.75rem; color: var(--dark); }

.data-table { width: 100%; border-collapse: collapse; }

.data-table th, .data-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.6rem;
}

.data-table th { background: var(--gray-light); color: var(--gray); font-weight: 500; }

.status-badge { padding: 2px 8px; border-radius: 10px; font-size: 0.55rem; }
.status-badge.success { background: var(--secondary-light); color: var(--secondary); }
.status-badge.pending { background: var(--warning-light); color: #b45309; }
.status-badge.danger { background: var(--danger-light); color: var(--danger); }

/* ==================== 调度大屏样式 ==================== */
.dashboard-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.dashboard-header-inner h1 {
    color: white;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-header-inner h1 i { color: var(--primary); }
.dashboard-time { color: #888; font-size: 0.7rem; }

.dashboard-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.dashboard-stat {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.dashboard-stat .number { font-size: 1.3rem; font-weight: bold; color: white; }
.dashboard-stat .number.green { color: var(--secondary); }
.dashboard-stat .number.yellow { color: var(--warning); }
.dashboard-stat .number.blue { color: var(--primary); }
.dashboard-stat .label { color: #888; font-size: 0.6rem; margin-top: 2px; }

.dashboard-main { display: flex; gap: 12px; }
.dashboard-left { flex: 2; }
.dashboard-right { flex: 1; }

.berth-section {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.berth-section h3 { color: white; font-size: 0.75rem; margin-bottom: 10px; }

.berth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.berth-item {
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
}

.berth-item.working { border: 2px solid var(--secondary); background: rgba(52, 168, 83, 0.1); }
.berth-item.waiting { border: 2px solid var(--warning); background: rgba(251, 188, 4, 0.1); }
.berth-item.idle { border: 1px solid rgba(255,255,255,0.1); }

.berth-item .name { color: white; font-weight: 600; font-size: 0.7rem; margin-bottom: 2px; }
.berth-item .status { font-size: 0.55rem; color: #888; }
.berth-item.working .status { color: var(--secondary); }
.berth-item.waiting .status { color: var(--warning); }

.berth-item .progress {
    margin-top: 4px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 1px;
    overflow: hidden;
}

.berth-item .progress-bar { height: 100%; background: var(--secondary); }

.task-list-section {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.task-list-section h3 { color: white; font-size: 0.75rem; margin-bottom: 10px; }

.task-list-item {
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-list-item .info h5 { color: white; font-size: 0.7rem; margin-bottom: 2px; }
.task-list-item .info p { color: #888; font-size: 0.55rem; }

.task-list-item .action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.6rem;
}

.worker-status-section {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.worker-status-section h3 { color: white; font-size: 0.75rem; margin-bottom: 10px; }

.worker-status-chart { display: flex; justify-content: center; gap: 14px; }

.status-ring { text-align: center; }

.ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
}

.ring.working { background: conic-gradient(var(--secondary) 0% 70%, rgba(255,255,255,0.1) 70% 100%); }
.ring.idle { background: conic-gradient(var(--primary) 0% 20%, rgba(255,255,255,0.1) 20% 100%); }
.ring.off { background: conic-gradient(var(--gray) 0% 10%, rgba(255,255,255,0.1) 10% 100%); }

.ring-inner {
    width: 36px;
    height: 36px;
    background: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
}

.status-ring .label { color: #888; font-size: 0.6rem; }

/* ==================== 手机版管理后台样式 ==================== */
.mobile-admin {
    background: var(--gray-light);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.admin-mobile-header {
    background: linear-gradient(135deg, #ea4335 0%, #c62828 100%);
    color: white;
    padding: 24px 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-mobile-header.cyan {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
}

.admin-mobile-header h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-mobile-header .admin-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    margin-top: 0;
}

.admin-stat-card {
    background: white;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    min-width: 0;
}

.admin-stat-card .stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.admin-stat-card .stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.admin-stat-card .stat-icon.green { background: var(--secondary-light); color: var(--secondary); }
.admin-stat-card .stat-icon.yellow { background: #fff8e1; color: #f9a825; }
.admin-stat-card .stat-icon.red { background: var(--danger-light); color: var(--danger); }
.admin-stat-card .stat-icon.purple { background: #ede7f6; color: #6366f1; }

.admin-stat-card .stat-info {
    min-width: 0;
    overflow: hidden;
}

.admin-stat-card .stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-stat-card .stat-label {
    font-size: 0.65rem;
    color: var(--gray);
}

.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 14px 14px;
}

.admin-menu-item {
    background: white;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.admin-menu-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}

.admin-menu-item span {
    font-size: 0.7rem;
    color: var(--dark);
}

.admin-section {
    background: white;
    margin: 0 14px 14px;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-section .section-header h4 {
    font-size: 0.9rem;
    color: var(--dark);
}

.admin-section .section-header .badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
}

.admin-section .section-header .badge.danger {
    background: var(--danger);
}

.admin-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
}

.admin-list-item:last-child {
    border-bottom: none;
}

.admin-list-item .item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.admin-list-item .item-icon.blue { background: var(--primary-light); color: var(--primary); }
.admin-list-item .item-icon.orange { background: #fff3e0; color: #ff9800; }
.admin-list-item .item-icon.red { background: var(--danger-light); color: var(--danger); }
.admin-list-item .item-icon.yellow { background: #fff8e1; color: #f9a825; }

.admin-list-item .item-info {
    flex: 1;
}

.admin-list-item .item-info h5 {
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.admin-list-item .item-info p {
    font-size: 0.7rem;
    color: var(--gray);
}

.admin-list-item .item-action {
    color: var(--gray);
    font-size: 0.8rem;
}

.dispatch-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* ==================== 手机版调度看板样式 ==================== */
.mobile-dashboard {
    background: #1a1a2e;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-mobile-header {
    padding: 24px 16px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-mobile-header h2 {
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-mobile-header h2 i {
    color: var(--primary);
}

.dashboard-date {
    color: #888;
    font-size: 0.8rem;
}

.dashboard-summary {
    display: flex;
    justify-content: space-around;
    padding: 0 10px 16px;
}

.summary-item {
    text-align: center;
}

.summary-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.summary-num.yellow { color: var(--warning); }
.summary-num.blue { color: var(--primary); }
.summary-num.green { color: var(--secondary); }

.summary-label {
    font-size: 0.7rem;
    color: #888;
    margin-top: 2px;
}

.dashboard-section {
    background: rgba(255,255,255,0.05);
    margin: 0 12px 12px;
    border-radius: 12px;
    padding: 14px;
}

.dashboard-section .section-title {
    color: white;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-section .section-title i {
    color: var(--primary);
}

.berth-mobile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.berth-mobile {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.berth-mobile.working {
    border: 2px solid var(--secondary);
    background: rgba(52, 168, 83, 0.1);
}

.berth-mobile.waiting {
    border: 2px solid var(--warning);
    background: rgba(251, 188, 4, 0.1);
}

.berth-mobile.idle {
    border: 1px solid rgba(255,255,255,0.1);
}

.berth-name {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.berth-status {
    font-size: 0.65rem;
    color: #888;
    margin-top: 2px;
}

.berth-mobile.working .berth-status { color: var(--secondary); }
.berth-mobile.waiting .berth-status { color: var(--warning); }

.berth-progress {
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.berth-progress .bar {
    height: 100%;
    background: var(--secondary);
}

.berth-percent {
    font-size: 0.6rem;
    color: var(--secondary);
    margin-top: 4px;
}

.worker-mobile-stats {
    display: flex;
    justify-content: space-around;
}

.worker-stat-item {
    text-align: center;
}

.stat-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 6px;
}

.stat-circle.working { background: var(--secondary); }
.stat-circle.idle { background: var(--primary); }
.stat-circle.off { background: var(--gray); }

.stat-name {
    font-size: 0.7rem;
    color: #888;
}

.app-bottom-nav.dark {
    background: #12121f;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.app-bottom-nav.dark .nav-item {
    color: #666;
}

.app-bottom-nav.dark .nav-item.active {
    color: var(--primary);
}
