/* ============ 提示词库瀑布流 ============ */
.prompt-section {
    margin-bottom: 32px;
}

.prompt-waterfall {
    column-count: 5;
    column-gap: 16px;
}

/* ============ 提示词卡片 ============ */
.prompt-card {
    break-inside: avoid;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s, transform 0.25s;
}
.prompt-card:hover {
    box-shadow: 0 8px 24px rgba(99,102,241,0.12);
    transform: translateY(-3px);
}

.prompt-card-image {
    position: relative;
    overflow: hidden;
}
.prompt-card-image img {
    width: 100%;
    display: block;
    transition: transform 0.4s;
}
.prompt-card:hover .prompt-card-image img {
    transform: scale(1.05);
}

.prompt-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

/* 不公开内容标记：右上角红色锁图标，仅指定会员可见 */
.prompt-card-private {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

.prompt-card-body {
    padding: 12px 14px 10px;
}

.prompt-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    line-height: 1.5;
    transition: color 0.2s;
}
.prompt-card-title:hover {
    color: #6366f1;
}

.prompt-card-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.prompt-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}
.prompt-card-tag {
    font-size: 11px;
    color: #6366f1;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}
.prompt-card-tag:hover {
    background: #6366f1;
    color: #fff;
}

.prompt-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.prompt-card-date {
    font-size: 11px;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.prompt-card-views {
    font-size: 11px;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
}

.prompt-card-footer {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.prompt-view-btn {
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    padding: 6px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.prompt-view-btn:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

/* ============ 提示词查看弹窗 ============ */
.prompt-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}
.prompt-viewer-modal.show {
    display: block;
}

.prompt-viewer-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.prompt-viewer-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    max-width: 94vw;
    max-height: 88vh;
    background: linear-gradient(135deg, #1e1b2e 0%, #16142a 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(129,140,248,0.15);
    display: flex;
    flex-direction: column;
}

.prompt-viewer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.prompt-viewer-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.prompt-viewer-content {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* === 左侧图片轮播 === */
.prompt-viewer-left {
    flex: 0 0 55%;
    background: #1a1a2e;
    position: relative;
    overflow: hidden;
}

.prompt-gallery {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.prompt-gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}
.prompt-gallery-track img {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}
/* 弹窗内视频：宽度撑满容器，不超出 */
.prompt-gallery-track video {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    margin: 0;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}
.gallery-nav:hover {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-indicators {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

/* === 右侧提示词信息 === */
.prompt-viewer-right {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.prompt-viewer-info {
    margin-bottom: 16px;
    flex-shrink: 0;
}
.prompt-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
/* 平台 + 模型 同一排 */
.prompt-info-row-inline {
    gap: 16px;
}
.prompt-info-item {
    display: flex;
    align-items: center;
    gap: 0;
}
.prompt-info-label {
    font-size: 13px;
    color: #94a3b8;
    width: 40px;
    flex-shrink: 0;
}
.prompt-info-value {
    font-size: 14px;
    color: #e5e7eb;
    font-weight: 500;
    background: rgba(255,255,255,0.06);
    padding: 3px 12px;
    border-radius: 6px;
}

/* 平台值：浅蓝调，与模型区分 */
.prompt-info-value-platform {
    font-size: 14px;
    font-weight: 600;
    color: #60a5fa;
    background: rgba(96,165,250,0.12);
    border: 1px solid rgba(96,165,250,0.3);
    padding: 2px 14px;
    border-radius: 6px;
}

/* 模型值：醒目加粗+紫色调 */
.prompt-info-value-model {
    font-size: 14px;
    font-weight: 700;
    color: #a78bfa;
    background: linear-gradient(135deg, rgba(129,140,248,0.18), rgba(167,139,250,0.18));
    border: 1px solid rgba(129,140,248,0.4);
    padding: 2px 14px;
    border-radius: 6px;
}

/* 分类值：容器样式重置，内部放独立标签 */
.prompt-info-value-category {
    background: transparent;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.prompt-cat-tag {
    font-size: 12px;
    color: #c4b5fd;
    background: rgba(167,139,250,0.15);
    border: 1px solid rgba(167,139,250,0.25);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
}

/* === 参考图组（一排展示） === */
.prompt-ref-images {
    margin-bottom: 14px;
    flex-shrink: 0;
}
.prompt-ref-images-label {
    font-size: 12px;
    color: #a78bfa;
    font-weight: 600;
    margin-bottom: 8px;
}
.prompt-ref-images-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(129,140,248,0.4) transparent;
}
.prompt-ref-images-row::-webkit-scrollbar {
    height: 4px;
}
.prompt-ref-images-row::-webkit-scrollbar-thumb {
    background: rgba(129,140,248,0.4);
    border-radius: 2px;
}
.prompt-ref-img-item {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid rgba(255,255,255,0.12);
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.04);
}
.prompt-ref-img-item:hover {
    border-color: #818cf8;
    box-shadow: 0 2px 10px rgba(129,140,248,0.4);
    transform: translateY(-1px);
}
.prompt-ref-img-item.active {
    border-color: #818cf8;
    box-shadow: 0 0 0 2px rgba(129,140,248,0.35), 0 2px 10px rgba(129,140,248,0.4);
}
.prompt-ref-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prompt-text-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 14px;
    min-height: 0;
    background: rgba(255,255,255,0.03);
}

.prompt-text-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.prompt-text-label {
    font-size: 13px;
    font-weight: 600;
    color: #a78bfa;
}

.prompt-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #c4b5fd;
    background: rgba(129,140,248,0.12);
    border: 1px solid rgba(129,140,248,0.25);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.prompt-copy-btn:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}
/* 按钮组容器 */
.prompt-text-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 查看原文按钮 */
.prompt-view-original-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #60a5fa;
    background: rgba(96,165,250,0.12);
    border: 1px solid rgba(96,165,250,0.3);
    padding: 3px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.prompt-view-original-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.prompt-text-content {
    flex: 1;
    padding: 14px;
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.8;
    overflow-y: auto;
    word-break: break-all;
    min-height: 0;
}
/* 提示词渲染HTML后的段落样式 */
.prompt-text-content p { margin: 0 0 8px; }
.prompt-text-content p:last-child { margin-bottom: 0; }
.prompt-text-content strong, .prompt-text-content b { color: #f3f4f6; font-weight: 700; }
.prompt-text-content em { color: #a78bfa; font-style: normal; font-weight: 600; }
.prompt-text-content ul, .prompt-text-content ol { margin: 4px 0 8px; padding-left: 20px; }
.prompt-text-content li { margin-bottom: 4px; color: #d1d5db; }
.prompt-text-content h1,.prompt-text-content h2,.prompt-text-content h3,.prompt-text-content h4 {
    font-size: 14px; font-weight: 700; color: #f3f4f6; margin: 10px 0 6px;
}
/* 深色滚动条 */
.prompt-text-content::-webkit-scrollbar {
    width: 6px;
}
.prompt-text-content::-webkit-scrollbar-track {
    background: transparent;
}
.prompt-text-content::-webkit-scrollbar-thumb {
    background: rgba(129,140,248,0.3);
    border-radius: 3px;
}
.prompt-text-content::-webkit-scrollbar-thumb:hover {
    background: rgba(129,140,248,0.5);
}

/* ============ 卡片图片轮播（瀑布流多图滑动） ============ */
.card-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.card-slider-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.35s ease;
}
.card-slider-item {
    flex: 0 0 100%;
    overflow: hidden;
}
.card-slider-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s;
}
.prompt-card:hover .card-slider-item img {
    transform: scale(1.05);
}
.card-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}
.prompt-card:hover .card-slider-dots {
    opacity: 1;
}
.card-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    padding: 0;
}
.card-slider-dot.active {
    background: #fff;
    width: 16px;
    border-radius: 3px;
}
.card-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: all 0.2s;
    padding: 0;
}
.prompt-card:hover .card-slider-nav {
    opacity: 1;
}
.card-slider-nav:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.card-slider-prev { left: 6px; }
.card-slider-next { right: 6px; }

/* ============ 卡片视频（hover自动播放） ============ */
.card-video {
    width: 100%;
    display: block;
    background: #000;
}
.card-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.2s;
}
.prompt-card:hover .card-video-play {
    opacity: 0;
}

.prompt-viewer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}
.prompt-viewer-tag {
    font-size: 12px;
    color: #c4b5fd;
    background: rgba(129,140,248,0.12);
    border: 1px solid rgba(129,140,248,0.2);
    padding: 3px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.prompt-viewer-tag:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

/* ============ 响应式 ============ */
@media (max-width: 1400px) {
    .prompt-waterfall { column-count: 4; }
}
@media (max-width: 1024px) {
    .prompt-waterfall { column-count: 3; }
}
@media (max-width: 768px) {
    .prompt-waterfall { column-count: 2; }
    .prompt-viewer-content { flex-direction: column; }
    .prompt-viewer-left { flex: 0 0 240px; }
}
@media (max-width: 480px) {
    .prompt-waterfall { column-count: 1; }
    .prompt-viewer-dialog { width: 96vw; }
}

/* ============================================================
   提示词详情页（show_tishici.html）
   ============================================================ */
.tishici-detail-page .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: transparent;
    border-bottom: none;
    margin-bottom: 24px;
}
.tishici-detail-page .breadcrumb-top {
    color: #6b7280;
    font-size: 13px;
}
.tishici-detail-page .breadcrumb-top a {
    color: #4f46e5;
    text-decoration: none;
}
.tishici-detail-page .breadcrumb-top a:hover { color: #6366f1; }

/* 两栏布局 */
.tishici-detail-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.tishici-detail-main {
    flex: 0 0 800px;
    max-width: 800px;
    min-width: 0;
}
.tishici-detail-sidebar {
    flex: 1;
    min-width: 0;
    position: sticky;
    top: 24px;
}

/* 主内容卡片 */
.tishici-detail-card {
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* 标签 */
.tishici-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.tishici-detail-tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}
.tag-platform { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.tag-model { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.tag-type { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.tag-app { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* 标题 */
.tishici-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0 0 20px;
}

/* 作者信息条 */
.tishici-detail-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f5;
}
.tishici-detail-author-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tishici-detail-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e7ff;
}
.tishici-detail-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tishici-detail-group-icon {
    width: 16px;
    height: 16px;
}
.tishici-detail-meta {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}
.tishici-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}
.tishici-detail-external-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4f46e5;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.tishici-detail-external-btn:hover {
    background: #6366f1;
    color: #fff;
}

/* 描述 */
.tishici-detail-intro {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin: 0 0 24px;
    padding: 16px 20px;
    background: #f5f3ff;
    border-left: 3px solid #8b5cf6;
    border-radius: 0 10px 10px 0;
}

/* 提示词框 */
.tishici-prompt-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 24px;
    overflow: hidden;
}
.tishici-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #eef2ff;
    border-bottom: 1px solid #e0e7ff;
}
.tishici-prompt-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4f46e5;
}
.tishici-prompt-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #6366f1;
    border: 1px solid #6366f1;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.tishici-prompt-copy:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}
