:root {
    --primary-color: #8B4513;
    --primary-hover: #A0522D;
    --text-color: #5D4037;
    --text-secondary: #8D6E63;
    --border-color: #D7CCC8;
    --bg-color: #FFF8E1;
    --shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    --accent-color: #FF8C42;
    --accent-light: #FFE0B2;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background: #FFE4B5;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"%3E%3Cdefs%3E%3ClinearGradient id="bgGradient" x1="0%" y1="0%" x2="100%" y2="100%"%3E%3Cstop offset="0%" style="stop-color:%23FFDAB9;stop-opacity:1"/%3E%3Cstop offset="30%" style="stop-color:%23FFE4B5;stop-opacity:1"/%3E%3Cstop offset="60%" style="stop-color:%23FAEBD7;stop-opacity:1"/%3E%3Cstop offset="100%" style="stop-color:%23E6E6FA;stop-opacity:1"/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width="100%" height="100%" fill="url(%23bgGradient)"/%3E%3C/svg%3E');
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

a:hover {
    color: #0077c8;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.blog-header {
    padding: 0;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-top: 0;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    overflow: visible;
    position: relative;
    z-index: 100;
    background: #FFF8E1;
}

.blog-header-top {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.blog-header-brand {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 16px;
}

.blog-header-brand a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.blog-header-brand img {
    max-width: 100%;
    height: auto;
}

.blog-header-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.blog-header-title:hover {
    color: var(--primary-hover);
}

.blog-header-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-right: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
	text-align: right;
}

.blog-header-toggle {
    display: none;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: background 0.3s;
    z-index: 1001;
}

.blog-header-toggle:hover {
    background: rgba(139, 69, 19, 0.1);
}

.blogtoggle-icon {
    width: 26px;
    height: 18px;
}

.blog-header-nav-wrap {
    background: #6D4C41;
    padding: 0;
    position: relative;
    z-index: 99;
    width: 100%;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #6D4C41;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px;
}

.blog-header-nav {
    padding: 5px 0;
    display: flex;
    justify-content: flex-start;
}

.header-avatar {
    display: none;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.list-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 8px 20px;
    color: #FFE4B5;
    text-decoration: none;
    font-size: 14px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFF8E1;
}

.has-down::after {
    content: '';
}

.dropdown-menus {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFF8E1;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    min-width: 160px;
    z-index: 1000;
    border: 1px solid #D7CCC8;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menus .nav-link {
    color: var(--primary-color);
    padding: 10px 15px;
}

.dropdown-menus .nav-link:hover {
    background: #FFE0B2;
}

.list-menu:hover .dropdown-menus {
    display: block;
}

.blog-container {
    padding: 0;
    position: relative;
    margin-top: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.column-big {
    flex: 1;
    min-width: 500px;
    padding: 0 15px;
}

.column-small {
    width: 260px;
    padding: 0 15px;
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.shadow-theme {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.article-card {
    background: linear-gradient(145deg, #FFF8E1 0%, #FFECB3 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 18px;
    border: 1px solid #FFE0B2;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

/* 鼠标滑入：轻微上浮 + 暖色阴影加深（与阳光和煦主题意境相符，克制不张扬） */
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.12), 0 2px 4px rgba(139, 69, 19, 0.06);
    border-color: #E6C599;
}

.article-main {
    width: 100%;
    min-width: 0;
}

/* 正文区块：缩略图+内容横向布局 */
.article-body {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 15px;
}

/* 缩略图：横向矩形（180×120），放在 article-content 左侧 */
.article-thumb {
    flex: 0 0 180px;
    width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: #FFF3E6;
    position: relative;
    border: 1px solid rgba(215, 204, 200, 0.5);
}

.article-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

/* 卡片 hover 时图片缓慢放大，与卡片上浮形成联动 */
.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

/* 没有缩略图时，内容区自动占满 */
.article-body > .article-content:first-child {
    margin-top: 0;
}

.article-header {
    margin-bottom: 15px;
}

.article-title {
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 8px;
}

.article-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.article-meta span {
    margin-right: 15px;
}

.article-meta a {
    color: var(--primary-color);
}

.article-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
}

.article-footer {
    font-size: 12px;
    color: var(--text-secondary);
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.article-views,
.article-comments {
    margin-right: 15px;
}

.article-readmore {
    float: right;
    color: var(--primary-color);
    font-weight: 500;
}

.article-readmore:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.bottom-5 {
    margin-bottom: 20px;
}

.top-5 {
    margin-top: 20px;
}

.card-padding {
    padding: 15px 0;
}

.loglist-cover {
    margin-bottom: 15px;
}

.loglist-cover img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.card-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.loglist-title {
    color: var(--text-color);
    text-decoration: none;
}

.loglist-title:hover {
    color: var(--primary-color);
}

.log-topflg {
    display: inline-block;
    padding: 2px 6px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    border-radius: var(--border-radius);
    margin-right: 8px;
}

.loglist-sort {
    margin-left: 10px;
    font-size: 12px;
}

.loglist-sort a {
    color: var(--text-secondary);
}

.loglist-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.loglist-tag {
    margin-bottom: 15px;
}

.tags {
    display: inline-block;
    padding: 3px 8px;
    background: #FFE0B2;
    color: var(--primary-color);
    font-size: 12px;
    border-radius: var(--border-radius);
    margin-right: 5px;
    border: 1px solid #FFCC80;
}

.tags:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.log-info {
    color: var(--text-secondary);
    font-size: 13px;
}

.log-count {
    font-size: 13px;
}

.log-count a {
    color: var(--text-secondary);
}

.m-r-10 {
    margin-right: 10px;
}

.pagination {
    text-align: center;
    padding: 15px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
}

.pagination a:hover,
.pagination a.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.slideshow-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.slideshow-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    font-size: 14px;
    border-radius: var(--border-radius);
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    outline: none;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slideshow-prev {
    left: 0;
}

.slideshow-next {
    right: 0;
}

.fade {
    animation: fade 1.5s;
}

@keyframes fade {
    from {
        opacity: 0.4
    }

    to {
        opacity: 1
    }
}

.widget {
    background: linear-gradient(145deg, #FFF8E1 0%, #FFECB3 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid #FFE0B2;
}

.widget-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 12px;
    color: var(--primary-color);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}

.widget-list li:last-child {
    border-bottom: none;
}

.unstyle-li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bloggerinfo {
    text-align: center;
}

.bloggerinfo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.bloginfo-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 3px;
}

.bloginfo-descript {
    color: var(--text-secondary);
    font-size: 12px;
}

.tag-container {
    line-height: 2;
}

.tags-side {
    color: var(--text-secondary);
}

.tags-side:hover {
    color: var(--primary-color);
}

.log-classify-f li {
    padding: 0;
}

.sort-parent-item {
    margin-bottom: 2px;
}

.sort-parent-row {
    display: flex;
    align-items: center;
    padding: 5px 0;
    cursor: pointer;
    color: var(--text-color);
}

.sort-parent-row:hover {
    background-color: rgba(139, 69, 19, 0.05);
}

.sort-parent-row a {
    color: var(--text-color);
    text-decoration: none;
    flex: 1;
}

.sort-parent-row a:hover {
    color: var(--primary-color);
}

.sort-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 10px;
    color: var(--primary-color);
    margin-right: 4px;
}

.sort-toggle-icon.empty {
    color: transparent;
}

.sort-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.log-classify-c {
    padding-left: 20px;
    list-style: none;
    display: none;
}

.sort-child-item {
    padding: 3px 0;
}

.sort-child-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
}

.sort-child-item a:hover {
    color: var(--primary-color);
}

.search-form {
    margin: 0;
    padding: 0;
}

.search-input-group {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 38px;
}

.search-input-group input {
    flex: 1;
    padding: 0 12px;
    border: none;
    background: #fff;
    font-size: 14px;
    outline: none;
    height: 100%;
}

.search-input-group input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    padding: 0 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.search-btn:hover {
    background: var(--primary-hover);
}

.widget-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.widget-link-item {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #FFE0B2;
    color: var(--primary-color);
    font-size: 12px;
    border-radius: var(--border-radius);
    text-decoration: none;
    border: 1px solid #FFCC80;
}

.widget-link-item:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.archive {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

#calendar {
    color: var(--text-color);
}

.calendartop {
    letter-spacing: 3px;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-color);
}

