/* 筛选容器 */
.filter-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 筛选行 */
.filter-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.filter-row:last-child {
    border-bottom: none;
}

/* 更多按钮 */
.more-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    margin-right: 15px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-btn:hover {
    background: #5d43ae;
    color: white;
}

.more-btn i {
    font-size: 14px;
}

/* 筛选模态框 */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s ease;
}

.filter-modal.active {
    display: block;
}

/* 模态框遮罩 */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* 模态框内容 */
.modal-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* 模态框头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e8e8e8;
    color: #333;
}

/* 模态框主体 */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 模态框选项容器 */
.modal-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

/* 模态框选项 */
.modal-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modal-option:hover {
    background: #e8e8e8;
    color: #333;
    transform: translateY(-2px);
}

.modal-option:active {
    transform: translateY(0);
}

/* 筛选标签 */
.filter-label {
    flex-shrink: 0;
    width: 40px;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    display: flex;
    align-items: center;
}

/* 筛选滚动区域 */
.filter-scroll {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

/* 筛选选项容器 */
.filter-options {
    display: flex;
    padding: 0px 2px 2px 0;
    min-width: min-content;
}

/* 筛选选项 */
.filter-option {
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 15px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-option:hover {
    background: #e8e8e8;
    color: #333;
}

.filter-option.active {
    background: #5d43ae;
    color: white;
}

.filter-option i {
    margin-right: 4px;
    font-size: 13px;
}

/* 重置按钮区域 */
.filter-reset {
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
}

.reset-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 20px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #5d43ae;
    color: white;
}

/* 结果头部 */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-info {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.result-count strong {
    color: #5d43ae;
    font-weight: bold;
}

.result-page {
    color: #999;
}

.result-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #5d43ae;
    color: white;
}

.nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 视频列表区域 */
.video-list-section {
    margin-bottom: 20px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.page-btn.active {
    background: #5d43ae;
    color: white;
}

/* 页面跳转容器 */
.page-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.jump-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.jump-input {
    width: 80px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.jump-input:focus {
    outline: none;
    border-color: #5d43ae;
    box-shadow: 0 0 0 3px rgba(93, 67, 174, 0.1);
}

/* 移除number类型输入框的上下箭头 */
.jump-input::-webkit-outer-spin-button,
.jump-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.jump-input[type=number] {
    -moz-appearance: textfield;
}

.jump-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    background: #5d43ae;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jump-btn:hover {
    background: #4a3590;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 67, 174, 0.3);
}

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

.jump-btn i {
    font-size: 16px;
}

/* ========== 公告模态框样式 ========== */
.announcement-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.announcement-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.announcement-modal {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 320px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.announcement-modal-overlay.active .announcement-modal {
    transform: scale(1);
}

.announcement-modal-header {
    background-color: #5d43ae;
    color: white;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 2px solid #4a3590;
    position: relative;
}

.announcement-modal-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.announcement-modal-title::before {
    content: "•";
    font-size: 1.2rem;
}

.announcement-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.announcement-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.announcement-modal-body {
    padding: 20px;
    color: #333;
}

.announcement-domain-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.announcement-domain-title {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.announcement-domain-value {
    font-size: 1.5rem;
    color: #5d43ae;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    background-color: #dad6e5;
    border-radius: 5px;
    border: 2px dashed #5d43ae;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.announcement-email-section {
    margin-bottom: 20px;
}

/* 公告标题行 */
.announcement-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #5d43ae;
    gap: 10px;
}

.announcement-section-title > span {
    flex-shrink: 0;
}

/* 公告导航按钮组 */
.announcement-nav-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.announcement-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #5d43ae 0%, #4a3590 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(93, 67, 174, 0.2);
}

.announcement-nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4a3590 0%, #3a2870 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(93, 67, 174, 0.3);
}

.announcement-nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.announcement-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.announcement-nav-btn i {
    font-size: 0.9rem;
    line-height: 1;
}

/* 公告计数器 */
.announcement-counter {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 4px;
}

#currentNoticeIndex {
    color: #5d43ae;
    font-weight: 700;
}

#totalNoticeCount {
    color: #888;
}

