/* ============================================================
   飞之梦技术笔记 - 现代专业风
   基于 emlog 内置 Bootstrap 4 + SB Admin 4.5.3
   直接引用 SB Admin 变量，仅写博客布局专属样式。
   ============================================================ */

/* ===== 全局基础（继承 SB Admin，仅补背景） ===== */
body {
    background-color: var(--light);
    color: var(--gray-800);
    font-size: 15px;
    line-height: 1.75;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
                 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.1px;
}

/* ===== 全站字体大小统一规范（基于现代UI主流：14-16px正文+1.75-1.8行高） =====
   设计依据：
   - PC端主流正文字号：14-16px（学术/技术博客推荐15-16px，兼顾密度与阅读疲劳）
   - 行高：正文1.75~1.8，标题1.3~1.5
   - 段落间距：1.2em（段与段之间清晰呼吸感）
   - 色彩：主文本#3a3b45、次级#858796（对比度符合WCAG AA：≥4.5:1）
   - 响应式：<576px自动降0.5px，避免移动端拥挤
*/
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    letter-spacing: 0.2px;
    line-height: 1.35;
    margin-bottom: 0.7em;
}
h1 { font-size: 1.75rem; line-height: 1.3; font-weight: 700; }
h2 { font-size: 1.5rem;  line-height: 1.35; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 700; }
h4 { font-size: 1.1rem;  line-height: 1.45; font-weight: 700; }
h5 { font-size: 1rem;    line-height: 1.5; font-weight: 700; }
h6 { font-size: 0.9rem;  line-height: 1.55; font-weight: 700; }

.article-detail-card, .article-detail-body { font-size: 15.5px; line-height: 1.9; color: #3a3b45; }
.article-detail-body p { margin-bottom: 1.2em; text-align: justify; }

/* 首页/列表 卡片字体 */
.article-card .card-title { font-size: 1.1rem; font-weight: 600; line-height: 1.5; }
.article-card .card-text, .article-card .card-summary { font-size: 0.9rem; line-height: 1.8; color: #5a5c69; }

/* 导航字体 */
.top-navbar .nav-link { font-size: 0.92rem; }
.dropdown-item { font-size: 0.88rem; }

/* 边栏字体 */
.sidebar .widget-title { font-size: 0.95rem; }
.widget-list-item, .comment-widget-body, .widget-search input { font-size: 0.86rem; line-height: 1.6; }

/* 响应式字体缩放（防止移动端过度拥挤） */
@media (max-width: 575.98px) {
    body { font-size: 14.5px; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    .article-detail-body { font-size: 14.5px; line-height: 1.85; }
    .home-quote-text { font-size: 1.25rem; }
}
a { color: var(--primary); transition: color 0.15s ease-in-out; }
a:hover { color: #224abe; text-decoration: none; }

/* ===== 站点头 ===== */
.fzm-site-header {
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
}
/* 单行布局：Logo+副标题居左，菜单容器居右 */
.fzm-site-header.header-layout-one-row .fzm-header-single {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 111px;
}
.fzm-site-header.header-layout-one-row .fzm-brand {
    flex-shrink: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.15rem;
}
.fzm-site-header.header-layout-one-row .fzm-brand .brand-logo { height: 36px; width: auto; }
.fzm-site-header.header-layout-one-row .fzm-brand-sub {
    font-size: 0.72rem; color: var(--gray-500); margin: 0;
}
/* 菜单独立容器 */
.fzm-site-header.header-layout-one-row .fzm-nav-container {
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 0.5rem;
    padding: 0 0.6rem;
    flex: 0 1 auto;
}
.fzm-site-header.header-layout-one-row .fzm-nav-menu {
    justify-content: flex-end !important;
    align-items: center;
}
.fzm-site-header.header-layout-one-row .top-navbar .nav-link {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.88rem;
}
@media (max-width: 991.98px) {
    .fzm-site-header.header-layout-one-row .fzm-header-single { flex-wrap: wrap; min-height: auto; padding: 0.85rem 1rem; }
    .fzm-site-header.header-layout-one-row .fzm-nav-container { flex: 1 1 100%; }
    .fzm-site-header.header-layout-one-row .fzm-nav-menu { justify-content: flex-start !important; }
}
.fzm-brand-bar {
    padding: 0.85rem 0;
    border-bottom: 1px solid #eaecf4;
    background-color: #fff;
}
.fzm-brand-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.fzm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary) !important;
    letter-spacing: 0.5px;
    text-align: left;
}
.fzm-brand:hover { color: #224abe !important; }
.fzm-brand .brand-logo { height: 34px; width: auto; }
.fzm-brand::before { display: none; }
.fzm-brand-sep {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: #e3e6f0;
}
.fzm-brand-sub {
    color: var(--gray-500);
    font-size: 0.85rem;
    max-width: 480px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.fzm-brand-status {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--gray-500);
}
.fzm-status-dot {
    width: 8px; height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    position: relative;
    animation: fzm-pulse 2s infinite;
}
.fzm-status-dot::after {
    content: '';
    position: absolute; inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--success);
    opacity: 0;
    animation: fzm-pulse-ring 2s infinite;
}
.fzm-status-text {
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: fzm-blink 3s infinite;
}
@keyframes fzm-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(28, 177, 68, 0.5); }
    50% { box-shadow: 0 0 0 4px rgba(28, 177, 68, 0); }
}
@keyframes fzm-pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}
@keyframes fzm-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.fzm-brand-cursor { display: none; }

/* 导航：原生 navbar，居中菜单 */
.top-navbar {
    background-color: #fff !important;
    padding: 0;
}
.fzm-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.fzm-nav-menu {
    width: 100%;
    justify-content: center !important;
    flex-wrap: wrap;
}
.top-navbar .nav-link {
    color: var(--gray-900) !important;
    font-weight: 400;
    font-size: 0.92rem;
    padding: 0.85rem 1.1rem !important;
    position: relative;
    transition: color 0.15s ease-in-out;
}
.top-navbar .nav-link:hover { color: var(--primary) !important; }
.top-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem; right: 1rem; bottom: 0.35rem;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--primary), #6a8dee);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}
.top-navbar .nav-link:hover::after {
    transform: scaleX(1);
}
.top-navbar .nav-link.active,
.top-navbar .nav-item.dropdown.active > .nav-link {
    color: var(--primary) !important;
    font-weight: 700;
}
.top-navbar .nav-link.active::after,
.top-navbar .nav-item.dropdown.active > .nav-link::after {
    display: none;
}
.nav-link .nav-emoji { margin-right: 0.3rem; opacity: 0.7; transition: opacity 0.15s ease; }
.top-navbar .nav-link.active .nav-emoji,
.top-navbar .nav-item.dropdown.active > .nav-link .nav-emoji {
    opacity: 1;
}
.nav-link .nav-caret {
    margin-left: 0.25rem;
    opacity: 0.5;
    transition: transform 0.15s;
}
.nav-item.dropdown:hover .nav-caret { transform: rotate(180deg); }

/* 登录按钮：原生 btn-outline-primary */
.nav-item-login .nav-link-login {
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    border-radius: 0.35rem;
    padding: 0.35rem 1rem !important;
    margin: 0.3rem 0.5rem;
    transition: all 0.15s ease-in-out;
}
.nav-item-login .nav-link-login:hover {
    background-color: var(--primary);
    color: #fff !important;
}

/* 二级菜单：原生 dropdown */
.top-navbar .dropdown-menu {
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 0;
    margin-top: 0;
}
.top-navbar .dropdown-item {
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
    color: var(--gray-800);
    border-bottom: 1px solid #eaecf4;
}
.top-navbar .dropdown-item:last-child { border-bottom: 0; }
.top-navbar .dropdown-item:hover {
    background-color: var(--primary);
    color: #fff;
}
.dropdown-menu-head, .dropdown-menu-foot { display: none; }
.dropdown-emoji { margin-right: 0.4rem; opacity: 0.7; }