.calendartop a {
    font-weight: 100 !important;
    color: var(--primary-color);
    text-decoration: none;
}

.calendartop a:hover {
    color: var(--primary-hover);
}

.calendar {
    margin-bottom: -10px;
    width: 100%;
}

.calendar td {
    text-align: center;
    padding: 2px 4px;
    line-height: 1.6;
    font-size: 13px;
}

.calendar td a:link {
    color: var(--primary-color);
    font-weight: bolder;
    text-decoration: none;
}

.calendar td a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.calendar tr {
    height: 30px;
}

.day {
    color: var(--primary-color);
    background: #FFE0B2;
    border-radius: var(--border-radius);
}

.sun {
    color: var(--text-secondary);
}

.week {
    color: var(--text-color);
    font-weight: bold;
}

.blog-lates {
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
}

.blog-lates:last-child {
    border-bottom: none;
}

.side-cover-image {
    height: 50px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-end;
    padding: 4px;
    margin-bottom: 4px;
}

.side-title-container {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 5px;
    border-radius: var(--border-radius);
}

.side-title-container a {
    color: #fff;
    font-size: 11px;
}

.comment-info {
    padding: 8px 0;
}

.comment-info_img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    float: left;
}

.comm-lates-name {
    font-weight: bold;
    font-size: 12px;
}

.logcom-latest-time {
    color: var(--text-secondary);
    font-size: 11px;
    margin-left: 4px;
}

.side-twitter-item {
    padding: 8px 0;
}

