/* 货单详情统计系统 - Web版样式 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    /* 强制桌面版显示 */
    min-width: 1200px;
    width: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: white;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    /* 强制桌面版显示 */
    min-width: 1180px;
    width: calc(100% - 20px);
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-left h1 {
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left .version {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.status-indicator i {
    color: #e74c3c;
    animation: pulse 2s infinite;
}

.status-indicator.connected i {
    color: #2ecc71;
    animation: none;
}

.last-update {
    font-size: 12px;
    opacity: 0.8;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 工具栏样式 */
.toolbar {
    background: #f8f9fa;
    padding: 12px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

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

.toolbar-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.stat-item {
    color: #6c757d;
}

.stat-item strong {
    color: #2c3e50;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary { background: #3498db; color: white; }
.btn-success { background: #2ecc71; color: white; }
.btn-warning { background: #f39c12; color: white; }
.btn-info { background: #17a2b8; color: white; }
.btn-secondary { background: #6c757d; color: white; }
.btn-danger { background: #e74c3c; color: white; }
.btn-dark { background: #343a40; color: white; }

/* 标签页样式 */
.tabs {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.tab-buttons {
    display: flex;
    padding: 0 25px;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

/* 外部链接按钮样式 */
.tab-btn.external-link {
    text-decoration: none;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.external-link:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    text-decoration: none;
}

.tab-btn.external-link:active {
    transform: translateY(1px);
}

/* 表格容器样式 */
.table-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    z-index: 10;
}

.loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.tab-content {
    display: none;
    height: 100%;
    overflow: hidden;
}

.tab-content.active {
    display: block;
}

.table-wrapper {
    height: 100%;
    overflow: auto;
    padding: 0 25px 25px 25px;
}

/* 表格样式 - 类似Excel */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    position: sticky;
    top: 0;
    z-index: 5;
}

.data-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    border-right: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

.data-table th:last-child {
    border-right: none;
}

.data-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #e9ecef;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-table td {
    padding: 10px;
    border-right: 1px solid #e9ecef;
    font-size: 13px;
    white-space: nowrap;
    position: relative;
}

.data-table td:last-child {
    border-right: none;
}

/* 数据变化标记 */
.data-table tr.new-order {
    background: linear-gradient(90deg, #d4edda, #ffffff);
    border-left: 4px solid #28a745;
}

.data-table tr.modified-order {
    background: linear-gradient(90deg, #fff3cd, #ffffff);
    border-left: 4px solid #ffc107;
}

.data-table tr.error-order {
    background: linear-gradient(90deg, #f8d7da, #ffffff);
    border-left: 4px solid #dc3545;
}

/* 列宽设置 */
.row-number { width: 50px; text-align: center; }
.order-number { width: 120px; }
.customer { width: 100px; }
.shoe-model { width: 120px; }
.boxes { width: 60px; text-align: center; }
.pairs { width: 60px; text-align: center; }
.order-time { width: 100px; }
.status { width: 80px; }
.notes { width: 150px; }

/* 可编辑备注列样式 */
.editable-notes {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.editable-notes:hover {
    background-color: #f8f9fa !important;
    box-shadow: inset 0 0 3px rgba(0, 123, 255, 0.3);
}

/* 移动端提示样式 - 已禁用 */
@media (max-width: 0px) {
    .editable-notes::after {
        content: '长按编辑';
        position: absolute;
        top: -25px;
        right: 0;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 10px;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        white-space: nowrap;
        z-index: 1000;
    }
    
    .editable-notes:focus::after,
    .editable-notes:active::after {
        opacity: 1;
    }
    
    /* 为可标注的单元格添加提示 */
    .data-table td[data-field]:not(.notes)::after {
        content: '长按标注';
        position: absolute;
        top: -25px;
        right: 0;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 10px;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        white-space: nowrap;
        z-index: 1000;
    }
    
    .data-table td[data-field]:not(.notes):focus::after,
    .data-table td[data-field]:not(.notes):active::after {
        opacity: 1;
    }
}

.notes-input {
    font-family: inherit;
    border-radius: 3px;
    box-sizing: border-box;
}
.actions { width: 100px; }
.problem { width: 200px; }

/* 新增尺码列样式 */
.size-col { 
    width: 50px; 
    text-align: center; 
    font-size: 12px;
    min-width: 45px;
}

/* 分组和统计行样式 */
.group-header {
    background: linear-gradient(135deg, #8064a2, #9b59b6) !important;
    color: white !important;
    font-weight: bold !important;
}

.subtotal-row {
    background: linear-gradient(135deg, #d9e1f2, #e8f0fe) !important;
    font-weight: bold !important;
}

.total-row {
    background: linear-gradient(135deg, #c5504b, #e74c3c) !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

/* 操作按钮 */
.action-btn {
    padding: 4px 8px;
    margin: 0 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.1);
}

.annotate-btn { background: #17a2b8; color: white; }
.edit-btn { background: #28a745; color: white; }
.delete-btn { background: #dc3545; color: white; }

/* 标注样式 */
.annotated-cell {
    position: relative;
}

.annotation-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3498db;
}

.priority-high { background: #ffebee !important; }
.priority-medium { background: #fff8e1 !important; }
.priority-low { background: #e8f5e8 !important; }

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    height: 80px;
}

.color-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: #333;
}

.color-option.selected {
    border-color: #333 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.3) !important;
    position: relative;
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 消息提示 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0;
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
}

.toast.success .toast-icon { color: #28a745; }
.toast.error .toast-icon { color: #dc3545; }
.toast.warning .toast-icon { color: #ffc107; }
.toast.info .toast-icon { color: #17a2b8; }

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #333;
}

/* 底部状态栏 */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.separator {
    color: #dee2e6;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 响应式设计 - 已禁用 */
@media (max-width: 0px) {
    .container {
        margin: 5px;
        border-radius: 8px;
    }
    
    .header {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .header-left h1 {
        font-size: 20px;
    }
    
    .toolbar {
        padding: 10px 15px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-group {
        justify-content: center;
    }
    
    .table-wrapper {
        padding: 0 15px 15px 15px;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* 滚动条样式 */
.table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 特殊状态样式 */
.status-completed { color: #28a745; font-weight: bold; }
.status-pending { color: #ffc107; font-weight: bold; }
.status-processing { color: #17a2b8; font-weight: bold; }
.status-error { color: #dc3545; font-weight: bold; }

/* 数据为空时的样式 */
.empty-data {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.empty-data i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-data h3 {
    margin-bottom: 10px;
    color: #495057;
}

.empty-data p {
    font-size: 14px;
    line-height: 1.5;
} 

/* ===== 智能聊天助手样式 ===== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 320px);
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid #dee2e6;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-title i {
    font-size: 20px;
}

.chat-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-actions .btn {
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.chat-actions .btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: white;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: messageSlideIn 0.3s ease-out;
}

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

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: 50px;
}

.bot-message .message-content {
    background: #f1f3f4;
    color: #333;
    margin-right: 50px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin: 0 10px;
}

.user-message .message-avatar {
    background: #28a745;
    order: 1;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.user-message .message-content {
    border-bottom-right-radius: 6px;
}

.bot-message .message-content {
    border-bottom-left-radius: 6px;
}

.message-text {
    line-height: 1.4;
    margin-bottom: 5px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    text-align: right;
}

.bot-message .message-time {
    text-align: left;
}

/* 确认消息样式 */
.confirmation-message {
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeaa7;
}

.confirmation-buttons {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.confirmation-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.confirm-yes {
    background: #28a745;
    color: white;
}

.confirm-yes:hover {
    background: #218838;
    transform: translateY(-1px);
}

.confirm-no {
    background: #6c757d;
    color: white;
}

.confirm-no:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.chat-input-container {
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 15px 20px;
}

.chat-examples {
    margin-bottom: 10px;
}

.example-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.example-chip {
    background: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.example-chip:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.chat-input-row {
    display: flex;
    align-items: center;
}

.chat-input-wrapper {
    display: flex;
    flex: 1;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    border: 2px solid #e9ecef;
    transition: border-color 0.2s;
}

.chat-input-wrapper:focus-within {
    border-color: #667eea;
}

#chatInput {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 15px;
    background: transparent;
    font-size: 14px;
    color: #333;
}

#chatInput::placeholder {
    color: #6c757d;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chat-send-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 语音按钮样式 */
.voice-btn, .speak-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
    margin-right: 5px;
}

.speak-btn {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.voice-btn:hover, .speak-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.speak-btn:hover {
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.voice-btn.recording {
    background: linear-gradient(135deg, #dc3545 0%, #fd6668 100%);
    animation: pulse-red 1s infinite;
}

.voice-btn.recording:hover {
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.voice-btn:disabled, .speak-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 自动播报按钮样式 */
.auto-speak-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #6c757d;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
    margin-right: 5px;
}

.auto-speak-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.auto-speak-btn.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.auto-speak-btn.active:hover {
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* 热词提示按钮样式 */
.hot-words-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff6b35, #ff9500);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
    margin-right: 5px;
    animation: fireGlow 2s ease-in-out infinite alternate;
}

.hot-words-btn:hover {
    background: linear-gradient(135deg, #e55b2b, #e67e00);
    animation: none;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

@keyframes fireGlow {
    0% { 
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.4);
    }
    100% { 
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
    }
}

/* 播报状态动画 */
.speak-btn.speaking {
    background: linear-gradient(135deg, #dc3545 0%, #fd6668 100%);
    animation: pulse-red 1s infinite;
}

.speak-btn.speaking:hover {
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

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

/* 消息类型样式 */
.success-message .message-content {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb;
}

.error-message .message-content {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb;
}

.info-message .message-content {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    border: 1px solid #bee5eb;
}

/* 加载状态 */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingAnimation {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 响应式设计 - 已禁用 */
@media (max-width: 0px) {
    .chat-container {
        height: calc(100vh - 280px);
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .chat-input-container {
        padding: 10px 15px;
    }
    
    .example-chips {
        justify-content: center;
    }
    
    .example-chip {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* ===== 库存对比高亮样式 ===== */

/* 库存行基础样式 */
.inventory-row {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0) !important;
    font-weight: bold !important;
    color: #2d5a2d !important;
}

/* 库存不足警告高亮样式 - 优雅渐变设计 */
.stock-shortage-highlight {
    background: linear-gradient(135deg, #ff4757, #ff6b7d) !important;
    color: white !important;
    border: 1px solid #ff3838 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.25), 
                0 0 0 1px rgba(255, 71, 87, 0.1) !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.stock-shortage-highlight:hover {
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.35),
                0 0 0 2px rgba(255, 71, 87, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* 小计与库存对比单元格样式 */
.subtotal-cell.shortage,
.inventory-cell.shortage {
    background: linear-gradient(135deg, #ff4757, #ff6b7d) !important;
    color: white !important;
    border: 1px solid #ff3838 !important;
    border-radius: 4px !important;
    position: relative !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.25) !important;
    transition: all 0.3s ease !important;
}

.subtotal-cell.shortage:hover,
.inventory-cell.shortage:hover {
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* 库存不足脉冲动画 */
.subtotal-cell.shortage::before,
.inventory-cell.shortage::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff4757, #ff6b7d);
    border-radius: 6px;
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* 总计对比高亮 - 特别强调 */
.subtotal-total-cell.shortage,
.inventory-total-cell.shortage {
    background: linear-gradient(135deg, #ff4757, #ff6b7d, #ff4757) !important;
    color: white !important;
    border: 2px solid #ff3838 !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.35),
                0 0 0 2px rgba(255, 71, 87, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* 总计单元格的高亮条纹效果 */
.subtotal-total-cell.shortage::after,
.inventory-total-cell.shortage::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 库存不足提示图标 - 精美设计 */
.shortage-indicator {
    position: absolute;
    top: 3px;
    right: 3px;
    color: #fff;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gentleBlink 2s ease-in-out infinite;
}

@keyframes gentleBlink {
    0%, 80% { opacity: 1; }
    90% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 响应式优化 - 已禁用 */
@media (max-width: 0px) {
    .subtotal-cell.shortage,
    .inventory-cell.shortage {
        border-radius: 2px !important;
        box-shadow: 0 1px 4px rgba(255, 71, 87, 0.25) !important;
    }
    
    .subtotal-total-cell.shortage,
    .inventory-total-cell.shortage {
        border-radius: 3px !important;
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.35) !important;
    }
}

/* ==================== 库存管理界面样式 ==================== */

/* 库存管理模态框 */
.inventory-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.inventory-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

/* 面包屑导航样式 */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    margin-right: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.breadcrumb-item:hover {
    background: #e3f2fd;
    color: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

.breadcrumb-item.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.breadcrumb-item i {
    margin-right: 6px;
}

.breadcrumb-item::after {
    content: '>';
    margin-left: 8px;
    margin-right: -4px;
    color: #adb5bd;
    font-weight: bold;
}

.breadcrumb-item:last-child::after {
    display: none;
}

/* 层级容器样式 */
.categories-container,
.models-container,
.colors-container,
.sizes-container {
    min-height: 300px;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
}

.categories-grid,
.models-grid,
.colors-grid,
.sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.category-card,
.model-card,
.color-card,
.size-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-card:hover,
.model-card:hover,
.color-card:hover,
.size-card:hover {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.category-card.selected,
.model-card.selected,
.color-card.selected,
.size-card.selected {
    border-color: #007bff;
    background: #e3f2fd;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.card-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.stock-info {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.inventory-modal-content {
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    max-height: 800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 库存管理头部 */
.inventory-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inventory-header h2 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 库存管理主体 */
.inventory-body {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 搜索框 */
.inventory-search {
    margin-bottom: 10px;
}

.inventory-search input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.inventory-search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* 鞋型容器 - 思维导图式布局 */
.shoe-models-container {
    min-height: 400px;
    position: relative;
}

.loading-inventory {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 18px;
    color: #666;
    gap: 10px;
}

.shoe-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.shoe-model-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shoe-model-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.shoe-model-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.shoe-model-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    word-break: break-word;
}

.shoe-model-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-top: 10px;
}

.total-stock {
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
}

.shoe-model-card.selected .total-stock {
    background: rgba(255, 255, 255, 0.2);
}

.size-count {
    color: #666;
}

.shoe-model-card.selected .size-count {
    color: rgba(255, 255, 255, 0.8);
}

/* 颜色选择区域 */
.colors-container {
    padding: 20px;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.color-card {
    background: linear-gradient(135deg, #fff8e1, #fff3c4);
    border: 2px solid #ffe0b2;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.color-card:hover {
    border-color: #ff9800;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.2);
}

.color-card.selected {
    border-color: #ff9800;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.color-card.low-stock {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-color: #ef5350;
}

.color-card.low-stock:hover {
    border-color: #d32f2f;
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.2);
}

.color-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    word-break: break-word;
}

.color-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-top: 8px;
}

.color-stock {
    background: rgba(255, 152, 0, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
}

.color-card.selected .color-stock {
    background: rgba(255, 255, 255, 0.2);
}

.color-card.low-stock .color-stock {
    background: rgba(239, 83, 80, 0.1);
    color: #d32f2f;
}

.color-count {
    color: #666;
    font-size: 12px;
}

.color-card.selected .color-count {
    color: rgba(255, 255, 255, 0.8);
}

/* 尺码选择区域 */
.sizes-container {
    animation: slideInRight 0.3s ease-out;
}

.selected-shoe-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.selected-shoe-info h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.size-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.size-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.size-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.size-number {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.size-stock {
    font-size: 14px;
    color: #666;
}

.size-card.selected .size-stock {
    color: rgba(255, 255, 255, 0.9);
}

.size-stock.low-stock {
    color: #ff4757;
    font-weight: bold;
}

.size-card.selected .size-stock.low-stock {
    color: #ffed4e;
}

/* 库存操作区域 */
.inventory-operations {
    animation: slideInUp 0.3s ease-out;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.operation-info {
    text-align: center;
    margin-bottom: 25px;
}

.operation-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.current-stock-info {
    font-size: 16px;
    color: #666;
}

.current-stock-info strong {
    color: #667eea;
    font-size: 24px;
}

/* 快速操作按钮 */
.quick-buttons {
    margin-bottom: 25px;
}

.button-group {
    margin-bottom: 15px;
}

.button-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.custom-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.custom-input-group input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.custom-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.custom-btn {
    min-width: 40px !important;
    padding: 8px 12px !important;
}

.quick-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 20px;
    margin: 0 5px 8px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 70px;
}

.quick-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.add-btn {
    color: #27ae60;
    border-color: #27ae60;
}

.add-btn:hover {
    background: #27ae60;
    color: white;
}

.sub-btn {
    color: #e74c3c;
    border-color: #e74c3c;
}

.sub-btn:hover {
    background: #e74c3c;
    color: white;
}

/* 手动输入 */
.manual-input {
    margin-bottom: 25px;
}

.manual-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 记录选项 */
.record-option {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.record-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 8px;
}

.record-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.record-checkbox span {
    font-weight: 500;
    color: #333;
}

.record-option small {
    display: block;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

/* 操作按钮 */
.operation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.operation-buttons .btn {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    min-width: 120px;
}

/* 平板适配 - 已禁用 */
@media (max-width: 0px) {
    .inventory-modal-content {
        width: 98%;
        height: 95vh;
        margin: 0;
        border-radius: 12px;
    }
    
    .inventory-header {
        padding: 15px 20px;
    }
    
    .inventory-header h2 {
        font-size: 20px;
    }
    
    .inventory-body {
        padding: 20px 15px;
    }
    
    .shoe-models-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 12px;
    }
    
    .sizes-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .quick-btn {
        padding: 15px 25px;
        font-size: 18px;
        margin: 0 8px 10px 0;
        min-width: 80px;
    }
    
    .input-group input {
        padding: 15px;
        font-size: 18px;
    }
    
    .operation-buttons .btn {
        padding: 15px 25px;
        font-size: 18px;
        min-width: 140px;
    }
}

/* 动画效果 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 移动端帮助按钮 */
.mobile-help-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.mobile-help-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.mobile-help-btn:active {
    transform: scale(0.95);
}

/* 只在移动设备上显示帮助按钮 - 已禁用 */
@media (max-width: 0px) {
    .mobile-help-btn {
        display: flex !important;
    }
}

/* 自定义确认对话框 */
.custom-confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.custom-confirm-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: confirmSlideIn 0.3s ease-out;
}

@keyframes confirmSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.confirm-icon {
    font-size: 48px;
    color: #f39c12;
    margin-bottom: 15px;
}

.confirm-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.confirm-message {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.confirm-btn-cancel {
    background: #95a5a6;
    color: white;
}

.confirm-btn-cancel:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.confirm-btn-confirm {
    background: #e74c3c;
    color: white;
}

.confirm-btn-confirm:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* ==================== 密码验证弹窗样式 ==================== */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.password-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: passwordSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes passwordSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.password-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.password-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.password-header i {
    font-size: 24px;
}

.password-body {
    padding: 30px;
}

.password-info {
    text-align: center;
    margin-bottom: 25px;
}

.password-info p {
    margin: 0;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.password-input-group {
    position: relative;
    margin-bottom: 20px;
}

.password-input-group input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.password-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toggle-password-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.password-options {
    margin-bottom: 25px;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.remember-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.remember-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.remember-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.password-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.password-buttons .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.password-buttons .btn-secondary {
    background: #6c757d;
    color: white;
}

.password-buttons .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.password-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.password-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.password-buttons .btn:active {
    transform: translateY(0);
}

/* 响应式适配 */
@media (max-width: 480px) {
    .password-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .password-header {
        padding: 20px 25px;
    }
    
    .password-header h3 {
        font-size: 18px;
    }
    
    .password-body {
        padding: 25px 20px;
    }
    
    .password-buttons {
        flex-direction: column;
    }
    
    .password-buttons .btn {
        width: 100%;
    }
} 