﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿/**
 * 前台页面统一样式 — 与 base.html 主题 (#6366f1 / #8b5cf6) 一致
 */
.site-page,
.home-page,
.article-detail-page {
    --sp-primary: var(--primary-color, #6366f1);
    --sp-accent: var(--accent-color, #8b5cf6);
    --sp-text: var(--text-primary, #1e293b);
    --sp-muted: var(--text-muted, #94a3b8);
    --sp-border: var(--border-color, #e2e8f0);
    --sp-radius: 16px;
    --sp-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
    --sp-shadow-hover: 0 16px 40px rgba(99, 102, 241, 0.14);
}

/* ========== 列表页通用 ========== */
.site-page .main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.site-page .site-header,
.site-page .page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #faf5ff 100%);
    border-radius: var(--sp-radius);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.site-page .site-header::before,
.site-page .page-header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: -100px;
    right: -60px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    pointer-events: none;
}

.site-page .site-title,
.site-page .page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b, var(--sp-primary), var(--sp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.site-page .site-description,
.site-page .page-subtitle {
    color: var(--text-secondary, #475569);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
}

.site-page .content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.site-page .articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.site-page .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-page .section-title i {
    color: var(--sp-primary);
}

/* ========== 统一文章卡片样式 ========== */
.site-page .article-card,
.home-page .article-card,
.sp-list-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-border);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.site-page .article-card:hover,
.home-page .article-card:hover,
.sp-list-card:hover {
    border-color: transparent;
    box-shadow: 0 12px 36px rgba(99, 102, 241, 0.12);
    transform: translateY(-4px);
    color: inherit;
}

.site-page .article-card::before,
.home-page .article-card::before,
.sp-list-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.site-page .article-card:hover::before,
.home-page .article-card:hover::before,
.sp-list-card:hover::before {
    opacity: 1;
}

.site-page .article-thumbnail-wrapper {
    flex: 0 0 320px;
    width: 320px;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 50%, #ede9fe 100%);
    position: relative;
}

.site-page .article-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-page .article-card:hover .article-thumbnail {
    transform: scale(1.08);
}

.site-page .article-content {
    flex: 1;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 0.75rem;
}

.site-page .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-page .sp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #f0f9ff, #eef2ff);
    color: var(--sp-primary);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.25s ease;
}

.site-page .sp-pill i {
    font-size: 0.75rem;
}

.site-page .sp-pill:hover {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-accent));
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

.site-page .article-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--sp-text);
    transition: color 0.25s ease;
}

.site-page .article-card:hover .article-title {
    color: var(--sp-primary);
}

.site-page .article-excerpt {
    color: var(--text-secondary, #64748b);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-page .article-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.site-page .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.site-page .meta-item i {
    font-size: 0.9rem;
}

.site-page .meta-item:hover {
    color: var(--sp-primary);
}

.site-page .article-title a:hover {
    color: var(--sp-primary);
}

.site-page .category-badge,
.site-page .view-all-link {
    color: var(--sp-primary);
}

.site-page .widget {
    background: #fff;
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow);
}

.site-page .page-item.active .page-link {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-accent));
    border-color: transparent;
    color: #fff;
}

/* ========== 工具入口 CTA（首页侧边栏） ========== */
.sp-tools-cta {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: #fff;
    text-align: center;
    padding: 1.75rem 1.5rem;
    border-radius: var(--sp-radius);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.sp-tools-cta__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.sp-tools-cta__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sp-tools-cta__desc {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.sp-tools-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    background: #fff;
    color: var(--sp-primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.sp-tools-cta__btn:hover {
    transform: translateY(-2px);
    color: var(--sp-primary);
}

.sp-tools-cta__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 1rem;
}

.sp-tools-cta__tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* ========== Banner（嵌入 Hero 底部） ========== */
.sp-hero-banner {
    max-width: 900px;
    margin: 2rem auto 0;
    border-radius: var(--sp-radius);
    overflow: hidden;
    box-shadow: var(--sp-shadow-hover);
    position: relative;
}

.sp-hero-banner__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-hero-banner__slide {
    flex: 0 0 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.sp-hero-banner__slide img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.sp-hero-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.7), transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
}

.sp-hero-banner__title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.sp-hero-banner__dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.sp-hero-banner__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
}

