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

/* 添加最大宽度限制 */
.wrapper {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

body {
    font-family: 'Noto Sans SC', 'Source Han Sans SC', 'Source Han Sans CN', '思源黑体', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

/* 头部导航 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background-color: #fff;
    height: 45px;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    margin-top: 4px;
    margin-left: 10px;
}

.logo img {
    margin-top: 4px;
    height: 32px;
}

.nav ul {
    display: flex;
}

.nav li {
    margin-left: 100px;
}

.nav li:last-child {
    margin-right: 50px;
}

.nav a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav a.active, .nav a:hover {
    color: #0066cc;
}

.nav a.active:after, .nav a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

/* 主要内容区 */
.main-content {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    max-width: 1920px;
}

/* 图片展示区 */
.image-section {
    margin: 0;
    padding: 0;
}

.image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    margin: 0;
}

.image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
}

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

/* 驱动下载页 */
.driver-container {
    background-color: #fff;
    padding: 2rem;
    margin: 0 auto;
    max-width: 1280px;
    width: 100%;
}

.driver-header {
    margin-bottom: 2rem;
}

.driver-header h1 {
    font-size: 60px;
    margin-bottom: 1.5rem;
    color: #000;
    font-weight: bold;
}

.driver-notice {
    background-color: #f8f9fa;
    padding: 1.5rem 2rem;
    margin: 0;
    display: flex;
    flex-direction: row;
    position: relative;
    border: 1px solid #e0e0e0;
    flex-wrap: nowrap; /* 防止内容换行 */
    align-items: flex-start; /* 顶部对齐 */
}

.notice-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tips-image {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
    width: 40%; /* 增加宽度，使tips.png在大屏幕上显示更大 */
}

.tips-icon {
    max-width: 100%;
    height: auto;
    width: 100%; /* 使用百分比宽度，自适应缩放 */
}

.driver-notice h2 {
    font-size: 45px;
    color: #000;
    font-weight: bold;
    margin: 0;
}

.driver-notice p {
    font-size: 22px;
    line-height: 1.5;
    margin: 10px 0 20px 0;
    max-width: 90%;
}

.model-image {
    text-align: left;
    max-width: 100%;
    width: 100%; /* 确保占满容器宽度 */
}

.model-image img {
    margin-top: 45px;
    height: auto;
    width: 90%; /* 使用百分比宽度，自适应缩放 */
}

.driver-selector {
    background-color: #fff;
    padding: 2rem 0;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 1920px;
    width: 100%;
}



.driver-section-title {
    font-size: 45px;
    font-weight: bold;
    color: #000;
    margin-bottom: 2rem;
    text-align: center;
}

.selector-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 827px;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.selector-row label {
    width: 170px;
    font-weight: bold;
    color: #000;
    font-size: 26px;
    margin-right: 20px;
    white-space: nowrap;
    z-index: 1;
    position: relative;
}

.selector-row select {
    flex: 1;
    padding: 0.75rem 2rem 0.75rem 0.75rem;
    border: 2px solid #000;
    border-radius: 4px;
    font-size: 22px;
    background-color: #fff;
    color: #000 !important; /* 确保文字为黑色 */
    -webkit-text-fill-color: #000 !important; /* 针对iOS设备 */
    width: 534px;
    height: 50px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' width='18px' height='18px'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.selector-row select option {
    color: #000 !important; /* 确保下拉选项文字为黑色 */
    -webkit-text-fill-color: #000 !important; /* 针对iOS设备 */
}

.search-row {
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 827px;
    display: flex;
    justify-content: center;
}

.search-btn {
    border: none;
    background: none;
    cursor: pointer;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 169px;
    height: 50px;
}

.search-btn span {
    display: none;
}

.search-icon {
    width: 169px;
    height: 50px;
}

.search-btn:disabled, .search-btn.disabled {
    cursor: not-allowed;
}

.search-btn:disabled .search-icon, .search-btn.disabled .search-icon {
    /* 不需要设置opacity，因为我们使用了不同的图片 */
}

.driver-results {
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem 0;
    width: 100%;
    max-width: 1280px;
}

