﻿
/* =========================================================
   1. 全局设计变量
   ========================================================= */

:root {
    color-scheme: light;

    /* ---------- 颜色系统 ---------- */

    /* 页面与容器 */
    --color-bg: #f8f8f5;
    --color-surface: #ffffff;
    --color-surface-muted: #f1f3ef;

    /* 文字 */
    --color-text: #252a28;
    --color-text-secondary: #777e79;
    --color-text-muted: #a0a7a2;

    /* 品牌色：鼠尾草绿 */
    --color-primary: #647d70;
    --color-primary-hover: #4e685a;
    --color-primary-soft: #d9e4dc;

    /* 边框 */
    --color-border: #e9ebe6;
    --color-border-strong: #dce1da;

    /* 语义颜色 */
    --color-success: #647d70;
    --color-danger: #b96b65;
    --color-warning: #b18b55;

    /* ---------- 字体系统 ---------- */

    --font-body: -apple-system, BlinkMacSystemFont,
        "Segoe UI", "PingFang SC", "Microsoft YaHei",
        sans-serif;

    --font-heading: "Georgia", "Noto Serif SC",
        "Songti SC", serif;

    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 15px;
    --font-size-md: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 28px;
    --font-size-2xl: 36px;

    --line-height-tight: 1.3;
    --line-height-base: 1.7;
    --line-height-loose: 1.9;

    /* ---------- 布局系统 ---------- */

    --container-width: 1200px;
    --header-height: 76px;

    /* ---------- 间距系统 ---------- */

    --spacing-1: 4px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-5: 20px;
    --spacing-6: 24px;
    --spacing-8: 32px;
    --spacing-10: 40px;
    --spacing-12: 48px;
    --spacing-16: 64px;

    /* ---------- 圆角系统 ---------- */

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* ---------- 阴影系统 ---------- */

    --shadow-soft: 0 8px 30px rgba(35, 45, 39, 0.045);
    --shadow-card: 0 12px 36px rgba(35, 45, 39, 0.06);
    --shadow-hover: 0 16px 40px rgba(35, 45, 39, 0.09);

    /* ---------- 动效系统 ---------- */

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
}


/* =========================================================
   2. 基础样式
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}


/* =========================================================
   3. 页面通用容器
   ========================================================= */

.site-header,
.footer-container,
.footer-bottom {
    width: min(var(--container-width), calc(100% - 48px));
    margin-inline: auto;
}


/* =========================================================
   4. 顶部导航栏
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(248, 248, 245, 0.94);
    backdrop-filter: blur(12px);
}

.navbar {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.navbar-brand {
    display: inline-flex;
    align-items: baseline;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.brand-mark {
    color: var(--color-primary);
}

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-left: auto;
}

.navbar-link {
    position: relative;
    padding: 8px 0;
    color: var(--color-text-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--color-primary);
}

.navbar-link.active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background-color: var(--color-primary);
    content: "";
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-search {
    display: flex;
    align-items: center;
    width: 190px;
    height: 38px;
    padding: 0 10px 0 13px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background-color: var(--color-surface);
    transition: border-color var(--transition-fast);
}

.navbar-search:focus-within {
    border-color: var(--color-primary);
}

.navbar-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--color-text);
    font-size: 12px;
}

.navbar-search input::placeholder {
    color: #a0a7a2;
}

.navbar-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding: 0;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.navbar-search .search-icon {
    position: relative;
    display: block;
    width: 13px;
    height: 13px;
    border: 1.6px solid currentColor;
    border-radius: 50%;
}

.navbar-search .search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 1.6px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}

.navbar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    padding: 9px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.navbar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px auto;
    border-radius: 2px;
    background-color: var(--color-text);
}


/* =========================================================
   5. 页面主体
   ========================================================= */

#main-content {
    min-height: 60vh;
}

.home-page {
    width: min(var(--container-width), calc(100% - 48px));
    margin-inline: auto;
}


/* =========================================================
   6. Hero 欢迎区域
   ========================================================= */


.hero-section {
    position: relative;
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 42px;
    padding: 64px 76px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #e5eae3;
    border-radius: var(--radius-xl);

    /* 保留原有渐变 */
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(206, 220, 208, 0.55),
            transparent 32%
        ),
        linear-gradient(
            115deg,
            #eef2eb 0%,
            #f5f5ef 58%,
            #e9eee8 100%
        );
}

/* 山景背景层 */
.hero-section::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(
            90deg,
            rgba(238, 242, 235, 0.82) 0%,
            rgba(238, 242, 235, 0.58) 30%,
            rgba(238, 242, 235, 0.12) 65%,
            rgba(238, 242, 235, 0.02) 100%
        ),
        url("/static/images/hero-mountains.png");
    background-size: cover;
    background-position: center 55%;
    background-repeat: no-repeat;
    content: "";
}

/* 让文字始终清晰 */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

/* 弱化原来的几何装饰，避免与山景争夺视觉 */
.hero-decoration-circle,
.hero-decoration-line {
    opacity: 0.16;
}

.hero-decoration-text {
    color: #526e60;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.55);
}
.hero-section::before {
    background-position: 62% center;
}

