/**
 * Created by: ZuoQi
 */
/* ===== 基础重置 ===== */
:root {
    --primary-color: #1A73E8;
    --hover-color: #0D62C9;
    --text-color: #333;
    --link-color: #0066CC;
    --link-hover: #C81623;
    --border-color: #E4E7ED;
}

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

html {
    height: 100%;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    min-width: 1366px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    color: var(--text-color); /* 动态引用自定义变量 */
    background-color: #F8F9FA;
    line-height: inherit; /* 继承父元素的设置 */
}

/* ===== 头部特定样式 ===== */
.header {
    height: 50px;
    padding: 5px 0;
}

.header .logo {
    width: 30px;
}

.btn-outline-light {
    padding: 3px 10px !important; /* 减小按钮padding */
}

/* ===== 排版元素 ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
}

/* ===== 链接样式 ===== */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* ===== 表单元素 ===== */
button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    margin: 0;
    resize: none !important;
}

button {
    cursor: pointer;
    background-color: transparent;
    border: none;
    padding: 0;
}

/* ===== 表格样式 ===== */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

th, td {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    text-align: left;
}

/* ===== 图片和媒体 ===== */
img {
    max-width: 100%;
    height: auto;
    border-style: none;
    vertical-align: middle;
}

/* ===== 工具类 ===== */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* 面包屑导航 */
.breadcrumb {
    margin: 15px 10px;
    font-size: 14px;
}

/* 卡片样式 */
.card {
    margin: 15px;
    background: #FFF;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ===== 响应式基础 ===== */
@media ( prefers-reduced-motion : reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== 打印样式 ===== */
@media print {
    body {
        background: none;
        min-width: auto;
    }
    .no-print {
        display: none !important;
    }
}