/* Spotlight 移动端组件样式 */
.spotlight-mobile-section {
    margin-bottom: 1.5rem;
    width: 100%;
    overflow: hidden;
}

/* 移动端标签栏 */
.spotlight-mobile-tabs {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: -1px !important; /* 负边距让标签页覆盖内容区域边框 */
}

.spotlight-mobile-tab-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.spotlight-mobile-tab-container::-webkit-scrollbar {
    display: none;
}

.spotlight-mobile-tab-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 0.25rem !important; /* 进一步减小左右内边距 */
    min-width: max-content;
}

.spotlight-mobile-tab-item {
    flex: 0 0 auto;
    list-style: none;
    margin-left: -8px !important; /* 负边距实现重叠效果 */
}

.spotlight-mobile-tab-item:first-child {
    margin-left: 0.5rem !important; /* 为第一个标签页增加左边距 */
}

.spotlight-mobile-tab {
    display: block;
    padding: 0.25rem 0.375rem !important;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px 10px 0px 0px !important;
    border-bottom: none !important;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700 !important;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
    position: relative !important;
    z-index: 2 !important; /* 提高z-index确保覆盖内容区域 */
    overflow: hidden !important;
    margin-bottom: 0 !important; /* 确保没有底部边距 */
}

.spotlight-mobile-tab:hover,
.spotlight-mobile-tab:focus {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    z-index: 2 !important;
    border-bottom: none !important; /* 悬停时也移除底部边框 */
}

.spotlight-mobile-tab-item.active .spotlight-mobile-tab {
    background: #007bff;
    border-color: #007bff;
    border-bottom: none !important;
    color: #ffffff;
    z-index: 3 !important;
    margin-bottom: 0 !important; /* 激活状态下也确保没有底部边距 */
}

.spotlight-mobile-content {
    position: relative;
    padding: 1.5rem 1rem;
    border-radius: 12px 12px 12px 12px !important;
    min-height: 280px;
    background: #ffffff;
    border-top: 1px solid #e9ecef !important; /* 恢复顶部边框，让激活标签页覆盖 */
    margin-top: 0 !important;
    z-index: 1 !important; /* 确保内容区域在标签页下方 */
}

/* 当有背景图时，添加遮罩层 */
.spotlight-mobile-content[style*="background-image"] {
    position: relative;
    color: #ffffff;
}

.spotlight-mobile-content[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    z-index: 1;
}

.spotlight-mobile-content[style*="background-image"] > * {
    position: relative;
    z-index: 2;
}

/* 移动端标题和描述 */
.spotlight-mobile-header {
    margin-bottom: 1.5rem;
}