.hero-decoration {
    opacity: 0.12;
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero-eyebrow,
.section-eyebrow,
.sidebar-eyebrow {
    display: block;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
}

.hero-content h1 {
    margin: 22px 0 16px;
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.5vw, 54px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    display: block;
    white-space: nowrap;
}

.hero-content h1 .hero-title-main {
    color: inherit;
}

.hero-content h1 .hero-title-highlight {
    color: var(--color-primary);
    margin-left: 1.2em;
}

.hero-description {
    max-width: 510px;
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 2;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 11px 22px;
    border-radius: 30px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.hero-link:hover {
    transform: translateY(-2px);
    background-color: var(--color-primary-hover);
}

.hero-link span {
    font-size: 17px;
}

.hero-decoration {
    position: relative;
    width: 270px;
    height: 220px;
    flex-shrink: 0;
}

.hero-decoration-circle {
    position: absolute;
    top: 10px;
    right: 24px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(100, 125, 112, 0.35);
    border-radius: 50%;
}

.hero-decoration-circle::before,
.hero-decoration-circle::after {
    position: absolute;
    border: 1px solid rgba(100, 125, 112, 0.28);
    border-radius: 50%;
    content: "";
}

.hero-decoration-circle::before {
    inset: 22px;
}

.hero-decoration-circle::after {
    inset: 46px;
    background: rgba(100, 125, 112, 0.08);
}

.hero-decoration-line {
    position: absolute;
    top: 110px;
    right: 0;
    width: 250px;
    height: 1px;
    transform: rotate(-35deg);
    background: rgba(100, 125, 112, 0.4);
}

.hero-decoration-text {
    position: absolute;
    right: 0;
    bottom: 0;
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
}


/* =========================================================
   7. 首页双栏布局
   ========================================================= */

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 42px;
    margin-top: 64px;
}

.home-main {
    min-width: 0;
}

.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}


/* =========================================================
   8. 区块标题
   ========================================================= */


/* =========================================================
   首页 · 区块标题
   ========================================================= */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 9px 0 0;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.6px;
}

/* 英文眉题沿用原有颜色与字距 */
.section-eyebrow {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
}

/* 精选文章编号 */
.section-index {
    color: #bdc9bd;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -1px;
}

/* 查看全部 */
.section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 5px;
    color: #89958b;
    font-size: 12px;
    transition: color 0.25s ease;
}

.section-more:hover {
    color: var(--color-primary);
}

.section-more span {
    display: inline-block;
    transition: transform 0.25s ease;
}

.section-more:hover span {
    transform: translateX(3px);
}



/* =========================================================
   9. 精选文章
   ========================================================= */

.featured-section {
    margin-bottom: 64px;
}

.featured-card {
    overflow: hidden;
    border: 1px solid rgba(220, 227, 219, 0.9);
    border-radius: 18px;
    background-color: var(--color-surface);
    box-shadow: 0 8px 28px rgba(49, 65, 52, 0.055);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(133, 158, 137, 0.45);
    box-shadow: 0 16px 36px rgba(49, 65, 52, 0.10);
}

.featured-cover {
    display: block;
    width: 100%;
    height: clamp(190px, 28vw, 320px);
    overflow: hidden;
    background-color: #e9eee8;
}

.featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.featured-card:hover .featured-cover img {
    transform: scale(1.035);
}

.featured-cover-placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(255, 255, 255, 0.7),
            transparent 30%
        ),
        linear-gradient(135deg, #e4ebe3, #d5e0d7);
}

.featured-cover-placeholder span {
    color: rgba(74, 101, 84, 0.65);
    font-family: var(--font-heading);
    font-size: 19px;
    letter-spacing: 4px;
}

.featured-content {
    padding: 30px 34px 32px;
}

.featured-content .article-category {
    margin-bottom: 13px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #eef2ed;
    color: #657f6c;
    font-size: 11px;
    letter-spacing: 0.4px;
}

.featured-content h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 27px;
    line-height: 1.45;
    letter-spacing: -0.5px;
}

.featured-content h3 a {
    transition: color var(--transition-fast);
}

.featured-content h3 a:hover {
    color: var(--color-primary);
}

.featured-summary {
    display: -webkit-box;
    margin: 14px 0 22px;
    overflow: hidden;
    color: #7d887f;
    font-size: 14px;
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.featured-content .article-meta {
    gap: 20px;
    color: #9ba39c;
    font-size: 12px;
}

.featured-content .read-more-link {
    gap: 10px;
    margin-top: 24px;
    font-size: 13px;
}

.featured-content .read-more-link span {
    display: inline-block;
    transition: transform 0.25s ease;
}

.featured-content .read-more-link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   10. 最新文章 · 杂志式列表
   ========================================================= */

.latest-section {
    margin-bottom: 30px;
}

.latest-list {
    display: flex;
    flex-direction: column;
}

.latest-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
    padding: 25px 0;
    border-bottom: 1px solid #e9ede7;
    transition: transform 0.3s ease;
}

.latest-card:first-child {
    padding-top: 0;
}

.latest-card:hover {
    transform: translateX(3px);
}

.latest-cover {
    display: block;
    height: 138px;
    overflow: hidden;
    border-radius: 11px;
    background-color: #e9eee8;
}

.latest-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.latest-card:hover .latest-cover img {
    transform: scale(1.055);
}

.latest-cover-placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 70% 25%,
            rgba(255, 255, 255, 0.65),
            transparent 35%
        ),
        linear-gradient(135deg, #e8eee7, #dce6dd);
}

.latest-cover-placeholder span {
    color: rgba(74, 101, 84, 0.6);
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 2px;
}

.latest-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.latest-content .article-category {
    margin-bottom: 8px;
}

.latest-content h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: -0.2px;
}

.latest-summary {
    display: -webkit-box;
    margin: 9px 0 14px;
    overflow: hidden;
    color: #818b83;
    font-size: 13px;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.latest-content .article-meta {
    margin-top: auto;
    gap: 16px;
    color: #a0a8a1;
    font-size: 11px;
}


/* =========================================================
   11. 侧边栏通用卡片
   ========================================================= */

.sidebar-card {
    padding: 26px 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
}

.sidebar-card h2 {
    margin-bottom: 20px;
    font-size: 21px;
}


/* =========================================================
   12. 关于博主
   ========================================================= */

.profile-card {
    padding: 28px 25px 30px;
    border-color: #e8ece6;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(49, 65, 52, 0.045);
    text-align: center;
}

.profile-card .sidebar-eyebrow {
    text-align: left;
}

.profile-card h2 {
    margin-bottom: 24px;
    text-align: left;
    font-size: 22px;
    letter-spacing: -0.4px;
}

.profile-avatar,
.profile-avatar-placeholder {
    width: 104px;
    height: 104px;
    margin: 0 auto 20px;
    border: 5px solid #f1f4ef;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(49, 65, 52, 0.08);
}

.profile-avatar-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e3ebe3, #d2dfd4);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
}

