:root {
    --primary-blue: #004aad;
    --primary-soft: #f4f7fb;
    --accent-gold: #d4a017;
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --bg-page: #f9fafc;
    --white: #ffffff;
    --border-light: #eaeaea;
    --card-radius: 12px;
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.04);
    --dark-bg: #0f172a;
}

.article-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.article-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-page);
}

.article-page a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.article-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-page ul {
    list-style: none;
}

.article-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-page .page-wrapper {
    padding-top: 0px;
    margin-top:40px;
    padding-left:30px;
    padding-right:30px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
}

.article-page .main-content {
    display: flex;
    flex-direction: column;
}

/* 面包屑导航 */





.article-page .sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.article-page .article-header-outside {
    margin-bottom: 30px;
}

.article-page .article-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-main);
}

.article-page .article-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--text-light);
    font-size: 14px;
}

.article-page .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-page .meta-item i {
    color: var(--primary-blue);
}

.article-page .article-card {
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.article-page .article-hero-img {
    width: 100%;
    height: 400px;
    position: relative;
}

.article-page .cat-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-gold);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 2;
}

.article-page .article-content-inner {
    padding: 40px 20px;
}

.article-page .lead {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 25px;
}

.article-page .article-body {
    font-size: 17px;
    color: #334155;
}

.article-page .article-body p {
    margin-bottom: 25px;
    line-height: 1.8;
    text-align: justify;
}

.article-page .article-body h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: var(--text-main);
    font-weight: 700;
    border-left: 4px solid var(--primary-blue);
    padding-left: 15px;
}

.article-page .article-body h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--text-main);
    font-weight: 700;
}

.article-page .article-blockquote {
    margin: 30px 0;
    padding: 25px;
    background: var(--primary-soft);
    border-radius: 8px;
    font-size: 18px;
    font-style: italic;
    color: var(--primary-blue);
    font-weight: 500;
}

.article-page .article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-page .tag-list a {
    display: inline-block;
    font-size: 13px;
    color: var(--text-light);
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 20px;
    margin-right: 8px;
}

.article-page .tag-list a:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.article-page .share-area {
    display: flex;
    gap: 10px;
    align-items: center;
}

.article-page .share-label {
    font-size: 14px;
    color: #999;
}

.article-page .share-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.article-page .share-icon:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.article-page .widget {
    background: var(--white);
    padding: 30px;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-light);
    margin-bottom: 30px;
}

.article-page .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-page);
    position: relative;
}

.article-page .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-blue);
}

.article-page .search-box {
    position: relative;
}

.article-page .search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-page);
    outline: none;
    transition: 0.3s;
}

.article-page .search-box input:focus {
    border-color: var(--primary-blue);
    background: var(--white);
}

.article-page .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.article-page .cat-list li {
    margin-bottom: 12px;
}

.article-page .cat-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.article-page .cat-list a:hover {
    background: var(--primary-soft);
    color: var(--primary-blue);
}

.article-page .cat-count {
    background: #e2e8f0;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    color: #666;
}

.article-page .popular-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.article-page .pp-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-page .pp-info h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.article-page .pp-info span {
    font-size: 12px;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .article-page .page-wrapper {
        grid-template-columns: 1fr;
        padding-top:40px;
        margin-top:0px;
        padding-left:20px;
        padding-right:20px;
    }

    .article-page .article-content-inner {
        padding: 30px 20px;
    }

    .article-page .sidebar {
        position: static;
        margin-top: 40px;
    }

    .article-page .article-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .article-page .article-meta {
        flex-wrap: wrap;
        gap: 15px;
        font-size: 13px;
    }

    .article-page .article-meta .meta-item:nth-child(2),
    .article-page .article-meta .meta-item:nth-child(4) {
        display: none;
    }
}
