/* 全局样式 */
html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* 修复头部间隙 */
body {
    overflow-x: hidden;
}

/* 头部样式 */
.layui-header {
    background: linear-gradient(135deg, #1E9FFF 0%, #00BFFF 100%);
    color: white;
    height: 60px;
    line-height: 60px;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    z-index: 999;
}

.layui-header-title {
    float: left;
}

.layui-header-title .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.layui-header-title .logo:hover {
    opacity: 0.8;
}

.layui-nav-main {
    float: left;
    margin-left: 50px;
}

.layui-nav-main .layui-nav-item {
    margin: 0 10px;
}

.layui-nav-main .layui-nav-item a {
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.layui-nav-main .layui-nav-item a:hover {
    opacity: 0.8;
}

.layui-header-user {
    float: right;
}

.layui-header-user .layui-btn {
    transition: all 0.3s ease;
}

.layui-header-user .layui-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 主容器样式 */
main {
    margin-top: 80px;
}

.layui-container {
    margin-bottom: 20px;
}

/* 卡片样式 */
.layui-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: white;
    margin-bottom: 20px;
}

.layui-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.layui-card-header {
    background: white;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.layui-card-body {
    padding: 20px;
}

/* 轮播图样式 */
.layui-carousel {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.layui-carousel>[carousel-item]>div {
    text-align: center;
    line-height: 400px;
    color: white;
    font-size: 24px;
    background: linear-gradient(135deg, #1E9FFF 0%, #00BFFF 100%);
}

/* 文章信息样式 */
.layui-article-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 8px;
    border-left: 4px solid #1E9FFF;
}

.layui-article-info span {
    margin-right: 20px;
    color: #666;
}

.layui-article-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.layui-article-content h2 {
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1E9FFF;
    color: #1E9FFF;
    font-size: 24px;
}

.layui-article-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.layui-article-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.layui-article-content ul {
    margin-bottom: 15px;
    padding-left: 30px;
}

.layui-article-content li {
    margin-bottom: 8px;
}

.layui-article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e6e6e6;
}

/* 资源信息样式 */
.layui-resource-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 8px;
    border-left: 4px solid #1E9FFF;
}

.layui-resource-info span {
    margin-right: 20px;
    color: #666;
}

.layui-resource-description {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.layui-resource-description h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #1E9FFF;
    font-size: 20px;
}

.layui-resource-description h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.layui-resource-description p {
    margin-bottom: 15px;
    text-align: justify;
}

.layui-resource-description ul {
    margin-bottom: 15px;
    padding-left: 30px;
}

.layui-resource-description li {
    margin-bottom: 8px;
}

.layui-resource-download-section {
    margin-top: 30px;
}

.layui-resource-download-section h3 {
    margin-bottom: 20px;
    color: #1E9FFF;
    font-size: 20px;
}

/* 会员样式 */
.layui-member-price {
    margin: 20px 0;
}

.layui-member-price-number {
    font-size: 36px;
    font-weight: bold;
    color: #1E9FFF;
}

.layui-member-price-unit {
    font-size: 18px;
    color: #666;
}

.layui-member-features {
    margin: 20px 0;
}

.layui-member-features li {
    margin-bottom: 10px;
    list-style: none;
}

.layui-member-features i {
    color: #5FB878;
    margin-right: 10px;
}

/* 关于我们样式 */
.layui-about-contact li {
    margin-bottom: 10px;
    list-style: none;
}

.layui-about-contact i {
    color: #1E9FFF;
    margin-right: 10px;
}

.layui-about-social li {
    margin-bottom: 10px;
    list-style: none;
}

.layui-about-social i {
    color: #FF5722;
    margin-right: 10px;
}

/* 专题样式 */
.layui-special-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 8px;
    border-left: 4px solid #1E9FFF;
}

.layui-special-info span {
    margin-right: 20px;
    color: #666;
}

.layui-special-description {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.layui-special-description h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #1E9FFF;
    font-size: 20px;
}

.layui-special-description h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.layui-special-description p {
    margin-bottom: 15px;
    text-align: justify;
}

.layui-special-description ul {
    margin-bottom: 15px;
    padding-left: 30px;
}