.profile-description {
    max-width: 260px;
    margin: 0 auto;
    color: #778279;
    font-size: 13px;
    line-height: 2;
}

.sidebar-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(113, 139, 119, 0.3);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.sidebar-link:hover {
    color: var(--color-primary-hover);
    border-color: var(--color-primary);
}


/* =========================================================
   13. 标签云
   ========================================================= */

.tags-card {
    padding: 30px 24px 36px;
    border-color: #e8ece6;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(49, 65, 52, 0.045);
}

.tags-card h2 {
    margin-bottom: 24px;
    font-size: 22px;
    letter-spacing: -0.4px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border: 1px solid #e6ebe5;
    border-radius: 6px;
    background-color: #f5f7f3;
    color: #738176;
    font-size: 12px;
    transition: all 0.25s ease;
}

.tag-item:hover {
    border-color: #a9bbaa;
    background-color: #edf2ec;
    color: #58745e;
    transform: translateY(-2px);
}

.sidebar-empty {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 13px;
}


/* =========================================================
   14. 空状态
   ========================================================= */

.empty-state {
    display: grid;
    min-height: 150px;
    padding: 30px;
    place-items: center;
    border: 1px dashed #dce2da;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.55);
    color: var(--color-text-secondary);
    font-size: 14px;
}

.empty-state p {
    margin: 0;
}


/* =========================================================
   15. 页脚
   ========================================================= */

.site-footer {
    margin-top: 100px;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-surface);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 42px;
    padding-bottom: 36px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 700;
}

.footer-description {
    margin: 8px 0 0;
    color: var(--color-text-secondary);
    font-size: 13px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.footer-nav a {
    color: var(--color-text-secondary);
    font-size: 13px;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
    border-top: 1px solid var(--color-border);
    color: #929a94;
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}
/* 页脚视觉优化 */
.site-footer {
    background:
        linear-gradient(
            180deg,
            #f7f8f4 0%,
            #f1f4ee 100%
        );
}

.footer-description {
    line-height: 1.8;
}

.footer-nav a {
    transition: color 0.2s ease;
}

.footer-bottom {
    color: #929b91;
    font-size: 12px;
}

.footer-credit {
    letter-spacing: 0.3px;
}

/* =========================================================
   16. 平板适配
   ========================================================= */

@media (max-width: 960px) {
    .home-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 26px;
    }

    .hero-section {
        padding: 54px 48px;
    }

    .hero-decoration {
        width: 210px;
        transform: scale(0.85);
        transform-origin: center right;
    }

    .latest-card {
        grid-template-columns: 145px minmax(0, 1fr);
        gap: 18px;
    }

    .latest-cover {
        height: 120px;
    }

    .sidebar-card {
        padding: 22px 18px;
    }
}


/* =========================================================
   17. 手机适配
   ========================================================= */

@media (max-width: 768px) {
    :root {
        --header-height: 66px;
    }

    .site-header,
    .footer-container,
    .footer-bottom {
        width: calc(100% - 32px);
    }

    .home-page {
        width: calc(100% - 32px);
    }

    .navbar {
        gap: 16px;
    }

    .navbar-brand {
        font-size: 22px;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 12px 24px;
        border-bottom: 1px solid var(--color-border);
        background-color: var(--color-surface);
        box-shadow: var(--shadow-soft);
    }

    .navbar-menu.is-open {
        display: flex;
    }

    .navbar-link {
        padding: 12px 0;
    }

        .navbar-menu .navbar-user {
        padding: 12px 0;
        margin-top: 6px;
        border-top: 1px solid var(--color-border);
    }

    .navbar-menu .navbar-user-name {
        font-size: 13px;
    }

    .navbar-menu .navbar-logout {
        align-self: flex-start;
        margin-top: 4px;
        color: var(--color-text-secondary);
    }

    .navbar-link.active::after {
        display: none;
    }

    .navbar-search {
        width: 150px;
    }

    .navbar-toggle {
        display: block;
    }

    .hero-section {
        min-height: 300px;
        margin-top: 24px;
        padding: 44px 34px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-decoration {
        position: absolute;
        right: 10px;
        bottom: 10px;
        opacity: 0.25;
        transform: scale(0.75);
        pointer-events: none;
    }

    .home-layout {
        grid-template-columns: 1fr;
        gap: 42px;
        margin-top: 44px;
    }

    .home-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .featured-section {
        margin-bottom: 48px;
    }

    .featured-cover {
        height: 260px;
    }

    .footer-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .footer-nav {
        gap: 20px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}


/* =========================================================
   18. 小屏手机适配
   ========================================================= */

@media (max-width: 520px) {
    .navbar-search {
        width: 125px;
    }

    .navbar-actions {
        gap: 8px;
    }

    .hero-section {
        min-height: 290px;
        padding: 36px 24px;
    }

    .hero-content h1 {
        margin-top: 17px;
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-link {
        margin-top: 22px;
        padding: 10px 18px;
    }

    .hero-decoration {
        right: -35px;
        bottom: -20px;
        opacity: 0.17;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .section-index {
        font-size: 30px;
    }

    .featured-cover {
        height: 210px;
    }

    .featured-content {
        padding: 22px 20px 24px;
    }

    .featured-content h3 {
        font-size: 21px;
    }

    .latest-card {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
        padding: 18px 0;
    }

    .latest-cover {
        height: 100px;
    }

    .latest-content h3 {
        font-size: 15px;
    }

    .latest-summary {
        margin: 6px 0 8px;
        font-size: 12px;
    }

    .latest-content .article-meta {
        font-size: 11px;
    }

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

    .sidebar-card {
        padding: 24px;
    }

    .site-footer {
        margin-top: 64px;
    }
}


/* =========================================================
   19. 极窄屏幕适配
   ========================================================= */

@media (max-width: 360px) {
    .navbar-search {
        width: 108px;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .latest-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 11px;
    }

    .latest-cover {
        height: 90px;
    }
}


/* =========================================================
   20. 顶部导航栏悬停效果增强
   ========================================================= */

.navbar-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition:
        color 0.2s ease,
        font-weight 0.2s ease;
}

.navbar-link:not(.active)::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background-color: var(--color-primary);
    content: "";
    transition: width 0.25s ease;
}

.navbar-link:not(.active):hover {
    color: #354f42;
    font-weight: 700;
}

.navbar-link:not(.active):hover::after {
    width: 100%;
}




/* =========================================================
   21. 文章列表页
   ========================================================= */

.article-list-page {
    width: min(var(--container-width), calc(100% - 48px));
    margin: 52px auto 0;
}

/* 页面标题 */

/* 页面标题 */
.page-header {
    padding-bottom: 32px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e9eee7;
}

.page-header h1 {
    margin: 0;
    color: #303a32;
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -1.2px;
}

.page-header p {
    margin: 11px 0 15px;
    color: #78867b;
    font-size: 14px;
    line-height: 1.8;
}

.page-header > span {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid #e3ebe0;
    border-radius: 20px;
    background: #f0f5ee;
    color: #68816a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
}

/* 主体双栏布局 */

.article-list-page:not(.category-page):not(.tag-page) .article-list-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 42px;
}

/* =========================================
   文章列表 - 左侧筛选栏
========================================= */

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.sidebar-section {
    padding: 24px 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
}

/* 筛选区标题 */
.sidebar-section h2 {
    position: relative;
    padding-bottom: 13px;
    margin: 0 0 13px;
    border-bottom: 1px solid #edf0eb;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
}

.sidebar-section h2::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background-color: #91a893;
    content: "";
}

