/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 微信查询端样式 */
.wechat-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

.wechat-header {
    background: #ffffff;
    color: #333;
    margin: -20px -20px 20px -20px;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
}

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

.header-title h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.header-url {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #666;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.header-btn:hover {
    background-color: #f8f9fa;
}

/* 查询区域样式 - 匹配图片中的深灰色设计 */
.query-section {
    background: #6c757d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.query-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.query-icon {
    font-size: 18px;
}

.query-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.query-prompt {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #e9ecef;
    line-height: 1.4;
}

.query-form {
    display: flex;
    gap: 10px;
}

.form-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    background: white;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.query-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.query-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}


/* 结果卡片样式 - 匹配图片中的简洁设计 */
.result-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
}

.result-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 问候语样式 */
.greeting-section {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.greeting-text {
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    margin: 0;
    line-height: 1.5;
}

/* 客户信息卡片 - 匹配图片中的样式 */
.customer-info {
    margin-bottom: 20px;
}

.customer-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.car-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

/* 车辆信息行样式 */
.vehicle-info-row, .plate-info-row, .shop-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.info-label {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-right: 8px;
    min-width: 80px;
}

.car-model {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.shop-name {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.plate-tag {
    font-size: 18px;
    font-weight: 600;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* 车牌类型颜色 */
.plate-blue {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
    color: white !important;
}

.plate-new_energy {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    color: white !important;
}

.plate-green {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    color: white !important;
}

.plate-yellow {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: white !important;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.plate-white {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
    color: white !important;
}

.plate-black {
    background: linear-gradient(135deg, #343a40, #212529);
    box-shadow: 0 2px 4px rgba(52, 58, 64, 0.3);
    color: white !important;
}

.plate-default {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
    color: white !important;
}

/* 简单车牌号显示样式 */
.plate-number-simple {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    background: none;
    padding: 0;
    border: none;
    display: inline;
    font-family: inherit;
}

/* 现代化客户信息布局 */
.customer-info-modern {
    padding: 12px 0;
}

.customer-info-grid {
    display: flex;
    gap: 20px;
    align-items: center; /* 改为居中对齐 */
}

.customer-contact-info {
    flex: 1;
    min-width: 0;
}

.customer-vehicle-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px; /* 确保车牌号和车型垂直排列，间距一致 */
}

.customer-name-modern {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.customer-phone-modern {
    font-size: 15px;
    color: #6c757d;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.plate-info-modern {
    margin-bottom: 0; /* 移除底部边距，使用gap控制间距 */
}

.plate-display-modern {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: black !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    border: none !important;
    text-decoration: none !important;
    min-width: 80px !important;
    text-align: center !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
}

.plate-display-modern:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.car-model-info-modern {
    margin-top: 0; /* 移除顶部边距，使用gap控制间距 */
}

.car-model-badge-modern {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb) !important;
    color: #1565c0 !important;
    border: 1px solid #90caf9 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 2px 4px rgba(21, 101, 192, 0.15) !important;
    transition: all 0.2s ease !important;
    min-width: 80px !important;
    text-align: center !important;
    justify-content: center !important;
}

.car-model-badge-modern:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.2) !important;
}

/* 现代化改装项目显示 */
.modification-items-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.modification-item-modern {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    width: 100%;
    max-width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.modification-item-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.item-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-details {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.quantity-badge {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.warranty-badge {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.total-items-badge {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-modifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    color: #6c757d;
}

.no-modifications i {
    font-size: 20px;
}

/* 分页组件样式优化 */
.pagination {
    margin: 20px 0;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* 分页信息显示 */
.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

.pagination-info .page-size-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-info .page-size-selector select {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 响应式分页 */
@media (max-width: 576px) {
    .pagination {
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .pagination-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .customer-info-grid {
        flex-direction: column;
        gap: 12px;
    }
    
    .customer-contact-info,
    .customer-vehicle-info {
        flex: none;
    }
    
    .modification-items-vertical {
        gap: 6px;
    }
    
    .modification-item-modern {
        max-width: 150px;
        padding: 6px 8px;
    }
    
    .item-details {
        flex-direction: column;
        gap: 4px;
    }
    
    .table-modern thead th {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .table-modern tbody td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .customer-name-modern {
        font-size: 15px;
    }
    
    .customer-phone-modern {
        font-size: 13px;
    }
    
    .plate-display-modern {
        font-size: 13px !important;
        padding: 4px 10px !important;
    }
    
    .car-model-badge-modern {
        font-size: 12px !important;
        padding: 3px 8px !important;
    }
}

/* 现代化表格样式 */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background: white;
}

.table-modern thead th {
    background: #343a40;
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 16px 12px;
    border: none;
    text-align: center;
    position: relative;
}

.table-modern thead th:first-child {
    border-top-left-radius: 12px;
}

.table-modern thead th:last-child {
    border-top-right-radius: 12px;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
    border-bottom: 3px solid #dee2e6;
    margin-bottom: 8px;
}

.table-modern tbody tr:hover {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.table-modern tbody tr:last-child {
    border-bottom: none;
}

/* 增强表格行分隔效果 */
.table-modern tbody tr:not(:last-child) {
    position: relative;
}

.table-modern tbody tr:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ced4da, transparent);
}

.table-modern tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    border: none;
    font-size: 14px;
}

.table-modern .status-column {
    text-align: center;
    width: 100px;
}

.table-modern .warranty-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-modern .warranty-status.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.table-modern .warranty-status.expired {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.table-modern .warranty-status.warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

/* 质保记录界面 - 客户信息单元格样式 */
.customer-info-cell {
    padding: 8px 0;
}

.customer-name {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.3;
}

.customer-phone {
    margin-bottom: 6px;
    font-size: 12px;
}

.vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plate-info {
    margin-bottom: 2px;
}

.plate-display {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: white !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    border: none !important;
    text-decoration: none !important;
    min-width: 60px !important;
    text-align: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.car-model-info {
    margin-top: 2px;
}

.car-model-badge {
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.products-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* 分隔线 */
.divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 15px 0;
}

/* 质保详情卡片 - 匹配图片中的样式 */
.warranty-details {
    margin-bottom: 20px;
}

.warranty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.warranty-label {
    color: #666;
    font-weight: 500;
}

.warranty-value {
    color: #333;
    font-weight: 500;
}

.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: #28a745;
}

/* 改装项目卡片 - 匹配图片中的样式 */
.modification-projects {
    margin-top: 20px;
}

.projects-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.projects-icon {
    width: 20px;
    height: 20px;
    background: #ff8800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

.projects-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.project-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.project-icon {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    flex-shrink: 0;
}

.project-details {
    flex: 1;
}

.project-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.project-model {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.project-info {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.project-dates {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 联系信息样式 */
.contact-footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-footer p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.car-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* 车辆信息行样式 */
.vehicle-info-row, .plate-info-row, .shop-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.info-label {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-right: 8px;
    min-width: 80px;
}

.car-model {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.shop-name {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* 车牌颜色定义已在上方统一定义，此处移除重复 */

.warranty-info {
    margin-bottom: 15px;
}

.warranty-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.warranty-label {
    color: var(--secondary-color);
}

.warranty-value {
    font-weight: 500;
}

.status-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

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

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

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

.product-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #ffd166 30%, #ff8800 60%, rgba(0,0,0,0) 70%);
    box-shadow: 0 0 10px #ffd166, 0 0 20px #ff8800;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.product-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    flex-shrink: 0;
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.product-model {
    font-size: 12px;
    color: var(--secondary-color);
}

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

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

.empty-state-text {
    font-size: 16px;
    margin-bottom: 10px;
}

.empty-state-subtext {
    font-size: 14px;
    opacity: 0.8;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 20px;
    color: var(--secondary-color);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 后台管理样式 */
.admin-container {
    min-height: 100vh;
    background: #f8f9fa;
}

.admin-sidebar {
    background: #343a40;
    min-height: 100vh;
    padding: 0;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.admin-main {
    padding: 20px;
}

.admin-header {
    background: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

.stat-card.success {
    border-left-color: var(--success-color);
}

.stat-card.warning {
    border-left-color: var(--warning-color);
}

.stat-card.danger {
    border-left-color: var(--danger-color);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--secondary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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


.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
    background: #f8f9fa;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

/* 图片预览 */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wechat-container {
        padding: 10px;
    }
    
    .wechat-header {
        margin: -10px -10px 20px -10px;
        padding: 20px 0;
    }
    
    .wechat-header h1 {
        font-size: 20px;
    }
    
    .search-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .result-card {
        padding: 15px;
    }
    
    .admin-main {
        padding: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* 改装项目样式 */
.modification-item-row {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.modification-item-row:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.mod-item {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 4px 8px 4px 0;
    font-size: 13px;
    display: inline-block;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mod-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.3s;
}

.mod-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #90caf9;
}

.mod-item:hover::before {
    left: 100%;
}

.mod-item:last-child {
    margin-right: 0;
}

/* 项目类型图标样式 */
.mod-item[data-type="product"] {
    background-color: #e8f5e8;
    border-color: #c8e6c9;
    color: #2e7d32;
}

.mod-item[data-type="repair"] {
    background-color: #fff3e0;
    border-color: #ffcc02;
    color: #f57c00;
}

.mod-item[data-type="replace"] {
    background-color: #f3e5f5;
    border-color: #ce93d8;
    color: #7b1fa2;
}

.mod-item[data-type="other"] {
    background-color: #e0f2f1;
    border-color: #80cbc4;
    color: #00695c;
}

/* 改装项目容器样式 */
.modification-items-container {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.modification-items-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.modification-items-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #bbdefb;
}

.modification-items-container:hover::after {
    left: 100%;
}

/* 移除右上角灯泡图标，避免遮挡文字 */

.modification-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.modification-icon {
    font-size: 18px;
    animation: lightFlicker 2s ease-in-out infinite alternate;
}

@keyframes lightFlicker {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.modification-header .warranty-label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 15px;
}

.warranty-summary {
    margin-left: auto;
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-weight: 500;
}

/* 更新产品类型样式 */
.mod-item[data-type="product"] {
    background-color: #fff3e0;
    border-color: #ffb74d;
    color: #e65100;
}

/* 质保徽章样式 - 根据状态显示不同颜色 */
.warranty-badge {
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-left: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: help;
    position: relative;
    overflow: hidden;
}

/* 有效质保 - 绿色 */
.warranty-badge:not([class*="expired"]):not([class*="expiring"]) {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
    animation: warrantyGlow 2s ease-in-out infinite alternate;
}

/* 即将到期 - 橙色 */
.warranty-badge[class*="expiring"] {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
    animation: warrantyWarning 1.5s ease-in-out infinite alternate;
}

/* 已过期 - 红色 */
.warranty-badge[class*="expired"] {
    background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%);
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
    animation: warrantyExpired 1s ease-in-out infinite alternate;
}

@keyframes warrantyGlow {
    0% { 
        box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 4px 8px rgba(76, 175, 80, 0.5);
        transform: scale(1.02);
    }
}

@keyframes warrantyWarning {
    0% { 
        box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 4px 8px rgba(255, 152, 0, 0.5);
        transform: scale(1.02);
    }
}

@keyframes warrantyExpired {
    0% { 
        box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 4px 8px rgba(244, 67, 54, 0.5);
        transform: scale(1.02);
    }
}

/* 质保徽章悬停效果 */
.warranty-badge:hover {
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* 质保徽章工具提示样式 */
.warranty-badge::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.warranty-badge:hover::after {
    opacity: 1;
}

/* 新的安装产品容器样式 - 简洁卡片式布局 */
.install-products-container {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.install-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.install-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
    opacity: 0.3;
}

.install-icon {
    font-size: 16px;
    color: #ff8800;
    text-shadow: 0 0 8px rgba(255, 136, 0, 0.3);
    animation: iconPulse 2s ease-in-out infinite alternate;
}

@keyframes iconPulse {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 8px rgba(255, 136, 0, 0.3);
    }
    100% { 
        transform: scale(1.1);
        text-shadow: 0 0 12px rgba(255, 136, 0, 0.5);
    }
}

.install-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.product-cards {
    padding: 15px;
}

.product-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-card:last-child {
    margin-bottom: 0;
}

.product-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
    border-color: #007bff;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s;
}

.product-card:hover::before {
    left: 100%;
}

.product-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.product-details {
    font-size: 13px;
    color: #495057;
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: 500;
}

/* 质保时长特殊样式 */
.product-details .warranty-duration {
    color: #28a745;
    font-weight: 700;
    background: rgba(40, 167, 69, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.product-dates {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* 突出显示到期时间 */
.product-dates {
    font-size: 13px;
    color: #495057;
    line-height: 1.4;
    font-weight: 500;
}

/* 到期时间特殊样式 - 更深的颜色和加粗 */
.product-dates .expiry-date {
    color: #1a252f;
    font-weight: 800;
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid #ffc107;
    display: inline-block;
    margin-left: 2px;
    position: relative;
    transition: all 0.3s ease;
    animation: expiryHighlight 3s ease-in-out infinite alternate;
}

/* 到期时间高亮动画 */
@keyframes expiryHighlight {
    0% {
        background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
        border-color: #ffc107;
        box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
    }
    100% {
        background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
        border-color: #e17055;
        box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
    }
}

/* 到期时间悬停效果 */
.product-dates .expiry-date:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-color: #e74c3c;
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
    animation: none;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 安装时间保持正常样式 */
.product-dates .install-date {
    color: #6c757d;
    font-weight: 400;
    font-size: 12px;
}

/* 底部品牌信息 */
.brand-footer {
    background: #dc3545;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.brand-text {
    font-size: 16px;
    font-weight: 600;
}
