/* 基础布局样式 */
.wp {margin: 0 auto; width: 1400px;}
.header-a {margin-bottom: 25px;height: 84px;}
.ct2 .mn {float: left; width: 920px; margin-bottom: 1em;}
.ct2 .sd {float: right; width: 460px;}
.ct2 .sd {position:unset;top: 75px;}
.huodong {font-size: 20px;font-weight: 600;margin-bottom: 20px;display: flex;align-items: flex-end;justify-content: space-between;}
.huodong a{color:#494B4D;}
.huodong a:hover {color:#0080c8;}
.huodong span{float:right; font-size: 12px; font-weight: 500;}
.huodong span a{color:#aaaeb3; }
.huodong1 { background: #fff; border-radius: 12px;}
.xld .m { float: left; margin: 0; height: 180px;}
.xld .m a img { border-radius: 12px 0 0 12px;height: 180px;}
.slide-pic {width:920px; border-radius: 12px;}
.slide-pic .item-list li a {width:920px;}
.xld dt {padding: 18px 10px 5px 0;font-weight: 700;font-size: 16px;padding-left: 220px;}
.hdtime {display: none;}
#formSubmitCount {font-size:16px;color:red;}
#activityFormInfo {padding-left: 220px;}
.countdown {border-bottom: 0px dotted #d7d7d7; padding: 0 0 0px; padding-left: 20px; margin-top: 25px;}
.ds {padding: 6px 8px;background: #000000b5;border-radius: 6px;color: #fff;}
.ds i{padding-right:5px;}
.xld dd {margin-top: 10px;margin-bottom: 28px;}
.bmrk {margin-left: 57px;background: #0080c8;}
.ds a {color:#fff;}
.item-signin {float: left;padding: 40px;background: #fff; width: 60px; height: 30px; border-radius: 12px;margin-top: 20px;font-size: 18px;font-weight: 600;}
.item-grid {float: right;padding: 20px 10px;background: #fff; width: 280px; height: 70px; border-radius: 12px;margin-top: 20px;font-size: 18px;text-align: center;}
.item-grid ul {display: flex;justify-content: space-between;align-items: center;overflow: hidden}
.item-grid li {width: 100%;display: flex;align-items: center;border-right: 1px solid #f1f1f1}
.item-grid li:last-child {border: none}
.item-grid li a {width: 100%;height: 65px;display: inline-block;font-size: 12px;color: #797C80;}
.item-grid li a i {font-size: 15px}
.item-grid li a.noborder {border: none}
.item-grid .num {width: 100%;margin: 4px 0 4px;font-size: 20px;font-weight: 400;display: inline-block;overflow: hidden;color: #18191a}
.m30 {margin-top:30px;}
.ainfo {background: #fff;padding: 10px 15px;border-radius: 0 0 8px 8px;}
.cinfo {background: #fff;padding: 15px;border-radius: 0 0 8px 8px;}
.footer {width: 1400px !important;}
#ft {margin-top:0;}

/* 分类导航样式 */
.category-nav {
    margin-bottom: 20px;
    padding: 0 0 10px 0;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    padding: 8px 16px;
    border: 0px solid #e5e5e5;
    border-radius: 20px;
    background: #eeeeee;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-size: 14px;
    outline: none;
}

.category-btn:hover {
    background: #e9ecef;
}

.category-btn.active {
    background: #0080c8;
    color: white;
    border-color: #0080c8;
}

.sucai-image {
    position: relative;
    overflow: hidden;
}

.price-tag {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background: rgb(0 0 0 / 30%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px 0 0 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1;
    z-index: 2;
}

/* 加载状态样式 */
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    display: none;
}

#loading.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0080c8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 错误消息样式 */
.error-message {
    text-align: center;
    padding: 20px;
    color: #999;
    width: 100%;
}

/* 素材列表样式 */
.sucai-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    transition: opacity 0.3s ease;
}

.sucai-item {
    width: 264px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

.sucai-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 素材图片样式 */
.sucai-image {
    height: 160px;
    overflow: hidden;
}

.sucai-image a {
    text-decoration: none;
    color: #333;
    display: block;
    height: 100%;
}

.sucai-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.sucai-item:hover .sucai-image img {
    transform: scale(1.05);
}

/* 素材信息样式 */
.sucai-info {
    padding: 12px;
}

.sucai-title {
    font-weight: bold;
    margin-bottom: 8px;
    overflow: hidden;
}

.sucai-title a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sucai-title a:hover {
    color: #0080c8;
}

/* 素材元信息样式 */
.sucai-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; /* 重要：允许子元素收缩 */
}

.author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.author-name {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0; /* 重要：允许文本截断 */
}

.author-name a {
    text-decoration: none;
    color: #666;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-name a:hover {
    color: #0080c8;
}

.stats {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

.stats i {
    font-size: 14px;
}

.stats i.ri-heart-line {
    margin-left: 6px;
}

/* 课程列表样式 */
.course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.course-item {
    width: 330.5px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-image {
    height: 180px;
    overflow: hidden;
}

.course-image a {
    text-decoration: none;
    color: #333;
    display: block;
    height: 100%;
}

.course-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.course-item:hover .course-image img {
    transform: scale(1.05);
}

.course-info {
    padding: 12px;
}

.course-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.course-title a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-title a:hover {
    color: #0080c8;
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.course-author-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.course-author-info i {
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
}

.course-author-name {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.credit-info {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* 知识库列表样式 */
.container-box {
    padding: 0 0 20px 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.soft-linkitem {
    width: 398px;
    border-radius: 10px;
    padding: 22px 25px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 0 12px 24px;
}

.soft-linkitem:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.software-title {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
}

.software-title i {
    color: #4181d7;
    font-size: 18px;
    margin-right: 6px;
    font-weight: 500;
    padding-top: 2px;
    flex-shrink: 0;
}

.software-title .title-text a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.software-title .title-text a:hover {
    color: #4181d7;
}

.kdes {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hot-articles {
    margin-top: 10px;
    font-size: 14px;
    border-top: 1px dashed #eee;
    padding-top: 8px;
}

.hot-articles ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hot-articles li {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 28px;
    color: #555;
    padding-left: 16px;
}

.hot-articles li::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 100%;
    background-color: #4181D7;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.hot-articles a {
    color: #5e5b5b;
    text-decoration: none;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
    flex: 1;
}

.hot-articles a:hover {
    color: #1b57a6;
}

.hot-articles .date {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .soft-linkitem {
        width: calc(50% - 24px);
    }
    
    .sucai-item {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 992px) {
    .row {
        margin: 0 -10px;
    }
    
    .soft-linkitem {
        width: calc(50% - 20px);
        margin: 0 10px 20px;
        padding: 18px 20px;
    }
    
    .wp {width: 100%; padding: 0 15px;}
    .ct2 .mn, .ct2 .sd {width: 100%; float: none;}
}

@media (max-width: 768px) {
    .row {
        margin: 0 -8px;
        justify-content: center;
    }
    
    .soft-linkitem {
        width: calc(100% - 16px);
        max-width: 400px;
        margin: 0 8px 16px;
        padding: 16px 18px;
    }
    
    .software-title {
        font-size: 15px;
    }
    
    .kdes {
        font-size: 12px;
    }
    
    .hot-articles a {
        max-width: 180px;
    }
    
    .sucai-list {
        gap: 15px;
        justify-content: center;
    }
    
    .sucai-item {
        width: calc(50% - 15px);
        max-width: 264px;
    }
    
    .course-list {
        gap: 15px;
        justify-content: center;
    }
    
    .course-item {
        width: calc(50% - 15px);
        max-width: 330.5px;
    }
    
    .category-list {
        gap: 8px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .author-name {
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .sucai-item {
        width: 100%;
        max-width: 264px;
    }
    
    .course-item {
        width: 100%;
        max-width: 330.5px;
    }
    
    .category-list {
        justify-content: center;
    }
    
    .soft-linkitem {
        padding: 14px 16px;
    }
    
    .hot-articles a {
        max-width: 150px;
    }
    
    .author-name {
        max-width: 60px;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1200px) {
    .soft-linkitem {
        width: calc(33.333% - 24px);
    }
}

@media (min-width: 1400px) {
    .row {
        margin: 0 -15px;
    }
    
    .soft-linkitem {
        width: calc(33.333% - 28px);
        margin: 0 14px 28px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .soft-linkitem {
        background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }
    
    .software-title {
        color: #e2e8f0;
    }
    
    .software-title .title-text a {
        color: #e2e8f0;
    }
    
    .kdes {
        color: #a0aec0;
    }
    
    .hot-articles {
        border-top-color: #4a5568;
    }
    
    .hot-articles li {
        color: #cbd5e0;
    }
    
    .hot-articles a {
        color: #a0aec0;
    }
    
    .hot-articles .date {
        color: #718096;
    }
    
    .sucai-item, .course-item {
        background: #2d3748;
    }
    
    .sucai-title a, .course-title a {
        color: #e2e8f0;
    }
    
    .author-name a, .course-author-info {
        color: #a0aec0;
    }
}