/* 筛选列表 */
.filter-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.filter-list li {
    min-width: 0;
}

.filter-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 13px;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast);
}

.filter-list li a:hover:not(.active) {
    background-color: #f5f8f4;
    color: var(--color-primary);
}

/* 当前选中项 */
.filter-list li a.active {
    background-color: #edf3ec;
    box-shadow: inset 3px 0 0 #829b84;
    color: #5e795f;
    font-weight: 600;
}

/* 分类和标签数量 */
.filter-count {
    display: inline-flex;
    flex-shrink: 0;
    min-width: 23px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 6px;
    background-color: #f3f5f1;
    color: #929d93;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast);
}

.filter-list li a:hover .filter-count,
.filter-list li a.active .filter-count {
    background-color: #dfe9de;
    color: #637e66;
}

/* 清除筛选 */
.clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #e5eae3;
    border-radius: var(--radius-md);
    background-color: transparent;
    color: #7c897e;
    font-size: 13px;
    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background-color var(--transition-fast);
}

.clear-filters:hover {
    border-color: #cbd9ca;
    background-color: #f2f6f0;
    color: #637e66;
}

/* 文章列表主体 */

.article-list-content {
    min-width: 0;
}

/* 当前筛选条件 */
.filter-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #7d897f;
    font-size: 13px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid #e3ebe0;
    border-radius: 20px;
    background-color: #f0f5ee;
    color: #68816a;
    font-size: 12px;
    font-weight: 600;
}

/* 文章列表默认纵向排列 */
.article-list {
    display: flex;
    flex-direction: column;
}

/* 分类页采用主题网格 */
.category-page .article-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
/* 标签页采用自适应网格 */
.tag-page .article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

/* 文章卡片 */
.article-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 27px 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 18px;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-soft);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

/* 分类页卡片 */
.category-page .article-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
    margin-bottom: 0;
}
/* 标签页轻量卡片 */
.tag-page .article-card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 0;
    border-radius: 10px;
    box-shadow: none;
}

.tag-page .article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* 标签名称 */
.tag-page .article-card-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.tag-page .article-card-title a {
    color: #526b55;
}

.tag-page .article-card-title a:hover {
    color: #78947a;
}

/* 标签文章数量 */
.tag-page .article-meta {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    color: #929d93;
    font-size: 11px;
    white-space: nowrap;
}

/* =========================================
   文章卡片内部视觉优化
========================================= */


/* 文章列表封面 */
.article-card-cover {
    display: block;
    flex: 0 0 220px;
    width: 220px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
}

.article-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-card-cover:hover img {
    transform: scale(1.04);
}

.article-card:hover {
    transform: translateY(-2px);
    border-color: #dce5dc;
    box-shadow: var(--shadow-card);
}

.article-card-body {
    flex: 1;
    min-width: 0;
}

.article-card-title {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

.article-card-title a {
    transition: color var(--transition-fast);
}

.article-card-title a:hover {
    color: var(--color-primary);
}

/* 分类名称 */
.category-page .article-card-title {
    margin-bottom: 4px;
    font-size: 20px;
    line-height: 1.5;
}

.category-page .article-card-title a {
    color: #3d493f;
}

.category-page .article-card-title a:hover {
    color: #68816a;
}

/* 分类文章数量 */
.category-page .article-meta {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border: 1px solid #e3ebe0;
    border-radius: 20px;
    background: #f0f5ee;
    color: #68816a;
    font-size: 12px;
}

.article-summary {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.article-card .article-meta {
    gap: 14px;
}

.article-card .article-category {
    margin: 0;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid #e8ece7;
    border-radius: 4px;
    background-color: #f7f8f5;
    color: var(--color-text-secondary);
    font-size: 11px;
}

/* 文章卡片元信息视觉优化 */

/* 元信息分隔 */
.article-card .article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #edf0eb;
}

/* 发布时间 */
.article-card .article-meta time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #89928a;
    font-size: 12px;
    letter-spacing: 0.2px;
}

