/* 全局样式 */
* {
    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: #f0f8ff;
}

/* 头部导航 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

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

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}

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

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

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: #00b4db;
    background-color: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,180,219,0.2);
}

/* 汉堡菜单样式 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #0a2463;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 主要内容 */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px - 60px);
}

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

/* 首页样式 */
.hero {
    position: relative;
    color: #fff;
    padding: 7rem 0;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,180,219,0.2);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    background-color: #fff;
    color: #0083b0;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-size: 1.1rem;
}

.btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: #00b4db;
}

/* 产品功能样式 */
.products {
    padding: 5rem 0;
    background-color: #f0f8ff;
}

.products h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #0a2463;
    font-weight: 600;
    position: relative;
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00b4db, #0083b0);
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0f7ff;
    box-shadow: 0 4px 12px rgba(0,180,219,0.1);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,180,219,0.2);
    border-color: #00b4db;
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: scale-down;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background-color: transparent;
}

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

.product-item p {
    color: #666;
    line-height: 1.6;
}

/* 下载页面样式 */
.download {
    padding: 4rem 0;
    background-color: #f0f8ff;
}

.download h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #0a2463;
    font-weight: 600;
}

.download-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,180,219,0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.download-image {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,180,219,0.2);
}

.download-description {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0 1rem;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.download-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,180,219,0.1);
    min-width: 350px;
    border: 1px solid #4ecdc4;
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,180,219,0.2);
}

.download-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #0a2463;
}

.download-item p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.download-item .btn {
    font-size: 1.1rem;
    padding: 12px 28px;
}

/* 联系页面样式 */
.contact {
    padding: 4rem 0;
    background-color: #f0f8ff;
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #0a2463;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,180,219,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,180,219,0.2);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #0a2463;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-item h3::before {
    content: "•";
    color: #00b4db;
    font-size: 1.5rem;
}

.contact-item p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}

/* 公司简介样式 */
.about {
    padding: 4rem 0;
    background-color: #fff;
    background-image: url('图片/8.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #0a2463;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 2rem;
    border-radius: 8px;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
    text-align: justify;
    text-indent: 2em;
    padding: 0 0.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* 页脚样式 */
footer {
    background-color: #0a2463;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* 响应式设计 */
/* 平板设备 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        transition: 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        padding: 2rem;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-item {
        padding: 1.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .download-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .download-item {
        min-width: auto;
        padding: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* 大屏手机 */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    nav {
        padding: 0.8rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .btn {
        font-size: 1rem;
        padding: 12px 24px;
        min-width: 160px;
        text-align: center;
    }
    
    .product-item img {
        height: 200px;
        width: 100%;
        object-fit: contain;
    }
    
    .product-item h3 {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .product-item p {
        line-height: 1.6;
    }
    
    .download-image {
        max-width: 120px;
        height: auto;
    }
    
    .download-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero {
        background-attachment: scroll;
        background-size: cover;
    }
    
    .about {
        background-attachment: scroll;
        background-size: cover;
    }
    
    .download-item .btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
    
    .about-content p {
        text-align: left;
        text-indent: 0;
        line-height: 1.6;
    }
    
    .contact-item p {
        line-height: 1.6;
    }
    
    h2 {
        line-height: 1.2;
    }
}

/* 小屏手机 */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    nav {
        padding: 0.6rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .product-item {
        padding: 1.2rem;
    }
    
    .product-item img {
        height: 180px;
        width: 100%;
        object-fit: contain;
    }
    
    .product-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }
    
    .product-item p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .container {
        padding: 0.8rem;
    }
    
    .nav-links {
        padding: 1.5rem;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 16px;
    }
    
    .about-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        text-align: left;
        text-indent: 0;
    }
    
    .download-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .download-image {
        max-width: 100px;
        height: auto;
    }
    
    .download-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }
    
    .download-item p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }
    
    .contact-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .products {
        padding: 3rem 0;
    }
    
    .about {
        padding: 3rem 0;
    }
    
    .contact {
        padding: 3rem 0;
    }
    
    .download {
        padding: 3rem 0;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 10px 20px;
        min-width: 140px;
        text-align: center;
    }
    
    .download-item .btn {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
        display: block;
    }
    
    /* 优化内容排版 */
    main {
        margin-top: 70px;
    }
    
    .hero .container {
        padding: 0 1rem;
    }
    
    .download-links {
        gap: 1.5rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
}