/*
 * 本地依赖样式（替代原先的 Bootstrap 与 Font Awesome CDN 外链）
 *
 * 1) 图标：Font Awesome Free 6.4.2 的 solid 字形子集，仅收录本站实际用到的 39 个图标，
 *    字体文件为 static/fonts/fa-solid-900-subset.woff2。
 *    Icons: CC BY 4.0 / Fonts: SIL OFL 1.1 — https://fontawesome.com/license/free
 * 2) 布局：仅保留原 Bootstrap 5.3 中本站真正使用到的 reboot 片段与工具类，
 *    避免为了几个 .row/.btn 引入 232 KB 的全量 CSS。
 *
 * 新增图标或新的工具类时，请在本文件补充对应规则，不要重新引入 CDN。
 */

/* ===== 图标字体 ===== */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/fa-solid-900-subset.woff2") format("woff2");
}

.fa,
.fas,
.fa-solid {
    display: inline-block;
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.fa-arrow-down::before {
    content: "\f063";
}
.fa-arrow-left::before {
    content: "\f060";
}
.fa-arrow-right::before {
    content: "\f061";
}
.fa-arrow-up-right-from-square::before {
    content: "\f08e";
}
.fa-arrows-left-right::before {
    content: "\f07e";
}
.fa-bell::before {
    content: "\f0f3";
}
.fa-book-open::before {
    content: "\f518";
}
.fa-bookmark::before {
    content: "\f02e";
}
.fa-box-archive::before {
    content: "\f187";
}
.fa-box-open::before {
    content: "\f49e";
}
.fa-boxes-stacked::before {
    content: "\f468";
}
.fa-bullseye::before {
    content: "\f140";
}
.fa-calendar-check::before {
    content: "\f274";
}
.fa-calendar-days::before {
    content: "\f073";
}
.fa-camera::before {
    content: "\f030";
}
.fa-chart-line::before {
    content: "\f201";
}
.fa-chart-pie::before {
    content: "\f200";
}
.fa-circle-notch::before {
    content: "\f1ce";
}
.fa-clock::before {
    content: "\f017";
}
.fa-cloud::before {
    content: "\f0c2";
}
.fa-database::before {
    content: "\f1c0";
}
.fa-envelope::before {
    content: "\f0e0";
}
.fa-exchange-alt::before {
    content: "\f362";
}
.fa-feather-pointed::before {
    content: "\f56b";
}
.fa-file-import::before {
    content: "\f56f";
}
.fa-file-signature::before {
    content: "\f573";
}
.fa-hourglass-half::before {
    content: "\f252";
}
.fa-key::before {
    content: "\f084";
}
.fa-lock::before {
    content: "\f023";
}
.fa-magnifying-glass-dollar::before {
    content: "\f688";
}
.fa-paper-plane::before {
    content: "\f1d8";
}
.fa-puzzle-piece::before {
    content: "\f12e";
}
.fa-question-circle::before {
    content: "\f059";
}
.fa-road::before {
    content: "\f018";
}
.fa-server::before {
    content: "\f233";
}
.fa-shield-halved::before {
    content: "\f3ed";
}
.fa-shield-heart::before {
    content: "\e574";
}
.fa-tablet-screen-button::before {
    content: "\f3fa";
}
.fa-tags::before {
    content: "\f02c";
}
.fa-spin {
    animation: fa-spin 2s linear infinite;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .fa-spin {
        animation: none;
    }
}

/* ===== 基础重置（Bootstrap Reboot 中被用到的部分）===== */
body {
    margin: 0;
}

p {
    margin: 0 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5rem;
    font-weight: 500;
    line-height: 1.2;
}

button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ===== 网格 ===== */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: .75rem;
    padding-left: .75rem;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.col-md-6,
.col-lg-6 {
    flex: 0 0 auto;
    width: 100%;
}

/* ===== 工具类 ===== */
.d-none { display: none !important; }
.d-grid { display: grid !important; }
.gap-2 { gap: .5rem !important; }
.text-center { text-align: center !important; }
.h-100 { height: 100% !important; }
.me-2 { margin-right: .5rem !important; }

/* ===== 按钮基础样式（视觉由 styles.css 中的 .btn-apple / .btn-platform 定义）===== */
.btn {
    display: inline-block;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: inherit;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    border-radius: .375rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.btn-lg {
    padding: .5rem 1rem;
    font-size: 1.25rem;
    border-radius: .3rem;
}

/* ===== 响应式断点（与 Bootstrap 5 默认一致）===== */
@media (min-width: 576px) {
    .d-sm-flex { display: flex !important; }
    .d-sm-none { display: none !important; }
}

@media (min-width: 768px) {
    .col-md-6 { width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-6 { width: 50%; }
}