.side-twitter-content {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.blog-footer {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    color: #FFE4B5;
    padding: 25px 0;
    margin-top: 20px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.blog-footer-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    text-align: center;
}

.blog-footer-text a {
    color: #FFE4B5;
}

.blog-footer-text a:hover {
    color: #FFF8E1;
    text-decoration: underline;
}

.fzm-copyright-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fzm-copyright-side {
    display: inline-block;
}

.fzm-copyright-extra {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
}

.fzm-copyright-top {
    margin-top: 0;
}

.fzm-copyright-bottom {
    margin-top: 10px;
}

.fzm-links-apply {
    font-size: 13px;
    font-weight: normal;
    color: #6D4C41;
    text-decoration: none;
    padding: 3px 10px;
    border: 1px solid #6D4C41;
    border-radius: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.fzm-links-apply:hover {
    background: #6D4C41;
    color: #FFF8E1;
    text-decoration: none;
}

.fzm-police-icp {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 0;
    color: #FFE4B5;
    text-decoration: none;
    vertical-align: middle;
}

.fzm-police-icp:hover {
    color: #FFF8E1;
    text-decoration: underline;
}

.fzm-police-icp svg,
.fzm-police-icp img {
    vertical-align: middle;
}

.fzm-footer-custom-html {
    margin-top: 15px;
}

.fzm-footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.fzm-social-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 228, 181, 0.15);
    color: #FFE4B5;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 228, 181, 0.2);
}

.fzm-social-item:hover {
    background: rgba(255, 228, 181, 0.3);
    color: #FFF8E1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fzm-social-item svg {
    flex-shrink: 0;
}

.log-con {
    background: linear-gradient(145deg, #FFF8E1 0%, #FFECB3 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 28px;
    border: 1px solid #FFE0B2;
}

.log-header {
    margin-bottom: 18px;
}

.log-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.log-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.log-meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.log-meta-item {
    display: flex;
    align-items: center;
}

.log-meta-right a {
    color: var(--primary-color);
    font-size: 12px;
}

/* ==================== 文章正文 Markdown 样式 ==================== */
.markdown {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.markdown > *:first-child {
    margin-top: 0;
}

.markdown > *:last-child {
    margin-bottom: 0;
}

/* ----- 标题 h1-h6 ----- */
.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
    color: var(--primary-color);
    font-weight: bold;
    margin: 22px 0 12px;
    line-height: 1.4;
}

.markdown h1 {
    font-size: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.markdown h2 {
    font-size: 20px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.markdown h3 {
    font-size: 17px;
    padding-left: 10px;
    border-left: 4px solid var(--accent-color);
}

.markdown h4 {
    font-size: 16px;
}

.markdown h5 {
    font-size: 15px;
    color: var(--text-secondary);
}

.markdown h6 {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ----- 段落 ----- */
.markdown p {
    margin-bottom: 14px;
}

/* ----- 链接 ----- */
.markdown a {
    color: #0077c8;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color 0.2s, border-color 0.2s;
}

.markdown a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* ----- 强调 / 加粗 / 斜体 ----- */
.markdown strong,
.markdown b {
    color: var(--primary-color);
    font-weight: bold;
}

.markdown em,
.markdown i {
    font-style: italic;
}

/* ----- 删除线 ----- */
.markdown del,
.markdown s,
.markdown strike {
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* ----- mark 高亮 ----- */
.markdown mark {
    background: var(--accent-light);
    color: var(--primary-color);
    padding: 2px 5px;
    border-radius: 3px;
}

/* ----- 列表 ----- */
.markdown ul,
.markdown ol {
    padding-left: 24px;
    margin-bottom: 14px;
}

.markdown ul ul,
.markdown ol ol,
.markdown ul ol,
.markdown ol ul {
    margin: 4px 0;
}

.markdown li {
    margin-bottom: 6px;
}

.markdown li > p {
    margin-bottom: 6px;
}

/* 任务列表（GFM） */
.markdown ul.contains-task-list,
.markdown ul.task-list {
    list-style: none;
    padding-left: 8px;
}

.markdown li.task-list-item {
    list-style: none;
}

.markdown input[type="checkbox"] {
    margin: 0 6px 0 0;
    vertical-align: middle;
    transform: translateY(-1px);
    accent-color: var(--primary-color);
}

/* ----- 引用块 ----- */
.markdown blockquote {
    border-left: 4px solid var(--accent-color);
    background: rgba(255, 224, 178, 0.4);
    padding: 10px 16px;
    margin: 14px 0;
    color: var(--text-secondary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.markdown blockquote p:last-child {
    margin-bottom: 0;
}

.markdown blockquote blockquote {
    margin: 8px 0;
}

/* ----- 行内代码 ----- */
.markdown code {
    background: rgba(139, 69, 19, 0.08);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

/* ----- 代码块 pre ----- */
.markdown pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 16px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 14px 0;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid #1a1a1a;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.markdown pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: inherit;
    font-family: inherit;
}

/* ----- 水平线 ----- */
.markdown hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 22px 0;
}

/* ----- 图片 ----- */
.markdown img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.15);
    margin: 8px 0;
    display: inline-block;
    cursor: zoom-in;
}

.markdown p > img:only-child {
    display: block;
    margin: 12px auto;
}

/* ----- 表格（关键支持） ----- */
/* 移动端横向滚动容器（由 JS 包裹生成，无 JS 时表格仍可用） */
.markdown .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border-radius: var(--border-radius);
}

.markdown .table-wrap > table {
    margin: 0;
}

.markdown table {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0;
    background: #fff;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(139, 69, 19, 0.08);
    table-layout: auto;
}

.markdown table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
}

.markdown table th,
.markdown table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.markdown table th:last-child,
.markdown table td:last-child {
    border-right: none;
}

.markdown table tbody tr:last-child td {
    border-bottom: none;
}

.markdown table th {
    font-weight: bold;
    border-color: rgba(255, 255, 255, 0.25);
}

.markdown table tbody tr:nth-child(even) {
    background: rgba(255, 224, 178, 0.2);
}

.markdown table tbody tr:hover {
    background: rgba(255, 140, 66, 0.1);
}

.markdown table caption {
    caption-side: top;
    padding: 8px 12px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    background: rgba(255, 224, 178, 0.35);
    border-bottom: 1px solid var(--border-color);
}

/* ----- 定义列表 dl/dt/dd ----- */
.markdown dl {
    margin: 14px 0;
}

.markdown dt {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 8px;
}

.markdown dd {
    margin-left: 24px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ----- kbd 键盘按键 ----- */
.markdown kbd {
    display: inline-block;
    padding: 2px 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-bottom-width: 2px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85em;
    color: var(--text-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
}

/* ----- 视频 / iframe 嵌入 ----- */
.markdown video,
.markdown iframe {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 12px 0;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.15);
}

.markdown iframe {
    border: 1px solid var(--border-color);
    display: block;
}

/* 响应式视频容器（16:9） */
.markdown .video-container,
.markdown .embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 14px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.15);
}

.markdown .video-container iframe,
.markdown .embed-container iframe,
.markdown .video-container video,
.markdown .embed-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: none;
}