.article-card .article-meta time::before {
    content: "◷";
    color: #91a393;
    font-size: 15px;
}

/* 分类标识 */
.article-card .article-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    margin: 0;
    border-radius: 5px;
    background: #edf3ec;
    color: #637e66;
    font-size: 12px;
    font-weight: 500;
}

/* 标签 */
.article-card .article-tag {
    padding: 4px 10px;
    border-color: #e9ede7;
    border-radius: 5px;
    background: #fafbf9;
    color: #7b857c;
    font-size: 12px;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.article-card .article-tag:hover {
    border-color: #cbd9ca;
    background: #f0f5ef;
    color: #637e66;
}

/* 空文章状态 */
.empty-articles {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    border: 1px solid #e8eee5;
    border-radius: var(--radius-lg);
    background-color: #fbfcfa;
    text-align: center;
}

.empty-articles h2 {
    margin: 0 0 10px;
    color: #3d493f;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

.empty-articles p {
    margin: 0;
    color: #849087;
    font-size: 13px;
    line-height: 1.8;
}

.empty-articles a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 8px 17px;
    border: 1px solid #dfe9dc;
    border-radius: 20px;
    background-color: #f0f5ee;
    color: #68816a;
    font-size: 12px;
    font-weight: 600;
    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background-color var(--transition-fast);
}

.empty-articles a:hover {
    border-color: #cbd9ca;
    background-color: #e6efe4;
    color: #526e55;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
    padding: 18px 0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 9px 16px;
    border: 1px solid #e5eae3;
    border-radius: 7px;
    background-color: #fff;
    color: #78867b;
    font-size: 12px;
    font-weight: 500;
    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.pagination-link:hover {
    transform: translateY(-1px);
    border-color: #cbd9ca;
    background-color: #f0f5ee;
    color: #637e66;
}

.pagination-info {
    color: #89938a;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   22. 文章列表页响应式适配
   ========================================================= */

@media (max-width: 960px) {
    .article-list-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 26px;
    }

    .sidebar-section {
        padding: 21px 17px;
    }

    .article-card {
        padding: 24px 22px;
    }
}

@media (max-width: 768px) {
    .article-list-page {
        width: calc(100% - 32px);
        margin-top: 36px;
    }

    .page-header {
        margin-bottom: 28px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .article-list-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .category-page .article-list {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 14px;
    }

    .sidebar-section {
        padding: 19px 16px;
    }

    .clear-filters {
        grid-column: 1 / -1;
    }

    .article-card {
        padding: 22px 20px;
    }

    .article-card-title {
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    .article-list-page {
        margin-top: 28px;
    }

    .page-header h1 {
        font-size: 29px;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .tag-page .article-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tag-page .article-card {
        padding: 13px 12px;
        gap: 6px;
    }

    .tag-page .article-card-title {
        font-size: 14px;
    }

    .sidebar-section {
        padding: 21px;
    }

    .article-card {
        padding: 20px 17px;
        margin-bottom: 14px;
    }

    .article-card-title {
        font-size: 18px;
    }

    .article-summary {
        font-size: 13px;
    }

    .article-card .article-meta {
        gap: 10px;
    }

    .article-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .article-card-cover {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .pagination {
        gap: 12px;
    }

    .pagination-link {
        min-width: 70px;
        padding: 8px 11px;
    }
}




/* =========================================
   23. 文章详情页
========================================= */

.article-detail-page {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 64px;
    padding-bottom: 80px;
}

/* 文章主体 */

.article-detail {
    width: 100%;
    padding: 0 0 56px;
}

/* =========================================
   23. 文章详情页
========================================= */

.article-detail-page {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 64px;
    padding-bottom: 80px;
}

.article-detail {
    width: 100%;
    padding: 0 0 56px;
}

/* 文章头部 */

.article-detail-header {
    padding-bottom: 38px;
    border-bottom: 1px solid #e5ebe3;
    margin-bottom: 42px;
}

.article-detail-header h1 {
    margin: 0 0 24px;
    color: #354438;
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -1.3px;
    overflow-wrap: anywhere;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: #929b91;
    font-size: 13px;
}

.article-detail-meta time {
    font-variant-numeric: tabular-nums;
}

.article-detail-meta .article-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border: 1px solid #dce7d9;
    border-radius: 20px;
    background: #edf3eb;
    color: #607b63;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-detail-meta .article-category:hover {
    border-color: #bdcfba;
    background: #e2ecdf;
    color: #4e6b52;
}

.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.article-detail-tags .article-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border: 1px solid #e2e9df;
    border-radius: 20px;
    background: #fff;
    color: #788878;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-detail-tags .article-tag:hover {
    border-color: #bdcfba;
    background: #edf3eb;
    color: #58745e;
}

/* =========================================
   文章正文
========================================= */

.article-content {
    color: #3d443e;
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-content > *:first-child {
    margin-top: 0;
}

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

/* 正文标题层级 */

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #303a32;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.4px;
    margin: 42px 0 18px;
}

.article-content h1 {
    font-size: 30px;
}

.article-content h2 {
    position: relative;
    padding: 0 0 13px 15px;
    border-bottom: 1px solid #e5ebe3;
    font-size: 25px;
}

.article-content h2::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 4px;
    height: 25px;
    border-radius: 4px;
    background: #8da68e;
}

.article-content h3 {
    padding-left: 12px;
    border-left: 3px solid #d5e2d2;
    font-size: 21px;
    margin-top: 34px;
}

.article-content h4 {
    font-size: 18px;
    margin-top: 28px;
}

.article-content h5 {
    font-size: 16px;
    margin-top: 24px;
}

.article-content h6 {
    font-size: 14px;
    margin-top: 22px;
    color: #68766b;
}

/* 正文链接 */

.article-content a {
    color: #718575;
    text-decoration: underline;
    text-decoration-color: #bdcbbd;
    text-underline-offset: 4px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-content a:hover {
    color: #526b59;
    text-decoration-color: #718575;
}

/* 引用块 */

.article-content blockquote {
    margin: 30px 0;
    padding: 20px 24px;
    border-left: 4px solid #8da68e;
    border-radius: 0 10px 10px 0;
    background: #f0f5ee;
    color: #596b5c;
    line-height: 1.9;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* 列表 */

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

.article-content li {
    padding-left: 5px;
    margin-bottom: 9px;
}

.article-content li::marker {
    color: #8ca18e;
}

.article-content li > ul,
.article-content li > ol {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* 图片 */

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 34px auto;
    border: 1px solid #e8ece6;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(55, 75, 57, 0.08);
}

/* 分隔线 */

.article-content hr {
    border: 0;
    border-top: 1px solid #e8ece6;
    margin: 40px 0;
}

/* 行内代码 */

.article-content code {
    padding: 3px 7px;
    border: 1px solid #e9ede6;
    border-radius: 5px;
    background: #f3f5f1;
    color: #a05249;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.88em;
    overflow-wrap: break-word;
}

/* 代码块 */

.article-content pre {
    margin: 26px 0;
    padding: 22px 24px;
    overflow-x: auto;
    border: 1px solid #343d37;
    border-radius: 10px;
    background: #252c28;
    color: #e5eae5;
    line-height: 1.75;
    font-size: 14px;
    tab-size: 4;
    -webkit-overflow-scrolling: touch;
}

.article-content pre code {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-family: Consolas, Monaco, monospace;
    font-size: inherit;
    line-height: inherit;
    white-space: pre;
    overflow-wrap: normal;
}

/* 表格 */

.article-content table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.7;
}

.article-content th,
.article-content td {
    padding: 12px 16px;
    border: 1px solid #e5eae3;
    text-align: left;
}

.article-content th {
    background: #f0f3ee;
    color: #46564a;
    font-weight: 700;
}

.article-content tr:nth-child(even) {
    background: #f8f9f6;
}

.article-content td code {
    white-space: normal;
}

/* =========================================

/* =========================================
   24. 评论区域
========================================= */

.article-comments {
    margin-top: 48px;
    padding: 32px;
    border: 1px solid #e6ece3;
    border-radius: 16px;
    background: #f2f6f0;
}

/* 评论区标题 */

.comments-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 26px;
}

.comments-header h2 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    color: #354b3a;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.comments-header h2::before {
    content: "";
    display: block;
    width: 4px;
    height: 23px;
    border-radius: 4px;
    background: #8da68e;
}

.comments-header > span {
    padding: 3px 10px;
    border: 1px solid #dce7d9;
    border-radius: 20px;
    background: #e7efe4;
    color: #657d66;
    font-size: 12px;
    font-weight: 600;
}

/* 评论列表 */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 单条评论卡片 */
.comment-item {
    padding: 22px 24px;
    border: 1px solid #e7ece5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(55, 75, 57, 0.035);
    scroll-margin-top: 100px;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.comment-item:hover {
    border-color: #d5e1d3;
    box-shadow: 0 5px 16px rgba(55, 75, 57, 0.07);
}

/* 评论作者信息 */

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 2px solid #eef2ec;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f4ef;
}

.comment-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf0e8;
    color: #718575;
    font-size: 15px;
    font-weight: 600;
}

.comment-author {
    color: #405b45;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.comment-header time {
    color: #929e91;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.comment-content {
    padding-left: 51px;
    color: #515f53;
    font-size: 14px;
    line-height: 1.95;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* 评论删除按钮 */
.comment-delete {
    display: block;
    width: fit-content;
    margin: 12px 0 0 auto;
    padding: 5px 11px;
    border: 1px solid #e8ebe6;
    border-radius: 5px;
    background: transparent;
    color: #9ba39a;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-delete:hover {
    border-color: #e2c2bd;
    background: #fff6f4;
    color: #b96c63;
}

/* 评论表单 */

.comment-form-section {
    margin-top: 30px;
    padding: 26px 28px;
    border: 1px solid #dfe8dc;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(55, 75, 57, 0.04);
}

.comment-form-section h3 {
    margin: 0 0 10px;
    color: #405b45;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.comment-form-section p {
    margin: 8px 0 0;
    color: #899389;
    font-size: 13px;
    line-height: 1.8;
}

.comment-form-section a {
    color: #718575;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-form-section a:hover {
    color: #526b59;
    text-decoration: underline;
}

#comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#comment-content {
    box-sizing: border-box;
    width: 100%;
    min-height: 126px;
    padding: 15px 17px;
    border: 1px solid #e2e8df;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #3d463e;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.85;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#comment-content::placeholder {
    color: #a7afa5;
}

#comment-content:focus {
    border-color: #9aaf9b;
    box-shadow: 0 0 0 3px rgba(113, 133, 117, 0.09);
}

