/* 全局样式重置和基础设置 */
* {
    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: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    color: rgb(0, 0, 0);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0d53af;
    margin: 2;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00b4d8;
}

/* 导航栏激活状态 */
.nav-links a.active {
    color: #00b4d8;
    font-weight: 600;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.048), rgba(145, 143, 143, 0.658)), url('images/beijing.jfif');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn-primary {
    display: inline-block;
    background-color: #00b4d8;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.btn-primary:hover {
    background-color: #0096c7;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: white;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-details {
    display: inline-block;
    background-color: #00b4d8;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-details:hover {
    background-color: #0096c7;
    transform: translateY(-2px);
}

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

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.5rem;
}

.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    margin: 1rem;
    flex: 1;
    min-width: 150px;
}

.stat h3 {
    font-size: 2.5rem;
    color: #00b4d8;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1rem;
    color: #666;
}

/* 产品展示样式 */
.products {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

.products h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.product-card-link {
    text-decoration: none;
    display: block;
}

.product-card-link:hover .product-card {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    padding: 1.5rem;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.product-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.product-card p {
    color: #666;
    margin-bottom: 1rem;
}

/* 驾驶培训样式 */
.training {
    background-color: white;
    padding: 3rem 0;
}

.training h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.5rem;
}

.training-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

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

.training-info h3 {
    margin-bottom: 1rem;
    color: #00b4d8;
    font-size: 2rem;
}

.training-info p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.training-info ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.training-info li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

.training-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 核心部件样式 */
.components {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

.components h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.5rem;
}

/* 特性详情样式 */
.features {
    background-color: white;
    padding: 3rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.5rem;
}

.feature-details {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-section:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-section h3 {
    color: #00b4d8;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.component-detail {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.component-detail h3 {
    margin-bottom: 1rem;
    color: #00b4d8;
    font-size: 2rem;
    text-align: center;
}

.component-detail p {
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.controller-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

.component-detail img {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}

.controller-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.controller-image-item {
    text-align: center;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.controller-image-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.controller-image-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
}

.controller-image-item h4 {
    color: #333;
    font-size: 1.2rem;
    margin-top: 1rem;
}

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

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.5rem;
}

.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

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

.contact-form button {
    width: 100%;
    padding: 0.8rem;
    background-color: #00b4d8;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #0096c7;
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 1rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    color: #00b4d8;
    margin-bottom: 0rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00b4d8;
}

.footer-social a {
    color: white;
    margin-left: 0rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #00b4d8;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid #444;
    color: #aaa;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1rem 0;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #333;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        color: white;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: white;
    }

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: white;
    }

    .hero-content h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .btn-primary,
    .btn-secondary {
        display: block;
        margin: 1rem auto;
        width: 80%;
        text-align: center;
    }

    .about h2,
    .products h2,
    .training h2,
    .components h2,
    .features h2,
    .contact h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    /* 确保飞控系列内容在平板和手机端都能正确显示 */
    .component-detail {
        padding: 1.5rem;
    }

    .controller-features {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem 0;
        margin: 0 -0.5rem;
        width: calc(100% + 1rem);
        flex-wrap: nowrap;
        grid-template-columns: none;
    }

    .feature {
        flex: 0 0 auto;
        min-width: 220px;
        padding: 1rem;
        margin: 0 0.3rem;
    }

    .controller-images {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem 0;
        margin: 0 -0.5rem;
        width: calc(100% + 1rem);
        flex-wrap: nowrap;
        grid-template-columns: none;
        gap: 0.5rem;
    }

    .controller-image-item {
        flex: 0 0 auto;
        min-width: 180px;
        padding: 0.8rem;
    }

    .controller-image-item img {
        height: 150px;
        padding: 0.5rem;
    }

    /* 隐藏横向滚动条但保留功能 */
    .controller-features::-webkit-scrollbar,
    .controller-images::-webkit-scrollbar {
        display: none;
    }

    .controller-features,
    .controller-images {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links ul {
        justify-content: center;
        margin: 1rem 0;
        flex-direction: column;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-social {
        margin-top: 0rem;
    }

    .training-content {
        flex-direction: column;
    }

    .training-image {
        margin-top: 0rem;
    }
    
    .product-card img {
        height: 150px;
    }
    
    .feature-details {
        padding: 0 1rem;
    }
}

@media screen and (max-width: 480px) {
    /* 关于嘉翔航空部分在小屏幕上横向显示 */
    .about-stats {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem 0;
        margin: 0 -0.5rem;
        width: calc(100% + 1rem);
        flex-wrap: nowrap;
    }

    .stat {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 0.3rem;
        margin: 0 0.3rem;
    }

    .stat h3 {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }

    .stat p {
        font-size: 0.8rem;
    }
    
    /* JX飞控系列部分在小屏幕上横向显示 */
    .controller-features {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem 0;
        margin: 0 -0.5rem;
        width: calc(100% + 1rem);
        flex-wrap: nowrap;
        grid-template-columns: none;
    }
    
    .feature {
        flex: 0 0 auto;
        min-width: 200px;
        padding: 1rem;
        margin: 0 0.3rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 90%;
    }
    
    .product-card h3 {
        font-size: 1.3rem;
    }
    
    .logo h1 {
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* 飞控页面特定响应式样式 - 横向显示并缩小图片 */
    .controller-images {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem 0;
        margin: 0 -0.5rem;
        width: calc(100% + 1rem);
        flex-wrap: nowrap;
        grid-template-columns: none;
        gap: 0.5rem;
    }
    
    .controller-image-item {
        flex: 0 0 auto;
        min-width: 180px;
        padding: 0.8rem;
    }
    
    .controller-image-item img {
        height: 150px;
        padding: 0.5rem;
    }
    
    .controller-image-item h4 {
        font-size: 1rem;
    }
    
    /* 隐藏横向滚动条但保留功能 */
    .about-stats::-webkit-scrollbar,
    .controller-features::-webkit-scrollbar,
    .controller-images::-webkit-scrollbar {
        display: none;
    }
    
    .about-stats,
    .controller-features,
    .controller-images {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .feature-section {
        padding: 1rem;
    }
    
    /* 训练平台页面特定响应式样式 */
    .training-content {
        gap: 1rem;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #00b4d8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0096c7;
}

/* 技术参数列表样式 */
.spec-list {
    margin-top: 1rem;
}

.spec-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.spec-label {
    font-weight: 600;
    color: #333;
    min-width: 100px;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.spec-value {
    flex: 1;
    color: #666;
    font-size: 0.9rem;
}

/* 技术参数表格样式 */
.spec-table-container {
    margin-top: 1rem;
    overflow-x: auto;
    max-width: 100%;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #eee;
}

.spec-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    min-width: 100px;
}

.spec-table td {
    color: #666;
}

.spec-table tr:hover {
    background-color: #f8f9fa;
}

/* 响应式表格 */
@media screen and (max-width: 768px) {
    .spec-table-container {
        overflow-x: auto;
    }
    
    .spec-table {
        min-width: 500px;
    }
    
    /* 技术服务页面响应式设计 */
    .tech-service-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem 0;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
    }
    
    .sidebar-nav li {
        white-space: nowrap;
        margin: 0 0.5rem;
    }
    
    .sidebar-nav a {
        padding: 0.5rem 1rem;
        border-radius: 5px;
    }
    
    .content {
        padding: 1rem;
    }
    
    .service-section {
        padding: 1.5rem;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
    }
    
    .download-image {
        flex: 0 0 auto;
    }
}