.sp-hero-banner__dot.active {
    width: 22px;
    border-radius: 4px;
    background: #fff;
}

/* 在线工具索引页头部统一 */
.site-page.tools-index .page-header,
.site-page.tools-index .page-title {
    --sp-primary: var(--primary-color, #6366f1);
}

.sp-hero-banner__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-hero-banner__nav--prev { left: 0.75rem; }
.sp-hero-banner__nav--next { right: 0.75rem; }

/* ========== 统一列表文章卡片（固定缩略图高度，避免参差不齐） ========== */
.sp-list-card,
.home-article,
.cat-page .cat-article {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.home-article:hover,
.cat-page .cat-article:hover {
    border-color: transparent;
    box-shadow: 0 12px 36px rgba(99, 102, 241, 0.12);
    transform: translateY(-4px);
    color: inherit;
}

.home-article::before,
.cat-page .cat-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.home-article:hover::before,
.cat-page .cat-article:hover::before {
    opacity: 1;
}

.sp-list-card__thumb,
.home-article__thumb,
.cat-page .cat-article__thumb {
    flex: 0 0 320px;
    width: 320px;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 50%, #ede9fe 100%);
    position: relative;
}

.sp-list-card__thumb img,
.home-article__thumb img,
.cat-page .cat-article__thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-list-card:hover .sp-list-card__thumb img,
.home-article:hover .home-article__thumb img,
.cat-page .cat-article:hover .cat-article__thumb img {
    transform: scale(1.08);
}

.sp-list-card__body,
.home-article__body,
.cat-page .cat-article__body {
    flex: 1;
    padding: 1.5rem 1.75rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.sp-list-card__title,
.home-article__title,
.cat-page .cat-article__title,
.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--sp-text);
    transition: color 0.25s ease;
}

.sp-list-card:hover .sp-list-card__title,
.home-article:hover .home-article__title,
.cat-page .cat-article:hover .cat-article__title,
.article-card:hover .article-title {
    color: var(--sp-primary);
}

.sp-list-card__excerpt,
.home-article__excerpt,
.cat-page .cat-article__excerpt,
.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-list-card__meta,
.home-meta,
.cat-page .cat-article__meta,
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    font-weight: 500;
}

.sp-list-card__meta span,
.home-meta span,
.cat-page .cat-article__meta span,
.article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.25s ease;
}

.sp-list-card__meta span:hover,
.home-meta span:hover,
.cat-page .cat-article__meta span:hover,
.article-meta .meta-item:hover {
    color: var(--sp-primary);
}

.sp-list-card__meta span i,
.home-meta span i,
.cat-page .cat-article__meta span i,
.article-meta .meta-item i {
    font-size: 0.9rem;
}

.sp-list-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sp-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--sp-primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.35rem;
    margin-bottom: 0.25rem;
}

.home-featured {
    display: flex;
    background: #fff;
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 1.5rem;
}

.home-featured:hover {
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.15);
    transform: translateY(-6px);
    color: inherit;
}

.home-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.home-featured:hover::before {
    opacity: 1;
}

.home-featured__media {
    flex: 0 0 600px;
    min-height: 320px;
    max-height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 50%, #ede9fe 100%);
    position: relative;
}

.home-featured__media img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-featured:hover .home-featured__media img {
    transform: scale(1.08);
}

.home-featured__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    z-index: 10;
}

.home-featured__badge i {
    font-size: 0.85rem;
}

.home-featured__placeholder {
    min-height: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--sp-primary);
    opacity: 0.25;
}

