/* 基础重置样式和全局变量 */
@font-face {
        font-family: 'AlibabaPuHuiTi';
        src: url('../fonts/AlibabaPuHuiTi-3-55-Regular.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
}

/* 全局字体设置 */
body,
input,
textarea,
button {
        font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'WenQuanYi Micro Hei', sans-serif;
}

/* 移动端点击高亮 */
* {
        -webkit-tap-highlight-color: transparent;
}

/* HTML5语义化标签 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
        display: block;
}

/* 全局重置 */
div,
html,
body,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td,
hr,
button,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
main,
.aiyuanma {
        margin: 0;
        padding: 0;
}

/* 基础样式 */
body {
        background-color: #f4f4f4;
        font: 16px/1.875em sans-serif;
        color: #222;
        word-break: break-all;
}

a {
        text-decoration: none;
        outline: none;
        color: #222;
}

a:hover {
        color: #006abe;
}

/* 表单焦点样式 */
input:focus,
textarea:focus {
        outline: none;
}

/* 列表样式 */
li {
        list-style: none;
}

/* 全局标题样式重置 - 彻底清除黑点 */
h1, h2, h3, h4, h5, h6 {
        list-style-type: none !important;
        -webkit-list-style-type: none !important;
        -moz-list-style-type: none !important;
        -ms-list-style-type: none !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
}

/* 彻底移除所有标题的伪元素 */
h1::before, h2::before, h3::before, h4::before, h5::before, h6::before,
h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
        content: none !important;
        display: none !important;
        width: 0 !important;
        height: 0 !important;
}

/* 全局段落间距控制 */
p {
        margin-bottom: 1em !important;
        line-height: 1.6em !important;
}

/* 图片样式 */
a img {
        border: none;
}

img {
        vertical-align: middle;
        max-width: 100%;
}

/* CSS变量定义 */
:root {
        /* 主色调 */
        --spt-primary-start: #FFD54F;
        --spt-primary-end: #2F86FF;
        --spt-primary: #2F86FF;
        --spt-primary-light: #1e88e5;
        --spt-primary-dark: #0F5CAA;
        --spt-primary-rgb: 47, 134, 255;
        
        /* 渐变系统 */
        --spt-grad: linear-gradient(135deg, var(--spt-primary-start), var(--spt-primary-end));
        --spt-grad-vert: linear-gradient(180deg, rgb(255 213 79 / .90), rgb(47 134 255 / .90));
        
        /* 中性色 */
        --spt-bg-light: #f4f4f4;
        --spt-bg-white: #ffffff;
        --spt-text-primary: #222222;
        --spt-text-secondary: #999999;
        
        /* 扩展颜色系统 */
        --spt-success: #28a745;
        --spt-danger: #dc3545;
        --spt-warning: #ffc107;
        --spt-info: #17a2b8;
        --spt-light: #f8f9fa;
        --spt-dark: #343a40;
        --spt-muted: #6c757d;
        
        /* 组件特定变量 */
        --spt-background: #f9f9f9;
        --spt-border: #e4e4e4;
        
        /* 间距系统 */
        --spacing-xs: 4px;
        --spacing-sm: 8px;
        --spacing-md: 16px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
}