/* ============================================
   字体性能优化 - Font Display Optimization
   ============================================ */

/* fl-icons 图标字体优化 */
@font-face {
    font-family: 'fl-icons';
    src: url('../font/fl-icons.woff2') format('woff2'),
         url('../font/fl-icons.woff') format('woff'),
         url('../font/fl-icons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* dashicons 字体优化 */
@font-face {
    font-family: 'dashicons';
    src: url('../font/dashicons.woff2') format('woff2'),
         url('../font/dashicons.woff') format('woff'),
         url('../font/dashicons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   布局稳定性优化 - Cumulative Layout Shift
   ============================================ */

/* 预留section背景空间，防止布局偏移 */
.section-bg.fill {
    min-height: 100px;
    background-color: rgba(0, 0, 0, 0.02);
}

/* 图片容器预留空间 */
.img-inner {
    position: relative;
    overflow: hidden;
}

.img-inner img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* 滑块区域预留高度 */
.slider-wrapper {
    min-height: 200px;
}

@media (min-width: 768px) {
    .slider-wrapper {
        min-height: 300px;
    }
}

@media (min-width: 992px) {
    .slider-wrapper {
        min-height: 450px;
    }
}

/* 列容器预设宽度 */
.col {
    min-width: 0;
}

/* 防止字体加载导致的布局偏移 */
body {
    font-size-adjust: 0.5;
}

/* 预留内容区域空间 */
.col-inner {
    min-height: 1px;
}

/* ============================================
   渲染优化 - Render Optimization
   ============================================ */

/* 减少重绘区域 */
.slider,
.flickity-viewport,
.has-hover {
    will-change: auto;
    contain: layout style;
}

/* 优化动画性能 */
.has-hover .bg,
.has-hover img {
    will-change: transform;
}

/* 减少字体闪烁 */
.heading-font,
.nav > li > a,
h1, h2, h3, h4, h5, h6 {
    font-display: swap;
}








