/*分类下文章卡片样式*/

/* 基础样式 */
body.dark .notice {
    background: rgba(42, 42, 42, 0.8);
    border: 1px dashed #888;
    color: #e0e0e0;
}

.notice {
    margin: 30px auto;
    padding: 20px;
    border: 1px dashed #e6e6e6;
    color: #969696;
    position: relative;
    display: inline-block;
    width: 95%;
    background: rgba(251, 251, 251, 0.5);
    border-radius: 15px;
    font-size: 17.5px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.notice:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.notice-content {
    display: initial;
    vertical-align: middle;
}

.noticess {
    width: 73%;
    margin-bottom: 20px;
    margin-top: 20px;
    background: url(/medias/banner/flowerbg-white.png);
    background-size: cover;
}

.noticess .notice-content {
    font-size: 16px;
}

.notice #catename {
    color: #f2eb00;
    letter-spacing: 4px;
    padding-bottom: 4px;
    border-bottom: 1.2px dashed #f2eb00;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.notice .jiluwords {
    color: #49b1f5;
    letter-spacing: 4px;
    padding-bottom: 4px;
    border-bottom: 1.2px dashed #49b1f5;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* 分类统计样式 */
.category-stats {
    margin: 20px auto;
    max-width: 800px;
}

.stats-item {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 20px;
    margin: 0 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.stats-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.stats-item i {
    font-size: 24px;
    margin-right: 10px;
}

.stats-number {
    font-size: 22px;
    font-weight: bold;
    margin: 0 5px;
}

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

/* 文章卡片优化 */
.article.tag-post {
    margin-bottom: 20px;
    transition: all 0.3s ease;
    padding: 0 8px; /* 减少左右间距 */
}

.article.tag-post:hover {
    transform: translateY(-3px);
}

.card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 150px; /* 减小图片高度 */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.box-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover .box-content {
    opacity: 1;
}

.box-content .title {
    font-size: 14px; /* 减小字体 */
    font-weight: bold;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.box-content .post {
    text-align: center;
    padding: 0 15px;
    font-size: 12px; /* 减小字体 */
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s;
    line-height: 1.3;
}

.card:hover .box-content .title,
.card:hover .box-content .post {
    transform: translateY(0);
}

.card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 15px 10px 10px; /* 减少内边距 */
    margin: 0;
    font-size: 13px; /* 减小字体 */
    font-weight: 500;
    line-height: 1.3;
}

.card-content {
    padding: 15px; /* 减少内边距 */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.summary {
    flex-grow: 1;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #666;
    font-size: 13px; /* 减小字体 */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制显示3行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.publish-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px; /* 减小字体 */
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    flex-wrap: wrap;
}

.publish-date, .publish-author {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.publish-date i, .publish-author i {
    margin-right: 3px;
    color: #49b1f5;
    font-size: 10px;
}

.post-category {
    color: #49b1f5;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 11px;
}

.post-category:hover {
    color: #2196F3;
}

.card-action {
    padding: 10px 15px; /* 减少内边距 */
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.chip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 3px 8px; /* 减小标签大小 */
    margin: 1px;
    font-size: 10px; /* 减小字体 */
    transition: all 0.3s ease;
}

.chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

/* 响应式设计优化 */
@media only screen and (max-width: 1400px) {
    .article.tag-post {
        padding: 0 6px;
    }

    .card-image {
        height: 140px;
    }

    .card-content {
        padding: 12px;
    }
}

@media only screen and (max-width: 1200px) {
    /* 中等屏幕显示4列 */
    .article.tag-post.col.l2 {
        width: 25% !important;
    }

    .card-image {
        height: 160px;
    }
}

@media only screen and (max-width: 1100px) {
    .noticess {
        width: 90% !important;
    }

    .stats-item {
        margin: 5px;
        padding: 12px 20px;
    }

    .article.tag-post {
        padding: 0 8px;
    }
}

@media only screen and (max-width: 900px) {
    /* 平板显示3列 */
    .article.tag-post.col.m4 {
        width: 33.333% !important;
    }

    .card-image {
        height: 140px;
    }
}

@media only screen and (max-width: 768px) {
    .noticess {
        width: 95% !important;
        margin: 15px auto;
        padding: 15px;
    }

    .notice-content {
        font-size: 14px !important;
    }

    .notice #catename,
    .notice .jiluwords {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .stats-item {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }

    /* 移动设备显示2列 */
    .article.tag-post.col.s12 {
        width: 50% !important;
    }

    .article.tag-post {
        padding: 0 5px;
        margin-bottom: 15px;
    }

    .card-image {
        height: 120px;
    }

    .card-content {
        padding: 10px;
    }

    .summary {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .publish-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 10px;
    }
}

@media only screen and (max-width: 480px) {
    /* 小屏幕显示1列 */
    .article.tag-post.col.s12 {
        width: 100% !important;
    }

    .card-image {
        height: 160px;
    }

    .box-content .post {
        font-size: 14px !important;
    }

    .card-content {
        padding: 15px;
    }

    .summary {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
}

/* 深色模式优化 */
body.dark .card {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark .summary {
    color: #ccc;
}

body.dark .publish-info {
    color: #aaa;
    border-top-color: #444;
}

body.dark .card-action {
    background: #333;
    border-top-color: #444;
}

body.dark .stats-item {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* 加载动画优化 */
.article.tag-post {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.article.tag-post:nth-child(1) { animation-delay: 0.1s; }
.article.tag-post:nth-child(2) { animation-delay: 0.2s; }
.article.tag-post:nth-child(3) { animation-delay: 0.3s; }
.article.tag-post:nth-child(4) { animation-delay: 0.4s; }
.article.tag-post:nth-child(5) { animation-delay: 0.5s; }
.article.tag-post:nth-child(6) { animation-delay: 0.6s; }

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