@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e94560;
    --accent-hover: #d63d56;
    --success: #00d9a5;
    --warning: #ffa502;
    --surface: #f8f9fc;
    --surface-dark: #eef0f5;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--surface);
    color: var(--text);
    overflow: hidden;
}

#app {
    height: 100vh;
    width: 100vw;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

/* 页面切换 */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.page.active {
    display: flex;
}

/* ========== 登录页面 ========== */
#login-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    justify-content: center;
    align-items: center;
    padding: 40px 32px;
}

.login-container {
    width: 100%;
    max-width: 360px;
}

.logo-section {
    text-align: center;
    margin-bottom: 48px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--accent);
    background: rgba(233, 69, 96, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(10px);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.app-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.app-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.login-form {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.1);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.3);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.15);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    letter-spacing: 2px;
}

.btn-login:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* ========== 列表页面 ========== */
#list-page {
    background: var(--surface);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.user-info:hover {
    background: var(--surface-dark);
}

.user-info:active {
    transform: scale(0.96);
}

.user-name {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.order-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px;
}

.order-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.order-card:active {
    transform: scale(0.98);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.order-id {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--text);
    letter-spacing: 0.5px;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.order-status.processing {
    background: rgba(0, 217, 165, 0.15);
    color: var(--success);
}

.order-status.completed {
    background: rgba(107, 114, 128, 0.15);
    color: var(--text-secondary);
}

.order-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--surface-dark);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--warning));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.progress-fill.complete {
    background: var(--success);
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    font-family: 'Rajdhani', sans-serif;
}

.order-detail {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item .label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}

.detail-item .value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* 底部导航 */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 24px;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 10;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 4px 16px;
    transition: all 0.3s ease;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item.active svg,
.nav-item.active span {
    color: var(--accent);
}

.nav-item:active svg {
    transform: scale(0.9);
}

/* ========== 扫码页面 ========== */
#scan-page {
    background: var(--surface);
}

.scan-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 32px;
}

.scan-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.scan-frame {
    width: 240px;
    height: 240px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scan-corner {
    position: absolute;
    width: 32px;
    height: 32px;
    border-color: var(--accent);
    border-style: solid;
    border-width: 0;
}

.scan-corner.top-left {
    top: 16px;
    left: 16px;
    border-top-width: 4px;
    border-left-width: 4px;
    border-top-left-radius: 8px;
}

.scan-corner.top-right {
    top: 16px;
    right: 16px;
    border-top-width: 4px;
    border-right-width: 4px;
    border-top-right-radius: 8px;
}

.scan-corner.bottom-left {
    bottom: 16px;
    left: 16px;
    border-bottom-width: 4px;
    border-left-width: 4px;
    border-bottom-left-radius: 8px;
}

.scan-corner.bottom-right {
    bottom: 16px;
    right: 16px;
    border-bottom-width: 4px;
    border-right-width: 4px;
    border-bottom-right-radius: 8px;
}

.scan-line {
    position: absolute;
    top: 16px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent), 0 0 20px rgba(233, 69, 96, 0.5);
    animation: scanMove 2s ease-in-out infinite;
}

@keyframes scanMove {
    0%, 100% { top: 16px; opacity: 1; }
    50% { top: calc(100% - 18px); opacity: 1; }
}

.scan-icon {
    width: 64px;
    height: 64px;
    color: rgba(255,255,255,0.3);
}

.scan-icon svg {
    width: 100%;
    height: 100%;
}

.scan-tip {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.scan-actions {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scan-input-group {
    display: flex;
    gap: 8px;
}

.scan-input-group input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: all 0.3s ease;
}

.scan-input-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-scan-confirm {
    padding: 14px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-scan-confirm:hover {
    background: var(--accent-hover);
}

.btn-simulate-scan {
    width: 100%;
    padding: 14px;
    background: var(--surface-dark);
    color: var(--text-secondary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-simulate-scan:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

/* 身份码扫描页特殊样式 */
.login-scan-frame {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
}

/* ========== 报工页面 ========== */
#report-page {
    background: var(--surface);
}

#report-page .page-header {
    padding: 12px 16px;
}

.btn-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--surface-dark);
}

.btn-back svg {
    width: 24px;
    height: 24px;
}

.report-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 20px;
}

.current-order {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.current-order-id {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.current-order-progress {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 500;
}

.process-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    padding-left: 4px;
}

/* 折叠按钮 - 其他工序样式（区别于推荐） */
.collapse-btn {
    width: 100%;
    padding: 18px 20px;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-bottom: 14px;
}

.collapse-btn:hover {
    border-color: var(--text-light);
    background: var(--surface-dark);
}

.collapse-btn span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
}

