/* ============================================================
 * NURSX · Refine v17「克制」
 * ------------------------------------------------------------
 * 只做三件事：字体与字重、间距节奏、悬停/激活的轻微反馈。
 * 不声明任何页面背景，也不改 backdrop-filter / 玻璃填充与描边，
 * 毛玻璃层完全沿用 glass-v13 / v15 / v16。
 *
 * 加载顺序：glass-v16.css 之后（最后一张样式表）。
 * 回滚：删除本文件与各页 <link> 即可。
 * ============================================================ */

/* ── 1. 字体：统一中英文混排的基线 ───────────────────────── */
body.has-sidebar,
body.auth-body-page {
    --font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
            "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.has-sidebar {
    letter-spacing: 0.005em;
}

/* 品牌字与标题：收紧字距、降低过重的 800 */
.sb-brand b {
    font-weight: 700;
    letter-spacing: 0.12em;
}
.sb-brand small {
    font-weight: 500;
    opacity: 0.86;
}
.sb-logo {
    font-weight: 700;
    letter-spacing: 0;
}
.tbc-b {
    font-weight: 700;
    letter-spacing: 0.1em;
}
.tbc-g {
    font-weight: 600;
}
.ph-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}
.ph-sub {
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.86;
}
.card h3,
.card h4,
.card h5 {
    font-weight: 700;
    letter-spacing: 0;
}
.card p {
    line-height: 1.8;
}

/* ── 2. 侧栏导航：用「轻底色 + 指示条」替代整块渐变 ───────── */
.sb-nav {
    gap: 4px;
}
.sb-item {
    font-weight: 600;
    letter-spacing: 0;
}
.sb-item.active {
    background: rgba(79, 70, 229, 0.11);
    color: var(--brand-dark, #4338ca);
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.10);
}
.sb-item.active .sb-ico,
.sb-item.active .sb-tx {
    color: var(--brand-dark, #4338ca);
}
.sb-item.active::before {
    height: 16px;
    background: var(--brand, #4f46e5);
    opacity: 1;
}

/* ── 3. 页头与卡片：减少装饰，留出呼吸感 ─────────────────── */
.card h3::before {
    width: 3px;
    height: 14px;
    border-radius: 2px;
}
.card table th {
    font-weight: 600;
    letter-spacing: 0.02em;
}
.form-group label {
    font-weight: 600;
    letter-spacing: 0;
}

/* 悬停只做 1px 抬升，不再放大，避免整页「跳」 */
.card:hover,
.stat-item:hover,
.project-item:hover,
.row-card:hover {
    transform: translateY(-1px);
}
.card,
.stat-item,
.project-item,
.row-card {
    transition-duration: 0.22s;
}

/* ── 4. 登录页：品牌字距与表单节奏 ───────────────────────── */
body.auth-body-page .auth-aside h1,
body.auth-body-page .auth-header h1 {
    font-weight: 700;
    letter-spacing: 0.14em;
}
body.auth-body-page .auth-aside p,
body.auth-body-page .auth-header p {
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ── 5. 减弱动态效果 ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .sb-item,
    .card,
    .stat-item,
    .project-item,
    .row-card {
        transition: none;
    }
    .card:hover,
    .stat-item:hover,
    .project-item:hover,
    .row-card:hover {
        transform: none;
    }
}
