/* 文章详情页面样式 - 基于shareindex2.php风格 */

/* 主要内容区域 */
.content {
    min-height: 100vh;
    padding: 20px 0;
}

.center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 搜索区域样式 */
.searcha {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #478a21 0%, #5ba82a 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    height: 200px;
}

.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: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.searcha .h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.searcha .desc {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.search-container .vmx-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-container .vmx-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.search-container button {
    padding: 15px 30px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-container button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* 主要内容布局 */
.main-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;float: left;
}

.left-content {
    flex: 1;
    min-width: 0;
}

.right-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 面包屑导航 */
.c-warp-content {
    background: #fff;
    border-radius: 12px;
     margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.location {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.location i {
    color: #478a21;
    margin-right: 5px;
}

.location a {
    color: #478a21;
    text-decoration: none;
    transition: color 0.3s ease;
}

.location a:hover {
    color: #2d5a15;
    text-decoration: none;
}

/* 主要布局 */
.main-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
}

.leftinfo {
    flex: 1;
    min-width: 0;
    
}

.right-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 文章内容区域 */
.wiki-warp-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

/* 文章标题区域 */
.viewTitle {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
}

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

.vtitle {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* 标签容器样式 */
.tags-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.tag-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(71, 138, 33, 0.1), transparent);
    transition: left 0.5s ease;
}

.tag-item:hover::before {
    left: 100%;
}

.tag-item:hover {
    background: #478a21;
    color: white;
    border-color: #478a21;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(71, 138, 33, 0.3);
}

.tag-symbol {
    font-size: 16px;
    font-weight: 600;
    margin-right: 8px;
    color: #478a21;
    transition: color 0.3s ease;
}

.tag-item:hover .tag-symbol {
    color: white;
}

.tag-name {
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tag-item:hover .tag-name {
    color: white;
}

.desc {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin: 0;
    padding: 0;
}

.desc i {
    color: #478a21;
    margin-right: 5px;
}

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

/* 文章内容 */
.textContent {
    margin-bottom: 30px;
}

.Con {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
}

.Con h1, .Con h2, .Con h3, .Con h4, .Con h5, .Con h6 {
    color: #333;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.Con h1 { font-size: 24px; }
.Con h2 { font-size: 22px; }
.Con h3 { font-size: 20px; }
.Con h4 { font-size: 18px; }
.Con h5 { font-size: 16px; }
.Con h6 { font-size: 14px; }

.Con p {
    margin: 15px 0;
    line-height: 1.8;
}

.Con img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.Con code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
    font-size: 14px;
}

.Con pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid #478a21;
}

.Con blockquote {
    border-left: 4px solid #478a21;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.Con ul, .Con ol {
    padding-left: 30px;
    margin: 15px 0;
}

.Con li {
    margin: 8px 0;
    line-height: 1.6;
}

.Con a {
    color: #478a21;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.Con a:hover {
    color: #2d5a15;
    border-bottom-color: #478a21;
    text-decoration: none;
}

/* 下载按钮样式 - 更专业的设计 */
.download-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #478a21, #5ba82a, #478a21);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.download-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.download-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #478a21, #5ba82a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.download-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.download-info p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #6c757d;
}

