/* ============================================================
   Article Page Styles - Optimized for Sogou SEO
   天均安洁家政服务 - 文章详情页专用样式
   ============================================================ */

/* 文章内容区 */
.article-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 17px;
    line-height: 2;
    color: #2c3e50;
    word-wrap: break-word;
}

.article-content h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
    line-height: 1.4;
}

.article-content h2 {
    font-size: 21px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #16213e;
    padding-left: 14px;
    border-left: 5px solid #e8783a;
    background: linear-gradient(to right, rgba(232, 120, 58, 0.05), transparent);
    line-height: 1.5;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 26px;
    margin-bottom: 14px;
    color: #2c3e50;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e0e0e0;
}

.article-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #34495e;
}

.article-content p {
    margin-bottom: 18px;
    text-align: justify;
    text-indent: 2em;
    line-height: 2;
    color: #2c3e50;
}

.article-content strong, .article-content b {
    color: #e8783a;
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 18px auto;
    display: block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.article-content table th,
.article-content table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e8e8e8;
}

.article-content table th {
    background: linear-gradient(135deg, #e8783a, #f0a060);
    color: #fff;
    font-weight: 600;
}

.article-content table tr:nth-child(even) {
    background-color: #faf9f7;
}

.article-content table tr:hover {
    background-color: #fff5ed;
}

.article-content table caption {
    caption-side: top;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

/* 列表样式 */
.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 2;
    text-indent: 0 !important;
}

.article-content ul li {
    list-style-type: none;
    position: relative;
    padding-left: 18px;
}

.article-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #e8783a;
    font-weight: bold;
}

.article-content ul li > *,
.article-content ol li > * {
    color: #2c3e50;
    text-indent: 0;
}

.article-content ol li {
    list-style-type: decimal;
    color: #e8783a;
}

/* 引用块 */
.article-content blockquote {
    border-left: 5px solid #e8783a;
    padding: 16px 24px;
    margin: 22px 0;
    background: linear-gradient(135deg, #fff8f3, #fff5ed);
    border-radius: 0 8px 8px 0;
    font-style: normal;
    color: #555;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 10px;
    font-size: 40px;
    color: rgba(232, 120, 58, 0.15);
    font-family: Georgia, serif;
}

/* 链接样式 */
.article-content a {
    color: #e8783a;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s;
}

.article-content a:hover {
    border-bottom-color: #e8783a;
}

.article-content .internal-link {
    color: #e8783a;
    font-weight: 500;
}

/* 文章元信息 */
.article-meta {
    color: #8c9aaf;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

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

.article-meta i {
    margin-right: 6px;
    font-size: 13px;
}

/* 核心提示 */
.core-tip {
    background: linear-gradient(135deg, #fff8f3, #fff0e6);
    border: 1px solid #f5dcc8;
    border-left: 4px solid #e8783a;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.core-tip-label {
    color: #e8783a;
    font-weight: 700;
    font-size: 14px;
}

.core-tip-text {
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.8;
}

/* 分享按钮 */
.share-buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    font-size: 13px;
}

/* 侧边栏链接 */
.hover-primary {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.hover-primary:hover {
    color: #e8783a !important;
    text-decoration: none;
    padding-left: 4px;
}

/* 展开阅读 */
.article-content {
    max-height: none;
    overflow: visible;
    transition: max-height 0.5s ease;
}

.article-content-collapsed {
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.article-content-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.9), #fff);
}

#expandBtn {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 8px 32px;
}

#expandBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 120, 58, 0.3);
}

/* 侧边栏卡片 */
.sidebar-card {
    border: none;
    border-radius: 14px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* 文章卡片 */
.article-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.article-card .card-body {
    padding: 32px;
}

/* 面包屑导航 */
.article-breadcrumb {
    background: linear-gradient(to right, #fff8f3, #fafafa);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 13px;
}

.article-breadcrumb a {
    color: #e8783a;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

/* 关键词标签 */
.keyword-tag {
    background: #fff5ed;
    color: #e8783a;
    border: 1px solid #f5dcc8;
    border-radius: 15px;
    padding: 4px 14px;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    margin: 3px;
    transition: all 0.2s;
}

.keyword-tag:hover {
    background: #e8783a;
    color: #fff;
    border-color: #e8783a;
    text-decoration: none;
}

/* 来源整合 */
.content-source {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 20px;
    margin: 24px 0;
    font-size: 13px;
    color: #7a8a9a;
}

.content-source a {
    color: #8c9aaf;
    text-decoration: none;
    margin: 0 4px;
}

.content-source a:hover {
    color: #e8783a;
}

/* 文章底部信息 */
.article-footer-info {
    background: linear-gradient(135deg, #f9fafb, #f5f5f5);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 24px;
}

/* 上一篇/下一篇导航 */
.prev-next-nav {
    margin-top: 24px;
    padding-top: 24px;
}

.prev-next-nav .nav-label {
    color: #b0b8c4;
    font-size: 12px;
    margin-bottom: 4px;
}

.prev-next-nav .nav-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.prev-next-nav .nav-link:hover {
    color: #e8783a;
}

/* 相关推荐 */
.related-section {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.related-section .section-title {
    font-weight: 700;
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 5px solid #e8783a;
}

.related-list .related-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: padding-left 0.2s;
}

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

.related-list .related-item:hover {
    padding-left: 6px;
}

.related-list .related-item .arrow {
    color: #e8783a;
    margin-right: 10px;
    font-size: 12px;
}

.related-list .related-item .title {
    color: #4a5568;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-list .related-item:hover .title {
    color: #e8783a;
}

/* 音频播放器 */
.article-content audio {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-content {
        font-size: 16px;
    }

    .article-content h1 {
        font-size: 22px;
    }

    .article-content h2 {
        font-size: 19px;
    }

    .article-content h3 {
        font-size: 17px;
    }

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

    .article-meta {
        gap: 12px;
        font-size: 12px;
    }

    .sidebar-card {
        margin-bottom: 16px;
    }
}
