* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

/* 导航栏 */
header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

/* 主要内容区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px;
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 24px;
}

.section-title h2 {
    font-size: 32px;
    color: #1f2937;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-title p {
    color: #6b7280;
    font-size: 16px;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.8;
}

/* 服务卡片 - 标准3列布局 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* 服务卡片 - 1大+4小布局 */
.services-grid-featured {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.services-grid-featured .featured-card {
    grid-column: span 2;
}

/* 服务卡片 - 居中布局（1-2个卡片） */
.services-grid-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.services-grid-center .service-card {
    max-width: 450px;
}

/* 服务卡片 - 图片1样式：1大+4小布局（左侧1大，右侧4小分2行） */
.services-grid-image1 {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.services-grid-image1 .col-left {
    display: flex;
    flex-direction: column;
}

.services-grid-image1 .col-left .featured-image-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.services-grid-image1 .col-left .featured-image-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.services-grid-image1 .col-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.services-grid-image1 .service-card {
    flex: 1;
}

/* 带图片的特色卡片 */
.featured-image-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.25s ease;
}

.featured-image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.featured-image-card .card-image {
    width: 100%;
    height: 200px;
    background: url('../images/image1.jpg') center center/cover no-repeat;
}

.featured-image-card .card-content {
    padding: 20px;
    background: #fff;
}

.featured-image-card .card-icon {
    display: none;
}

.featured-image-card h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 8px;
    font-weight: 600;
}

.featured-image-card p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

/* 服务卡片 - 图片3样式：4个竖排方块 */
.services-grid-image3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* 标准3列布局（用于EHS等页面） */
.services-grid-3col {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.service-card {
    border-radius: 12px;
    padding: 32px 28px;
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb;
    cursor: default;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* 卡片颜色变体 */
.service-card:nth-child(6n+1) {
    background: #f0f9ff;
}
.service-card:nth-child(6n+2) {
    background: #f0fdf4;
}
.service-card:nth-child(6n+3) {
    background: #fefce8;
}
.service-card:nth-child(6n+4) {
    background: #fdf4ff;
}
.service-card:nth-child(6n+5) {
    background: #fef2f2;
}
.service-card:nth-child(6n+6) {
    background: #fff7ed;
}

.card-icon {
    display: none;
}

.service-card img.card-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

/* 特色卡片 */
.featured-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    border: none !important;
}

.featured-card .card-icon {
    color: #fff;
}

.featured-card h3 {
    color: #fff !important;
}

.featured-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(30, 58, 138, 0.3);
}

/* 优势/特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.feature-item {
    text-align: center;
    padding: 32px 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.feature-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.feature-item h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-item p {
    color: #6b7280;
    font-size: 14px;
}

/* AI应用区域 */
.app-section {
    margin-bottom: 24px;
}

.app-section-title {
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    padding: 24px 16px;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 120px;
}

.app-card:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
}

.app-card.empty {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: default;
}

.app-card.empty:hover {
    background: #e5e7eb;
    transform: none;
    box-shadow: none;
}

.app-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.app-card h3 {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 案例展示 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.case-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.case-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.case-image {
    width: 100%;
    height: 180px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 48px;
}

.case-content {
    padding: 24px;
}

.case-meta {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.case-content h3 {
    font-size: 18px;
    color: #1f2937;
    margin-bottom: 8px;
    font-weight: 600;
}

.case-content p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

/* 阅读更多按钮 */
.read-more {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.read-more:hover {
    color: #2563eb;
}

.read-more-arrow {
    margin-left: 4px;
    transition: transform 0.2s;
}

.read-more:hover .read-more-arrow {
    transform: translateX(4px);
}

/* 页脚 */
footer {
    background: #1f2937;
    color: #fff;
    padding: 56px 20px 32px;
    margin-top: 48px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* 联系页面特殊样式 */
.contact-section {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    padding: 28px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.contact-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.contact-item h3 {
    color: #1f2937;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    color: #374151;
    font-size: 16px;
    font-weight: 500;
}

.contact-qr {
    text-align: center;
}

.contact-qr img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid-featured .featured-card {
        grid-column: span 1;
    }

    .services-grid-image1 {
        grid-template-columns: 1fr;
    }

    .services-grid-image1 .col-right {
        grid-template-columns: 1fr;
    }

    .services-grid-image3 {
        grid-template-columns: 1fr;
    }

    .services-grid-3col {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}
