/* 文章详情页样式 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 右侧悬浮按钮 */
.floating-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.floating-button {
    display: block;
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.floating-button:hover {
    background-color: #f0f0f0;
    transform: translateX(-5px);
}

.floating-button.urgent {
    background-color: #E4393C;
    color: white;
}

.floating-button.urgent:hover {
    background-color: #C1272D;
}

/* 导航栏样式 */
#header-1-06 {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container-1-41 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-1-003 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-left-1-228 {
    display: flex;
    align-items: center;
}

.logo-1-519 {
    font-size: 24px;
    font-weight: bold;
    color: #E4393C;
    text-decoration: none;
    margin-right: 30px;
}

.nav-links-1-520 {
    display: flex;
}

.nav-link-1-893, .nav-link-1-894, .nav-link-1-895, .nav-link-1-896, .nav-link-1-897 {
    margin-right: 20px;
    text-decoration: none;
    color: #666;
    font-size: 16px;
    transition: color 0.3s ease;
    display: none; /* 隐藏导航链接 */
}

.nav-link-1-893:hover, .nav-link-1-894:hover, .nav-link-1-895:hover, .nav-link-1-896:hover, .nav-link-1-897:hover {
    color: #E4393C;
}

.nav-link-1-893.active, .nav-link-1-894.active, .nav-link-1-895.active, .nav-link-1-896.active, .nav-link-1-897.active {
    color: #E4393C;
    font-weight: 500;
}

.nav-right-1-229 {
    display: flex;
    align-items: center;
}

.search-container-1-523 {
    position: relative;
    margin-right: 15px;
}

.search-input-1-907 {
    padding: 8px 15px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
    font-size: 14px;
}

.search-icon-button-1-908 {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.search-button-1-522 {
    padding: 8px 20px;
    background-color: #E4393C;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-button-1-522:hover {
    background-color: #C1272D;
}

/* 主要内容区域 */
main {
    padding: 30px 0;
}

.article-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px 50px;
    line-height: 1.7;
}

/* 文章头部 */
.article-header {
    margin-bottom: 35px;
    /* 移除了边框分隔符 */
    padding-bottom: 10px;
}

#article-title {
    font-size: 30px;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.article-meta p {
    margin-right: 20px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tag-item {
    background-color: #FADCDC;
    color: #E4393C;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tag-item:hover {
    background-color: #F5BABA;
}

/* 文章内容 */
.article-content {
    margin-bottom: 50px;
}

.article-abstract, .article-keywords, .article-body {
    margin-bottom: 40px;
}

.article-abstract p, .article-keywords p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    text-align: justify;
}

.article-abstract h2, .article-keywords h2, .article-body h2 {
    font-size: 22px;
    color: #E4393C;
    margin-bottom: 20px;
    /* 移除了边框分隔符 */
    font-weight: 500;
}

.article-body p {
    margin-bottom: 24px;
    text-align: justify;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.references-list {
    padding-left: 20px;
    margin-top: 15px;
    list-style-type: decimal;
}

.references-list li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

/* 相关文章 */
.related-articles {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.related-articles h2 {
    font-size: 20px;
    color: #E4393C;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #FADCDC;
}

.related-articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.related-article-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.related-article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.related-article-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.related-article-item p {
    font-size: 13px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content-1-220 {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-1-520, .user-actions-1-526 {
        margin-top: 15px;
        width: 100%;
    }
    
    .nav-list-1-521 {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .user-actions-1-526 {
        justify-content: flex-start;
    }
    
    .login-button-1-527 {
        margin-left: 0;
    }
    
    .article-container {
        padding: 20px;
    }
    
    #article-title {
        font-size: 24px;
    }
    
    .related-articles-list {
        grid-template-columns: 1fr;
    }
}

.nav-a:link,.nav-a:visited{
    text-decoration: none;
}