/* 二级菜单：hover 显示（Bootstrap 默认 click，这里改为 hover） */
.top-navbar .nav-item.dropdown { position: relative; }
.top-navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.top-navbar .nav-item.dropdown > .dropdown-toggle::after { display: none; }
@media (max-width: 991.98px) {
    .top-navbar .nav-item.dropdown:hover > .dropdown-menu { display: none; }
    .top-navbar .nav-item.dropdown.show > .dropdown-menu { display: block; position: static; float: none; width: 100%; box-shadow: none; }
}

/* ===== 首页 Hero：默认风格（simple） ===== */
.home-hero-section {
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
    padding: 3.5rem 0;
    text-align: center;
}
.home-quote-text {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--gray-800);
    max-width: 760px;
    margin: 0 auto 0.5rem;
}
.home-quote-text.single-line { font-size: 1.7rem; }
.home-quote-author {
    font-size: 0.88rem;
    color: var(--gray-500);
}
.home-search-box { max-width: 560px; margin-left: auto; margin-right: auto; margin-bottom: 0; }
.home-search-form {
    display: flex;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.08);
}
.home-search-form input {
    flex: 1;
    border: 0;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    color: var(--gray-800);
    background-color: transparent;
}
.home-search-form input:focus { outline: none; }
.home-search-form input::placeholder { color: var(--gray-500); }
.home-search-form button {
    border: 0;
    background-color: var(--primary);
    color: #fff;
    padding: 0 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}
