/* ==========================================================================
   base.css — Reset、排版阶梯、通用元素
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-cn);
    font-size: var(--fs-body-lg);
    line-height: 24px;
    font-weight: 400;
    color: var(--color-ink);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button {
    font-family: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

/* 数字 / 拉丁字体 */
.num,
.tnum {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
}

/* ---- 排版阶梯（design-system §3） ---- */

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--color-ink);
}

.t-hero {
    font-size: var(--fs-hero);
    line-height: var(--lh-hero);
    font-weight: 700;
    background: var(--color-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: pre-line;
}

.t-page-hero {
    font-size: var(--fs-page-hero);
    line-height: 1.25;
    font-weight: 700;
}

.t-section {
    font-size: var(--fs-section);
    line-height: 1.3;
    font-weight: 700;
}

.t-cta-title {
    font-size: var(--fs-cta);
    line-height: var(--lh-cta);
    font-weight: 700;
    white-space: pre-line;
}

.t-sub {
    font-size: var(--fs-sub);
    line-height: var(--lh-sub);
    font-weight: 400;
    color: var(--color-body);
}

.t-eyebrow {
    font-size: var(--fs-caption);
    font-weight: 500;
    color: var(--color-primary);
}

.t-card-lg {
    font-size: var(--fs-card-lg);
    font-weight: 600;
    line-height: 1.4;
}

.t-card-md {
    font-size: var(--fs-card-md);
    font-weight: 600;
    line-height: 1.4;
}

.t-card {
    font-size: var(--fs-card);
    font-weight: 600;
    line-height: 1.4;
}

.t-body {
    font-size: var(--fs-body-lg);
    line-height: 26px;
    color: var(--color-body);
}

.t-body-sm {
    font-size: var(--fs-body);
    line-height: 23px;
    color: var(--color-body);
}

.t-caption {
    font-size: var(--fs-caption);
    font-weight: 500;
}

/* 发丝分隔线（高分屏 0.5px 抗发虚，见响应式规格 §7.3） */
.hairline {
    border: 0;
    height: 1px;
    background: var(--hairline-nav);
    transform: scaleY(0.5);
    transform-origin: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

::selection {
    background: rgba(47, 107, 255, 0.18);
}