/* ----- 上标 / 下标 ----- */
.markdown sub,
.markdown sup {
    font-size: 0.75em;
    line-height: 0;
}

/* ----- 图文组合 figure / figcaption ----- */
.markdown figure {
    margin: 16px 0;
    text-align: center;
}

.markdown figure img {
    margin: 0 auto;
}

.markdown figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    padding: 0 10px;
}

/* ----- 折叠块 details / summary ----- */
.markdown details {
    margin: 14px 0;
    padding: 12px 16px;
    background: rgba(255, 224, 178, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.markdown details[open] {
    background: rgba(255, 224, 178, 0.4);
}

.markdown summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    padding: 2px 0;
    outline: none;
    list-style: none;
}

.markdown summary::-webkit-details-marker {
    display: none;
}

.markdown summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 8px;
    font-size: 0.75em;
    transition: transform 0.25s;
    color: var(--accent-color);
}

.markdown details[open] summary::before {
    transform: rotate(90deg);
}

.markdown details > *:not(summary) {
    margin-top: 10px;
}

/* ----- 行内语义元素 ----- */
.markdown abbr[title] {
    cursor: help;
    border-bottom: 1px dotted var(--text-secondary);
    text-decoration: none;
}

.markdown cite {
    font-style: italic;
    color: var(--text-secondary);
}

.markdown q {
    quotes: '“' '”' '‘' '’';
    color: var(--text-secondary);
}

.markdown q::before { content: open-quote; }
.markdown q::after { content: close-quote; }

.markdown address {
    font-style: italic;
    margin: 14px 0;
    padding: 10px 16px;
    border-left: 3px solid var(--border-color);
    color: var(--text-secondary);
}

.markdown small {
    font-size: 0.85em;
    color: var(--text-secondary);
}

.markdown ins {
    text-decoration: underline;
    color: #2e7d32;
    background: rgba(76, 175, 80, 0.12);
    padding: 0 3px;
    border-radius: 3px;
}

.markdown dfn {
    font-style: italic;
    font-weight: bold;
    color: var(--primary-color);
}

