.search-box {
    background: linear-gradient(135deg, #4facfe 0%, #00c6fb 100%);
    padding: 26px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.search-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}
.search-box-content {
    position: relative;
    z-index: 1;
}
.search-title {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}
.search-desc {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}
.search-input-group {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}
.search-input {
    height: 50px;
    border-radius: 25px;
    border: none;
    padding-left: 25px;
    padding-right: 140px;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    padding: 0 25px;
    background: #1E9FFF;
    color: white;
    border: none;
    font-size: 16px;
    transition: all 0.3s;
}
.search-btn:hover {
    background: #0d8bf2;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.main-content {
    margin-top: 20px;
}
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s;
    border: none;
    overflow: hidden;
}
.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}
.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: all 0.5s;
}
.card:hover .card-img {
    transform: scale(1.05);
}
.card-content {
    padding: 20px;
}
.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}
.card-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    margin-bottom: 15px;
}
.card-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}
.card-info span {
    display: flex;
    align-items: center;
}
.card-info i {
    margin-right: 4px;
}
.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1E9FFF;
    color: #333;
    display: flex;
    align-items: center;
}
.section-title i {
    margin-right: 8px;
    color: #1E9FFF;
}
.hot-tags {
    margin-top: 20px;
}
.hot-tag {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 5px 12px;
    background-color: #f0f7ff;
    border-radius: 15px;
    font-size: 12px;
    color: #1E9FFF;
    transition: all 0.3s;
    cursor: pointer;
}
.hot-tag:hover {
    background-color: #1E9FFF;
    color: white;
    transform: translateY(-2px);
}
.layui-tab-title li {
    font-size: 16px;
    padding: 0 20px;
}
.layui-tab-title .layui-this {
    color: #1E9FFF;
}
.layui-tab-title .layui-this:after {
    border-bottom: 2px solid #1E9FFF;
}
.tag-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FF5722;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 2;
}
.popular-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}
.popular-item:last-child {
    border-bottom: none;
}
.popular-index {
    width: 24px;
    height: 24px;
    background: #f0f7ff;
    color: #1E9FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 10px;
    font-weight: bold;
}
.popular-index.top {
    background: #1E9FFF;
    color: white;
}
.popular-content {
    flex: 1;
}
.popular-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.popular-info {
    font-size: 12px;
    color: #999;
}
/* 技术文章相关样式 */
.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
    padding: 5px;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.article-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

/*.article-category {
    position: absolute;
    top: 10px;
    left: 10px;
}*/

.article-pinned {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF5722 0%, #e64a19 100%);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    z-index: 2;
}

.article-content {
    /*padding: 20px;*/
}

.article-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-title a {
    color: #333;
    text-decoration: none;
}

.article-title a:hover {
    color: #1E9FFF;
}

.article-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 3px;
}

.article-list .article-item {
    margin-bottom: 20px;
    padding: 20px;
}

.article-list .article-item:hover {
    transform: translateY(-3px);
}

.article-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.article-tag {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    text-decoration: none;
}

.category-list {
    display: flex;
    flex-direction: column;
}

.category-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.category-item:hover {
    color: #1E9FFF;
}

.category-item:last-child {
    border-bottom: none;
}

.category-count {
    background: #f0f7ff;
    color: #1E9FFF;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-list .article-item .layui-col-md4 {
        margin-bottom: 15px;
    }

    .article-image {
        height: 140px;
    }

    .article-content {
        padding: 15px;
    }

    .article-title {
        font-size: 15px;
    }

    .article-meta {
        gap: 10px;
    }
}