.download-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-download {
    background: linear-gradient(135deg, #478a21, #5ba82a);
    color: white;
    box-shadow: 0 2px 8px rgba(71, 138, 33, 0.3);
}

.btn-download:hover {
    background: linear-gradient(135deg, #5ba82a, #478a21);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(71, 138, 33, 0.4);
    color: white;
    text-decoration: none;
}



.btn-icon {
    width: 16px;
    height: 16px;
}

/* 标签列表 */
.TagsList {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.TagsList span {
    font-weight: 600;
    color: #333;
    margin-right: 15px;
}

.TagsList a {
    display: inline-block;
    background: #fff;
    color: #478a21;
    padding: 6px 12px;
    margin: 5px 8px 5px 0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #478a21;
    transition: all 0.3s ease;
}

.TagsList a:hover {
    background: #478a21;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(71, 138, 33, 0.3);
    text-decoration: none;
}

/* 相关推荐模块 */
.related-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    clear: both;
}

.related-title {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #478a21;
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #5ba82a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.related-item {
    display: block;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.related-item:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    border-color: #478a21;
}

.related-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #212529;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
}

.related-item-category {
    background: #478a21;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

/* 页码样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    padding: 20px;
}

.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-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    background: white;
    color: #495057;
}

.pagination a:hover {
    background: #478a21;
    color: white;
    border-color: #478a21;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(71, 138, 33, 0.3);
    text-decoration: none;
}

.pagination .current {
    background: linear-gradient(135deg, #478a21, #5ba82a);
    color: white;
    border-color: #478a21;
    box-shadow: 0 2px 8px rgba(71, 138, 33, 0.3);
}

.pagination .disabled {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
}

.pagination .prev,
.pagination .next {
    padding: 0 16px;
    font-weight: 600;
}

.pagination .dots {
    border: none;
    background: none;
    color: #adb5bd;
    cursor: default;
}

.pagination .dots:hover {
    background: none;
    color: #adb5bd;
    transform: none;
    box-shadow: none;
}

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

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

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #5ba82a;
}

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

.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: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 138, 33, 0.3);
    text-decoration: none;
    border-color: #478a21;
}

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

.tool-name {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    color: inherit;
}

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

.article-list-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f4;
}

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

.article-list-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.article-list-item a:hover {
    text-decoration: none;
}

.list-title {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-list-item a:hover .list-title {
    color: #478a21;
}

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

.views {
    color: #478a21;
    font-weight: 500;
}

.date {
    color: #adb5bd;
}

/* 广告区域 */
.wwads-cn {
    margin: 20px 0;
    text-align: center;
}

.wwads-cn .wwads-text {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .rightinfo {
        width: 100%;
    }
    
    .wiki-warp-content {
        padding: 20px;
    }
    
    .vtitle {
        font-size: 24px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .center {
        padding: 0 10px;
    }
    
    .wiki-warp-content {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .vtitle {
        font-size: 20px;
    }
    
    .Con {
        font-size: 15px;
    }
    
    .desc {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .download-section {
        padding: 20px;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .tool-item {
        padding: 12px 6px;
        min-height: 70px;
    }
    
    .tool-icon {
        font-size: 20px;
    }
    
    .tool-name {
        font-size: 11px;
    }
    
    .sidebar-section {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .sidebar-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .c-warp-content {
        padding: 10px 15px;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .wiki-warp-content {
        padding: 12px;
        border-radius: 8px;
    }
    
    .vtitle {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .Con {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .button-wrapper {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .TagsList {
        padding: 15px;
    }
    
    .TagsList a {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .download-section {
        padding: 16px;
    }
    
    .download-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .download-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        align-self: center;
    }
    
    .download-info h3 {
        font-size: 16px;
    }
    
    .download-info p {
        font-size: 13px;
    }
    
    .related-section {
        padding: 16px;
    }
    
    .related-title {
        font-size: 18px;
    }
    
    .related-item {
        padding: 12px;
    }
    
    .related-item-title {
        font-size: 14px;
    }
    
    .pagination {
        gap: 4px;
        padding: 15px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 8px;
    }
    
    .pagination .prev,
    .pagination .next {
        padding: 0 12px;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .right-sidebar {
        width: 100%;
        margin-top: 20px;
    }
    
    .searcha {
        padding: 40px 20px;
        margin-bottom: 20px;
    }
    
    .searcha .h3 {
        font-size: 28px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-container .vmx-input,
    .search-container button {
        width: 100%;
    }
    
    .tags-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tag-item {
        padding: 10px 12px;
    }
    
    .download-area {
        flex-direction: column;
    }
    
    .btn-download {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .article-content h1,
    .article-content h2,
    .article-content h3 {
        font-size: 1.2em;
    }
}

/* 平板响应式 */
@media (max-width: 768px) {
    .searcha {
        padding: 50px 20px;
    }
    
    .searcha .h3 {
        font-size: 32px;
    }
    
    .tags-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .main-content {
        gap: 20px;
    }
}

/* 打印样式 */
@media print {
    .rightinfo,
    .wwads-cn,
    .button,
    .right-sidebar,
    .download-area,
    .related-section,
    .pagination,
    .searcha {
        display: none;
    }
    
    .wiki-warp-content {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .Con {
        color: #000;
    }
    
    .Con a {
        color: #000;
        text-decoration: underline;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .article-content {
        max-width: 100%;
    }
    
    .tags-container {
        grid-template-columns: repeat(3, 1fr);
    }
}