/* ===========================================
   凌云海官网通用组件样式
   包含：section-header、按钮、卡片等通用组件
   =========================================== */

/* 引入思源黑体字体 - 本地字体文件 */
@font-face {
    font-family: 'Source Han Sans';
    src: url('/assets/fonts/fonts.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 全站强制字体统一 */
body {
    font-family: 'Source Han Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

/* Font Awesome 图标字体 - 需要保持独立的字体设置 */
i,
.fas,
.fab,
.far,
.fal,
.fat {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', sans-serif !important;
}

/* 统一 section-header 样式（与首页一致） */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #165DFF;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.eyebrow-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #165DFF, transparent);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: black;
    line-height: 1.2;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 60px;
    }

    .section-eyebrow {
        font-size: 0.8rem;
        gap: 10px;
        margin-bottom: 15px;
    }

    .eyebrow-line {
        width: 30px;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .section-description {
        font-size: 1.1rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }
}

/* ===========================================
   图片懒加载样式 - 高斯模糊加载动画
   =========================================== */

/* 懒加载图片容器 */
.img-lazy-container {
    position: relative;
    overflow: hidden;
    background-color: #f3f4f6;
}

/* 懒加载图片初始状态 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease, filter 0.5s ease;
    filter: blur(10px);
}

/* 图片加载完成后的状态 */
img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
    opacity: 1;
    filter: blur(0);
}

/* 图片加载中的占位背景 */
.img-lazy-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    z-index: 0;
}

/* 加载动画 */
@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 图片加载完成后隐藏占位背景 */
.img-lazy-container.loaded::before {
    display: none;
}

/* 针对不支持loading="lazy"的浏览器 */
@supports not (loading: lazy) {
    img[data-src] {
        opacity: 0;
        filter: blur(10px);
    }

    img[data-src].loaded {
        opacity: 1;
        filter: blur(0);
    }
}