/* 全局样式 */
:root {
    --primary-color: #0066ff;
    --secondary-color: #00c4ff;
    --dark-color: #1a1a2e;
    --light-color: #f5f5f5;
    --text-color: #333;
    --light-text: #fff;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: var(--transition);
}

.btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    border-radius: calc(var(--border-radius) + 2px);
    z-index: -2;
    animation: btn-border-animation 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    color: var(--light-text);
}

.btn:hover::after {
    opacity: 1;
}

@keyframes btn-border-animation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

section {
    padding: 80px 0;
}

/* 导航栏 */
header {
    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;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px; /* 增加导航栏高度 */
}

.logo {
    padding: 10px 0;
    transition: var(--transition);
}

.logo img {
    height: 70px; /* 增加logo的高度 */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); /* 添加阴影效果 */
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05); /* 鼠标悬停时轻微放大 */
}

.menu ul {
    display: flex;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* 核心区域 */
.hero {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.9), rgba(0, 196, 255, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 0;
    padding-top: 90px; /* 调整为与导航栏高度一致 */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* 产品优势 */
.advantages {
    background-color: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* 核心功能 */
.features {
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.feature-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    min-height: 250px;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-content {
    padding: 30px;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.feature-content h3 i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.feature-image {
    width: 60%;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-item:hover .feature-image img {
    transform: scale(1.05);
}

/* 应用场景 */
.scenarios {
    background-color: #fff;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.scenario-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.scenario-card:hover {
    transform: translateY(-5px);
}

.scenario-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.scenario-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* 客户案例 */
.cases {
    background-color: var(--light-color);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.case-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-image {
    height: 90px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-item:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* 底部区域 */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.company-info h3,
.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.company-info h3::after,
.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.company-info p {
    margin-bottom: 10px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
}

.contact-form textarea {
    height: 100px;
    resize: none;
}

.contact-form .btn {
    width: 100%;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 科技感圆圈 */
.tech-circles {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    position: relative;
}

.tech-circles .circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 10px;
    background: var(--light-text);
    animation: pulse-circle 2s infinite;
    position: relative;
}

.tech-circles .circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--light-text);
    opacity: 0;
    animation: circle-ripple 2s infinite;
}

.tech-circles .circle:nth-child(2) {
    animation-delay: 0.3s;
}

.tech-circles .circle:nth-child(2)::before {
    animation-delay: 0.3s;
}

.tech-circles .circle:nth-child(3) {
    animation-delay: 0.6s;
}

.tech-circles .circle:nth-child(3)::before {
    animation-delay: 0.6s;
}

@keyframes pulse-circle {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes circle-ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 悬浮客服按钮 */
.floating-service {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
}

.service-button {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.service-button img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.service-panel {
    position: fixed;
    right: 20px;
    bottom: 170px;
    width: 350px;
    height: 650px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* overflow: hidden; */
    display: none;
    transition: all 0.3s ease;
    z-index: 1000;
   
}

.service-panel.active {
    display: block;
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--primary-color);
    color: #fff;
}

.service-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-service {
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.close-service:hover {
    transform: scale(1.2);
}

.service-content {
    height: calc(100% - 50px);
}

.service-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        position: relative;
    }
    
    .menu {
        position: absolute;
        top: 90px; /* 调整为与导航栏高度一致 */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        display: none;
    }
    
    .menu.active {
        display: block;
    }
    
    .menu ul {
        flex-direction: column;
        align-items: center;
    }
    
    .menu li {
        margin: 15px 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .advantages-grid,
    .scenarios-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
    }
    
    .feature-content {
        width: 100%;
        padding: 20px;
        order: 2;
    }
    
    .feature-image {
        width: 100%;
        height: 200px;
        order: 1;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .service-panel {
        width: 300px;
        right: 10px;
        bottom: 80px;
    }
    
    .floating-service {
        right: 10px;
        bottom: 20px;
    }
} 