.tishici-prompt-content {
    padding: 18px;
    font-size: 14px;
    line-height: 1.8;
    color: #1f2937;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 360px;
    overflow-y: auto;
}
.tishici-prompt-content em{
	padding: 2px 6px;
    margin: 0 3px;
    background:#D8DFEF;
    color: #6366f1;
    border-radius: 4px;
    word-break: break-word;
    font-style: normal;
}
.tishici-prompt-content::-webkit-scrollbar { width: 6px; }
.tishici-prompt-content::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 3px; }

/* 正文（复用 detail.css 的 .content 样式，这里只做布局与溢出控制） */
.tishici-detail-content {
    margin-bottom: 24px;
    overflow-wrap: break-word;
    word-break: break-word;
}
.tishici-detail-content img,
.tishici-detail-content table,
.tishici-detail-content pre {
    max-width: 100% !important;
}

/* ===== 私密内容占位（非VIP/非站长时显示） ===== */
.tishici-private-block {
    text-align: center;
    padding: 56px 24px 48px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f5f3ff, #eef2ff);
    border: 1px dashed #c7d2fe;
    border-radius: 14px;
}
.tishici-private-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    color: #8b5cf6;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.18);
    margin-bottom: 18px;
}
.tishici-private-text {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.tishici-private-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px;
}
.tishici-private-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.tishici-private-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
    color: #fff;
}

