/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e88e5;
    --primary-dark: #1565c0;
    --light: #f8f9fa;
    --dark: #333;
    --gray: #666;
    --border: #ddd;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
    }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

    .logo img {
        height: 40px;
        object-fit: contain;
    }

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

    nav a:hover {
        color: var(--primary);
    }

/* Banner */
.hero {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 80px 0;
    text-align: center;
}

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: var(--primary-dark);
    }

        .hero h1 span {
            color: var(--primary);
        }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

    .btn-primary:hover {
        background: var(--primary-dark);
        color: white;
    }

/* 通用 Section */
.section {
    padding: 60px 0;
}

    .section h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 40px;
        color: var(--primary-dark);
    }

.bg-light {
    background-color: var(--light);
}

/* 时间线 */
.timeline {
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--primary);
        transform: translateX(-50%);
    }

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

    .timeline-item:nth-child(odd) {
        justify-content: flex-start;
        padding-right: 50%;
    }

    .timeline-item:nth-child(even) {
        justify-content: flex-end;
        padding-left: 50%;
    }

.year {
    background: var(--primary);
    color: white;
    width: 110px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.content {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 5px;
    max-width: 200px;
}

.vision {
    text-align: center;
    font-style: italic;
    color: var(--gray);
}

/* 解决方案卡片 */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
}

    .card h3 {
        color: var(--primary);
        margin-bottom: 15px;
    }

/* 功能列表 */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

    .feature-item h3 {
        color: var(--primary);
        margin-bottom: 15px;
        font-size: 1.3rem;
    }

    .feature-item ul {
        padding-left: 20px;
    }

    .feature-item li {
        margin-bottom: 8px;
    }

/* 客户案例 */
.subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: var(--gray);
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.client {
    background: white;
    padding: 15px 25px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 500;
}

.stats {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* 联系我们 */
.contact-info {
    text-align: center;
    margin: 30px 0;
    font-size: 1.1rem;
}

    .contact-info a {
        color: var(--primary);
        text-decoration: none;
    }

        .contact-info a:hover {
            text-decoration: underline;
        }

.note {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 700px;
    margin: 30px auto 0;
}

/* 页脚 */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px 0;
}

    footer p {
        margin: 5px 0;
    }

/* 响应式 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        padding-left: 60px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }

    .year {
        position: absolute;
        left: 0;
    }
}

/* 看板画廊容器 */
.dashboard-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

/* 缩略图项 */
.gallery-item {
  aspect-ratio: 4 / 3; /* 保持宽高比，避免布局抖动 */
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 缩略图图片 */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 关键：裁剪并填充，保持比例 */
  display: block;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 小屏优化 */
@media (max-width: 600px) {
    .dashboard-gallery {
        grid-template-columns: 1fr;
    }
}

/* Lightbox 模态框 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.lightbox-caption {
    margin: 10px auto;
    color: #ccc;
    text-align: center;
    font-size: 18px;
    width: 100%;
    padding: 0 20px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #fff;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 客户 Logo / 名称卡片 */
.client {
    background: white;
    color: var(--dark);
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease; /* 平滑过渡 */
    cursor: default;
    min-width: 100px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* 初始轻微阴影 */
}

/* 鼠标悬停特效 */
.client:hover {
    transform: translateY(-4px); /* 向上轻微浮动 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12); /* 阴影加深 */
    border-color: var(--primary); /* 边框高亮 */
    background: linear-gradient(to bottom right, #f0f9ff, #e3f2fd); /* 淡蓝色渐变背景 */
    color: var(--primary-dark); /* 文字颜色加深 */
    z-index: 2; /* 确保浮动时在其他元素之上 */
}


