/* ==================== 全局重置样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 清除链接下划线 */
a {
    text-decoration: none;
    color: inherit;
}

/* 图片默认样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 表单元素默认样式 */
input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* 按钮默认样式 */
button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ==================== 基础样式 ==================== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* 页面容器 */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主内容区域 */
.content {
    flex: 1;
    margin-left: 220px;
    min-height: calc(100vh - 44px);
    background: #f5f7fa;
    margin-top: 74px;
}

/* 资讯页面特殊样式 */
#content.news-content {
    margin-top: 44px;
}

/* ==================== 响应式基础样式 ==================== */
@media (max-width: 900px) {
    .content {
        margin-left: 0;
        padding: 10px;
    }
}

/* ==================== 通用工具类 ==================== */
.text-center {
    text-align: center;
}

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

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

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-flex-between {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

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

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-10 {
    padding-top: 10px;
}

.pt-20 {
    padding-top: 20px;
}

.pb-10 {
    padding-bottom: 10px;
}

.pb-20 {
    padding-bottom: 20px;
}

.bb-1 {
    border-bottom: 1px solid #eee;
}

.bt-1 {
    border-top: 1px solid #eee;
}

/* ==================== 文本溢出处理 ==================== */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 卡片通用样式 ==================== */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ==================== 按钮通用样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.btn-primary:hover {
    background: #0052a3;
    border-color: #0052a3;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border-color: #ddd;
}

.btn-secondary:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

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

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

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}
