/* 东盛银豹智能入库系统 2.0 - 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F6EF7;
    --primary-light: #6B8AFF;
    --primary-dark: #3A56D4;
    --success-color: #52C41A;
    --warning-color: #FAAD14;
    --danger-color: #F5222D;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #F5F7FA;
    --bg-white: #FFFFFF;
    --border-color: #E8E8E8;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* 登录页面 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.login-logo h1 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    transition: border-color 0.3s;
}

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

.login-links {
    text-align: center;
    margin-top: 16px;
}

.login-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(79, 110, 247, 0.1);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* 应用头部 */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    box-shadow: var(--shadow);
}

.menu-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.app-title {
    font-size: 16px;
    font-weight: 500;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    z-index: 200;
    transition: left 0.3s;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

.sidebar-header {
    padding: 20px;
    background: var(--primary-color);
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 12px;
}

.user-name {
    font-size: 16px;
    font-weight: 500;
}

.user-role {
    font-size: 12px;
    opacity: 0.8;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-item:hover {
    background: var(--bg-primary);
}

.nav-item.active {
    background: rgba(79, 110, 247, 0.1);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.nav-icon {
    margin-right: 12px;
    font-size: 18px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

/* 主内容区 */
.app-main {
    margin-top: 50px;
    padding: 16px;
    min-height: calc(100vh - 50px);
}

.page {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.page-header h2 {
    font-size: 18px;
    flex: 1;
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px 8px 0;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
}

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

.stat-icon {
    font-size: 32px;
    margin-right: 12px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 快速操作 */
.section-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.action-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px 8px;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.action-card:active {
    transform: scale(0.95);
}

.action-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.action-name {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 表单卡片 */
.form-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

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

.card-header h3 {
    font-size: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 商品明细 */
.product-items {
    margin-bottom: 12px;
}

.product-item {
    background: var(--bg-primary);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
}

.product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.product-item-title {
    font-weight: 500;
    font-size: 14px;
}

.product-item-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

.order-summary {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.summary-row span:last-child {
    font-weight: 500;
    color: var(--primary-color);
}

/* 底部操作 */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 50;
}

.bottom-actions .btn {
    flex: 1;
}

/* 订单列表 */
.order-list {
    margin-bottom: 80px;
}

.order-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-no {
    font-weight: 500;
    font-size: 14px;
}

.order-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.status-pending { background: #FFF7E6; color: #FA8C16; }
.status-submitted { background: #E6F7FF; color: #1890FF; }
.status-uploaded { background: #F6FFED; color: #52C41A; }

.order-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.order-amount {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-bar select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-white);
}

/* 搜索栏 */
.search-bar {
    margin-bottom: 16px;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    background: var(--bg-white);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 标签页 */
.finance-tabs,
.admin-tabs {
    display: flex;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 供货商列表 */
.supplier-list,
.product-list {
    margin-bottom: 80px;
}

.supplier-item,
.product-item-list {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.supplier-name,
.product-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.supplier-info,
.product-info {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
    flex: 1;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.upload-text {
    color: var(--text-secondary);
}

.photo-preview {
    text-align: center;
    margin-bottom: 16px;
}

.photo-preview img {
    max-width: 100%;
    border-radius: var(--radius);
    margin-bottom: 10px;
}

/* 语音区域 */
.voice-area {
    text-align: center;
    padding: 40px 20px;
}

.voice-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.voice-btn.recording {
    background: var(--danger-color);
    animation: pulse 1s infinite;
}

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

.voice-icon {
    font-size: 36px;
}

.voice-text {
    font-size: 12px;
}

.voice-result {
    margin-top: 20px;
    text-align: left;
    background: var(--bg-primary);
    padding: 12px;
    border-radius: 6px;
    min-height: 60px;
}

/* 扫码区域 */
.scan-area {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.scan-area input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 500;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* 响应式 */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .action-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .app-main {
        max-width: 800px;
        margin: 50px auto 0;
    }
}

/* 优化：隐藏页面内重复的返回按钮，统一使用顶部导航栏返回 */
.page-header .back-btn { display: none; }
.page-header h2 { text-align: center; width: 100%; }

/* ========== 手机端深度适配优化 ========== */

/* 全局触摸反馈优化 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 输入框和按钮最小高度，适合触屏操作 */
input, select, textarea, button {
    min-height: 44px;
    font-size: 16px; /* 防止iOS自动缩放 */
}

/* iOS表单元素样式重置 */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    background: var(--bg-white);
    width: 100%;
}

/* 输入框聚焦样式 */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.1);
}

/* 按钮触摸反馈 */
.btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* 主内容区域适配 */
.app-main {
    padding: 16px;
    padding-top: 66px; /* 顶部导航栏高度 + 间距 */
    padding-bottom: 80px; /* 底部操作栏高度 + 安全区域 */
    min-height: 100vh;
}

/* 表单卡片间距优化 */
.form-card {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 12px;
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.form-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* 表单组间距 */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

/* 商品明细卡片 */
.product-item {
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-item-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.product-item-remove {
    background: transparent;
    border: none;
    color: var(--danger-color);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    min-height: auto;
    line-height: 1;
}

/* 底部固定操作栏 */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)); /* iPhone底部安全区域 */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 12px;
    z-index: 99;
}

.bottom-actions .btn {
    flex: 1;
    min-height: 48px;
    font-size: 16px;
    font-weight: 600;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* 操作按钮网格 */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.action-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.action-card:active {
    transform: scale(0.97);
    background: var(--bg-primary);
}

.action-card .action-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.action-card .action-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 侧边栏菜单项 */
.sidebar-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu .menu-item:active {
    background: var(--bg-primary);
}

.sidebar-menu .menu-item.active {
    background: rgba(79, 110, 247, 0.08);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-menu .menu-item .menu-icon {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* 列表项 */
.list-item {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
}

.list-item:active {
    transform: scale(0.99);
    background: var(--bg-primary);
}

/* 标签/徽章 */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success { background: rgba(82, 196, 26, 0.1); color: var(--success-color); }
.badge-warning { background: rgba(250, 173, 20, 0.1); color: var(--warning-color); }
.badge-danger { background: rgba(245, 34, 45, 0.1); color: var(--danger-color); }
.badge-info { background: rgba(79, 110, 247, 0.1); color: var(--primary-color); }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state .empty-text {
    font-size: 15px;
}

/* 弹窗适配 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end; /* 手机端从底部弹出 */
    justify-content: center;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.modal.show .modal-content {
    transform: translateY(0);
}

/* 可搜索下拉组件 */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--bg-white);
    cursor: pointer;
    transition: border-color 0.2s;
}

.searchable-select-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.searchable-select-dropdown.show {
    display: block;
}

.searchable-select-search {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    z-index: 1;
}

.searchable-select-search input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
}

.searchable-select-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.searchable-select-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.searchable-select-option {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.searchable-select-option:hover,
.searchable-select-option.highlight {
    background: var(--primary-light);
    color: white;
}

.searchable-select-option.selected {
    background: var(--primary-color);
    color: white;
}

.searchable-select-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

/* 紧凑模式 */
.product-items.compact .product-item {
    padding: 8px 12px;
    margin-bottom: 8px;
}

.product-items.compact .product-item-header {
    margin-bottom: 6px;
}

.product-items.compact .product-item-title {
    font-size: 13px;
    font-weight: 600;
}

.product-items.compact .form-group {
    margin-bottom: 6px;
}

.product-items.compact .form-group input,
.product-items.compact .form-group select {
    padding: 5px 8px;
    font-size: 13px;
}

.product-items.compact .form-row {
    gap: 8px;
}

.product-items.compact .input-label {
    font-size: 11px;
    margin-bottom: 2px;
}

/* 桌面端弹窗居中 */
@media (min-width: 768px) {
    .modal {
        align-items: center;
    }
    .modal-content {
        border-radius: 16px;
        transform: scale(0.9);
    }
    .modal.show .modal-content {
        transform: scale(1);
    }
}

/* 超小屏幕优化（iPhone SE等） */
@media (max-width: 360px) {
    body {
        font-size: 13px;
    }
    .app-header {
        height: 46px;
    }
    .app-main {
        padding-top: 62px;
    }
    .stat-card .stat-value {
        font-size: 20px;
    }
    .action-card {
        padding: 16px 12px;
    }
    .action-card .action-icon {
        font-size: 28px;
    }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .app-main {
        padding-top: 56px;
    }
    .login-page {
        padding: 10px;
    }
    .login-container {
        padding: 20px;
    }
}

/* 详情行样式 */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

/* 订单列表项样式 */
.order-item {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
}

.order-item:active {
    transform: scale(0.99);
    background: var(--bg-primary);
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-no {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.order-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.status-pending { background: rgba(250, 173, 20, 0.1); color: var(--warning-color); }
.status-submitted { background: rgba(79, 110, 247, 0.1); color: var(--primary-color); }
.status-uploaded { background: rgba(82, 196, 26, 0.1); color: var(--success-color); }

.order-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.order-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 8px;
}

/* 筛选栏样式 */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-bar select {
    flex: 1;
    min-height: 40px;
    font-size: 14px;
    padding: 8px 12px;
}

/* 浮动返回按钮 */
.floating-back-btn {
    position: fixed;
    top: 70px;
    left: 15px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 2px 12px rgba(79, 110, 247, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}
.floating-back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(79, 110, 247, 0.5);
}
.floating-back-btn:active {
    transform: scale(0.95);
}
@media (max-width: 768px) {
    .floating-back-btn {
        top: 65px;
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