.collapse-icon {
    width: 24px;
    height: 24px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.collapse-btn.expanded .collapse-icon {
    transform: rotate(180deg);
}

.collapse-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.collapse-content.expanded {
    max-height: 800px;
    opacity: 1;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.category-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.category-card.active {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.category-icon.prepare { background: #6366f1; }
.category-icon.powder { background: #f59e0b; }
.category-icon.paint { background: var(--accent); }
.category-icon.polish { background: #8b5cf6; }
.category-icon.qc { background: #10b981; }
.category-icon.package { background: #3b82f6; }
.category-icon.outbound { background: #f97316; }

.category-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

/* 工序小项选择页 */
.subprocess-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subprocess-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subprocess-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.subprocess-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subprocess-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    padding-left: 4px;
}

.subprocess-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.subprocess-btn {
    padding: 18px 24px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 100px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subprocess-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

.subprocess-btn:active {
    transform: scale(0.96);
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* 常选推荐标签 */
.section-title-recommended {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommended-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* 工序名称大卡片 */
.process-name-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 24px 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
}

.process-name-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    letter-spacing: 1px;
}

.process-name-value {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
}

/* 完成数量显示框 */
.quantity-display-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
}

.quantity-display-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.quantity-display-inner {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 24px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    min-width: 140px;
    justify-content: center;
}

.quantity-display-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.quantity-display-unit {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* 数字键盘 */
.number-pad {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.numpad-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.num-btn {
    height: 64px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.num-btn:hover {
    background: var(--surface-dark);
    border-color: var(--text-light);
}

.num-btn:active {
    transform: scale(0.95);
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.btn-delete svg {
    width: 28px;
    height: 28px;
}

.btn-confirm {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.btn-confirm:hover {
    background: #00c295;
    border-color: #00c295;
    box-shadow: 0 4px 15px rgba(0, 217, 165, 0.4);
}

.btn-confirm svg {
    width: 32px;
    height: 32px;
}

/* ========== 订单详情页面 ========== */
#order-detail-page {
    background: var(--surface);
}

.detail-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.detail-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.detail-process-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-process-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: all 0.2s ease;
}

.detail-process-item.completed {
    background: rgba(0, 217, 165, 0.08);
    border-left: 4px solid var(--success);
}

.detail-process-item.processing {
    background: rgba(233, 69, 96, 0.08);
    border-left: 4px solid var(--accent);
}

.detail-process-item.pending {
    background: var(--surface);
    border-left: 4px solid var(--border);
}

.detail-process-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-process-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.detail-process-item.completed .detail-process-dot {
    background: var(--success);
}

.detail-process-item.processing .detail-process-dot {
    background: var(--accent);
}

.detail-process-item.pending .detail-process-dot {
    background: var(--border);
}

.detail-process-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.detail-process-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-process-count {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    min-width: 60px;
    text-align: right;
}

.detail-process-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 52px;
    text-align: center;
}

.detail-process-item.completed .detail-process-status {
    background: rgba(0, 217, 165, 0.15);
    color: var(--success);
}

.detail-process-item.processing .detail-process-status {
    background: rgba(233, 69, 96, 0.15);
    color: var(--accent);
}

.detail-process-item.pending .detail-process-status {
    background: var(--surface-dark);
    color: var(--text-light);
}

.detail-summary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: var(--shadow);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.summary-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.summary-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

/* 订单列表页底部按钮 */
.list-page-footer {
    padding: 16px 20px 24px;
    background: #fff;
    border-top: 1px solid var(--border);
}

.btn-back-to-scan {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 1px;
}

.btn-back-to-scan:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.btn-back-to-scan svg {
    width: 22px;
    height: 22px;
}

/* 工序详情页 - 信息列表 */
.detail-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.detail-info-item:hover {
    background: var(--surface-dark);
}

.detail-info-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-info-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

/* 师傅标签 */
.worker-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b6b 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
    letter-spacing: 0.5px;
}

/* 修改数量区域 */
.edit-quantity-box {
    background: linear-gradient(135deg, #fff 0%, var(--surface) 100%);
    border-radius: var(--radius);
    padding: 24px 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.edit-quantity-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--warning));
}

.edit-quantity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.edit-quantity-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.edit-quantity-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(0, 217, 165, 0.15);
    color: var(--success);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.edit-quantity-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 16px 36px;
    background: #fff;
    border-radius: var(--radius);
    min-width: 160px;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid var(--border);
}

.edit-quantity-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(233, 69, 96, 0.15);
}

.edit-quantity-unit {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* 工序详情弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--surface-dark);
    color: var(--text);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 20px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}

.modal-info-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

/* ========== 我的页面 ========== */
#profile-page {
    background: var(--surface);
}

.profile-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px;
}

.profile-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 3px solid rgba(255,255,255,0.2);
}

.profile-avatar svg {
    width: 40px;
    height: 40px;
}

.profile-info {
    text-align: center;
    color: #fff;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.profile-position {
    font-size: 14px;
    opacity: 0.75;
    font-weight: 500;
}

.profile-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.profile-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--surface-dark);
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 16px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-logout {
    width: 100%;
    padding: 16px;
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-logout:hover {
    background: var(--accent);
    color: #fff;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

/* 页面切换动画 */
.page {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page.active {
    opacity: 1;
    transform: translateX(0);
}

/* 响应式 */
@media (max-height: 700px) {
    .num-btn {
        height: 56px;
        font-size: 24px;
    }

    .category-card {
        padding: 10px 6px;
    }

    .category-icon {
        width: 36px;
        height: 36px;
    }

    .scan-frame {
        width: 200px;
        height: 200px;
    }
}