/* 画廊锁定占位 */
.tishici-gallery-placeholder {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tishici-lock-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #c7d2fe;
    font-size: 14px;
    font-weight: 500;
}

/* 关键词 */
.tishici-detail-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.tishici-detail-keyword {
    font-size: 12px;
    color: #6366f1;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.tishici-detail-keyword:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

/* 互动栏 */
.tishici-detail-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f5;
}
.tishici-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.tishici-action-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4f46e5;
    transform: translateY(-1px);
}
.tishici-action-btn.active {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4f46e5;
}
.tishici-action-count { font-weight: 500; }

/* 评论区 */
.tishici-dc-section {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.tishici-dc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    color: #1a1a2e;
    margin: 0 0 20px;
}
.tishici-dc-title-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.tishici-dc-count {
    color: #6366f1;
    font-weight: 700;
}
.tishici-dc-tip {
    font-size: 12px;
    color: #9ca3af;
    margin-left: auto;
}

/* 评论表单 */
.tishici-dc-form { width: 100%; }
.tishici-dc-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}
.tishici-dc-textarea:focus { border-color: #6366f1; }
.tishici-dc-form-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.tishici-dc-submit {
    padding: 8px 22px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.tishici-dc-submit:hover { opacity: 0.9; }

/* 评论列表 */
.tishici-dc-list { margin-top: 24px; }
.tishici-dc-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f5;
}
.tishici-dc-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.tishici-dc-body { flex: 1; min-width: 0; }
.tishici-dc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.tishici-dc-name { font-size: 13px; font-weight: 600; color: #1f2937; }
.tishici-dc-time { font-size: 11px; color: #9ca3af; }
.tishici-dc-text {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 8px;
    word-break: break-word;
    position: relative;
}
/* 回复格式：原评论中的用户名蓝色加粗 */
.tishici-dc-text .original_comment .user_name {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    margin-right: 2px;
}
.tishici-dc-text .user_name {
    display: inline;
}
/* 原评论内容 */
.tishici-dc-text .original_comment {
    display: block;
    color: #374151;
    line-height: 1.7;
}
/* 回复气泡 */
.tishici-dc-text .reply-bubble {
    position: relative;
    margin-top: 12px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 0 10px 10px 10px;
    color: #374151;
    line-height: 1.7;
}
.tishici-dc-text .reply-bubble::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 6px 8px;
    border-color: transparent transparent #f3f4f6 transparent;
}
.tishici-dc-text .reply-bubble .user_name {
    display: inline;
    margin-right: 2px;
}
/* 回复者昵称：紫色，与原评论蓝色用户名区分 */
.tishici-dc-text .reply-bubble .reply-user-name {
    color: #8b5cf6;
    font-weight: 600;
}
.tishici-dc-text .reply-bubble .user_name strong {
    color: #de4c1c !important;
    font-weight: 700;
}
/* 隐藏 nl2br 产生的多余换行 */
.tishici-dc-text br {
    display: none;
}
.tishici-dc-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    cursor: pointer;
}
.tishici-dc-reply-btn:hover { color: #4f46e5; }
.tishici-dc-reply-form-wrap { margin-top: 10px; }
.tishici-dc-empty {
    text-align: center;
    padding: 40px 0;
    color: #9ca3af;
    font-size: 14px;
}

/* ===== 右侧：媒体画廊 ===== */
.tishici-media-card {
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.tishici-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.tishici-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}
.tishici-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    margin: 0;
}
.tishici-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}
.tishici-gallery-nav:hover { background: rgba(99,102,241,0.8); }
.tishici-gallery-prev { left: 10px; }
.tishici-gallery-next { right: 10px; }
.tishici-gallery-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.tishici-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}
.tishici-gallery-dot.active {
    background: #818cf8;
    width: 20px;
    border-radius: 4px;
}

