/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* 主要内容 */
.main {
    padding: 2rem 0;
}

/* 搜索区域优化 */
.search-section {
    margin-bottom: 32px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.8s ease;
}

.search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-box:focus-within::before {
    left: 100%;
}

.search-box i {
    color: #3b82f6;
    margin-right: 12px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-box:focus-within i {
    transform: scale(1.1) rotate(10deg);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
    color: #1e293b;
    font-weight: 500;
}

.search-box input::placeholder {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.search-box:focus-within input::placeholder {
    color: #cbd5e1;
}

.search-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:active {
    transform: translateY(0);
}
/* 分类导航优化 */
.categories-nav {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding: 16px 0;
    scroll-behavior: smooth;
}

.categories-nav::-webkit-scrollbar {
    height: 6px;
}

.categories-nav::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.categories-nav::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.category-item:hover {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.category-item:hover::before {
    left: 100%;
}

.category-item.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.category-item.active::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.category-item i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.category-item:hover i,
.category-item.active i {
    transform: rotate(10deg) scale(1.1);
}
/* 提示词列表 */
.prompts-section {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: #1e293b;
}

.sort-controls select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: white;
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* 提示词卡片优化 */
.prompt-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.prompt-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #3b82f6;
}

.prompt-card:hover::before {
    transform: scaleX(1);
}

.prompt-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.prompt-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 分类和标签同行布局 */
.category-tags-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.prompt-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid currentColor;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.prompt-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.prompt-category:hover::before {
    left: 100%;
}

.prompt-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}

.prompt-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0369a1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    transform: translateY(-2px);
}

.prompt-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-item:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.stat-item i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: rotate(10deg);
}

/* 模态框优化 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg) scale(1.1);
}

/* 详情页面分类标签行 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    border: 2px solid #f1f5f9;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-meta .category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-meta .category-badge:hover::before {
    left: 100%;
}

.detail-meta .tags-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-meta .tag-item:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px -2px rgba(30, 64, 175, 0.3);
}

/* 复制按钮优化 */
.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* ===== 详情页面专用样式优化 ===== */

/* 详情页面主容器 */
.prompt-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* 详情页面头部区域 */
.detail-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
}

.detail-meta {
    position: relative;
    z-index: 2;
}

/* 分类标签行优化 */
.detail-meta .category-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
}

.detail-meta .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-meta .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.detail-meta .category-badge i {
    font-size: 1.2rem;
}

.detail-meta .tags-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-meta .tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.detail-meta .tag-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 统计信息 */
.detail-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.detail-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 80px;
}

.detail-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.detail-stats .stat-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.detail-stats .stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-stats .stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* 详情区块样式 */
.detail-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 区块头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
}

.section-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-header h4 i {
    font-size: 1.4rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 区块内容 */
.section-content {
    padding: 32px;
}

/* 描述区块特殊样式 */
.description-section .description-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.description-section .description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

/* 模板容器样式 */
.template-container {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.template-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    padding: 16px 24px;
    border-bottom: 1px solid #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.template-length {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.template-content-wrapper {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.template-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.template-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 示例容器样式 */
.example-container {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.example-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    padding: 16px 24px;
    border-bottom: 1px solid #475569;
}

.example-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.example-content-wrapper {
    position: relative;
    max-height: 300px;
    overflow-y: auto;
}

.example-content {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px;
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: none;
    outline: none;
}

.example-content code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

/* 操作按钮优化 */
.section-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    transition: all 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.2);
}

/* 滚动条美化 */
.template-content-wrapper::-webkit-scrollbar,
.example-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.template-content-wrapper::-webkit-scrollbar-track,
.example-content-wrapper::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb,
.example-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

.template-content-wrapper::-webkit-scrollbar-thumb:hover,
.example-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .prompts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
    }
    
    .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-hero {
        padding: 24px;
    }
    
    .detail-meta .category-tags-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-stats {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }
    
    .detail-stats .stat-item {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .section-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .section-content {
        padding: 24px;
    }
    
    .template-content,
    .example-content {
        font-size: 0.85rem;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .prompt-title {
        font-size: 1.1rem;
    }
    
    .search-box {
        padding: 16px;
    }
    
    .category-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .detail-hero {
        padding: 20px;
    }
    
    .detail-meta .category-badge {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .detail-stats {
        gap: 12px;
    }
    
    .detail-stats .stat-item {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .detail-stats .stat-item span {
        font-size: 1.3rem;
    }
    
    .section-header {
        padding: 16px 20px;
    }
    
    .section-header h4 {
        font-size: 1.2rem;
    }
    
    .section-content {
        padding: 20px;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .prompt-detail {
    color: #e2e8f0;
}

[data-theme="dark"] .detail-section {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

[data-theme="dark"] .section-header h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .description-section .description-card {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

[data-theme="dark"] .description-text {
    color: #e2e8f0;
}