* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --primary-light: #e8f0fe;
    --secondary: #34a853;
    --secondary-light: #e6f4ea;
    --warning: #fbbc04;
    --warning-light: #fef7e0;
    --danger: #ea4335;
    --danger-light: #fce8e6;
    --dark: #202124;
    --gray: #5f6368;
    --gray-light: #f1f3f4;
    --white: #ffffff;
    --border: #dadce0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

/* 固定导航 */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.nav-brand i {
    color: var(--primary);
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

/* 主内容区 */
.main-content {
    padding-top: 60px;
}

/* 系统区块 */
.system-section {
    padding: 60px 0;
}

.section-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

.section-header.dispatch {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.section-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.section-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 界面展示块 */
.screen-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.screen-block.reverse {
    flex-direction: row-reverse;
}

.screen-block.pc-block,
.screen-block.dashboard-block {
    flex-direction: column;
    gap: 40px;
}

.screen-info {
    flex: 1;
    max-width: 450px;
}

.role-badge {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
}

.role-badge.merchant { background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%); }
.role-badge.customer { background: linear-gradient(135deg, #34a853 0%, #1e8e3e 100%); }
.role-badge.weigher { background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); }
.role-badge.admin { background: linear-gradient(135deg, #ea4335 0%, #c62828 100%); }
.role-badge.worker { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.role-badge.leader { background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); }
.role-badge.dispatcher { background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%); }
.role-badge.dashboard { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }

.screen-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.screen-desc {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.scene-desc {
    margin-bottom: 25px;
}

.scene-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scene-label::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

.scene-text {
    display: block;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px 16px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gray-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gray);
}

.tag i {
    color: var(--primary);
}

/* 手机框架 */
.screen-preview {
    flex-shrink: 0;
}

.phone-frame {
    width: 320px;
    height: 650px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gray-light);
    border-radius: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* 隐藏滚动条但保持滚动功能 */
.phone-screen::-webkit-scrollbar {
    display: none;
}

.phone-screen {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* PC框架 */
.pc-preview {
    width: 100%;
    max-width: 1000px;
}

.pc-frame {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.pc-toolbar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
}

.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: var(--white);
    border-radius: 0 0 8px 8px;
    height: 500px;
    overflow: hidden;
}

/* 大屏框架 */
.dashboard-preview {
    width: 100%;
    max-width: 1100px;
}

.dashboard-frame {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    min-height: 500px;
}

/* 快速导航 */
.quick-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 100;
}

.quick-nav-title {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 10px;
    text-align: center;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.quick-link:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.quick-link i {
    width: 16px;
    text-align: center;
}

.quick-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

/* 页脚 */
.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 40px;
}

.footer p {
    opacity: 0.7;
}

/* ==================== 界面内容样式 ==================== */

/* 通用手机头部 */
.app-header {
    background: var(--primary);
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.app-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
}

.app-header-with-back {
    display: flex;
    align-items: center;
    padding: 40px 15px 15px;
    background: var(--primary);
    color: white;
}

.app-header-with-back i {
    margin-right: 15px;
}

/* 商户端 */
.merchant-home { background: var(--gray-light); height: 100%; }

.merchant-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: white;
    padding: 45px 18px 25px;
    border-radius: 0 0 25px 25px;
}

.merchant-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.merchant-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.merchant-name h3 { font-size: 1rem; margin-bottom: 2px; }
.merchant-name p { font-size: 0.75rem; opacity: 0.8; }

.balance-card {
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 16px;
}

.balance-label { font-size: 0.8rem; opacity: 0.9; margin-bottom: 4px; }
.balance-amount { font-size: 1.8rem; font-weight: bold; }

.balance-row {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.balance-item { text-align: center; }
.balance-item .num { font-size: 0.95rem; font-weight: 600; }
.balance-item .label { font-size: 0.65rem; opacity: 0.8; }

.app-content { padding: 16px; }

.qrcode-section {
    background: white;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.qrcode-box {
    width: 90px;
    height: 90px;
    background: var(--gray-light);
    border-radius: 10px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-box i { font-size: 3rem; color: var(--dark); }
.qrcode-section h4 { font-size: 0.9rem; color: var(--dark); margin-bottom: 3px; }
.qrcode-section p { font-size: 0.75rem; color: var(--gray); }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: white;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.menu-item { text-align: center; }

.menu-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 1rem;
    color: white;
}

.menu-item .icon.blue { background: var(--primary); }
.menu-item .icon.green { background: var(--secondary); }
.menu-item .icon.orange { background: #ff9800; }
.menu-item .icon.red { background: var(--danger); }
.menu-item .icon.purple { background: #6366f1; }

.menu-item span { font-size: 0.7rem; color: var(--gray); }

.section-title-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 10px;
}

.section-title-small h4 { font-size: 0.9rem; color: var(--dark); }
.section-title-small a { font-size: 0.75rem; color: var(--primary); text-decoration: none; }

.trade-list {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-light);
}

.trade-item:last-child { border-bottom: none; }
.trade-info h5 { font-size: 0.85rem; color: var(--dark); margin-bottom: 2px; }
.trade-info p { font-size: 0.7rem; color: var(--gray); }
.trade-amount { text-align: right; }
.trade-amount .money { font-size: 0.95rem; font-weight: 600; color: var(--secondary); }
.trade-amount .money.out { color: var(--danger); }
.trade-amount .money.pending { color: #ff9800; }
.trade-amount .fee { font-size: 0.65rem; color: var(--gray); }

/* 客户端 */
.customer-home { background: var(--gray-light); height: 100%; }

.customer-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e8e3e 100%);
    color: white;
    padding: 45px 18px 25px;
}

.wallet-card {
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.wallet-card .label { font-size: 0.8rem; opacity: 0.9; }
.wallet-card .amount { font-size: 2.2rem; font-weight: bold; margin: 8px 0; }

.wallet-actions { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }

.wallet-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.scan-section {
    background: white;
    margin: -18px 18px 0;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.scan-btn {
    width: 65px;
    height: 65px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.scan-section h4 { font-size: 0.9rem; color: var(--dark); }

.debt-card {
    background: var(--warning-light);
    border: 1px solid var(--warning);
    border-radius: 10px;
    padding: 12px;
    margin: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.debt-info { display: flex; align-items: center; gap: 8px; }
.debt-info i { color: var(--warning); font-size: 1.1rem; }
.debt-info h5 { font-size: 0.8rem; color: var(--dark); }
.debt-info p { font-size: 0.7rem; color: var(--gray); }
.debt-amount { font-size: 1rem; font-weight: bold; color: var(--danger); }

/* 称重员端 */
.weigh-form { 
    background: white; 
    min-height: 100%; 
    display: flex;
    flex-direction: column;
}

.weigh-header {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 40px 15px 15px;
    display: flex;
    align-items: center;
}

.weigh-header i { margin-right: 12px; }
.weigh-header h2 { font-size: 1.1rem; }

.weigh-merchant {
    background: var(--primary-light);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weigh-merchant .avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.weigh-merchant h4 { font-size: 0.9rem; color: var(--dark); }
.weigh-merchant p { font-size: 0.75rem; color: var(--gray); }

.form-section { 
    padding: 12px 14px; 
    background: white;
}
.form-section h5 { font-size: 0.8rem; color: var(--gray); margin-bottom: 10px; }

.form-row { display: flex; gap: 8px; margin-bottom: 10px; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-item label {
    font-size: 0.7rem;
    color: var(--gray);
}

.form-select, .form-input {
    width: 100%;
    padding: 10px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--gray-light);
    box-sizing: border-box;
}

.form-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.form-input[type="number"]::-webkit-outer-spin-button,
.form-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.weight-display {
    background: var(--dark);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    text-align: center;
    padding: 16px;
    border-radius: 10px;
    margin: 8px 0;
}

.weight-display span { font-size: 0.9rem; color: #888; }

.weigh-tip {
    font-size: 0.65rem;
    color: var(--gray);
    font-weight: normal;
}

.weigh-add-btn {
    width: 100%;
    padding: 10px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.weigh-records {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
}

.weigh-record-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: var(--gray-light);
    border-radius: 6px;
    margin-bottom: 6px;
}

.record-num {
    font-size: 0.7rem;
    color: var(--gray);
    width: 40px;
}

.record-weight {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

.record-del {
    color: var(--danger);
    cursor: pointer;
    padding: 4px;
    font-size: 0.7rem;
}

.weigh-record-total {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-top: 1px dashed var(--border);
    margin-top: 4px;
    font-size: 0.8rem;
}

.weigh-record-total span:first-child {
    color: var(--gray);
}

.total-weight {
    font-weight: bold;
    color: var(--primary);
    font-size: 0.95rem;
}

.item-summary {
    background: var(--secondary-light);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.8rem;
    border-bottom: 1px dashed var(--border);
}

.item-row:last-child { border-bottom: none; font-weight: bold; color: var(--secondary); }

.form-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 8px;
}

.form-btn.primary { background: var(--primary); color: white; }
.form-btn.secondary { background: var(--gray-light); color: var(--dark); }

/* 工人端 */
.worker-home { background: var(--gray-light); height: 100%; }

.worker-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 45px 18px 22px;
}

.worker-info { display: flex; align-items: center; gap: 12px; }

.worker-avatar {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.worker-name h3 { font-size: 1.1rem; }
.worker-name p { font-size: 0.8rem; opacity: 0.9; }

.worker-name .badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    margin-top: 4px;
}

.task-card {
    background: white;
    margin: -12px 16px 12px;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.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 {
    background: var(--warning-light);
    color: #b45309;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.task-card .status.working { background: var(--secondary-light); color: var(--secondary); }

.task-detail { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.task-detail .item { flex: 1; min-width: 45%; }
.task-detail .label { font-size: 0.7rem; color: var(--gray); }
.task-detail .value { font-size: 0.85rem; color: var(--dark); font-weight: 500; }

.sign-btn {
    width: 100%;
    padding: 12px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.sign-btn.signed { background: var(--gray-light); color: var(--gray); }

.salary-preview {
    background: white;
    margin: 0 16px;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.salary-preview .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.salary-preview h4 { font-size: 0.9rem; color: var(--dark); }
.salary-preview .month { font-size: 0.75rem; color: var(--gray); }

.salary-amount {
    text-align: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-light);
}

.salary-amount .label { font-size: 0.8rem; color: var(--gray); }
.salary-amount .money { font-size: 1.8rem; font-weight: bold; color: var(--primary); }

.salary-breakdown { display: flex; justify-content: space-around; padding-top: 12px; }
.salary-breakdown .item { text-align: center; }
.salary-breakdown .num { font-size: 1rem; font-weight: 600; color: var(--dark); }
.salary-breakdown .label { font-size: 0.7rem; color: var(--gray); }

/* 底部导航 */
.app-bottom-nav {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    z-index: 10;
}

.nav-item { text-align: center; color: var(--gray); font-size: 0.65rem; cursor: pointer; }
.nav-item i { font-size: 1.1rem; margin-bottom: 2px; display: block; }
.nav-item.active { color: var(--primary); }

/* 确保手机内容可以滚动到底部导航上方 */
.merchant-home,
.customer-home,
.worker-home,
.weigh-form {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.merchant-home .app-content,
.customer-home .app-content {
    flex: 1;
    padding-bottom: 20px;
}

/* PC管理后台 */
.admin-layout { display: flex; height: 100%; }

.admin-sidebar {
    width: 200px;
    background: var(--dark);
    color: white;
    padding: 16px 0;
    flex-shrink: 0;
}

.admin-logo {
    padding: 0 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 12px;
}

.admin-logo h3 {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-logo h3 i { color: var(--primary); }

.admin-menu { list-style: none; }

.admin-menu li {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #aaa;
    font-size: 0.8rem;
    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: 18px; }

.admin-main { flex: 1; background: var(--gray-light); overflow: auto; }

.admin-header {
    background: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.admin-header h2 { font-size: 1rem; color: var(--dark); }

.admin-user { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }

.admin-user .avatar {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.admin-content { padding: 16px 20px; }

.stats-row { display: flex; gap: 16px; margin-bottom: 16px; }

.stat-card {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 16px;
    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: 8px;
}

.stat-card .header span { font-size: 0.75rem; color: var(--gray); }
.stat-card .header i { font-size: 1.2rem; color: var(--primary); }
.stat-card .value { font-size: 1.5rem; font-weight: bold; color: var(--dark); }
.stat-card .change { font-size: 0.7rem; color: var(--secondary); margin-top: 4px; }
.stat-card .change.danger { color: var(--danger); }

.data-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.data-card .header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-card .header h4 { font-size: 0.9rem; color: var(--dark); }

.data-table { width: 100%; border-collapse: collapse; }

.data-table th, .data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.75rem;
}

.data-table th { background: var(--gray-light); color: var(--gray); font-weight: 500; }

.status-badge { padding: 3px 10px; border-radius: 12px; font-size: 0.7rem; }
.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: 20px;
}

.dashboard-header-inner h1 {
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-header-inner h1 i { color: var(--primary); }
.dashboard-time { color: #888; font-size: 0.9rem; }

.dashboard-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.dashboard-stat {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.dashboard-stat .number { font-size: 2rem; 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.8rem; margin-top: 4px; }

.dashboard-main { display: flex; gap: 16px; }
.dashboard-left { flex: 2; }
.dashboard-right { flex: 1; }

.berth-section {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.berth-section h3 { color: white; font-size: 0.9rem; margin-bottom: 12px; }

.berth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.berth-item {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 12px;
    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.9rem; margin-bottom: 4px; }
.berth-item .status { font-size: 0.7rem; color: #888; }
.berth-item.working .status { color: var(--secondary); }
.berth-item.waiting .status { color: var(--warning); }

.berth-item .progress {
    margin-top: 6px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.berth-item .progress-bar { height: 100%; background: var(--secondary); }

.task-list-section {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.task-list-section h3 { color: white; font-size: 0.9rem; margin-bottom: 12px; }

.task-list-item {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-list-item .info h5 { color: white; font-size: 0.85rem; margin-bottom: 4px; }
.task-list-item .info p { color: #888; font-size: 0.7rem; }

.task-list-item .action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.worker-status-section {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.worker-status-section h3 { color: white; font-size: 0.9rem; margin-bottom: 12px; }

.worker-status-chart { display: flex; justify-content: center; gap: 20px; }

.status-ring { text-align: center; }

.ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.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: 52px;
    height: 52px;
    background: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.status-ring .label { color: #888; font-size: 0.75rem; }

/* ==================== 班组长端新样式 ==================== */
.leader-home {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.leader-home .app-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.leader-header {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 40px 14px 16px;
}

.leader-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.leader-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leader-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.leader-name h3 { font-size: 1rem; margin-bottom: 1px; }
.leader-name p { font-size: 0.7rem; opacity: 0.9; }

.leader-stats {
    display: flex;
    gap: 8px;
}

.leader-stat {
    text-align: center;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 50px;
}

.leader-stat .num { font-size: 1.1rem; font-weight: bold; line-height: 1.2; }
.leader-stat .label { font-size: 0.6rem; opacity: 0.85; }

.leader-content {
    padding: 14px;
    padding-bottom: 70px;
    flex: 1;
}

/* 新任务提醒卡片 */
.new-task-alert {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.15);
    border: 2px solid var(--danger);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: var(--danger); }
    50% { border-color: #ff8a80; }
}

.alert-header {
    background: linear-gradient(135deg, var(--danger) 0%, #c62828 100%);
    color: white;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-badge {
    background: white;
    color: var(--danger);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.alert-time { font-size: 0.7rem; opacity: 0.9; }

.alert-body { padding: 14px; }

.alert-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-title i { color: var(--primary); }

.alert-info {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.alert-info span {
    font-size: 0.75rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.alert-info i { color: var(--primary); font-size: 0.7rem; }

.alert-actions {
    display: flex;
    gap: 10px;
    padding: 0 14px 14px;
}

.alert-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.alert-btn.reject {
    background: var(--gray-light);
    color: var(--gray);
}

.alert-btn.accept {
    background: var(--secondary);
    color: white;
}

/* 进行中任务卡片 */
.current-task {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.current-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: white;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-header h4 {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-ring {
    width: 36px;
    height: 36px;
    background: conic-gradient(white 0% 65%, rgba(255,255,255,0.3) 65% 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring span {
    background: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
}

.current-body { padding: 14px; }

.current-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.current-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.progress-bar-bg {
    flex: 1;
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, #00c853 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

.current-progress span {
    font-size: 0.75rem;
    color: var(--gray);
    white-space: nowrap;
}

.current-crew {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: var(--gray-light);
    border-radius: 10px;
    margin-top: 4px;
}

.crew-label {
    font-size: 0.7rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}

.crew-avatars {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.crew-avatar {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 500;
}

.crew-avatar.empty {
    background: white;
    color: var(--gray);
    border: 2px dashed var(--border);
}

.crew-count {
    font-size: 0.7rem;
    color: var(--secondary);
    font-weight: 600;
    margin-left: auto;
}

.complete-btn {
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .quick-nav { display: none; }
    .screen-block { padding: 60px 30px; gap: 40px; }
}

@media (max-width: 900px) {
    .screen-block { flex-direction: column !important; }
    .screen-info { max-width: 100%; text-align: center; }
    .feature-tags { justify-content: center; }
    .fixed-nav { padding: 0 20px; }
    .nav-brand span { display: none; }
    .section-header { flex-direction: column; padding: 60px 20px; }
    .section-icon { width: 80px; height: 80px; font-size: 2rem; }
    .section-title h1 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
    .phone-frame { width: 280px; height: 560px; }
    .nav-links { gap: 4px; }
    .nav-link { padding: 6px 12px; font-size: 0.8rem; }
}
