/* ========== 面包屑导航 ========== */
.breadcrumb-section {
    padding: 20px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

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

.breadcrumb a:hover {
    color: #1a73e8;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* ========== 文章Hero ========== */
.article-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
}

.article-hero-content {
    max-width: 800px;
}

.article-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    opacity: 0.9;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== 文章内容 ========== */
.article-content {
    padding: 60px 0;
    background: #fff;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body .article-lead {
    font-size: 18px;
    color: #555;
    font-weight: 500;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #1a73e8;
    border-radius: 4px;
    margin-bottom: 30px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-left: 12px;
    border-left: 4px solid #1a73e8;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px;
}

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

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body strong {
    color: #1a73e8;
    font-weight: 600;
}

.article-body blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    color: #5a4500;
    font-size: 15px;
    line-height: 1.7;
}

.article-body .callout {
    margin: 24px 0;
    padding: 20px 24px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    border-radius: 6px;
    font-size: 15px;
    color: #1e3a5f;
    line-height: 1.7;
}

.article-body .callout-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 8px;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.article-body table thead {
    background: #1a73e8;
    color: #fff;
}

.article-body table th,
.article-body table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.6;
}

.article-body table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.article-body table tbody tr:hover {
    background: #eff6ff;
}

.article-body table .rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
}

.article-body table .rank-top1 {
    background: #dc2626;
    color: #fff;
}

.article-body table .rank-top2 {
    background: #ea580c;
    color: #fff;
}

.article-body table .rank-top3 {
    background: #ca8a04;
    color: #fff;
}

.article-body .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.article-body .tag-list li {
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1a73e8;
    border-radius: 4px;
    font-size: 13px;
    margin: 0;
}

.article-body .step-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.article-body .step-list li {
    position: relative;
    padding: 14px 14px 14px 56px;
    margin-bottom: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #1a73e8;
    counter-increment: step;
}

.article-body .step-list li::before {
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #1a73e8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* ========== 相关文章 ========== */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.related-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #333;
}

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

.related-card {
    display: block;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.related-card:hover {
    background: #fff;
    border-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
}

.related-category {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1a73e8;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 12px;
}

.related-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
    line-height: 1.4;
}

.related-card-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 13px;
    color: #999;
}

/* ========== 滑动推荐卡片 ========== */
.recommended-slider {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.recommended-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #333;
}

.recommended-wrapper {
    position: relative;
    overflow: hidden;
}

.recommended-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.recommended-track::-webkit-scrollbar {
    display: none;
}

.recommended-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.recommended-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.recommended-card-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.recommended-card-body {
    padding: 16px;
}

.recommended-card-category {
    display: inline-block;
    padding: 3px 10px;
    background: #e3f2fd;
    color: #1a73e8;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 8px;
}

.recommended-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-card-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-card-date {
    font-size: 12px;
    color: #999;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

.slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slider-btn:disabled:hover {
    background: #fff;
    border-color: #ddd;
    color: inherit;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .article-hero {
        padding: 40px 0;
    }

    .article-title {
        font-size: 24px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .article-content {
        padding: 40px 0;
    }

    .article-body {
        font-size: 15px;
    }

    .article-body .article-lead {
        font-size: 16px;
        padding: 16px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .recommended-card {
        flex: 0 0 240px;
    }

    .recommended-card-img {
        height: 140px;
    }
}
