@charset "UTF-8";
/*
Theme Name: CeoDocs主题
Theme URI: www.CeoTheme.com
Author: CeoTheme.com
Author URI: https://www.CeoTheme.com
Description: CeoDocs主题是一款轻量级、且简洁大气、付费素材下载类型主题，定位于办公素材行业，当然也适用于各类素材网站，同时也适用于网页素材网页特效下载网站等。
Version: 3.9
Tags: 素材主题、下载主题、资源主题、办公主题，主题购买地址：www.ceotheme.com，总裁主题客服│总裁QQ：110300260
*/



/*==========自定义CSS请添加在以下，请勿修改以上信息！==========*/
.FX-preview-container {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    background: #f9f9f9;
}

.FX-custom-file-card-item.has-preview {
    cursor: pointer;
}

.FX-custom-file-card-item.has-preview:hover {
    background-color: #f0f0f0;
}
 .FX-custom-file-display-box {
        border: 1px solid #ccc !important;
        border-radius: 10px !important;
        padding: 20px 20px 0px 20px !important;
        margin: 20px 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        align-items: stretch !important;
        background-color: #fafafa !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .FX-custom-file-card-item {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 5px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        cursor: pointer !important;
        border-radius: 4px !important;
        transition: background-color 0.2s !important;
    }

    .FX-custom-file-card-item:hover {
        background-color: #f0f0f0 !important;
    }

    .FX-custom-file-card-item.has-preview {
        border: 1px solid #ddd !important;
    }

    .FX-custom-file-type-badge {
        width: 24px !important;
        height: 24px !important;
        border-radius: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white !important;
        font-weight: bold !important;
        font-size: 10px !important;
        flex-shrink: 0 !important;
        margin-top: 2px !important;
    }

    .FX-custom-file-type-badge.ppt-format {
        background-color: #D24726 !important;
    }

    .FX-custom-file-type-badge.doc-format {
        background-color: #2B5797 !important;
    }

    .FX-custom-file-type-badge.xls-format {
        background-color: #59a500 !important;
    }

    .FX-custom-file-type-badge.mp4-format {
        background-color: #0fa998 !important;
    }
    
    .FX-custom-file-type-badge.oth-format {
        background-color: #9b00a5 !important;
    }
    
    .FX-custom-file-title-text {
        color: #333 !important;
        font-size: 14px !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    /* Preview container */
    .FX-preview-container {
        margin-top: 20px !important;
        border: 2px dashed #ccc !important;
        border-radius: 10px !important;
        padding: 20px !important;
        background-color: #fafafa !important;
        display: none !important;
        text-align: center !important;
    }

    .FX-preview-container img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 5px !important;
    }

    /* Responsive adjustments */
    .FX-custom-file-display-box {
        justify-content: flex-start !important;
    }



    
    
/* 1. 图片顶部裁剪，适应右侧高度 */
.ceo-cover-container {
  height: 100%;
  overflow: hidden;
}
.ceo-cover {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  max-width: 100% !important;
  width: 100% !important;

  object-fit: cover !important;
  object-position: top !important;
  display: block;
}

/* 2. 图文两列高度对齐 */
.ceo-grid-ceosmls {
  display: flex;
  align-items: stretch;
}

/* 3. 标题：最多显示2行，省略号 */
.ceo-width-expand h2 a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 4px;
  max-height: calc(1.4em * 2); /* 限高两行 */
}


/* 4. 描述文字：最多显示2行，字体缩小 */
.ceo-width-expand .desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 4px 0;
}
.loop-7 ul .loop-7-box .right h2 {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 18px;
}
/* 5. 手机端优化：字体略缩小，保持一致高度 */
@media (max-width: 768px) {
  .ceo-width-expand h2 a {
    font-size: 15px;
  }
  .ceo-width-expand .desc {
    font-size: 12.5px;
  }
}

@media screen and (max-width: 900px) {
    .loop-7 ul .loop-7-box .left .thumb {
        width: 120px;
        height: 100px;
    }
	
}

/* 支持长图滚动的文件预览模态框样式 - 替换原有的CSS */
.FX-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

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

.FX-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    animation: modalZoom 0.3s ease;
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.FX-modal-image-container {
    position: relative;
    max-height: 100%;
    overflow: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: white;
}

/* 自定义滚动条样式 */
.FX-modal-image-container::-webkit-scrollbar {
    width: 8px;
}

.FX-modal-image-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.FX-modal-image-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.FX-modal-image-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

.FX-modal-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.FX-modal-image:hover {
    transform: scale(1.02);
}

.FX-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.2s ease;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.FX-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.FX-modal-info {
    position: absolute;
    bottom: -45px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 14px;
    opacity: 0.9;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    margin: 0 auto;
    width: fit-content;
}

.FX-modal-scroll-hint {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.FX-modal-content.has-scroll .FX-modal-scroll-hint {
    opacity: 1;
}

/* 加载指示器 */
.FX-modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    opacity: 0.8;
    display: none;
}

.FX-modal-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .FX-modal-overlay {
        padding: 10px;
    }
    
    .FX-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .FX-modal-close {
        top: -10px;
        right: -10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .FX-modal-info {
        bottom: -35px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .FX-modal-scroll-hint {
        bottom: -65px;
        font-size: 11px;
    }
}