.spotlight-mobile-title {
    color:#ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
    /* 移动端标题最多显示3行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-mobile-title a {
    color: inherit;
    text-decoration: none;
}

.spotlight-mobile-title a:hover {
    text-decoration: underline;
}

.spotlight-mobile-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6c757d;
    /* 移动端描述最多显示4行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-mobile-content[style*="background-image"] .spotlight-mobile-description {
    color: rgba(255, 255, 255, 0.9);
}

.spotlight-mobile-description a {
    color: inherit;
    text-decoration: none;
}

/* 移动端卡片容器 */
.spotlight-mobile-cards {
    position: relative;
}

/* 移动端卡片容器 */
.spotlight-mobile-cards-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-right: 0.5rem !important;
    /* 完全隐藏滚动条 */
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.spotlight-mobile-cards-container::-webkit-scrollbar {
    display: none !important;
}

/* 移动端卡片样式 - 按用户需求修改 */
.spotlight-mobile-card {
    display: flex !important;
    align-items: center !important;
    min-height: 64px !important;
    height: auto !important;
    padding: 12px 16px !important;
    background: rgba(236, 236, 236, 0.8) !important; /* 增加透明度：从 #ECECEC 改为 rgba(236, 236, 236, 0.8) */
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important; /* 添加背景模糊效果 */
    -webkit-backdrop-filter: blur(10px) !important; /* Safari 兼容性 */
}

.spotlight-mobile-card:hover {
    background: rgba(245, 245, 245, 0.9) !important; /* 增加透明度：从 #F5F5F5 改为 rgba(245, 245, 245, 0.9) */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important; /* 稍微增强阴影 */
    text-decoration: none !important;
    color: #333 !important;
    backdrop-filter: blur(15px) !important; /* 悬停时增强模糊效果 */
    -webkit-backdrop-filter: blur(15px) !important;
}

.spotlight-mobile-card-image {
    width: 60px !important; /* 从48px增大到60px */
    height: 60px !important; /* 从48px增大到60px */
    border-radius: 4px !important;
    object-fit: cover !important;
    margin-right: 12px !important; /* 稍微增加右边距 */
    flex-shrink: 0 !important;
}

.spotlight-mobile-card-content {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.spotlight-mobile-card-title {
    font-size: 15px !important; /* 从16px减小到15px */
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 0 4px 0 !important;
    color: #2C2C2C !important;
    /* 单行截断 */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.spotlight-mobile-card-meta {
    font-size: 11px !important; /* 从13px减小到11px */
    font-weight: 400 !important;
    color: #777777 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    /* 最多2行截断 */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .spotlight-mobile-content {
        padding: 1rem 0.75rem;
        min-height: 250px;
    }
    
    .spotlight-mobile-cards-container {
        max-height: 180px;
    }
    
    .spotlight-mobile-card {
        padding: 0.625rem;
    }
    
    .spotlight-mobile-card-image {
        width: 56px; /* 超小屏幕下稍微小一些 */
        height: 56px;
        margin-right: 0.75rem;
    }
    
    .spotlight-mobile-card-title {
        font-size: 14px; /* 超小屏幕下标题字体 */
    }
    
    .spotlight-mobile-card-meta {
        font-size: 10px; /* 超小屏幕下文案字体更小 */
    }
}

/* 滚动条样式 */
.spotlight-mobile-cards-container::-webkit-scrollbar {
    width: 4px;
}

.spotlight-mobile-cards-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.spotlight-mobile-cards-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.spotlight-mobile-cards-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .spotlight-mobile-content {
        background: #1a1a1a;
        border-color: #333;
        color: #ffffff;
    }
    
    .spotlight-mobile-tab {
        background: #2d2d2d;
        border-color: #404040;
        color: #cccccc;
    }
    
    .spotlight-mobile-tab:hover {
        background: #404040;
        color: #ffffff;
    }
    
    .spotlight-mobile-tab-item.active .spotlight-mobile-tab {
        background: #007bff;
        border-color: #007bff;
        color: #ffffff;
    }
    
    .spotlight-mobile-description {
        color: #cccccc;
    }
    
    .spotlight-mobile-card {
        background: rgba(45, 45, 45, 0.95);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .spotlight-mobile-card:hover {
        background: rgba(64, 64, 64, 1);
        color: #ffffff;
    }
    
    .spotlight-mobile-card-meta {
        color: #cccccc;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .spotlight-mobile-content {
        padding: 1rem 0.75rem;
        min-height: 250px;
    }
    
    .spotlight-mobile-cards-container {
        max-height: 180px;
    }
    
    .spotlight-mobile-card {
        padding: 0.625rem;
    }
    
    .spotlight-mobile-card-image {
        width: 50px;
        height: 50px;
        margin-right: 0.625rem;
    }
    
   
    
    .spotlight-mobile-card-meta {
        font-size: 0.6875rem;
    }
}

/* 移动端More按钮样式 */
.spotlight-mobile-more-tab {
    flex: 0 0 auto;
    list-style: none;
    margin-left: -8px !important; /* 与其他标签页保持一致的重叠效果 */
}

.spotlight-mobile-more-btn {
    display: block;
    padding: 0.25rem 0.375rem !important;
    color: #6c757d !important; /* 设置为灰色文字 */
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700 !important;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
    position: relative !important;
    z-index: 2 !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
}

.spotlight-mobile-more-btn:hover,
.spotlight-mobile-more-btn:focus {
    background: transparent !important; /* 悬停时也保持透明背景 */
    color: #495057 !important; /* 悬停时文字颜色稍深 */
    text-decoration: none;
    z-index: 3 !important;
}

.spotlight-mobile-more-btn span {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .spotlight-mobile-more-btn {
        background: transparent !important; /* 深色模式下也保持透明 */
        border: none !important;
        color: #adb5bd !important; /* 深色模式下的灰色文字 */
    }
    
    .spotlight-mobile-more-btn:hover {
        background: transparent !important;
        border: none !important;
        color: #dee2e6 !important; /* 深色模式下悬停时的文字颜色 */
    }
}
