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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #3498db;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: white;
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 24px;
    color: #2c3e50;
}

.menu ul {
    display: flex;
    list-style: none;
}

.menu ul li {
    margin-left: 30px;
}

.menu ul li a {
    font-size: 16px;
    color: #555;
    transition: all 0.3s ease;
}

.menu ul li a:hover {
    color: #3498db;
}

/* 下拉菜单样式 */
.menu ul li.dropdown {
    position: relative;
}

.menu ul li.dropdown ul.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    display: none;
    min-width: 150px;
    z-index: 1001;
    border-radius: 4px;
}

.menu ul li.dropdown:hover ul.dropdown-menu {
    display: block;
}

.menu ul li.dropdown ul.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.menu ul li.dropdown ul.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #555;
    transition: all 0.3s ease;
}

.menu ul li.dropdown ul.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

/* 驱动下载界面样式 */
.support {
    padding: 100px 0;
    background-color: white;
}

.support-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.download-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.search-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.download-results {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.download-results h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.results-list {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.results-list ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.results-list li {
    margin-bottom: 5px;
    color: #555;
}

/* 搜索框样式 */
#search-text {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#search-text:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

/* 产品信息样式 */
.product-info {
    margin: 15px 0;
}

.info-item {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 8px;
    padding: 6px 12px;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

/* 下载结果计数 */
.results-list p {
    margin-bottom: 15px;
    color: #555;
    font-weight: 500;
}

.download-item h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.download-item p {
    margin-bottom: 15px;
    color: #666;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.download-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background-color: white;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin-bottom: 50px;
}

.about-text p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 14px;
    color: #666;
}

/* 产品中心样式 */
.products {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.product-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.product-detail-btn {
    padding: 10px 20px;
    background-color: white;
    color: #3498db;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.product-detail-btn:hover {
    background-color: #3498db;
    color: white;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

/* 联系我们样式 */
.contact {
    padding: 100px 0;
    background-color: white;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: #3498db;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-text h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.contact-text p {
    font-size: 16px;
    color: #666;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #bdc3c7;
}

.footer-links h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bdc3c7;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #3498db;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.modal-image {
    flex: 1;
    min-width: 300px;
}

.modal-image img {
    width: 100%;
    border-radius: 8px;
}

.modal-info {
    flex: 1;
    min-width: 300px;
}

.modal-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.modal-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.modal-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 30px;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        margin: 10px;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    .menu ul li {
        margin: 20px 0;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
}