.results-title {
    font-size: 45px;
    margin-bottom: 1.5rem;
    color: #000;
    font-weight: bold;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.driver-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.driver-item {
    background-color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    width: 100%;
    min-height: 80px; /* 确保有足够的高度 */
}

.driver-item:hover {
    background-color: #f8f9fa;
}

.driver-info {
    flex: 1;
    font-size: 30px;
}

.driver-info h3 {
    font-size: 20px;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: normal;
}

.driver-info p {
    font-size: 20px;
    color: #333;
    line-height: 1.5;
}

.driver-download {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.download-btn {
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 43px;
    vertical-align: middle;
}

.download-icon {
    width: 160px;
    height: 43px;
}

.download-btn:hover .download-icon {
    opacity: 0.8;
}

.no-results {
    text-align: center;
    padding: 1.5rem;
    background-color: #fff;
    color: #666;
    margin-top: 0;
    border: 1px solid #e0e0e0;
    font-size: 18px;
    width: 100%;
}

/* 联系页 */
.contact-page {
    width: 100%;
    height: calc(100vh - 45px); /* 减去头部高度 */
    background-image: url('/images/contact.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin: 0 auto;
    padding: 0;
    max-width: 1920px;
}

.contact-email-container {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    text-align: left;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    margin: 0 0 0.5rem 0;
}

.contact-email-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
    margin: 0;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

/* 确保在所有设备上select和option元素中的中文字体显示为黑色 */
select, option, select *, select option {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: row;
        padding: 0 1rem;
        justify-content: space-between;
        align-items: center;
        height: 45px;
    }
    
    .logo {
        margin-top: 4px;
        margin-left: 5px;
    }
    
    .logo img {
        height: 30px; /* 小屏幕上稍微缩小logo */
    }
    
    .nav ul {
        justify-content: flex-end;
    }
    
    .nav li {
        margin: 0 30px 0 0;
    }
    
    .nav li:last-child {
        margin-right: 10px;
    }
    
    .nav a {
        font-size: 0.9rem;
    }
}

/* 更小屏幕的响应式设计 */
@media (max-width: 480px) {
    .header {
        padding: 0 0.5rem;
        height: 45px;
    }
    
    .logo {
        margin-top: 4px;
        margin-left: 5px;
    }
    
    .logo img {
        height: 25px; /* 更小屏幕上进一步缩小logo */
    }
    
    .nav li {
        margin: 0 20px 0 0;
    }
    
    .nav li:last-child {
        margin-right: 5px;
    }
    
    .nav a {
         font-size: 0.8rem;
         padding: 0.3rem 0;
     }
     
    /* 更小屏幕上等比例缩小搜索按钮 */
    .search-btn {
        width: 101px; /* 原始宽度169px的60% */
        height: 30px; /* 原始高度50px的60% */
    }
    
    .search-icon {
        width: 101px; /* 原始宽度169px的60% */
        height: 30px; /* 原始高度50px的60% */
    }
    
    /* 更小屏幕上等比例缩小下载按钮 */
    .download-btn {
        width: 96px; /* 原始宽度160px的60% */
        height: 26px; /* 原始高度43px的60% */
    }
    
    .download-icon {
        width: 96px; /* 原始宽度160px的60% */
        height: 26px; /* 原始高度43px的60% */
    }
    
    /* 更小屏幕上缩小驱动信息文字 */
    .driver-info {
        font-size: 14px;
    }
    
    .driver-info p {
        font-size: 12px;
    }
    
    /* 更小屏幕上缩小无结果提示文字 */
    .no-results {
        font-size: 14px;
        padding: 1rem;
    }
     
    /* 更小屏幕上适当缩小tips.png和label.png */
    .tips-icon {
        width: 100%; /* 使用百分比宽度，自适应缩放 */
    }
    
    .model-image img {
        margin-top: 10px;
        width: 100%; /* 使用百分比宽度，自适应缩放 */
        max-width: 100%; /* 确保不超过容器宽度 */
    }
    
    .notice-content {
        width: 85%; /* 确保内容区域与tips图标保持合适比例 */
    }
    
    .driver-notice h2 {
        font-size: 32px; /* 更小屏幕上的标题大小 */
    }
    
    .driver-notice p {
        font-size: 18px; /* 更小屏幕上的段落文字大小 */
    }
    
    .selector-row label {
        font-size: 16px; /* 更小屏幕上的标签字体大小 */
    }
    
    .selector-row select {
        font-size: 14px; /* 更小屏幕上的选择框字体大小 */
    }
    
    .driver-section-title {
        font-size: 24px; /* 更小屏幕上的区域标题大小 */
    }
    
    .results-title {
        font-size: 24px; /* 更小屏幕上的结果标题大小 */
    }
}

@media (max-width: 768px) {
     .selector-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .selector-row label {
        margin-bottom: 0.5rem;
        width: 100%;
        font-size: 22px; /* 调整小屏幕上的标签字体大小 */
    }
    
    /* 确保tips.png和label.png在小屏幕上适当缩小 */
    .tips-icon {
        width: 100%; /* 使用百分比宽度，自适应缩放 */
    }
    
    .model-image img {
        margin-top: 10px;
        width: 100%; /* 使用百分比宽度，自适应缩放 */
        max-width: 100%; /* 确保不超过容器宽度 */
    }
    
    .notice-content {
        width: 85%; /* 确保内容区域与tips图标保持合适比例 */
    }
    
    .selector-row select {
        width: 100%;
        font-size: 16px; /* 调整小屏幕上的选择框字体大小 */
        color: #000 !important; /* 确保在所有设备上文字为黑色 */
        -webkit-text-fill-color: #000 !important; /* 针对iOS设备 */
    }
    
    .driver-section-title {
        font-size: 28px; /* 中等屏幕上的区域标题大小 */
    }
    
    .results-title {
        font-size: 28px; /* 中等屏幕上的结果标题大小 */
    }
    
    /* 中等屏幕上等比例缩小搜索按钮 */
    .search-btn {
        width: 135px; /* 原始宽度169px的80% */
        height: 40px; /* 原始高度50px的80% */
    }
    
    .search-icon {
        width: 135px; /* 原始宽度169px的80% */
        height: 40px; /* 原始高度50px的80% */
    }
    
    /* 中等屏幕上等比例缩小下载按钮 */
    .download-btn {
        width: 128px; /* 原始宽度160px的80% */
        height: 34px; /* 原始高度43px的80% */
    }
    
    .download-icon {
        width: 128px; /* 原始宽度160px的80% */
        height: 34px; /* 原始高度43px的80% */
    }
    
    /* 中等屏幕上缩小驱动信息文字 */
    .driver-info {
        font-size: 22px;
    }
    
    .driver-info p {
        font-size: 18px;
    }
    
    /* 中等屏幕上缩小无结果提示文字 */
    .no-results {
        font-size: 16px;
        padding: 1.2rem;
    }
    
    .selector-row select option {
        color: #000 !important; /* 确保下拉选项在所有设备上文字为黑色 */
        -webkit-text-fill-color: #000 !important; /* 针对iOS设备 */
    }
    
    .driver-notice h2 {
        font-size: 38px; /* 小屏幕上稍微缩小标题 */
    }
    
    .driver-notice p {
        font-size: 20px; /* 小屏幕上稍微缩小段落文字 */
    }
    
    .driver-notice {
    flex-direction: row; /* 保持水平布局 */
    flex-wrap: wrap; /* 允许在必要时换行 */
    align-items: flex-start; /* 顶部对齐 */
}

.tips-image {
    align-items: flex-start;
    margin-top: 10px;
    width: auto; /* 不限制容器宽度 */
}

.tips-icon {
    max-width: 100%;
    height: auto;
    width: 100%; /* 使用百分比宽度，自适应缩放 */
}
    
    .contact-email-container {
        left: 50%;
        transform: translate(-25%, -50%);
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .contact-email-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .contact-email-container {
        left: 50%;
        transform: translate(-25%, -50%);
    }
    
    .contact-title {
        font-size: 1rem;
    }
    
    .contact-email-text {
        font-size: 1rem;
    }
}