/* 发表评论按钮 */

#comment-submit {
    align-self: flex-end;
    padding: 10px 25px;
    border: 1px solid #718575;
    border-radius: 7px;
    background: #718575;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#comment-submit:hover:not(:disabled) {
    border-color: #5e7462;
    background: #5e7462;
    transform: translateY(-1px);
}

#comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 评论提示信息 */

#comment-message {
    margin: 0;
    color: #718575;
    font-size: 13px;
    line-height: 1.7;
}

/* 暂无评论 */

.empty-comments {
    padding: 36px 20px;
    border: 1px dashed #d5e1d2;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    color: #829181;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

/* 返回文章列表 */

.article-back {
    margin-top: 36px;
}

.article-back a {
    color: #89948a;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-back a:hover {
    color: #58745e;
}

/* =========================================
   25. 文章详情页响应式
========================================= */

@media (max-width: 768px) {
    .article-detail-page {
        padding-top: 40px;
        padding-bottom: 56px;
    }

    .article-detail-header {
        padding-bottom: 26px;
        margin-bottom: 28px;
    }

    .article-detail-header h1 {
        font-size: 30px;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.85;
    }

    .article-content h1 {
        font-size: 26px;
    }

    .article-content h2 {
        font-size: 22px;
    }

    .article-content h3 {
        font-size: 19px;
    }

    .article-content pre {
        padding: 17px;
        font-size: 13px;
    }

    .comment-form-section {
        padding: 22px;
    }
}

@media (max-width: 520px) {
    .article-detail-page {
        padding-top: 28px;
        padding-bottom: 42px;
    }

    .article-detail-header h1 {
        font-size: 26px;
    }

    .article-detail-meta {
        gap: 9px;
        font-size: 12px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-content th,
    .article-content td {
        padding: 9px;
    }

    .comments-header h2 {
        font-size: 20px;
    }

    .article-comments {
        padding: 24px 16px;
        margin-top: 32px;
    }

    .comment-item {
        padding: 18px 16px;
    }

    .comment-content {
        padding-left: 0;
    }

    .comment-form-section {
        padding: 20px 16px;
    }
}




/* ========================================
   About 页面
======================================== */

.about-page {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 56px;
    padding-bottom: 64px;
}

/* 页面头部 */
.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 48px;
}
.about-header {
    position: relative;
    padding: 36px 24px 32px;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(215, 229, 211, 0.65),
            transparent 68%
        ),
        linear-gradient(145deg, #f7f8f3, #f0f4ed);
}
/* 博主头像 */
.about-avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #edf2ec;
    border: 4px solid #fff;
    box-shadow:
        0 0 0 1px #dce7d9,
        0 8px 24px rgba(55, 75, 57, 0.12);
}

