
/* 基础样式 */
.news-flash-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
    padding: 20px 0;
}

.news-flash-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 标题样式 */
.news-flash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-flash-header h1 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

/* 详情页分类标签美化（专题标签样式优化） */
.news-flash-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
    align-items: center;
}

.news-flash-single-meta span.news-flash-specials {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.news-flash-single-meta span.news-flash-specials::before {
    content: "|";
    margin-right: 6px;
    color: #e0e0e0;
    font-size: 12px;
}

.news-flash-single-meta span.news-flash-specials a {
    background-color: #f0f7ff;
    color: #2c5282;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.news-flash-single-meta span.news-flash-specials a:hover {
    background-color: #e6f2ff;
    color: #1a365d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .news-flash-single-meta span.news-flash-specials {
        margin-top: 8px;
        width: 100%;
        justify-content: center; /* 可选：居中对齐 */
    }
    
    .news-flash-single-meta span.news-flash-specials::before {
        display: none;
    }
}

/* 评论按钮样式优化 */
.news-flash-comments .comment-toggle {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 10px; /* 圆角设计 */
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.news-flash-comments .comment-toggle:hover {
    background-color: #e9ecef;
    color: #495057;
}

/* 调整元数据区域布局 */
.news-flash-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.news-flash-single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.news-flash-single-meta span i {
    color: #3498db;
    font-size: 15px;
    width: 18px;
    text-align: center;
}

/* 移除分类前的分隔符 */
.news-flash-single-meta span.news-flash-categories::before {
    display: none;
}

/* 为评论按钮前添加分隔符 */
.news-flash-comments::before {
    content: "•";
    margin-right: 10px;
    color: #ddd;
}

/* 统一按钮样式 */
.btn,.like-button {
    font-weight: 600;
    font-size: 14px;
    padding: 10px 26px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.btn i,.like-button i {
     margin-right: 13px;
}

/* 基础按钮样式 */
.btn {
    background-color: #3498db;
    color: #fff;
    border: none;
}

.btn:hover {
    background-color: #2980b9;
    color: #fff;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #2ecc71;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* 点赞按钮样式 */
.like-button {
    background-color: #2ecc71;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    position: relative;
}

.like-button:hover {
    background-color: #27ae60;
}

.like-button.liked {
    background-color: #e74c3c;
}

.like-button.liked:hover {
    background-color: #c0392b;
}

.like-button .like-count {
    margin-left: 8px;
}

/* 点赞动画效果 */
@keyframes likePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.like-button.liked i {
    animation: likePulse 0.5s ease;
}

/* Banner样式 */
.news-flash-banner {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-flash-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 布局样式 */
.news-flash-wrapper {
    display: flex;
    gap: 30px;
}

/* 侧边栏样式 */
.news-flash-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-module {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.sidebar-module h3 {
    font-size: 16px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #2c3e50;
    font-weight: 600;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #34495e;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.category-list a:hover,
.category-list a.active {
    color: #3498db;
}

.category-list .count {
    background: #f5f5f5;
    color: #7f8c8d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* 内容区样式 */
.news-flash-content {
    flex-grow: 1;
    min-width: 0;
}

/* 列表样式 */
.news-flash-list {
    display: grid;
    gap: 20px;
}

.news-flash-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-flash-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-flash-item-meta {
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.news-flash-item-meta span:not(:first-child)::before {
    content: "•";
    margin-right: 10px;
    color: #ddd;
}

.news-flash-item-meta a {
    color: #7f8c8d;
    text-decoration: none;
}

.news-flash-item-meta a:hover {
    color: #3498db;
    text-decoration: underline;
}

.news-flash-item-title {
    margin: 0 0 15px;
    font-size: 18px;
    line-height: 1.4;
}

.news-flash-item-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-flash-item-title a:hover {
    color: #3498db;
    text-decoration: underline;
}

.news-flash-item-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-flash-item-thumbnail {
    margin-top: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.news-flash-item-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.news-flash-item-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

/* 分页样式 */
.news-flash-pagination {
    margin: 30px 0;
    text-align: center;
}

.news-flash-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 5px;
}

.news-flash-pagination li {
    display: inline;
}

.news-flash-pagination a,
.news-flash-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    text-decoration: none;
    color: #34495e;
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.news-flash-pagination a:hover {
    background-color: #f5f7fa;
    color: #3498db;
    border-color: #ddd;
}

.news-flash-pagination .current {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
    font-weight: 500;
}

/* 详情页样式 */
.news-flash-single {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

/* 详情页标题适配 */
.news-flash-single-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    letter-spacing: -0.02em;
}

/* 小屏幕设备 */
@media (max-width: 767px) {
    .news-flash-single-title {
        font-size: 20px;
    }
}

/* 平板设备 */
@media (min-width: 768px) and (max-width: 1023px) {
    .news-flash-single-title {
        font-size: 22px;
    }
}

/* 大屏幕设备 */
@media (min-width: 1024px) {
    .news-flash-single-title {
        font-size: 26px;
    }
}

.news-flash-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 30px;
    color: #666;
}

.news-flash-single-meta span:not(:first-child)::before {
    content: "|";
    margin-right: 2px;
    color: #e0e0e0;
    font-size: 12px;
}

.news-flash-single-meta a {
   background-color: #f0f7ff;
    color: #2c5282;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.news-flash-single-meta a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.news-flash-single-thumbnail {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-flash-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.news-flash-single-content {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.news-flash-single-content p {
    margin-bottom: 20px;
}

/* 按钮容器样式 */
.news-flash-actions-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.news-flash-single-actions {
    padding-top: 20px;
    border-top: 1px solid #eee;
}



/* 点赞按钮容器 */
.news-flash-like-container {
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* 相关快讯 */
.news-flash-related {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.news-flash-related h3 {
    font-size: 18px;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #2c3e50;
}

.news-flash-related-list {
    display: grid;
    gap: 15px;
}

.news-flash-related-item {
    padding: 15px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.news-flash-related-item:hover {
    background-color: #f9f9f9;
}

/* 相关快讯标题适配 */
.news-flash-related-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 小屏幕 */
@media (max-width: 767px) {
    .news-flash-single-title {
        font-size: 22px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    .news-flash-single-meta {
        padding: 12px 15px;
        gap: 12px;
        font-size: 13px;
    }
    
    .news-flash-single-meta span:not(:first-child)::before {
        margin-right: 12px;
    }
}

/* 大屏幕 */
@media (min-width: 768px) {
    .news-flash-related-title {
        max-width: 25em;
        font-size: 16px;
    }
}

.news-flash-related-title a {
    color: #2c3e50;
    text-decoration: none;
}

.news-flash-related-title a:hover {
    color: #3498db;
    text-decoration: underline;
}

.news-flash-related-item time {
    font-size: 13px;
    color: #7f8c8d;
}

.no-related,
.no-news-flash {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* 模态框样式 */
.news-flash-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}

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

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

#modal-title {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 20px;
}

/* 表单样式 */
.news-flash-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.required {
    color: #e74c3c;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.form-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #dff0d8;
    color: #3c763d;
    display: block;
}

.form-message.error {
    background-color: #f2dede;
    color: #a94442;
    display: block;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .news-flash-wrapper {
        flex-direction: column;
    }
    
    .news-flash-sidebar {
        width: 100%;
    }
    
    .news-flash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .news-flash-actions {
        width: 100%;
        display: flex;
        gap: 10px;
    }
    
    .btn,.like-button {
        flex: 1;
        justify-content: center;
    }
    
    .news-flash-pagination ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .news-flash-single {
        padding: 20px;
    }
    
    .news-flash-single-title {
        font-size: 22px;
    }
    
    .modal-content {
        margin: 20px auto;
        padding: 20px;
    }
}

/* 加载状态样式 */
.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 标题截断样式 */
.news-flash-item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 移动端默认显示8个字 */
.news-flash-item-title {
    max-width: 8em;
}

/* 评论图标样式 */
.news-flash-comments {
    
}

.comment-toggle {
    background: transparent;
    border: none;
    color: #3498db;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.comment-toggle i {
    margin-right: 5px;
}

/* 评论弹窗样式 */
.comments-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1001;
    overflow-y: auto;
}

.comments-modal .modal-content {
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-date {
    color: #7f8c8d;
    font-size: 12px;
    margin-bottom: 10px;
}

.comments-pagination {
    margin: 20px 0;
    text-align: center;
}

.comment-page {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.comment-page.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

/* 评论表单样式 */
.comment-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-prompt {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.login-prompt p {
    margin-bottom: 15px;
    color: #666;
}

/* 嵌套评论样式 */
.child-comments {
    list-style: none;
    padding-left: 25px;
    margin-top: 15px;
}

.comment-item {
    position: relative;
}

/* 子评论左侧连接线 */
.child-comments .comment-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #eee;
}

/* 引用评论样式增强 */
.quoted-comment {
    background-color: #f5f7fa;
    border-left: 3px solid #3498db;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 0.9em;
}

.quoted-author {
    font-weight: bold;
    color: #3498db;
}

.quoted-content {
    margin-top: 5px;
    color: #666;
}

/* 引用按钮样式 */
.quote-comment {
    background: transparent;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    padding: 2px 5px;
}

.quote-comment:hover {
    background-color: #f0f7ff;
    border-radius: 3px;
}

/* 平板设备显示12个字 */
@media (min-width: 768px) {
    .news-flash-item-title {
        max-width: 12em;
    }
}

/* 桌面设备显示18个字 */
@media (min-width: 1024px) {
    .news-flash-item-title {
        max-width: 18em;
    }
}

/* 大屏幕显示22个字

/* 大屏幕显示22个字 */
@media (min-width: 1200px) {
    .news-flash-item-title {
        max-width: 22em;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 加载更多按钮样式 */
.comments-load-more {
    margin-top: 20px;
    text-align: center;
}

.load-more-comments {
    background-color: #f8f9fa;
    color: #3498db;
    border: 1px solid #3498db;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-comments:hover {
    background-color: #3498db;
    color: white;
}

.load-more-comments:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
/* 移动端评论区适配 */
@media (max-width: 767px) {
    /* 评论模态框 */
    .comments-modal .modal-content {
        margin: 10px;
        padding: 15px;
        width: calc(100% - 20px);
    }
    
    /* 评论列表 */
    .comment-item {
        padding: 10px 0;
    }
    
    .child-comments {
        padding-left: 15px;
    }
    
    .child-comments .comment-item::before {
        left: -10px;
    }
    
    /* 投稿表单 */
    .modal-content {
        width: calc(100% - 20px);
        margin: 10px auto;
        padding: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn,.like-button {
        width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 分享模态框 */
    .nice-popup-content {
        width: calc(100% - 20px);
        margin: 10px auto;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .share-option {
        padding: 10px 5px;
    }
}

/* 平板设备优化 */
@media (min-width: 768px) and (max-width: 1023px) {
    .comments-modal .modal-content {
        width: 90%;
        max-width: 600px;
    }
}

/* 标签样式 */
.news-flash-tags {
    margin: 25px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.tags-label {
    display: inline-block;
    margin-right: 10px;
    color: #666;
    font-weight: 500;
}

.tags-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f5f7fa;
    color: #3498db;
    border-radius: 12px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background-color: #eef2f7;
    color: #2980b9;
    transform: translateY(-1px);
}

/* 标签汇总页整体风格调整 */
.tag-archive-page {
    background-color: #f5f7fa;
    padding: 30px 0 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 头部区域优化 */
.tag-archive-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tag-archive-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.tag-archive-description {
    color: #666;
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 标签云样式优化 */
.tag-cloud {
    margin: 25px 0 35px;
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tag-cloud-item {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f7fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #34495e;
    text-decoration: none;
    margin: 0 6px 10px 0;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag-cloud-item:hover {
    background: #3498db;
    color: #ffffff;
    transform: translateY(-2px);
}

.tag-cloud-item.active {
    background: #3498db;
    color: #ffffff;
    font-weight: 500;
}

/* 文章网格布局 */
.tag-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

/* 文章卡片样式 */
.tag-post-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.tag-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* 文章缩略图 */
.tag-post-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.tag-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tag-post-card:hover .tag-post-thumbnail img {
    transform: scale(1.05);
}

/* 文章分类角标 */
.tag-post-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #3498db;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 2;
}

/* 文章内容区域 */
.tag-post-content {
    padding: 20px;
}

.tag-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.tag-post-meta time,
.tag-post-meta .views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-post-meta i {
    font-size: 0.9rem;
    color: #3498db;
}

.tag-post-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.tag-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tag-post-title a:hover {
    color: #3498db;
}

.tag-post-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 阅读更多按钮 */
.tag-post-readmore {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-post-readmore i {
    margin-left: 6px;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.tag-post-card:hover .tag-post-readmore i {
    transform: translateX(3px);
}

/* 分页样式调整 */
.news-flash-pagination {
    margin: 40px 0 20px;
}

.news-flash-pagination ul {
    gap: 6px;
}

.news-flash-pagination a,
.news-flash-pagination span {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #eee;
}

.news-flash-pagination .current {
    background-color: #3498db;
    border-color: #3498db;
}

.news-flash-pagination a:hover {
    border-color: #3498db;
    color: #3498db;
    background-color: #f0f7ff;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .tag-archive-header {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    .tag-archive-title {
        font-size: 1.8rem;
    }
    
    .tag-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tag-post-thumbnail {
        height: 160px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .tag-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/*列表项开始*/


/* 清除浮动 */
.news-flash-item-content::after {
    content: "";
    display: table;
    clear: both;
}

/* 右侧信息区 - 横向排列（类似 PandaPro 的 post-actions） */
.news-flash-item-sidebar {
    display: flex;
    align-items: center;
    gap: 8px; /* 减小间距 */
    padding: 8px 0;
    flex-wrap: wrap;
    margin-left: 1px; /* 缩略图宽度+边距 */
}

/* 基础按钮样式 */
.news-flash-item-sidebar .meta-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* 减小图标和文字间距 */
    padding: 5px 8px; /* 减小内边距 */
    border-radius: 12px; /* 稍微减小圆角 */
    font-size: 12px; /* 减小字体大小 */
    font-weight: 500;
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* 悬停效果 */
.news-flash-item-sidebar .meta-item:hover {
    background-color: #e9ecef;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 图标样式 - 减小图标尺寸 */
.news-flash-item-sidebar .meta-item i {
    font-size: 12px; /* 减小图标大小 */
    width: 14px; /* 减小图标容器宽度 */
    text-align: center;
}

/* 阅读量（views）- 浅灰色 */
.news-flash-item-sidebar .meta-item.views {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* 减小图标和文字间距 */
    padding: 5px 8px; /* 减小内边距 */
    border-radius: 12px; /* 稍微减小圆角 */
    font-size: 12px; /* 减小字体大小 */
    font-weight: 500;
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* 评论数（comments）- 浅蓝色 */
.news-flash-item-sidebar .meta-item.comments {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* 减小图标和文字间距 */
    padding: 5px 8px; /* 减小内边距 */
    border-radius: 12px; /* 稍微减小圆角 */
    font-size: 12px; /* 减小字体大小 */
    font-weight: 500;
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* 重要性标记（priority）- 彩色背景 */
.news-flash-item-sidebar .meta-item.priority {
    color: white;
    border: none;
}

/* 普通（normal）- 绿色 */
.news-flash-item-sidebar .meta-item.priority.normal {
    background-color: #007bff;
}

/* 重要（important）- 橙色 */
.news-flash-item-sidebar .meta-item.priority.important {
    background-color: #ff9500;
}

/* 紧急（urgent）- 红色 */
.news-flash-item-sidebar .meta-item.priority.urgent {
    background-color: #ff4757;
}

/* 推荐（recommended）- 绿色 */
.news-flash-item-sidebar .meta-item.priority.recommended {
    background-color: #2ed573;
}


/* 移动端响应式调整 */
@media (max-width: 768px) {
    .news-flash-item-sidebar {
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px; /* 减小移动端间距 */
    }
    
    .news-flash-item-thumbnail {
        float: none;
        display: block;
        margin: 0 auto 10px;
        max-width: 100%;
    }
    
    .news-flash-item-sidebar .meta-item {
        padding: 4px 6px; /* 减小移动端内边距 */
        font-size: 11px; /* 减小移动端字体大小 */
    }
    
    .news-flash-item-sidebar .meta-item i {
        font-size: 11px; /* 减小移动端图标大小 */
        width: 12px; /* 减小移动端图标容器宽度 */
    }
}
/*列表项结束*/
/*tips start*/
/* 时效性提示标签样式 - 适配不同时期的色彩变化 */
.tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 基础信息样式 */
.tip.info {
    border: 1px solid;
}

/* 图标通用样式 */
.tip::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
}

/* 最新内容（30天内）- 绿色系 */
.tip.info.fresh {
    background-color: #f6ffed;
    color: #52c41a;
    border-color: #d9f7be;
}

.tip.info.fresh::before {
    background-color: #52c41a;
    content: "✓";
}

/* 普通时效（30-90天）- 蓝色系 */
.tip.info {
    background-color: #f0f7ff;
    color: #1890ff;
    border-color: #e6f7ff;
}

.tip.info::before {
    background-color: #1890ff;
    content: "ⓘ";
}

/* 较旧内容（90-180天）- 橙色系 */
.tip.info.old {
    background-color: #fff7e6;
    color: #fa8c16;
    border-color: #ffe8cc;
}

.tip.info.old::before {
    background-color: #fa8c16;
    content: "!";
}

/* 过时内容（180天以上）- 红色系 */
.tip.info.obsolete {
    background-color: #fff1f0;
    color: #f5222d;
    border-color: #ffccc7;
}

.tip.info.obsolete::before {
    background-color: #f5222d;
    content: "⚠";
}

/* 悬停效果增强 */
.tip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tip p {
    margin: 0;
    padding: 0;
}
/*tips end*/

/* 编辑按钮调整 */
.edit-news-flash-container {
    display: flex;
    align-items: center;
}

.edit-news-flash.icon-only {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #3498db;
    margin: 0;
}

.edit-news-flash.icon-only:hover {
    background-color: #f0f7ff;
    border-color: #e6f7ff;
    color: #1890ff;
}

.edit-news-flash.icon-only i {
    margin-right: 0; /* 移除图标右侧间距 */
    font-size: 16px;
}

/* 确保元信息区域正确显示 */
.news-flash-single-meta {
    display: flex;
    align-items: center;
    /* 保留原有其他样式 */
}
/*类别开始*/
/* ===== 现代分类侧边栏 ===== */
.news-flash-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 100px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border: 1px solid #f1f5f9;
    /* 现代化阴影和圆角 */
}

/* 模块头部 */
.category-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    /* 无边框分隔线 */
}

.category-module-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

/* 切换全部按钮 - 现代化设计 */
.toggle-all-categories {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    /* 柔和的背景和边框 */
}

.toggle-all-categories:hover {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.toggle-all-categories i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

/* 分类容器 */
.category-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 全部分类特殊样式 */
.category-all {
    margin-bottom: 12px;
}

.category-all a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.category-all a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.category-all a.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
}

/* 分类项目 */
.category-item {
    margin-bottom: 4px;
}

/* 父分类 */
.category-parent {
    margin-bottom: 2px;
}

.parent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.parent-header:hover {
    background: #f9fafb;
    color: #1f2937;
    border-color: #f1f5f9;
    transform: translateY(-1px);
}

.parent-header a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.parent-header a.active {
    color: #3b82f6;
    font-weight: 600;
}

/* 分类内容布局 */
.category-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.category-icon {
    font-size: 14px;
    opacity: 0.8;
}

.category-title {
    flex: 1;
    font-weight: inherit;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分类计数 */
.category-count,
.category-count-small {
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.category-count-small {
    font-size: 11px;
    padding: 1px 5px;
    background: #f8f9fa;
    color: #9ca3af;
}

.parent-header a.active .category-count {
    background: #eff6ff;
    color: #3b82f6;
}

/* 切换按钮 */
.toggle-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toggle-btn:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.toggle-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.toggle-btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(90deg);
}

/* 子分类 */
.category-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    border-radius: 0 0 8px 8px;
    border: 1px solid #f1f5f9;
    border-top: none;
}

.category-children.children-open {
    max-height: 300px;
}

/* 子分类项 */
.category-child {
    padding: 8px 16px 8px 40px;
    border-bottom: 1px solid #f8f9fa;
}

.category-child:last-child {
    border-bottom: none;
}

.category-child a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #4b5563;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.category-child a:hover {
    background: #f0f9ff;
    color: #2563eb;
    padding-left: 44px;
}

.category-child a.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

.category-child a .category-count-small {
    background: #f8f9fa;
    color: #9ca3af;
}

.category-child a.active .category-count-small {
    background: #dbeafe;
    color: #2563eb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-flash-sidebar {
        padding: 20px;
        margin: 0 -12px 20px -12px;
    }
    
    .category-module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .category-module-header h3 {
        font-size: 16px;
    }
    
    .parent-header {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .parent-header a {
        gap: 6px;
    }
    
    .category-child {
        padding: 6px 14px 6px 32px;
        font-size: 12px;
    }
    
    .category-children.children-open {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .news-flash-sidebar {
        padding: 16px;
    }
    
    .parent-header {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .category-child {
        padding: 5px 12px 5px 28px;
        font-size: 11px;
    }
}