/* assets/css/base.css */
/* =========================================================
   VioniaSoft · Base CSS（最终可上线版）
   ✔ 中文粗细统一
   ✔ 大字不虚，小字不糊
   ✔ iOS / Android / Desktop 一致
========================================================= */

/* ================= Reset ================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-synthesis: none;
    /* ❌ 禁止浏览器假粗 / 假斜 */
}

/* =========================================================
   🌍 字体系统（中英文彻底分离）
========================================================= */
:root {
    --font-en: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-zh:
        "Noto Sans SC",
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;
}

html,
body {
    height: 100%;
    font-family: var(--font-en);
    /* 默认英文 */
    font-weight: 400;
    color: #1f2937;
    background: #f7f6fb;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* =========================================================
   🇨🇳 中文全局基准（正文）
========================================================= */
:lang(zh),
:lang(zh-CN),
:lang(zh-Hans) {
    font-family: var(--font-zh);
    font-weight: 500;
    /* ✅ 中文正文标准厚度 */
    line-height: 1.7;
    color: #374151;
}

/* 中文正文内强调 */
:lang(zh) strong,
:lang(zh) b {
    font-weight: 600;
    /* ❗不超过 600 */
}

/* =========================================================
   🇨🇳 中文标题分级（核心）
========================================================= */

/* 页面 / Hero 主标题 */
:lang(zh) h1 {
    font-weight: 700;
    /* ✅ 大字必须厚 */
    line-height: 1.25;
    letter-spacing: 0.01em;
}

/* Section / 卡片标题 */
:lang(zh) h2,
:lang(zh) h3 {
    font-weight: 600;
    line-height: 1.3;
}

/* =========================================================
   可选：中文标题安全微光（只给 h1）
========================================================= */
:lang(zh) h1 {
    text-shadow: 0 1px 6px rgba(122, 108, 255, 0.25);
}

/* =========================================================
   防止 span / a / li 混排导致粗细跳变
========================================================= */
:lang(zh) span,
:lang(zh) a,
:lang(zh) li,
:lang(zh) p {
    font-weight: inherit;
}

/* =========================================================
   Vue
========================================================= */
[v-cloak] {
    display: none;
}

/* =========================================================
   页面背景
========================================================= */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1200px 520px at 50% -240px,
            #ede9fe 0%,
            rgba(237, 233, 254, 0) 70%);
}

/* =========================================================
   Footer
========================================================= */
.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 20px;
    background: #0f172a;
    color: #cbd5f5;
    font-size: 12px;
    text-align: center;
    z-index: 900;
}

/* =========================================================
   移动端菜单锁滚动（不要 hidden）
========================================================= */
body.nav-locked {
    overflow: auto;
    position: static;
    height: auto;
}