.markdown var,
.markdown samp {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.markdown samp {
    background: rgba(139, 69, 19, 0.08);
    color: var(--primary-color);
    padding: 1px 5px;
    border-radius: 4px;
}

/* ----- 段落对齐（兼容编辑器输出的对齐类与内联样式） ----- */
.markdown p[style*="text-align: center"],
.markdown .text-center,
.markdown .align-center {
    text-align: center;
}

.markdown p[style*="text-align: right"],
.markdown .text-right,
.markdown .align-right {
    text-align: right;
}

.markdown p[style*="text-align: justify"],
.markdown .text-justify,
.markdown .align-justify {
    text-align: justify;
}

/* ----- 图片对齐浮动 ----- */
.markdown img.alignleft,
.markdown img[align="left"] {
    float: left;
    margin: 6px 16px 6px 0;
    max-width: 50%;
}

.markdown img.alignright,
.markdown img[align="right"] {
    float: right;
    margin: 6px 0 6px 16px;
    max-width: 50%;
}

.markdown img.aligncenter,
.markdown img[align="center"] {
    display: block;
    margin: 12px auto;
    clear: both;
}

.markdown::after {
    content: '';
    display: table;
    clear: both;
}

/* ----- GitHub 风格提示框（markdown-alert） ----- */
.markdown .markdown-alert {
    margin: 14px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--border-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background: rgba(255, 224, 178, 0.25);
}

.markdown .markdown-alert-title {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.markdown .markdown-alert-title::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 6px;
    background-size: contain;
    background-repeat: no-repeat;
}

.markdown .markdown-alert-note { border-left-color: #0969da; background: rgba(9, 105, 218, 0.08); }
.markdown .markdown-alert-note .markdown-alert-title { color: #0969da; }

.markdown .markdown-alert-tip { border-left-color: #1a7f37; background: rgba(26, 127, 55, 0.08); }
.markdown .markdown-alert-tip .markdown-alert-title { color: #1a7f37; }

.markdown .markdown-alert-important { border-left-color: #8250df; background: rgba(130, 80, 223, 0.08); }
.markdown .markdown-alert-important .markdown-alert-title { color: #8250df; }

.markdown .markdown-alert-warning { border-left-color: #9a6700; background: rgba(154, 103, 0, 0.1); }
.markdown .markdown-alert-warning .markdown-alert-title { color: #9a6700; }

.markdown .markdown-alert-caution { border-left-color: #cf222e; background: rgba(207, 34, 46, 0.08); }
.markdown .markdown-alert-caution .markdown-alert-title { color: #cf222e; }

/* ----- 代码高亮兼容（兼容 highlight.js / prism / Editor.md 输出） ----- */
.markdown pre code,
.markdown pre code.hljs {
    display: block;
    overflow-x: auto;
    padding: 0;
}

.markdown .hljs-comment,
.markdown .hljs-quote {
    color: #999;
    font-style: italic;
}

.markdown code[class*="language-"],
.markdown .token {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* ----- 脚注 ----- */
.markdown .footnote {
    font-size: 0.88em;
    color: var(--text-secondary);
    border-top: 1px dashed var(--border-color);
    margin-top: 22px;
    padding-top: 10px;
}

.markdown .footnote ol {
    padding-left: 20px;
}

.markdown .footnote li {
    margin-bottom: 4px;
}

.markdown sup a[href^="#fn"],
.markdown .footnote-ref a,
.markdown a.footnote-backref {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

.markdown a.footnote-backref:hover {
    text-decoration: underline;
}

/* ----- 分栏提示（部分编辑器输出的分隔线变体） ----- */
.markdown .page-break {
    border: none;
    border-top: 2px dashed var(--accent-color);
    margin: 24px 0;
}

/* ----- 移动端优化 ----- */
@media (max-width: 768px) {
    .markdown {
        font-size: 14px;
    }

    .markdown h1 {
        font-size: 20px;
    }

    .markdown h2 {
        font-size: 18px;
    }

    .markdown h3 {
        font-size: 16px;
    }

    .markdown pre {
        font-size: 12px;
        padding: 12px;
    }

    .markdown table th,
    .markdown table td {
        padding: 8px 10px;
    }

    .markdown .table-wrap {
        margin: 12px -10px;
        padding: 0 2px;
    }

    .markdown img.alignleft,
    .markdown img.alignright,
    .markdown img[align="left"],
    .markdown img[align="right"] {
        float: none;
        display: block;
        margin: 10px auto;
        max-width: 100%;
    }
}

.neighbor-log {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    margin: 18px 0;
}

.neighbor-link {
    color: var(--text-secondary);
    font-size: 12px;
}

.neighbor-link:hover {
    color: var(--primary-color);
}

.neighbor-title {
    display: block;
    margin-top: 4px;
}

/* ===== 评论列表基础样式（四种排版共享） ===== */
.comment-list {
    margin-top: 10px;
}

.comment-header {
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.comment {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.comment-infos {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
}

.comment-poster {
    color: var(--primary-color);
    font-size: 14px;
}

.comment-reply-to {
    font-size: 12px;
    color: var(--text-secondary);
}

.reply-target {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: 2px;
}

.comment-time {
    color: var(--text-secondary);
    font-size: 11px;
}

.comment-content {
    margin-top: 4px;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.7;
    word-wrap: break-word;
}

.comment-reply {
    margin-top: 8px;
}

.com-reply {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 3px 14px;
    border-radius: var(--border-radius);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.com-reply:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ===== 样式一：嵌套竖线（默认） ===== */
.comment-style-1 .comment-children {
    margin-left: 12px;
    padding-left: 20px;
    margin-top: 4px;
    border-left: 2px solid var(--border-color);
}
.comment-style-1 .comment-children .comment {
    padding: 12px 0;
    border-bottom: none;
}
.comment-style-1 .comment-children .comment:last-child {
    padding-bottom: 2px;
}

/* ===== 样式二：扁平卡片 ===== */
.comment-style-2 .comment {
    background: linear-gradient(135deg, rgba(255, 248, 225, 0.7), rgba(255, 224, 178, 0.35));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.06);
}
.comment-style-2 .comment:last-child {
    margin-bottom: 0;
}
.comment-style-2 .comment-children {
    margin-left: 0;
    padding-left: 0;
    margin-top: 12px;
    border-left: none;
}
.comment-style-2 .comment-children .comment {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    margin-bottom: 8px;
}
.comment-style-2 .comment-children .comment:last-child {
    margin-bottom: 0;
}
.comment-style-2 .comment-header {
    border-bottom: none;
    margin-bottom: 12px;
}

/* ===== 样式三：气泡对话 ===== */
.comment-style-3 .comment {
    padding: 12px 0;
}
.comment-style-3 .avatar img {
    width: 36px;
    height: 36px;
}
.comment-style-3 .comment-meta {
    margin-bottom: 4px;
}
.comment-style-3 .comment-content {
    display: inline-block;
    background: rgba(255, 224, 178, 0.55);
    border: 1px solid rgba(139, 69, 19, 0.12);
    border-radius: 4px 18px 18px 18px;
    padding: 8px 14px;
    margin-top: 2px;
    max-width: 100%;
}
.comment-style-3 .comment-children {
    margin-left: 16px;
    padding-left: 18px;
    margin-top: 6px;
    border-left: 2px dashed var(--border-color);
}
.comment-style-3 .comment-children .comment {
    padding: 10px 0;
    border-bottom: none;
}
.comment-style-3 .comment-children .comment:last-child {
    padding-bottom: 2px;
}

/* ===== 样式四：时间线 ===== */
.comment-style-4 {
    position: relative;
    margin-top: 14px;
}
.comment-style-4::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 48px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(var(--primary-color), var(--border-color));
}
.comment-style-4 .comment {
    position: relative;
    margin-left: 28px;
    padding: 10px 0;
    border-bottom: none;
}
.comment-style-4 .comment::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--border-color);
    z-index: 1;
}
.comment-style-4 .comment-children {
    margin-left: 0;
    padding-left: 0;
    margin-top: 4px;
    border-left: none;
}
.comment-style-4 .comment-children .comment {
    padding: 8px 0;
}
.comment-style-4 .comment-children .comment::before {
    background: var(--accent-color);
    width: 10px;
    height: 10px;
    left: -23px;
    top: 14px;
}

.comment-post {
    margin-top: 25px;
}

.commentform {
    background: #f9f9f9;
    padding: 18px;
    border-radius: var(--border-radius);
}

.form-control {
    width: 100%;
    padding: 9px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 13px;
    margin-bottom: 12px;
}

.comment-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.com_control {
    width: calc(50% - 6px);
}

.com_submit_p {
    display: flex;
    gap: 8px;
}

.btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--border-radius);
    font-size: 13px;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-hover);
}

.cancel-reply {
    background: var(--text-secondary);
}

.cancel-reply:hover {
    background: #6D4C41;
}

.deco-sun {
    position: fixed;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 30%, rgba(255,165,0,0.3) 60%, transparent 80%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: sunPulse 8s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.deco-sun-rays {
    position: fixed;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: repeating-conic-gradient(from 0deg, rgba(255,215,0,0.3) 0deg 10deg, transparent 10deg 20deg);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: sunRotate 20s linear infinite;
}

@keyframes sunRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.auth-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    font-size: 24px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
}

.auth-modal-close:hover {
    color: #333;
    background: #f5f5f5;
}

.auth-modal-head {
    text-align: center;
    margin-bottom: 25px;
}

.auth-modal-head h3 {
    font-size: 20px;
    color: var(--text-color);
    margin: 0;
}

.auth-modal-alert {
    display: none;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    font-size: 13px;
}

.auth-modal-alert.show {
    display: block;
}

.auth-modal-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-modal-alert:not(.success) {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-form-row {
    margin-bottom: 15px;
}

.auth-form-row input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.auth-form-row input:focus {
    border-color: var(--primary-color);
}

.auth-captcha-row {
    display: flex;
    gap: 10px;
}

.auth-captcha-row img {
    height: 42px;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.auth-checkbox input {
    margin-right: 8px;
}

.auth-checkbox span {
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-modal-switch {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.auth-modal-switch a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 8px;
}

.auth-modal-switch a:hover {
    text-decoration: underline;
}

.auth-inline-row {
    display: flex;
    gap: 10px;
}

.auth-inline-btn {
    padding: 12px 20px !important;
    white-space: nowrap;
}

.cloud {
    position: fixed;
    background: rgba(255,255,255,0.8);
    border-radius: 50px;
    z-index: 0;
    pointer-events: none;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
}

.cloud-1 {
    width: 120px;
    height: 40px;
    top: 80px;
    left: 5%;
    animation: cloudFloat1 25s linear infinite;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 15px;
}

.cloud-1::after {
    width: 35px;
    height: 35px;
    top: -15px;
    right: 20px;
}

.cloud-2 {
    width: 100px;
    height: 35px;
    top: 150px;
    left: 30%;
    animation: cloudFloat2 30s linear infinite;
    animation-delay: -10s;
}

.cloud-2::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 10px;
}

.cloud-2::after {
    width: 28px;
    height: 28px;
    top: -12px;
    right: 15px;
}

.cloud-3 {
    width: 140px;
    height: 45px;
    top: 60px;
    right: 25%;
    animation: cloudFloat3 35s linear infinite;
    animation-delay: -5s;
}

.cloud-3::before {
    width: 55px;
    height: 55px;
    top: -28px;
    left: 20px;
}

.cloud-3::after {
    width: 40px;
    height: 40px;
    top: -18px;
    right: 25px;
}

@keyframes cloudFloat1 {
    from { transform: translateX(-150px); }
    to { transform: translateX(calc(100vw + 150px)); }
}

@keyframes cloudFloat2 {
    from { transform: translateX(-120px); }
    to { transform: translateX(calc(100vw + 120px)); }
}

@keyframes cloudFloat3 {
    from { transform: translateX(calc(100vw + 150px)); }
    to { transform: translateX(-150px); }
}

.wind-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: windFloat 15s linear infinite;
}

.wind-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.wind-particle:nth-child(2) { top: 35%; left: 25%; animation-delay: 2s; }
.wind-particle:nth-child(3) { top: 50%; left: 40%; animation-delay: 4s; }
.wind-particle:nth-child(4) { top: 25%; left: 55%; animation-delay: 1s; }
.wind-particle:nth-child(5) { top: 40%; left: 70%; animation-delay: 3s; }
.wind-particle:nth-child(6) { top: 55%; left: 85%; animation-delay: 5s; }

@keyframes windFloat {
    0% { transform: translateX(0) translateY(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateX(300px) translateY(50px); opacity: 0; }
}

.decoration-left {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 180px;
    height: 300px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="180" height="300" viewBox="0 0 180 300"%3E%3Cpath d="M0,300 L0,200 Q15,160 30,180 Q45,200 60,170 Q75,140 90,165 Q105,190 120,155 Q135,120 150,145 L180,300 Z" fill="%2398D8C8" opacity="0.6"/%3E%3Cpath d="M10,280 Q20,250 30,270 Q40,290 50,260" stroke="%235CB85C" stroke-width="2" fill="none"/%3E%3Ccircle cx="30" cy="270" r="6" fill="%23FFB7C5"/%3E%3Ccircle cx="50" cy="260" r="5" fill="%23FF91A4"/%3E%3Ccircle cx="40" cy="280" r="4" fill="%23FFC0CB"/%3E%3Cpath d="M60,80 L60,150 Q55,160 60,170" stroke="%235CB85C" stroke-width="2" fill="none"/%3E%3Cpath d="M60,100 Q40,90 30,110 Q50,120 60,100" fill="%235CB85C" opacity="0.4"/%3E%3Cpath d="M60,130 Q80,120 90,140 Q70,150 60,130" fill="%235CB85C" opacity="0.4"/%3E%3C/defs%3E%3CclipPath id="leafClip"%3E%3Cpath d="M0,5 Q3,2 5,5 Q3,8 0,5 Z"/%3E%3C/clipPath%3E%3Cg clip-path="url(%23leafClip)"%3E%3Cpath d="M100,180 Q105,175 110,180 Q105,185 100,180" fill="%2398D8C8" opacity="0.7"/%3E%3C/g%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.decoration-right {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 180px;
    height: 300px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="180" height="300" viewBox="0 0 180 300"%3E%3Cpath d="M180,300 L180,200 Q165,160 150,180 Q135,200 120,170 Q105,140 90,165 Q75,190 60,155 Q45,120 30,145 L0,300 Z" fill="%2398D8C8" opacity="0.6"/%3E%3Cpath d="M170,280 Q160,250 150,270 Q140,290 130,260" stroke="%235CB85C" stroke-width="2" fill="none"/%3E%3Ccircle cx="150" cy="270" r="6" fill="%23FFB7C5"/%3E%3Ccircle cx="130" cy="260" r="5" fill="%23FF91A4"/%3E%3Ccircle cx="140" cy="280" r="4" fill="%23FFC0CB"/%3E%3Cpath d="M120,80 L120,150 Q125,160 120,170" stroke="%235CB85C" stroke-width="2" fill="none"/%3E%3Cpath d="M120,100 Q140,90 150,110 Q130,120 120,100" fill="%235CB85C" opacity="0.4"/%3E%3Cpath d="M120,130 Q100,120 90,140 Q110,150 120,130" fill="%235CB85C" opacity="0.4"/%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.grass-decor {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(152,216,200,0.4) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 992px) {
    .blog-header-nav-wrap {
        display: none;
    }

    .decoration-left,
    .decoration-right {
        display: none;
    }

    .deco-sun,
    .deco-sun-rays {
        display: none;
    }

    .column-big {
        min-width: 100%;
        margin-bottom: 15px;
    }

    .column-small {
        width: 100%;
        position: static;
        top: auto;
    }

    .blog-header-top {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    .blog-header-brand {
        flex: 1;
        min-width: 0;
    }

    .blog-header-title {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .blog-header-brand img {
        max-width: 120px;
        height: auto;
    }

    .blog-header-subtitle {
        display: none;
    }

    .blog-header-toggle {
        display: flex !important;
        flex-shrink: 0;
        margin-left: 10px;
        background: #6D4C41;
        padding: 8px;
        border-radius: var(--border-radius);
        border: 2px solid #8B4513;
        box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
        z-index: 9999;
        position: relative;
    }

    .blog-header-toggle svg rect {
        fill: #FFE4B5 !important;
        stroke: #FFE4B5;
        stroke-width: 1;
    }

    .blog-header-toggle:hover {
        background: #5D4037;
        transform: scale(1.05);
    }

    .mobile-nav-menu.show {
        display: block;
    }

    .blog-header-nav {
        display: block;
        padding: 0;
    }

    .nav-list {
        display: block;
    }

    .list-item {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .list-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 16px;
    }

    .dropdown-menus {
        position: static;
        background: rgba(255,255,255,0.05);
        border: none;
        box-shadow: none;
        min-width: 100%;
        border-radius: 0;
    }

    .dropdown-menus .nav-link {
        padding-left: 30px;
        color: #FFE4B5;
        font-size: 14px;
    }

    .dropdown-menus .nav-link:hover {
        background: rgba(255,255,255,0.1);
    }

    .list-menu:hover .dropdown-menus {
        display: none;
    }

    .list-menu.active .dropdown-menus {
        display: block;
    }

    .nav-link.has-down {
        position: relative;
        padding-right: 30px;
    }

    .nav-link.has-down::after {
        content: '▼';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        color: #FFE4B5;
        transition: transform 0.3s;
    }

    .list-menu.active .nav-link.has-down::after {
        transform: translateY(-50%) rotate(180deg);
    }
}

@media (max-width: 768px) {
    .blog-header-top {
        padding: 15px 0;
    }

    .blog-header-title {
        font-size: 16px;
    }

    .blog-header-brand img {
        max-width: 100px;
    }

    .log-title {
        font-size: 19px;
    }

    .log-meta-left {
        flex-direction: column;
        gap: 4px;
    }
}

#back-to-top {
    position: fixed;
    bottom: 160px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

#back-to-top.show {
    opacity: 1;
}

#back-to-top:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    cursor: pointer;
}

.nav-overlay.show {
    display: block;
}

.ad-top, .ad-content, .ad-sidebar {
    margin: 15px 0;
    padding: 10px;
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.8);
    text-align: center;
}

.ad-top {
    margin-bottom: 20px;
}

.ad-content {
    margin: 20px 0;
}

.ad-sidebar {
    padding: 15px;
}

/* ==================== 文章摘要与关键字板块 ==================== */
.log-summary {
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.log-summary-block {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.9), rgba(255, 243, 230, 0.6));
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.06);
}

.log-summary-keywords {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.9), rgba(255, 224, 178, 0.25));
}

.log-summary-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

/* 关键字板块：标题与标签同一行显示 */
.log-summary-head-inline {
    flex-wrap: wrap;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.log-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.log-summary-keywords .log-summary-icon {
    color: var(--accent-color);
}

.log-summary-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.log-summary-keywords .log-summary-title {
    color: var(--accent-color);
}

.log-summary-body {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.8;
}

/* 摘要正文内段落间距归零，避免与外层 padding 叠加过大 */
.log-summary-excerpt .log-summary-body > *:first-child {
    margin-top: 0;
}

.log-summary-excerpt .log-summary-body > *:last-child {
    margin-bottom: 0;
}

/* 关键字标签区：复用 .tags 样式，仅微调间距与换行 */
.log-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.8;
    align-items: center;
}

.log-summary-tags .tags {
    margin-right: 0;
    padding: 4px 12px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .log-summary {
        margin: 18px 0 16px;
        gap: 12px;
    }

    .log-summary-block {
        padding: 12px 14px;
    }

    .log-summary-title {
        font-size: 13px;
    }

    .log-summary-body {
        font-size: 13.5px;
    }

    /* 移动端：正文区块改为纵向，缩略图在顶部（横向大图） */
    .article-body {
        flex-direction: column;
        gap: 12px;
    }

    .article-thumb {
        flex: 1 1 auto;
        width: 100%;
        height: 180px;
    }

    /* 移动端hover上浮幅度减半，避免触摸时视觉跳动 */
    .article-card:hover {
        transform: translateY(-1.5px);
    }
}