.home-featured__body {
    flex: 1;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.home-featured__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #f0f9ff, #eef2ff);
    color: var(--sp-primary);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.25s ease;
}

.home-cat-pill:hover {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-accent));
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

.home-featured__title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: var(--sp-text);
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-featured:hover .home-featured__title {
    color: var(--sp-primary);
}

.home-featured__excerpt {
    font-size: 1rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sp-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all 0.25s ease;
}

.home-read-more i {
    transition: transform 0.25s ease;
}

.home-featured:hover .home-read-more {
    gap: 0.75rem;
}

.home-featured:hover .home-read-more i {
    transform: translateX(4px);
}

/* ========== 文章详情页 ========== */
.article-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.ad-reading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--sp-primary), var(--sp-accent));
    z-index: 10001;
    transition: width 0.15s ease;
}

.ad-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--sp-muted);
    margin-bottom: 1.25rem;
}

.ad-breadcrumb a {
    color: var(--sp-muted);
    text-decoration: none;
}

.ad-breadcrumb a:hover {
    color: var(--sp-primary);
}

.ad-hero {
    background: #fff;
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.ad-hero__cover {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.ad-hero__body {
    padding: 2rem 2.5rem;
}

.ad-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--sp-text);
    margin-bottom: 1rem;
}

.ad-hero__desc {
    font-size: 1.0625rem;
    color: var(--text-secondary, #475569);
    line-height: 1.75;
    padding-left: 1rem;
    border-left: 3px solid var(--sp-primary);
    margin-bottom: 1.25rem;
}

.ad-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--sp-muted);
}

.ad-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ad-hero__meta i {
    color: var(--sp-primary);
}

.ad-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

.ad-card {
    background: #fff;
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow);
    overflow: hidden;
}

.ad-prose {
    padding: 2rem 2.5rem;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #334155;
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}
.ad-prose * {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

.ad-prose #article-content h1,
.ad-prose #article-content h2,
.ad-prose #article-content h3 {
    color: var(--sp-text);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--sp-primary);
}

.ad-prose #article-content h1 { font-size: 1.75rem; }
.ad-prose #article-content h2 { font-size: 1.5rem; border-left-color: var(--sp-accent); }
.ad-prose #article-content h3 { font-size: 1.25rem; }

.ad-prose #article-content p { margin-bottom: 1.15rem; }

.ad-prose #article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: var(--sp-shadow);
    cursor: zoom-in;
}

.ad-prose #article-content pre {
    background: #f8fafc;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.25rem 0;
}

.ad-prose #article-content blockquote {
    border-left: 4px solid var(--sp-primary);
    background: #f8fafc;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary, #475569);
}

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

.ad-footer-bar {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--sp-border);
    background: #fafbfc;
}

.ad-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ad-tag {
    padding: 0.35rem 0.85rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--sp-primary);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.ad-tag:hover {
    background: var(--sp-primary);
    color: #fff;
}

.ad-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-btn--primary {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-accent));
    color: #fff;
}

.ad-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.ad-btn--ghost {
    background: #fff;
    border: 1px solid var(--sp-border);
    color: var(--sp-text);
}

.ad-layout aside {
    position: sticky;
    top: 96px;
    align-self: flex-start;
    height: fit-content;
}

.ad-toc {
    background: #fff;
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-border);
    padding: 1.25rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: var(--sp-shadow);
    position: relative;
}

.ad-toc__title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ad-toc__title i { color: var(--sp-primary); }

.ad-toc .toc-link {
    display: block;
    padding: 0.4rem 0.65rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #475569);
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 6px;
    margin-bottom: 0.15rem;
}

.ad-toc .toc-link:hover,
.ad-toc .toc-link.active {
    color: var(--sp-primary);
    background: rgba(99, 102, 241, 0.08);
    border-left-color: var(--sp-primary);
}

