/* 顶部 sticky 容器（搜索 + 分类） */
.sticky-top-wrapper {
    position: sticky;
    top: 0;
    z-index: 90;
    margin: -15px -15px 15px;
    padding: 15px 15px 10px;
}
.sticky-top-wrapper.is-stuck {
    background: #fff;
    box-shadow: 0 10px 14px -12px rgba(0, 0, 0, 0.18);
}
.sticky-top-wrapper .search-section { margin-bottom: 16px; }
.sticky-top-wrapper .category-wrapper { margin-bottom: 0; }
.category-item {
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.category-nav .category-item.active,
.category-nav .category-item.category-primary:hover,
.category-nav .category-item.category-tag.active,
.category-nav .category-item.category-tag:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}
.category-item.category-accurate {
    background: #8f41e9;
    color: #fff;
    border-color: #8f41e9;
}
.category-item.category-accurate:hover {
    background: #7d35d0;
    color: #fff;
    border-color: #7d35d0;
}
.publish-btn { display: none; }
.search-input { border-color: #8f41e9; border-radius: 50px 0 0 50px; }
.search-input:focus { border-color: #8f41e9; }
.search-btn { background: linear-gradient(135deg, #8f41e9, #a66af0); border-radius: 0 50px 50px 0; }

/* 排序+热门同一行容器 */
.sort-hot-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 12px 0;
}

/* 排序标签样式 */
.sort-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}
.sort-tab {
    display: inline-block;
    padding: 6px 18px;
    font-size: 14px;
    color: #666;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 24px;
    text-decoration: none;
    transition: all .2s;
}
.sort-tab:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.sort-tab.active {
    color: #fff;
    background: #111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 排序与筛选之间的竖线分隔符 */
.sort-divider {
    width: 1px;
    height: 24px;
    background: #ddd;
    flex-shrink: 0;
}

/* 热门标签样式 — 空心边框，与排序按钮（实心）区分 */
.hot-tags {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}
.hot-tag-item {
    display: inline-block;
    padding: 5px 16px;
    font-size: 13px;
    color: #999;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    text-decoration: none;
    transition: all .2s;
}
.hot-tag-item:hover {
    color: #8f41e9;
    border-color: #8f41e9;
}
.hot-tag-item.active {
    color: #8f41e9;
    border-color: #8f41e9;
    background: rgba(143, 65, 233, 0.06);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(143, 65, 233, 0.12);
}
.hot-tag-item.more-tag-btn {
    background: #8f41e9;
    color: #fff;
    border-color: #8f41e9;
    box-shadow: 0 4px 12px rgba(143, 65, 233, 0.35);
}
.hot-tag-item.more-tag-btn:hover {
    background: #7d35d0;
    border-color: #7d35d0;
    box-shadow: 0 4px 12px rgba(143, 65, 233, 0.45);
}

.hot-tags .tag-label { color: #8f41e9; font-weight: 600; }

/* 响应式：跟随 .main-content 的 padding 变化 */
@media (max-width: 768px) {
    .sticky-top-wrapper {
        margin: -15px -15px 15px;
        padding: 15px 15px 10px;
    }
    .icp-fixed-bar {
        left: 60px;
    }
}

.main-content {
    padding: 15px;
    padding-bottom: 54px;
    background: #fff url('/static/aisource/img/page_bj.png') center top / cover no-repeat fixed;
}

.icp-fixed-bar {
    position: fixed;
    left: 80px;
    right: 0;
    bottom: 0;
    height: 42px;
    line-height: 42px;
    background: rgba(255,255,255,.96);
    border-top: 1px solid #eee;
    text-align: center;
    color: #999;
    font-size: 12px;
    z-index: 80;
}
.icp-fixed-bar a {
    color: #999;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}
.icp-fixed-bar a:hover {
    color: #666;
}
.icp-fixed-bar img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.video-grid { gap: 15px; }
.video-card { border-radius: 10px; }
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    width: 100%;
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 12px;
    min-height: 300px;
    color: #999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.empty-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    opacity: .6;
}
.empty-title { font-size: 18px; color: #666; font-weight: 500; margin-bottom: 8px; }
.empty-desc  { font-size: 14px; color: #aaa; }

/* 加载更多和底部结束 */
.loading-more {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}
.loading-more i {
    margin-right: 6px;
    animation: spin 1s linear infinite;
}
.loading-more.load-end {
    color: #8f41e9;
    background: linear-gradient(90deg, rgba(143,65,233,0.05), rgba(143,65,233,0));
    border-radius: 8px;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.prompt-preview-wrap {
    position: relative;
    flex: 1;
    min-height: 220px;
    display: flex;
}
.prompt-preview-wrap.locked .modal-textarea {
    color: rgba(68, 68, 68, .52);
    overflow: hidden;
}
.prompt-lock-mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72%;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(to bottom, rgba(250,250,250,0), rgba(250,250,250,.92) 38%, rgba(250,250,250,.98));
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
.prompt-lock-mask button {
    border: none;
    border-radius: 24px;
    background: #3a2f27;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 34px;
    cursor: pointer;
}
.prompt-lock-mask button:hover { background: #241d18; }

/* 搜索框 + 建议下拉 */
.search-box { position: relative; }
.search-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 110px;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    z-index: 200;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}
.search-suggest.show { display: block; }
.search-suggest-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}
.search-suggest-item:last-child { border-bottom: none; }
.search-suggest-item:hover,
.search-suggest-item.active { background: #f6efff; color: #8f41e9; }
.search-suggest-item mark { color: #8f41e9; background: transparent; font-weight: 600; }
.search-suggest-empty { padding: 14px 16px; color: #999; font-size: 13px; text-align: center; }

/* 列表浏览次数小图标 */
.views { display: inline-flex; align-items: center; gap: 4px; }
.views .views-icon { width: 20px; height: 14px; vertical-align: middle; }

/* 视频弹窗适配（16:9） */
.layer-video-modal .layui-layer-content {
    padding: 0;
    overflow: hidden;
}
.layer-video-modal .modal-content-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    box-sizing: border-box;
}
.layer-video-modal .modal-header {
    padding: 16px 30px 0;
    flex-shrink: 0;
}
.layer-video-modal .modal-layout {
    flex: 1;
    min-height: 0;
    padding: 50px 30px 50px;
    gap: 30px;
}
.layer-video-modal .modal-video-section {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.layer-video-modal .modal-video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: block;
}
.layer-video-modal .modal-video,
.layer-video-modal .modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: none;
}
.layer-video-modal .modal-info {
    min-height: 0;
    overflow: auto;
}
.layer-video-modal .modal-textarea {
    min-height: 180px;
}

/* video-footer 已移除 */

@media (max-width: 900px) {
    .search-suggest { right: 0; }
}