/* ===== 文章页通用 ===== */
.article-page {
    padding: 130px 0 60px;
    min-height: 60vh;
}

.article-page .container {
    max-width: 900px;
}

/* ===== GEO知识库 列表页 ===== */
.article-list-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-list-header h1 {
    font-size: 36px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.article-list-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.article-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 0;
    font-size: 16px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 242, 255, 0.4);
}

.article-card:hover::before {
    opacity: 1;
}

.article-card-date {
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.article-card-title {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.article-card-summary {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.article-card-more {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-more i {
    transform: translateX(4px);
}

.article-card-more i {
    transition: transform 0.3s ease;
}

/* ===== 详情页 ===== */
.article-detail-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.article-detail-title {
    font-size: 32px;
    line-height: 1.4;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #c9d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

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

.article-detail-meta i {
    color: var(--primary-color);
}

.article-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 20px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

/* 正文排版 */
.article-content {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.9;
}

.article-content h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 34px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--primary-color);
}

.article-content h3 {
    font-size: 19px;
    color: var(--text-primary);
    margin: 26px 0 12px;
}

.article-content h4 {
    font-size: 17px;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.article-content p {
    margin: 14px 0;
}

.article-content ul,
.article-content ol {
    margin: 14px 0;
    padding-left: 26px;
}

.article-content li {
    margin: 6px 0;
}

.article-content strong {
    color: #e6ecff;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content blockquote {
    margin: 18px 0;
    padding: 14px 20px;
    border-left: 3px solid var(--primary-color);
    background: rgba(0, 242, 255, 0.06);
    border-radius: 0 10px 10px 0;
    color: var(--text-secondary);
}

.article-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 14px;
    color: var(--primary-color);
}

.article-content pre {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
    overflow-x: auto;
    margin: 18px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #d6e2ff;
    font-size: 14px;
}

/* 上一篇 / 下一篇 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.article-nav-item {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-nav-item:hover {
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: var(--shadow-sm);
}

.article-nav-item .nav-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-nav-item .nav-title {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-nav-item.next {
    text-align: right;
}

.article-nav-item.next .nav-label {
    justify-content: flex-end;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.article-back:hover {
    color: var(--primary-color);
}

/* ===== 首页「最新GEO知识」区块（仅显示最新两篇标题）===== */
.home-article-list {
    list-style: none;
    margin: 10px auto 0;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-article-list li {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.home-article-list li:hover {
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
}

.home-article-title-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.home-article-title-link:hover {
    color: var(--primary-color);
}

.home-article-title-link i {
    margin-left: auto;
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

.home-article-title-date {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.03);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.knowledge-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.knowledge-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 242, 255, 0.4);
}

.knowledge-card-date {
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.knowledge-card h3 {
    font-size: 17px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 10px;
    min-height: 51px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.knowledge-card p {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.knowledge-card-more {
    font-size: 13px;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.knowledge-card-more i {
    transition: transform 0.3s ease;
}

.knowledge-card:hover .knowledge-card-more i {
    transform: translateX(4px);
}

.knowledge-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

.knowledge-all {
    text-align: center;
    margin-top: 30px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    .article-detail-title {
        font-size: 26px;
    }
    .article-nav {
        grid-template-columns: 1fr;
    }
}
