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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/print-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

/* 通用卡片样式 */
.card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* 品牌相关样式 */
.brand-item {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.brand-item:hover {
    background-color: #e9ecef;
    transform: translateY(-5px);
    text-decoration: none;
    color: #007bff;
}

.brand-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    max-height: 100%;
    max-width: 100%;
}

.brand-name {
    font-weight: 500;
    margin-top: 0.5rem;
}

/* 驱动相关样式 */
.driver-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.driver-detail-header {
    /* background-color: #e9ecef; */
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.driver-detail-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.driver-detail-info .info-item {
    margin-bottom: 1rem;
}

.driver-detail-info .info-label {
    font-weight: 600;
    color: #6c757d;
}

/* 下载按钮样式 */
.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* 表单样式 */
.search-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-item .page-link {
    color: #007bff;
    transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* 管理后台样式 */
.admin-sidebar {
    width: 250px;
    height: 100vh;
    background-color: #343a40;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
}

.admin-sidebar .sidebar-header {
    padding: 1.5rem;
    background-color: #212529;
    border-bottom: 1px solid #495057;
}

.admin-sidebar .nav-item {
    border-bottom: 1px solid #495057;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
    background-color: #495057;
    color: #fff;
}

.admin-sidebar .nav-link.active {
    background-color: #007bff;
    color: #fff;
}

.admin-content {
    margin-left: 250px;
    padding: 2rem;
}

.admin-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f8f9fa;
}

.login-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

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

/* 自定义列布局 - 一排5个 */
.col-5th {
    flex: 0 0 20%;
    max-width: 20%;
}

/* 响应式适配 */
/* @media (max-width: 992px) {
    .col-5th {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 768px) {
    .col-5th {
        flex: 0 0 50%;
        max-width: 50%;
    }
} */

/* 实用工具类 */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.py-6 { padding: 3rem 0; }
.py-8 { padding: 4rem 0; }

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .brand-icon {
        height: 60px;
    }
    
    .driver-brand-icon {
        height: 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .brand-item {
        padding: 0.5rem;
    }
    
    .brand-icon {
        height: 50px;
    }
}