@font-face {
    font-family: 'HarmonyOS Sans SC';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/HarmonyOS-Front-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'HarmonyOS Sans SC';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/HarmonyOS-Front-Bold.woff2') format('woff2');
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    background: #fff;
}

div {
    border-spacing: 0;
    border-collapse: collapse;
}

ol,
ul,
dl {
    list-style: none;
    line-height: normal;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    padding: 0;
    margin: 0;
}

table {
    border-collapse: collapse;
}

img {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    margin: 0;
    font-weight: normal;
}

.form-check {
    min-height: unset !important;
}

:root {
    --text-scale: 1.125;

    /* === 統一容器寬度系統 === */
    --container-base: 1736px;    /* 1920px 標準桌面基準寬度 */
    --container-gutter: 80px;     /* 雙邊留白 */
    --container-md: 2200px;       /* 2560px 超寬屏 */
    --container-lg: 2800px;       /* 3440px 帶魚屏 */
    --container-xl: 3200px;       /* 3840px 4K */
    /* 斷點 */
    --bp-ultra: 2560px;
    --bp-ultrawide: 3440px;
    --bp-4k: 3840px;
}
html {
    /* 三層降級：vw(IE11) → min(舊Safari) → clamp(現代瀏覽器) */
    font-size: 5.2083vw;
    font-size: min(5.2083vw, 100px);
    font-size: clamp(71px, 5.2083vw, 100px);
}
html.font-size-small {
    --text-scale: 0.875;
}
html.font-size-medium {
    --text-scale: 1.125;
}
html.font-size-large {
    --text-scale: 1.265625;
}

/* 8-14: 富文本内容（fr-view/content 内 span 带内联 font-size:px）跟随 A- A A+ 缩放——
   内联 px 是绝对单位不参与 --text-scale，缩放下统一按比例覆盖 */
html.font-size-small .fr-view span,
html.font-size-large .fr-view span,
html.font-size-medium .fr-view span,
html.font-size-small .content span,
html.font-size-large .content span,
html.font-size-medium .content span {
    font-size: calc(0.14rem * var(--text-scale)) !important;
}

.none {
    display: none !important;
}

.pc_block {
    display: block !important;
}

.phone_block {
    display: none !important;
}

.fs14 {
    font-size: calc(.14rem * var(--text-scale));
}

.title {
    font-weight: normal;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
}

.form-control:focus,
.form-select:focus,
.btn:focus {
    box-shadow: none !important;
}

.pc {
    display: block;
}

.mobile {
    display: none;
}

@media screen and (max-width: 992px) {
    html {
        font-size: 27.7778vw;                                    /* IE11 回退 */
        font-size: calc(116.52px - 4.59vw);                      /* 旧浏览器回退 */
        font-size: clamp(71px, calc(116.52px - 4.59vw), 100px);  /* 现代浏览器：平滑过渡 */
    }
    html.font-size-small {
        --text-scale: 0.875;
    }
    html.font-size-medium {
        --text-scale: 1.125;
    }
    html.font-size-large {
        --text-scale: 1.265625;
    }

    .pc_block {
        display: none !important;
    }

    .phone_block {
        display: block !important;
    }

    .pc {
        display: none;
    }

    .mobile {
        display: block;
    }
}

/* ============================================
   Inter Font Family - Western Typography
   ============================================ */
@font-face {
    font-family: 'Inter';
    src: url("/themes/theme/css/fonts/Inter-Regular.woff2") format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: fallback;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    src: url("/themes/theme/css/fonts/Inter-Medium.woff2") format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: fallback;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    src: url("/themes/theme/css/fonts/Inter-SemiBold.woff2") format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: fallback;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    src: url("/themes/theme/css/fonts/Inter-Bold.woff2") format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: fallback;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    src: url("/themes/theme/css/fonts/Inter-Light.woff2") format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: fallback;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   CSS Variables - Font Stack by Language
   ============================================ */
:root {
    --font-primary: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "PingFang HK", "Microsoft JhengHei", "PingFang TC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
    --font-medium: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-bold: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-light: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-normal: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-heavy: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* English font stack override */
html[lang="en-GB"],
html[lang="en"] {
    --font-primary: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "PingFang HK", "Microsoft JhengHei", "PingFang TC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
    --font-medium: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-bold: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-light: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-normal: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-heavy: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}


.title-element {
    font-size: calc(0.32rem * var(--text-scale));
    font-family: var(--font-bold);
    color: #b8d137;
    font-weight: bold;
    letter-spacing: -0.03em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

    /* 根据内容宽度调整 */
}

/* 正文默認字體：HarmonyOS Sans SC（自托管子集，簡繁一體）→ 系統回退 */
body {
    font-family: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont,
                 "PingFang SC", "Microsoft YaHei", "PingFang HK",
                 "Microsoft JhengHei", "Noto Sans CJK SC", sans-serif;
}
