/* ============================================
   全新布局系统 - 960px宽度设计
   白色主题 - 现代化卡片式布局
   ============================================ */

/* ========== 全局重置与基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #0052a3;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ========== 主容器系统 ========== */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.section {
    margin-bottom: 30px;
}

/* ========== 统一模块容器 ========== */
/* 说明：用于包裹所有功能模块，确保样式统一、对齐一致 */
.module-container {
    max-width: 960px;
    margin: 0 auto 25px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.module-container + .module-container {
    margin-top: 25px;
}

/* 模块容器内的内容间距 */
.module-container > *:not(:last-child) {
    margin-bottom: 20px;
}

/* 模块容器在移动端的适配 */
@media screen and (max-width: 768px) {
    .module-container {
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    .module-container + .module-container {
        margin-top: 20px;
    }
    
    .module-container > *:not(:last-child) {
        margin-bottom: 16px;
    }
}

/* 模块容器变体：带内容区域padding */
.module-container-padded {
    padding: 20px;
}

/* 模块容器变体：带内容区域padding（移动端） */
@media screen and (max-width: 768px) {
    .module-container-padded {
        padding: 16px;
    }
}

/* 模块容器变体：无间距（用于紧密排列的内容） */
.module-container-tight {
    margin-bottom: 0;
}

.module-container-tight + .module-container-tight {
    margin-top: 0;
}

/* 模块容器变体：带底部边框分隔 */
.module-container-bordered {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

@media screen and (max-width: 768px) {
    .module-container-bordered {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}

/* ========== 头部导航区域 ========== */
.head {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.head.hide {
    transform: translateY(-100%);
}

.head.show {
    transform: translateY(0);
}

.mytitle1 {
    max-width: 960px;
    margin: 0 auto;
    padding: 15px 20px;
}

.mytitle1 > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mytitle1 > div > div:first-child {
    flex-shrink: 0;
}

#logo {
    height: 36px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-right li {
    margin: 0;
}

.nav-right li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    background-color: #f5f5f5;
    color: #333333;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
    height: 32px;
    min-width: 60px;
    box-sizing: border-box;
    line-height: 1;
}

/* 统一右上角按钮样式（搜索、收藏网址、片库） */
.nav-right .bookmark-btn a,
.nav-right .pianku-btn a,
.nav-right #search-modal-btn {
    height: 32px;
    min-width: 60px;
    font-size: 12px;
    padding: 6px 12px;
    gap: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-right li a:hover {
    background-color: #e8e8e8;
    color: #0066cc;
}

.nav-right li a svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}



.vwbg {
    background-color: #ffffff;
    min-height: 50vh;
    padding-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* ========== 分类导航区域（重新设计） ========== */
.maccms-tab-container {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.maccms-tab-nav {
    display: flex;
    background-color: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
    -webkit-overflow-scrolling: touch;
}

.maccms-tab-nav::-webkit-scrollbar {
    height: 3px;
}

.maccms-tab-nav::-webkit-scrollbar-thumb {
    background-color: #d0d0d0;
    border-radius: 2px;
}

.maccms-tab-item {
    flex-shrink: 0;
    padding: 14px 20px;
    cursor: pointer;
    position: relative;
    background-color: transparent;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.maccms-tab-item:hover {
    background-color: #f0f0f0;
}

.maccms-tab-item.maccms-tab-active {
    background-color: #ffffff;
    border-bottom-color: #0066cc;
}

.maccms-tab-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}

.tab-name {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    line-height: 1.3;
}

.maccms-tab-item.maccms-tab-active .tab-name {
    color: #0066cc;
}

.tab-count {
    font-size: 12px;
    color: #999999;
    font-weight: normal;
}

.maccms-tab-item.maccms-tab-active .tab-count {
    color: #666666;
}

.maccms-tab-content {
    padding: 20px;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

/* 在 module-container 中的 maccms-tab-container 需要移除内部 padding */
.module-container .maccms-tab-container {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
}

.module-container .maccms-tab-content {
    padding: 0;
}

.module-container .maccms-tab-pane {
    padding: 0;
}

.module-container .maccms-tab-pane .myvod-section {
    margin-bottom: 0;
    padding: 0;
}

.module-container .maccms-tab-pane .mypage {
    margin-top: 20px;
    margin-bottom: 20px;
}

.maccms-tab-pane {
    display: none;
}

.maccms-tab-pane.maccms-tab-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.maccms-cat-list {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.maccms-cat-list li {
    margin: 0;
}

.maccms-cat-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background-color: #fafafa;
    color: #333333;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 72px;
    text-decoration: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.maccms-cat-list li a:hover {
    background-color: #ffffff;
    border-color: #0066cc;
    color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.cat-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cat-count {
    font-size: 11px;
    color: #999999;
    line-height: 1.2;
}

/* ========== 面包屑导航（重新设计 - 纯白主题） ========== */
.breadcrumb {
    max-width: 960px;
    margin: 0 auto 25px;
    padding: 12px 20px;
    font-size: 13px;
    color: #666666;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.6;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 2px 4px;
    border-radius: 3px;
}

.breadcrumb a:hover {
    color: #0052a3;
    background-color: #f5f5f5;
}

.breadcrumb .separator {
    margin: 0 6px;
    color: #cccccc;
    font-size: 12px;
    user-select: none;
}

.breadcrumb .current {
    color: #1a1a1a;
    font-weight: 500;
}

.breadcrumb .text-muted {
    color: #999999;
    margin-right: 4px;
}

/* ========== 分类导航（文章页） ========== */
.mycate {
    max-width: 960px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mycate a {
    padding: 6px 14px;
    background-color: #ffffff;
    color: #333333;
    border-radius: 5px;
    border: 1px solid #e8e8e8;
    font-size: 13px;
    transition: all 0.2s ease;
}

.mycate a:hover {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

/* ========== 内容区块 ========== */
.myvod-section {
    max-width: 960px;
    margin: 0 auto 30px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.mytitle {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* 如果 mytitle 不在 myvod-section 内，也需要左右间距 */
body > .mytitle,
.vwbg > .mytitle {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.mytitle .frvod {
    font-size: 14px;
    font-weight: normal;
    color: #0066cc;
    margin-left: 15px;
    white-space: nowrap;
}

/* 标题内的文本和链接自然排列在左侧 */
.mytitle > a,
.mytitle > span {
    display: inline-flex;
    align-items: center;
}

.mytitle .frvod:hover {
    text-decoration: underline;
}

.mytitle1 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* ========== 视频列表（全新卡片布局） ========== */
/* PC端默认3列，移动端（≤768px）在媒体查询中会覆盖为2列 */
.myvod {
    display: grid;
    /* 默认使用两排横向布局（PC端3列，移动端2列） */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

/* 竖向布局（6列） */
.myvod.layout-vertical {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

/* 横向布局模式（单列） */
.myvod.layout-horizontal {
    grid-template-columns: 1fr;
    gap: 12px;
}

/* 两排横向布局模式（网格横向）- 默认布局，无需额外类 */
/* 注意：这个类在PC端和移动端的表现已在媒体查询中定义 */
.myvod.layout-grid-horizontal {
    /* PC端保持3列，移动端在媒体查询中会覆盖为2列 */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* 移动端响应式布局 */
@media screen and (max-width: 768px) {
    /* 默认两排横向布局：移动端显示2列 */
    .myvod {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    
    /* 竖向布局：移动端显示3列 */
    .myvod.layout-vertical {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    
    /* 两排横向布局：移动端显示2列 */
    .myvod.layout-grid-horizontal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    
    /* 单列横向布局：移动端仍然是单列 */
    .myvod.layout-horizontal {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 布局切换按钮 */
.layout-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    color: #666666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 确保切换按钮在标题中的位置协调（放在最右侧） */
.mytitle .layout-toggle-btn {
    order: 10; /* 放在最后 */
    margin-left: auto; /* 自动推到右侧 */
    align-self: center; /* 垂直居中 */
}

.layout-toggle-btn:hover {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.layout-toggle-btn.active {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.layout-toggle-btn svg {
    width: 14px;
    height: 14px;
}

/* 当myvod包含ul时，取消网格布局，使用列表布局 */
.myvod ul {
    display: block !important;
    grid-template-columns: none !important;
    width: 100%;
}

/* ========== 随机推荐 - change-group 样式 ========== */
/* change-group 使用 contents 显示，让子元素直接参与父网格布局 */
.myvod > .change-group {
    display: contents; /* 让 change-group 透明化，视频项直接成为 .myvod 的网格项 */
    will-change: display;
    backface-visibility: hidden;
    transform: translateZ(0); /* 触发硬件加速，解决切换时不显示的问题 */
}

/* 默认只显示第一个组，其他组隐藏 */
.myvod > .change-group:not(:first-child) {
    display: none;
}

/* 确保通过JS切换后也能正确显示 */
.myvod > .change-group[style*="display: contents"] {
    display: contents !important;
}

/* ========== 视频列表广告 ========== */
.video-ad-item {
    width: 100%;
    min-width: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: 0;
    box-sizing: border-box;
}

.ad-link {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 140%;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #e8e8e8;
    box-sizing: border-box;
    min-width: 0;
    flex-shrink: 0;
    text-decoration: none;
}

.ad-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #f5f5f5;
}

.video-ad-item:hover {
    transform: translateY(-3px);
}

.video-ad-item:hover .ad-image,
.video-ad-item:hover .uzimg img {
    transform: scale(1.05);
}

/* 确保广告图片样式与视频卡片图片样式一致 */
.video-ad-item .uzimg .ad-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #f5f5f5;
}

/* 确保广告内容区域样式与视频卡片一致 */
.video-ad-item .video-item-content {
    display: block;
}

.video-ad-item h4 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    height: auto;
    max-height: 39px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-width: 0;
    word-break: break-word;
}

.video-ad-item h4 a {
    color: #1a1a1a;
    display: block;
}

.video-ad-item h4 a:hover {
    color: #0066cc;
}

.ad-label {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: #ff6b35;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.4);
}

.ad-content {
    display: block;
}

.ad-name {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    height: 39px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-width: 0;
    word-break: break-word;
}

.ad-name a {
    color: #1a1a1a;
    display: block;
}

.ad-name a:hover {
    color: #0066cc;
}

/* 横向布局下的广告（单列） */
.myvod.layout-horizontal .video-ad-item {
    display: flex;
    gap: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
}

.myvod.layout-horizontal .video-ad-item:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

/* 两排横向布局下的广告（保持上图下文结构） */
.myvod.layout-grid-horizontal .video-ad-item {
    display: block;
    transition: transform 0.2s ease;
}

/* 横向布局下的广告链接（单列） */
.myvod.layout-horizontal .video-ad-item .uzimg {
    width: 200px;
    padding-top: 120px;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* 两排横向布局下的广告链接（横向比例） */
.myvod.layout-grid-horizontal .video-ad-item .uzimg {
    width: 100%;
    padding-top: 56.25%; /* 16:9 横向比例 */
    margin-bottom: 10px;
    flex-shrink: 0;
}

/* 横向布局下的广告内容（单列） */
.myvod.layout-horizontal .video-ad-item .video-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 两排横向布局下的广告内容（保持上图下文） */
.myvod.layout-grid-horizontal .video-ad-item .video-item-content {
    display: block;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .ad-label {
        font-size: 10px;
        padding: 2px 6px;
        bottom: 4px;
        right: 4px;
    }
    
    .video-ad-item h4 {
        font-size: 12px;
        height: auto;
        max-height: 36px;
    }
    
    .myvod.layout-horizontal .video-ad-item {
        padding: 10px;
        gap: 10px;
    }
    
    .myvod.layout-horizontal .video-ad-item .uzimg {
        width: 120px;
        padding-top: 72px;
        margin-bottom: 0;
    }
}

/* ========== 视频卡片项 ========== */
.video-item {
    width: 100%;
    min-width: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: 0;
    box-sizing: border-box;
}

/* 横向布局模式下的卡片（单列） */
.myvod.layout-horizontal .video-item {
    display: flex;
    gap: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
}

.myvod.layout-horizontal .video-item:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

/* 两排横向布局模式下的卡片（保持上图下文结构，图片为横向） */
.myvod.layout-grid-horizontal .video-item {
    /* 保持默认的竖向卡片结构，不添加flex */
    display: block;
    border: none;
    padding: 0;
    transition: transform 0.2s ease;
}

.myvod.layout-grid-horizontal .video-item:hover {
    transform: translateY(-3px);
}

.video-item:hover {
    transform: translateY(-3px);
}

.uzimg {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 140%;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #e8e8e8;
    box-sizing: border-box;
    min-width: 0;
    flex-shrink: 0;
}

/* 横向布局下的图片（单列） */
.myvod.layout-horizontal .uzimg {
    width: 200px;
    padding-top: 120px; /* 200 * 0.6 = 120，横向比例 */
    margin-bottom: 0;
    flex-shrink: 0;
}

/* 两排横向布局下的图片（横向比例，但保持上图下文的卡片结构） */
.myvod.layout-grid-horizontal .uzimg {
    width: 100%;
    padding-top: 56.25%; /* 16:9 横向比例 */
    margin-bottom: 10px;
    flex-shrink: 0;
}

/* 竖向布局下的内容区域（默认，不影响原有布局） */
.video-item-content {
    display: block;
}

/* 横向布局下的内容区域（单列） */
.myvod.layout-horizontal .video-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 两排横向布局下的内容区域（保持默认的block显示） */
.myvod.layout-grid-horizontal .video-item-content {
    display: block;
}

/* 横向布局下的标题（单列） */
.myvod.layout-horizontal .video-item h4 {
    height: auto;
    margin-bottom: 8px;
    -webkit-line-clamp: 3;
}

/* 两排横向布局下的标题 */
.myvod.layout-grid-horizontal .video-item h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.4;
    height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 横向布局下的标题描述（单列） */
.myvod.layout-horizontal .vodtitle {
    margin-top: auto;
}

/* 两排横向布局下的标题描述 */
.myvod.layout-grid-horizontal .vodtitle {
    margin: 0;
    font-size: 12px;
    color: #666666;
}

.uzimg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #f5f5f5;
}

/* 占位图样式 - 淡蓝色渐变背景（更现代） */
.uzimg img.lazy {
    /* 使用淡蓝色渐变背景，更现代简洁 */
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    /* 确保占位图填充整个容器 */
    min-width: 100%;
    min-height: 100%;
}

/* 竖向布局 - 占位图自动适应竖向长方形容器（padding-top: 140%）*/
/* 无需额外样式，容器比例已设置为竖向 */

/* 横向布局 - 占位图自动适应横向长方形容器（width: 200px, padding-top: 120px）*/
/* 占位图会自动适应容器大小，无需额外样式 */

.video-item:hover .uzimg img {
    transform: scale(1.05);
}

.uzimg .title {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.video-item h4 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    height: 39px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-width: 0;
    word-break: break-word;
}

.video-item h4 a {
    color: #1a1a1a;
    display: block;
}

.video-item h4 a:hover {
    color: #0066cc;
}

.vodtitle {
    font-size: 12px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* ========== 文章列表样式 ========== */
.myvod ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
    grid-template-columns: none !important;
}

.myvod ul li {
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.myvod ul li:hover {
    background-color: #fafafa;
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 4px;
}

.myvod ul li h4 {
    flex: 1;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.myvod ul li h4 a {
    color: #1a1a1a;
}

.myvod ul li h4 a:hover {
    color: #0066cc;
}

.arttitle {
    font-size: 13px;
    color: #999999;
    flex-shrink: 0;
    margin-left: 15px;
}

/* ========== 文章详情页 ========== */
.art-detail {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
}

.art-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.art-title {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.art-meta {
    font-size: 14px;
    color: #666666;
    display: flex;
    gap: 20px;
}

.art-chapter-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.art-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333333;
}

.art-content p {
    margin-bottom: 18px;
}

.art-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
    border: 1px solid #e8e8e8;
}

/* ========== 播放页 ========== */
.myplay {
    max-width: 960px;
    margin: 0 auto;
    padding: 15px 20px;
    font-size: 13px;
    color: #666666;
    width: 100%;
    box-sizing: border-box;
}


.myplay a {
    color: #0066cc;
}

.myplay .text-muted {
    color: #999999;
}

/* ========== 分页系统 ========== */
.mypage {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 15px;
    text-align: center;
}

.mypage .text-center {
    width: 100%;
}

.mypage .appel {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666666;
}

.mypage .appel center {
    margin: 0;
    padding: 0;
}

.mypage .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mypage .pagination .page-item {
    margin: 0;
    display: inline-block;
}

.mypage .pagination .page-item.fenye {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.mypage .page_link {
    display: inline-block;
    padding: 10px 18px;
    background-color: #ffffff;
    color: #333333;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 44px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.mypage .page_link:hover {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

.mypage .page_item.disabled .page_link {
    opacity: 0.6;
    cursor: not-allowed;
}

.mypage .page_item.disabled .page_link:hover {
    background-color: #ffffff;
    color: #333333;
    border-color: #e8e8e8;
    transform: none;
    box-shadow: none;
}

.mypage .page_input {
    width: 62px;
    text-align: center;
    height: 33px;
    color: #1a1a1a;
    border: 1px solid #0066cc;
    border-radius: 6px;
    font-size: 14px;
    padding: 0 8px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

.mypage .page_input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.mypage .mac_page_go {
    width: 70px;
    height: 33px;
    color: #ffffff;
    background-color: #0066cc;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.mypage .mac_page_go:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.mypage .mac_page_go:active {
    transform: translateY(0);
}

/* 兼容旧版样式 */
.mypage a {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 4px;
    background-color: #ffffff;
    color: #333333;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 44px;
    text-decoration: none;
}

.mypage a:hover {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

/* ========== 搜索弹窗（全新设计） ========== */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

.search-modal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 确保弹窗内容垂直居中 */
.search-modal.show .search-modal-content {
    margin-top: auto;
    margin-bottom: auto;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    margin: auto;
    transform: translateY(0);
}

.search-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.search-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.search-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666666;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-modal-close:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

.search-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.search-stats {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.stats-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666666;
}

.stat-item strong {
    color: #0066cc;
    font-weight: 600;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: stretch;
    min-width: 0; /* 防止 flex 子元素溢出 */
}

.search-input-group input {
    flex: 1;
    min-width: 0; /* 允许输入框收缩 */
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.search-input-group input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-submit-btn {
    padding: 12px 24px;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0; /* 防止按钮被压缩 */
    min-width: fit-content; /* 确保按钮完整显示 */
}

.search-submit-btn:hover {
    background-color: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.search-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.search-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-type-selector label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
}

.search-type-selector input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.search-suggestions {
    margin-top: 20px;
}

.suggestions-title {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 12px;
}

.suggestions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.suggestion-tag {
    padding: 6px 12px;
    background-color: #f5f5f5;
    color: #333333;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.suggestion-tag:hover {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.search-tips {
    font-size: 12px;
    color: #999999;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}

/* 隐藏原始热词文本（避免重复显示） */
#search-hot-raw {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* ========== Tab 导航样式（搜索页） ========== */
.search-tabs {
    max-width: 960px;
    margin: 0 auto 30px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.tab-btn {
    padding: 12px 24px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #0066cc;
    background-color: #f5f5f5;
}

.tab-btn.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
    font-weight: 600;
}

.tab-btn .tab-count {
    margin-left: 6px;
    font-size: 13px;
    opacity: 0.8;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #666666;
}

.search-loading.show {
    display: block;
}

/* ========== 视频弹窗 ========== */
#videoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

#videoModal[style*="flex"] {
    display: flex !important;
}

#modalInner {
    background-color: #ffffff;
    padding: 28px;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-image {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 18px;
    cursor: pointer;
    border: 1px solid #e8e8e8;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.5;
    text-align: left;
}

.modal-info {
    font-size: 14px;
    color: #666666;
    margin-bottom: 8px;
    line-height: 1.6;
    text-align: left;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.modal-btn {
    flex: 1;
    min-width: 90px;
    padding: 12px 20px;
    background-color: #f5f5f5;
    color: #333333;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
    transform: translateY(-1px);
}

/* ========== 复制提示 ========== */
/* 已废弃：原来的 #copy 样式已移除，相关功能已删除 */

/* ========== 收藏网址弹窗样式 ========== */
/* 直接使用片库弹窗的样式类（pianku-modal, pianku-modal-overlay, pianku-modal-content等） */

/* 成功提示 */
.copy-toast-success {
    text-align: center;
    margin-bottom: 24px;
}

.copy-toast-success svg {
    margin-bottom: 12px;
}

.copy-toast-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* 警告提示区域 */
.copy-url-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 0;
}

.warning-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #f59e0b;
    stroke: #f59e0b;
    fill: #fef3c7;
}

.warning-text {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

/* 最新网址TAB布局 */
.latest-url-content {
    padding: 20px 0;
}

.latest-url-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.latest-url-label {
    color: #1a1a1a;
    font-weight: 500;
    margin-right: 8px;
    flex-shrink: 0;
}

.latest-url-value {
    color: #e74c3c;
    font-weight: 600;
    word-break: break-all;
}

/* 复制成功提示按钮 */
.latest-copy-success {
    display: none;
    width: 100%;
    padding: 16px 24px;
    margin: 24px 0;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: default;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.latest-copy-success span {
    display: block;
}

/* 提示文字 */
.latest-url-tips {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.latest-url-tips p {
    margin: 8px 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

/* 收藏网址弹窗按钮组 */
.copy-toast-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.copy-toast-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-toast-btn:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.copy-toast-btn:active {
    transform: translateY(0);
}

.copy-toast-btn svg {
    flex-shrink: 0;
}

.copy-toast-btn span {
    white-space: nowrap;
}

/* APP下载按钮样式（备用） */
.app-download-btn-modal {
    background-color: #28a745;
}

.app-download-btn-modal:hover {
    background-color: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .copy-toast-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .copy-toast-btn {
        width: 100%;
    }
}

/* URL列表容器 */
.copy-url-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* URL列表项 */
.copy-url-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background-color: #f5f5f5;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.copy-url-item:hover {
    background-color: #eeeeee;
}

/* 编号圆圈 */
.copy-url-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #ff6b35;
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

/* URL文本 */
.copy-url-text {
    flex: 1;
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    word-break: break-all;
    min-width: 0;
}

/* 复制按钮 */
.copy-url-copy-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-url-copy-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.copy-url-copy-btn svg {
    width: 16px;
    height: 16px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .copy-url-warning {
        padding: 10px 0;
        margin-bottom: 16px;
    }
    
    .warning-icon {
        width: 18px;
        height: 18px;
    }
    
    .warning-text {
        font-size: 13px;
    }
    
    .copy-url-item {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .copy-url-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .copy-url-text {
        font-size: 14px;
    }
    
    .copy-url-copy-btn {
        width: 32px;
        height: 32px;
    }
    
    .copy-url-copy-btn svg {
        width: 14px;
        height: 14px;
    }
    
    /* 最新网址TAB移动端适配 */
    .latest-url-content {
        padding: 15px 0;
    }
    
    .latest-url-row {
        font-size: 14px;
        margin-bottom: 14px;
    }
    
    .latest-copy-success {
        padding: 14px 20px;
        font-size: 15px;
        margin: 20px 0;
    }
    
    .latest-url-tips {
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .latest-url-tips p {
        font-size: 13px;
    }
}

/* ========== 底部区域 ========== */
/* 底部轮链（对用户隐藏，仅对搜索引擎蜘蛛可见） */
#footer-links-seo {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    font-size: 0;
    line-height: 0;
}

/* 对搜索引擎可见，但用户看不到 */
#footer-links-seo a {
    display: inline;
    font-size: 0;
    line-height: 0;
    opacity: 0;
    visibility: hidden;
}

.myft {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 20px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
    background-color: #ffffff;
}

/* 移除底部多余的空白 */
.myft + br,
.vwbg > br:last-child,
body > br:last-of-type {
    display: none;
}

.myft p {
    margin: 10px 0;
    color: #666666;
    font-size: 13px;
    line-height: 1.8;
}

.myft a {
    color: #0066cc;
}

/* ========== 浮动按钮 ========== */
#floatingButtons {
    position: fixed !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    bottom: 30px !important;
    width: auto !important;
    display: none; /* 默认隐藏，滚动时由JS控制显示 */
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 12px;
    z-index: 999 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

#backToTop,
#goHome {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    color: #333333;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

#backToTop:hover,
#goHome:hover {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

#goHome svg {
    width: 20px;
    height: 20px;
}

/* ========== 轮播图样式 ========== */
/* 轮播图（在module-container中，使用统一的宽度和间距） */
.module-container > .swiper,
.swiper {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    width: 100%;
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
    height: 300px; /* 默认PC端高度，将通过JavaScript动态设置 */
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 只显示当前激活的slide */
.swiper-slide-active {
    opacity: 1;
}

.swiper-slide a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
}

.swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    object-fit: fill;
}

.swiper-slide a:hover img {
    transform: scale(1.05);
}

.swiper-slide a:active img {
    transform: scale(1.02);
}

.swiper-slide a:hover {
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
}

.swiper-slide a:active {
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.15);
}

.swiper-pagination {
    bottom: 10px;
    z-index: 10;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #0066cc;
}

/* 移动端轮播图 */
@media screen and (max-width: 768px) {
    .module-container > .swiper,
    .swiper {
        padding: 0;
        margin: 0;
    }
    
    .swiper-slide {
        height: 200px; /* 默认移动端高度，将通过JavaScript动态设置 */
    }
}

/* ========== Tab广告模块样式（在module-container中） ========== */
/* Tab导航栏（在module-container中） */
.module-container > .tab-ads-nav,
.tab-ads-nav {
    display: flex;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    background-color: #fafafa;
    border-radius: 8px 8px 0 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
}

.tab-ads-nav::-webkit-scrollbar {
    height: 3px;
}

.tab-ads-nav::-webkit-scrollbar-thumb {
    background-color: #d0d0d0;
    border-radius: 2px;
}

.tab-ads-item {
    flex-shrink: 0;
    padding: 8px 16px;
    cursor: pointer;
    position: relative;
    background-color: transparent;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    border-radius: 6px 6px 0 0;
    white-space: nowrap;
}

.tab-ads-item:hover {
    background-color: #f0f0f0;
}

.tab-ads-item.tab-ads-active {
    background-color: #ffffff;
    border-bottom-color: #0066cc;
}

.tab-ads-item .tab-ads-name {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
}

.tab-ads-item.tab-ads-active .tab-ads-name {
    color: #0066cc;
    font-weight: 600;
}

/* Tab内容区（在module-container中） */
.module-container > .tab-ads-content,
.tab-ads-content {
    position: relative;
    min-height: 120px;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
    width: 100%;
    box-sizing: border-box;
}

.tab-ads-pane {
    display: none;
    padding: 20px 0;
    background-color: #ffffff;
}

.tab-ads-pane.tab-ads-active {
    display: block;
    background-color: #ffffff;
}

/* 广告项网格 - PC端：10列，自动换行 */
.tab-ads-items-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
    grid-auto-rows: auto;
}

/* 广告项链接 */
.tab-ads-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    border: none;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 8px;
    min-width: 0;
}

.tab-ads-item-link:hover {
    transform: translateY(-3px);
}

.tab-ads-item-link:active {
    transform: translateY(-1px) scale(0.98);
}

/* 广告项图标 */
.tab-ads-item-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.tab-ads-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tab-ads-item-link:hover .tab-ads-item-icon {
    background-color: #f0f7ff;
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    transform: scale(1.05);
}

.tab-ads-item-link:hover .tab-ads-item-icon img {
    transform: scale(1.1);
}

.tab-ads-item-link:active .tab-ads-item-icon {
    transform: scale(1.02);
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.2);
}

.tab-ads-item-link:active .tab-ads-item-icon img {
    transform: scale(1.05);
}

/* 广告项名称 */
.tab-ads-item-name {
    font-size: 12px;
    font-weight: 500;
    color: #333333;
    text-align: center;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 1.4;
}

.tab-ads-item-link:hover .tab-ads-item-name {
    color: #0066cc;
    font-weight: 600;
}

.tab-ads-item-link:active .tab-ads-item-name {
    color: #0052a3;
}

/* 空内容提示 */
.tab-ads-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999999;
    font-size: 14px;
}

  /* 移动端Tab广告模块 */
  @media screen and (max-width: 768px) {
      .module-container > .tab-ads-nav,
      .tab-ads-nav {
          padding: 6px 0;
      }
      
      .tab-ads-item {
          padding: 6px 12px;
      }
      
      .tab-ads-item .tab-ads-name {
          font-size: 12px;
      }
    
    .tab-ads-pane {
        padding: 16px 0;
    }
    
    /* 移动端：1行5个 */
    .tab-ads-items-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        grid-auto-rows: auto;
    }
    
    .tab-ads-item-link {
        gap: 8px;
    }
    
    .tab-ads-item-icon {
        width: 64px;
        height: 64px;
    }
    
    .tab-ads-item-name {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ========== 滚动消息样式 ========== */
/* 滚动消息容器（在module-container中） */
.module-container > .scroll-message-container,
.scroll-message-container {
    width: 100%;
    margin: 0;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    border: 1px solid #e8e8e8;
    width: 100%;
}


.scroll-message-icon {
    flex-shrink: 0;
    color: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-message-icon svg {
    width: 16px;
    height: 16px;
}

.scroll-message-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.scroll-message-content {
    display: inline-flex;
    white-space: nowrap;
    gap: 40px;
    animation: scroll-message 30s linear infinite;
}

.scroll-message-item {
    display: inline-block;
    color: #333333;
    font-size: 13px;
    padding: 0 10px;
    flex-shrink: 0;
}

/* 滚动动画 */
@keyframes scroll-message {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 移动端滚动消息 */
@media screen and (max-width: 768px) {
    .module-container > .scroll-message-container,
    .scroll-message-container {
        padding: 10px 15px;
        margin: 0;
    }
    
    .scroll-message-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .scroll-message-item {
        font-size: 12px;
    }
    
    .scroll-message-content {
        gap: 30px;
    }
}

/* ========== 广告区域 ========== */
.hengfu {
    margin-bottom: 20px;
}

.hengfu a {
    display: block;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.hengfu img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    display: block;
}

.hengfu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.15);
}

.hengfu a:hover img {
    transform: scale(1.03);
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.hengfu a:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.hengfu a:active img {
    transform: scale(1.01);
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.15);
}

/* ========== 标签和友情链接 ========== */
#ff-site-hot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#ff-site-hot a {
    padding: 6px 14px;
    background-color: #f5f5f5;
    color: #333333;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    font-size: 13px;
    transition: all 0.2s ease;
}

#ff-site-hot a:hover {
    background-color: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.myhot {
    padding: 20px 0;
    max-width: 960px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 友情链接区域 - mytitle 紧邻 myhot 的情况 */
.mytitle + .myhot {
    margin-top: 0;
}

/* 不在 myvod-section 内的 mytitle（如友情链接） */
.vwbg > .mytitle:not(.myvod-section .mytitle) {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ========== mybbs 容器（搜索页等） ========== */
.mybbs {
    max-width: 960px;
    margin: 0 auto 30px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ========== 响应式设计 ========== */
@media screen and (max-width: 1024px) {
    .myvod {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    
    .maccms-cat-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .container,
    .breadcrumb,
    .myft,
    .mytitle1 {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* .vwbg 只作为背景容器，不设置左右padding，由子元素控制间距 */
    
    /* 确保 mytitle 在移动端也有正确的间距 */
    body > .mytitle,
    .vwbg > .mytitle {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .myvod-section {
        padding: 0 15px;
    }
    
    /* Tab 导航响应式 */
    .search-tabs {
        padding: 0 15px;
    }
    
    .tab-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    /* 搜索框在移动端优化 */
    .search-input-group {
        flex-wrap: wrap;
    }
    
    .search-submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    
    .myplay {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 友情链接在移动端 */
    .myhot {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .vwbg > .mytitle:first-child + .myhot,
    .vwbg > .myhot {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 友情链接的 mytitle 在移动端 */
    .vwbg > .mytitle:not(.myvod-section .mytitle) {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* mybbs 在移动端 */
    .mybbs {
        padding: 0 15px;
    }
    
    .myvod {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }
    
    /* 横向布局在移动端的响应式 */
    .myvod.layout-horizontal .uzimg {
        width: 120px;
        padding-top: 72px; /* 120 * 0.6 */
    }
    
    .myvod ul {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .maccms-cat-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }
    
    .mytitle1 {
        padding: 12px 15px;
    }
    
    #logo {
        height: 32px;
    }
    
    .nav-right {
        gap: 8px;
    }
    
    .nav-right li a {
        padding: 5px 10px;
        font-size: 11px;
        height: 28px;
        min-width: 50px;
    }
    
    .nav-right .bookmark-btn a,
    .nav-right .pianku-btn a,
    .nav-right #search-modal-btn {
        height: 28px;
        min-width: 50px;
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .bookmark-text {
        min-width: 28px;
    }
    
    .mytitle {
        font-size: 18px;
    }
    
    .art-title {
        font-size: 22px;
    }
    
    #floatingButtons {
        right: 15px !important;
        left: auto !important;
        bottom: 20px !important;
    }
    
    #backToTop,
    #goHome {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .search-modal {
        padding: 10px;
        align-items: flex-end;
    }
    
    .search-modal-content {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
        margin-bottom: 0;
    }
    
    .video-item h4 {
        font-size: 12px;
        height: 32px;
    }
    
    .vodtitle {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .myvod {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    
    .myvod ul {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    .maccms-cat-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    
    .maccms-tab-item {
        padding: 12px 16px;
    }
    
    .tab-name {
        font-size: 14px;
    }
    
    .tab-count {
        font-size: 11px;
    }
    
    .mytitle {
        font-size: 16px;
    }
    
    .mypage {
        padding: 0 15px;
    }
    
    .mypage-nav {
        gap: 15px;
    }
    
    .mypage .pagination {
        gap: 6px;
    }
    
    .mypage .pagination .page-link {
        padding: 8px 14px;
        font-size: 13px;
        min-width: 40px;
    }
    
    .mypage .pagination .page-link svg {
        width: 12px;
        height: 12px;
    }
    
    .mypage-text {
        font-size: 13px;
    }
    
    .mypage-jump {
        padding: 6px;
        gap: 6px;
    }
    
    .page-input {
        width: 60px;
        height: 32px;
        font-size: 13px;
    }
    
    .page-jump-btn {
        height: 32px;
        padding: 0 16px;
        font-size: 13px;
    }
    
    .art-title {
        font-size: 20px;
    }
    
    .art-content {
        font-size: 15px;
    }
    
    .video-item h4 {
        font-size: 12px;
        height: 32px;
    }
    
    .vodtitle {
        font-size: 11px;
    }
}

/* ========== 弹窗广告样式 ========== */
/* 说明：用于首页弹窗公告/广告的显示 */

/* 弹窗背景遮罩层 */
.bodybg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    cursor: pointer;
}

/* 弹窗容器 */
.popup_box {
    position: fixed;
    z-index: 10000;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    cursor: default;
    /* 响应式居中 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 动画 */
    opacity: 0;
    animation: popupFadeIn 0.3s ease-out forwards;
    /* 响应式宽度和高度 */
    max-width: 600px;
    max-height: 90vh;
    width: auto;
    height: auto;
}

/* 弹窗淡入动画 */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 弹窗标题栏 - 移除，不再使用 */
.popup_tit {
    display: none;
}

/* 关闭按钮 - 直接显示在广告上层 */
.closepop {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10001;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.closepop:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.closepop:active {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(0.95);
}

/* 弹窗内容区 - 移除内边距 */
.popup_cont {
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup_cont img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.popup_cont a {
    display: block;
    transition: transform 0.2s ease;
}

.popup_cont a:hover {
    transform: scale(1.02);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .popup_box {
        max-width: 95vw;
        max-height: 90vh;
        padding: 0;
        margin: 0;
    }
    
    .popup_cont {
        max-height: 90vh;
        max-width: 100%;
    }
    
    .popup_cont img {
        max-width: 100%;
        max-height: 90vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .closepop {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 8px;
        right: 8px;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 10002;
    }
    
    .closepop:hover {
        background-color: rgba(0, 0, 0, 0.9);
    }
}

/* ========== 分享复制弹窗样式 ========== */
.share-copy-modal-content {
    padding: 20px;
}

.share-copy-url-section {
    margin-bottom: 24px;
}

.share-copy-url-section label {
    display: block;
    font-size: 14px;
    color: #666666;
    margin-bottom: 8px;
}

.share-copy-url-display {
    background-color: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    color: #333333;
    word-break: break-all;
    margin-bottom: 12px;
}

.share-copy-btn {
    width: 100%;
    padding: 12px;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-copy-btn:hover {
    background-color: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

.share-copy-btn:active {
    transform: translateY(0);
}

.share-copy-domains-section {
    border-top: 1px solid #e8e8e8;
    padding-top: 20px;
}

.share-copy-domain-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
    line-height: 1.6;
}

.share-copy-domain-line:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.share-copy-domain-text {
    color: #666666;
    white-space: nowrap;
}

.share-copy-domain-url {
    color: #0066cc;
    font-weight: 600;
    word-break: break-all;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    background-color: #f0f7ff;
    border-radius: 4px;
    display: inline-block;
}

.share-copy-domain-url:hover {
    color: #0052a3;
    background-color: #e6f2ff;
    text-decoration: none;
}

.share-copy-success-message {
    margin-top: 16px;
    padding: 12px;
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 6px;
    color: #2e7d32;
    font-size: 14px;
    text-align: center;
}

/* ========== 公告弹窗样式（简约小巧设计） ========== */
.announcement-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 16px;
    flex-shrink: 0;
    min-height: 48px;
}

.announcement-header-center {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.announcement-header-center h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.announcement-icon {
    color: #ff6600;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.announcement-modal-header .pianku-modal-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 4px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #666666;
    transition: all 0.2s ease;
}

.announcement-modal-header .pianku-modal-close:hover {
    color: #333333;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.announcement-content {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* 第一部分：网址信息（每行一个网址） */
.announcement-domain-line {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.announcement-domain-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.announcement-domain-text {
    color: #666666;
    white-space: nowrap;
    font-weight: 500;
}

.announcement-domain-url {
    color: #0066cc;
    font-weight: 600;
    word-break: break-all;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    background-color: #f0f7ff;
    border-radius: 4px;
    display: inline-block;
}

.announcement-domain-url:hover {
    color: #0052a3;
    background-color: #e6f2ff;
    text-decoration: none;
}

/* 第二部分：文字说明（左对齐） */
.announcement-text {
    margin-bottom: 20px;
    text-align: left;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0066cc;
}

.announcement-text p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #333333;
    line-height: 1.8;
    text-align: left;
}

.announcement-text p:last-child {
    margin-bottom: 0;
}

/* 第三部分：按钮（左右分布） */
.announcement-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.announcement-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.announcement-btn-left {
    background-color: #0066cc;
    color: #ffffff;
}

.announcement-btn-left:hover {
    background-color: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
}

.announcement-btn-right {
    background-color: #ff6600;
    color: #ffffff;
}

.announcement-btn-right:hover {
    background-color: #e55a00;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 102, 0, 0.3);
}

.announcement-btn:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .share-copy-modal-content {
        padding: 16px;
    }
    
    .share-copy-domain-line {
        font-size: 12px;
        gap: 3px 6px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .share-copy-domain-line:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .share-copy-domain-url {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .announcement-modal-header {
        padding: 10px 12px;
        min-height: 44px;
    }
    
    .announcement-header-center {
        gap: 4px;
    }
    
    .announcement-header-center h3 {
        font-size: 14px;
    }
    
    .announcement-header-center .announcement-icon {
        width: 16px;
        height: 16px;
    }
    
    .announcement-modal-header .pianku-modal-close {
        width: 24px;
        height: 24px;
        padding: 3px;
        right: 8px;
    }
    
    .announcement-content {
        padding: 12px;
    }
    
    .announcement-domain-line {
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    
    .announcement-domain-row {
        font-size: 13px;
        gap: 6px;
    }
    
    .announcement-domain-url {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .announcement-text {
        padding: 12px;
    }
    
    .announcement-text p {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .announcement-text {
        margin-bottom: 12px;
    }
    
    .announcement-text p {
        font-size: 12px;
    }
    
    .announcement-buttons {
        gap: 8px;
    }
    
    .announcement-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ========== MacPlayer 播放器高度设置 ========== */
/* 说明：MacPlayer 的高度可以通过以下方式设置：
   1. Apple CMS 后台 → 系统设置 → 视频播放器设置
   2. 通过 CSS 样式控制（如下）*/

/* 播放器容器样式 */
.module-container iframe,
.module-container embed,
.module-container video,
.module-container .MacPlayer,
.module-container [class*="player"],
.module-container [id*="player"] {
    width: 100%;
    max-width: 100%;
    display: block;
}

/* PC端播放器高度（默认16:9比例） */
.module-container iframe,
.module-container embed {
    height: 540px; /* 960px * 0.5625 = 540px (16:9) */
    min-height: 400px;
}

/* 移动端播放器高度 */
@media screen and (max-width: 768px) {
    .module-container iframe,
    .module-container embed {
        height: 210px; /* 移动端较小的高度，保持16:9比例 */
        min-height: 200px;
    }
}

/* 如果播放器容器有特定的类名或ID，可以使用以下选择器 */
/* 例如：.MacPlayer, #MacPlayer, .mac-player 等 */
.MacPlayer,
#MacPlayer,
.mac-player {
    width: 100%;
    height: 540px;
}

@media screen and (max-width: 768px) {
    .MacPlayer,
    #MacPlayer,
    .mac-player {
        height: 210px;
    }
}

/* ========== 播放页分享复制功能样式 ========== */
.share-copy-container {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 0;
}

.share-copy-link {
    display: inline-block;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.share-copy-link:hover {
    color: #0066cc;
    background-color: #f5f5f5;
}

.share-copy-link:active {
    background-color: #e8e8e8;
}

.share-url-display {
    display: block;
    margin-top: 8px;
    color: #666666;
    font-size: 12px;
    word-break: break-all;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .share-copy-container {
        padding: 16px;
        margin-top: 0;
    }
    
    .share-copy-link {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .share-url-display {
        font-size: 11px;
        padding: 6px 10px;
        margin-top: 6px;
    }
}

/* ========== 弹窗广告样式 ========== */
.popup-ad-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-ad-modal.show {
    display: flex !important;
    opacity: 1;
}

.popup-ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.popup-ad-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 280px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-ad-modal.show .popup-ad-content {
    transform: scale(1);
}

.popup-ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
}

.popup-ad-close:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

.popup-ad-close svg {
    width: 18px;
    height: 18px;
}

.popup-ad-body {
    padding: 0;
    overflow: auto;
    max-height: calc(90vh - 20px);
}

.popup-ad-body img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.popup-ad-body video {
    width: 100%;
    height: auto;
    display: block;
}

.popup-ad-body a {
    display: block;
    text-decoration: none;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .popup-ad-modal {
        padding: 10px;
    }
    
    .popup-ad-content {
        max-width: 260px;
        max-height: calc(100vh - 20px);
    }
    
    .popup-ad-close {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
    }
    
    .popup-ad-close svg {
        width: 16px;
        height: 16px;
    }
}

/* ========== 收藏按钮文字动画样式 ========== */
.bookmark-text {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: auto;
    min-width: 32px;
    min-height: 14px;
    height: 14px;
    line-height: 1.2;
    overflow: visible;
}

.bookmark-word {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    opacity: 0;
    animation: bookmark-flash 3s infinite;
}

.bookmark-word-1 {
    animation-delay: 0s;
}

.bookmark-word-2 {
    animation-delay: 1.5s;
}

/* 动态交替显示动画 - 像GIF一样循环 */
@keyframes bookmark-flash {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(5px);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
    40% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-5px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(5px);
    }
}

/* ========== 片库弹窗样式 ========== */
.pianku-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

.pianku-modal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 确保弹窗内容垂直居中 */
.pianku-modal.show .pianku-modal-content {
    margin-top: auto;
    margin-bottom: auto;
}

.pianku-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.pianku-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    margin: auto;
    transform: translateY(0);
}

/* 公告弹窗更小巧 */
#announcement-modal .pianku-modal-content {
    max-width: 480px;
}

.pianku-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.pianku-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.pianku-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pianku-modal-close:hover {
    background-color: #f5f5f5;
    color: #333333;
}

.pianku-modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 片库TAB导航 */
.pianku-tab-nav {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 2px solid #e8e8e8;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    flex-shrink: 0;
    background-color: #fafafa;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.pianku-tab-nav::-webkit-scrollbar {
    height: 3px;
}

.pianku-tab-nav::-webkit-scrollbar-thumb {
    background-color: #d0d0d0;
    border-radius: 2px;
}

.pianku-tab-item {
    flex-shrink: 0;
    padding: 10px 16px;
    cursor: pointer;
    position: relative;
    background-color: transparent;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 6px 6px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.pianku-tab-item:hover {
    background-color: #f0f0f0;
}

.pianku-tab-item.pianku-tab-active {
    background-color: #ffffff;
    border-bottom-color: #0066cc;
}

.pianku-tab-item .tab-name {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    white-space: nowrap;
}

.pianku-tab-item.pianku-tab-active .tab-name {
    color: #0066cc;
    font-weight: 600;
}

.pianku-tab-item .tab-count {
    font-size: 11px;
    color: #999999;
}

.pianku-tab-item.pianku-tab-active .tab-count {
    color: #0066cc;
}

/* 片库TAB内容 */
.pianku-tab-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.pianku-tab-pane {
    display: none;
    padding: 20px;
}

.pianku-tab-pane.pianku-tab-active {
    display: block;
}

/* 片库分类列表 */
.pianku-cat-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pianku-cat-list li {
    margin: 0;
}

.pianku-cat-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 6px;
}

.pianku-cat-list a:hover {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

.pianku-cat-list .cat-name {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    text-align: center;
}

.pianku-cat-list a:hover .cat-name {
    color: #ffffff;
}

.pianku-cat-list .cat-count {
    font-size: 11px;
    color: #999999;
}

.pianku-cat-list a:hover .cat-count {
    color: rgba(255, 255, 255, 0.9);
}

/* 移动端片库弹窗 */
@media screen and (max-width: 768px) {
    .pianku-modal {
        padding: 10px;
        align-items: flex-end;
    }
    
    .pianku-modal-content {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
        margin-bottom: 0;
    }
    
    /* 公告弹窗移动端更小巧 */
    #announcement-modal .pianku-modal-content {
        max-width: 100%;
    }
    
    .pianku-modal-header {
        padding: 12px 16px;
    }
    
    .pianku-modal-close {
        width: 32px;
        height: 32px;
        padding: 6px;
        flex-shrink: 0;
    }
    
    .pianku-tab-nav {
        padding: 12px 16px;
    }
    
    .pianku-tab-item {
        padding: 8px 12px;
        min-width: 70px;
    }
    
    .pianku-tab-item .tab-name {
        font-size: 13px;
    }
    
    .pianku-tab-item .tab-count {
        font-size: 10px;
    }
    
    .pianku-tab-pane {
        padding: 16px;
    }
    
    .pianku-cat-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .pianku-cat-list a {
        padding: 10px;
    }
    
    .pianku-cat-list .cat-name {
        font-size: 13px;
    }
}
