/* 全局样式 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #333333;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部信息栏 */
.top-bar {
    background-color: #0066cc; /* 蓝色背景 */
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1001; /* 确保顶部栏在最上层 */
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-left a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.top-bar-left a i {
    margin-right: 8px;
    font-size: 16px;
}

.top-bar-left a:hover {
    opacity: 0.8;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-right a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.top-bar-right a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* 导航栏 */
.header {
    position: fixed;
    top: 38px; /* 调整导航栏位置，避免与顶部信息栏重叠 */
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--white);
    top: 0; /* 滚动时导航栏回到顶部 */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav ul li a:hover,
.nav ul li a.active {
    color: var(--primary-color);
}

/* 主横幅 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin-top: 38px; /* 为主横幅添加上边距，避免被导航栏遮挡 */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* 产品展示 */
.product-showcase {
    padding: 100px 0;
}

.product-item {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
}

.product-item.reverse {
    flex-direction: row-reverse;
}

.product-image {
    flex: 1;
    padding: 0 50px;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-info {
    flex: 1;
    padding: 0 50px;
}

.product-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.product-info p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.product-features li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.product-specs {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.spec-item {
    text-align: center;
}

.spec-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.spec-label {
    font-size: 14px;
    color: #666;
}

/* 行业解决方案 */
.solutions {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.solution-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.solution-image {
    height: 200px;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.solution-card:hover .solution-image img {
    transform: scale(1.1);
}

.solution-content {
    padding: 30px;
}

.solution-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.solution-content p {
    color: #666;
    margin-bottom: 20px;
}

.solution-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.solution-features span {
    background-color: var(--light-gray);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* 关于我们 */
.about {
    padding: 100px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text p {
    color: #666;
    margin-bottom: 20px;
}

.company-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* 联系我们 */
.contact {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    color: var(--primary-color);
    font-size: 24px;
    transition: var(--transition);
}

.social-links a:hover {
    color: #0052a3;
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 页脚 */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.link-group h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.link-group ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0052a3;
    transform: translateY(-5px);
}

/* 漂浮按钮 */
.floating-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: float 3s infinite ease-in-out;
    z-index: 1000;
    text-decoration: none;
}

.floating-button:hover {
    background-color: #0052a3;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.tooltip {
    position: absolute;
    bottom: 80px;
    left: 10px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.floating-button:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-item,
    .product-item.reverse {
        flex-direction: column;
    }

    .product-image,
    .product-info {
        padding: 0;
        margin-bottom: 30px;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .product-info h3 {
        font-size: 28px;
    }

    .about-text h3 {
        font-size: 28px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    /* 顶部信息栏响应式调整 */
    .top-bar {
        padding: 8px 0;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
    }
    
    .top-bar-left, .top-bar-right {
        width: 100%;
        justify-content: center;
    }
    
    .top-bar-left a {
        margin-right: 15px;
        font-size: 13px;
    }
    
    .top-bar-right a {
        margin: 0 10px;
    }
    
    .header {
        top: 76px; /* 调整移动端导航栏位置 */
    }
    
    .header.scrolled {
        top: 0;
    }
    
    .hero {
        margin-top: 76px; /* 调整移动端主横幅上边距 */
    }
}

/* 更小屏幕的额外调整 */
@media (max-width: 480px) {
    .top-bar-left a {
        margin-right: 10px;
        font-size: 12px;
    }
    
    .top-bar-right a {
        margin: 0 8px;
        font-size: 16px;
    }
    
    .header {
        top: 84px; /* 调整更小屏幕导航栏位置 */
    }
    
    .hero {
        margin-top: 84px; /* 调整更小屏幕主横幅上边距 */
    }
}

/* 动画效果 */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(-50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
} 