.layui-special-description li {
    margin-bottom: 8px;
}

/* 表单样式 */
.layui-form-item {
    margin-bottom: 20px;
}

.layui-form-label {
    font-weight: bold;
    color: #333;
}

.layui-input,
.layui-textarea,
.layui-select {
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #e6e6e6;
}

.layui-input:focus,
.layui-textarea:focus,
.layui-select:focus {
    border-color: #1E9FFF;
    box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.1);
}

.layui-btn {
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.layui-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.layui-btn-primary:hover {
    border-color: #1E9FFF;
    color: #1E9FFF;
}

.layui-btn-normal {
    background: linear-gradient(135deg, #1E9FFF 0%, #00BFFF 100%);
    border: none;
}

.layui-btn-normal:hover {
    opacity: 0.9;
}

/* 底部样式 */
.layui-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid #e6e6e6;
}

.layui-footer p {
    margin: 0;
    opacity: 0.8;
}

/* 头像样式 */
.layui-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E9FFF 0%, #00BFFF 100%);
    color: white;
    font-size: 40px;
}

/* 文章计数样式 */
.layui-article-count {
    margin-top: 10px;
    color: #666;
}

.layui-article-count span {
    margin-right: 20px;
}

/* 时间线样式 */
.layui-timeline-item {
    padding-left: 30px;
}

.layui-timeline-axis {
    background-color: #1E9FFF;
    color: white;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    left: 0;
}

.layui-timeline-content {
    margin-left: 20px;
}

/* 垂直时间线样式 */
.layui-vertical-timeline .layui-timeline-axis {
    background-color: #1E9FFF;
    color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
}

/* 标签样式 */
.layui-badge {
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: bold;
}

/* 表格样式 */
.layui-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.layui-table th {
    background-color: #f5f7fa;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.layui-table tr:hover {
    background-color: #f5f7fa;
}

/* 登录注册表单样式 */
.login-container,
.register-container,
.forgot-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.login-title,
.register-title,
.forgot-title {
    text-align: center;
    margin-bottom: 30px;
    color: #1E9FFF;
    font-size: 28px;
}

.login-footer,
.register-footer,
.forgot-footer {
    text-align: center;
    margin-top: 20px;
}

/* 会员中心样式 */
.layui-nav-tree {
    background-color: white;
}

.layui-nav-tree .layui-nav-item a {
    color: #333;
    transition: all 0.3s ease;
    background-color: white;
}

.layui-nav-tree .layui-nav-item a:hover {
    background-color: #f5f7fa;
    color: #1E9FFF;
}

.layui-nav-tree .layui-nav-item.layui-this>a {
    background-color: #1E9FFF;
    color: white;
}

.layui-nav-tree .layui-nav-item.layui-this .layui-nav-child a {
    background-color: white;
    color: #333;
}

.layui-nav-tree .layui-nav-child {
    background-color: white;
}

.layui-nav-tree .layui-nav-child a {
    color: #333;
    background-color: white;
}

.layui-nav-tree .layui-nav-child a:hover {
    background-color: #f5f7fa;
    color: #1E9FFF;
}

.layui-nav-tree .layui-nav-child dd.layui-this a {
    background-color: #1E9FFF;
    color: white;
}

/* 进度条样式 */
.layui-progress {
    margin-bottom: 20px;
}