.ad-nav-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.ad-nav-card {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.ad-nav-card:hover {
    border-color: var(--sp-primary);
    box-shadow: var(--sp-shadow);
    color: inherit;
}

.ad-nav-card__label {
    font-size: 0.75rem;
    color: var(--sp-primary);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.ad-nav-card__title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ad-recommend {
    margin-top: 2rem;
}

.ad-recommend__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ad-recommend__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.ad-recommend__card {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.ad-recommend__card:hover {
    box-shadow: var(--sp-shadow-hover);
    transform: translateY(-2px);
    color: inherit;
}

.ad-comments {
    margin-top: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-border);
}

.ad-comment-item {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--sp-primary);
}

.ad-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.ad-enlarge {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 2rem;
}

.ad-enlarge img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 12px;
}

@media (max-width: 992px) {
    .site-page .content-wrapper,
    .ad-layout {
        grid-template-columns: 1fr;
    }

    .site-page .article-thumbnail-wrapper,
    .site-page .no-image-placeholder {
        flex: none;
        width: 100%;
        height: 180px;
    }

    .home-featured__media {
        flex: none;
        width: 100%;
        height: 280px;
    }

    .home-featured__media img {
        height: 280px;
    }

    .home-featured {
        grid-template-columns: 1fr;
    }

    .ad-nav-prevnext {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-page .article-card,
    .home-article,
    .sp-list-card {
        flex-direction: column;
        min-height: auto;
    }

    .site-page .article-thumbnail-wrapper,
    .home-article__thumb,
    .sp-list-card__thumb {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .site-page .article-content,
    .home-article__body,
    .sp-list-card__body {
        padding: 1.25rem;
    }

    .home-featured {
        flex-direction: column;
    }

    .home-featured__media {
        flex: none;
        width: 100%;
        height: 240px;
    }

    .home-featured__media img {
        height: 240px;
    }

    .home-featured__body {
        padding: 1.5rem;
    }

    .home-featured__title {
        font-size: 1.35rem;
    }

    .ad-hero__body,
    .ad-prose,
    .ad-footer-bar {
        padding: 1.25rem;
    }

    .site-page .article-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* ========== 分类页 cat-page ========== */
.cat-page .sp-page-hero {
    text-align: center;
    padding: 2.5rem 2rem;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #faf5ff 100%);
    border-radius: var(--sp-radius);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.cat-page .sp-page-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b, var(--sp-primary), var(--sp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.cat-page .sp-page-hero__desc {
    color: var(--text-secondary, #475569);
    max-width: 560px;
    margin: 0 auto 1.25rem;
}

.cat-page .sp-page-hero__stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cat-page .sp-stat-chip {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sp-primary);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.cat-page .cat-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.75rem;
    align-items: start;
}

.cat-page .cat-sidebar {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 1rem;
    box-shadow: var(--sp-shadow);
}

.cat-page .cat-sidebar__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sp-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.cat-page .cat-sidebar__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary, #475569);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    margin-bottom: 0.15rem;
}

.cat-page .cat-sidebar__item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--sp-primary);
}

.cat-page .cat-sidebar__item.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.cat-page .cat-sidebar__count {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    flex-shrink: 0;
}

.cat-page .cat-sidebar__item.active .cat-sidebar__count {
    background: rgba(255, 255, 255, 0.25);
}

.cat-page .cat-main__head {
    margin-bottom: 1.25rem;
}

.cat-page .cat-main__head h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.cat-page .cat-main__head p {
    font-size: 0.9rem;
    color: var(--sp-muted);
    margin: 0;
}

/* ========== 专题页 topic-page ========== */
.topic-page .sp-page-hero {
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #faf5ff 100%);
    border-radius: var(--sp-radius);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.topic-page .sp-page-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b, var(--sp-primary), var(--sp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.topic-page .sp-page-hero__desc {
    color: var(--text-secondary, #475569);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.75;
}

.topic-page .topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.topic-page .topic-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s ease;
    height: 100%;
}

.topic-page .topic-card:hover {
    border-color: transparent;
    box-shadow: var(--sp-shadow-hover);
    transform: translateY(-6px);
    color: inherit;
}

.topic-page .topic-card__media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
}

.topic-page .topic-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.topic-page .topic-card:hover .topic-card__media img {
    transform: scale(1.08);
}

.topic-page .topic-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--sp-primary);
    opacity: 0.35;
}

.topic-page .topic-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, transparent 50%);
    pointer-events: none;
}

