/* Font Awesome 6 本地化 - 精简版 */
/* 只包含项目需要的图标 */
/* 字体文件已完全本地化，不依赖CDN */

@font-face {
    font-family: 'Font Awesome 6 Free';
    /* 使用多个路径确保兼容性 */
    src: url('/static/fonts/fa-solid-900.woff2') format('woff2'),
         url('fonts/fa-solid-900.woff2') format('woff2'),
         url('./fonts/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    /* 使用多个路径确保兼容性 */
    src: url('/static/fonts/fa-regular-400.woff2') format('woff2'),
         url('fonts/fa-regular-400.woff2') format('woff2'),
         url('./fonts/fa-regular-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.fa, .fas, .far {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1;
}

.far {
    font-weight: 400;
}

/* 文档图标 */
.fa-file:before { content: "\f15b"; }
.fa-file-alt:before { content: "\f15c"; }
.fa-file-pdf:before { content: "\f1c1"; }
.fa-file-word:before { content: "\f1c2"; }
.fa-file-excel:before { content: "\f1c3"; }
.fa-file-image:before { content: "\f1c5"; }

/* 文件夹图标 */
.fa-folder:before { content: "\f07b"; }
.fa-folder-open:before { content: "\f07c"; }

/* 剪贴板/列表图标 */
.fa-clipboard-list:before { content: "\f46d"; }
.fa-list:before { content: "\f03a"; }

/* 书/文档图标 */
.fa-book:before { content: "\f02d"; }
.fa-book-open:before { content: "\f518"; }
.fa-file-text:before { content: "\f15c"; }

/* 等待/加载图标 */
.fa-hourglass-half:before { content: "\f252"; }
.fa-spinner:before { content: "\f110"; }

/* 成功/错误图标 */
.fa-check-circle:before { content: "\f058"; }
.fa-times-circle:before { content: "\f057"; }
.fa-check:before { content: "\f00c"; }
.fa-times:before { content: "\f00d"; }

/* 下载图标 */
.fa-download:before { content: "\f019"; }

/* 关闭图标 */
.fa-close:before { content: "\f00d"; }
.fa-xmark:before { content: "\f00d"; }

/* 旋转动画 */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 图标大小 */
.fa-xs { font-size: 0.75em; }
.fa-sm { font-size: 0.875em; }
.fa-md { font-size: 1em; }
.fa-lg { font-size: 1.125em; }
.fa-xl { font-size: 1.5em; }
.fa-2x { font-size: 2em; }
.fa-3x { font-size: 3em; }
.fa-4x { font-size: 4em; }
