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

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.login-header h1 {
    font-size: 24px;
    color: #303133;
    margin-bottom: 10px;
}

.login-header p {
    color: #909399;
    font-size: 14px;
}

.login-tips {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #c0c4cc;
}

/* 后台管理样式 */
body.admin-body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.admin-sidebar {
    width: 220px;
    background: linear-gradient(180deg, #304156 0%, #1f2d3d 100%);
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h1 {
    font-size: 18px;
    margin: 0;
}

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

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #bfcbd9;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

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

.nav-item i {
    margin-right: 10px;
    font-size: 18px;
}

.nav-section {
    color: #536476;
    font-size: 12px;
    padding: 10px 20px 5px;
    text-transform: uppercase;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.user-info i {
    margin-right: 8px;
    font-size: 20px;
}

.user-name {
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: #909399;
}

/* 主内容区 */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f0f2f5;
}

.admin-header {
    background: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left h2 {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin: 0;
}

.admin-content {
    flex: 1;
    padding: 20px;
}

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

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 28px;
}

.stat-icon.blue { background: rgba(64, 158, 255, 0.1); color: #409EFF; }
.stat-icon.green { background: rgba(103, 194, 58, 0.1); color: #67C23A; }
.stat-icon.orange { background: rgba(230, 162, 60, 0.1); color: #E6A23C; }
.stat-icon.purple { background: rgba(147, 95, 171, 0.1); color: #9357CC; }

.stat-info h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 5px;
    color: #303133;
}

.stat-info p {
    font-size: 14px;
    color: #909399;
    margin: 0;
}

/* 操作面板 */
.action-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 内容区域通用样式 */
.content-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.box-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin: 0;
}

.box-body {
    padding: 20px;
}

/* 搜索表单 */
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.search-item {
    display: flex;
    align-items: center;
}

.search-item label {
    margin-right: 8px;
    color: #606266;
    white-space: nowrap;
}

/* 表格 */
.el-table {
    font-size: 14px;
}

/* 弹窗表单 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

/* 图片上传 */
.image-upload-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-upload-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dcdfe6;
}

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

.image-upload-item .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.image-upload-item .main-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    padding: 2px 6px;
    background: #409EFF;
    color: white;
    border-radius: 3px;
    font-size: 10px;
}

.upload-trigger {
    width: 100px;
    height: 100px;
    border: 2px dashed #dcdfe6;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #909399;
    font-size: 12px;
    transition: all 0.3s;
}

.upload-trigger:hover {
    border-color: #409EFF;
    color: #409EFF;
}

.upload-trigger i {
    font-size: 24px;
    margin-bottom: 5px;
}

/* 车型-年限选择 */
.vehicle-year-grid {
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

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

.vehicle-group-title {
    font-weight: 600;
    color: #303133;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ebeef5;
}

.year-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.year-tag {
    cursor: pointer;
    user-select: none;
}

/* 导入页面 */
.import-dropzone {
    border: 2px dashed #dcdfe6;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.import-dropzone:hover {
    border-color: #409EFF;
    background: rgba(64, 158, 255, 0.05);
}

.import-dropzone i {
    font-size: 48px;
    color: #909399;
    margin-bottom: 15px;
}

.import-dropzone p {
    color: #606266;
    margin: 0;
}

.import-dropzone .tips {
    color: #909399;
    font-size: 12px;
    margin-top: 10px;
}

.import-instructions {
    margin-top: 30px;
    padding: 20px;
    background: #f5f7fa;
    border-radius: 8px;
}

.import-instructions h4 {
    margin: 0 0 15px;
    color: #303133;
}

.import-instructions ol {
    margin: 0;
    padding-left: 20px;
    color: #606266;
}

.import-instructions li {
    margin-bottom: 8px;
}