/* 公告内容区域 */
.announcement-section-content {
    font-size: 0.95rem;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    min-height: 100px;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* 加载提示 */
.announcement-loading {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 0.9rem;
}

/* 空公告样式 */
.announcement-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
}

.empty-notice-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.announcement-empty p {
    margin: 0;
    font-size: 1rem;
}

/* 公告项样式 */
.announcement-notice-item {
    animation: fadeInNotice 0.4s ease;
}

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

.announcement-notice-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.announcement-notice-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

/* 自定义滚动条 */
.announcement-notice-body::-webkit-scrollbar {
    width: 5px;
}

.announcement-notice-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.announcement-notice-body::-webkit-scrollbar-thumb {
    background: #5d43ae;
    border-radius: 3px;
}

.announcement-notice-body::-webkit-scrollbar-thumb:hover {
    background: #4a3590;
}

.announcement-notice-body p {
    margin-bottom: 10px;
}

.announcement-notice-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

.announcement-notice-body ul,
.announcement-notice-body ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.announcement-notice-body li {
    margin-bottom: 5px;
}

/* 公告链接按钮 */
.announcement-notice-link {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    margin-top: 15px;
}

.announcement-notice-link .announcement-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.announcement-app-section {
    background-color: #f0f8ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #d6e4ff;
}

.announcement-app-title {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.announcement-app-title::before {
    content: "📱";
}

.announcement-download-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
    margin-top: 8px;
}

.announcement-download-btn:hover {
    background-color: #45a049;
    color: white;
}

.announcement-accelerator-section {
    background-color: #fff8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ffe8cc;
}

.announcement-accelerator-title {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.announcement-accelerator-title::before {
    content: "🚀";
}

.announcement-accelerator-btn {
    background-color: #3498db;
}

.announcement-accelerator-btn:hover {
    background-color: #2980b9;
}

.announcement-tip-section {
    text-align: center;
    padding: 15px;
    margin-top: 15px;
    border-top: 1px dashed #ddd;
    color: #5d43ae;
    font-weight: 600;
    font-size: 0.95rem;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .filter-label {
        width: 50px;
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .filter-option {
        padding: 5px 12px;
        font-size: 13px;
    }
    
    .result-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .result-info {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        text-align: center;
    }
    
    .pagination {
        gap: 6px;
        padding: 15px 10px;
    }
    
    .page-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }

    .page-jump {
        padding: 12px;
        gap: 8px;
    }
    
    .jump-label {
        font-size: 13px;
    }
    
    .jump-input {
        width: 70px;
        height: 32px;
        font-size: 13px;
    }
    
    .jump-btn {
        height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }
    
    .jump-btn i {
        font-size: 14px;
    }

    .more-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .modal-header {
        padding: 14px 16px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .announcement-modal {
        width: 95%;
        max-width: 300px;
    }
    
    .announcement-modal-header {
        padding: 12px 15px;
    }
    
    .announcement-modal-title {
        font-size: 0.9rem;
    }
    
    .announcement-modal-title::before {
        font-size: 1rem;
    }
    
    .announcement-modal-body {
        padding: 15px;
    }
    
    .announcement-domain-value {
        font-size: 1.3rem;
    }
    
    .announcement-download-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* 公告导航按钮 - 移动端优化 */
    .announcement-section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .announcement-nav-buttons {
        width: 100%;
        justify-content: space-between;
        gap: 6px;
    }
    
    .announcement-nav-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
        flex: 1;
        max-width: 80px;
    }
    
    .announcement-nav-btn i {
        font-size: 0.8rem;
    }
    
    .announcement-counter {
        font-size: 0.75rem;
        padding: 0 2px;
    }
    
    .announcement-notice-title {
        font-size: 1rem;
    }
    
    .announcement-notice-body {
        font-size: 0.9rem;
        max-height: 250px;
    }
    
    .empty-notice-icon {
        font-size: 2.5rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .announcement-nav-btn {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
    
    .announcement-counter {
        font-size: 0.7rem;
    }
    
    .announcement-nav-btn span:not(.announcement-counter) {
        display: none;
    }
}