/* =======================
   文档中心样式
======================= */

/* 容器整体 */
.dc-categories,
.dc-search,
.dc-list,
.dc-pagination {
    margin-bottom: 20px;
}
.dc-item{
    padding: 20px;
}
.dc-list.columns-2 .dc-item{
    width:calc(50% - 20px)!important;
}
.dc-list.columns-3 .dc-item{
    width:calc(33.333% - 20px)!important;
}
.dc-list.columns-4 .dc-item{
    width:calc(25% - 20px)!important;
}
.dc-list.columns-5 .dc-item{
    width:calc(20% - 20px)!important;
}
/* 搜索框 */
.dc-search {
    display: flex;
    margin-bottom: 20px;
}
.dc-search input[type="text"]:focus{
    background: none!important;
    border:none!important;
    box-shadow: none!important;
}
.dc-search input[type="text"]{
    flex: 1;
    padding: 0px 5px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background: none;
    border:none;
}
.dc-search  {
    padding:5px;
    border-radius: 25px;
    border: 1px solid #e0e0e0; 
    background-color: #F4F7FE;
}

.dc-search input[type="text"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

.dc-search button {
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.dc-search button:hover {
    background-color: #2563eb;
}

/* 分类导航 */
.dc-categories {
    margin-bottom: 30px;
}

.dc-cat-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color:#2563eb;
}

.dc-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dc-cat-list li {
    margin-bottom: 8px;
}

.dc-cat-list li a {
    text-decoration: none;
    color: #4b5563;
    padding: 5px 10px;
    display: inline-block;
    border-radius: 5px;
    transition: all 0.3s;
}

.dc-cat-list li.active a,
.dc-cat-list li a:hover {
    /* background-color: #3b82f6; */
    /* color: #fff; */
    color: #2563eb;
}

/* 文档列表 */
.dc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width:100%;
}

.dc-item {
    background-color: #fff;
    border: 1px solid #ffffff;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px #2d56b620;
}
.dc-item .dc-item-footer{
    border-top:1px solid #cccccc70;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding-top:10px;

}
.dc-item-footer .date{
    font-size:14px;
    color:#333333;
}
.dc-item .dc-item-thumb{
    overflow: hidden;
    width:100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dc-item .dc-item-title{
    text-align: left;
}

.dc-item:hover {
    box-shadow: 0 4px 15px #2d56b620;
    border-color: #3b82f6;
}

.dc-item h4 {
    font-size: 24px;
    margin: 10px 0;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
}

.dc-item .dc-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.dc-download-btn {
    /* padding: 8px 15px;
    border: 1px solid #3b82f6;
    background-color: #3b82f6;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px; */
}
.dc-item .dc-download-btn{
    position: relative;
    padding:0 20px;
    height: 24px;
}
.dc-item .dc-download-btn img{
    margin:0 auto;
    position: absolute;
}
.dc-item:hover .dc-download-btn .btn,.dc-download-btn .btn-active{
        visibility: hidden!important;
}
.dc-item:hover .dc-download-btn .btn-active{
        visibility: visible!important;
}
/* .dc-download-btn:hover .btn-active{
    display: block!important;
}
.dc-download-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
} */

/* 分页 */
.dc-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
}

.dc-pagination a {
    display: inline-block;
    width:28px;
    height: 28px;
    font-size:12px;
    line-height: 28px;
    text-align: center;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s;
}

.dc-pagination a.active,
.dc-pagination a:hover {
    background-color: #e0e9fe;
    color: #2C69F4;
    border-color: #e0e9fe;
}

/* 响应式 */
@media (max-width: 1024px) {
    .dc-item {
        flex: 1 1 calc(50% - 20px);
    }
}
@media (max-width: 1440px) {
    .dc-item h4 {
        font-size: 20px;
    }
}
    
@media (max-width: 800px) {
    .dc-item {
        flex: 1 1 100%;
    }

    .dc-search {
        flex-direction: column;
    }

    .dc-search button {
        margin-left: 0;
        margin-top: 10px;
    }
}
.dc-download-btn,.dc-item{
    cursor: pointer;
}
/* Modal 样式 */
.dc-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
}

.dc-modal-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    margin: 80px auto;
    padding: 25px;
    border-radius: 8px;
    position: relative;
}

.dc-modal-close {
    position: absolute;
    right: 15px;
    top: 12px;
    cursor: pointer;
    font-size: 26px;
    line-height: 26px;
}

#dc-download-form input[type="text"],
#dc-download-form input[type="email"],
#dc-download-form textarea {
    background: none !important;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#dc-download-form input[type="text"]:focus,
#dc-download-form input[type="email"]:focus,
#dc-download-form textarea:focus {
    background: none !important;
    border: none !important;
    border-bottom: 1px solid #0073aa !important; /* 聚焦时底线颜色（可改） */
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}


