/* 新分享页面样式 - 主色调 #478a21 */

/* 搜索区域样式 */
.searcha {
    background: linear-gradient(135deg, #478a21 0%, #5ba428 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(71, 138, 33, 0.3);
    margin: 20px 0 30px 0;
    position: relative;
    overflow: hidden;
    height: 300px;
}

.searcha::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: searchGlow 6s ease-in-out infinite;
}

@keyframes searchGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.1; }
}

.searcha .h3 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.searcha .desc {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.searcha .search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.searcha #search {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 25px;
    font-size: 16px;
    background: transparent;
    color: #333;
    border-radius: 50px;
    width: 100%;
}

.searcha #search::placeholder {
    color: #999;
    font-weight: 400;
}

.searcha #black_searchbtn {
    background: #478a21;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(71, 138, 33, 0.3);
}

.searcha #black_searchbtn:hover {
    background: #3d7a1d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(71, 138, 33, 0.4);
}

.searcha #black_searchbtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(71, 138, 33, 0.3);
}

/* 主要内容区域 */
.main-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    width: 100%;float: left;
}

/* 左侧内容区域 */
.left-content {
    flex: 2;
}

/* 右侧边栏 */
.right-sidebar {
    flex: 1;
    max-width: 350px;
}

/* 文章列表容器 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 文章卡片 */
.article-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(71, 138, 33, 0.15);
    border-color: #478a21;
}

.article-card .card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

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

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

.article-card .card-content {
    padding: 20px;
}

.article-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.article-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.article-card .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card .meta-item i {
    color: #478a21;
}

/* 标签页面样式 */
.tags-section {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

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

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 20px;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag-item:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    text-decoration: none;
}

.tag-item.active {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.tag-item.active:hover {
    background: linear-gradient(135deg, #218838 0%, #1c7430 100%);
}

.tag-symbol {
    font-weight: 600;
    margin-right: 5px;
    font-size: 16px;
}

.tag-name {
    font-weight: 500;
}

/* 面包屑导航样式优化 */
.c-warp-content {
    margin: 20px 0;
}

.location {
    font-size: 13px;
    color: #666;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.location a {
    color: #007bff;
    text-decoration: none;
}

.location a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.location i {
    margin-right: 8px;
    color: #007bff;
}

/* 响应式设计 - 标签页面 */
@media (max-width: 768px) {
    .tags-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .tag-item {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .tag-symbol {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tags-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .tags-list {
        gap: 8px;
    }
    
    .tag-item {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .tag-symbol {
        font-size: 13px;
        margin-right: 3px;
    }
    
    .location {
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* 右侧边栏样式 */
.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #478a21;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #478a21;
}

/* 推荐工具九宫格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 80px;
    justify-content: center;
    text-align: center;
}

.tool-item:hover {
    background: #478a21;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 138, 33, 0.3);
    text-decoration: none;

}

.tool-item .tool-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.tool-item .tool-name {
    font-size: 12px;
    font-weight: 500;
}

/* 文章列表样式 */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

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

.article-list-item:hover {
    background: #f8f9fa;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 6px;
}

.article-list-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.article-list-item .list-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.article-list-item .list-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-list-item .list-meta .views {
    color: #478a21;
}

/* 分页样式 */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #333;
}

.pagination a:hover {
    background: #478a21;
    color: #fff;
    border-color: #478a21;
    transform: translateY(-1px);
}

.pagination .current {
    background: #478a21;
    color: #fff;
    border-color: #478a21;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination .disabled:hover {
    background: #f8f9fa;
    color: #ccc;
    transform: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content{
        width: 94%;float: left;
        padding: 3%;
    }
    .searcha {
        padding: 25px 15px;
        margin: 10px 0 20px 0;
        border-radius: 16px;
    }
    
    .searcha .h3 {
        font-size: 24px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .searcha .desc {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.4;
        opacity: 0.9;
    }
    
    .searcha .search-container {
        flex-direction: column;
        gap: 12px;
        padding: 0;
        background: rgba(255,255,255,0.95);
        border-radius: 12px;
        padding: 15px;
    }

        .article-card .card-image {
            display: none;
        }
    
    .searcha #search {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }
    
    .searcha #black_searchbtn {
        padding: 14px 25px;
        font-size: 15px;
        width: 100%;
        border-radius: 8px;
        font-weight: 600;
    }
    
    .main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .right-sidebar {
        max-width: none;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pagination {
        padding: 10px 15px;
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .searcha {
        padding: 20px 12px;
        margin: 8px 0 15px 0;
        border-radius: 12px;
    }
    
    .searcha .h3 {
        font-size: 20px;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .searcha .desc {
        font-size: 13px;
        margin-bottom: 18px;
        line-height: 1.4;
        opacity: 0.85;
    }
    
    .searcha .search-container {
        padding: 12px;
        background: rgba(255,255,255,0.98);
        border-radius: 10px;
        gap: 10px;
    }
    
    .searcha #search {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 6px;
        border: 1px solid #ddd;
    }
    
    .searcha #black_searchbtn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 6px;
        font-weight: 600;
    }
    
    .sidebar-section {
        padding: 15px;
    }
    
    .article-card .card-content {
        padding: 15px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .tool-item {
        padding: 10px 5px;
    }
    
    .tool-item .tool-icon {
        font-size: 20px;
    }
    
    .tool-item .tool-name {
        font-size: 11px;
    }
}