/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
    min-width: 0;
}

html {
    font-size: 16px;
}

/* AOS 动画水平滚动条修复 */
html:has([data-aos]),
body:has([data-aos]) {
    overflow-x: clip;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 链接样式 */
a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ec6935;
}

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

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

/* 视频样式 */
video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 表单元素样式 */
button, textarea, input {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
}

/* 选择文本样式 */
::selection {
    color: #fff;
    background-color: #ec6935;
}

::-moz-selection {
    color: #fff;
    background-color: #ec6935;
}

::-webkit-selection {
    color: #fff;
    background-color: #ec6935;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 0.1875rem;
    height: 0.1875rem;
    background-color: #F5F5F5;
}

::-webkit-scrollbar-track {
    border-radius: 0.625rem;
    background-color: #E2E2E2;
}

::-webkit-scrollbar-thumb {
    border-radius: 0.625rem;
    background-color: #ec6935;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #d85a2a;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.9375rem;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

/* 段落样式 */
p {
    margin-bottom: 0.9375rem;
    line-height: 1.8;
}

/* 容器样式 */
.container {
    max-width: 75rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
}

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

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

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

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

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.875rem;
    background-color: #ec6935;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: #d85a2a;
    transform: translateY(-0.125rem);
}

.btn-outline {
    background-color: transparent;
    border: 0.0625rem solid #ec6935;
    color: #ec6935;
}

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

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    padding: 0.875rem 1.75rem;
    border: 0.0625rem solid #dadbdf;
    text-align: left;
}

th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0.0625rem solid #ddd;
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #ec6935;
    outline: none;
}

/* 分隔线 */
hr {
    border: none;
    border-top: 0.0625rem solid #eee;
    margin: 2rem 0;
}

/* 代码样式 */
code {
    padding: 0.125rem 0.375rem;
    background-color: #f5f5f5;
    border-radius: 0.1875rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    padding: 0;
    background: none;
}

/* 引用样式 */
blockquote {
    border-left: 0.25rem solid #ec6935;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}
/* 文章正文样式 */
.yc-detail-article {
    font-size: 1.0625rem;
    color: #414141;
    line-height: 2.375rem;
    text-align: justify
}

.yc-detail-article strong {
    font-weight: bold
}

.yc-detail-article caption {
    background: #e8e8e8;
    border: 1px solid #e8e8e8;
    padding: .875rem 1.75rem;
    font-size: 1.25rem;
    color: #000
}

.yc-detail-article table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin: 1.5rem 0
}

.yc-detail-article td,
.yc-detail-article th {
    padding: .875rem 1.75rem;
    border: 1px solid #dadbdf
}

.yc-detail-article th {
    color: #333;
    background: #f9f9f9;
    font-size: 1.375rem
}

.yc-detail-article td {
    font-size: 1.125rem;
    color: #212121
}

.yc-detail-article td p,
.yc-detail-article th p {
    padding-bottom: 0;
    margin-bottom: 0;
    text-align: inherit
}

.yc-detail-article img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    display: inline-block
}

.yc-detail-article p:first-child img:first-child {
    margin-top: 0
}

.yc-detail-article img:last-child {
    margin-bottom: 0
}

.yc-detail-article img:first-child {
    margin-top: 0
}

.yc-detail-article p:last-child img:last-child {
    margin-bottom: 0
}

.yc-detail-article video {
    max-width: 100%;
    display: inline-block
}

.yc-detail-article a {
    color: #363636
}

.yc-detail-article ul li,
.yc-detail-article ol li {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important
}

.yc-detail-article ul li p,
.yc-detail-article ol li p {
    padding-bottom: 0;
    margin-bottom: 3px !important
}

.yc-detail-article ul li {
    list-style: disc;
    margin-left: 1.625rem
}

.yc-detail-article ol li {
    list-style: decimal;
    margin-left: 1.625rem
}

.yc-detail-article h1 {
    font-size: 2.125rem;
    color: #000
}

.yc-detail-article h2 {
    font-size: 1.875rem;
    color: #000
}

.yc-detail-article h3 {
    font-size: 1.75rem;
    color: #000
}

.yc-detail-article h4 {
    font-size: 1.5rem;
    color: #000
}

.yc-detail-article h5 {
    font-size: 1.25rem;
    color: #333;
    white-space: normal
}

.yc-detail-article h6 {
    font-size: 1.125rem;
    color: #333
}

@media(max-width:480px) {
    .yc-detail-article h1 {
        font-size: 1.875rem
    }

    .yc-detail-article h2 {
        font-size: 1.75rem
    }

    .yc-detail-article h3 {
        font-size: 1.625rem
    }

    .yc-detail-article h4 {
        font-size: 1.375rem
    }

    .yc-detail-article td,
    .yc-detail-article th {
        padding: .75rem .375rem
    }
}
/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(1.25rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

/* 响应式工具类 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

