/* ==========================================================================
   全局公共样式 - Global Common Styles
   ========================================================================== */

/* CSS重置和基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* 基础HTML元素样式 */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'SimHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 图片基础样式 */
img {
    max-width: 100%;
    height: auto;
    border: 0;
}

/* 按钮基础样式 */
button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
    outline: none;
}

button:focus {
    outline: none;
    outline-offset: 2px;
}

button img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 链接基础样式 */
.page a,.page  a:link,.page  a:visited,.page  a:hover,.page  a:active,.page  a:focus {
    color: inherit;
    text-decoration: none;
     /* background-color: transparent;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-fill-color: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border: none;
    box-shadow: none;
    text-shadow: none;
    font-weight: inherit;
    font-style: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    word-spacing: inherit;
    text-transform: inherit;
    text-indent: inherit;
    text-align: inherit;
    vertical-align: inherit;
    white-space: inherit;
    list-style: none;
    margin: 0;
    padding: 0; */
}

.user-page .btn, .user-page .btn-danger{
    color: #fff !important;
}

.user-page .btn-default {
    color: #444 !important;
}

/* 表单元素基础样式 */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: #105E8C;
    box-shadow: 0 0 0 2px rgba(16, 94, 140, 0.2);
}

/* 标题基础样式 */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: 'ly-Bold';

}

h2 {
    font-size: clamp(1.3rem, 3.5vw, 2rem);
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

h4 {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

h5 {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

h6 {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
}

/* 段落和文本基础样式 */
p {
    margin: 0 0 1rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 文本换行处理 */
h1, h2, h3, h4, h5, h6, p, div, span, td, th, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@font-face {
    font-family: 'ly-Bold';
    src: url('../fonts/ly-Bold.woff2') format('woff2'), 
       url('../fonts/ly-Bold.woff') format('woff'),
       url('../fonts/ly-Bold.ttf') format('truetype');
    font-display: swap;
}

.ly-Bold {
    font-family: 'ly-Bold';
}


/* 容器和布局基础样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flexbox 布局工具类 */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

.flex-1 {
    flex: 1;
}

/* 文本对齐工具类 */
.text-center {
    text-align: center;
}

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

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

/* 颜色工具类 */
.text-primary {
    color: #105E8C;
}

.text-dark {
    color: #333;
}

.text-light {
    color: #666;
}

.text-muted {
    color: #999;
}

.bg-primary {
    background-color: #105E8C;
}

.bg-light {
    background-color: #f8f9fa;
}

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

/* 间距工具类 */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

/* 通用按钮样式 */
.btn {
    display: inline-block;
    /* padding: 0.75rem 1.5rem; */
    /* font-size: 1rem; */
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn:focus {
    outline: 2px solid #105E8C;
    outline-offset: 2px;
}

.btn-primary {
    background-color: #105E8C;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0d4a73;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 94, 140, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #105E8C;
    color: #105E8C;
}

.btn-outline:hover {
    background-color: #105E8C;
    color: #fff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* 卡片组件基础样式 */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* 基础动画和过渡效果 */
.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.transition-colors {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 基础动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* 动画工具类 */
.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slideIn {
    animation: slideIn 0.5s ease-out;
}

.animate-bounce {
    animation: bounce 1s;
}

/* 响应式设计基础断点 */
@media screen and (max-width: 1200px) {
    .container,
    .section-content {
        padding: 0 15px;
    }
}

@media screen and (max-width: 768px) {
    .container,
    .section-content {
        padding: 0 10px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header,
    .card-footer {
        padding: 0.75rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    .container,
    .section-content {
        padding: 0 8px;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-header,
    .card-footer {
        padding: 0.5rem 0.75rem;
    }
}

/* 无障碍支持 */
@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 (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .card {
        border: 1px solid #000;
    }
}

/* 深色模式基础支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --border-color: #333333;
        --card-bg: #2d2d2d;
    }
}

/* 打印样式 */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid #000;
        background: transparent;
        color: #000;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* 工具类 - 显示/隐藏 */
.hide {
    display: none !important;
}

.show {
    display: block !important;
}

.invisible {
    visibility: hidden !important;
}

.visible {
    visibility: visible !important;
}

/* 工具类 - 浮动和清除 */
.float-left {
    float: left;
}

.float-right {
    float: right;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 工具类 - 位置 */
.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.position-fixed {
    position: fixed;
}

.position-sticky {
    position: sticky;
}

/* 工具类 - 圆角 */
.rounded {
    border-radius: 4px;
}

.rounded-sm {
    border-radius: 2px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-xl {
    border-radius: 12px;
}

.rounded-full {
    border-radius: 50%;
}

/* 工具类 - 阴影 */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.shadow-xl {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* 工具类 - 宽度 */
.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

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

/* 选择文本样式 */
::selection {
    background-color: rgba(16, 94, 140, 0.3);
    color: #000;
}

::-moz-selection {
    background-color: rgba(16, 94, 140, 0.3);
    color: #000;
}


.pt10 {
    padding: 0 5px;
}

.pagination .active {
    color: #105E8C;
    border: 1px solid #105E8C;
    border-radius: 5px;
    padding: 0 5px;
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.page .jumpto {
    display: none;
}

.page .pagination {
    gap: 5px;
}

.edui-faked-video {
    width: 100%;
    height: auto;
}

.article-container {
    max-width: 1200px;
    width: 100%;
}

.article-container .article-main {
    min-height: 500px;
}

.article-container .archive-title {
    text-align: center;
}

.article-container .article-top {
    width: 100%;
}

.article-container .article-mt {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.article-container .article-top {
}