/* ============================================
   嘉鸿-职工内部订货提报平台 前端样式
   移动端优先设计
   ============================================ */

:root {
    --primary: #4A90D9;
    --primary-dark: #357ABD;
    --primary-light: #E8F2FC;
    --success: #52C41A;
    --warning: #FAAD14;
    --danger: #FF4D4F;
    --info: #1890FF;
    --text-main: #333333;
    --text-secondary: #666666;
    --text-hint: #999999;
    --bg-page: #F5F6FA;
    --bg-card: #FFFFFF;
    --border: #EBEBEB;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-active: 0 4px 20px rgba(0,0,0,0.1);
    --nav-height: 56px;
    --safe-bottom: env(safe-area-inset-bottom);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    color: var(--text-main);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

input, textarea, button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

a { text-decoration: none; color: inherit; }

/* ==================== 通用组件 ==================== */

/* Toast提示 */
#toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: rgba(0,0,0,0.78);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 280px;
    text-align: center;
    line-height: 1.5;
    animation: toastIn 0.3s ease;
    word-break: break-all;
}

@keyframes toastIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* 加载遮罩 */
#loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.4);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

#loading-overlay.show { display: flex; }

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(74,144,217,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal弹窗 */
.modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-mask.show { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: #fff;
    border-radius: 16px;
    width: 86%;
    max-width: 400px;
    overflow: hidden;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 20px 20px 8px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
}

.modal-body {
    padding: 8px 20px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    border-top: 1px solid var(--border);
}

.modal-btn {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    background: none;
    border: none;
    transition: background 0.15s;
}

.modal-btn:active { background: #f0f0f0; }

.modal-btn.cancel { color: var(--text-secondary); border-right: 1px solid var(--border); }
.modal-btn.confirm { color: var(--primary); font-weight: 600; }

/* ==================== 登录页 ==================== */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-logo {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.login-logo svg { width: 40px; height: 40px; }

.login-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-bottom: 32px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.login-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

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

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

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
    background: #FAFBFC;
}

.form-input:focus {
    border-color: var(--primary);
    background: #fff;
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    resize: vertical;
    transition: border-color 0.2s;
    background: #FAFBFC;
    line-height: 1.6;
}

.form-textarea:focus {
    border-color: var(--primary);
    background: #fff;
}

.code-group {
    display: flex;
    gap: 10px;
}

.code-group .form-input { flex: 1; }

.btn-send-code {
    flex-shrink: 0;
    width: 120px;
    height: 48px;
    border: 1.5px solid var(--primary);
    border-radius: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    background: var(--primary-light);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send-code:disabled {
    border-color: var(--border);
    color: var(--text-hint);
    background: #F5F5F5;
    cursor: not-allowed;
}

.btn-primary {
    width: 100%;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.btn-primary:active { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* 加急开关 */
.urgent-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 12px 16px;
    background: #F5F5F5;
    border-radius: 10px;
}
.urgent-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.toggle-switch {
    width: 44px;
    height: 24px;
    background: #CCC;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s;
    flex-shrink: 0;
}
.toggle-switch.active {
    background: #FF4D4F;
}
.toggle-knob {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.active .toggle-knob {
    left: 22px;
}

/* 入账情况选择栏 */
.payment-toggle-wrap {
    display: flex;
    gap: 8px;
}
.payment-option {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border: 1.5px solid #E8E8E8;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    background: #FAFBFC;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.payment-option:active { transform: scale(0.97); }
.payment-option.active[data-value="未入账"] {
    border-color: #FA8C16;
    background: #FFF7E6;
    color: #D46B08;
    font-weight: 600;
}
.payment-option.active[data-value="已入账"] {
    border-color: #52C41A;
    background: #F6FFED;
    color: #389E0D;
    font-weight: 600;
}

/* 入账标签（卡片中显示） */
.payment-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 4px;
    vertical-align: middle;
}
.payment-tag.paid {
    background: #F6FFED;
    color: #52C41A;
    border: 1px solid #D9F7BE;
}
.payment-tag.unpaid {
    background: #FFF7E6;
    color: #FA8C16;
    border: 1px solid #FFE7BA;
}

/* 入账操作日志标签 */
.log-tag-payment {
    background: #F9F0FF;
    color: #722ED1;
}

/* 加急标签 */
.urgent-badge {
    display: inline-block;
    padding: 1px 6px;
    background: #FF4D4F;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.login-tip {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-hint);
    line-height: 1.6;
}

.login-admin-link {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-hint);
}

.login-admin-link a {
    color: var(--primary);
    font-weight: 500;
}

/* ==================== 主应用布局 ==================== */

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    height: 52px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.app-header .header-right {
    position: absolute;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-header .header-user {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
}

.app-header .header-logout {
    font-size: 13px;
    opacity: 0.85;
    cursor: pointer;
}

.app-content {
    flex: 1;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px);
    overflow-x: hidden;
}

/* ==================== 底部导航 ==================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-bottom));
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 100;
    padding-bottom: var(--safe-bottom);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-hint);
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.nav-item.active { color: var(--primary); }

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item .nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* ==================== 页面切换 ==================== */

.page {
    display: none;
    animation: pageIn 0.25s ease;
}

.page.active { display: block; }

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

/* ==================== 提报页面 ==================== */

.submit-page { padding: 16px; }

.submit-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.submit-card .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-card .card-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

/* ==================== 公共查询页面 ==================== */

.query-page { padding: 12px; }

.search-bar {
    background: #fff;
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.search-input-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.search-input-wrap .form-input {
    flex: 1;
    height: 40px;
    font-size: 14px;
}

.btn-search {
    flex-shrink: 0;
    height: 40px;
    padding: 0 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 2px;
}

.filter-chip {
    padding: 6px 2px;
    border-radius: 20px;
    font-size: 11px;
    background: #F2F3F5;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    user-select: none;
    line-height: 1.4;
    text-align: center;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-chip:active {
    transform: scale(0.95);
}

.filter-chip.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 500;
}

/* 各状态标签选中态使用对应状态色 */
.filter-chip.active[data-status="待处理"] {
    background: #FFF1F0; color: #FF4D4F; border-color: #FFCCC7;
}
.filter-chip.active[data-status="缺货-无法订购"] {
    background: #FFF7E6; color: #FA8C16; border-color: #FFD591;
}
.filter-chip.active[data-status="已订购-运输中"] {
    background: #E6F7FF; color: #1890FF; border-color: #91D5FF;
}
.filter-chip.active[data-status="已到店-待通知"] {
    background: #E6FFFB; color: #13C2C2; border-color: #87E8DE;
}
.filter-chip.active[data-status="已通知-待取货"] {
    background: #F9F0FF; color: #722ED1; border-color: #D3ADF7;
}
.filter-chip.active[data-status="已完成取货"] {
    background: #F6FFED; color: #52C41A; border-color: #B7EB8F;
}
.filter-chip.active[data-status="其他情况"] {
    background: #F0F5FF; color: #2F54EB; border-color: #ADC6FF;
}
.filter-chip.active[data-status="urgent"] {
    background: #FFF1F0; color: #FF4D4F; border-color: #FFA39E;
    font-weight: 600;
}

/* ==================== 订单列表 ==================== */

.order-list { padding: 0; }

.order-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.15s;
}

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

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

.order-customer {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.order-customer .phone-tag {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-hint);
    margin-left: 6px;
}

/* 状态标签 */
.status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-tag.status-pending    { background: #FFF1F0; color: #CF1322; }
.status-tag.status-shortage   { background: #FFF7E6; color: #D46B08; }
.status-tag.status-shipping   { background: #E6F7FF; color: #096DD9; }
.status-tag.status-arrived    { background: #E6FFFB; color: #08979C; }
.status-tag.status-notified   { background: #F9F0FF; color: #531DAB; }
.status-tag.status-done       { background: #F6FFED; color: #389E0D; }
.status-tag.status-other      { background: #F5F5F5; color: #8C8C8C; }
.status-tag.status-default    { background: #F0F0F0; color: #666; }

/* 订单卡片状态色（左侧边框） */
.order-card.status-pending    { border-left: 3px solid #FF4D4F; }
.order-card.status-shortage   { border-left: 3px solid #FA8C16; }
.order-card.status-shipping   { border-left: 3px solid #1890FF; }
.order-card.status-arrived    { border-left: 3px solid #13C2C2; }
.order-card.status-notified   { border-left: 3px solid #722ED1; }
.order-card.status-done       { border-left: 3px solid #52C41A; }
.order-card.status-other      { border-left: 3px solid #BFBFBF; }
.order-card.status-default    { border-left: 3px solid #BFBFBF; }

.order-info-row {
    display: flex;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.order-info-row:last-of-type {
    margin-bottom: 0;
}

.order-info-row .label {
    flex-shrink: 0;
    width: 75px;
    color: var(--text-hint);
}

.order-info-row .value {
    flex: 1;
    word-break: break-all;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #F5F5F5;
    font-size: 12px;
    color: var(--text-hint);
}

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

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

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    opacity: 0.3;
}

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

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 16px;
    color: var(--text-hint);
    font-size: 13px;
}

.load-more .loading-dots {
    display: inline-flex;
    gap: 4px;
}

.load-more .loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-hint);
    animation: dotPulse 1.4s infinite ease-in-out;
}

.load-more .loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.load-more .loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

/* ==================== 我的页面 ==================== */

.my-page { padding: 12px; }

.my-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
}

.my-header .avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}

.my-header .my-info {
    flex: 1;
}

.my-header .my-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.my-header .my-phone {
    font-size: 13px;
    opacity: 0.85;
}

.my-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.my-stat-item {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 14px 6px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.my-stat-item:active {
    transform: scale(0.96);
}

.my-stat-item.active {
    border-color: var(--primary);
    background: #F0F5FF;
}

.my-stat-item.active .stat-num {
    color: var(--primary);
}

.my-stat-item .stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.my-stat-item .stat-label {
    font-size: 12px;
    color: var(--text-hint);
    margin-top: 2px;
}

/* ==================== 订单详情弹窗 ==================== */

.detail-modal .modal-box {
    max-width: 420px;
}

.detail-modal .modal-header {
    padding-bottom: 0;
}

.detail-modal .detail-body {
    padding: 12px 20px;
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
}

.detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #F5F5F5;
    font-size: 14px;
}

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

.detail-row .detail-label {
    flex-shrink: 0;
    width: 80px;
    color: var(--text-hint);
}

.detail-row .detail-value {
    flex: 1;
    color: var(--text-main);
    word-break: break-all;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* 可点击的链接样式（客户姓名、电话等） */
.link-text {
    color: #1677FF;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}
.link-text:hover {
    opacity: 0.8;
    text-decoration: underline;
}
a.link-text {
    text-decoration: none;
}

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

/* 操作记录 */
.log-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}
.log-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}
.log-item {
    padding: 8px 12px;
    background: #F7F8FA;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid var(--primary);
}
.log-item:last-child {
    margin-bottom: 0;
}
.log-item-main {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.log-user {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}
.log-tag {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}
.log-tag-admin {
    background: #FFF7E6;
    color: #D48806;
}
.log-tag-staff {
    background: #E6F7FF;
    color: #1890FF;
}
.log-time {
    font-size: 12px;
    color: var(--text-hint);
    margin-left: auto;
}
.log-item-action {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.log-item-action b {
    color: var(--text-main);
    font-weight: 600;
}
.log-item-remark {
    font-size: 12px;
    color: var(--text-hint);
    margin-top: 2px;
}
.log-empty {
    font-size: 13px;
    color: var(--text-hint);
    text-align: center;
    padding: 12px 0;
}

/* 详情弹窗中的表单元素 */
.detail-modal .form-group {
    margin: 12px 0;
}
.detail-modal select.form-input {
    height: 44px;
    font-size: 15px;
    background: #FAFBFC;
}
.detail-modal textarea.form-input {
    height: auto;
    min-height: 80px;
    padding: 12px 16px;
    line-height: 1.6;
    resize: vertical;
}

/* 详情弹窗分区 */
.detail-section {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #F0F0F0;
}
.detail-section:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.detail-section-header {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.detail-section-header::before {
    content: '';
    width: 4px;
    height: 14px;
    background: var(--primary);
    border-radius: 2px;
}

/* 状态修改表单卡片 */
.status-form-card {
    background: #F7F8FA;
    border: 1px solid #ECEEF2;
    border-radius: 10px;
    padding: 14px;
}
.status-form-card .form-group {
    margin: 0 0 10px 0;
}
.status-form-card .form-group:last-child {
    margin-bottom: 0;
}
.status-form-card .form-label {
    margin-bottom: 4px;
}
.status-form-card select.form-input {
    height: 42px;
    font-size: 14px;
    background: #fff;
    border-color: #E0E3E8;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.status-form-card select.form-input:focus {
    border-color: var(--primary);
}
.status-form-card textarea.form-input {
    min-height: 64px;
    padding: 10px 14px;
    font-size: 14px;
    background: #fff;
    border-color: #E0E3E8;
    line-height: 1.5;
}

/* ==================== 复制按钮 ==================== */

.copy-btn {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    user-select: none;
}

.copy-btn:active {
    transform: scale(0.95);
    background: var(--primary);
    color: #fff;
}

/* ==================== 状态切换按钮 ==================== */

.status-edit-btn {
    padding: 2px 10px;
    font-size: 12px;
    color: #fff;
    background: #FF4D4F;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.status-edit-btn:active {
    transform: scale(0.95);
}

/* ==================== 九宫格状态选择 ==================== */

.status-grid-modal .modal-box {
    max-width: 340px;
}

.status-grid-current {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: center;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.status-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    border-radius: 10px;
    background: #F7F8FA;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-height: 68px;
}

.status-grid-item:active {
    transform: scale(0.95);
}

.status-grid-item.selected {
    background: #E6F4FF;
    border-color: var(--primary);
}

.status-grid-item.current {
    background: #F0F0F0;
    opacity: 0.6;
}

.status-grid-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-bottom: 6px;
}

.status-grid-text {
    font-size: 12px;
    color: #333;
    text-align: center;
    line-height: 1.3;
    word-break: break-all;
}

.status-grid-item.selected .status-grid-text {
    color: var(--primary);
    font-weight: 500;
}

.status-grid-check {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
}

.status-grid-remark-wrap {
    margin-top: 14px;
}

.status-grid-remark-wrap .form-label {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.status-grid-remark-wrap textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    font-size: 13px;
    border: 1px solid #E0E3E8;
    border-radius: 8px;
    resize: none;
}

/* ==================== 提报确认弹窗 ==================== */

.confirm-submit-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.confirm-submit-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #F0F0F0;
    gap: 12px;
}

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

.confirm-submit-label {
    flex-shrink: 0;
    width: 70px;
    font-size: 13px;
    color: var(--text-hint);
}

.confirm-submit-value {
    flex: 1;
    font-size: 14px;
    color: var(--text-main);
    word-break: break-all;
}

/* ==================== 提报人选择弹窗 ==================== */

.submitter-picker-modal .modal-box {
    max-width: 360px;
}

.submitter-pick-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.submitter-pick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 6px;
    border-radius: 10px;
    background: #F7F8FA;
    cursor: pointer;
    transition: all 0.2s;
}

.submitter-pick-item:active {
    transform: scale(0.95);
}

.submitter-pick-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.submitter-pick-name {
    font-size: 13px;
    color: #333;
}

/* ==================== 响应式适配 ==================== */

@media (min-width: 768px) {
    .app-container {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.05);
        min-height: 100vh;
    }

    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }

    .login-card {
        max-width: 400px;
    }
}
