/**
 * LRYCMS show_article 页面专用样式
 * @author           优化美化
 * @license          http://lryper.com
 * @description      文章详情页面的美化样式，包含点赞、标签、原文链接等组件
 */

/* 现代化顶踩按钮样式 - 简洁版 */
#lrycms_digg_div {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e8ecef;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

#lrycms_digg_div::after {
    content: '文章评价';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #3690cf;
    color: white;
    padding: 4px 16px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(54, 144, 207, 0.2);
}

#lrycms_digg_div div {
    width: 120px;
    height: 45px;
    line-height: 45px;
    display: inline-block;
    text-align: center;
    color: #fff;
    border-radius: 22px;
    cursor: pointer;
    margin: 0 15px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.digg_up {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.digg_up:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.digg_up:active {
    transform: translateY(0);
}

.digg_down {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.digg_down:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.digg_down:active {
    transform: translateY(0);
}

/* 顶踩按钮动画效果 */
@keyframes diggPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#lrycms_digg_div div.clicked {
    animation: diggPulse 0.4s ease-in-out;
}

/* 顶踩按钮图标样式 */
#lrycms_digg_div div i {
    margin-right: 6px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

#lrycms_digg_div div:hover i {
    transform: scale(1.1);
}

.digg_up i {
    color: #fff;
}

.digg_down i {
    color: #fff;
}

/* 数字样式 */
#lrycms_digg_div div span {
    font-weight: 700;
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #lrycms_digg_div {
        padding: 20px 15px;
        margin: 25px 0;
        border-radius: 12px;
    }
    
    #lrycms_digg_div div {
        width: 100px;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        margin: 0 10px;
        border-radius: 20px;
    }
    
    #lrycms_digg_div::after {
        font-size: 11px;
        padding: 3px 12px;
        border-radius: 12px;
    }
    
    #lrycms_digg_div div i {
        font-size: 13px;
        margin-right: 5px;
    }
    
    #lrycms_digg_div div span {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #lrycms_digg_div {
        padding: 15px 10px;
        border-radius: 10px;
    }
    
    #lrycms_digg_div div {
        width: 90px;
        height: 35px;
        line-height: 35px;
        font-size: 13px;
        margin: 0 8px;
        border-radius: 17px;
    }
    
    #lrycms_digg_div::after {
        font-size: 10px;
        padding: 2px 10px;
        border-radius: 10px;
    }
    
    #lrycms_digg_div div i {
        font-size: 12px;
        margin-right: 4px;
    }
    
    #lrycms_digg_div div span {
        font-size: 14px;
    }
}

/* 标签和原文链接美化样式 */
.article-tags-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tags-container, .original-link-section {
    margin-bottom: 25px;
}

.tags-container:last-child, .original-link-section:last-child {
    margin-bottom: 0;
}

.tags-title, .original-link-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3690cf;
    position: relative;
}

.tags-title i, .original-link-title i {
    color: #3690cf;
    font-size: 18px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.tag-item:hover::before {
    left: 100%;
}

.tag-item:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white !important;
}

.tag-item i {
    font-size: 12px;
    opacity: 0.9;
}

.no-tags {
    color: #6c757d;
    font-style: italic;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.original-link-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.link-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
    position: relative;
}

.link-icon {
    color: #3690cf;
    font-size: 16px;
    flex-shrink: 0;
}

.link-url {
    flex: 1;
    color: #495057;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    background: #3690cf;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: #2ecc71;
    animation: copySuccess 0.3s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.link-actions {
    text-align: center;
}

.visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3690cf, #2ecc71);
    color: white !important;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(54, 144, 207, 0.3);
    position: relative;
    overflow: hidden;
}

.visit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.visit-btn:hover::before {
    left: 100%;
}

.visit-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #3690cf);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(54, 144, 207, 0.4);
    text-decoration: none;
    color: white !important;
}

.visit-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.visit-btn:hover i {
    transform: rotate(15deg);
}

/* 上一页下一页导航美化 - 添加标题和美化布局 */
.nextinfo {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nextinfo:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.nextinfo-header {
    background: linear-gradient(135deg, #3690cf, #2980b9);
    padding: 15px 20px;
    position: relative;
}

.nextinfo-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.nextinfo-title i {
    font-size: 18px;
    opacity: 0.9;
}

.nextinfo-content {
    padding: 0;
}

.nav-item {
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    position: relative;
    background: #fff;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-item:hover {
    background: #f8f9fa;
    padding-left: 25px;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #3690cf;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prev-article .nav-label {
    justify-content: flex-start;
}

.next-article .nav-label {
    justify-content: flex-end;
}

.nav-label i {
    font-size: 12px;
    opacity: 0.8;
}

.nav-content {
    line-height: 1.6;
}

.nav-content a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
}

.nav-content a:hover {
    color: #3690cf;
    text-decoration: none;
}

/* 相关文章列表美化 - 保持简洁 */
.otherlink {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.otherlink:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.otherlink h2 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #3690cf;
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    position: relative;
}

.otherlink h2::before {
    content: '📚';
    margin-right: 8px;
    font-size: 18px;
}

.otherlink h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20px;
    width: 40px;
    height: 2px;
    background: #3690cf;
    border-radius: 1px;
}

.related-content {
    padding: 20px;
}

.related-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.related-list li {
    list-style: none;
    margin: 0;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
    border: 1px solid transparent;
}

.related-list li:hover {
    background: #fff;
    border-color: #3690cf;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(54, 144, 207, 0.15);
}

.related-list li::before {
    content: '▶';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #3690cf;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.related-list li:hover::before {
    opacity: 1;
    left: 12px;
}

.related-list li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    line-height: 1.5;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.related-list li:hover a {
    color: #3690cf;
    text-decoration: none;
    padding-left: 15px;
}

/* 空状态样式 */
.no-related-articles {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-content-icon {
    margin-bottom: 15px;
}

.no-content-icon i {
    font-size: 48px;
    color: #dee2e6;
    opacity: 0.7;
}

.no-content-text {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 8px 0;
}

.no-content-desc {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-tags-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .link-display {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .link-url {
        text-align: center;
        font-size: 13px;
    }
    
    .copy-btn {
        align-self: center;
        width: fit-content;
    }
    
    .tags-list {
        justify-content: center;
    }
    
    .tag-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .visit-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* 移动端优化 */
    .nextinfo, .otherlink {
        margin: 20px 0;
        border-radius: 8px;
    }
    
    .nextinfo-header {
        padding: 12px 15px;
    }
    
    .nextinfo-title {
        font-size: 15px;
    }
    
    .nav-item {
        padding: 15px;
    }
    
    .nav-item:hover {
        padding-left: 20px;
    }
    
    .nav-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .otherlink h2 {
        padding: 12px 15px;
    }
    
    .related-content {
        padding: 15px;
    }
    
    .related-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .related-list li {
        padding: 10px 12px;
    }
    
    .related-list li:hover {
        transform: none;
        box-shadow: 0 1px 5px rgba(54, 144, 207, 0.15);
    }
    
    .no-related-articles {
        padding: 30px 15px;
    }
    
    .no-content-icon i {
        font-size: 40px;
    }
    
    .no-content-text {
        font-size: 16px;
    }
    
    .no-content-desc {
        font-size: 13px;
    }
}