.about-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* 头部文字 */
.about-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #dce7d9;
    border-radius: 20px;
    background: #edf3eb;
    color: #68816a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.about-header-content h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

.about-header-content p {
    margin: 0;
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Markdown 正文 */
.about-content {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text);
    overflow-wrap: break-word;
}

.about-content h1,
.about-content h2,
.about-content h3,
.about-content h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    margin-top: 36px;
    margin-bottom: 18px;
}

.about-content h1 {
    font-size: 30px;
}

.about-content h2 {
    position: relative;
    padding: 0 0 13px 15px;
    border-bottom: 1px solid #e5ebe3;
    font-size: 25px;
}

.about-content h2::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 4px;
    height: 25px;
    border-radius: 4px;
    background: #8da68e;
}

.about-content h3 {
    padding-left: 12px;
    border-left: 3px solid #d5e2d2;
    font-size: 21px;
}

.about-content h4 {
    font-size: 18px;
}

/* 关于页面：正文段落 */
.about-content p {
    line-height: 2;
    margin-bottom: 22px;
    color: #59665a;
}

/* 链接 */
.about-content a {
    color: var(--color-primary);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color var(--transition-fast);
}

.about-content a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* 关于页面：列表 */
.about-content ul,
.about-content ol {
    margin: 20px 0 28px;
    padding: 18px 24px 18px 46px;
    border-radius: 14px;
    background: #f7f8f4;
}

.about-content li {
    padding-left: 6px;
    margin-bottom: 12px;
    line-height: 1.85;
    color: #59665a;
}

.about-content li:last-child {
    margin-bottom: 0;
}

.about-content li::marker {
    color: #8da68e;
}

/* 关于页面：引用区块 */
.about-content blockquote {
    margin: 30px 0;
    padding: 18px 24px;
    border: 1px solid #e5ebe1;
    border-left: 4px solid #a5b99f;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(135deg, #f5f7f1, #fafaf7);
    color: #657463;
}

.about-content blockquote p {
    margin-bottom: 0;
    line-height: 1.9;
}

/* 行内代码 */
.about-content :not(pre) > code {
    padding: 3px 7px;
    border: 1px solid #e5ebe1;
    border-radius: 5px;
    background: #f2f5ef;
    color: #718b70;
    font-size: 0.9em;
}

/* 代码块 */
.about-content pre {
    margin: 22px 0;
    padding: 20px;
    border-radius: var(--radius-md);
    background-color: var(--color-text);
    color: var(--color-surface);
    overflow-x: auto;
    line-height: 1.6;
}

.about-content pre code {
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    background: none;
    padding: 0;
    color: inherit;
}

/* 图片 */
.about-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border: 1px solid #e9ece5;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(55, 75, 57, 0.08);
}

/* 表格 */
.about-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    display: block;
    overflow-x: auto;
}

.about-content th,
.about-content td {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.about-content th {
    background-color: var(--color-muted);
    font-weight: 700;
}

/* 分割线 */
.about-content hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 32px 0;
}

