:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
    --border-color: #dee2e6;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-logo h2 {
    color: white;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-user {
    color: white;
    padding: 0.5rem 1rem;
}

.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 表单样式 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.verification-code-group {
    display: flex;
    gap: 0.5rem;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
}

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

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #bdc3c7;
}

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

.btn-success:hover {
    background-color: #219653;
}

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

.btn-warning:hover {
    background-color: #e67e22;
}

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

.btn-danger:hover {
    background-color: #c0392b;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    color: var(--secondary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* 工作台样式 */
.dashboard-header {
    margin-bottom: 2rem;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.quick-stats {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 4px;
}

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

.stat-label {
    color: var(--dark-gray);
    margin-top: 0.5rem;
}

/* 订单卡片 */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid var(--secondary-color);
}

.order-card.pending { border-left-color: var(--warning-color); }
.order-card.in_production { border-left-color: var(--secondary-color); }
.order-card.completed { border-left-color: var(--success-color); }
.order-card.delivering { border-left-color: #9b59b6; }
.order-card.delivered { border-left-color: #95a5a6; }

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-title h3 {
    margin: 0;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
}

.order-notes {
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 4px;
    font-size: 0.9rem;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-pending { background-color: #fff3cd; color: #856404; }
.status-in_production { background-color: #cce7ff; color: #004085; }
.status-completed { background-color: #d4edda; color: #155724; }
.status-delivering { background-color: #e2e3ff; color: #383d81; }
.status-delivered { background-color: #e2e3e5; color: #383d41; }

/* 筛选器 */
.filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.filters h3 {
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

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

.modal-header h3 {
    margin: 0;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}

.close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* 表单部分 */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.total-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 4px;
    text-align: center;
}

/* 订单详情 */
.order-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.detail-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 600;
}

.total-price-item {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 1.25rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 4px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid white;
}

.timeline-content {
    background: white;
    padding: 0.75rem;
    border-radius: 4px;
}

.timeline-status {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-time {
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.timeline-notes {
    font-size: 0.875rem;
    color: var(--text-color);
}

/* 侧边栏操作 */
.order-actions-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-actions-sidebar h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 管理员样式 */
.admin-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.staff-list h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--light-gray);
    font-weight: 600;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--light-gray);
    border-radius: 4px;
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

.no-roles {
    color: var(--dark-gray);
    font-style: italic;
}

/* 二维码样式 */
.qr-code-container {
    display: flex;
    justify-content: center;
}

.qr-code-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.qr-code-image {
    margin-bottom: 1.5rem;
}

.qr-code-image img {
    max-width: 100%;
    height: auto;
}

.qr-code-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.qr-code-info ol {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.qr-code-info li {
    margin-bottom: 0.5rem;
}

.qr-code-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 0.5rem;
}

/* 闪存消息 */
.flash-messages {
    margin-bottom: 1.5rem;
}

.flash-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* 订单网格（裱花师工作台） */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.order-card-large {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-image {
    position: relative;
    height: 200px;
    background: var(--light-gray);
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--dark-gray);
}

.delivery-time {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.order-details {
    padding: 1rem;
}

.order-details h3 {
    margin-bottom: 0.5rem;
}

.order-specs {
    margin-bottom: 1rem;
}

.order-specs p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
/* 订单卡片样式 */
.order-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    width: 100%;
    box-sizing: border-box;
}

/* 订单网格布局优化 - PC端 */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .orders-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .order-card {
        padding: 15px;
    }
}

/* 订单卡片大样式优化 */
.order-card-large {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.order-card-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* 订单图片区域优化 */
.order-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.order-image img:hover {
    transform: scale(1.05);
}

/* 订单详情区域优化 */
.order-details {
    padding: 15px;
}

.order-details h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

/* 产品规格和其他信息区域优化 */
.product-specs,
.flavor-specs,
.notes-section,
.delivery-address,
.price-info {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
}

/* 操作按钮区域优化 */
.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

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

/* 响应式调整 - 确保在小屏幕上按钮垂直排列 */
@media (max-width: 480px) {
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions .btn {
        width: 100%;
    }
}

.order-card.pending {
    border-left-color: #ffc107;
}

.order-card.in_production {
    border-left-color: #17a2b8;
}

.order-card.completed {
    border-left-color: #28a745;
}

.order-card.delivering {
    border-left-color: #6f42c1;
}

.order-card.delivered {
    border-left-color: #6c757d;
}

/* 状态徽章 */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.status-pending { background: #ffc107; }
.status-in_production { background: #17a2b8; }
.status-completed { background: #28a745; }
.status-delivering { background: #6f42c1; }
.status-delivered { background: #6c757d; }

/* 订单信息布局 */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-title h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
}

.info-value {
    color: #333;
    font-size: 14px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

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

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 8px;
    margin: 20px 0;
}

.empty-state h3 {
    margin-bottom: 10px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

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

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

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-text {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-info {
        grid-template-columns: 1fr;
    }
    
    .order-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}
/* 导航栏下拉菜单 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* 导航栏样式调整 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-user {
    color: white;
    margin: 0 10px;
}
/* 可以在 detail.html 或 list.html 的 style 标签中添加，或者在 base.css 中添加 */
.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background: #c82333;
}
.btn-warning {
    background: #ffc107;
    color: #212529;
    border: none;
}

.btn-warning:hover {
    background: #e0a800;
    color: #212529;
}

.form-hint {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #0066cc;
    display: flex;
    align-items: center;
}

.hint-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* 统计卡片网格布局 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding: 0 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* 在现有样式基础上添加以下内容 */

/* 新订单标识样式 */
.new-order-badge {
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

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

/* 新订单提醒样式 */
.new-orders-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px 15px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    color: #856404;
}

.alert-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 12px;
}
/* 警告状态样式 */
.warning-time {
    background: rgba(255, 193, 7, 0.4) !important;
}

.warning-overlay {
    background: #ffc107 !important;
}

.warning-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.remaining-duration {
    color: #856404;
    font-weight: bold;
    font-size: 14px;
}

.order-card-large.urgent-order.warning {
    border: 2px solid #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* 严重超时状态样式 */
.critical-time {
    background: rgba(220, 53, 69, 0.8) !important;
}

.critical-overlay {
    background: #dc3545 !important;
    animation: blink 1s infinite;
}

.critical-alert {
    background: #fff5f5;
    border: 2px solid #dc3545;
    color: #721c24;
}

.overdue-duration {
    color: #dc3545;
    font-weight: bold;
    font-size: 14px;
}

.order-card-large.urgent-order.critical {
    border: 3px solid #dc3545;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    animation: urgent-pulse 2s infinite;
}

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

@keyframes urgent-pulse {
    0% { box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(220, 53, 69, 0.6); }
    100% { box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4); }
}
/* 紧凑版订单统计样式 - 在 style.css 中添加 */
.orders-stats-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 5px;
}

.stat-card-compact {
    background: white;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.stat-number-compact {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 2px;
    color: #2c3e50;
    line-height: 1.2;
}

.stat-label-compact {
    font-size: 11px;
    color: #7f8c8d;
    font-weight: 500;
    line-height: 1.2;
}

.stat-card-compact.urgent-stat-compact {
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    border: 1px solid #dc3545;
}

.stat-card-compact.urgent-stat-compact .stat-number-compact {
    color: #dc3545;
    animation: pulse 2s infinite;
}

/* 手机端响应式优化 */
@media (max-width: 480px) {
    .orders-stats-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 0 3px;
    }
    
    .stat-card-compact {
        padding: 10px 6px;
        min-height: 50px;
    }
    
    .stat-number-compact {
        font-size: 16px;
    }
    
    .stat-label-compact {
        font-size: 10px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .orders-stats-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (min-width: 769px) {
    .orders-stats-compact {
        grid-template-columns: repeat(3, 1fr);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

