/* 全局样式 - 深色主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3558 50%, #1e2642 100%);
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(66, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(147, 51, 234, 0.18) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 头部 - 优雅渐变 */
.header {
    background: linear-gradient(135deg, rgba(66, 99, 235, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 50px 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.title {
    font-size: 2.8em;
    margin-bottom: 10px;
    font-weight: 700;
}

.title-emoji {
    filter: drop-shadow(0 2px 8px rgba(66, 99, 235, 0.5));
    font-size: 1.1em;
}

.title-text {
    background: linear-gradient(135deg, #4263eb 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.8;
    color: #b8c5e0;
    margin-bottom: 40px;
}

/* 统计数据展示 - 紧凑版 */
.stats-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 700px;
    margin: 35px auto 0;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .stats-hero {
        flex-wrap: wrap;
        gap: 12px;
    }
}

.stat-card {
    flex: 1;
    min-width: 180px;
    background: linear-gradient(135deg, rgba(66, 99, 235, 0.12) 0%, rgba(147, 51, 234, 0.12) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 渐变边框效果 */
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(96, 165, 250, 0.3) 0%,
        rgba(167, 139, 250, 0.3) 50%,
        rgba(66, 99, 235, 0.3) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 发光效果 */
.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.3);
    background: linear-gradient(135deg, rgba(66, 99, 235, 0.18) 0%, rgba(147, 51, 234, 0.18) 100%);
}

.stat-card:hover::before {
    opacity: 0.5;
}

.stat-card:hover::after {
    opacity: 0.3;
}

.stat-number {
    font-size: 2.2em;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
    line-height: 1;
    animation: countUp 0.8s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-label {
    font-size: 0.85em;
    color: #cbd5e1;
    font-weight: 500;
    position: relative;
    z-index: 1;
    opacity: 0.85;
}

/* 主内容区 */
.main {
    padding: 40px 0;
    min-height: 60vh;
}

/* 精选推荐区 */
.featured-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .featured-list {
        grid-template-columns: 1fr;
    }
}

.featured-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4263eb 0%, #9333ea 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.featured-card:hover::before {
    transform: scaleX(1);
}

.featured-card:hover {
    transform: translateY(-8px);
    border-color: rgba(66, 99, 235, 0.4);
    box-shadow: 0 20px 60px rgba(66, 99, 235, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(66, 99, 235, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
}

.featured-content {
    padding: 24px;
}

.featured-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-summary {
    color: #94a3b8;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

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

.featured-tag {
    background: rgba(66, 99, 235, 0.15);
    color: #93bbfd;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    border: 1px solid rgba(66, 99, 235, 0.25);
}

/* 控制区 - 玻璃态效果 */
.controls {
    background: rgba(45, 53, 88, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 35px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-box {
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    background: rgba(30, 38, 66, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s;
    color: #e0e0e0;
}

.search-input::placeholder {
    color: #7c8db5;
}

.search-input:focus {
    outline: none;
    border-color: #4263eb;
    background: rgba(15, 23, 42, 0.8);
    box-shadow:
        0 0 0 3px rgba(66, 99, 235, 0.2),
        0 4px 20px rgba(66, 99, 235, 0.1);
}

.filter-section {
    margin-bottom: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-weight: 600;
    color: #b8c5e0;
}

.btn-clear {
    padding: 8px 18px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-clear:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-clear:active {
    transform: translateY(0);
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-filter {
    padding: 10px 18px;
    background: rgba(66, 99, 235, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(66, 99, 235, 0.3);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.tag-filter:hover {
    background: rgba(66, 99, 235, 0.25);
    border-color: rgba(66, 99, 235, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 99, 235, 0.2);
}

.tag-filter.active {
    background: linear-gradient(135deg, #4263eb 0%, #6366f1 100%);
    color: white;
    border-color: #4263eb;
    box-shadow: 0 4px 16px rgba(66, 99, 235, 0.4);
}

.stats {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 14px;
}

/* 内容列表 */
.content-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

/* 内容卡片 - 现代化玻璃态 */
.content-card {
    background: rgba(45, 53, 88, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 28px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(66, 99, 235, 0.5),
        rgba(147, 51, 234, 0.5),
        transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.content-card:hover::before {
    opacity: 1;
}

.content-card:hover {
    transform: translateY(-8px);
    border-color: rgba(66, 99, 235, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(66, 99, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.content-card h3 {
    color: #f1f5f9;
    margin-bottom: 16px;
    font-size: 1.4em;
    line-height: 1.4;
    font-weight: 600;
}

.content-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #94a3b8;
}

.content-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.content-summary {
    color: #cbd5e1;
    margin-bottom: 18px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

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

.tag {
    padding: 6px 14px;
    background: rgba(147, 51, 234, 0.15);
    color: #c4b5fd;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid rgba(147, 51, 234, 0.2);
    font-weight: 500;
}

/* 模态框 - 深色主题 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(45, 53, 88, 0.97) 0%, rgba(30, 38, 66, 0.97) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 50px auto;
    padding: 40px;
    border-radius: 20px;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 20px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 32px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #f1f5f9;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2.2em;
    margin-bottom: 24px;
    color: #f1f5f9;
    font-weight: 700;
}

.modal-meta {
    background: rgba(30, 38, 66, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 28px;
}

.modal-section {
    margin-bottom: 32px;
}

.modal-section h4 {
    font-size: 1.4em;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #4263eb 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.modal-section p {
    white-space: pre-line;
    line-height: 1.8;
    color: #cbd5e1;
}

.modal-section ul {
    list-style-position: inside;
    line-height: 2;
    color: #cbd5e1;
}

.modal-content-text {
    white-space: pre-wrap;
    line-height: 1.9;
    color: #e0e0e0;
    background: rgba(30, 38, 66, 0.5);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading {
    text-align: center;
    padding: 60px;
    color: #7c8db5;
    font-size: 18px;
}

.no-results {
    text-align: center;
    padding: 60px;
    color: #7c8db5;
    font-size: 18px;
}

/* 底部 */
.footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    text-align: center;
    padding: 24px 0;
    margin-top: 60px;
}

/* 响应式 - 模态框优化 */
@media (max-width: 768px) {
    .title {
        font-size: 2.2em;
    }

    .content-list {
        grid-template-columns: 1fr;
    }

    .modal {
        background-color: rgba(0, 0, 0, 0.9);
    }

    .modal-content {
        margin: 10px;
        padding: 20px;
        border-radius: 16px;
        max-width: calc(100% - 20px);
        max-height: calc(100vh - 100px);
    }

    .modal-close {
        right: 16px;
        top: 16px;
        font-size: 28px;
    }

    .modal-title {
        font-size: 1.6em;
        margin-bottom: 16px;
    }

    .modal-meta {
        padding: 14px;
        margin-bottom: 16px;
        font-size: 13px;
    }

    .modal-section {
        margin-bottom: 16px;
    }

    .modal-section h4 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .modal-section h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .modal-content-text {
        padding: 12px;
        font-size: 13px;
        line-height: 1.6;
    }

    .modal-images {
        gap: 12px;
    }

    .modal-images img {
        border-radius: 10px;
    }

    .modal-videos {
        gap: 12px;
    }

    .modal-videos video {
        border-radius: 10px;
    }

    .modal-tags {
        gap: 6px;
    }

    .modal-tags .tag {
        font-size: 12px;
        padding: 5px 10px;
    }

    .copy-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5px;
        padding: 16px;
        max-width: calc(100% - 10px);
    }

    .modal-title {
        font-size: 1.4em;
        margin-bottom: 12px;
    }

    .modal-meta {
        padding: 12px;
        margin-bottom: 12px;
        font-size: 12px;
    }

    .modal-section {
        margin-bottom: 12px;
    }

    .modal-section h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .modal-content-text {
        padding: 10px;
        font-size: 12px;
    }

    .modal-close {
        right: 12px;
        top: 12px;
        font-size: 24px;
    }
}

/* 图片/视频预览 */
.content-image {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-image img,
.content-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.content-card:hover .content-image img,
.content-card:hover .content-image video {
    transform: scale(1.08);
}

.image-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 复制按钮 - 优雅设计 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.content-header h4 {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95em;
    font-weight: 600;
}

.copy-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

/* 案例编号徽章 */
.case-number {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #4263eb 0%, #9333ea 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(66, 99, 235, 0.5);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.case-number-top {
    background: linear-gradient(135deg, #4263eb 0%, #9333ea 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(66, 99, 235, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4263eb 0%, #9333ea 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3b55d4 0%, #8427d3 100%);
}

/* 删除按钮（只在本地显示）*/
.delete-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(239, 68, 68, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.delete-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.delete-btn:active {
    transform: scale(0.95);
}
/* ========================================
   侧边栏布局样式
   ======================================== */

/* 侧边栏布局 */
body.layout-sidebar {
    display: flex;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3558 50%, #1e2642 100%);
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(30, 38, 66, 0.95) 0%, rgba(26, 31, 58, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

/* 侧边栏头部 */
.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(66, 99, 235, 0.15), rgba(147, 51, 234, 0.15));
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
}

.tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* 导航 */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    background: rgba(66, 99, 235, 0.1);
    color: #fff;
    border-left-color: rgba(66, 99, 235, 0.5);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(66, 99, 235, 0.2), transparent);
    color: #fff;
    border-left-color: #4263eb;
    font-weight: 600;
}

.nav-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.nav-count {
    font-size: 12px;
    background: rgba(66, 99, 235, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.nav-item.active .nav-count {
    background: rgba(66, 99, 235, 0.5);
    color: #fff;
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* 主内容区 */
.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    padding: 40px;
    position: relative;
}

/* 页面头部 */
.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    color: #fff;
    margin: 0 0 10px 0;
}

.page-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #4263eb;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.3);
}

/* 案例网格（瀑布流） */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* 案例卡片 */
.case-card {
    background: rgba(30, 38, 66, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(66, 99, 235, 0.3);
    border-color: rgba(66, 99, 235, 0.4);
}

.case-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1a1a1a;
    display: block;
    cursor: pointer;
}

.no-image {
    font-size: 48px;
    opacity: 0.3;
}

.case-info {
    padding: 16px;
}

.case-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.case-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.case-tags .tag {
    font-size: 11px;
    padding: 4px 8px;
    background: rgba(66, 99, 235, 0.2);
    border: 1px solid rgba(66, 99, 235, 0.3);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
}

/* 提示词预览样式 */
.prompt-preview {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.prompt-preview summary {
    cursor: pointer;
    font-size: 13px;
    color: rgba(66, 153, 225, 0.9);
    user-select: none;
    list-style: none;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.prompt-preview summary::-webkit-details-marker {
    display: none;
}

.prompt-preview summary:hover {
    color: rgba(66, 153, 225, 1);
}

.prompt-content {
    margin-top: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prompt-section {
    margin-bottom: 12px;
}

.prompt-section:last-of-type {
    margin-bottom: 8px;
}

.prompt-section h4 {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    font-weight: 600;
}

.prompt-section p {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    word-break: break-word;
}

.view-full-btn {
    width: 100%;
    padding: 6px 12px;
    background: rgba(66, 99, 235, 0.2);
    border: 1px solid rgba(66, 99, 235, 0.3);
    border-radius: 4px;
    color: rgba(66, 153, 225, 0.9);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-full-btn:hover {
    background: rgba(66, 99, 235, 0.3);
    border-color: rgba(66, 99, 235, 0.5);
    color: rgba(66, 153, 225, 1);
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 40px 0;
}

.btn-load-more {
    padding: 12px 32px;
    background: linear-gradient(135deg, rgba(66, 99, 235, 0.8), rgba(147, 51, 234, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 99, 235, 0.4);
}

/* 即将上线 */
.coming-soon {
    text-align: center;
    padding: 100px 20px;
}

.coming-soon-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.coming-soon h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 16px;
}

.coming-soon p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 8px 0;
}

/* 无结果 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    /* 移动端侧边栏优化 */
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        right: 0;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        z-index: 100;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sidebar-header {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: row;
        padding: 0;
        flex: 1;
        overflow-x: auto;
    }

    .nav-item {
        flex: 0 0 auto;
        padding: 12px 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        min-width: 70px;
        text-align: center;
    }

    .nav-item:hover {
        border-left: none;
        border-bottom-color: rgba(66, 99, 235, 0.5);
    }

    .nav-item.active {
        border-left: none;
        border-bottom-color: #4263eb;
    }

    .nav-icon {
        margin-right: 0;
        font-size: 24px;
    }

    .nav-text {
        font-size: 11px;
        white-space: nowrap;
    }

    .nav-count {
        font-size: 10px;
        padding: 1px 6px;
    }

    /* 主内容区优化 */
    .main-content {
        margin-left: 0;
        padding: 16px;
        padding-bottom: 80px;
        min-height: calc(100vh - 80px);
    }

    /* 页面头部优化 */
    .page-header h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .page-header p {
        font-size: 14px;
    }

    /* 控制区优化 */
    .controls {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .search-box {
        margin-bottom: 16px;
    }

    .search-input {
        padding: 12px 16px;
        font-size: 16px;
    }

    .filter-section {
        margin-bottom: 12px;
    }

    .filter-header {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .btn-clear {
        padding: 6px 14px;
        font-size: 12px;
    }

    .tag-filters {
        gap: 8px;
    }

    .tag-filter {
        padding: 8px 14px;
        font-size: 12px;
    }

    /* 卡片网格优化 */
    .case-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        margin-bottom: 20px;
    }

    .case-card {
        border-radius: 10px;
    }

    .case-thumbnail {
        height: 140px;
    }

    .case-info {
        padding: 12px;
    }

    .case-title {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .case-summary {
        font-size: 12px;
        margin: 6px 0;
        -webkit-line-clamp: 1;
    }

    .case-meta {
        font-size: 11px;
        gap: 8px;
    }

    .case-tags {
        gap: 4px;
        margin-top: 6px;
    }

    .tag {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* 面包屑优化 */
    .breadcrumb {
        font-size: 12px;
        gap: 4px;
        margin-bottom: 12px;
    }

    /* 统计信息优化 */
    .stats {
        font-size: 13px;
        margin-top: 12px;
    }

    body.layout-sidebar {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 12px;
        padding-bottom: 80px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .controls {
        padding: 12px;
    }

    .case-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .case-thumbnail {
        height: 120px;
    }

    .case-title {
        font-size: 12px;
    }

    .nav-text {
        font-size: 10px;
    }

    .sidebar {
        height: 70px;
    }

    .main-content {
        padding-bottom: 75px;
    }

    /* 触摸友好的按钮 */
    button, .tag-filter, .btn-clear {
        min-height: 44px;
        min-width: 44px;
    }

    /* 改进输入框 */
    input[type="text"], input[type="search"] {
        min-height: 44px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 禁用悬停效果，使用活跃状态 */
    .nav-item:hover {
        background: rgba(66, 99, 235, 0.1);
    }

    .case-card:hover {
        transform: none;
    }

    .tag-filter:hover {
        transform: none;
    }

    /* 增加点击区域 */
    .nav-item {
        padding: 14px 16px;
    }

    .tag-filter {
        padding: 10px 16px;
    }

    button {
        padding: 12px 20px;
    }
}

/* 案例摘要 */
.case-summary {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 模态框图片样式 */
.modal-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.modal-images img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.modal-images img:hover {
    transform: scale(1.02);
}

/* 模态框视频样式 */
.modal-videos {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.modal-videos video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 模态框标签 */
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.modal-tags .tag {
    font-size: 13px;
    padding: 6px 12px;
    background: rgba(66, 99, 235, 0.2);
    border: 1px solid rgba(66, 99, 235, 0.3);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
}

/* 查看原文按钮 */
.btn-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(66, 99, 235, 0.8), rgba(147, 51, 234, 0.8));
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 99, 235, 0.4);
}

/* 模态框来源链接 */
.modal-source-link {
    color: #60a5fa;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.modal-source-link:hover {
    color: #93c5fd;
    border-bottom-color: #60a5fa;
}

/* 模态框摘要 */
.modal-summary {
    font-size: 15px;
    line-height: 1.8;
    color: #cbd5e1;
    background: rgba(30, 38, 66, 0.4);
    padding: 16px;
    border-radius: 10px;
    border-left: 3px solid rgba(66, 99, 235, 0.5);
    margin: 0;
}
