
/* 文章详情页样式 */
.srf-single-header {
    background: #fff;
    padding: 16px 16px;
    margin-bottom: 16px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.srf-single-title {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.5px;
    word-break: break-word;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #ffecd2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 16px 20px;
    text-align: center;
    background-color: rgba(102,126,234,0.1);
    border-radius: 14px;
    border-left: 4px solid #667eea;
    border-right: 4px solid #f093fb;
    border-top: 2px solid rgba(102,126,234,0.2);
    box-shadow: 0 4px 16px rgba(102,126,234,0.15), inset 0 1px 0 rgba(255,255,255,0.6);
}

.srf-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #999;
}
.srf-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.srf-author img {
    border-radius: 50%;
}
.srf-author-name {
    color: #666;
    font-weight: 500;
}
.srf-meta-item {
    white-space: nowrap;
}

/* 文章属性标签行 */
.srf-article-badges-wrap {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}
.srf-article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.srf-article-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 14px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}
.srf-article-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}
.srf-article-badge:hover::before {
    left: 100%;
}
.srf-article-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.srf-article-badge.srf-badge-clickable {
    cursor: pointer;
    user-select: none;
}
.srf-article-badge.srf-badge-clickable:active {
    transform: scale(0.95);
}
.srf-article-badge.srf-badge-inactive {
    background: #f0f0f0 !important;
    color: #999 !important;
    box-shadow: none !important;
    opacity: 0.5;
    border: 1px solid #ddd !important;
}
.srf-article-badge.srf-badge-inactive:hover {
    opacity: 0.8;
    background: #e8e8e8 !important;
}
.srf-article-badge.srf-badge-auto::after {
    content: ' 自动';
    font-size: 9px;
    opacity: 0.7;
    margin-left: 2px;
}

/* 置顶 - 红色渐变（三色，带光泽） */
.badge-sticky {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #c0392b 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255,107,107,0.5);
}

/* 精品 - 紫色渐变（三色，带光泽） */
.badge-boutique {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(168,85,247,0.5);
}

/* 精选 - 金色渐变（三色，带光泽） */
.badge-selected {
    background: linear-gradient(135deg, #fde047 0%, #fbbf24 50%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(251,191,36,0.5);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 推荐 - 橙色渐变（三色，带光泽） */
.badge-recommended {
    background: linear-gradient(135deg, #fdba74 0%, #fb923c 50%, #f97316 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(251,146,60,0.5);
}

/* 热门 - 粉红渐变（三色，带光泽） */
.badge-hot {
    background: linear-gradient(135deg, #f9a8d4 0%, #f472b6 50%, #ec4899 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(244,114,182,0.5);
}

/* 最新 - 绿色渐变（三色，带光泽） */
.badge-new {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 50%, #10b981 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(52,211,153,0.5);
}

/* 原创 - 蓝色渐变（三色，带光泽） */
.badge-original {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 50%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(96,165,250,0.5);
}

/* 精华 - 金色渐变（深色，三色，带光泽） */
.badge-essence {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 50%, #d97706 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(252,211,77,0.5);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 独家 - 靛蓝渐变（三色，带光泽） */
.badge-exclusive {
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 50%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(129,140,248,0.5);
}

/* VIP - 金色渐变（尊贵，四色，带光泽） */
.badge-vip {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 30%, #f59e0b 70%, #b45309 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(245,158,11,0.6);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,215,0,0.5);
}

/* 文章标签 */
.srf-single-tags-wrap {
    padding: 0 16px 10px;
}

/* 文章内容 */
/* 静态样式已移除，全部改为动态，由后台设置控制 */
.srf-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    display: block;
}
.srf-single-content p {
    margin: 8px 0;
    text-align: center;
}
.srf-single-content h1,
.srf-single-content h2,
.srf-single-content h3,
.srf-single-content h4,
.srf-single-content h5,
.srf-single-content h6 {
    margin: 24px 0 12px;
    font-weight: 700;
    line-height: 1.4;
}
.srf-single-content h1 { font-size: 28px; }
.srf-single-content h2 { font-size: 24px; }
.srf-single-content h3 { font-size: 20px; }
.srf-single-content h4 { font-size: 18px; }
.srf-single-content ul,
.srf-single-content ol {
    margin: 8px 0;
    padding-left: 24px;
}
.srf-single-content li {
    margin: 6px 0;
}
.srf-single-content blockquote {
    border-left: 4px solid #667eea;
    padding: 12px 16px;
    margin: 16px 0;
    background: #f0f4ff;
    border-radius: 0 8px 8px 0;
    color: #555;
}
.srf-single-content pre {
    background: #f6f8fa;
    color: #24292e;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border: 1px solid #e1e4e8;
    position: relative;
}

/* 代码复制按钮 */
.srf-code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 12px;
    color: #57606a;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}
.srf-code-copy-btn:hover {
    background: #f3f4f6;
    border-color: #8c959f;
    color: #24292e;
}
.srf-code-copy-btn.copied {
    background: #2da44e;
    color: #fff;
    border-color: #2da44e;
}
.srf-single-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}
.srf-single-content pre code {
    background: none;
    padding: 0;
}
.srf-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    overflow-x: auto;
    display: block;
}
.srf-single-content th,
.srf-single-content td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}
.srf-single-content th {
    background: #f5f5f5;
    font-weight: 600;
}
.srf-single-content a {
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}
.srf-single-content a:hover {
    text-decoration: underline;
}
.srf-single-content iframe {
    max-width: 100%;
}
.srf-single-content video {
    max-width: 100%;
    height: auto;
}

/* 文章分类和标签 */
.srf-single-taxonomy {
    background: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.srf-taxonomy-item {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}
.srf-taxonomy-item:last-child {
    margin-bottom: 0;
}
.srf-taxonomy-item a {
    color: #667eea;
    text-decoration: none;
}
.srf-taxonomy-item a:hover {
    text-decoration: underline;
}

/* 点赞按钮 */
.srf-single-like-wrap {
    text-align: center;
    padding: 20px;
    margin-bottom: 16px;
}
.srf-like-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #ff8a80 0%, #ff5252 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.srf-like-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,82,82,0.4);
}

/* 评论区 */
.srf-single-comments {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 上一篇/下一篇 */
.srf-single-nav {
    display: flex;
    gap: 10px;
    padding: 0 12px 16px;
}
.srf-nav-card {
    flex: 1;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.2s;
    min-width: 0;
}
.srf-nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.srf-nav-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.srf-nav-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 文章操作按钮（放在浏览量旁边，显示名字） */
.srf-post-actions-inline {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
    vertical-align: middle;
}
.srf-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: none;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.3;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.srf-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}
.srf-action-btn:hover::before {
    left: 100%;
}
.srf-action-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}
.srf-action-edit:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    color: #fff;
}
.srf-action-delete {
    background: linear-gradient(135deg, #ff8a80 0%, #ff5252 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,82,82,0.3);
}
.srf-action-delete:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255,82,82,0.4);
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .srf-single-title {
        font-size: 20px;
    }
    .srf-single-content {
        font-size: 15px;
        padding: 20px 16px;
    }
    .srf-single-content h1 { font-size: 24px; }
    .srf-single-content h2 { font-size: 20px; }
    .srf-single-content h3 { font-size: 18px; }
    .srf-single-content h4 { font-size: 16px; }
}