.home-search-form button:hover { background-color: #224abe; }

/* ===== Hero：6 套可切换风格 ===== */

/* 风格2：学术书卷 */
.home-hero-section.hero-style-academic {
    background-color: #faf8f2;
    border-bottom: 1px solid #e6dcc8;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(109,76,65,0.04) 0, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(109,76,65,0.04) 0, transparent 40%);
}
.home-hero-section.hero-style-academic .home-quote-text {
    font-family: "Noto Serif SC", "STSong", "SimSun", "Source Han Serif", serif;
    color: #3e2f23;
    font-weight: 600;
    letter-spacing: 0.4px;
}
.home-hero-section.hero-style-academic .home-quote-author { color: #8c6b4f; }
.home-hero-section.hero-style-academic .home-search-form {
    border: 1px solid #d6c6a8;
    border-radius: 0.25rem;
    background-color: #fffdf7;
    box-shadow: 0 1px 6px rgba(109,76,65,0.06);
}
.home-hero-section.hero-style-academic .home-search-form button {
    background-color: #6D4C41;
}
.home-hero-section.hero-style-academic .home-search-form button:hover { background-color: #4e362d; }

/* 风格3：蓝紫渐变 */
.home-hero-section.hero-style-gradient {
    background: linear-gradient(135deg, #4e73df 0%, #6f42c1 100%);
    border-bottom: 0;
}
.home-hero-section.hero-style-gradient .home-quote-text {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.home-hero-section.hero-style-gradient .home-quote-author { color: rgba(255,255,255,0.82); }
.home-hero-section.hero-style-gradient .home-search-form {
    border: 0;
    border-radius: 999px;
    background-color: rgba(255,255,255,0.96);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.home-hero-section.hero-style-gradient .home-search-form button {
    background: linear-gradient(135deg, #4e73df, #6f42c1);
}
.home-hero-section.hero-style-gradient .home-search-form button:hover { filter: brightness(1.08); }

/* 风格4：暖色柔光 */
.home-hero-section.hero-style-warm {
    background: linear-gradient(180deg, #fff8f1 0%, #ffe7d2 100%);
    border-bottom: 1px solid #f4d5b8;
}
.home-hero-section.hero-style-warm .home-quote-text {
    color: #7c3b0d;
}
.home-hero-section.hero-style-warm .home-quote-author { color: #b26b3a; }
.home-hero-section.hero-style-warm .home-search-form {
    border: 1px solid #f1c99c;
    background-color: #fffaf4;
    box-shadow: 0 4px 16px rgba(217, 141, 74, 0.12);
}
.home-hero-section.hero-style-warm .home-search-form button {
    background-color: #e67e22;
}
.home-hero-section.hero-style-warm .home-search-form button:hover { background-color: #c96912; }

/* 风格5：暗夜科技 */
.home-hero-section.hero-style-dark {
    background: linear-gradient(135deg, #1d2738 0%, #0f1624 100%);
    border-bottom: 0;
    position: relative;
}
.home-hero-section.hero-style-dark::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(128,222,234,0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 65% 70%, rgba(128,222,234,0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 80% 20%, rgba(78,115,223,0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 30% 80%, rgba(78,115,223,0.5) 50%, transparent 100%);
    background-size: 240px 240px;
    opacity: 0.6;
}
.home-hero-section.hero-style-dark > .container { position: relative; z-index: 1; }
.home-hero-section.hero-style-dark .home-quote-text {
    color: #e0f2fe;
    text-shadow: 0 0 16px rgba(128,222,234,0.35);
}
.home-hero-section.hero-style-dark .home-quote-author { color: #93c5fd; }
.home-hero-section.hero-style-dark .home-search-form {
    border: 1px solid rgba(128,222,234,0.35);
    background-color: rgba(15, 22, 36, 0.6);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(128, 222, 234, 0.15);
}
.home-hero-section.hero-style-dark .home-search-form input {
    color: #e0f2fe;
}
.home-hero-section.hero-style-dark .home-search-form input::placeholder { color: rgba(147,197,253,0.65); }
.home-hero-section.hero-style-dark .home-search-form button {
    background: linear-gradient(135deg, #06b6d4, #4e73df);
}
.home-hero-section.hero-style-dark .home-search-form button:hover { filter: brightness(1.15); }

/* 风格6：独立卡片 */
.home-hero-section.hero-style-card {
    background-color: #f8f9fc;
    border-bottom: 1px solid #eaecf4;
}
.home-hero-section.hero-style-card > .container > * {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}
.home-hero-section.hero-style-card .home-quote-text,
.home-hero-section.hero-style-card .home-quote-author,
.home-hero-section.hero-style-card .home-search-box {
    background-color: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 0.6rem;
    box-shadow: 0 4px 18px rgba(58,59,69,0.05);
    padding: 1.8rem 2rem;
}
.home-hero-section.hero-style-card .home-quote-text { margin-bottom: 1rem; }
.home-hero-section.hero-style-card .home-quote-author {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1rem;
}
.home-hero-section.hero-style-card .home-search-box {
    padding: 1.2rem 1.5rem;
}

/* ===== 首页板块标题 ===== */
.home-section-header { text-align: center; margin-bottom: 2.5rem; }
.home-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 0.4rem;
}
.home-section-title::after {
    content: '';
    display: block;
    width: 40px; height: 3px;
    background-color: var(--primary);
    margin: 0.6rem auto 0;
    border-radius: 0.2rem;
}
.home-section-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 0;
}
/* 首页栏目区 */
.home-categories-section { padding: 3rem 0; }

/* ===== 列表页头 ===== */
.list-page-wrap { padding: 2rem 0 0; }
.list-page-header {
    background-color: #fff;
    border: 1px solid #e3e6f0;
    border-left: 4px solid var(--primary);
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.08);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.list-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}
.list-page-header p {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin: 0;
}

/* ===== 首页栏目卡片（原生 card） ===== */
.home-category-card {
    display: block;
    background-color: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    overflow: hidden;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.08);
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: 100%;
    color: var(--gray-800);
}
.home-category-card:hover {
    text-decoration: none;
    color: var(--gray-800);
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.15);
}
.home-category-cover img { width: 100%; height: 170px; object-fit: cover; }
.home-category-info { padding: 1.1rem 1.2rem; }
.home-category-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--gray-800);
}
.home-category-desc {
    font-size: 0.84rem;
    color: var(--gray-500);
    margin-bottom: 0.7rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-category-arrow { font-size: 0.82rem; color: var(--primary); font-weight: 600; }
.home-category-count-badge {
    position: absolute; top: 0; right: 0;
    font-size: 0.75rem;
    color: #fff;
    background-color: var(--primary);
    padding: 0.2rem 0.6rem;
    font-weight: 600;
}
.home-category-cover { position: relative; }
.home-category-cover-overlay, .home-category-card .cat-corner { display: none; }

/* ===== 文章列表 ===== */
.article-list-section { padding: 2.5rem 0; }
.article-card {
    background-color: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.15);
}
.card-corner, .card-idx-label, .card-cover-scan,
.article-card::before, .article-card::after { display: none; }
.card-cover-wrap { display: block; position: relative; overflow: hidden; }
.article-card .card-cover {
    width: 100%; height: 220px; object-fit: cover;
    transition: transform 0.3s ease-in-out;
}
.article-card:hover .card-cover { transform: scale(1.03); }
.card-cover-wrap::after, .card-cover-readmore { display: none; }
.article-card .card-body { padding: 1.5rem 1.75rem; }
.article-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}
.article-card .card-title::before { display: none; }
.article-card .card-title a { color: var(--gray-800); }
.article-card .card-title a:hover { color: var(--primary); }
.article-card .card-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaecf4;
}
.article-card .card-meta a { color: var(--gray-500); }
.article-card .card-meta a:hover { color: var(--primary); }
.article-card .card-excerpt {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 1.2rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card .card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.article-card .card-tags a {
    font-size: 0.76rem;
    color: var(--primary);
    padding: 0.25rem 0.65rem;
    border: 1px solid #cdd8f6;
    border-radius: 0.35rem;
    background-color: #eaecf8;
    transition: all 0.15s ease-in-out;
}
.article-card .card-tags a::before { content: '#'; margin-right: 0.15rem; }
.article-card .card-tags a:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.card-readmore-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.84rem; font-weight: 600;
    color: var(--primary);
    padding: 0.4rem 1.1rem;
    border: 1px solid var(--primary);
    border-radius: 0.35rem;
    background-color: transparent;
    transition: all 0.15s ease-in-out;
}
.card-readmore-btn svg { transition: transform 0.15s; }
.card-readmore-btn:hover {
    background-color: var(--primary);
    color: #fff;
}
.card-readmore-btn:hover svg { transform: translateX(3px); }

/* 空状态 */
.empty-state {
    text-align: center; padding: 4rem 1.5rem;
    color: var(--gray-500);
    border: 1px dashed #d1d3e2;
    background-color: #fff;
    border-radius: 0.35rem;
}
.empty-icon { font-size: 3rem; color: var(--gray-400); margin-bottom: 0.8rem; }
.empty-state p { font-size: 1.05rem; margin-bottom: 0.3rem; color: var(--gray-600); }
.empty-hint { font-size: 0.8rem; color: var(--gray-500); }

/* ===== 分页 ===== */
.pagination-wrap { margin: 2.5rem 0; text-align: center; }
.pagination-wrap nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.pagination-wrap a, .pagination-wrap span, .pagination-wrap em {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.2rem; height: 2.2rem; padding: 0 0.6rem;
    border: 1px solid #d1d3e2; border-radius: 0.35rem;
    font-size: 0.88rem; color: var(--primary);
    background-color: #fff;
    transition: all 0.15s ease-in-out;
    text-decoration: none; line-height: 1;
}
.pagination-wrap span {
    background-color: var(--primary); color: #fff;
    border-color: var(--primary); font-weight: 700;
}
.pagination-wrap a:hover {
    background-color: var(--primary); color: #fff; border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 0.15rem 0.5rem 0 rgba(78, 115, 223, 0.2);
}
.pagination-wrap em {
    border: 0; background: none; color: var(--gray-500);
    min-width: auto; cursor: default;
}
/* 兼容 Bootstrap pagination（如有） */
.pagination { margin: 2.5rem 0; justify-content: center; }
.pagination .page-item .page-link {
    border-radius: 0.35rem;
    color: var(--primary);
    margin: 0 0.15rem;
}
.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===== 文章详情 ===== */
.article-detail-wrap { padding-top: 2rem; }
.article-detail-card {
    background-color: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.08);
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
}
.article-detail-header { text-align: center; }
.article-detail-card h1, .article-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.2rem;
    line-height: 1.5;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #eaecf4;
    text-align: center;
}
.article-detail-meta {
    display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: center;
    font-size: 0.84rem;
    color: var(--gray-500);
    margin-bottom: 2.5rem;
}
.article-detail-body {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--gray-800);
    max-width: 760px;
    margin: 0 auto;
}
.article-detail-body p { margin-bottom: 1.2rem; }
.article-detail-body h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1.2rem;
    padding-left: 0.9rem;
    border-left: 4px solid var(--primary);
}
.article-detail-body h3 { font-size: 1.2rem; margin: 1.8rem 0 1rem; }
.article-detail-body h4 { font-size: 1.05rem; margin: 1.5rem 0 0.8rem; }
.article-detail-body a { color: var(--primary); }
.article-detail-body img {
    max-width: 100%; height: auto;
    border: 1px solid #e3e6f0;
    border-radius: 0.5rem;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 0.2rem 0.8rem 0 rgba(58, 59, 69, 0.1);
    padding: 4px;
    background-color: #fff;
}
.article-detail-body blockquote {
    margin: 1.8rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary);
    background-color: #f8f9fc;
    color: var(--gray-600);
    border-radius: 0 0.35rem 0.35rem 0;
    font-size: 0.95rem;
}
.article-detail-body code {
    background-color: #f8f9fc;
    color: var(--primary);
    padding: 0.15rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.88em;
}
.article-detail-body pre {
    background-color: #5a5c69;
    color: #f8f9fc;
    border-radius: 0.35rem;
    padding: 1.2rem 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.88rem;
}
.article-detail-body pre code { background: none; color: inherit; padding: 0; }
.article-detail-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-detail-body th, .article-detail-body td { border: 1px solid #e3e6f0; padding: 0.7rem 1rem; }
.article-detail-body th { background-color: #f8f9fc; font-weight: 700; }
.article-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaecf4;
    text-align: center;
}
.article-tags .tag-label { font-size: 0.84rem; color: var(--gray-500); margin-right: 0.6rem; }
.article-tags a {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    padding: 0.25rem 0.7rem;
    margin: 0.3rem 0.4rem 0.3rem 0;
    border: 1px solid #cdd8f6;
    border-radius: 0.35rem;
    background-color: #eaecf8;
    transition: all 0.15s ease-in-out;
}
.article-tags a:hover { background-color: var(--primary); color: #fff; border-color: var(--primary); }
.article-bottom-info {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px dashed #d1d3e2;
}

/* ===== 侧边栏（原生 card 风格） ===== */
.sidebar, .blog-sidebar { padding-left: 1.5rem; }
@media (max-width: 991.98px) { .sidebar, .blog-sidebar { padding-left: 0; margin-top: 2.5rem; } }
.sidebar-widget {
    background-color: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.sidebar-widget .widget-title,
.fzm-widget-head {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    padding: 0.9rem 1.3rem;
    margin: 0;
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}
.sidebar-widget .widget-title::before,
.fzm-widget-head::before { display: none; }
.sidebar-widget .widget-content { padding: 1.1rem 1.3rem; }
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eaecf4;
}
.sidebar-widget li:last-child { border-bottom: 0; }
.sidebar-widget li a {
    color: var(--gray-700);
    font-size: 0.9rem;
}
.sidebar-widget li a:hover { color: var(--primary); }

/* Widget: 博主信息 */
.widget-blogger .blogger-info { padding: 1.3rem; text-align: center; }
.widget-blogger .blogger-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e3e6f0, 0 0.15rem 0.5rem 0 rgba(58, 59, 69, 0.12);
    margin-bottom: 0.6rem;
}
.widget-blogger .blogger-name { font-size: 1.05rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.3rem; }
.widget-blogger .blogger-desc { font-size: 0.82rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 0.8rem; }
.widget-blogger .blogger-stats {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 0.4rem;
    margin: 0.8rem 0;
    padding: 0.5rem;
    background-color: #f8f9fc;
    border-radius: 0.4rem;
    border: 1px solid #eaecf4;
}
.widget-blogger .blogger-stat-item {
    flex: 1; text-align: center;
    padding: 0.6rem 0.3rem;
    background-color: #fff;
    border-radius: 0.35rem;
    border: 1px solid #eaecf4;
    transition: border-color 0.15s ease-in-out;
}
.widget-blogger .blogger-stat-item:hover { border-color: var(--primary); }
.widget-blogger .blogger-stat-num {
    display: block; font-size: 1.15rem; font-weight: 700;
    color: var(--primary); line-height: 1.3;
}
.widget-blogger .blogger-stat-label { font-size: 0.72rem; color: var(--gray-500); }
.widget-blogger .blogger-stat-divider { display: none; }
.widget-blogger .blogger-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem; }
.widget-blogger .blogger-social-link {
    width: 32px; height: 32px; border: 1px solid #e3e6f0; border-radius: 0.35rem;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--gray-500); background-color: #fff; transition: all 0.15s ease-in-out;
}
.widget-blogger .blogger-social-link:hover { background-color: var(--primary); color: #fff; border-color: var(--primary); }

/* Widget: 搜索 */
.widget-search .widget-content, .widget-search form { padding: 0; }
.widget-search .search-form { display: flex; padding: 1.1rem 1.3rem; gap: 0.5rem; }
.widget-search .search-input {
    flex: 1; border: 1px solid #d1d3e2; border-radius: 0.35rem;
    padding: 0.5rem 0.75rem; font-size: 0.88rem; color: var(--gray-800);
    background-color: #fff; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.widget-search .search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25); }
.widget-search .search-btn {
    border: 0; background-color: var(--primary); color: #fff;
    border-radius: 0.35rem; padding: 0.5rem 0.8rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color 0.15s ease-in-out;
}
.widget-search .search-btn:hover { background-color: #224abe; }
.widget-search .search-btn svg { width: 16px; height: 16px; }

/* Widget: 最新/热门文章列表 */
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list .widget-list-item {
    display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
    padding: 0.6rem 1.3rem; border-bottom: 1px solid #eaecf4;
}
.widget-list .widget-list-item:last-child { border-bottom: 0; }
.widget-list .widget-list-link {
    flex: 1; font-size: 0.88rem; color: var(--gray-700);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color 0.15s ease-in-out;
}
.widget-list .widget-list-link:hover { color: var(--primary); }
.widget-list .widget-list-date { font-size: 0.76rem; color: var(--gray-500); white-space: nowrap; }
/* 热门排名：所有项都有统一样式，前3名特殊高亮 */
.widget-hotlog .widget-list-item { position: relative; padding: 0.6rem 1.3rem 0.6rem 2.8rem; }
.hot-rank {
    position: absolute; left: 1.3rem; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; border-radius: 0.3rem;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.74rem; font-weight: 700; color: #fff;
    background-color: var(--gray-400);
    box-shadow: 0 0.15rem 0.3rem 0 rgba(58, 59, 69, 0.15);
}
.hot-rank.rank-1 { background-color: #e74a3b; }
.hot-rank.rank-2 { background-color: #f6c23e; color: #5a5c69; }
.hot-rank.rank-3 { background-color: #36b9cc; }
.hot-rank.rank-4, .hot-rank.rank-5 { background-color: #858796; }

/* Widget: 分类树 */
.widget-sort-list { list-style: none; padding: 0; margin: 0; }
.widget-sort-item { border-bottom: 1px solid #eaecf4; }
.widget-sort-item:last-child { border-bottom: 0; }
.widget-sort-row {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 1.3rem; transition: background-color 0.15s ease-in-out;
}
.widget-sort-row:hover { background-color: #f8f9fc; }
.widget-sort-toggle {
    cursor: pointer; display: inline-flex; align-items: center;
    color: var(--gray-500); transition: transform 0.15s ease-in-out, color 0.15s ease-in-out;
    flex-shrink: 0;
}
.widget-sort-toggle:hover { color: var(--primary); }
.widget-sort-item.expanded > .widget-sort-row > .widget-sort-toggle svg { transform: rotate(90deg); }
.widget-sort-dot { width: 6px; height: 6px; border-radius: 50%; background-color: var(--gray-400); flex-shrink: 0; margin-left: 3px; }
.widget-sort-link { flex: 1; font-size: 0.88rem; color: var(--gray-700); transition: color 0.15s ease-in-out; }
.widget-sort-link:hover { color: var(--primary); }
.widget-sort-count { font-size: 0.76rem; color: var(--gray-500); background-color: #f8f9fc; padding: 0.1rem 0.45rem; border-radius: 0.2rem; }
.widget-sort-children { list-style: none; padding: 0; margin: 0; }
.widget-sort-item.active > .widget-sort-row > .widget-sort-link { color: var(--primary); font-weight: 700; }

/* Widget: 标签云 */
.widget-tag .tag-cloud { padding: 0.6rem 1.3rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.widget-tag .tag-item {
    display: inline-block;
    font-size: 0.82rem !important; color: var(--gray-600);
    padding: 0.25rem 0.7rem;
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0; border-radius: 0.3rem;
    transition: all 0.15s ease-in-out; line-height: 1.6;
    text-decoration: none;
}
.widget-tag .tag-item:hover {
    color: var(--primary); border-color: var(--primary); background-color: #fff;
    text-decoration: none;
}

/* Widget: 最新评论 */
.widget-newcomm ul, .widget-newcomm .comment-list, .widget-newcomm .widget-list {
    list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.widget-newcomm .comment-widget-item {
    display: flex; align-items: flex-start; gap: 0.7rem;
    padding: 0.8rem 1.3rem; border-bottom: 1px solid #eaecf4;
}
.widget-newcomm .comment-widget-item:last-child { border-bottom: 0; }
.comment-widget-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 0 0 1px #e3e6f0; }
.comment-widget-body { flex: 1; min-width: 0; }
.comment-widget-name { font-size: 0.82rem; font-weight: 700; color: var(--gray-700); display: block; margin-bottom: 0.25rem; }
.comment-widget-content {
    font-size: 0.8rem; color: var(--gray-500); line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    transition: color 0.15s ease-in-out;
}
.comment-widget-content:hover { color: var(--primary); }

/* Widget: 归档 */
.widget-archive { }
.widget-archive .archive-select {
    display: block; width: 100%;
    border: 1px solid #d1d3e2; border-radius: 0.35rem;
    padding: 0.55rem 0.9rem; margin: 0;
    font-size: 0.88rem; color: var(--gray-700);
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23858796' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.2rem;
}
.widget-archive .archive-select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}
.widget-archive .archive-select option { padding: 0.4rem; }

/* Widget: 链接（边栏内） */
.widget-link .widget-list, .widget-link .link-list {
    list-style: none; padding: 0.6rem 1.3rem; margin: 0;
    display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.widget-link .link-item { padding: 0; border: 0; }
.widget-link .link-item a {
    display: inline-block; font-size: 0.82rem; color: var(--gray-600);
    padding: 0.25rem 0.7rem;
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0; border-radius: 0.3rem;
    transition: all 0.15s ease-in-out;
}
.widget-link .link-item a:hover {
    color: var(--primary); border-color: var(--primary); background-color: #fff;
}

/* Widget: 日历 */
.widget-calendar #calendar { padding: 1rem 1.3rem 1.3rem; }
.widget-calendar .calendartop {
    width: 100%; margin-bottom: 0.6rem; border-collapse: collapse;
}
.widget-calendar .calendartop td {
    text-align: center; padding: 0.4rem 0.2rem;
    font-size: 0.86rem; font-weight: 700; color: var(--gray-700);
    background-color: #f8f9fc; border-radius: 0.35rem;
}
.widget-calendar .calendartop a {
    color: var(--primary); padding: 0.15rem 0.5rem;
    border-radius: 0.25rem; transition: all 0.15s ease-in-out;
    display: inline-block; line-height: 1.4;
}
.widget-calendar .calendartop a:hover { background-color: var(--primary); color: #fff; }
.widget-calendar .calendar { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.widget-calendar .calendar td, .widget-calendar .calendar th {
    text-align: center; padding: 0.35rem 0.1rem; border-radius: 0.25rem;
    transition: background-color 0.15s ease-in-out;
}
.widget-calendar .calendar .week {
    color: var(--gray-500); font-weight: 700; font-size: 0.76rem;
    border-bottom: 2px solid #eaecf4; padding-bottom: 0.5rem;
}
.widget-calendar .calendar .sun { color: var(--danger); font-weight: 700; }
.widget-calendar .calendar td a {
    color: var(--primary); font-weight: 700;
    display: inline-block; width: 26px; height: 26px; line-height: 26px;
    border-radius: 50%; transition: all 0.15s ease-in-out;
}
.widget-calendar .calendar td a:hover {
    background-color: var(--primary); color: #fff; text-decoration: none;
}
.widget-calendar .calendar .day {
    background-color: rgba(78, 115, 223, 0.12); color: var(--primary);
    font-weight: 700; border-radius: 50%;
}
.widget-calendar .calendar .day2 a {
    background-color: var(--primary); color: #fff;
}
.widget-calendar .calendar .day2 a:hover { background-color: #224abe; }
/* 今日无文章也高亮 */
.widget-calendar .calendar .day:not(.day2) {
    background-color: rgba(255, 159, 64, 0.15); color: var(--warning);
}

/* Widget: 微语/Twitter */
.widget-twitter .widget-list, .widget-twitter .twitter-list { padding: 0; margin: 0; list-style: none; }
.widget-twitter .twitter-item {
    padding: 0.8rem 1.3rem; border-bottom: 1px solid #eaecf4;
}
.widget-twitter .twitter-item:last-child { border-bottom: 0; }
.widget-twitter .twitter-content {
    font-size: 0.86rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 0.4rem;
    word-break: break-word;
}
.widget-twitter .twitter-meta { font-size: 0.74rem; color: var(--gray-500); }

/* Widget: 自定义 */
.widget-custom .widget-content { padding: 1.1rem 1.3rem; font-size: 0.88rem; color: var(--gray-600); line-height: 1.7; }
.widget-custom .widget-content img { max-width: 100%; height: auto; border-radius: 0.35rem; }
.widget-custom .widget-content a { color: var(--primary); }

/* 侧边栏统计卡片（兼容旧class） */
.sidebar-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.sidebar-stat-item {
    text-align: center;
    padding: 0.9rem 0.5rem;
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
}
.sidebar-stat-num { font-size: 1.35rem; color: var(--primary); font-weight: 700; }
.sidebar-stat-label { font-size: 0.74rem; color: var(--gray-500); }

.sidebar-social { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sidebar-social a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e3e6f0; border-radius: 0.35rem;
    color: var(--gray-500);
    background-color: #fff;
    transition: all 0.15s ease-in-out;
}
.sidebar-social a:hover { background-color: var(--primary); color: #fff; border-color: var(--primary); }
.sidebar-social svg { width: 16px; height: 16px; }

/* ===== 相邻文章 ===== */
.neighbor-log {
    display: flex; gap: 1rem; margin: 2.5rem 0;
}
.neighbor-log::after { display: none; }
.neighbor-item {
    flex: 1; min-width: 0; overflow: hidden;
    display: flex; flex-direction: column; gap: 0.4rem;
    padding: 1rem 1.2rem;
    background-color: #fff;
    border: 1px solid #e3e6f0; border-radius: 0.35rem;
    box-shadow: 0 0.15rem 0.7rem 0 rgba(58, 59, 69, 0.07);
    transition: all 0.15s ease-in-out; text-decoration: none;
}
.neighbor-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0.3rem 1rem 0 rgba(78, 115, 223, 0.15);
    transform: translateY(-2px);
}
.neighbor-item.next { text-align: right; align-items: flex-end; }
.neighbor-dir {
    font-size: 0.76rem; font-weight: 700; color: var(--primary);
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.neighbor-item.prev .neighbor-dir::before { content: '←'; }
.neighbor-item.next .neighbor-dir::after { content: '→'; }
.neighbor-title {
    font-size: 0.92rem; color: var(--gray-700); font-weight: 600;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.neighbor-item:hover .neighbor-title { color: var(--primary); }
@media (max-width: 575.98px) {
    .neighbor-log { flex-direction: column; }
    .neighbor-item.next { text-align: left; align-items: flex-start; }
}

/* ===== 文章底部标签 ===== */
.article-detail-tags {
    margin: 1.8rem 0 0; padding-top: 1.2rem;
    border-top: 1px solid #eaecf4;
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.article-detail-tags::before {
    content: '🏷️'; font-size: 0.9rem; opacity: 0.6; margin-right: 0.2rem;
}
.article-detail-tags .article-tag,
.article-detail-tags a {
    display: inline-block;
    font-size: 0.82rem; color: var(--primary);
    padding: 0.25rem 0.7rem;
    background-color: #eaecf8;
    border: 1px solid #cdd8f6;
    border-radius: 0.3rem;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
}
.article-detail-tags .article-tag::before,
.article-detail-tags a::before { content: '#'; margin-right: 0.15rem; }
.article-detail-tags .article-tag:hover,
.article-detail-tags a:hover {
    background-color: var(--primary); color: #fff; border-color: var(--primary);
}

/* ===== 评论区 ===== */
.comments-section { margin-top: 2.5rem; }
.comments-title {
    font-size: 1.25rem; font-weight: 700;
    color: var(--gray-800);
    padding-bottom: 0.9rem; margin-bottom: 1.8rem;
    border-bottom: 1px solid #e3e6f0;
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-item {
    display: flex; gap: 0.9rem;
    padding: 1.2rem 0; border-bottom: 1px solid #eaecf4;
}
.comment-item:last-child { border-bottom: 0; }
.comment-avatar-wrap { flex-shrink: 0; }
.comment-avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #e3e6f0; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.3rem; }
.comment-author { font-weight: 700; color: var(--gray-800); font-size: 0.94rem; }
.comment-time { color: var(--gray-500); font-size: 0.78rem; }
.comment-reply-to { font-size: 0.78rem; color: var(--gray-500); }
.comment-reply-to .reply-target { color: var(--primary); font-weight: 600; }
.comment-content { color: var(--gray-600); font-size: 0.92rem; line-height: 1.85; word-break: break-word; }
.comment-actions { margin-top: 0.5rem; }
/* 回复按钮 */
.com-reply {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; font-weight: 600; color: var(--gray-500);
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0;
    padding: 0.25rem 0.8rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}
.com-reply::before { content: '↩'; font-size: 0.9rem; }
.com-reply:hover {
    color: #fff; background-color: var(--primary); border-color: var(--primary);
}
.comment-children {
    list-style: none; padding: 0; padding-left: 2.5rem;
    margin-top: 1rem; border-left: 2px solid #e3e6f0;
}

/* ===== 评论表单 ===== */
.comment-post-section {
    margin-top: 2.5rem;
    padding: 1.8rem;
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 0.5rem;
}
.comment-post-title {
    font-size: 1.15rem; font-weight: 700; color: var(--gray-800);
    margin-bottom: 1.2rem; padding-bottom: 0.8rem;
    border-bottom: 1px dashed #d1d3e2;
}
.comment-form { margin-top: 0; }
.comment-textarea {
    width: 100%;
    border: 1px solid #d1d3e2;
    border-radius: 0.4rem;
    padding: 0.9rem 1rem;
    background-color: #fff;
    color: var(--gray-800);
    font-size: 0.92rem;
    line-height: 1.7;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    resize: vertical;
    min-height: 110px;
}
.comment-textarea:focus, .comment-form input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.18);
}
.comment-fields {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.7rem; margin-top: 0.8rem;
}
.comment-fields input {
    width: 100%;
    border: 1px solid #d1d3e2; border-radius: 0.4rem;
    padding: 0.6rem 0.9rem;
    background-color: #fff; color: var(--gray-800);
    font-size: 0.88rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.comment-captcha {
    display: flex; align-items: center; gap: 0.6rem;
    margin-top: 0.8rem; flex-wrap: wrap;
}
.comment-captcha img { height: 36px; cursor: pointer; border-radius: 0.3rem; }
.comment-captcha input {
    width: 120px; margin: 0;
    border: 1px solid #d1d3e2; border-radius: 0.4rem;
    padding: 0.55rem 0.8rem; font-size: 0.88rem;
    background-color: #fff; color: var(--gray-800);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.comment-captcha input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.18);
}
.comment-submit-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 0.8rem; margin-top: 1rem; flex-wrap: wrap;
}
.comment-submit-row a { color: var(--primary); font-weight: 600; }
#comment_submit {
    background-color: var(--primary); color: #fff;
    border: 0; padding: 0.6rem 1.8rem;
    border-radius: 0.4rem; font-size: 0.9rem; font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}
#comment_submit:hover { background-color: #224abe; transform: translateY(-1px); }
#cancel-reply {
    background-color: #f8f9fc; color: var(--gray-600);
    border: 1px solid #d1d3e2; padding: 0.6rem 1.2rem;
    border-radius: 0.4rem; font-size: 0.88rem;
    cursor: pointer; transition: all 0.15s ease-in-out;
}
#cancel-reply:hover { background-color: #eaecf4; color: var(--gray-800); }

/* ===== 页脚 ===== */
.site-footer {
    background-color: #fff;
    border-top: 1px solid #e3e6f0;
    padding: 3rem 0 1.8rem;
    color: var(--gray-500);
    margin-top: 2.5rem;
    box-shadow: 0 -0.15rem 1rem 0 rgba(58, 59, 69, 0.05);
}
.footer-data-stream { display: none; }
.footer-stats {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 2rem; margin-bottom: 2.2rem; padding-bottom: 1.8rem;
    border-bottom: 1px solid #eaecf4;
}
.footer-stats.no-border {
    border-bottom: none;
    padding-bottom: 0;
}
.footer-stat-num { font-size: 1.6rem; color: var(--primary); font-weight: 700; }
.footer-stat-label { font-size: 0.78rem; color: var(--gray-500); }
.footer-stat-divider { color: var(--gray-400); }
.footer-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.8rem; }
.footer-social-link {
    width: 40px; height: 40px;
    border: 1px solid #e3e6f0; border-radius: 0.35rem;
    color: var(--gray-500);
    background-color: #fff;
    transition: all 0.15s ease-in-out;
    display: inline-flex; align-items: center; justify-content: center;
}
.footer-social-link:hover { background-color: var(--primary); color: #fff; border-color: var(--primary); }
.footer-social-link svg { width: 18px; height: 18px; }
.footer-brand { text-align: center; margin-bottom: 1.2rem; }
.footer-brand-name { display: block; font-size: 1.15rem; color: var(--gray-800); font-weight: 700; }
.footer-brand-desc { display: block; font-size: 0.84rem; color: var(--gray-500); margin-top: 0.4rem; }
.footer-desc { display: block; font-size: 0.84rem; color: var(--gray-500); margin-top: 0.4rem; }
.footer-custom-html { margin-bottom: 1.5rem; }
.footer-links-outer {
    margin: 2rem 0 0;
    padding: 0;
    background: none;
    border-top: 0;
}
.footer-links-outer .container {
    max-width: 1140px;
    background-color: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 0.8rem 0 rgba(58, 59, 69, 0.06);
    padding: 1.5rem 1.8rem;
}
.footer-links-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px dashed #d1d3e2;
}
.footer-links-header .widget-title {
    font-size: 1.15rem; font-weight: 700; color: var(--gray-800);
    margin: 0; padding: 0; border: 0; background: none;
    position: relative; padding-left: 0.9rem;
}
.footer-links-header .widget-title::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 1rem; background-color: var(--primary); border-radius: 0.2rem;
}
.footer-links-apply {
    font-size: 0.82rem; color: var(--primary);
    padding: 0.3rem 0.9rem; border: 1px solid var(--primary);
    border-radius: 0.35rem; transition: all 0.15s ease-in-out;
}
.footer-links-apply:hover { background-color: var(--primary); color: #fff; }
.footer-links-list, .footer-links-outer .widget-list.link-list {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
}
.footer-links-outer .link-item { width: 100%; }
.footer-links-outer .widget-list.link-list .link-item a {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.84rem; color: var(--gray-600);
    padding: 0.5rem 0.8rem;
    background-color: #fff;
    border: 1px solid #e3e6f0; border-radius: 0.35rem;
    transition: all 0.15s ease-in-out;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.footer-links-outer .widget-list.link-list .link-item a::before {
    content: '🔗'; font-size: 0.8rem; opacity: 0.6; flex-shrink: 0;
}
.footer-links-outer .widget-list.link-list .link-item a:hover {
    color: var(--primary); border-color: var(--primary);
    box-shadow: 0 0.15rem 0.5rem 0 rgba(78, 115, 223, 0.15);
    transform: translateY(-1px);
}
.footer-copyright {
    text-align: center; font-size: 0.82rem; color: var(--gray-500);
    padding-top: 1.5rem; border-top: 1px solid #eaecf4;
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.35rem;
    line-height: 1.7;
}
.footer-copyright.no-border {
    border-top: none;
    padding-top: 0;
}
.footer-beian { margin-top: 0.6rem; text-align: center; font-size: 0.8rem; color: var(--gray-500); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1rem; line-height: 1.7; }
.footer-beian a { color: var(--gray-500); text-decoration: none; transition: color 0.15s ease; display: inline-flex; align-items: center; gap: 0.3rem; }
.footer-beian a:hover { color: var(--primary); }
.footer-beian-left, .footer-beian-right { font-size: 0.8rem; color: var(--gray-500); }
.footer-copyright-extra { margin: 0.4rem 0; font-size: 0.8rem; color: var(--gray-500); text-align: center; }
.footer-copyright-year { margin: 0 0.3rem; }
.footer-powered { color: var(--gray-500); }
.footer-powered a { color: var(--primary); }
.footer-police-link { display: inline-flex; align-items: center; gap: 0.3rem; line-height: 1; }
.footer-police-icon { width: 14px; height: 14px; vertical-align: middle; display: inline-block; object-fit: contain; }

/* ===== 返回顶部 ===== */
.scroll-to-top {
    position: fixed; right: 1.5rem; bottom: 1.5rem;
    width: 2.8rem; height: 2.8rem;
    background-color: var(--primary);
    color: #fff;
    border: 0; border-radius: 50%;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.3);
    z-index: 1050;
    display: none; cursor: pointer;
    align-items: center; justify-content: center;
    padding: 0;
    transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}
.scroll-to-top::after { display: none; }
.scroll-to-top:hover { background-color: #224abe; transform: translateY(-2px); }

/* ===== 登录弹窗 ===== */
#auth-modal-mask, .auth-modal-mask {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000; display: none;
}
#auth-modal, .auth-modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 92%; max-width: 410px;
    background-color: #fff;
    border: 0;
    border-radius: 0.35rem;
    box-shadow: 0 0.5rem 3rem 0 rgba(58, 59, 69, 0.3);
    z-index: 2001; display: none;
}
.auth-modal-card { position: relative; }
.auth-modal-head {
    padding: 1.3rem;
    border-bottom: 1px solid #e3e6f0;
    display: flex; justify-content: space-between; align-items: center;
    background-color: #f8f9fc;
    border-radius: 0.35rem 0.35rem 0 0;
}
#auth-modal-title, .auth-modal-title {
    font-size: 1.15rem; font-weight: 700; color: var(--gray-800); margin: 0;
}
#auth-modal-close, .auth-modal-close {
    position: absolute; top: 0.9rem; right: 1rem;
    background: none; border: 0; font-size: 1.5rem;
    color: var(--gray-500); cursor: pointer; line-height: 1; padding: 0; z-index: 2;
}
.auth-modal-panel { padding: 1.3rem; }
.auth-form-row { margin-bottom: 0.9rem; }
.auth-modal-panel input,
.auth-form-row input,
.auth-captcha-row input,
.auth-inline-row input {
    width: 100%;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    padding: 0.6rem 0.9rem;
    background-color: #fff;
    color: var(--gray-800);
    font-size: 0.92rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.auth-modal-panel input:focus,
.auth-form-row input:focus,
.auth-captcha-row input:focus,
.auth-inline-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}
.auth-captcha-row { display: flex; gap: 0.6rem; align-items: stretch; }
.auth-captcha-row input { flex: 1; }
.auth-captcha-row img { height: auto; cursor: pointer; border: 1px solid #d1d3e2; border-radius: 0.35rem; }
.auth-inline-row { display: flex; gap: 0.6rem; }
.auth-inline-row input { flex: 1; }
.auth-inline-btn {
    border: 1px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    padding: 0.6rem 0.9rem;
    border-radius: 0.35rem;
    font-size: 0.84rem;
    cursor: pointer; white-space: nowrap;
    transition: all 0.15s ease-in-out;
}
.auth-inline-btn:hover { background-color: var(--primary); color: #fff; }
.auth-inline-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-checkbox { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem; font-size: 0.88rem; color: var(--gray-600); cursor: pointer; }
.auth-checkbox input { width: auto; margin: 0; }
.auth-submit-btn {
    width: 100%; border: 0;
    background-color: var(--primary); color: #fff;
    padding: 0.7rem; border-radius: 0.35rem;
    font-size: 0.92rem; font-weight: 600;
    cursor: pointer; transition: background-color 0.15s ease-in-out; margin-top: 0.4rem;
}
.auth-submit-btn:hover { background-color: #224abe; }
.auth-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-modal-switch {
    text-align: center; margin-top: 1rem; padding-top: 0.9rem;
    border-top: 1px dashed #d1d3e2; font-size: 0.84rem; color: var(--gray-500);
}
.auth-modal-switch a { color: var(--primary); margin: 0 0.5rem; }
.auth-login-ext { margin-top: 0.9rem; text-align: center; }
.auth-modal-foot { text-align: center; font-size: 0.84rem; color: var(--gray-500); }
.auth-modal-foot a { color: var(--primary); }
#auth-modal-alert, .auth-modal-alert { color: var(--danger); font-size: 0.84rem; margin: 0 1.3rem 0.9rem; padding-top: 0.8rem; min-height: 1px; }
#auth-modal-alert:empty, .auth-modal-alert:empty { margin: 0; padding: 0; min-height: 0; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 5rem 1.5rem; }
.error-page .error-code { font-size: 5.5rem; color: var(--primary); font-weight: 700; }
.error-page .error-msg { font-size: 1.15rem; color: var(--gray-500); margin-bottom: 1.8rem; }
.error-page .error-btn {
    display: inline-block; padding: 0.6rem 1.6rem;
    background-color: var(--primary); color: #fff; border-radius: 0.35rem;
    transition: background-color 0.15s ease-in-out;
}
.error-page .error-btn:hover { background-color: #224abe; }

/* ===== 作品集 ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.3rem; }
.portfolio-card {
    background-color: #fff;
    border: 1px solid #e3e6f0; border-radius: 0.35rem; overflow: hidden;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.08);
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.portfolio-card:hover { transform: translateY(-3px); box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.15); }
.portfolio-cover { width: 100%; height: 170px; object-fit: cover; }
.portfolio-info { padding: 1.1rem 1.2rem; }
.portfolio-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--gray-800); }
.portfolio-desc { font-size: 0.84rem; color: var(--gray-500); line-height: 1.7; }
.portfolio-btn { display: inline-block; margin-top: 0.6rem; font-size: 0.82rem; color: var(--primary); }

/* 通用按钮 */
.btn-demo, .btn-download {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.4rem 1rem; border-radius: 0.35rem; font-size: 0.82rem;
    transition: all 0.15s ease-in-out; font-weight: 600;
}
.btn-demo { color: var(--warning); background-color: transparent; border: 1px solid var(--warning); }
.btn-demo:hover { background-color: var(--warning); color: #fff; }
.btn-download { background-color: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-download:hover { background-color: #224abe; }

/* ===== 单行列表 ===== */
.single-list-item {
    display: flex; align-items: center; gap: 1.2rem;
    padding: 1rem 1.3rem;
    background-color: #fff;
    border: 1px solid #e3e6f0; border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.06);
    margin-bottom: 0.9rem;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.single-list-item:hover { transform: translateX(3px); box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.12); }
.single-list-date { font-size: 0.8rem; color: var(--gray-500); white-space: nowrap; }
.single-list-title { flex: 1; font-size: 0.96rem; color: var(--gray-800); }
.single-list-title a { color: var(--gray-800); }
.single-list-title a:hover { color: var(--primary); }

/* ===== sort_list：横向卡片列表 ===== */
.list-style-row .article-row-item {
    display: flex; gap: 1.2rem; align-items: flex-start;
    background-color: #fff;
    border: 1px solid #e3e6f0; border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.08);
    margin-bottom: 1.3rem; padding: 1.3rem;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.list-style-row .article-row-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.15);
}
.list-style-row .article-row-thumb { flex-shrink: 0; width: 200px; height: 130px; border-radius: 0.35rem; overflow: hidden; }
.list-style-row .article-row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease-in-out; }
.list-style-row .article-row-item:hover .article-row-thumb img { transform: scale(1.05); }
.list-style-row .article-row-body { flex: 1; min-width: 0; }
.list-style-row .article-row-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.5; }
.list-style-row .article-row-title a { color: var(--gray-800); }
.list-style-row .article-row-title a:hover { color: var(--primary); text-decoration: none; }
.list-style-row .article-row-meta {
    display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center;
    font-size: 0.78rem; color: var(--gray-500); margin-bottom: 0.6rem;
}
.list-style-row .article-row-meta a { color: var(--gray-500); }
.list-style-row .article-row-meta a:hover { color: var(--primary); }
.list-style-row .article-row-excerpt {
    font-size: 0.88rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 0.8rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-style-row .article-row-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.list-style-row .article-row-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.list-style-row .article-row-tags a {
    font-size: 0.74rem; color: var(--primary);
    padding: 0.2rem 0.55rem; border: 1px solid #cdd8f6;
    border-radius: 0.35rem; background-color: #eaecf8;
}
.list-style-row .article-row-tags a::before { content: '#'; margin-right: 0.15rem; }
.list-style-row .article-row-tags a:hover { background-color: var(--primary); color: #fff; border-color: var(--primary); }
.list-style-row .article-row-more {
    font-size: 0.82rem; font-weight: 600; color: var(--primary);
    white-space: nowrap;
}
.list-style-row .article-row-more:hover { color: #224abe; }
.list-style-row .log-topflg {
    display: inline-block; font-size: 0.72rem; color: #fff;
    background-color: var(--warning); padding: 0.1rem 0.5rem;
    border-radius: 0.2rem; margin-right: 0.4rem;
}
@media (max-width: 575.98px) {
    .list-style-row .article-row-item { flex-direction: column; }
    .list-style-row .article-row-thumb { width: 100%; height: 180px; }
}

/* ===== sort_minimal：极简单行列表 ===== */
.list-style-minimal .minimal-log-list { list-style: none; padding: 0; margin: 0; }
.list-style-minimal .minimal-log-item {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.85rem 1.1rem;
    background-color: #fff;
    border: 1px solid #e3e6f0;
    border-left: 3px solid var(--primary);
    border-radius: 0.35rem;
    margin-bottom: 0.6rem;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-left-color 0.15s ease-in-out;
}
.list-style-minimal .minimal-log-item:hover {
    transform: translateX(3px);
    box-shadow: 0 0.15rem 0.75rem 0 rgba(58, 59, 69, 0.12);
    border-left-color: #224abe;
}
.list-style-minimal .minimal-log-title {
    flex: 1; font-size: 0.95rem; color: var(--gray-800);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-style-minimal .minimal-log-title:hover { color: var(--primary); text-decoration: none; }
.list-style-minimal .minimal-log-date {
    font-size: 0.8rem; color: var(--gray-500); white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.list-style-minimal .log-topflg {
    display: inline-block; font-size: 0.72rem; color: #fff;
    background-color: var(--warning); padding: 0.1rem 0.5rem;
    border-radius: 0.2rem; margin-right: 0.4rem;
}
.list-page-desc { font-size: 0.88rem; color: var(--gray-500); margin: 0.3rem 0 0; }

/* ===== 背景音乐播放器 ===== */
.bgm-player {
    position: fixed; z-index: 1040;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    border: 1px solid #e3e6f0; border-radius: 0.6rem;
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.18);
    padding: 0.55rem 0.85rem;
    display: inline-flex; align-items: center; gap: 0.6rem;
    width: auto; max-width: 280px; min-width: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bgm-player:hover { box-shadow: 0 0.6rem 2.5rem 0 rgba(58, 59, 69, 0.22); }
.bgm-player.bgm-pos-right-bottom, .bgm-player.bgm-position-br { bottom: 1.5rem; right: 5rem; }
.bgm-player.bgm-pos-left-bottom, .bgm-player.bgm-position-bl { bottom: 1.5rem; left: 1.5rem; }
.bgm-player.bgm-pos-right-top, .bgm-player.bgm-position-tr { top: 5rem; right: 1.5rem; }
.bgm-player.bgm-pos-left-top, .bgm-player.bgm-position-tl { top: 5rem; left: 1.5rem; }
.bgm-player.bgm-pos-right-center { top: 50%; right: 1.5rem; transform: translateY(-50%); }
.bgm-player.bgm-pos-left-center { top: 50%; left: 1.5rem; transform: translateY(-50%); }
/* 播放/暂停按钮 */
.bgm-toggle {
    width: 32px; height: 32px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #6a8dee);
    border: 0; border-radius: 50%;
    color: #fff; cursor: pointer; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0.2rem 0.5rem 0 rgba(78, 115, 223, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bgm-toggle:hover { transform: scale(1.08); box-shadow: 0 0.25rem 0.7rem 0 rgba(78, 115, 223, 0.5); }
.bgm-toggle:active { transform: scale(0.95); }
.bgm-player.playing .bgm-toggle {
    animation: bgm-pulse 1.8s ease-in-out infinite;
}
@keyframes bgm-pulse {
    0%, 100% { box-shadow: 0 0.2rem 0.5rem 0 rgba(78, 115, 223, 0.4), 0 0 0 0 rgba(78, 115, 223, 0.35); }
    50% { box-shadow: 0 0.2rem 0.5rem 0 rgba(78, 115, 223, 0.4), 0 0 0 8px rgba(78, 115, 223, 0); }
}
.bgm-toggle .bgm-icon-pause { display: none; }
.bgm-toggle.playing .bgm-icon-play { display: none; }
.bgm-toggle.playing .bgm-icon-pause { display: inline-flex; }
/* 信息区 */
.bgm-info { flex: 0 1 auto; min-width: 0; }
.bgm-title-row { display: flex; align-items: center; gap: 0.5rem; }
.bgm-title {
    font-size: 0.8rem; color: var(--gray-700); font-weight: 600;
    max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 均衡器动画 */
.bgm-equalizer { display: none; align-items: flex-end; gap: 2px; height: 12px; flex-shrink: 0; }
.bgm-equalizer span {
    width: 3px; height: 40%; background-color: var(--primary);
    border-radius: 1px; transform-origin: bottom;
}
.bgm-player.playing .bgm-equalizer { display: flex; }
.bgm-player.playing .bgm-equalizer span {
    animation: bgm-eq 0.7s ease-in-out infinite;
}
.bgm-player.playing .bgm-equalizer span:nth-child(1) { animation-delay: 0s; }
.bgm-player.playing .bgm-equalizer span:nth-child(2) { animation-delay: 0.15s; }
.bgm-player.playing .bgm-equalizer span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bgm-eq {
    0%, 100% { height: 30%; }
    25% { height: 90%; }
    50% { height: 50%; }
    75% { height: 100%; }
}
/* 进度条 */
.bgm-progress {
    width: 100%; height: 4px; background-color: #eaecf4;
    margin-top: 0.4rem; cursor: pointer; border-radius: 0.2rem; overflow: hidden;
}
.bgm-progress-bar {
    height: 100%; width: 0; border-radius: 0.2rem;
    background: linear-gradient(90deg, var(--primary), #6a8dee);
    transition: width 0.15s linear;
}
/* 关闭按钮 */
.bgm-close {
    background: none; border: 0; color: var(--gray-400); cursor: pointer;
    font-size: 1.2rem; padding: 0; line-height: 1; flex-shrink: 0;
    transition: color 0.15s ease;
}
.bgm-close:hover { color: var(--gray-700); }
/* 上一首/下一首按钮（多首时显示） */
.bgm-prev, .bgm-next {
    background: none; border: 0; color: var(--gray-500); cursor: pointer;
    padding: 0; flex-shrink: 0; line-height: 1;
    width: 24px; height: 24px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.bgm-prev:hover, .bgm-next:hover { color: var(--primary); background-color: rgba(78, 115, 223, 0.1); }
.bgm-prev:active, .bgm-next:active { transform: scale(0.92); }
/* 收起后圆形恢复按钮 */
.bgm-reopen {
    position: fixed; z-index: 1040;
    width: 2.8rem; height: 2.8rem;
    background: linear-gradient(135deg, var(--primary), #6a8dee);
    color: #fff; border: 0; border-radius: 50%;
    box-shadow: 0 0.3rem 1.2rem 0 rgba(78, 115, 223, 0.4);
    cursor: pointer; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.15s ease;
}
.bgm-reopen:hover { transform: scale(1.1); }
.bgm-reopen.bgm-pos-right-bottom, .bgm-reopen.bgm-position-br { bottom: 1.5rem; right: 5rem; }
.bgm-reopen.bgm-pos-left-bottom, .bgm-reopen.bgm-position-bl { bottom: 1.5rem; left: 1.5rem; }
.bgm-reopen.bgm-pos-right-top, .bgm-reopen.bgm-position-tr { top: 5rem; right: 1.5rem; }
.bgm-reopen.bgm-pos-left-top, .bgm-reopen.bgm-position-tl { top: 5rem; left: 1.5rem; }
.bgm-reopen.bgm-pos-right-center { top: 50%; right: 1.5rem; transform: translateY(-50%); }
.bgm-reopen.bgm-pos-left-center { top: 50%; left: 1.5rem; transform: translateY(-50%); }
.bgm-player.collapsed { display: none; }

/* ===== 搜索按钮文字 ===== */
.search-btn-text { font-size: 0.88rem; }

/* ===== 安全兜底：JS 驱动的旧动画类全部置为可见 ===== */
.fzm-reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
.fzm-reveal.fzm-visible { opacity: 1 !important; transform: none !important; }
.fzm-site-header.fzm-header-scrolled,
.fzm-site-header.fzm-header-compact { box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.08); }
.fzm-theme-deco { display: none; }

/* ===== 响应式 ===== */
@media (max-width: 991.98px) {
    .article-detail-card { padding: 2rem; }
    .sidebar { padding-left: 0; }
}
@media (max-width: 767.98px) {
    body { font-size: 15px; }
    .article-detail-card { padding: 1.5rem 1.2rem; }
    .article-card .card-body { padding: 1.3rem 1.2rem; }
    .home-quote-text { font-size: 1.3rem; }
    .article-detail-body h2 { font-size: 1.25rem; }
    .fzm-brand-container { gap: 0.7rem; }
    .fzm-brand { font-size: 1.15rem; }
    .fzm-brand-status { display: none; }
    .footer-stats { gap: 1.5rem; }
    .home-section-title { font-size: 1.35rem; }
    .fzm-nav-menu { justify-content: flex-start !important; }
    .fzm-nav-inner { padding: 0 1rem; }
}
