/**
 *Copyright (C), 2025, GOSUN CL
 *file: base.css
 *brief: 视评图说主题
 *Theme URI: https://faq7777.com
 *author: 视评图说
 *date: 2025年7月7日
 *version: 7.7.0
 */
/* 基础重置样式和全局变量 */
@font-face {
        font-family: '字体字体';
        src: url('../fonts/SptsOriginal-Regular.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
}

/* 全局字体设置 */
body,
input,
textarea,
button {
        font-family: '字体字体', "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "STHeiti", Arial, sans-serif;
}

/* 移动端点击高亮 */
* {
        -webkit-tap-highlight-color: transparent;
}

/* HTML5语义化标签 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
        display: block;
}

/* 全局盒模型重置 */
*,
*::before,
*::after {
        box-sizing: border-box;
}

/* 全局重置 */
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,
.aiyuanma {
        margin: 0;
        padding: 0;
}

/* 基础样式 */
body {
        background-color: transparent;
        font: 16px/1.875 sans-serif;
        color: var(--spt-text-primary);
        word-break: break-all;
}

a {
        text-decoration: none;
        color: var(--spt-text-primary);
}

a:hover {
        color: var(--spt-primary);
}

a:focus,
input:focus,
textarea:focus,
button:focus {
        outline: none;
}

/* 列表样式 */
li {
        list-style: none;
}

/* 全局标题样式重置 - 彻底清除黑点 */
h1, h2, h3, h4, h5, h6 {
        margin-left: 0;
        padding-left: 0;
}

/* 彻底移除所有标题的伪元素 */
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;
        display: none;
        width: 0;
        height: 0;
}

/* 全局段落间距控制 */
p {
        margin-bottom: 0.8em;
        line-height: 1.6;
}

/* 图片样式 */
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, rgba(255, 213, 79, 0.90), rgba(47, 134, 255, 0.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;
}