/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #1a73e8;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    font-size: 16px;
    color: #333;
    padding: 10px 0;
    position: relative;
}

nav a:hover {
    color: #1a73e8;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1a73e8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions .phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 500;
}

.header-actions .menu-btn {
    font-size: 24px;
    cursor: pointer;
    display: none;
}

/* 右侧悬浮栏 */
.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.floating-sidebar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #1a73e8;
    color: #fff;
    margin-bottom: 2px;
    transition: background 0.3s;
}

.floating-sidebar a:hover {
    background: #1557b0;
}

.floating-sidebar a:first-child {
    background: #ff6b35;
    font-weight: bold;
}

.floating-sidebar a:first-child:hover {
    background: #e55a2b;
}

.floating-sidebar a span {
    font-size: 12px;
    line-height: 1.2;
}

/* 轮播图区域 */
.hero {
    margin-top: 70px;
    position: relative;
    height: 550px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.8s;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 600px;
}

.slide-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.slide-content .btn {
    display: inline-block;
    padding: 14px 36px;
    background: #ff6b35;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    transition: background 0.3s;
}

.slide-content .btn:hover {
    background: #e55a2b;
}

.slide-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.slide-nav span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slide-nav span.active {
    background: #fff;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
}

.slide-arrow:hover {
    background: rgba(0,0,0,0.5);
}

.slide-arrow.prev {
    left: 20px;
}

.slide-arrow.next {
    right: 20px;
}

/* 解决方案卡片 */
.solutions {
    padding: 80px 0;
    background: #f8f9fa;
}

.solutions .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.solutions .section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.solutions .section-title p {
    font-size: 16px;
    color: #666;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.solution-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.solution-card .content {
    padding: 25px;
}

.solution-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 12px;
}

.solution-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.solution-card .more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a73e8;
    font-size: 14px;
}

/* 产品展示区域 */
.products {
    padding: 80px 0;
}

.products .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.products .section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.products .section-title p {
    font-size: 16px;
    color: #666;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.product-tabs button {
    padding: 12px 30px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.product-tabs button:hover,
.product-tabs button.active {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #f0f7ff;
}

.product-content {
    display: none;
}

.product-content.active {
    display: block;
}

.product-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-item .text h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.product-item .text p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-item .image {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-item .image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* 客户案例 */
.cases {
    padding: 80px 0;
    background: #f8f9fa;
}

.cases .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.cases .section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.cases .section-title p {
    font-size: 16px;
    color: #666;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.case-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-item img {
    width: 120px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.case-item:hover img {
    filter: grayscale(0%);
}

.case-item h4 {
    font-size: 16px;
    color: #333;
}

/* 新闻资讯 */
.news {
    padding: 80px 0;
}

.news .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.news .section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.news .section-title p {
    font-size: 16px;
    color: #666;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card .content {
    padding: 25px;
}

.news-card .date {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.news-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
footer {
    background: #222;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 25px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: 14px;
    color: #ccc;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: #1a73e8;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 50px;
    height: 50px;
    background: #1a73e8;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 992px) {
    nav ul {
        gap: 20px;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-item {
        grid-template-columns: 1fr;
    }
    
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul,
    .header-actions .phone {
        display: none;
    }
    
    .header-actions .menu-btn {
        display: block;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .solution-grid,
    .case-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
