/**
 * ============================================
 * 公共样式表 - Common Stylesheet
 * 版本: 2.0.0
 * 说明: 包含重置、布局、排版、工具类、组件、动画等
 * ============================================
 */
@font-face {
    font-family: "siyuan Medium";
    font-weight: 500;
    src: url("https://at.alicdn.com/wf/webfont/NbopcZgRzsf8/kIPVFYpDVNkb.woff2") format("woff2"),
        url("https://at.alicdn.com/wf/webfont/NbopcZgRzsf8/CpyDemMbs0if.woff") format("woff");
    font-variation-settings: normal;
    font-display: swap;
}

@font-face {
    font-family: "siyuan Normal";
    font-weight: 350;
    src: url("https://at.alicdn.com/wf/webfont/NbopcZgRzsf8/nUcVLWsqvJXs.woff2") format("woff2"),
        url("https://at.alicdn.com/wf/webfont/NbopcZgRzsf8/VtljY9DqLHa0.woff") format("woff");
    font-variation-settings: normal;
    font-display: swap;
}


/* ============================================
   1. CSS Reset / Normalize
   ============================================ */

/* 使用更合理的盒模型 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置根字体大小，方便使用 rem（1rem = 10px） */
html {
    font-size: 62.5%;
    /* 10px / 16px = 62.5% */
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    font-family: "siyuan Normal";
}

body {
    font-family: "siyuan Normal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 1.6rem;
    /* 16px */
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    min-height: 100vh;
    min-height: 100dvh;
    /* 动态视口高度，移动端更友好 */
}

/* 移除列表默认样式 */
ul,
ol {
    list-style: none;
}

/* 移除链接下划线，继承颜色 */
a {
    text-decoration: none;
    color: inherit;
}

/* 图片、视频等媒体自适应 */
img,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 表单元素继承字体 */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* 按钮无边框、无背景，可点击 */
button {
    cursor: pointer;
    border: none;
    background: none;
}

/* 文本域不可调整大小（可改为 both 按需） */
textarea {
    resize: vertical;
}

/* 表格边框合并 */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* 引用块样式重置 */
blockquote {
    quotes: none;
}

/* 水平线 */
hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 2rem 0;
    opacity: 1;
}

/* ============================================
   2. 全局滚动条样式 (WebKit)
   ============================================ */

::-webkit-scrollbar {
    width: 0.8rem;
    height: 0.8rem;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0.4rem;
}

::-webkit-scrollbar-thumb {
    background: #c1c7cd;
    border-radius: 0.4rem;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a7ae;
}

/* ============================================
   3. 布局 (Layout)
   ============================================ */

/* ---- 容器 ---- */
.container {
    width: 100%;
    max-width: 140rem;
    /* 1400px */
    margin-left: auto;
    margin-right: auto;
}

.container--fluid {
    max-width: 100%;
}

.container--narrow {
    max-width: 80rem;
}


/* ---- Flex 辅助类 ---- */
.flex {
    display: flex;
}

.flex--row {
    flex-direction: row;
}

.flex--col {
    flex-direction: column;
}

.flex--wrap {
    flex-wrap: wrap;
}

.flex--nowrap {
    flex-wrap: nowrap;
}

.flex--1 {
    flex: 1;
}

.flex--2 {
    flex: 2;
}

.flex--3 {
    flex: 3;
}

.flex--4 {
    flex: 4;
}

.flex--auto {
    flex: 0 0 auto;
}

.flex--shrink {
    flex-shrink: 0;
}

.flex--grow {
    flex-grow: 1;
}

/* 对齐 */
.items--start {
    align-items: flex-start;
}

.items--center {
    align-items: center;
}

.items--end {
    align-items: flex-end;
}

.items--stretch {
    align-items: stretch;
}

.items--baseline {
    align-items: baseline;
}

.justify--start {
    justify-content: flex-start;
}

.justify--center {
    justify-content: center;
}

.justify--end {
    justify-content: flex-end;
}

.justify--between {
    justify-content: space-between;
}

.justify--around {
    justify-content: space-around;
}

.justify--evenly {
    justify-content: space-evenly;
}

.self--start {
    align-self: flex-start;
}

.self--center {
    align-self: center;
}

.self--end {
    align-self: flex-end;
}

.self--stretch {
    align-self: stretch;
}