/* 参考图缩略图 */
.tishici-ref-images {
    margin-top: 14px;
}
.tishici-ref-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}
.tishici-ref-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tishici-ref-item {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
    flex-shrink: 0;
}
.tishici-ref-item:hover {
    border-color: #818cf8;
    box-shadow: 0 2px 10px rgba(129,140,248,0.3);
    transform: translateY(-1px);
}
.tishici-ref-item.active {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.25), 0 2px 10px rgba(99,102,241,0.3);
}
.tishici-ref-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 右侧：相关推荐 ===== */
.tishici-related-card {
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.tishici-related-header { margin-bottom: 14px; }
.tishici-related-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}
.tishici-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tishici-related-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 10px;
    transition: background 0.2s;
}
.tishici-related-item:hover { background: #f5f3ff; }
.tishici-related-thumb {
    width: 72px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.tishici-related-info { flex: 1; min-width: 0; }
.tishici-related-item-title {
    font-size: 13px;
    color: #1f2937;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}
.tishici-related-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #9ca3af;
}
.tishici-related-cat {
    color: #6366f1;
    background: #eef2ff;
    padding: 1px 8px;
    border-radius: 4px;
}
.tishici-related-empty {
    text-align: center;
    padding: 30px 0;
    color: #9ca3af;
    font-size: 13px;
}

/* 验证码 */
.tishici-dc-code-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tishici-dc-code-img {
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
}
.tishici-dc-code-input {
    width: 80px;
    padding: 6px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #1f2937;
    font-size: 13px;
    outline: none;
}

/* 返回顶部 */
.tishici-detail-page .back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(99,102,241,0.9);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99,102,241,0.4);
    z-index: 99;
    transition: transform 0.2s;
}
.tishici-detail-page .back-to-top:hover { transform: translateY(-2px); }

/* ============ 详情页响应式 ============ */
@media (max-width: 1200px) {
    .tishici-detail-layout { flex-direction: column; }
    .tishici-detail-main { flex: 1 1 100%; max-width: 100%; }
    .tishici-detail-sidebar { position: static; width: 100%; }
    .tishici-gallery { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
    .tishici-detail-card, .tishici-dc-section { padding: 20px; }
    .tishici-detail-title { font-size: 22px; }
    .tishici-detail-author-bar { flex-direction: column; align-items: flex-start; }
    .tishici-detail-actions { flex-wrap: wrap; }
    .tishici-action-btn { flex: 1; justify-content: center; padding: 10px; }
}