/* 最后更新时间 */
.about-footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.about-footer time {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* 平板适配 */
@media (max-width: 768px) {
    .about-page {
        padding-top: 36px;
        padding-bottom: 44px;
    }

    .about-header {
        margin-bottom: 36px;
    }

    .about-avatar {
        width: 108px;
        height: 108px;
    }

    .about-header-content h1 {
        font-size: 30px;
    }

    .about-content {
        font-size: 15px;
        line-height: 1.85;
    }

    .about-content h1 {
        font-size: 26px;
    }

    .about-content h2 {
        font-size: 22px;
    }

    .about-content h3 {
        font-size: 19px;
    }

    .about-content pre {
        padding: 14px;
    }
}

/* 手机适配 */
@media (max-width: 480px) {
    .about-header {
        padding: 28px 16px 24px;
        border-radius: 18px;
    }

    .about-content ul,
    .about-content ol {
        padding: 16px 18px 16px 38px;
    }

    .about-content blockquote {
        margin: 24px 0;
        padding: 14px 16px;
    }

    .about-content img {
        margin: 22px auto;
        border-radius: 10px;
    }
}


/* ==============================
   登录与注册页面
   ============================== */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - 100px);
    padding: 64px 20px;
    background-color: var(--color-bg);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.auth-header {
    margin-bottom: 32px;
    text-align: center;
}

.auth-header h1 {
    margin: 0 0 12px;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
}

.auth-header p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* 表单布局 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.auth-form input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.auth-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-accent);
}

/* 提交按钮 */
.auth-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    color: #ffffff;
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.auth-submit:hover:not(:disabled) {
    background-color: var(--color-primary-hover);
}

.auth-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* 操作反馈 */
.auth-message {
    min-height: 20px;
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* 页面底部注册链接或登录链接 */
.auth-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.auth-footer a {
    margin-left: 5px;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-footer a:hover {
    color: var(--color-primary-hover);
}

/* 手机适配 */
@media (max-width: 480px) {
    .auth-page {
        min-height: auto;
        padding: 40px 16px;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: var(--radius-lg);
    }

    .auth-header h1 {
        font-size: 25px;
    }

    .auth-form {
        gap: 18px;
    }
}



/* 导航栏用户认证状态 */
.navbar-user {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.navbar-logout {
    padding: 8px 0;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.navbar-logout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 导航栏用户信息 */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

/* 导航栏头像 */
.navbar-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

/* 默认头像 */
.navbar-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8ede6;
    color: #718575;
    font-size: 14px;
    font-weight: 600;
}

/* 用户昵称 */
.navbar-user-name {
    color: #30352f;
    font-size: 14px;
}

/* 头像点击区域 */
.navbar-avatar-trigger {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

/* 鼠标悬停显示相机图标 */
.navbar-avatar-trigger::after {
    content: "📷";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    font-size: 15px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.navbar-avatar-trigger:hover::after {
    opacity: 1;
}

.navbar-avatar-trigger:disabled {
    opacity: 0.6;
    cursor: wait;
}
/* 头像上传状态 */
.avatar-upload-message {
    font-size: 12px;
    color: #718575;
}

/* 评论锚点定位 */
.comment-item {
    scroll-margin-top: 100px;
}
/* 通知跳转时，评论区域短暂高亮 */
.comment-item:target {
    border-radius: 10px;
    animation: comment-highlight 3s ease-out;
}

@keyframes comment-highlight {
    0% {
        background-color: #dcebe0;
        box-shadow: 0 0 0 12px #dcebe0;
    }

    50% {
        background-color: #edf4ee;
        box-shadow: 0 0 0 6px #edf4ee;
    }

    100% {
        background-color: transparent;
        box-shadow: 0 0 0 0 transparent;
    }
}




/* =========================================================
   首页侧边栏 · 最近在做
   ========================================================= */

.activity-card {
    padding: 8px 4px 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.activity-card h2 {
    margin: 12px 0 22px;
    font-size: 20px;
    letter-spacing: -0.3px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-left: 3px;
}

.activity-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.activity-item:not(:last-child)::after {
    position: absolute;
    top: 13px;
    bottom: -32px;
    left: 4px;
    width: 1px;
    background: #e3eae2;
    content: "";
}

.activity-dot {
    position: relative;
    z-index: 1;
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border: 2px solid #a2b6a3;
    border-radius: 50%;
    background: #f7f9f5;
}

.activity-item:first-child .activity-dot {
    border-color: #78977d;
    background: #78977d;
    box-shadow: 0 0 0 4px rgba(120, 151, 125, 0.12);
}

.activity-content {
    min-width: 0;
}

.activity-content h3 {
    margin: 0 0 5px;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.activity-content p {
    margin: 0;
    color: #8b958c;
    font-size: 12px;
    line-height: 1.8;
}

/* 触屏设备：头像更换提示 */
@media (hover: none) {
    .navbar-avatar-trigger::after {
        opacity: 0.7;
    }
}

/* ========================================
   首页个人卡片：社交圆形按钮
======================================== */

.profile-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.profile-social-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;

    border: 1px solid #e1e8df;
    border-radius: 50%;
    background: #f2f5f0;
    color: #617b68;

    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.profile-social-link svg {
    display: block;
    width: 18px;
    height: 18px;
}

.profile-social-link:hover {
    border-color: #647d70;
    background: #647d70;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(72, 101, 79, 0.16);
}

.profile-social-link:focus-visible {
    outline: 2px solid #647d70;
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .profile-social-links {
        gap: 14px;
    }

    .profile-social-link {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

.profile-social-link:hover {
    background-color: #496b59;
    color: #fff;
}

.profile-social-link svg {
    display: block;
    width: 19px;
    height: 19px;
}
/* 三个圆形按钮均匀分布 */
.profile-social-links {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
    margin-top: 22px;
}

.profile-social-link {
    margin: 0;
}

/* ==============================
   导航栏昵称编辑按钮
============================== */

.navbar-user-name,
.admin-user-name {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.navbar-user-name:hover,
.admin-user-name:hover {
    color: #5e7966;
}

.navbar-user-name:focus-visible,
.admin-user-name:focus-visible {
    outline: 2px solid #8da797;
    outline-offset: 4px;
    border-radius: 4px;
}