.topic-page .topic-card__label {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sp-primary);
}

.topic-page .topic-card__body {
    padding: 1.35rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topic-page .topic-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.topic-page .topic-card:hover .topic-card__title {
    color: var(--sp-primary);
}

.topic-page .topic-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary, #475569);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.topic-page .topic-card__footer {
    display: flex;
    gap: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sp-border);
    font-size: 0.8125rem;
    color: var(--sp-muted);
}

.topic-page .topic-card__footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.topic-page .sp-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: var(--sp-radius);
    border: 1px dashed var(--sp-border);
}

.topic-page .sp-empty i {
    font-size: 3rem;
    color: var(--sp-primary);
    opacity: 0.3;
    display: block;
    margin-bottom: 1rem;
}

.cat-page .sp-pagination,
.topic-page .sp-pagination,
.tag-page .sp-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    gap: 0.375rem;
}

.cat-page .sp-pagination .page-link,
.topic-page .sp-pagination .page-link,
.tag-page .sp-pagination .page-link {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--sp-border);
    color: var(--text-secondary, #475569);
    font-weight: 600;
    text-decoration: none;
    background: #fff;
}

.cat-page .sp-pagination .page-link:hover,
.topic-page .sp-pagination .page-link:hover,
.tag-page .sp-pagination .page-link:hover {
    border-color: var(--sp-primary);
    color: var(--sp-primary);
}

.cat-page .sp-pagination .page-link.active,
.topic-page .sp-pagination .page-link.active,
.tag-page .sp-pagination .page-link.active {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-accent));
    color: #fff;
    border-color: transparent;
}

.cat-page .sp-pagination .page-link.disabled,
.topic-page .sp-pagination .page-link.disabled,
.tag-page .sp-pagination .page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.sp-fade {
    animation: spFadeUp 0.55s ease forwards;
    opacity: 0;
}

@keyframes spFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 标签页 tag-page ========== */
.tag-page .main-container {
    max-width: 1100px;
}