/* ---- Grid 辅助 ---- */
.grid {
    display: grid;
    gap: 2rem;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid--auto {
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
}

/* ============================================
       4. 排版 (Typography)
       ============================================ */

/* ---- 标题 ---- */
h1,
.h1 {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.6rem;
    font-family: "siyuan Medium";
}

h2,
.h2 {
    font-size: 3.0rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1.4rem;
    font-family: "siyuan Medium";
}

h3,
.h3 {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    font-family: "siyuan Medium";
}

h4,
.h4 {
    font-size: 2.0rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1.0rem;
    font-family: "siyuan Medium";
}

h5,
.h5 {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-family: "siyuan Medium";
}

h6,
.h6 {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-family: "siyuan Medium";
}

/* ---- 段落 ---- */
p {
    margin-bottom: 1.6rem;
}

/* ---- 文本工具 ---- */
.text--left {
    text-align: left;
}

.text--center {
    text-align: center;
}

.text--right {
    text-align: right;
}

.text--justify {
    text-align: justify;
}

.text--nowrap {
    white-space: nowrap;
}

.text--wrap {
    white-space: normal;
}

.text--break {
    word-break: break-word;
}

.text--truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text--truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text--truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text--uppercase {
    text-transform: uppercase;
}

.text--lowercase {
    text-transform: lowercase;
}

.text--capitalize {
    text-transform: capitalize;
}

.text--muted {
    color: #8c8f9c;
}

.text--primary {
    color: #3b82f6;
}

.text--success {
    color: #22c55e;
}

.text--warning {
    color: #eab308;
}

.text--danger {
    color: #ef4444;
}

.text--white {
    color: #ffffff;
}

.text--xs {
    font-size: 1.2rem;
}

.text--sm {
    font-size: 1.4rem;
}

.text--base {
    font-size: 1.6rem;
}

.text--lg {
    font-size: 1.8rem;
}

.text--xl {
    font-size: 2.0rem;
}

.text--2xl {
    font-size: 2.4rem;
}

.text--3xl {
    font-size: 3.0rem;
}

.font--thin {
    font-weight: 100;
}

.font--light {
    font-weight: 300;
}

.font--normal {
    font-weight: 400;
}

.font--medium {
    font-weight: 500;
}

.font--semibold {
    font-weight: 600;
}

.font--bold {
    font-weight: 700;
}

/* ============================================
       5. 间距工具 (Spacing)
       ============================================ */

/* 内边距 */
.p-0 {
    padding: 0;
}

.p-1 {
    padding: 0.4rem;
}

.p-2 {
    padding: 0.8rem;
}

.p-3 {
    padding: 1.2rem;
}

.p-4 {
    padding: 1.6rem;
}

.p-5 {
    padding: 2.4rem;
}

.p-6 {
    padding: 3.2rem;
}

.p-8 {
    padding: 4.8rem;
}

.p-10 {
    padding: 6.4rem;
}

.pt-0 {
    padding-top: 0;
}

.pt-1 {
    padding-top: 0.4rem;
}

.pt-2 {
    padding-top: 0.8rem;
}

.pt-3 {
    padding-top: 1.2rem;
}

.pt-4 {
    padding-top: 1.6rem;
}

.pt-5 {
    padding-top: 2.4rem;
}

.pt-6 {
    padding-top: 3.2rem;
}

.pt-8 {
    padding-top: 4.8rem;
}

.pt-10 {
    padding-top: 6.4rem;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-1 {
    padding-bottom: 0.4rem;
}

.pb-2 {
    padding-bottom: 0.8rem;
}

.pb-3 {
    padding-bottom: 1.2rem;
}

.pb-4 {
    padding-bottom: 1.6rem;
}

.pb-5 {
    padding-bottom: 2.4rem;
}

.pb-6 {
    padding-bottom: 3.2rem;
}

.pb-8 {
    padding-bottom: 4.8rem;
}

.pb-10 {
    padding-bottom: 6.4rem;
}

.pl-0 {
    padding-left: 0;
}

.pl-1 {
    padding-left: 0.4rem;
}

.pl-2 {
    padding-left: 0.8rem;
}

.pl-3 {
    padding-left: 1.2rem;
}

.pl-4 {
    padding-left: 1.6rem;
}

.pl-5 {
    padding-left: 2.4rem;
}

.pl-6 {
    padding-left: 3.2rem;
}

.pl-8 {
    padding-left: 4.8rem;
}

.pl-10 {
    padding-left: 6.4rem;
}

.pr-0 {
    padding-right: 0;
}

.pr-1 {
    padding-right: 0.4rem;
}

.pr-2 {
    padding-right: 0.8rem;
}

.pr-3 {
    padding-right: 1.2rem;
}

.pr-4 {
    padding-right: 1.6rem;
}

.pr-5 {
    padding-right: 2.4rem;
}

.pr-6 {
    padding-right: 3.2rem;
}

.pr-8 {
    padding-right: 4.8rem;
}

.pr-10 {
    padding-right: 6.4rem;
}

.px-0 {
    padding-left: 0;
    padding-right: 0;
}

.px-1 {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.px-2 {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

.px-3 {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.px-4 {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
}

.px-5 {
    padding-left: 2.4rem;
    padding-right: 2.4rem;
}

.px-6 {
    padding-left: 3.2rem;
    padding-right: 3.2rem;
}

.px-8 {
    padding-left: 4.8rem;
    padding-right: 4.8rem;
}

.px-10 {
    padding-left: 6.4rem;
    padding-right: 6.4rem;
}

.py-0 {
    padding-top: 0;
    padding-bottom: 0;
}

.py-1 {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.py-2 {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.py-3 {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

.py-4 {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
}

.py-5 {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
}

.py-6 {
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
}

.py-8 {
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
}

.py-10 {
    padding-top: 6.4rem;
    padding-bottom: 6.4rem;
}

/* 外边距 */
.m-0 {
    margin: 0;
}

.m-1 {
    margin: 0.4rem;
}

.m-2 {
    margin: 0.8rem;
}

.m-3 {
    margin: 1.2rem;
}

.m-4 {
    margin: 1.6rem;
}

.m-5 {
    margin: 2.4rem;
}

.m-6 {
    margin: 3.2rem;
}

.m-8 {
    margin: 4.8rem;
}

.m-10 {
    margin: 6.4rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 0.4rem;
}

.mt-2 {
    margin-top: 0.8rem;
}

.mt-3 {
    margin-top: 1.2rem;
}

.mt-4 {
    margin-top: 1.6rem;
}

.mt-5 {
    margin-top: 2.4rem;
}

.mt-6 {
    margin-top: 3.2rem;
}

.mt-8 {
    margin-top: 4.8rem;
}

.mt-10 {
    margin-top: 6.4rem;
}

.mt-auto {
    margin-top: auto;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.4rem;
}

.mb-2 {
    margin-bottom: 0.8rem;
}

.mb-3 {
    margin-bottom: 1.2rem;
}

.mb-4 {
    margin-bottom: 1.6rem;
}

.mb-5 {
    margin-bottom: 2.4rem;
}

.mb-6 {
    margin-bottom: 3.2rem;
}

.mb-8 {
    margin-bottom: 4.8rem;
}

.mb-10 {
    margin-bottom: 6.4rem;
}

.mb-auto {
    margin-bottom: auto;
}

.ml-0 {
    margin-left: 0;
}

.ml-1 {
    margin-left: 0.4rem;
}

.ml-2 {
    margin-left: 0.8rem;
}

.ml-3 {
    margin-left: 1.2rem;
}

.ml-4 {
    margin-left: 1.6rem;
}

.ml-5 {
    margin-left: 2.4rem;
}

.ml-6 {
    margin-left: 3.2rem;
}

.ml-8 {
    margin-left: 4.8rem;
}

.ml-10 {
    margin-left: 6.4rem;
}

.ml-auto {
    margin-left: auto;
}

.mr-0 {
    margin-right: 0;
}

.mr-1 {
    margin-right: 0.4rem;
}

.mr-2 {
    margin-right: 0.8rem;
}

.mr-3 {
    margin-right: 1.2rem;
}

.mr-4 {
    margin-right: 1.6rem;
}

.mr-5 {
    margin-right: 2.4rem;
}

.mr-6 {
    margin-right: 3.2rem;
}

.mr-8 {
    margin-right: 4.8rem;
}

.mr-10 {
    margin-right: 6.4rem;
}

.mr-auto {
    margin-right: auto;
}

.mx-0 {
    margin-left: 0;
    margin-right: 0;
}

.mx-1 {
    margin-left: 0.4rem;
    margin-right: 0.4rem;
}

.mx-2 {
    margin-left: 0.8rem;
    margin-right: 0.8rem;
}

.mx-3 {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
}

.mx-4 {
    margin-left: 1.6rem;
    margin-right: 1.6rem;
}

.mx-5 {
    margin-left: 2.4rem;
    margin-right: 2.4rem;
}

.mx-6 {
    margin-left: 3.2rem;
    margin-right: 3.2rem;
}

.mx-8 {
    margin-left: 4.8rem;
    margin-right: 4.8rem;
}

.mx-10 {
    margin-left: 6.4rem;
    margin-right: 6.4rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.my-0 {
    margin-top: 0;
    margin-bottom: 0;
}

.my-1 {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.my-2 {
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

.my-3 {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.my-4 {
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
}

.my-5 {
    margin-top: 2.4rem;
    margin-bottom: 2.4rem;
}

.my-6 {
    margin-top: 3.2rem;
    margin-bottom: 3.2rem;
}

.my-8 {
    margin-top: 4.8rem;
    margin-bottom: 4.8rem;
}

.my-10 {
    margin-top: 6.4rem;
    margin-bottom: 6.4rem;
}

/* ============================================
       6. 显示 & 可见性 (Display & Visibility)
       ============================================ */

.block {
    display: block;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.inline-grid {
    display: inline-grid;
}

.hidden {
    display: none !important;
}

.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

/* 响应式显示辅助 (见底部 @media) */

/* ============================================
       7. 定位 (Position)
       ============================================ */

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-1 {
    z-index: 1;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.z-auto {
    z-index: auto;
}

/* ============================================
       8. 边框 & 圆角 (Borders & Radius)
       ============================================ */

.border {
    border: 0.1rem solid #e5e7eb;
}

.border-0 {
    border: 0;
}

.border-t {
    border-top: 0.1rem solid #e5e7eb;
}

.border-b {
    border-bottom: 0.1rem solid #e5e7eb;
}

.border-l {
    border-left: 0.1rem solid #e5e7eb;
}

.border-r {
    border-right: 0.1rem solid #e5e7eb;
}

.border--primary {
    border-color: #3b82f6;
}

.border--success {
    border-color: #22c55e;
}

.border--warning {
    border-color: #eab308;
}

.border--danger {
    border-color: #ef4444;
}

.border--muted {
    border-color: #d1d5db;
}

.rounded {
    border-radius: 0.4rem;
}

.rounded-sm {
    border-radius: 0.2rem;
}

.rounded-md {
    border-radius: 0.6rem;
}

.rounded-lg {
    border-radius: 0.8rem;
}

.rounded-xl {
    border-radius: 1.2rem;
}

.rounded-2xl {
    border-radius: 1.6rem;
}

.rounded-full {
    border-radius: 9999rem;
}

.rounded-none {
    border-radius: 0;
}

/* ============================================
       9. 背景 (Background)
       ============================================ */

.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-gray-300 {
    background-color: #d1d5db;
}

.bg-primary {
    background-color: #3b82f6;
}

.bg-success {
    background-color: #22c55e;
}

.bg-warning {
    background-color: #eab308;
}

.bg-danger {
    background-color: #ef4444;
}

.bg-transparent {
    background-color: transparent;
}

.bg-cover {
    background-size: cover;
}

.bg-contain {
    background-size: contain;
}

.bg-center {
    background-position: center;
}

.bg-no-repeat {
    background-repeat: no-repeat;
}

/* ============================================
       10. 阴影 (Box Shadow)
       ============================================ */

.shadow-sm {
    box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
}

.shadow-md {
    box-shadow: 0 0.4rem 0.6rem rgba(0, 0, 0, 0.07);
}

.shadow-lg {
    box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 2rem 2.5rem rgba(0, 0, 0, 0.12);
}

.shadow-2xl {
    box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.15);
}

.shadow-none {
    box-shadow: none;
}

.shadow-inner {
    box-shadow: inset 0 0.2rem 0.4rem rgba(0, 0, 0, 0.06);
}

/* ============================================
       11. 表单 (Forms)
       ============================================ */

/* 输入框、选择框、文本域统一样式 */
.input,
.select,
.textarea {
    display: block;
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 0.1rem solid #d1d5db;
    border-radius: 0.4rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.3rem rgba(59, 130, 246, 0.15);
}

.input--error,
.select--error,
.textarea--error {
    border-color: #ef4444;
}

.input--error:focus,
.select--error:focus,
.textarea--error:focus {
    box-shadow: 0 0 0 0.3rem rgba(239, 68, 68, 0.15);
}

.input--success,
.select--success,
.textarea--success {
    border-color: #22c55e;
}

.input--success:focus,
.select--success:focus,
.textarea--success:focus {
    box-shadow: 0 0 0 0.3rem rgba(34, 197, 94, 0.15);
}

.input--sm {
    padding: 0.4rem 0.8rem;
    font-size: 1.4rem;
}

.input--lg {
    padding: 1.2rem 1.6rem;
    font-size: 1.8rem;
}

.input--rounded {
    border-radius: 9999rem;
}

textarea.textarea {
    min-height: 10rem;
    resize: vertical;
}

/* 复选框 & 单选框重置 (保留原生但统一尺寸) */
.checkbox,
.radio {
    width: 1.8rem;
    height: 1.8rem;
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
}

/* 标签 */
.label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 1.4rem;
    color: #374151;
}

.label--required::after {
    content: "*";
    color: #ef4444;
    margin-left: 0.2rem;
}

/* 表单组 */
.form-group {
    margin-bottom: 1.6rem;
}

.form-group .help-text {
    font-size: 1.4rem;
    color: #8c8f9c;
    margin-top: 0.4rem;
}

.form-group .error-text {
    font-size: 1.4rem;
    color: #ef4444;
    margin-top: 0.4rem;
}

/* ============================================
       12. 按钮 (Buttons)
       ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 2.0rem;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    border: 0.1rem solid transparent;
    border-radius: 0.4rem;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    background-color: transparent;
    color: #333;
}

.btn:focus-visible {
    outline: 0.2rem solid #3b82f6;
    outline-offset: 0.2rem;
}

/* 变体 */
.btn--primary {
    background-color: #3b82f6;
    color: #fff;
}

.btn--primary:hover {
    background-color: #2563eb;
}

.btn--success {
    background-color: #22c55e;
    color: #fff;
}

.btn--success:hover {
    background-color: #16a34a;
}

.btn--danger {
    background-color: #ef4444;
    color: #fff;
}

.btn--danger:hover {
    background-color: #dc2626;
}

.btn--warning {
    background-color: #eab308;
    color: #fff;
}

.btn--warning:hover {
    background-color: #ca8a04;
}

.btn--outline {
    background-color: transparent;
    border-color: #d1d5db;
    color: #374151;
}

.btn--outline:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.btn--outline-primary {
    background-color: transparent;
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn--outline-primary:hover {
    background-color: #3b82f6;
    color: #fff;
}

.btn--ghost {
    background-color: transparent;
    color: #374151;
}

.btn--ghost:hover {
    background-color: #f3f4f6;
}

/* 尺寸 */
.btn--sm {
    padding: 0.4rem 1.2rem;
    font-size: 1.4rem;
}

.btn--lg {
    padding: 1.2rem 2.8rem;
    font-size: 1.8rem;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn:disabled,
.btn--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
       13. 卡片 (Card)
       ============================================ */

.card {
    background-color: #ffffff;
    border-radius: 0.8rem;
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.06);
    border: 0.1rem solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.08);
}

.card__header {
    padding: 1.6rem 2.0rem;
    border-bottom: 0.1rem solid #e5e7eb;
    font-weight: 600;
}

.card__body {
    padding: 2.0rem;
}

.card__footer {
    padding: 1.6rem 2.0rem;
    border-top: 0.1rem solid #e5e7eb;
    background-color: #f9fafb;
}

/* ============================================
       14. 动画 (Animations)
       ============================================ */

/* 淡入 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-0.8rem);
    }

    40% {
        transform: translateX(0.8rem);
    }

    60% {
        transform: translateX(-0.4rem);
    }

    80% {
        transform: translateX(0.4rem);
    }
}

/* 动画工具类 */
.animate--fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.animate--fade-up {
    animation: fadeInUp 0.4s ease forwards;
}

.animate--fade-down {
    animation: fadeInDown 0.4s ease forwards;
}

.animate--scale {
    animation: scaleIn 0.3s ease forwards;
}

.animate--spin {
    animation: spin 0.8s linear infinite;
}

.animate--pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

.animate--shake {
    animation: shake 0.4s ease forwards;
}

/* 过渡工具 */
.transition {
    transition: all 0.2s ease;
}

.transition--fast {
    transition: all 0.1s ease;
}

.transition--slow {
    transition: all 0.4s ease;
}