.layui-progress-bar {
    background: linear-gradient(135deg, #1E9FFF 0%, #00BFFF 100%);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* 延迟动画 */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.delay-6 {
    animation-delay: 0.6s;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .layui-nav-main {
        display: none;
    }

    .layui-header {
        height: auto;
        line-height: normal;
        padding: 10px 0;
    }

    .layui-header-title {
        float: none;
        text-align: center;
        margin-bottom: 10px;
    }

    .layui-header-user {
        float: none;
        text-align: center;
    }

    .layui-carousel>[carousel-item]>div {
        line-height: 200px;
        font-size: 18px;
    }

    .layui-col-md3,
    .layui-col-md4,
    .layui-col-md6,
    .layui-col-md8,
    .layui-col-md9 {
        width: 100%;
    }

    .login-container,
    .register-container,
    .forgot-container {
        width: 90%;
        margin: 20px auto;
        padding: 20px;
    }

    .login-title,
    .register-title,
    .forgot-title {
        font-size: 24px;
    }

    .layui-card-header {
        font-size: 16px;
        padding: 12px 15px;
    }

    .layui-card-body {
        padding: 15px;
    }
}

/* 辅助类 */
.layui-text-center {
    text-align: center;
}

.layui-text-left {
    text-align: left;
}

.layui-text-right {
    text-align: right;
}

.layui-mt20 {
    margin-top: 20px;
}

.layui-mb20 {
    margin-bottom: 20px;
}

.layui-p20 {
    padding: 20px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.layui-nav .layui-this:after,
.layui-nav-bar {
    background-color: #19a4ff;
}






/* 搜索框样式 */
.search-container {
    background-color: #ffffff;
    padding: 22px;
    margin-bottom: 10px;
    margin-top: 62px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    gap: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    height: 48px;
    font-size: 16px;
    border: 1px solid #e6e6e6;
    border-right: none;
    border-radius: 4px 0 0 4px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.search-input:focus {
    background-color: #ffffff;
    border-color: #1E9FFF;
    box-shadow: inset 0 0 0 1px #1E9FFF;
}

.search-btn {
    height: 48px;
    font-size: 16px;
    border-radius: 0 4px 4px 0;
    width: 100px;
    border: none;
    background-color: #1E9FFF;
    color: #ffffff;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #40a9ff;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-container {
        padding: 20px 0;
        box-shadow: none;
    }

    .search-input-wrapper {
        flex-direction: column;
        box-shadow: none;
    }

    .search-input {
        border-right: 1px solid #e6e6e6;
        border-radius: 4px;
        margin-top: 50px;
        margin-bottom: 10px;
    }

    .search-btn {
        width: 100%;
        border-radius: 4px;
    }
}

.layui-footer a {
    color: #ede7e7;
    text-decoration: none;
}

/* 自定义样式 */
.article-list {
    margin-bottom: 20px;
}

.article-card {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.article-title a {
    color: #333;
    text-decoration: none;
}

.article-title a:hover {
    color: #1E9FFF;
}

.article-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.article-meta span {
    margin-right: 15px;
}

.article-author::before {
    content: '作者：';
    color: #999;
}

.article-time::before {
    content: '发布时间：';
    color: #999;
}

.article-views {
    color: #999;
}

.article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-right {
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-card .layui-row {
        flex-direction: column;
    }

    .article-card .layui-col-md8,
    .article-card .layui-col-md4 {
        width: 100%;
    }

    .article-card .layui-col-md4 {
        margin-top: 15px;
        text-align: left;
    }

    .layui-row.layui-mb20 {
        flex-direction: column;
    }

    .layui-row.layui-mb20 .layui-col-md6 {
        width: 100%;
    }

    .layui-row.layui-mb20 .layui-col-md6.text-right {
        margin-top: 10px;
        text-align: left;
    }
}

/* 自定义样式 */
.resource-list {
    margin-bottom: 20px;
}

.resource-card {
    height: 100%;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resource-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.resource-title a {
    color: #333;
    text-decoration: none;
}

.resource-title a:hover {
    color: #1E9FFF;
}

.resource-meta {
    margin-bottom: 15px;
}

.resource-info {
    margin-bottom: 15px;
}

.resource-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.resource-info i {
    color: #1E9FFF;
    margin-right: 5px;
}

.resource-actions {
    margin-top: auto;
}

.resource-actions .layui-btn {
    margin-bottom: 5px;
}

.text-right {
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .layui-row.layui-mb20 {
        flex-direction: column;
    }

    .layui-row.layui-mb20 .layui-col-md6 {
        width: 100%;
    }

    .layui-row.layui-mb20 .layui-col-md6.text-right {
        margin-top: 10px;
        text-align: left;
    }
}
.layui-resource-description img {
    max-width: 100%; /* 图片宽度不超过容器宽度 */
    max-height: 100%; /* 图片高度不超过容器高度 */
    display: block; /* 去除图片默认的行内空白 */
    margin: 0 auto; /* 图片水平居中（可选） */
    object-fit: contain; /* 保持图片比例，完整显示（不拉伸） */
}