@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-display: swap;
    src: url(/assets/Outfit.woff2) format("woff2");
}

:root {
    --th-primary: #08f; /* 主题色（覆盖框架） */
    --green: #0b6; /* 成功 */
    --orange: #f60; /* 警告 */
    --red: #e36; /* 错误 */
    --gray: #999; /* 灰色 */
    --white: #fff; /* 白色 */
    --text-color: #333; /* 主文本 */
    --text-dim: #678; /* 辅助文本 */
    --border: #e2e8f0; /* 边框色 */
    --background: #f6f6fc; /* 背景色 */
    --font-family:
        "Outfit", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Helvetica,
        Arial, sans-serif;
    --th-font-size: 16px; /* 根字号 */
    --header-height: 64px; /* 头部高度 */
    --radius-large: 16px;
    --radius-regular: 12px;
    --radius-small: 8px;
    --gap-huge: 96px;
    --gap-large: 64px;
    --gap-medium: 48px;
    --gap-regular: 36px;
    --gap-small: 24px;
    --gap-tiny: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    font-family: var(--font-family);
    font-size: var(--th-font-size);
    color: var(--text-color);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    text-underline-offset: 2px;
    transition: all 0.2s;
}

a.common-link {
    color: var(--th-primary);
}

a.common-link:hover {
    text-decoration: underline;
}

img {
    display: block;
}

dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px var(--gap-small);
}

dt {
    color: var(--text-dim);
    font-weight: 500;
    white-space: nowrap;
}

input {
    outline: none;
    font: inherit;
    color: inherit;
    border: 1px solid var(--gray);
    border-radius: var(--radius-small);
    padding: 6px 12px;
}

input:focus {
    border-color: var(--text-dim);
}

input:disabled {
    opacity: 0.4;
}

th-button.error {
    --th-primary: var(--red);
}

input::placeholder {
    color: var(--gray);
}

svg.icon-large {
    width: 48px;
    height: 48px;
    stroke-width: 1;
}

svg.icon-regular {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

svg.icon-medium {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

svg.icon-small {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-regular);
}

.numeric {
    text-align: right !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--th-primary), #7c3aed, #ec4899);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
