/* ============================================================
   app.css - 合并样式文件 (base.css + blog.css + unified.css + site-pages.css)
   完整版本 - 包含所有原始CSS文件的100%内容
   生成时间: 自动生成
   ============================================================ */
/* ========== 1. base.css (173 lines) ========== */
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* 超链接*/

a {
    text-decoration: none;
    /*display:block; */
    /*width: 100%;*/
    color: #000000;
}

a:hover {
    text-decoration: none;
    /*color: #04414D;*/
    /*font-weight: bolder;*/
}

a:visited {
    text-decoration: none;
    display: block;
    width: 100%;
    /*color: #000000;*/
}

/* 等待加载式样 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loading-icon {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #3498db;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/*新的等待加载*/

/* 加载动画样式 */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 设置 h1 到 h6 标题的字体大小 */
h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 18px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 14px;
}

h6 {
    font-size: 12px;
}

/* 可根据需要添加其他通用样式，如字体家族、字体颜色、行高、字体粗细等 */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.2;
    font-weight: bold;
}
/* ========== 2. blog.css (153 lines) ========== */
/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  padding-top: 5rem;
  padding-bottom: 0rem;
  color: #5a5a5a;
}


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-bottom: 4rem;
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  bottom: 3rem;
  z-index: 10;
}

/* Declare heights because of positioning of img element */
.carousel-item {
  height: 32rem;
}


/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}
/* rtl:begin:ignore */
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}
/* rtl:end:ignore */


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 5rem 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
/* rtl:begin:remove */
.featurette-heading {
  letter-spacing: -.05rem;
}

/* rtl:end:remove */

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
}

/* stylelint-disable selector-list-comma-newline-after */

.blog-header {
  border-bottom: 1px solid #e5e5e5;
}

.blog-header-logo {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif/*rtl:Amiri, Georgia, "Times New Roman", serif*/;
  font-size: 2.25rem;
}

.blog-header-logo:hover {
  text-decoration: none;
}

/*h1, h2, h3, h4, h5, h6 {*/
/*  font-family: "Playfair Display", Georgia, "Times New Roman", serif!*rtl:Amiri, Georgia, "Times New Roman", serif*!;*/
/*}*/

.display-4 {
  font-size: 2.5rem;
}
@media (min-width: 768px) {
  .display-4 {
    font-size: 3rem;
  }
}

.flex-auto {
  flex: 0 0 auto;
}

.h-250 { height: 250px; }
@media (min-width: 768px) {
  .h-md-250 { height: 250px; }
}

/* Pagination */
.blog-pagination {
  margin-bottom: 4rem;
}

/*
 * Blog posts
 */
.blog-post {
  margin-bottom: 1.25rem;
}
.blog-post-title {
  font-size: 1.5rem;
  font-weight: bolder ;
}
.blog-post-meta {
  margin-bottom: 1.25rem;
  color: #727272;
}

/*
 * Footer
 */
.blog-footer {
  padding: 2.5rem 0;
  color: #727272;
  text-align: center;
  background-color: #f9f9f9;
  border-top: .05rem solid #e5e5e5;
}
.blog-footer p:last-child {
  margin-bottom: 0;
}

/* ========== 3. unified.css (473 lines) ========== */
﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿/* Unified Theme CSS */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    --secondary-color: #8b5cf6;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    padding-top: calc(2rem + 80px);
}

/* Card Styles */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.875rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.badge-secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
}

/* Inputs */
.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-white);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Typography - 字体大小已统一为base.css的值（避免冲突） */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

/* 注：字体大小由base.css定义（147-170行），此处不再重复定义以避免覆盖 */
/* 原始值：h1=2.5rem(40px), h2=2rem(32px), h3=1.75rem(28px) 等过大 */
/* 统一使用base.css的较小值：h1=32px(2rem), h2=24px(1.5rem), h3=18px(1.125rem) */

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* Spacing */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }

/* Flex */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.5rem; }

/* Grid */
.d-grid { display: grid; }

/* Article Cards */
.article-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: var(--transition);
}

.article-card:hover::before {
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Widgets */
.widget {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: var(--primary-color);
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ========== Pagination（分页 - 简洁清晰风格）========== */
.pagination-wrapper {
    margin-top: 3rem;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
}

/* 覆盖Bootstrap默认分页样式 */
.pagination {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
}

.page-item {
    margin: 0 !important;
}

.page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    line-height: 1 !important;
}

.page-link:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

/* 当前激活页 - 必须清晰可见！ */
.page-item.active .page-link,
.page-link.active {
    background: #6366f1 !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* 禁用状态 */
.page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: #f8fafc !important;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 992px) {
    .main-container {
        padding: 1.5rem 1rem;
        padding-top: calc(1.5rem + 80px);
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .main-container {
        padding: 1rem;
        padding-top: calc(1rem + 80px);
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: var(--text-primary);
}

/* ========== 4. site-pages.css (2100 lines) ========== */
﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿/**
 * 前台页面统一样式 — 与 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;
    }
}

