/* ========== 文章详情页专用样式 (single.css) ========== */

/* 1. 核心布局容器 */
.containers {
    max-width: 1440px; /* 改为 max-width 防止溢出 */
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 60px;
    position: relative;
    margin-top: 100px; /* 对应固定头部的间距 */
    box-sizing: border-box;
}

/* 2. 主内容区 */
.main-content {
    flex: 1;
    min-width: 0; /* 防止 Flex 子元素溢出 */
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

/* 3. 顶部面包屑与信息栏 */
.header-top {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    animation: fadeInUp 0.8s ease-out forwards;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    color: #e71f19;
    font-size: 12px;
    font-weight: 700;
}

.header-top a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.header-top a:hover {
    color: #e71f19;
}

.publish-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 4. 标题与摘要 */
.main-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
    opacity: 0;
}

.publish-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.intro-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
    padding: 20px 30px;
    background: #f9f9f9;
    border-left: 4px solid #e71f19;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* 5. 文章正文样式 (适配 WordPress 编辑器输出) */
.article-content {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}
.article-content p a{text-decoration:underline;color:#000;font-weight:bold}
.article-content h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.article-content h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #e71f19;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 6. 侧边栏 */
.sidebar {
    width: 360px;
    position: sticky;
    top: 120px; /* 考虑固定头部高度 */
    height: fit-content;
}

.sidebar-module {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sidebar-module h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #e71f19;
	color:#1a1a1a;
}

.sidebar-module ul {
    list-style: none;
}

.sidebar-module ul li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.sidebar-module ul li:last-child {
    border-bottom: none;
}

.sidebar-module ul li a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: block;
    line-height: 1.5;
}

.sidebar-module ul li a:hover {
    color: #e71f19;
    transform: translateX(5px);
}

/* 7. 底部翻页 */
.footer-nav {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer-nav a:hover {
    color: #e71f19;
}

/* 8. 动画 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 9. 响应式适配 */
@media screen and (max-width: 1200px) {
    .containers { gap: 30px; }
    .sidebar { width: 300px; }
}

@media screen and (max-width: 992px) {
    .containers {
        flex-direction: column;
        margin-top: 80px;
    }
    .main-content, .sidebar {
        width: 100%;
    }
    .sidebar {
        position: static;
    }
	.phone-num{color:#fff}
}

@media screen and (max-width: 768px) {
    .main-title { font-size: 24px; }
    .header-top { flex-direction: column; align-items: flex-start; gap: 10px; }
    .publish-info { margin-left: 0; }
	.phone-num{color:#fff}
}
.site-header{background:#fff;}
.nav-link{color:#000}
.nav-link:hover {color: #000;}
.nav-phone-btn {
    background: #f8f9fa;
    border-color: #e5e7eb;
    color: #111827;
    box-shadow: none;
}
.dropdown-link{color:#000}
.hamburger-btn{background:#F5F5F5}
.hamburger-line{background:#000}
.tag-cc{text-decoration:none;color:#333}
.tag-label{color:#333;font-weight:700}
