/* 
 * 速维管家 - 文章详情页面修复样式
 * 用于强制应用正确的样式，确保与原HTML设计一致
 */

/* 基础变量 */
:root {
    --primary-color: #1e88e5;
    --text-color: #333333;
    --gray-text: #666666;
    --border-color: #e0e0e0;
    --padding-sm: 10px;
    --padding-md: 15px;
    --padding-lg: 20px;
    --padding-xl: 30px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 文章详情页布局 */
.article-detail-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.article-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* 主要内容区域 */
.article-main {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

/* 文章头部样式 */
.article-header {
    margin-bottom: 20px;
}

.article-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    color: white;
    font-size: 0.85rem;
}

.tech {
    background-color: #2196F3;
}

.operation {
    background-color: #4CAF50;
}

.policy {
    background-color: #FF9800;
}

.trend {
    background-color: #9C27B0;
}

.back-to-list {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-to-list i {
    margin-right: 5px;
}

.back-to-list:hover {
    color: var(--primary-color);
}

.article-title {
    font-size: 2rem;
    line-height: 1.3;
    margin: 15px 0;
    color: var(--text-color);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    color: var(--gray-text);
    font-size: 0.9rem;
    margin: 15px 0;
}

.article-meta i {
    margin-right: 5px;
}

.share-btns {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s;
}

.share-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 文章特色图片 */
.article-featured-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章内容样式 */
.article-content {
    line-height: 1.8;
    color: var(--text-color);
}

.article-summary {
    font-size: 1.1rem;
    color: var(--gray-text);
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 25px 0 15px;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-image-box {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.article-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    background-color: #f5f5f5;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--gray-text);
    text-align: center;
    margin: 0;
}

.article-tips {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.article-tips h4 {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.article-tips h4 i {
    margin-right: 8px;
}

.article-tips p {
    margin-bottom: 0;
}

.article-conclusion {
    background-color: #f8f9fa;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.article-conclusion h3 {
    margin-top: 0;
    color: var(--text-color);
}

/* 文章标签 */
.article-tags {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tag-label {
    margin-right: 10px;
    color: var(--gray-text);
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f5f8fa;
    border-radius: 4px;
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0 8px 8px 0;
    transition: all 0.3s;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 作者信息框 */
.author-box {
    display: flex;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.author-title {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.author-desc {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s;
}

.author-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 相关文章 */
.related-articles {
    margin: 40px 0;
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.related-article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-article-item {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.related-article-item:hover {
    transform: translateY(-5px);
}

.related-article-image {
    height: 180px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-article-item:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 15px;
    background-color: white;
}

.related-article-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-article-content h4 a {
    color: var(--text-color);
    transition: color 0.3s;
}

.related-article-content h4 a:hover {
    color: var(--primary-color);
}

/* 评论区样式 */
.comments-section {
    margin: 40px 0;
}

.comment-count {
    color: var(--gray-text);
    font-size: 1rem;
    font-weight: normal;
}

.comment-list {
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex-grow: 1;
}

.comment-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.author-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: normal;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--gray-text);
}

.comment-text {
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.reply-btn, .like-btn {
    font-size: 0.9rem;
    color: var(--gray-text);
    transition: color 0.3s;
    cursor: pointer;
}

.reply-btn:hover, .like-btn:hover {
    color: var(--primary-color);
}

/* 评论表单 */
.comment-form-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.form-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1565c0;
}

/* 侧边栏样式 */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

/* 作者卡片 */
.author-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.author-card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.author-card-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    margin-bottom: 10px;
}

.author-card-header h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.author-card-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.author-card-body {
    padding: 20px;
    background-color: white;
}

.author-card-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--gray-text);
}

.btn-outline {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-align: center;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 热门文章 */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-thumb {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info {
    flex-grow: 1;
}

.post-info h4 {
    font-size: 1rem;
    margin: 0 0 5px;
    line-height: 1.4;
}

.post-info h4 a {
    color: var(--text-color);
    transition: color 0.3s;
}

.post-info h4 a:hover {
    color: var(--primary-color);
}

.post-date {
    font-size: 0.85rem;
    color: var(--gray-text);
}

/* 服务推荐卡片 */
.promo-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.promo-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.promo-content {
    padding: 15px;
    background-color: white;
}

.promo-content h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.promo-content p {
    color: var(--gray-text);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.promo-content .btn {
    width: 100%;
    text-align: center;
}

/* 订阅表单 */
.subscribe p {
    margin-bottom: 15px;
    color: var(--gray-text);
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.subscribe-form button {
    flex-shrink: 0;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.subscribe-form button:hover {
    background-color: #1565c0;
}

/* 联系信息 */
.contact-widget p {
    margin-bottom: 15px;
    color: var(--gray-text);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-list i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

.qrcode-box {
    text-align: center;
}

.qrcode-box img {
    width: 120px;
    height: 120px;
    margin-bottom: 5px;
}

.qrcode-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .related-article-list {
        grid-template-columns: 1fr;
    }
    
    .article-featured-image {
        margin-bottom: 15px;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
        margin: 25px 0 12px;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
        margin: 20px 0 12px;
    }
}

@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .share-btns {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .comment-info {
        flex-direction: column;
    }
    
    .comment-date {
        margin-top: 5px;
    }
}

/* 额外修复专用样式 */
body.single-post {
    background-color: #f8f9fa;
}

/* 隐藏WordPress自带的评论导航 */
.comment-navigation {
    display: none;
}

/* 修复WordPress默认评论表单样式 */
#respond {
    margin: 0;
    padding: 0;
}

#respond h3 {
    display: none;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.comment-form input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-form input[type="submit"]:hover {
    background-color: #1565c0;
} 