.tag-page .sp-page-hero {
    text-align: center;
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #faf5ff 100%);
    border-radius: var(--sp-radius);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.tag-page .sp-page-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, var(--sp-primary), var(--sp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tag-page .sp-page-hero__desc {
    color: var(--text-secondary, #475569);
}

.tag-page .tag-cloud-panel {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--sp-shadow);
}

.tag-page .tag-cloud-panel h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tag-page .tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-page .tag-cloud-list a {
    padding: 0.45rem 0.9rem;
    background: #f8fafc;
    border: 1px solid var(--sp-border);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-secondary, #475569);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-page .tag-cloud-list a:hover,
.tag-page .tag-cloud-list a.active {
    background: var(--sp-primary);
    border-color: var(--sp-primary);
    color: #fff;
}

.tag-page .tag-cloud-list .tag-num {
    opacity: 0.7;
    font-size: 0.8em;
    margin-left: 0.2rem;
}

.tag-page .tag-articles-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tag-page .tag-articles-head h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

/* ========== 首页友情链接模块 ========== */
.home-friends-widget {
    background: #fff;
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-border);
    padding: 1.25rem;
    box-shadow: var(--sp-shadow);
}

.home-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.home-widget__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sp-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.home-widget__title i {
    color: var(--sp-primary);
    font-size: 0.9rem;
}

.home-widget__more {
    font-size: 0.75rem;
    color: var(--sp-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.home-widget__more:hover {
    color: var(--sp-accent);
    text-decoration: underline;
}

.home-friends-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-friend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    background: transparent;
}

.home-friend-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    transform: translateX(4px);
}

.home-friend-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.home-friend-item:hover .home-friend-item__icon {
    transform: scale(1.08);
}

.home-friend-item__icon i {
    color: #fff;
    font-size: 0.95rem;
}

.home-friend-item__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.home-friend-item__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.home-friend-item:hover .home-friend-item__name {
    color: var(--sp-primary);
}

.home-friend-item__desc {
    font-size: 0.725rem;
    color: var(--sp-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-friend-item__arrow {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--sp-muted);
    transition: all 0.25s ease;
}

.home-friend-item:hover .home-friend-item__arrow {
    color: var(--sp-primary);
    transform: translateX(2px);
}

/* ========== 友链页 friend-page ========== */
.friend-page .main-container {
    max-width: 900px;
}

.friend-page .sp-page-hero {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--sp-radius);
    border: none;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.friend-page .sp-page-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff !important;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    margin-bottom: 0.75rem;
}

.friend-page .sp-page-hero__desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

.friend-page .sp-stat-chip {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.friend-page .sp-stat-chip i {
    font-size: 1rem;
}

/* ========== 友情链接页面样式 ========== */
.friend-page {
    --sp-primary: #6366f1;
    --sp-accent: #8b5cf6;
    --sp-border: #e2e8f0;
    --sp-radius: 16px;
    --sp-text: #1e293b;
    --sp-muted: #94a3b8;
}

.friend-page .friend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.friend-page .friend-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.friend-page .friend-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-color: #6366f1;
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.friend-page .friend-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.friend-page .friend-card__icon-wrapper {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: transform 0.3s ease;
}

.friend-page .friend-card:hover .friend-card__icon-wrapper {
    transform: scale(1.1) rotate(3deg);
}

.friend-page .friend-card__info {
    flex: 1;
    min-width: 0;
}

.friend-page .friend-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: #1e293b;
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-page .friend-card:hover .friend-card__name {
    color: #6366f1;
}

.friend-page .friend-card__url {
    font-size: 0.725rem;
    color: #94a3b8;
    font-family: 'Monaco', 'Consolas', monospace;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-page .friend-card__desc {
    display: none;
}

.friend-page .friend-card__footer {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.friend-page .friend-card:hover .friend-card__footer {
    color: #6366f1;
    transform: translateX(4px);
}

.friend-page .friend-card__visit {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sp-primary);
    transition: color 0.3s ease;
}

.friend-page .friend-card:hover .friend-card__visit {
    color: var(--sp-accent);
}

.friend-page .friend-card__footer i {
    font-size: 0.875rem;
    color: var(--sp-primary);
    transition: all 0.3s ease;
}

.friend-page .friend-card:hover .friend-card__footer i {
    color: var(--sp-accent);
    transform: translateX(4px);
}

.tag-page .sp-stat-chip {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sp-primary);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ========== 文章详情标题区（无封面图） ========== */
.ad-hero {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 55%, #fff 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    padding: 2rem 2.5rem;
}

.ad-hero__cover {
    display: none !important;
}

.ad-hero__body {
    padding: 0;
}

.ad-hero__title {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    background: linear-gradient(135deg, #1e293b 0%, var(--sp-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 992px) {
    .cat-page .cat-layout {
        grid-template-columns: 1fr;
    }

    .cat-page .cat-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        padding: 0.75rem;
    }

    .cat-page .cat-sidebar__title {
        width: 100%;
    }

    .cat-page .cat-sidebar__item {
        margin: 0;
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .sp-list-card,
    .home-article,
    .cat-page .cat-article,
    .site-page .article-card {
        flex-direction: column;
        align-items: stretch;
    }

    .sp-list-card__thumb,
    .home-article__thumb,
    .cat-page .cat-article__thumb,
    .site-page .article-thumbnail-wrapper,
    .site-page .no-image-placeholder {
        flex: none;
        width: 100%;
        height: 168px;
    }
}
