/* ==========================================================================
   资源站样式（贴合参考站 jiwatiku 设计令牌）
   主色 #1890ff / 浅蓝底 #f0f7ff / 页面背景 #f5f5f5
   容器 max-width 1200px / sticky 白色导航 / 卡片圆角轻阴影 hover 上浮
   封面 3:4 / 响应式 768px 断点
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ---------- 顶部导航 ---------- */
.main-nav {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f5ff;
}
.nav-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: #1890ff;
    padding: 14px 16px 14px 0;
    white-space: nowrap;
}
.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
    gap: 2px;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: block;
    padding: 18px 22px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    white-space: nowrap;
}
.nav-list > li > a:hover { color: #1890ff; background-color: #f0f7ff; }
.nav-list > li > a.active { color: #1890ff; border-bottom-color: #1890ff; background-color: #f0f7ff; }

/* ---------- 站点公告条 ---------- */
.notice-bar {
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 0 15px;
}
.notice-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 8px 12px;
}
.notice-label { flex: none; font-size: 13px; font-weight: 600; color: #d48806; }
.notice-viewport { position: relative; flex: 1; height: 22px; overflow: hidden; }
.notice-item {
    position: absolute;
    inset: 0;
    line-height: 22px;
    font-size: 13px;
    color: #7a5c00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity .4s ease;
    text-decoration: none;
}
.notice-item.active { opacity: 1; }
.notice-close { flex: none; cursor: pointer; color: #bfa46a; font-size: 18px; line-height: 1; padding: 0 2px; }
.notice-close:hover { color: #d48806; }

/* 导航二级项的资源数徽章 */
.nav-count {
    display: inline-block;
    min-width: 18px;
    padding: 0 5px;
    margin-left: 4px;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    color: #1890ff;
    background: #f0f7ff;
    border-radius: 9px;
}

/* 后台状态标签 */
.tag-on { color: #52c41a; font-weight: 600; }.tag-off { color: #bbb; }
.admin-msg {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
}

/* 移动端菜单按钮：桌面隐藏，手机显示 */
.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #1890ff;
    cursor: pointer;
}

.nav-arrow { margin-left: 6px; font-size: 12px; transition: transform 0.3s; }
.nav-list > li.active .nav-arrow { transform: rotate(180deg); }

/* 二级下拉菜单 */
.subnav-container {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    border: 1px solid #f0f5ff;
    border-top: 2px solid #1890ff;
    min-width: 200px;
    max-width: 280px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}
.nav-list > li:hover .subnav-container { display: block; }
.nav-list > li.active .subnav-container { display: block; }
.subnav-content { padding: 8px 0; max-height: 420px; overflow-y: auto; }
.subnav-list { list-style: none; }
.subnav-item { padding: 0; }
.subnav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    font-size: 14px;
    padding: 10px 20px;
    transition: all 0.2s ease;
    font-weight: 500;
}
.subnav-link:hover { color: #1890ff; background: #f5f8ff; padding-left: 26px; }

/* ---------- 搜索框 ---------- */
.search-box {
    padding: 22px 0;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.search-wrapper { position: relative; display: inline-block; width: 90%; max-width: 560px; }
.search-input {
    width: 100%;
    padding: 14px 110px 14px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
}
.search-input:focus { border-color: #1890ff; box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.1); }
.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 26px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}
.search-btn:hover { background: #096dd9; transform: translateY(-50%) scale(1.04); }

/* ---------- 区块标题 ---------- */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 26px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f5ff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #1890ff;
    border-radius: 2px;
}
.total-num { font-size: 14px; color: #999; font-weight: 400; }

/* ---------- 瀑布流卡片 ---------- */
.waterfall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 1200px) { .waterfall { grid-template-columns: repeat(3, 1fr); gap: 15px; } }

.resource-card {
    position: relative; /* 置顶徽章 absolute 定位的基准 */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
}
.resource-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); border-color: #e8f4ff; }

.resource-img-container {
    width: 100%;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: pointer;
}
/* 注意：img 必须定位并抬高 z-index，否则会被 absolute 的 .no-preview 占位块盖住
   （CSS 绘制顺序：定位元素绘制在非定位的普通流内容之上） */
.resource-img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; background: #f8f9fa; }
.resource-card:hover .resource-img { transform: scale(1.05); }

.no-preview {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 16px 12px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f4ff 100%);
    color: #333;
    text-align: center;
    z-index: 1;
}
.np-badge {
    font-size: 12px;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 999px;
    background: #1890ff;
    color: #fff;
    letter-spacing: .5px;
}
.np-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #222;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    word-break: break-all;
}
.np-sub { font-size: 12px; color: #7a8ba0; }
.no-preview-icon { font-size: 46px; margin-bottom: 8px; opacity: 0.5; }
.no-preview-text { font-size: 14px; }

.resource-content { padding: 14px 14px 10px; flex: 1; display: flex; flex-direction: column; }
.resource-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    color: #333;
}
.resource-title:hover { color: #1890ff; }
.resource-category {
    font-size: 12px;
    color: #666;
    padding-top: 8px;
    border-top: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.resource-time { font-size: 12px; color: #999; font-style: italic; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; align-items: center; margin: 36px 0; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #e8e8e8;
    min-width: 45px;
    height: 45px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.pagination a:hover { background: #f0f7ff; border-color: #1890ff; color: #1890ff; transform: translateY(-2px); }
.pagination a.active { background: #1890ff; color: #fff; border-color: #1890ff; font-weight: 600; }
.pagination a.disabled, .pagination span.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; background: #f5f5f5; }
.page-jump { display: flex; align-items: center; gap: 10px; margin-left: 15px; }
.page-input { width: 60px; height: 45px; padding: 0 10px; border: 1px solid #e8e8e8; border-radius: 8px; text-align: center; font-size: 15px; }
.page-input:focus { border-color: #1890ff; outline: none; }
.jump-btn { padding: 10px 20px; background: #1890ff; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: 600; }
.jump-btn:hover { background: #096dd9; }

/* ---------- 空状态 ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: #999; grid-column: 1 / -1; }
.empty-state h3 { font-size: 20px; margin-bottom: 12px; color: #666; }
.empty-state p { font-size: 15px; }

/* ---------- 详情页 ---------- */
.detail-container { padding-top: 20px; }
.breadcrumb { font-size: 14px; color: #666; margin-bottom: 18px; padding: 10px 0; }
.breadcrumb a:hover { color: #1890ff; }
.detail-main { display: flex; gap: 30px; background: #fff; padding: 24px; border-radius: 12px; box-shadow: 0 3px 10px rgba(0,0,0,0.06); }
.detail-cover { flex: 0 0 320px; max-width: 320px; }
.detail-cover img { width: 100%; border-radius: 8px; background: #f8f9fa; }
.detail-info { flex: 1; min-width: 0; }
.detail-title { font-size: 24px; font-weight: 700; margin-bottom: 14px; line-height: 1.4; }
.detail-meta { font-size: 14px; color: #666; margin-bottom: 8px; }
.detail-desc { font-size: 15px; color: #444; margin: 14px 0; white-space: pre-wrap; line-height: 1.8; }
.detail-actions { margin: 20px 0 12px; }
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1890ff;
    color: #fff;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.25);
}
.download-btn::before { content: '⬇'; }
.download-btn:hover { background: #096dd9; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(24, 144, 255, 0.35); }

/* 无可用下载链接时的灰态按钮（不可点，只作提示） */
.download-btn.disabled {
    background: #f0f0f0; color: #999; cursor: not-allowed;
    pointer-events: none; box-shadow: none;
}
.download-btn.disabled::before { content: ''; }
.download-btn.disabled:hover { background: #f0f0f0; transform: none; box-shadow: none; }
.extract-code { font-size: 15px; color: #666; margin-top: 10px; }
.extract-code strong { color: #e65100; font-size: 17px; background: #fff7e6; padding: 2px 10px; border-radius: 6px; }
.detail-note { font-size: 13px; color: #999; margin-top: 10px; }

/* ---------- 搜索结果标题 ---------- */
.result-title { font-size: 19px; color: #333; margin: 24px 0; padding-bottom: 14px; border-bottom: 2px solid #f0f5ff; font-weight: 600; }

/* ---------- 页脚 ---------- */
.footer { text-align: center; padding: 36px 20px; color: #666; font-size: 14px; margin-top: 40px; border-top: 1px solid #e8e8e8; background: #fff; line-height: 2; }
.footer a { color: #1890ff; }

/* 简单内容页（about / video） */
.simple-page { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 3px 10px rgba(0,0,0,0.06); line-height: 1.9; }
.simple-page h1 { font-size: 24px; margin-bottom: 16px; color: #1890ff; }
.simple-page h2 { font-size: 18px; margin: 20px 0 10px; }
.simple-page p { margin-bottom: 10px; color: #444; }

/* ---------- 联系我们 / 留言板 / 网站地图 ---------- */
.contact-list { margin: 10px 0 6px; }
.contact-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #eee; }
.contact-item:last-child { border-bottom: none; }
.contact-label { flex: none; width: 92px; color: #1890ff; font-weight: 600; }
.contact-value { flex: 1; color: #444; }

.message-form { margin: 18px 0 26px; }
.message-form textarea,
.message-form input[type=text] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}
.message-form textarea:focus,
.message-form input[type=text]:focus { border-color: #1890ff; }
.message-form button {
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.message-form button:hover { background: #096dd9; }
.form-ok { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.form-err { background: #fff1f0; border: 1px solid #ffa39e; color: #cf1322; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }

.message-list { list-style: none; margin: 0; padding: 0; }
.message-item { padding: 14px 0; border-bottom: 1px solid #f2f2f2; }
.message-item:last-child { border-bottom: none; }
.message-text { font-size: 15px; color: #333; line-height: 1.7; word-break: break-word; }
.message-meta { margin-top: 6px; font-size: 12px; color: #999; display: flex; gap: 16px; }

.sitemap-group { margin-bottom: 18px; }
.sitemap-links { display: flex; flex-wrap: wrap; gap: 10px; }
.sitemap-link {
    display: inline-block;
    padding: 8px 14px;
    background: #f0f7ff;
    color: #1890ff;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
}
.sitemap-link:hover { background: #1890ff; color: #fff; }

/* 详情页分享按钮 */
.share-btn {
    display: inline-block;
    margin-left: 10px;
    padding: 12px 18px;
    background: #f0f7ff;
    color: #1890ff;
    border: 2px solid #d6e9ff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.share-btn:hover { background: #e0f0ff; }
@media (max-width: 768px) {
    .share-btn { margin: 10px 8px 0 0; padding: 10px 14px; font-size: 14px; }
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 768px) {
    /* 禁止横向滚动 */
    html, body { overflow-x: hidden; }

    /* 导航：取消汉堡，分类三列平铺瓷砖（进站第一屏即可见，对齐参考站）
       顺序：首页 / 视频 / 幼小衔接 / 一~六年级，共 9 格正好 3 行；「关于」移到页脚 */
    .nav-toggle { display: none; }
    .main-nav { position: static; }
    .nav-container { flex-wrap: wrap; padding: 0; width: 100%; overflow: visible; }
    .nav-logo { flex: none; font-size: 18px; padding: 10px 12px; }

    .nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        width: 100%;
        flex-basis: 100%;
        padding: 0;
        justify-content: flex-start;
        border-top: 1px solid #f0f5ff;
        background: #fff;
        max-height: none;
        overflow: visible;
    }
    /* 注意：不要用 flex order 重排，否则 nth-child 列对齐会算错位 */
    .nav-list > li {
        width: 33.333%;
        position: relative;
        text-align: center;
        border-right: 1px solid #f0f5ff;
        border-bottom: 1px solid #f0f5ff;
    }
    /* 「关于」在手机上隐藏（页脚已有入口），保证分类正好 9 格铺满 3 行 */
    .nav-list > li.nav-about { display: none; }
    .nav-list > li:nth-child(3n) { border-right: none; }

    .nav-list > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 12px 6px;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-bottom: none;
        min-height: auto;
    }
    .nav-list > li > a:hover { background: #f0f7ff; }
    .nav-list > li.active > a { color: #1890ff; background: #f0f7ff; }
    .nav-arrow { margin-left: 3px; font-size: 12px; float: none; }
    .nav-list > li.active .nav-arrow { transform: rotate(180deg); }

    /* 触屏没有 hover：只用点击后的 .active 控制显隐 */
    .nav-list > li:hover .subnav-container { display: none; }

    /* 二级菜单：绝对定位浮层，默认居中，按列智能贴边防出屏 */
    .subnav-container {
        position: absolute;
        display: none;
        top: 100%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin-top: 5px;
        width: calc(100vw - 20px);
        max-width: 320px;
        min-width: 200px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
        border: 1px solid #e8e8e8;
        border-top: 2px solid #1890ff;
        border-radius: 8px;
        z-index: 1002;
    }
    .nav-list > li:nth-child(3n-2) .subnav-container { left: 0; transform: translateX(0); }
    .nav-list > li:nth-child(3n) .subnav-container { left: auto; right: 0; transform: translateX(0); }

    .nav-list > li.active .subnav-container { display: block; }
    .subnav-content { padding: 8px 10px; max-height: 280px; overflow-y: auto; }
    .subnav-list { display: grid; grid-template-columns: 1fr; gap: 5px; }
    .subnav-item {
        background: #fff;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
        border: 1px solid #eee;
    }
    .subnav-link {
        padding: 10px 12px;
        font-size: 14px;
        font-weight: 500;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .subnav-link:hover { padding-left: 12px; background: #f5f8ff; }
    .nav-count { margin-left: 5px; margin-top: 0; font-size: 10px; padding: 1px 4px; }

    .search-input { padding: 12px 86px 12px 16px; font-size: 15px; }
    .search-btn { padding: 9px 16px; font-size: 14px; }

    .waterfall { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .resource-category { display: block; }
    .resource-time { display: block; margin-top: 4px; }

    .detail-main { flex-direction: column; gap: 16px; padding: 16px; }
    .detail-cover { flex: none; max-width: 100%; }
    .detail-cover img { max-width: 280px; margin: 0 auto; }

    .pagination { gap: 5px; }
    .pagination a, .pagination span { padding: 8px 10px; min-width: 36px; height: 38px; font-size: 14px; }
    .pagination .page-jump { width: 100%; justify-content: center; margin-top: 12px; margin-left: 0; }
    /* 手机上隐藏页码窗口里的中间页，保留 首页/上一页/当前/下一页/末页 也能用 */
    .pagination .active { min-width: 40px; }

    /* 静态/简单页：减小留白与标题字号 */
    .simple-page { padding: 20px 16px; line-height: 1.8; }
    .simple-page h1 { font-size: 20px; }
    .simple-page h2 { font-size: 17px; }
    .simple-page p { font-size: 15px; }
    .contact-item { flex-direction: column; gap: 4px; }
    .contact-label { width: auto; }

    /* 详情页：标题与操作按钮换行排布 */
    .detail-title { font-size: 19px; line-height: 1.5; }
    .detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
    .detail-actions .download-btn { flex: 1 1 100%; text-align: center; }
    .detail-actions .share-btn { flex: 1 1 calc(50% - 5px); margin: 0; padding: 11px 8px; text-align: center; }

    /* 后台：表格横向滚动，避免撑破视口 */
    .admin-wrap { padding: 0 12px; }
    .admin-head { gap: 8px; }
    .admin-head a.btn { padding: 9px 12px; font-size: 13px; }
    .admin-bar form { margin-left: 0; width: 100%; }
    .admin-bar input { flex: 1; }
    .admin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .admin-table th, .admin-table td { font-size: 13px; padding: 10px 8px; white-space: nowrap; }
    .admin-table td:nth-child(2) { white-space: normal; min-width: 200px; }

    /* 后台表单：两列在手机上改为竖排（覆盖模板内联样式） */
    .admin-edit { padding: 0 12px; }
    .admin-edit .row2 { flex-direction: column !important; gap: 0 !important; }

    /* 网站地图 / 留言 */
    .sitemap-links { gap: 8px; }
    .sitemap-link { font-size: 13px; padding: 7px 12px; }
    .message-form button { width: 100%; padding: 13px; }

    .footer-links { line-height: 2.2; }
}

@media (max-width: 480px) {
    .waterfall { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    /* 小屏：分类格字号再收一档，浮层宽度同步缩小 */
    .nav-list > li > a { font-size: 15px; padding: 11px 4px; }
    .subnav-container { width: calc(100vw - 10px); max-width: 280px; }
    .subnav-content { max-height: 250px; padding: 5px 8px; }
    .subnav-link { font-size: 13px; padding: 8px 10px; }
}

/* ---------- 搜索联想下拉 ---------- */
.suggest-box {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    overflow: hidden;
    z-index: 60;
}
.suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: #f0f7ff; color: #1890ff; }
.suggest-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-cat { flex: none; font-size: 12px; color: #999; }

@media (max-width: 768px) {
    .notice-bar { margin-top: 8px; padding: 0 12px; }
    .notice-item { font-size: 12px; }
    .suggest-item { padding: 12px 14px; font-size: 15px; }
}

/* ---------------- 搜索增强 ---------------- */
/* 空结果 / 无关键词时的热门词快捷入口 */
.hot-words { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hot-words a {
    display: inline-block; padding: 6px 14px; border-radius: 16px;
    background: #f0f7ff; color: #1890ff; font-size: 13px; text-decoration: none;
    border: 1px solid #d6e9ff; transition: all .2s;
}
.hot-words a:hover { background: #1890ff; color: #fff; border-color: #1890ff; }

/* 搜索结果关键词高亮 */
mark.hl { background: #fff3b8; color: #d4380d; padding: 0 1px; border-radius: 2px; font-weight: 600; }

@media (max-width: 768px) {
    .hot-words { margin-top: 12px; gap: 6px; }
    .hot-words a { padding: 8px 14px; font-size: 14px; }
}

/* ==========================================================================
   后台布局（左侧菜单 + 右主区 + 统计卡片）—— 电脑端为主，手机端侧栏降级为顶部横条
   ========================================================================== */
body.admin-body { background: #f4f6fa; }

.admin-shell { display: flex; min-height: 100vh; }

/* ---------- 左侧菜单 ---------- */
.admin-side {
    flex: none;
    width: 210px;
    background: #1f2937;
    color: #c9d4e3;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 20px;
}
.side-brand {
    display: flex; align-items: center; gap: 8px;
    padding: 18px 18px 16px;
    font-size: 16px; font-weight: 700; color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 10px;
}
.side-brand-icon { font-size: 18px; }
.side-group { margin-bottom: 14px; }
.side-title {
    padding: 8px 18px; margin: 0;
    font-size: 12px; color: #7c8ba1; letter-spacing: 1px;
}
.side-link {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    font-size: 14px; color: #c9d4e3;
    border-left: 3px solid transparent;
    transition: all .18s;
}
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link.active {
    background: rgba(24, 144, 255, .16);
    color: #fff;
    border-left-color: #1890ff;
    font-weight: 600;
}
.side-ico { font-size: 14px; width: 18px; text-align: center; }

/* ---------- 右侧主区 ---------- */
.admin-main { flex: 1; min-width: 0; padding: 0 24px 30px; }

.admin-topbar {
    display: flex; align-items: center; justify-content: space-between;
    height: 58px; margin: 0 -24px 18px;
    padding: 0 24px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    position: sticky; top: 0; z-index: 20;
}
.topbar-left { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #333; font-weight: 600; }
.topbar-dot { width: 8px; height: 8px; border-radius: 50%; background: #52c41a; }
.topbar-right { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #666; }
.topbar-out { color: #ff4d4f; }
.topbar-out:hover { text-decoration: underline; }

/* ---------- 统计卡片（居中 · 大气） ---------- */
.stat-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1420px;
    margin: 0 auto 26px;
}
.stat-card {
    flex: 1 1 148px;
    min-width: 138px;
    max-width: 160px;
    display: block;
    text-align: center;
    background: linear-gradient(165deg, #ffffff 0%, #f5faff 100%);
    border: 1px solid #e9f2ff;
    border-top: 4px solid #1890ff;
    border-radius: 16px;
    padding: 22px 14px 18px;
    box-shadow: 0 6px 18px rgba(24, 144, 255, .10);
    transition: transform .22s, box-shadow .22s;
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(24, 144, 255, .20);
}
.stat-card.green  { border-top-color: #52c41a; }
.stat-card.gray   { border-top-color: #bfbfbf; }
.stat-card.purple { border-top-color: #722ed1; }
.stat-card.orange { border-top-color: #fa8c16; }
.stat-card.cyan   { border-top-color: #13c2c2; }
.stat-card.red    { border-top-color: #ff4d4f; }

.stat-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 21px;
    background: #e8f4ff;
    margin-bottom: 12px;
}
.stat-card.green  .stat-ico { background: #e9f9e4; }
.stat-card.gray   .stat-ico { background: #f2f3f5; }
.stat-card.purple .stat-ico { background: #f3eaff; }
.stat-card.orange .stat-ico { background: #fff3e6; }
.stat-card.cyan   .stat-ico { background: #e3fffb; }
.stat-card.red    .stat-ico { background: #ffefef; }

.stat-num {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.15;
    letter-spacing: -.5px;
}
.stat-card.green  .stat-num { color: #237804; }
.stat-card.purple .stat-num { color: #531dab; }
.stat-card.orange .stat-num { color: #ad4e00; }
.stat-card.cyan   .stat-num { color: #006d75; }
.stat-card.red    .stat-num { color: #cf1322; }
.stat-card.gray   .stat-num { color: #595959; }
.stat-label { margin: 6px 0 0; font-size: 14px; color: #7a8699; letter-spacing: .5px; }

/* ---------- 内容区 / 页头 / 工具条 ---------- */
.admin-content { background: transparent; }
.page-head {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.page-head h1 { font-size: 20px; color: #222; font-weight: 600; }
.page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
    display: inline-block; padding: 9px 16px; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; border: none;
    transition: all .18s;
}
.btn-primary { background: #1890ff; color: #fff; }
.btn-primary:hover { background: #096dd9; }
.btn-green   { background: #52c41a; color: #fff; }
.btn-green:hover { background: #389e0d; }
.btn-purple  { background: #722ed1; color: #fff; }
.btn-purple:hover { background: #531dab; }
.btn-plain   { background: #fff; color: #555; border: 1px solid #d9d9d9; }
.btn-plain:hover { color: #1890ff; border-color: #1890ff; }

.toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #fff; padding: 12px 16px; border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05); margin-bottom: 14px;
}
.toolbar-form { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar-form input {
    padding: 9px 12px; border: 2px solid #e8e8e8; border-radius: 8px;
    font-size: 14px; outline: none; min-width: 240px;
}
.toolbar-form input:focus { border-color: #1890ff; }
.toolbar-tip { margin-left: auto; font-size: 13px; color: #888; }

/* ---------- 表格 ---------- */
.admin-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.admin-table th, .admin-table td {
    padding: 12px 10px; text-align: left;
    border-bottom: 1px solid #f0f0f0; font-size: 14px; vertical-align: middle;
}
.admin-table th { background: #f0f7ff; color: #1890ff; font-weight: 600; }
.admin-table tbody tr:hover { background: #fafcff; }
.admin-table .thumb { width: 48px; height: 64px; object-fit: contain; border-radius: 4px; background: #f8f9fa; }
.admin-table .col-title { max-width: 420px; }
.admin-table .col-ops { white-space: nowrap; }
.admin-table a.link { color: #1890ff; margin-right: 10px; }
.admin-table a.link:hover { text-decoration: underline; }
.admin-table a.del { color: #ff4d4f; }
.admin-table a.del:hover { text-decoration: underline; }
.empty-row { text-align: center; color: #999; padding: 30px 0; }

.admin-pager { margin: 20px 0; text-align: center; }
.admin-pager a {
    display: inline-block; padding: 8px 14px; margin: 0 4px;
    background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; font-size: 14px;
}
.admin-pager a:hover { color: #1890ff; border-color: #1890ff; }
.admin-pager a.active, .admin-pager .active { background: #1890ff; color: #fff; border-color: #1890ff; }
.admin-pager span { padding: 8px 14px; color: #999; }

.admin-foot { text-align: center; color: #aaa; font-size: 13px; padding: 18px 0 6px; }
.admin-tip { font-size: 13px; color: #888; margin-bottom: 12px; }
.admin-msg-err { background: #fff1f0; border-color: #ffccc7; color: #cf1322; }

/* ---------- 表单 ---------- */
.admin-form {
    max-width: 760px; background: #fff; border-radius: 10px;
    padding: 22px 24px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.admin-form label {
    display: block; font-size: 14px; color: #555; margin: 14px 0 6px; font-weight: 500;
}
.admin-form label:first-child { margin-top: 0; }
.admin-form input[type=text], .admin-form select, .admin-form textarea {
    width: 100%; padding: 10px 12px; border: 2px solid #e8e8e8; border-radius: 8px;
    font-size: 14px; outline: none; font-family: inherit; background: #fff; box-sizing: border-box;
}
.admin-form input[type=text]:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: #1890ff; }
.admin-form textarea { min-height: 90px; resize: vertical; }
.admin-form .row2 { display: flex; gap: 12px; }
.admin-form .row2 > div { flex: 1; min-width: 0; }
.admin-form .hint { font-size: 12px; color: #999; margin: 6px 0 0; }
.admin-form .check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: #555; }
.admin-form .check input[type=checkbox] { width: 16px; height: 16px; }
.form-actions { margin-top: 22px; display: flex; gap: 10px; }
.tip-box {
    background: #f0f7ff; border: 1px solid #d6e8ff; border-radius: 8px;
    padding: 12px 16px; font-size: 14px; color: #555; margin-bottom: 18px; line-height: 1.8;
}
.tip-box code { background: #fff; padding: 2px 6px; border-radius: 4px; border: 1px solid #eee; }

/* ---------- 手机端：侧栏降级为顶部横向滚动条（后台以电脑为主，仅保证可用） ---------- */
@media (max-width: 768px) {
    .admin-shell { flex-direction: column; }
    .admin-side {
        width: 100%; height: auto; position: static;
        display: flex; overflow-x: auto; padding: 6px 0;
    }
    .side-brand { display: none; }
    .side-group { display: flex; margin: 0; flex: none; }
    .side-title { display: none; }
    .side-link { padding: 8px 12px; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .side-link.active { border-left: none; border-bottom-color: #1890ff; }
    .admin-main { padding: 0 12px 20px; }
    .admin-topbar { margin: 0 -12px 14px; padding: 0 12px; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-num { font-size: 20px; }
    .admin-form { padding: 16px 14px; }
    .admin-form .row2 { flex-direction: column; gap: 0; }
    .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ==========================================================================
   更新监控页面 + 侧栏角标
   ========================================================================== */
.side-badge {
    margin-left: auto;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.monitor-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.mo-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mo-item.highlight { border-left: 4px solid #ff4d4f; }
.mo-label { font-size: 13px; color: #8a94a6; }
.mo-value { font-size: 22px; font-weight: 700; color: #1f2937; }
.mo-item.highlight .mo-value { color: #cf1322; }

@media (max-width: 768px) {
    .monitor-overview { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .mo-item { padding: 12px 14px; }
    .mo-value { font-size: 18px; }
    .stat-cards { gap: 10px; }
    .stat-card { flex: 1 1 calc(50% - 10px); max-width: none; min-width: 0; padding: 16px 10px; }
    .stat-num { font-size: 24px; }
    .stat-ico { width: 36px; height: 36px; font-size: 17px; margin-bottom: 8px; }
}

/* ==========================================================================
   营销活动落地页 /hd.html（结构对齐参考站，配色用站点主色 #1890ff）
   ========================================================================== */
body.promo-body { background: #f5f8ff; color: #223; }
.promo-wrap { max-width: 960px; margin: 0 auto; padding: 28px 18px 40px; }

.promo-body .hero {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff; border-radius: 18px; padding: 44px 30px 38px; text-align: center;
    box-shadow: 0 10px 30px rgba(24, 144, 255, .25);
}
.promo-body .hero h1 { font-size: 34px; margin: 0 0 12px; font-weight: 800; letter-spacing: .5px; }
.promo-body .hero-sub { margin: 0 0 24px; font-size: 15px; opacity: .92; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btn {
    padding: 12px 26px; border-radius: 26px; font-size: 15px; font-weight: 600; text-decoration: none;
}
.hero-btn.primary { background: #fff; color: #096dd9; }
.hero-btn.ghost { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .6); }

.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.point-card { background: #fff; border-radius: 14px; padding: 18px 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.point-card h4 { margin: 0 0 8px; font-size: 16px; color: #1890ff; }
.point-card p { margin: 0; font-size: 13px; color: #666; line-height: 1.7; }

.promo-body .block { background: #fff; border-radius: 16px; padding: 24px 26px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.promo-body .block h2 { margin: 0 0 6px; font-size: 21px; color: #1f2937; }
.promo-body .block h3 { margin: 20px 0 10px; font-size: 17px; color: #1f2937; }
.block-tip { margin: 0 0 14px; font-size: 13px; color: #8a94a6; }

.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.rule-item { background: #f7fbff; border-radius: 12px; padding: 14px 16px; }
.rule-tag { display: inline-block; font-size: 12px; color: #fff; background: #1890ff; border-radius: 10px; padding: 2px 10px; margin-bottom: 8px; }
.rule-item p { margin: 0; font-size: 13px; color: #555; line-height: 1.8; }

.req-list { margin: 0; padding-left: 20px; }
.req-list li { font-size: 14px; color: #555; line-height: 2; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.step { text-align: center; background: #f7fbff; border-radius: 12px; padding: 16px 12px; }
.step-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; background: #1890ff; color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 8px;
}
.step h4 { margin: 0 0 6px; font-size: 15px; color: #1f2937; }
.step p { margin: 0; font-size: 13px; color: #777; }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.tier { border-radius: 14px; padding: 16px 14px; color: #fff; }
.tier.t0 { background: linear-gradient(150deg, #52c41a, #237804); }
.tier.t1 { background: linear-gradient(150deg, #1890ff, #0050b3); }
.tier.t2 { background: linear-gradient(150deg, #722ed1, #391085); }
.tier.t3 { background: linear-gradient(150deg, #fa8c16, #ad4e00); }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.tier-name { font-size: 16px; font-weight: 700; }
.tier-cond { font-size: 12px; opacity: .9; }
.tier-gift { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.tier-desc { font-size: 12px; opacity: .9; line-height: 1.6; }

.contact-box { margin-top: 16px; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #ad6800; }

.tpl { background: #f7fbff; border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.tpl h3 { margin: 0 0 10px !important; font-size: 16px; color: #1890ff !important; }
.tpl-text {
    width: 100%; box-sizing: border-box; border: 1px solid #d9e8ff; border-radius: 8px;
    padding: 12px; font-size: 14px; line-height: 1.8; color: #333; background: #fff; resize: vertical; font-family: inherit;
}
.copy-btn {
    margin-top: 10px; padding: 9px 20px; border: none; border-radius: 8px;
    background: #1890ff; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.copy-btn:hover { background: #096dd9; }

.promo-foot { text-align: center; color: #8a94a6; font-size: 13px; margin-top: 26px; line-height: 2; }
.promo-foot a { color: #1890ff; }

.promo-toast {
    position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, .8); color: #fff; padding: 10px 22px; border-radius: 22px;
    font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99;
}
.promo-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 768px) {
    .promo-wrap { padding: 16px 12px 30px; }
    .promo-body .hero { padding: 30px 18px 26px; border-radius: 14px; }
    .promo-body .hero h1 { font-size: 24px; }
    .hero-btn { padding: 11px 20px; font-size: 14px; }
    .points, .rule-grid, .steps, .tiers { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .promo-body .block { padding: 18px 16px; }
    .promo-body .block h2 { font-size: 18px; }
    .tier-gift { font-size: 17px; }
}
@media (max-width: 420px) {
    .points, .steps { grid-template-columns: repeat(2, 1fr); }
    .rule-grid, .tiers { grid-template-columns: 1fr; }
}

/* ==========================================================================
   视频区（列表 / 年级筛选 / 合集详情 / 分集）
   ========================================================================== */
.page-title-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 12px; }
.page-title-row h1 { font-size: 22px; color: #1f2937; margin: 0; }
.page-count { font-size: 13px; color: #8a94a6; }

.category-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.category-filter label { font-size: 14px; color: #555; }
.category-filter select {
    padding: 8px 12px; border: 2px solid #e8e8e8; border-radius: 8px; font-size: 14px;
    background: #fff; color: #333; outline: none; min-width: 120px;
}
.category-filter select:focus { border-color: #1890ff; }
.filter-clear { font-size: 13px; color: #1890ff; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.video-card {
    background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06); transition: transform .18s, box-shadow .18s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0, 0, 0, .12); }
.video-cover { position: relative; width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(140deg, #d6e9ff, #f0f7ff); overflow: hidden; }
.video-cover.no-cover::after {
    content: '视频'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #1890ff; font-size: 20px; font-weight: 700; letter-spacing: 2px;
}
.video-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-ep-badge {
    position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .62); color: #fff;
    font-size: 12px; padding: 2px 8px; border-radius: 10px;
}
.video-info { padding: 10px 12px 12px; }
.video-info .video-title {
    margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: #222; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px;
}
.video-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #8a94a6; }
.video-category-tag {
    background: #e8f4ff; color: #1890ff; border-radius: 10px; padding: 2px 10px; font-size: 12px;
}
.video-date { color: #a0a8b5; }

.col-head { display: flex; gap: 18px; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); margin-bottom: 20px; }
.col-cover { flex: none; width: 220px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(140deg, #d6e9ff, #f0f7ff); position: relative; }
.col-cover img { width: 100%; height: 100%; object-fit: cover; }
.col-cover.no-cover::after { content: '视频'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #1890ff; font-weight: 700; }
.col-meta { flex: 1; min-width: 0; }
.col-meta h1 { font-size: 20px; margin: 0 0 12px; color: #1f2937; line-height: 1.5; }
.col-stats { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #8a94a6; margin-bottom: 10px; flex-wrap: wrap; }
.col-count { color: #52c41a; font-weight: 600; }
.col-tip { font-size: 13px; color: #8a94a6; margin: 0; }

.sec-title { font-size: 18px; color: #1f2937; margin: 22px 0 12px; }

.video-list { background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.video-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
    border-bottom: 1px solid #f2f5fa; transition: background .15s;
}
.video-item:last-child { border-bottom: none; }
.video-item:hover { background: #f5faff; }
.video-index { flex: none; width: 42px; color: #1890ff; font-weight: 700; font-size: 13px; }
.video-item .video-title { flex: 1; margin: 0; font-size: 14px; color: #333; }
.video-open {
    flex: none; font-size: 13px; color: #fff; background: #1890ff; border-radius: 12px; padding: 3px 12px;
}
.empty-box { background: #fff; border-radius: 12px; padding: 40px; text-align: center; color: #999; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }

@media (max-width: 768px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .col-head { flex-direction: column; }
    .col-cover { width: 100%; }
    .col-meta h1 { font-size: 17px; }
    .video-item { padding: 10px; }
    .video-index { width: 34px; font-size: 12px; }
    .video-item .video-title { font-size: 13px; }
}

/* ==================================================================
 * 第二轮体检补齐：首页 H1/副标题/推荐网站位、置顶徽章、图片灯箱、
 * 分类页年级筛选与科目 chips、详情页留言反馈、后台三列表单
 * ================================================================== */

/* --- 首页 H1 + 副标题（参考站 home.html:465-474） --- */
.site-h1 {
    font-size: 32px; color: #1890ff; text-align: center;
    margin: 18px 0 6px; font-weight: 700; letter-spacing: 1px;
}
.site-sub {
    text-align: center; color: #666; font-size: 15px; margin: 0 0 16px;
    padding-bottom: 14px; border-bottom: 2px solid #f0f5ff;
}

/* --- 首页「推荐网站」胶囊位（参考站 home.html:453-458） --- */
.recommend-site { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 18px; }
.recommend-link {
    display: inline-block; padding: 9px 20px; border-radius: 999px;
    background: linear-gradient(135deg, #ff7a45, #ff4d4f);
    color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 77, 79, .25);
    transition: transform .18s, box-shadow .18s;
}
.recommend-link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(255, 77, 79, .32); color: #fff; }

/* --- 置顶徽章（参考站 style.css:846-855，去掉 emoji 只留文字） ---
   注意：卡片本身 overflow:hidden 且有 12px 圆角，徽章若按参考站用
   top/left:-6px 会被裁掉一角，这里改为贴边并用圆角衔接卡片。 */
.top-badge {
    position: absolute; top: 0; left: 0; z-index: 10;
    width: 64px; height: 26px; line-height: 26px; text-align: center;
    background: linear-gradient(135deg, #ff7a45, #ff4d4f);
    color: #fff; font-size: 13px; font-weight: 700;
    border-radius: 12px 0 10px 0;
    box-shadow: 0 2px 8px rgba(255, 77, 79, .35);
}

/* --- 图片灯箱预览（参考站 resource.html:1133-1139） --- */
.image-preview-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, .85);
    display: none; align-items: center; justify-content: center;
    padding: 30px; cursor: zoom-out;
}
.image-preview-modal.active { display: flex; }
.image-preview-modal .preview-image {
    max-width: 92%; max-height: 92%; object-fit: contain;
    border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    cursor: default;
}
.image-preview-modal .preview-close {
    position: absolute; top: 18px; right: 26px;
    font-size: 38px; line-height: 1; color: #fff; cursor: pointer;
    user-select: none; opacity: .85;
}
.image-preview-modal .preview-close:hover { opacity: 1; }

/* --- 详情页封面「点击放大」提示 + 反馈按钮 --- */
.cover-tip { margin: 8px 0 0; font-size: 12px; color: #999; text-align: center; }
.detail-cover .resource-image { cursor: zoom-in; }
.feedback-btn { background: #fff; color: #1890ff; border: 1px solid #91d5ff; }
.feedback-btn:hover { background: #e6f7ff; color: #1890ff; }

/* --- 分类页：标题行 + 科目 chips --- */
.page-title-row {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 6px;
}
.page-title-row h1 { font-size: 22px; margin: 0; color: #222; }
.page-count { font-size: 13px; color: #999; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.subject-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px; font-size: 13px;
    background: #f5f7fa; color: #555; text-decoration: none;
    border: 1px solid #e8e8e8; transition: all .18s;
}
.subject-chip:hover { border-color: #91d5ff; color: #1890ff; }
.subject-chip.active {
    background: #e6f7ff; border-color: #1890ff; color: #1890ff; font-weight: 600;
}
.chip-count { font-size: 11px; color: #aaa; }
.subject-chip.active .chip-count { color: #1890ff; }

/* --- 留言板：关联资源提示 --- */
.msg-res-tip {
    background: #f0f7ff; border: 1px solid #d6e9ff; border-radius: 8px;
    padding: 10px 12px; font-size: 13px; color: #333; margin-bottom: 10px;
}
.msg-res-clear { margin-left: 8px; color: #999; }

/* --- 后台：三列表单行 + 行内控件 --- */
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.inline-row { display: flex; gap: 8px; align-items: center; }
.tag-top {
    display: inline-block; padding: 2px 10px; border-radius: 10px;
    background: #fff1f0; color: #ff4d4f; font-size: 12px; font-weight: 600;
    border: 1px solid #ffccc7; text-decoration: none;
}
.tag-plain {
    display: inline-block; padding: 2px 10px; border-radius: 10px;
    background: #fafafa; color: #999; font-size: 12px;
    border: 1px solid #e8e8e8; text-decoration: none;
}
.tag-plain:hover { color: #1890ff; border-color: #91d5ff; }

@media (max-width: 768px) {
    .site-h1 { font-size: 24px; margin: 14px 0 4px; }
    .site-sub { font-size: 13px; margin-bottom: 12px; }
    .recommend-link { padding: 8px 16px; font-size: 13px; }
    .page-title-row h1 { font-size: 18px; }
    .category-filter { gap: 8px; }
    .subject-chip { padding: 5px 10px; font-size: 12px; }
    .image-preview-modal { padding: 14px; }
    .image-preview-modal .preview-close { top: 8px; right: 14px; font-size: 30px; }
    .row3 { grid-template-columns: 1fr; }
}

/* ==================================================================
 * 第三轮体检补齐：Toast、面包屑结构化、页面头图、联系卡片
 * ================================================================== */

/* --- 轻提示 Toast --- */
.jz-toast {
    position: fixed; left: 50%; bottom: 46px; transform: translate(-50%, 12px);
    z-index: 10000; max-width: 80%;
    padding: 11px 22px; border-radius: 999px;
    background: rgba(0, 0, 0, .82); color: #fff; font-size: 14px; line-height: 1.4;
    opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}
.jz-toast.show { opacity: 1; transform: translate(-50%, 0); }
.jz-toast.err { background: rgba(214, 48, 49, .9); }

/* --- 面包屑结构化（ul/li + 斜杠分隔） --- */
.crumb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumb-list li { display: inline-flex; align-items: center; gap: 6px; }
.crumb-list li + li::before { content: '/'; color: #ccc; margin-right: 2px; }
.crumb-list a { color: #1890ff; text-decoration: none; }
.crumb-list a:hover { text-decoration: underline; }
.crumb-current { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #999; }

/* --- 页面顶部渐变头图卡片（关于页等） --- */
.page-hero {
    background: linear-gradient(135deg, #1890ff 0%, #2f54eb 55%, #722ed1 100%);
    border-radius: 16px; padding: 34px 28px; margin: 4px 0 20px; text-align: center;
    color: #fff; box-shadow: 0 10px 26px rgba(24, 144, 255, .22);
}
.page-hero h1 { margin: 0 0 8px; font-size: 26px; font-weight: 700; color: #fff; }
.page-hero p { margin: 0; font-size: 14px; opacity: .92; }

/* --- 联系我们卡片 --- */
.contact-box {
    background: #f8fbff; border: 1px solid #d6e9ff; border-radius: 12px;
    padding: 16px 18px; margin: 10px 0 0;
}
.contact-box p { margin: 0 0 8px; }
.contact-box p:last-child { margin-bottom: 0; }
.contact-box a { color: #1890ff; }

@media (max-width: 768px) {
    .page-hero { padding: 24px 18px; border-radius: 12px; }
    .page-hero h1 { font-size: 21px; }
    .jz-toast { bottom: 26px; font-size: 13px; padding: 10px 18px; }
    .crumb-current { max-width: 46%; }
}