@media (max-width: 480px) {
    .srf-single-header {
        padding: 20px 16px;
    }
    .srf-single-title {
        font-size: 18px;
    }
    .srf-single-meta {
        gap: 8px;
        font-size: 12px;
    }
    .srf-meta-item {
        font-size: 12px;
    }
    .srf-article-badges-wrap {
        margin-top: 8px;
        padding-top: 8px;
    }
    .srf-article-badges {
        gap: 4px;
    }
    .srf-article-badge {
        padding: 2px 8px;
        font-size: 9px;
    }
    .srf-single-content {
        font-size: 14px;
        padding: 16px 14px;
        line-height: 1.7;
    }
    .srf-single-content h1 { font-size: 22px; }
    .srf-single-content h2 { font-size: 18px; }
    .srf-single-content h3 { font-size: 16px; }
    .srf-single-content h4 { font-size: 15px; }
    .srf-single-content pre {
        font-size: 12px;
        padding: 12px;
    }
    .srf-single-content code {
        font-size: 12px;
    }
    .srf-single-taxonomy {
        padding: 14px 16px;
    }
    .srf-taxonomy-item {
        font-size: 13px;
    }
    .srf-like-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    .srf-single-comments {
        padding: 16px;
    }
    .srf-single-nav {
        flex-direction: column;
        padding: 0 12px 16px;
    }
    .srf-nav-card {
        padding: 14px;
    }
    .srf-nav-title {
        font-size: 13px;
    }
    .srf-post-actions-inline {
        margin-left: 6px;
        gap: 6px;
    }
    .srf-action-btn {
        padding: 4px 10px;
        font-size: 10px;
    }
    .srf-single-tags-wrap {
        padding: 0 16px 10px;
    }
}

/* 超小屏幕 */
@media (max-width: 360px) {
    .srf-single-title {
        font-size: 16px;
    }
    .srf-single-meta {
        font-size: 11px;
    }
    .srf-single-content {
        font-size: 13px;
    }
}

/* 文章海报功能 */
.srf-poster-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 3px solid rgba(102,126,234,0.2);
    border-right: 3px solid rgba(240,147,251,0.2);
}
.srf-poster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.srf-poster-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}
.srf-poster-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.srf-poster-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.4);
}
.srf-poster-btn:active {
    transform: translateY(0);
}
.srf-poster-preview {
    display: none;
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #eee;
}
.srf-poster-preview.show {
    display: block;
}
.srf-poster-preview img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.srf-poster-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.srf-poster-download-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245,87,108,0.3);
    text-decoration: none;
    display: inline-block;
}
.srf-poster-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245,87,108,0.4);
}
.srf-poster-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #667eea;
    font-size: 14px;
}
.srf-poster-loading.show {
    display: block;
}
.srf-poster-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-top-color: transparent;
    border-radius: 50%;
    animation: srf-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes srf-spin {
    to { transform: rotate(360deg); }
}

