﻿/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e9ecef;
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

/* 头部样式 - 导航核心样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0; /* 调整内边距使头部更紧凑 */
}

.logo {
    height: 50px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 15px; /* 增加内边距，使点击区域更大 */
    border-radius: 4px;
    transition: background-color 0.3s;
}

.mobile-menu-btn:hover {
    background-color: #f1f1f1;
}

/* PC端导航样式 */
.site-nav ul {
    display: flex;
    list-style: none;
}

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

.site-nav ul li a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4CAF50;
    transition: width 0.3s;
}

.site-nav ul li a:hover:after {
    width: 100%;
}

/* 响应式：移动端（768px以下） */
@media (max-width: 768px) {
    /* 显示移动端菜单按钮，调整位置使其靠右但不过分边缘 */
    .mobile-menu-btn {
        display: block;
        margin-left: auto; /* 自动推到右侧 */
        margin-right: 10px; /* 增加右侧间距，避免太靠边 */
    }
    
    /* 移动端导航容器 */
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #eee;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    /* 导航展开样式 */
    .site-nav.active {
        max-height: 500px;
    }
    
    /* 移动端导航列表 */
    .site-nav ul {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .site-nav ul li {
        margin: 0;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .site-nav ul li:last-child {
        border-bottom: none;
    }
    
    .site-nav ul li a {
        padding: 12px 0;
        font-size: 16px;
        justify-content: flex-start; /* 确保文字靠左对齐 */
    }
    
    .site-nav ul li a:after {
        display: none;
    }
    
    .site-nav ul li a:hover {
        color: #4CAF50;
    }
}

/* 产品介绍部分 */
.hero {
    background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,160L48,165.3C96,171,192,181,288,197.3C384,213,480,235,576,224C672,213,768,171,864,149.3C960,128,1056,128,1152,138.7C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
    transform: translateY(0);
    text-decoration: none;
}

.btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn i {
    margin-right: 12px;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.2);
}

/* 购买按钮样式 */
.btn-purchase {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
}

.btn-purchase:hover {
    background: linear-gradient(135deg, #43A047, #1B5E20);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.btn-purchase::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.btn-purchase:hover::after {
    transform: rotate(30deg) translate(20%, 20%);
}

/* 下载按钮样式 */
.btn-download {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
    color: white;
}

.btn-download:hover {
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    border-radius: 50px;
}

.btn-download:hover::before {
    height: 100%;
}

/* 视频展示部分 */
.video-section {
    padding: 100px 20px;
    background-color: #ffffff;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1e293b;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #2563eb, #0ea5e9);
    margin: 15px auto 0;
    border-radius: 2px;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
}

/* 底部样式 */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 70px 8% 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #2563eb, #0ea5e9);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: #60a5fa;
}

.contact-info {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    color: #94a3b8;
}

/* 优势区域 */
.advantages {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: #000;
    font-size: 28px;
}

.advantage-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.advantage-desc {
    color: var(--gray);
}

/* 新闻区域 */
.news {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

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

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

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.news-title:hover {
    color: var(--primary);
}

.news-excerpt {
    color: var(--gray);
    margin-bottom: 20px;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 14px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.news-category {
    color: var(--primary);
    font-weight: 600;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover {
    color: var(--secondary);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 响应式设计补充 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
}
