﻿/*
Theme Name: Flat-Responsive-Theme
Theme URI: https://lefuo.com
Author: 乐福学长
Author URI: https://lefuo.com
Description: 扁平化响应式WordPress主题，适配全年龄段审美，包含LOGO、导航、搜索、注册登录、友情链接等功能
Version: 3.9.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flat-responsive-theme
*/

/* ==============================================
   1. 全局变量 & 基础重置（核心配置）
   ============================================== */
:root {
    --primary-color: #1677FF;
    --primary-light: #69B1FF;
    --primary-dark: #0958D9;
    --text-main: #1D2129;
    --text-secondary: #4E5969;
    --text-tertiary: #86909C;
    --bg-white: #FFFFFF;
    --bg-gray: #F7F8FA;
    --bg-light: #F2F3F5;
    --border-dark: #D0D3D9;
    --border-normal: #E5E6EB;
    --border-light: #F2F3F7;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --radius: 2px;
    --radius-large: 4px;
    --fw-medium: 500;
    --transition-base: all 0.3s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;   /* 锚点跳转时为吸顶导航(社交栏48+主栏52≈100px)预留高度，避免标题被头部盖住 */
    font-size: 62.5%;
}

body {
    font-family: "PingFang SC", "Microsoft Yahei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-gray);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

ul, li {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

h1, h2, h3, h4, h5 {
    text-rendering: optimizeLegibility;
    font-weight: normal;
}

span.iconfont::before {
    margin-right: 5px;
}

.btn {
    display: inline-block;
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* ==============================================
   2. 头部样式
   ============================================== */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    margin-bottom: 0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
}
/* 社交栏 */
.header-top {
    background: rgba(37, 99, 235, 0.04);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    max-height: 48px;
    opacity: 1;
    font-size: 1.2rem;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.header-top.shrink {
    max-height: 0;
    opacity: 0;
}

.social-area {
    display: flex;
    justify-content: space-between;
    color: var(--text-tertiary);
    padding: 1rem 0;font-size: 1.2rem;
}

.social-area .iconfont{font-size: 1.2rem;color: var(--primary-color);
}
.social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.login-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;}

.header-top span {
    display: inline-flex;
    align-items: center;
    gap:0.5rem;
    cursor: default;
}

.social-area a {
    color: var(--text-main);
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;font-size: 1.2rem;
    gap: 0.3rem;
}

.social-area a:hover {
    color: var(--primary-color);
}

.header-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 60px;
    width: 100%;
    padding: 10px 0px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-area img, .custom-logo {
    height: 100%;
    max-height: 32px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.site-logo {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: var(--radius);
    color: var(--bg-white);
    text-align: center;
    line-height: 32px;
    font-size: 16px;
}

.site-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 32px;
    margin: 0;
}

.site-title a {
    color: var(--text-main);
}

.main-navigation {
    position: relative;
    display: block;
    flex: 1;
    max-width: fit-content;
}

.main-navigation > ul {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    padding: 5px 0;
}

.main-navigation a {
    color: var(--text-main);
    font-size: 14px;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
    display: block;
    white-space: nowrap;
}

.current-menu-item a,
.main-navigation a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.main-navigation li.menu-item-has-children > a {
    padding-right: 25px;
}

.main-navigation li.menu-item-has-children > a::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-tertiary);
    transition: var(--transition-base);
}

.main-navigation li.menu-item-has-children:hover > a::after {
    border-top-color: var(--primary-color);
    transform: translateY(-50%) rotate(180deg);
}

.main-navigation ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 9999;
}

.main-navigation ul.sub-menu ul.sub-menu {
    left: 100%;
    top: 0;
    margin-left: 5px;
}

.main-navigation li:hover > ul.sub-menu {
    display: flex;
}

.main-navigation ul.sub-menu li {
    padding: 0;
    border-bottom: 1px solid var(--border-light);
}

.main-navigation ul.sub-menu li:last-child {
    border-bottom: none;
}

.main-navigation ul.sub-menu a {
    padding: 10px 15px;
    border-bottom: none;
}

.main-navigation ul.sub-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-shrink: 0;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-form {
    display: flex;
    align-items: center;
    height: 36px;
    border: 1px solid var(--border-normal);
    border-radius: var(--radius);
    background: var(--bg-gray);
    overflow: hidden;
    transition: border-color 0.2s;
}

.header-search-form:focus-within {
    border-color: var(--primary-light);
}

.header-search-form .search-category {
    padding: 0 8px;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    min-width: 60px;
}

.header-search-form .input-box {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-search-input {
    width: 180px;
    height: 100%;
    padding: 0 32px 0 10px;
    border: none;
    background: transparent;
    font-size: 13px;
    outline: none;
    color: var(--text-main);
    box-sizing: border-box;
    transition: width 0.25s ease;
}

.header-search-input:focus {
    width: 240px;
}

.header-search-input::placeholder {
    color: var(--text-tertiary);
}

.header-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 10px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.header-search-submit:hover {
    color: var(--primary-color);
}


.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: var(--radius);
    transition: var(--transition-base);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.nav-overlay.active {
    display: block;
}

/* ==============================================
   3. 核心布局
   ============================================== */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar-content {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;        /* 让出吸顶导航高度(社交栏48 + 主栏52 ≈ 100px) + 余量，避免被遮挡 */
    align-self: flex-start;
}

.content-area--fullwidth {
    display: block;
    max-width: 100%;
}

.main-content--fullwidth {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.site-position {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 50px;
    height: 50px;
    display: block;
    padding: 0 10px;
}

.site-position a {
    color: var(--text-tertiary);
}

.site-position a:hover {
    color: var(--primary-color);
}

/* ==============================================
   4. 文章相关样式
   ============================================== */
.post-item {
    padding: 20px;
    background-color: var(--bg-white);
    margin-bottom: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.page-item {
    padding: 40px;
}

.post-title {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.post-title a {
    color: var(--text-main);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-body-wrap {
     flex: 1;
    min-width: 0;               /* 防止溢出 */
    display: flex;
    flex-direction: column;
     justify-content: space-between; /* 让子元素分布在两端 */
}

.post-thumbnail {
    flex: 0 0 280px;
    height: 160px;
    overflow: hidden;
    border-radius: var(--radius-large);
    border: 1px solid var(--border-light);
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-thumbnail a img {
    transition: transform 0.3s ease;
}

.post-thumbnail:hover a img {
    transform: scale(1.05);
}

.post-thumbnail .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--bg-white);
    text-align: center;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-thumbnail .video-play-icon::before {
    margin-right: 0;
}

.post-thumbnail:hover .video-play-icon {
    background: rgba(0, 0, 0, 0.8);
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 15px;
    font-weight: normal;
    text-align: justify;
    letter-spacing: 0.5px;
}

.post-excerpt p {
    text-indent: 2em;
    margin: 0;
}

.post-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-left span,
.meta-right span {
    font-size: 13px;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
}

.post-tags {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
    font-size: 13px;
    color:var(--text-tertiary);
}
.post-tags span {
    color:var(--primary-color);
}
.post-meta a,
.post-tags a {
    color: var(--text-tertiary);
}

.post-meta a:hover,
.post-tags a:hover {
    color: var(--primary-color);
}

/* 大图文章 */
.post-item.post-image {
    position: relative;
    height: 320px;
    padding: 0;
    border-radius: var(--radius-large);
    background: var(--text-main);
}

.post-image-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.post-image-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-image:hover .post-image-thumbnail img {
    transform: scale(1.05);
}

.post-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    z-index: 2;
    pointer-events: none;
}

.post-image .post-title {
    position: absolute;
    bottom: 120px;
    left: 25px;
    z-index: 3;
    margin: 0;
    font-size: 20px;
    color: var(--bg-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.post-image .post-title a {
    color: var(--bg-light);
}

.post-image .post-title a:hover {
    color: var(--primary-dark);
}

.post-image-excerpt {
    position: absolute;
    bottom: 60px;
    left: 25px;
    z-index: 3;
    max-width: 90%;
    font-size: 15px;
    line-height: 1.8;
    color: var(--border-normal);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    text-align: justify;
    font-weight: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta.post-image-meta {
    position: absolute;
    bottom: 20px;
    left: 25px;
    right: 25px;
    z-index: 3;
    color: var(--border-normal);
}

.post-meta.post-image-meta a {
    color: var(--border-normal);
}

.post-meta.post-image-meta a:hover {
    color: var(--primary-color);
}

.post-tags a:hover {
    color: var(--primary-color);
}

.meta-right .like-btn,
.meta-right .share-btn {
    display: inline;
    background: var(--primary-light);
    color: var(--bg-white);
    border-radius: var(--radius);
    font-size: 12px;
    border: 1px solid transparent;
}

.meta-right .like-btn:hover,
.meta-right .share-btn:hover {
    color: var(--bg-white);
    background: var(--primary-color);
}

.meta-right .like-btn.liked {
    background: #e8f4ff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 加载更多按钮 */
.post-read-more {
    text-align: center;
    margin: 20px 0 0;
    box-shadow: var(--shadow);
}

.post-read-more a {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    width: 100%;
    padding: 10px 0;
    font-size: 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-base);
}

.post-read-more a:hover {
    background-color: var(--primary-light);
    color: var(--bg-white);
}

.post-read-more a.loading {
    background: var(--border-dark);
    cursor: not-allowed;
    position: relative;
    padding-left: 30px;
}

.post-read-more a.loading::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--bg-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.post-read-more a[disabled] {
    background: var(--border-normal);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

/* 图文混合大图样式 */
.post-content .post-imgtext-images {
    width: 100%;
    height: 300px;
    margin: 10px 0;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.post-content .post-imgtext-images img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.post-content .post-imgtext-images:hover img {
    transform: scale(1.05);
}

/* ======================================
   轮播 + 置顶 左右结构
====================================== */
.site-slide {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    height: 320px;
    margin: 0 0 20px;
    position: relative;
}

.item-left {
    position: relative;
    flex: 1 1 540px;
    max-width: 640px;
    min-width: 340px;
    height: 320px;
    overflow: hidden;
    border-radius: 3px;
}

.item-right {
    flex: 1 1 540px;
    max-width: 650px;
    min-width: 340px;
    height: 320px;
}

.slider-items {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-items li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slider-items li.active {
    opacity: 1;
    z-index: 1;
}

.slider-items li a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.site-slide .slider-items img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.slide-title-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    box-sizing: border-box;
    z-index: 2;
}

.slide-title {
    color: var(--bg-white);
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    background-image: url(assets/images/themes.png);
    background-repeat: no-repeat;
    background-size: 80px 40px;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    font-size: 0;
    color: transparent;
    opacity: 0;
    transition: opacity 0.8s ease, background-color 0.4s ease;
}

.item-left:hover .slider-btn {
    opacity: 1;
}

.prev-btn {
    left: 15px;
    background-position: 0 center;
}

.next-btn {
    right: 15px;
    background-position: -40px center;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-indicators {
    position: absolute;
    bottom: 15px;
    right: 20px;
    transform: none;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: var(--bg-white);
}

.item-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 155px);
    gap: 10px;
    height: 100%;
}

.sticky-item {
    border-radius: var(--radius-large);
    overflow: hidden;
    position: relative;
}

.sticky-item a {
    display: block;
    width: 100%;
    height: 155px;
    position: relative;
    overflow: hidden;
}

.sticky-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.item-cat-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--bg-white);
    font-size: 12px;
    padding: 2px 14px;
    border-radius: 2px;
    z-index: 3;
    line-height: 2;
}

.item-left li a img {
    transition: all 0.3s ease;
    filter: brightness(0.8);
}

.item-left li a:hover img,
.sticky-item a:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* ==============================================
   5. 侧边栏样式
   ============================================== */
.sidebar-widget {
    font-size: 13px;
    background-color: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
    padding: 0 20px 20px;
}
.sidebar-widget:last-child {
    margin-bottom: 0;
}
.widget_block {
    padding: 0;
}

.widget-title {
    font-size: 15px;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.c-info-line::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 10%;
    min-width: 60px;
    max-width: 100px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.c-info-line:hover::after {
    width: 33%;
    max-width: 200px;
}

.sidebar-widget img {
    display: block;
    max-width: 100%;
    height: auto;
}

.sidebar-widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--text-secondary);
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
}

.thumbnail-posts-widget {
    margin: 0 0 1.5em;
}

.thumbnail-posts-list {
    list-style: none;
    margin: 0;
    padding-top: 10px;
}

.thumbnail-post-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    gap: 10px;
}

.thumbnail-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.thumbnail-post-item .post-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 60px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-large);position: relative;
}

.thumbnail-post-item .post-thumb img {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-post-item .post-thumb:hover img {
    transform: scale(1.05);
}

.thumbnail-post-item .post-info {
    flex: 1;
}

.thumbnail-post-item .post-title {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 5px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumbnail-post-item .post-title a {
    color: var(--text-secondary);
}

.thumbnail-post-item .post-title a:hover {
    color: var(--primary-color);
}

.thumbnail-post-item .post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
}
.thumbnail-post-item .post-meta span{font-size: 12px;}

.hot-posts-widget {
    display: block;
}

.hot-posts-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.hot-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-posts-list li .post-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 5px;
    font-weight: 500;
}

.hot-posts-list li .post-title a {
    color: var(--text-secondary);
}

.hot-posts-list li .post-title a:hover {
    color: var(--primary-color);
}

.hot-posts-list li .post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.tag-cloud-widget .tag-grid-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-widget .tag-grid-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    min-height: 30px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--bg-white) !important;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: normal;
    word-break: break-all;
    text-align: center;
    line-height: 1.3;
}

.tag-cloud-widget .tag-count {
    font-size: 11px;
    line-height: 1.2;
    margin-left: 3px;
}

.tag-cloud-widget .tag-grid-item:nth-child(6n+1) { background: #5470c6; }
.tag-cloud-widget .tag-grid-item:nth-child(6n+2) { background: #67c23a; }
.tag-cloud-widget .tag-grid-item:nth-child(6n+3) { background: #e6a23c; }
.tag-cloud-widget .tag-grid-item:nth-child(6n+4) { background: #f56c6c; }
.tag-cloud-widget .tag-grid-item:nth-child(6n+5) { background: #9c88ff; }
.tag-cloud-widget .tag-grid-item:nth-child(6n+6) { background: #36cbcb; }

.tag-cloud-widget .tag-grid-item:nth-child(6n+1):hover { background: #4058a3; }
.tag-cloud-widget .tag-grid-item:nth-child(6n+2):hover { background: #529b2e; }
.tag-cloud-widget .tag-grid-item:nth-child(6n+3):hover { background: #c98b2e; }
.tag-cloud-widget .tag-grid-item:nth-child(6n+4):hover { background: #d94d4d; }
.tag-cloud-widget .tag-grid-item:nth-child(6n+5):hover { background: #7c68e0; }
.tag-cloud-widget .tag-grid-item:nth-child(6n+6):hover { background: #2bbaba; }

.author-info-widget {
    padding: 0;
}

.author-info {
    width: 100%;
    color: var(--text-secondary);
    font-size: 12px;
    background: url(assets/images/author-banner.jpg) var(--bg-white) center top no-repeat;
    position: relative;
    background-size: 100% auto;
    padding: 0 0 20px;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 0 1.5em;
}

.author-avatar {
    padding-top: 30px;
    text-align: center;
}

.author-avatar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    position: relative;
    transition: background-color 0.3s ease;
}

.author-avatar .avatar {
    display: block;
    width: 80px;
    height: 80px;
    border: 3px solid var(--bg-white, #fff);
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease-out;
}

.avatar:hover {
    transform: rotateZ(360deg);
    box-shadow: inset 0 -1px 0 #333, 0 4px 8px rgba(0, 175, 250, 0.2);
}

.author-name {
    line-height: 26px;
    margin: 10px 0;
    font-weight: 600;
    font-size: 16px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    text-align: center;
    color: var(--text-main);
}

.author-name a {
    color: var(--text-main);
    transition: var(--transition-base);
}

.author-name a:hover {
    color: var(--primary-light);
}

.author-name span {
    font-size: 12px;
    background: #e0ffff;
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    padding: 0 6px;
    height: 22px;
    line-height: 22px;
    margin-left: 5px;
    border-radius: var(--radius);
    position: relative;
    vertical-align: middle;
}

.author-des {
    margin: 10px 15px;
    font-size: 14px;
    text-align: center;
    color: var(--text-tertiary);
    line-height: 1.6;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.author-social {
    font-size: 14px;
    text-align: center;
    margin: 10px 0;
}

.author-social ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.author-social li {
    color: var(--text-secondary);
    display: inline-block;
    width: auto;
    margin: 0 8px;
}

.author-social span {
    margin: 0 5px;
}

.author_count {
    margin: 20px 0 0;
    padding: 0 15px;
}

.author_count h3 {
    display: flex;
    flex-direction: row;
    border: none;
    overflow: hidden;
    padding: 0 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 15px;
    line-height: 1.5;
}

.author_count h3:before,
.author_count h3:after {
    content: "";
    flex: 1 1;
    margin: auto;
    border-bottom: 1px solid var(--border-light);
    height: 1px;
}

.author_count h3:before {
    margin-right: 10px;
}

.author_count h3:after {
    margin-left: 10px;
}

.author_count ul,
.latest-posts-timeline ul {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
}

.author_count ul::before,
.latest-posts-timeline ul::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-light);
}

.author_count ul li,
.latest-posts-timeline ul li {
    line-height: 1.8;
    font-size: 14px;
    margin-top: 10px;
    padding-left: 25px;
    position: relative;
    border-bottom: none;
}

.author_count ul li:before,
.latest-posts-timeline ul li:before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--border-dark);
    position: absolute;
    left: 0;
    top: 6px;
}

.author_count ul li:hover:before,
.latest-posts-timeline ul li:hover:before {
    background-color: var(--primary-light);
}

.author-social a,
.author_count ul li a,
.latest-posts-timeline ul li a {
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.author-social a:hover,
.author_count ul li a:hover,
.latest-posts-timeline ul li a:hover {
    color: var(--primary-light);
}

.timeline-date {
    font-size: 12px;
    color: var(--text-tertiary);
    display: block;
    line-height: 1.4;
}

/* ==============================================
   6. 通用功能组件
   ============================================== */
.modal-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 600px;
    background: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    z-index: 9999;
}
#share-mask,
#share-mask-2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9998;
}
.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: var(--radius-large) var(--radius-large) 0 0;
}

.modal-header h4 {
    margin: 0;
    font-size: 16px;
}

.modal-header .close-btn {
    cursor: pointer;
    font-size: 18px;
    position: absolute;
    right: 10px;
    top: 10px;
    background: var(--primary-color);
    border-radius: 6px;
    color: white;
}


.modal-header .close-btn:hover {
    color: var(--primary-light);
}

.related-posts {
    margin: 20px 0;
    position: relative;

}

.related-posts h3 {
    padding: 0 0 5px;
    margin: 0;
    border: none;
    font-size: 15px;
}

.related-posts ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    width: 100%;
}

.related-posts ul li {
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-large);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.related-posts-thum {
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin: 0;
}

.related-posts-thum img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-posts ul li:hover .related-posts-thum img {
    transform: scale(1.05);
}

.related-posts-content {
    padding: 10px;
}

.related-posts ul li h4 {
    font-size: 13px;
    line-height: 1.3;
    height: 36px;
    margin: 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-posts ul li h4 a {
    color: var(--text-secondary) !important;
}

.related-posts ul li h4 a:hover {
    color: var(--primary-color) !important;
}

.related-posts ul li span {
    font-size: 12px;
    color: var(--text-tertiary);
    display: inline-block;
}

.related-posts ul li.no-related {
    grid-column: 1/-1;
    text-align: center;
    color: var(--text-tertiary);
    padding: 30px;
    box-shadow: none;
}

/* 上一篇下一篇 - 简化图片暗亮效果 */
.post-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 15px;
}

.post-nav .nav-previous,
.post-nav .nav-next {
    flex: 1 1 0%;
    min-width: 0;
    height: 80px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    /* 背景色可保留备用，但主要靠图片 */
}

/* 图片作为背景层（绝对定位） */
.post-nav img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 简化核心：平时暗显示，带过渡 */
    filter: brightness(0.5);
    transition: filter 0.3s ease;
    z-index: 0;
}

/* 悬停时图片正常亮度 */
.post-nav .nav-previous:hover img,
.post-nav .nav-next:hover img {
    filter: brightness(0.3);
}

/* 文字层（需要浮在图片上方） */
.post-nav a {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    color: var(--bg-white) !important;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);   /* 半透明黑底，确保文字可读 */
    border-radius: inherit;            /* 继承圆角 */
}

/* 可选：为了防止文字在图片变亮时看不清，加一点半透明底纹（如果你觉得需要） */
/* 但通常亮度0.6 + 白色字已经足够，如果你仍感觉文字不够突出，可以取消注释下面 */

.post-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: -1;
}


/* 标题样式 */
.nav-title {
    font-size: 16px;
    margin: 0 0 8px 0;
   z-index: 3;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-next .nav-title {
    text-align: right;
}

/* 底部信息（日期+上一篇/下一篇） */
.nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 12px;
    opacity: 0.8;
}

.nav-next .nav-bottom {
    flex-direction: row-reverse;
}

/* 占位符样式（无文章时） */
.nav-placeholder {
    cursor: default;
}

.nav-placeholder .nav-placeholder-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center; background: rgba(0,0,0,0.8);
    height: 100%;
}

.nav-placeholder .nav-title {
    color: var(--bg-white);
    font-weight: 400;
    margin: 0;
    text-align: center;
    font-size: 15px;
}
/* ==============================================
   7. 评论区样式
   ============================================== */
.comments-title {
    font-size: 16px;
    color: var(--text-main);
    margin: 2rem 0 2rem;
    padding: 2rem;
    background: var(--bg-white);
    line-height: 1.3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.comments-title span {
    color: var(--primary-color);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.comment-list .comment-item {
    padding: 0;
}

.comment-body {
    display: flex;
    gap: 14px;
    padding: 10px 0;
}

.comment-list > .comment-item + .comment-item > .comment-body {
    border-top: 1px solid var(--border-light);
}

.comment-author-avatar {
    flex-shrink: 0;
}

.comment-author-avatar .avatar-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    object-fit: cover;
}

.comment-content-wrap {
    flex: 1;
    min-width: 0;
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 10px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.comment-author {
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

.comment-author-badge {
    display: inline-block;
    padding: 0 6px;
    font-size: 11px;
    color: var(--primary-color);
    background: rgba(22, 119, 255, 0.08);
    border-radius: var(--radius);
    line-height: 1.8;
}

.comment-time {
    color: var(--text-tertiary);
    font-size: 12px;
}

.comment-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    word-break: break-word;
}

.comment-text p {
    margin: 0 0 0.5em;
    text-indent: 0 !important;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-awaiting {
    display: block;
    color: var(--text-tertiary);
    font-size: 13px;
    margin-bottom: 6px;
}

.comment-footer {
    margin-top: 6px;
}

.comment-reply-link {
    font-size: 12px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition-base);
}

.comment-reply-link:hover {
    color: var(--primary-color);
}

.comment-list .children {
    list-style: none;
    margin: 0;
    padding-left: 0;
    margin-left: 48px;
}

.comment-list .children .comment-body {
    padding: 10px 0 10px 12px;
}

.comment-list .children .children {
    margin-left: 0;
}

.comment-navigation {
    margin: 16px 0 0;
    text-align: center;
}

.comment-navigation .page-numbers {
    display: inline-block;
    min-width: 32px;
    padding: 5px 10px;
    margin: 0 2px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border-normal);
    transition: var(--transition-base);
}

.comment-navigation .page-numbers.current {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.comment-navigation .page-numbers:not(.current):hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.comment-respond {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.comment-reply-title {
    font-size: 15px;
    color: var(--text-main);
    margin: 0 0 10px;
}

.comment-reply-title small {
    font-size: 12px;
    margin-left: 8px;
    font-weight: 400;
}

#cancel-comment-reply-link {
    color: var(--text-tertiary);
    text-decoration: none;
}

#cancel-comment-reply-link:hover {
    color: #e74c3c;
}

#commentform {
    display: flex;
    flex-wrap: wrap;
    gap: 0 15px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    flex: 1;
    min-width: 180px;
    margin-bottom: 12px;
}

.comment-form-comment {
    width: 100%;
    margin-bottom: 12px;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-normal);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-main);
    background: var(--bg-gray);
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

#commentform textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.8;
    margin-top: 10px;
}

#commentform input:focus,
#commentform textarea:focus {
    border-color: var(--primary-color);
    background: var(--bg-white);
    outline: none;
}

.form-submit {
    width: 100%;
    margin-top: 4px;
}

.comment-submit-btn {
    padding: 10px 36px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.comment-submit-btn:hover {
    background: var(--primary-dark);
}

.comment-submit-btn:disabled {
    background: var(--text-tertiary);
    cursor: not-allowed;
}

/* ==============================================
   8. 特殊功能模块
   ============================================== */
.Down-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    min-width: 180px;
    background-color: var(--primary-light);
    border-radius: var(--radius);
    margin: 20px 8px 20px 0;
    box-shadow: 0 2px 8px rgba(0, 175, 250, 0.1);
    white-space: nowrap;
}

.Down-file a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bg-white);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
}

.Down-file a:hover {
    color: var(--bg-white);
    transform: translateY(-2px);
}

.info-box {
    margin: 1.5em 0;
    padding: 15px;
    border-radius: 0 4px 4px 0;
    background: var(--bg-gray);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-box p {
    margin: 0;
    padding: 0;
}

.info-box--note {
    border-left-color: var(--primary-color);
    background: #E6F2FF;
}

.info-box--success {
    border-color: #27ae60;
    background-color: #ecf9f2;
    color: #1e7e34;
}

.info-box--warning {
    border-color: #f39c12;
    background-color: #fff9e6;
    color: #d39e00;
}

.info-box--error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
    color: #c82333;
}

.custom-collapse-wrap {
    margin: 25px 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.custom-collapse-title {
    padding: 14px 20px;
    background-color: var(--bg-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-main);
    transition: background-color 0.2s ease;
}

.custom-collapse-title::after {
    content: '+';
    font-size: 16px;
    color: var(--primary-light);
    transition: transform 0.2s ease;
}
.custom-collapse-title.active {
    background-color: #f0f8ff;
}

.custom-collapse-title.active::after {
    content: '−';
    color: var(--primary-dark);
}

.custom-collapse-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    line-height: 1.8;
    color: var(--text-secondary,#555);
    /* 拉长过渡时间更顺滑 0.4~0.5s体验最佳 */
    transition: max-height 0.45s ease, padding 0.3s ease;
}
/* 删除 .custom-collapse-content.active{max-height:2000px} */
.custom-collapse-content.active {
    padding: 20px;
    /* max-height 由JS动态赋值，此处不再写固定值 */
}

hr {
    border: none;
    height: 1px;
    background-color: var(--border-light);
    margin: 30px 0;
    position: relative;
}

hr::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

/* ===============================
   文章页样式
   =============================== */
.post-header {
    margin-bottom: 20px;
    width: 100%;
}

.post-header .post-title {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--text-main);
    margin: 10px 0;
    line-height: 2;
    font-weight: var(--fw-medium);
}

.post-content h2 { font-size: 20px; }
.post-content h3 { font-size: 18px; }
.post-content h4 { font-size: 16px; }

.post-content blockquote {
    background: #f5f8ff;
    border-left: 4px solid #002FA7;
    margin: 2rem 0;
    padding: 1.4rem 2rem;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #2c3e50;
    font-style: normal;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.post-content blockquote strong {
    color: var(--primary-dark);
}

.post-content blockquote a {
    color: var(--primary-color);
    text-decoration: underline;
}

.post-content blockquote p {
    text-indent: 2em;
    text-align: justify;
    font-size: 1.4rem;
    line-height: 1.6;
    font-style: normal;
}

@media (prefers-color-scheme: dark) {
    .post-content blockquote {
        background: #1e2a3a;
        border-left-color: var(--primary-color);
        color: #e2e8f0;
    }
    .post-content blockquote strong {
        color: #6ab0e6;
    }
}

.post-content p {
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0.5px;
    text-align: justify;
    margin: 0.5em 0;
    color: var(--text-secondary);
}

.post-content .date {
    float: right;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-large);
    margin: 15px auto;
    display: block;
    border: 1px solid var(--border-light);
}

.page-links {
    margin: 20px 0;
    padding: 10px 15px;
    background: var(--bg-gray);
    border-radius: var(--radius-large);
    text-align: center;
}

.page-links span {
    display: inline-block;
    padding: 0 10px;
}

.page-links a {
    color: var(--primary-color);
    font-weight: 500;
}

.post-content ul,
.post-content ol {
    margin: 15px 0;
    padding-left: 2em;
    line-height: 1.7;
    font-size: 15px;
    color: var(--text-secondary);
}

.post-content ul li {
    list-style: disc;
    margin: 6px 0;
}

.post-content ol li {
    list-style: decimal;
    margin: 6px 0;
}

.post-content li p {
    text-indent: 0 !important;
    margin: 0;
}

.post-copyright {
    margin: 20px 0;
    padding: 15px 20px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    width: 100%;
}

.post-copyright a {
    color: var(--primary-color);
    word-break: break-all;
}

.post-copyright a:hover {
    color: var(--primary-dark);
}

.post-copyright ul {
    font-size: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-copyright ul li {
    list-style: none;
    font-size: 13px;
}

.post-footer {
    display: flex;width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    color:var(--text-tertiary);
}
.post-footer a {
    color: var(--primary-color);
    transition: var(--transition-base);
}

/* 分享按钮 */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center; /* 垂直居中核心 */

}
.share-buttons a{
    color:var(--text-tertiary);
}
.share-buttons a:hover{
    color:var(--bg-white);
}
span.share-label{
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}
span.share-icon{font-size: 20px;}
.share-icon{
    display: inline-block;
    transition: transform 0.3s ease;
    background: none;
    text-align: center;
}
.share-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition-base);
    position: relative;
     width: 32px;
    height: 32px;
    color:white;
}

.share-link:hover {
    color:var(--bg-white);
}
.share-weibo:hover { background: #E6162D; }
.share-qq:hover{ background: #12B7F5; }
.share-qzone:hover { background: #F5BE3D; }
.share-douban:hover{ background: #3194D0; }
.share-baidu:hover{ background: #de002b; }
.share-wechat:hover{ background: #07C160; }

/* 微信分享二维码悬停提示 */
.share-wechat {
    position: relative;
    cursor: pointer;
}
.share-wechat .share-icon {
    color: var(--text-secondary);
}
.share-wechat .share-icon:hover {
    color: var(--bg-white);
}
.wechat-qr-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 100;
}
.wechat-qr-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--bg-white);
}
.share-wechat:hover .wechat-qr-tooltip {
    visibility: visible;
    opacity: 1;
}
.wechat-qr-img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e8e8e8);
}
.wechat-qr-text {
    font-size: 13px;
    color: var(--text-secondary, #666);
    white-space: nowrap;
}
/* 文章目录 */
.toc-container {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    padding: 15px;
}

.toc-container h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin: 8px 0;
}

.toc-link {
    display: block;
    padding: 5px 10px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: color, background-color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.toc-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.toc-link.active {
    background-color: var(--primary-light);
    color: white;
}

.toc-level-2 .toc-link {
    padding-left: 14px;
    font-size: 14px;
}

.toc-level-3 .toc-link {
    padding-left: 25px;
    font-size: 13px;
}

.toc-level-4 .toc-link {
    padding-left: 35px;
    font-size: 12px;
}

/* ==============================================
   9. 特殊页面样式
   ============================================== */
.card-wrap,
.category-list {
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: -0.01em;
}
.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.category-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.archive-header {
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.archive-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 15px 0;
}

.archive-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-bio {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin: 10px 0 20px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-description {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.flat-author-header {
    margin: 0 0 30px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.flat-author-profile {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.flat-author-avatar img {
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow);
}

.flat-author-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.flat-author-nickname {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 10px;
}

.flat-author-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.flat-posts-count {
    font-weight: 600;
    color: var(--primary-light);
}

.flat-email-link a {
    color: var(--text-secondary);
}

.flat-email-link a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.flat-author-social {
    margin: 15px 0;
}

.flat-author-social a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-light);
    color: var(--bg-white);
    border-radius: var(--radius);
    margin-right: 8px;
    font-size: 14px;
}

.flat-author-social a:hover {
    background: var(--primary-dark);
}

.flat-author-bio {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-tertiary);
}

.flat-no-posts {
    padding: 20px;
    text-align: center;
    color: var(--text-tertiary);
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin: 20px 0;
}

.flat-page-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.flat-search-form-wrap {
    max-width: 500px;
}

.flat-search-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.flat-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-normal);
    border-radius: var(--radius);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.flat-search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(142, 206, 248, 0.2);
}

.flat-search-submit {
    padding: 0 20px;
    background-color: var(--primary-light);
    color: var(--bg-white);
    border-radius: var(--radius);
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.flat-search-submit:hover {
    background-color: var(--primary-light);
}

.flat-search-results {
    margin-bottom: 20px;
}

.flat-search-item:hover {
    box-shadow: var(--shadow);
}

.flat-search-item-title {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.flat-search-item-title a {
    color: var(--text-main);
}

.flat-search-item-title a:hover {
    color: var(--primary-light);
}

.flat-search-highlight {
    background-color: #fff8e1;
    color: #ff9800;
    padding: 0 2px;
    border-radius: var(--radius);
}

.flat-search-item-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
}

.flat-search-item-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    gap: 15px;
}

.flat-search-item-meta a {
    color: var(--text-tertiary);
}

.flat-search-item-meta a:hover {
    color: var(--primary-light);
}

.flat-search-no-results {
    padding: 30px;
    background: var(--bg-white);
    border-radius: var(--radius);
    text-align: center;
}

.flat-search-no-results p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 15px 0;
}

.flat-search-no-results ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 20px;
    color: var(--text-secondary);
}

.flat-search-no-results li {
    margin-bottom: 8px;
}

.flat-search-no-results a {
    color: var(--primary-light);
}

.flat-search-no-results a:hover {
    text-decoration: underline;
}

.flat-search-pagination {
    margin: 30px 0;
    text-align: center;
}

.flat-search-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid var(--border-normal);
    border-radius: var(--radius);
    color: var(--text-secondary);
}

.flat-search-pagination .page-numbers.current {
    background-color: var(--primary-light);
    color: var(--bg-white);
    border-color: var(--primary-light);
}

.flat-search-pagination .page-numbers:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.flat-search-loadmore .load-more-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-light);
    color: var(--bg-white);
    border-radius: var(--radius);
    transition: background 0.3s ease;
}

.flat-search-loadmore .load-more-btn:hover {
    background: var(--primary-light);
}

.flat-tag-header {
    text-align: center;
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.flat-tag-title {
    color: var(--text-main);
}

.flat-tag-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.flat-tag-cloud {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.flat-tag-item {
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--radius);
    font-size: 14px;
    color: #495057;
    text-decoration: none;
    transition: var(--transition-base);
    box-sizing: border-box;
}

.flat-tag-name {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flat-tag-count {
    flex-shrink: 0;
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.8;
}

.flat-tag-item:hover {
    background: var(--primary-light);
    color: var(--bg-white);
    border-color: #e9ecef;
}

.friend-links {
    background: var(--bg-white);
    padding: 2rem;
    margin: 2rem auto;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    max-width:1200px;


}

.links-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text-main);
}

.links-title small {
    color: var(--text-tertiary);
    font-weight: 400;
}

.links-title small a {
    color: var(--text-secondary);
    text-decoration: none;
}

.links-title small a:hover {
    color: var(--primary-color);
}

.links-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.links-content a {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
}

.links-content a:hover {
    color: var(--primary-color);
}
.no-links,
.no-posts{
    color: var(--text-secondary);
     font-size: 14px;

}
/* ==============================================
   10. 底部样式
   ============================================== */
.site-footer {
    background-color: var(--bg-white);
    color: var(--text-main);
    padding: 30px 20px;
    margin-top: 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-right {
    flex-shrink: 0;
}

.footer-upyun img {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-upyun img:hover {
    opacity: 1;
}

.copyright {
    text-align: left;
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 2;
}

.copyright a {
    color: var(--text-secondary);
    text-decoration: none;
}

.copyright a:hover {
    color: var(--primary-color);
}

.float-buttons {
    position: fixed;
    right: 18px;
    bottom: 40%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.float-buttons.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.float-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-white);
    border-radius: 4px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.float-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 14px 22px rgba(30, 109, 242, 0.28);
}

.float-btn:hover .iconfont {
    color: white;
}

.float-btn .iconfont::before,
.share-link .iconfont::before {
    margin-right: 0;
}

.qrcode-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 172px;
    background: #eef2f6;
    border-radius: 2px;
    padding: 14px 0 0 0;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.02);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.2s ease;
    transform: translateY(8px);
    z-index: 1001;
    text-align: center;
    font-size: 12px;
    font-weight: 450;
    color: var(--bg-gray);
    pointer-events: none;
}

.qrcode-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #eef2f6;
    transform: rotate(45deg);
    border-radius: 2px;
}

#to-qrcode:hover .qrcode-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.qrcode-popup img {
    width: 100%;
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 12px auto;
    border-radius: 2px;
    background: #fefefe;
    box-shadow: var(--shadow);
}

.qrcode-popup .qr-text {
    font-size: 11px;
    color: var(--bg-gray);
    background: var(--primary-color);
    letter-spacing: 0.3px;
    padding: 8px;
    margin-top: 4px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* ==============================================
   12. 响应式样式
   ============================================== */
@media (min-width: 1440px) {
    .container ,.friend-links{
        max-width: 1280px;
    }
    .content-area {
        max-width: 1280px;

    }
}

@media (max-width: 1200px) {
    .container
    {
        padding-left: 15px;
        padding-right: 15px;
    }
    .friend-links{
        max-width: 100%;
        margin: 0 15px 20px 15px;
    }
    .post-image.post-item {
        height: 280px;
    }
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .link-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cms-category-title {
        font-size: 1.6rem;
    }
    .list-column-title {
        font-size: 1.6rem;
    }
    .card-wrap {
        padding: 15px 20px;
        margin:0 20px;
    }
}

@media (max-width: 992px) {
    .header-inner {
        gap: 25px;
    }
    .content-area {
        flex-direction: column;
    }
    .sidebar-content {
        width: 100%;
    }
    .item-right ul {
        grid-template-rows: repeat(2, 155px);
    }
    .sticky-item a {
        height: 155px;
    }
    .post-image.post-item {
        height: 260px;
    }
    .flat-author-header {
        padding: 15px;
    }
    .flat-tag-cloud {
        grid-template-columns: repeat(4, 1fr);
    }
    .toc-container {
        display: none !important;
    }
    .modal-box3 {
        width: 95%;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cms-category-title {
        font-size: 1.5rem;
    }
    .list-column-title {
        font-size: 1.5rem;
    }
    .list-column-item {
        font-size: 13px;
    }
    .card-wrap {
        padding: 15px;
        margin:0 20px;
    }
    .friend-links {
        max-width: 100%;
        margin: 0 15px;
        padding: 16px;
    }
    .link-card {
        padding: 12px;
    }
    table {
        font-size: 14px;
    }
    th, td {
        padding: 8px 10px;
    }
    .hamburger {
        display: flex;
        margin-left: auto;
    }
    .main-navigation {
        display: none;
        width: 100%;
        order: 99;
        padding: 10px 0;
    }
    .main-navigation.active {
        display: block !important;
    }
    .main-navigation > ul {
        flex-direction: column;
        gap: 0;
    }
    .main-navigation a {
        padding: 10px 12px;
    }
    .main-navigation ul li:hover > ul.sub-menu {
        display: none !important;
    }
    .main-navigation ul.sub-menu {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        border-left: 2px solid var(--primary-color);
        margin-left: 10px;
        background: var(--bg-gray);
    }
    .main-navigation ul li.menu-item-has-children.active > ul.sub-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .main-navigation li.menu-item-has-children > a {
        cursor: pointer;
        position: relative;
    }
}

@media (max-width: 768px) {
    .social-row {
        display: none;
    }
    .header-inner {
        gap: 15px;
        flex-wrap: wrap;
    }
    .site-title {
        font-size: 18px;
    }
    .post-item {
        padding: 20px;
    }
    .post-body-wrap {
        gap: 10px;
    }
    .post-thumbnail {
  flex: 0 0 200px;
  /* 宽:高 = 3:2，等价 300/200 */
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden; /* 建议加上：防止图片圆角溢出 */
    }
    .post-thumbnail a img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    .post-title {
        font-size: 17px;
    }
    .post-excerpt {
        font-size: 14px;
        margin-bottom: 10px;

    }
    .post-excerpt p {
        text-indent: 1em;
    }
    .post-image.post-item {
        height: 240px;
    }
    .post-image .post-title {
        bottom: 100px;
        font-size: 18px;
        left: 18px;
    }
    .post-image-excerpt {
        bottom: 50px;
        left: 18px;
        font-size: 13px;
        max-width: 92%;
    }
    .post-meta.post-image-meta {
        bottom: 15px;
        left: 18px;
        right: 18px;
        font-size: 12px;
    }
    .site-slide {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
   .item-left {
    display: block;
    flex: 0 0 auto;
    width: 100%;      /* 明确占满，避免 align-items:flex-start 导致的宽度坍塌 */
    max-width: 100%;
    height: 220px;
}

    .item-right {
        flex: 0 0 auto;
        max-width: 100%;
        min-width: 0;
        height: auto;
    }
    .item-right ul {
        grid-template-columns: repeat(2, 1fr);

        gap: 10px;
    }

    .slide-title {
        font-size: 12px;
    }
    .slider-btn {
        width: 32px;
        height: 32px;
        opacity: 0.8;
    }
    .sidebar-widget {
        width: 100%;
    }
    .thumbnail-post-item .post-thumb {
        width: 100px;
        height: 65px;
    }
    .post-header .post-title {
        font-size: 22px;
    }
    .post-content h2 {
        font-size: 18px;
    }
    .post-content h3 {
        font-size: 16px;
    }
    .post-copyright {
        padding: 12px 15px;
        font-size: 12px;
    }
    .post-footer {
                align-items: flex-start;
    }
    .post-nav .nav-previous,
    .post-nav .nav-next {
        height: 65px;
    }
    .nav-title {
        font-size: 14px;
    }
    .post-nav a {
        padding: 0 15px;
    }
    .related-posts ul {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .related-posts-thum {
        height: 90px;
    }
    .comment-body {
        gap: 10px;
    }
    .comment-author-avatar .avatar-img {
        width: 32px;
        height: 32px;
    }
    .comment-list .children {
        margin-left: 42px;
    }
    .comment-list .children .comment-body {
        padding-left: 12px;
    }
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .modal-box3 {
        width: 95%;
        padding: 15px;
    }
    .modal-content {
        padding: 15px;
    }
    .header-search-input {
        width: 140px;
    }
    .header-search-input:focus {
        width: 180px;
    }
    .header-top {
        max-height: none;
        padding: 0;
    }
    .social-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 6px 0;
        font-size: 1.1rem;
    }
    .social-row, .login-row {
        gap: 1rem;
    }
    .modal-box {
        width: 92%;
        padding: 15px;
    }
    .share-modal {
        max-width: 380px;
    }
    .share-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    .share-label {
        font-size: 11px;
    }
    .flat-author-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .flat-author-header {
        padding: 15px;
    }
    .flat-author-name {
        font-size: 22px;
    }
    .flat-author-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .flat-tag-cloud {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .flat-tag-item {
        height: 38px;
        font-size: 13px;
        padding: 0 10px;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .copyright {
        /* text-align: center; */
    }
    .footer-right {
        margin: 0 auto;
    }
    .cms-category-title {
        font-size: 1.3rem;
        padding: 10px 15px;
    }
    .cms-category-title span {
        font-size: 1.1rem;
    }
    .list-column-title {
        font-size: 1.3rem;
        padding: 15px;
    }
    .list-column-items {
        padding: 0 15px 15px;
    }
    .list-column-item {
        font-size: 13px;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    .list-column-item h3 {
        font-size: 1.3rem;
    }
    .faq-list details summary {
        padding: 0.7rem 1rem;
        font-size: 14px;
    }
    .faq-body {
        padding: 0.7rem 1rem;
        font-size: 13px;
    }
    table {
        font-size: 13px;
    }
    th, td {
        padding: 6px 8px;
    }
    .card-wrap {
        padding: 15px;
        margin: 15px 20px;
        font-size: 1.5rem;
    }
    .friend-links {
        padding: 15px;max-width: 100%;
    }
    .links-content {
        gap: 10px;
    }
    .links-content a {
        font-size: 13px;
        padding: 4px 6px;
    }
    .link-card {
        padding: 10px;
    }
    .link-card-ico {
        width: 36px;
        height: 36px;
    }
    .link-card-name a {
        font-size: 14px;
    }
    .links-category-title {
        font-size: 15px;
    }
    .cms-html-codes {
        margin: 15px auto;
    }
    .pagination-normal a,
    .pagination-normal span {
        padding: 4px 10px;
        font-size: 11px;
    }
    .card-category {
        font-size: 12px;
        padding: 3px 8px;
    }

    /* 移动端溢出控制（合并自原末尾规则） */
    .container,
    .content-area,
    .main-content,
    .sidebar-content {
        max-width: 100%;
        overflow-x: hidden;
    }
    .single .post-content,
    .page .post-content {
        overflow-x: auto;
    }
    .post-content table,
    .post-content pre {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 576px) {
    .site-title {
        font-size: 16px;
    }
    .header-inner {
        padding: 8px 12px;
    }
    .header-right {
        gap: 8px;
    }
    .post-item {
        padding: 15px;
    }
    .post-title {
        font-size: 16px;
    }
    .post-thumbnail {
        flex: 0 0 120px;
        width: 120px;
        height: auto;
        aspect-ratio: 200 / 120;
        max-height: 75px;      /* 合并原第二个断点的样式 */
    }
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .meta-left,
    .meta-right {
        gap: 10px;
    }
    .meta-right {
        margin-left: 0;
    }
    .post-image.post-item {
        height: 180px;
    }
    .post-image .post-title {
        bottom: 70px;
        font-size: 15px;
        left: 12px;
    }
    .post-image-excerpt {
        display: none;
    }
    .post-meta.post-image-meta {
        bottom: 10px;
        left: 12px;
        right: 12px;
    }
    .post-header .post-title {
        font-size: 20px;
    }
    .post-content p {
        font-size: 14px;
    }
    .item-left {
        height: 160px;
    }
    .sticky-item a {
        height: 120px;
    }
    .comment-list .children {
        margin-left: 20px;
    }
    .flat-tag-cloud {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-posts ul {
        grid-template-columns: 1fr;
    }
    .card-image {
        height: 180px;
    }
    .card-title {
        font-size: 15px;
        padding: 12px;
        height: auto;
    }
    .search-wrapper {
        display: none;   /* 576 以下头部搜索框隐藏 */
    }
    .social-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 4px 0;
        font-size: 1rem;
    }
    .social-row, .login-row {
        gap: 0.75rem;
    }
    .share-modal {
        max-width: 320px;
    }
    .share-wechat .wechat-qr-tooltip {
        padding: 12px;
    }
    .share-wechat .wechat-qr-img {
        width: 140px;
        height: 140px;
    }
    .share-wechat .wechat-qr-text {
        font-size: 12px;
    }
    .share-buttons {
        gap: 8px;
    }
    .share-link {
        padding: 6px 4px;
        min-width: 52px;
    }
    .share-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    .site-footer {
        padding: 20px 15px;
    }
    .copyright {
        font-size: 12px;
    }
    .card-column-content {
        padding: 0.75rem;
    }
    .card-column-header {
        height: 180px;
    }
    .card-column-item img {
        height: 180px;
    }
    .card-column-item h3 {
        font-size: 1.2rem;
        margin: 0.75rem;
    }
    .cms-category-title {
        font-size: 1.1rem;
        padding: 8px 12px;
    }
    .cms-category-title span {
        font-size: 0.9rem;
    }
    .list-column-title {
        font-size: 1.1rem;
        padding: 12px;
    }
    .list-column-items {
        padding: 0 12px 12px;
    }
    .list-column-item {
        padding: 0.75rem 0;
        gap: 0.5rem;
    }
    .list-column-item h3 {
        font-size: 1.2rem;
    }
    .faq-list details summary {
        padding: 0.5rem 0.7rem;
        font-size: 13px;
    }
    .faq-body {
        padding: 0.5rem 0.7rem;
        font-size: 12px;
    }
    table {
        font-size: 12px;
    }
    th, td {
        padding: 5px 6px;
    }
    .card-wrap {
        padding: 10px;
        margin:10px 20px;
        font-size: 1.4rem;
    }
    .friend-links {
        padding: 12px;max-width: 100%;
    }
    .links-title {
        font-size: 14px;
    }
    .links-content {
        gap: 8px;
    }
    .links-content a {
        font-size: 12px;
        padding: 6px 8px;
        border-radius: var(--radius-small, 4px);
        background: var(--bg-gray, #f5f5f5);
    }
    .links-content a:hover {
        background: var(--primary-light, #e6f4ff);
        color: var(--primary-color);
    }
    .link-card {
        padding: 8px;
    }
    .link-card-ico {
        width: 36px;
        height: 36px;
    }
    .link-card-name a {
        font-size: 13px;
    }
    .link-card-desc {
        font-size: 12px;
    }
    .link-grid {
        grid-template-columns: 1fr;
    }
    .links-category-title {
        font-size: 14px;
    }
    .pagination-normal a,
    .pagination-normal span {
        padding: 3px 8px;
        margin: 0 2px;
    }
    .card-category {
        font-size: 11px;
        padding: 2px 6px;
    }
    .card-title {
        font-size: 14px;
        padding: 10px;
    }
    .card-meta {
        padding: 0 10px 8px;
        font-size: 12px;
    }
    .card-footer {
        padding: 8px 10px 10px;
        font-size: 12px;
    }

    /* 合并原第二个 576px 断点中的样式 */
    .post-excerpt {
        max-height: 4.5em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 5px;
        display: none;
    }
    .post-excerpt p {
        text-indent: 1em;
        margin: 0;
    }
}

.post-card-wrap {
    width: 100%;
}

.post-card {
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform, box-shadow 0.26s ease;
}

.post-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-normal);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--bg-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    z-index: 2;
}

.card-title {
    font-size: 16px;
    padding: 15px;
    margin: 0;
    line-height: 1.5;
    height: 72px;
    overflow: hidden;
    font-weight: 500;
}

.card-title a {
    color: var(--text-main);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-meta {
    display: flex;
    gap: 14px;
    padding: 0 15px 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px 14px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-tertiary);
}

.pagination-normal {
    margin: 20px 0;
    text-align: center;
    background-color: var(--border-normal);
    border-radius: var(--radius);
}

.pagination-normal a,
.pagination-normal span {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 4px;
    border: 1px solid var(--border-normal);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
}

.pagination-normal .current {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.pagination-normal a:hover {
    background: #f5f5f5;
}

.page-links-list {
    width: 100%;
    margin: 20px 0;
}

.links-category-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-main);
    margin: 30px 0 15px;

}

.links-category-title small {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-tertiary);
    margin-left: 8px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.link-card {
    background: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    padding: 10px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.link-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.link-card-ico {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-card-ico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.link-card-body {
    flex: 1;
    min-width: 0;
}

.link-card-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.link-card-name a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.link-card-name a:hover {
    color: var(--primary-color);
}

.link-card-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-links-des {
    grid-column: 1 / -1;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 15px;
    background: var(--bg-gray);
    border-radius: 6px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.page-links-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-tertiary);
    font-size: 16px;
}

/* 加载动画 */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color:#597EF7;
            /* 蓝色背景 */
            display: flex;
            /* 内容居中 */
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 1;
            transition: opacity 0.5s ease;
            /* 0.5秒淡出效果 */
        }

        .loading-content {
            text-align: center;
        }


        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
                /* 结束：完全显示 + 归位 */
            }
        }

        .loader-bar {
            width: 200px;
            height: 4px;
            background-color: rgba(255,255,255,0.3);
            border-radius: 2px;
            margin: 20px auto 0;
            overflow: hidden;
        }

        .loader-progress {
            height: 100%;
            width: 0;
            /* 初始宽度为0 */
            background-color: var(--bg-white);
            border-radius: 2px;
            animation: progress 1.5s forwards;
            /* 执行 1.5 秒动画，forwards 保持最终状态 */
        }

        @keyframes progress {
            to {
                width: 100%;
                /* 最终宽度100% */
            }
        }

.loading-squares {
    display: inline-grid;   /* 改为内联网格 */
    grid-template-columns: repeat(2, 32px);
    grid-template-rows: repeat(2, 32px);
    gap: 8px;
    margin: 0 auto 20px auto;   /* 水平居中 + 底部外边距 */
}

        .loading-squares .square {
            background-color: var(--bg-white);
            border-radius: 3px;
            animation: squareBounce 1.2s infinite ease-in-out;
        }

        .loading-squares .square:nth-child(1) {
            animation-delay: 0s;
        }

        .loading-squares .square:nth-child(2) {
            animation-delay: 0.1s;
        }

        .loading-squares .square:nth-child(3) {
            animation-delay: 0.2s;
        }

        .loading-squares .square:nth-child(4) {
            animation-delay: 0.3s;
        }

        @keyframes squareBounce {

            0%,
            100% {
                transform: translateY(0);
                opacity: 1;
            }

            50% {
                transform: translateY(-8px);
                opacity: 0.75;
            }
        }

        .loading-text {
            color: var(--bg-white);
            font-size: 16px;
            font-family: system-ui, -apple-system, sans-serif;
        }
/* FAQ 折叠 */
.faq-list {
    border: 1px solid var(--border-normal);
    border-radius: var(--radius-large);
    margin: 1rem 0;
    overflow: hidden;
}
.faq-list details summary {
    cursor: pointer;
    padding: 0.9rem 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
    transition: background 0.2s;
    list-style: none;
}
.faq-list details summary::-webkit-details-marker { display: none; }
.faq-list details summary::after {
    content: '+';
    float: right;
    font-size: 18px;
    color: var(--text-tertiary);
}
.faq-list details[open] summary::after {
    content: '−';
    color: var(--primary-color);
}
.faq-list details summary:hover {
    background: var(--bg-light);
}
.faq-list details + details {
    border-top: 1px solid var(--border-light);
}
.faq-body {
    padding: 0.9rem 1.2rem;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.8;
    text-indent: 2em;
}
.post-content .update-date {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    text-align: right;
    margin-top: 2rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-align: left;
    margin: 0.5em 0;
    color: var(--text-secondary);
}
th, td {
    border: 1px solid #ddd;
    padding: 10px 15px;
}
th {
    text-align: left;
    background-color: #f8f9fa;
    font-weight: 600;
}
.post-content table,
.entry-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* CMS 分类卡片区块 */
.cms-hero {
    margin: 0 0 20px;
}
.cms-category-blocks {
    margin: 20px auto;
    box-sizing: border-box;
}
.cms-category-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 1.8rem;
    color: var(--text-main);
    margin: 20px 0;
    padding: 10px 20px;
    letter-spacing: -0.01em;
    background: var(--bg-white);
    position: relative;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}
.card-column { margin-top: 0; }
.cms-category-title h2 {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
}
.cms-category-title span {
    font-size: 1.2rem;
    white-space: nowrap;
    margin-left: 1rem;
    color: var(--text-tertiary);
    font-weight: normal;
}
.cms-category-title span a {
    color: var(--text-tertiary);
}
.cms-category-title span a:hover {
    color: var(--primary-color);
}
.card-column-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}
.card-column-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.card-column-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.card-column-5 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.card-column-item {

    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-column-header {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-sizing: border-box;
    border-radius: var(--radius-large);
}
.card-column-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.card-column-item:hover img {
    transform: scale(1.05);
}
.card-column-content {
    flex: 1;
    padding: 1rem 0 0;
}
.card-column-item h3 {
    font-size: 1.5rem;
    margin: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 3.2em;
}
.card-column-item h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}
.card-column-item h3 a:hover {
    color: var(--primary-color);
}
.card-column-item .card-meta {
    margin-top: auto;
    padding: 1rem 2rem;
    border-top: 1px solid #eef2f6;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.7rem;
    background-color: #fafcff;
    color: var(--text-tertiary);
}
.card-column-item .card-meta span,
.list-column-item span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-tertiary);
}
.card-column-item .card-meta a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}
.card-column-item .card-meta a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.icon-category a:not(:last-child):after {
    content: ",";
    margin-right: 0.2rem;
}

/* CMS 分类列表区块 */
.list-column-block {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    border-radius: var(--radius-large);
}
.list-column-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.8rem;
    color: var(--text-main);
    padding: 20px;
    letter-spacing: -0.01em;
    position: relative;
}
.list-column-title h2 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.2;
}
.list-column-title span {
    font-size: 1.2rem;
    white-space: nowrap;
    margin-left: 1rem;
    color: var(--text-tertiary);
    font-weight: normal;
}
.list-column-title span a {
    color: var(--text-tertiary);
}
.list-column-title span a:hover {
    color: var(--primary-color);
}
.list-column-items {
    padding: 0 20px 20px;
    border-radius: var(--radius-large);
    transition: transform 0.3s ease;
}
.list-column-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 1rem 0;
    border-bottom: 1px dotted var(--border-light);
}
.list-column-item::before {
    content: "»";
    color: var(--text-tertiary);
}
.list-column-item h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.6;
}
.list-column-item a {
    color: var(--text-secondary);
    transition: color 0.2s;
}
.list-column-item a:hover {
    color: var(--primary-color);
}
.list-column-item:last-child {
    border-bottom: none;
}
.cms-html-codes {
    max-width: 100%;
    height: auto;
    border: none;
    border-radius: var(--radius-large);
    background-color: var(--bg-light);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 0;
    margin: 20px auto;
}
.cms-html-codes img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 图片背景卡片 */
.card-thumb-item {
    position: relative;
    aspect-ratio: 3 / 2;
    background-color: var(--bg-light);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-thumb-item > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    overflow: hidden;
}
.card-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.8);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.card-thumb-item:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}
.card-thumb-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    z-index: 2;
    transition: var(--transition-base);
}
.card-thumb-item h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--bg-gray);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-thumb-item h3 a {
    color: var(--bg-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.card-thumb-item h3 a:hover {
    color: var(--bg-gray);
}

/* 文章页内容强制自适应，防止溢出 */
.single .post-content,
.page .post-content {
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;width: 100%;
}
.single .post-content img,
.single .post-content video,
.single .post-content iframe,
.single .post-content embed {
    max-width: 100% !important;
    height: auto !important;
}
.single .post-content pre,
.single .post-content code {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
    max-width: 100%;

}
.single .post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.single .post-content p,
.single .post-content li,
.single .post-content blockquote {
    word-break: break-word;
}
.single .post-content figure,
.single .post-content .wp-block-image {
    max-width: 100%;
}

/* 登录弹窗内容样式 */
.auth-modal{max-width: 400px;}
.auth-modal-header{background:var(--bg-white);padding:30px 20px;}
.auth-modal-header .close-btn{background:transparent;color:var(--text-secondary);font-size:18px;}
.auth-modal-content {
    text-align: center;
    padding: 40px;
}
.auth-modal h4 img {
    width: 110px;
    height: 32px;}

/* 登录表单结构 */
#loginform {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
#loginform .login-username,
#loginform .login-password,
#loginform .login-remember,
#loginform .login-submit {
    margin: 0;
}

/* 标签 */
#loginform label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* 输入框 */
#loginform input[type="text"],
#loginform input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);
    font-size: 14px;
    background: var(--bg-white);
    transition: all 0.2s;
    box-sizing: border-box;
}
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow:var(--shadow);
}

/* 记住我勾选框 */
#loginform .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
#loginform .login-remember label {
    margin-bottom: 0;
}
#loginform input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* 登录按钮 */
#loginform input[type="submit"] {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--radius-large);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
#loginform input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* 注册链接 */
.auth-modal-content .register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
}
.auth-modal-content .register-link a {
    color: var(--primary-color);
    text-decoration: none;

}
.auth-modal-content .register-link a:hover {
    text-decoration: underline;
}

/* 已登录状态下的欢迎语和按钮 */
.auth-modal-content .welcome-msg {
    text-align: center;
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--text-main);
}
.auth-modal-content .modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.auth-modal-content .modal-button {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}
.auth-modal-content .admin-btn {
    background: #10b981;
    color: white;
}
.auth-modal-content .admin-btn:hover {
    background: #059669;
}
.auth-modal-content .logout-btn {
    background: #ef4444;
    color: white;
}
.auth-modal-content .logout-btn:hover {
    background: #dc2626;
}

/* ==============================================
   13. 暗黑模式
   ============================================== */

/* 切换过渡动画 - 仅在切换瞬间生效 */
.theme-transitioning,
.theme-transitioning * {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}

[data-theme="dark"] {
    --primary-color: #1677FF;
    --primary-light: #4A9BFF;
    --primary-dark: #0958D9;
    --text-main: #E5E6EB;
    --text-secondary: #B0B3B8;
    --text-tertiary: #6C6F78;
    --bg-white: #1E1E22;
    --bg-gray: #141416;
    --bg-light: #2A2A2E;
    --border-dark: #3A3A40;
    --border-normal: #2E2E33;
    --border-light: #252528;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* 文章目录 */
[data-theme="dark"] .toc-container {
    background: rgba(30, 30, 34, 0.98);
}

/* 引用块 */
[data-theme="dark"] .post-content blockquote {
    background: #1a1a24;
    color: #d1d5db;
}

/* 表格 */
[data-theme="dark"] table th {
    background: var(--bg-light);
}
[data-theme="dark"] table th,
[data-theme="dark"] table td {
    border-color: var(--border-normal);
}

/* 卡片元信息 */
[data-theme="dark"] .card-column-item .card-meta {
    background: var(--bg-light);
    border-top-color: var(--border-light);
}

/* 二维码弹窗 */
[data-theme="dark"] .qrcode-popup,
[data-theme="dark"] .qrcode-popup::after {
    background: #252528;
}
[data-theme="dark"] .qrcode-popup img {
    background: #1a1a1e;
}

/* 折叠面板激活态 */
[data-theme="dark"] .custom-collapse-title.active {
    background: var(--bg-light);
}

/* 标签云项 */
[data-theme="dark"] .flat-tag-item {
    background: var(--bg-light);
    border-color: var(--border-normal);
    color: var(--text-secondary);
}

/* 信息框 */
[data-theme="dark"] .info-box--note {
    background: #1a2740;
}
[data-theme="dark"] .info-box--success {
    background: #1a2e1a;
    color: #6fcf97;
}
[data-theme="dark"] .info-box--warning {
    background: #2e2a1a;
    color: #f0d060;
}
[data-theme="dark"] .info-box--error {
    background: #2e1a1a;
    color: #ef6b6b;
}

/* 搜索高亮 */
[data-theme="dark"] .flat-search-highlight {
    background: #3a3000;
    color: #ffb300;
}

/* 分隔线 */
[data-theme="dark"] hr::after {
    background-color: var(--bg-gray);
    border-color: var(--border-normal);
}

/* 评论作者徽章 */
[data-theme="dark"] .comment-author-badge {
    background: rgba(22, 119, 255, 0.15);
}

/* 已点赞 */
[data-theme="dark"] .meta-right .like-btn.liked {
    background: #1a2e4a;
}

/* 作者信息徽章 */
[data-theme="dark"] .flat-author-name span {
    background: #1a2e4a;
    border-color: var(--primary-light);
}

/* FAQ */
[data-theme="dark"] .faq-list details summary:hover {
    background: var(--bg-light);
}

/* 加载动画 */
[data-theme="dark"] .loader {
    background-color: #1a1a2e;
}

/* 分页悬停 */
[data-theme="dark"] .pagination-normal a:hover {
    background: var(--bg-light);
}

/* 评论表单聚焦 */
[data-theme="dark"] #commentform input:focus,
[data-theme="dark"] #commentform textarea:focus {
    background: var(--bg-gray);
}

/* 注册分割线 */
[data-theme="dark"] .auth-modal-content .register-link {
    border-top-color: var(--border-normal);
}

/* 文章内容图片 - 暗色下调暗 */
[data-theme="dark"] .post-content img {
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}
[data-theme="dark"] .post-content img:hover {
    filter: brightness(1);
}

/* 列表块 */
[data-theme="dark"] .list-column-block {
    background-color: var(--bg-white);
}

/* 友情链接卡片 */
[data-theme="dark"] .link-card-ico {
    background: var(--bg-light);
}

/* 主题切换按钮图标 - 太阳/月亮 */
.theme-toggle .iconfont {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-base);
    font-size: 18px;
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: flex; color: #f0c040; }

.float-btn:hover .iconfont {
    color: #fff !important;
}

/* 图片在暗黑模式下降低亮度（主要内容区域） */
[data-theme="dark"] .post-thumbnail img,
[data-theme="dark"] .related-posts-thum img,
[data-theme="dark"] .card-image img,
[data-theme="dark"] .card-column-header img,
[data-theme="dark"] .card-thumb-item img {
    filter: brightness(0.75);
    transition: filter 0.3s ease;
}
[data-theme="dark"] .post-thumbnail:hover img,
[data-theme="dark"] .related-posts ul li:hover .related-posts-thum img,
[data-theme="dark"] .card-image:hover img,
[data-theme="dark"] .card-column-item:hover img,
[data-theme="dark"] .card-thumb-item:hover img {
    filter: brightness(0.95);
}

/* ==============================================
   无障碍：减少动画偏好
   ============================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .slider-items li,
    .slide-title-wrap {
        transition: none !important;
    }
}

/* ==============================================
   打印样式
   ============================================== */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    .site-header,
    .site-footer,
    .sidebar-content,
    .float-buttons,
    .search-wrapper,
    .auth-buttons,
    .hamburger,
    .nav-overlay,
    .post-footer,
    .related-posts,
    .comments-area,
    .post-nav,
    .slider-btn,
    .slider-indicators,
    #respond,
    .pagination-normal,
    .load-more-wrap {
        display: none !important;
    }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: none;
    }
    .container,
    .main-content {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }
    .post-item,
    .post-card {
        page-break-inside: avoid;
        border: 1px solid #ddd;
    }
}
/* 装机必备页面卡片样式（已加命名空间 .page-item） */
/* 放入主题样式表或额外CSS中，不影响其他页面 */

/* ===== 卡片网格 ===== */
.page-item .card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 1.5rem 0;
    /* 默认 align-items: stretch，确保所有卡片等高 */
}

/* ===== 卡片容器 ===== */
.page-item .card-item {
    flex: 1;
    min-width: 220px;
    max-width: 365px;
    background: var(--bg-white);
    border-radius: var(--radius-large);
    border: 1px solid var(--border-normal);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.15s ease;

    /* 👇 新增：纵向 Flex 布局 */
    display: flex;
    flex-direction: column;
}

/* ===== 卡片图片 ===== */
.page-item .card-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.4 / 1;
    object-fit: cover;
    margin: 0;
    border-radius: var(--radius-large);
}

/* ===== 卡片标题 ===== */
.page-item .card-title {
    text-align: center;
    font-size: 1.6rem;
    margin: 0;
    padding: 1rem;
    height: auto;
    color: var(--text-main);
}

/* ===== 卡片描述 ===== */
.page-item .card-desc {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-tertiary);
    margin: 0 0 1rem;
    padding: 0 1.5rem;

    /* 👇 新增：占据所有剩余空间，把按钮推到底部 */
    flex: 1;
}

/* ===== 卡片操作区 ===== */
.page-item .card-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    /* 👇 修改：顶部 margin 改为 auto，底部保留 1.5rem */
    margin: auto 0 1.5rem;
}

/* ===== 按钮通用 ===== */
.page-item .card-btn {
    padding: 0.6rem 2rem;
    border-radius: var(--radius-large);
    text-decoration: none;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background 0.2s ease, color 0.2s ease;
}

/* ===== 详情说明按钮 ===== */
.page-item .card-btn-tutorial {
    background: var(--bg-light);
    color: var(--text-secondary);
}
.page-item .card-btn-tutorial:hover {
    background: #e5e7eb;
    color: var(--text-main);
}

/* ===== 下载按钮 ===== */
.page-item .card-btn-download {
    background: var(--primary-color);
    color: #fff;
}
.page-item .card-btn-download:hover {
    background: var(--primary-dark);
}

[data-theme="dark"] .page-item .card-item {
    background: var(--bg-light);
    border-color: var(--border-normal);
}
[data-theme="dark"] .page-item .card-item:hover {
    border-color: var(--border-dark);
}
[data-theme="dark"] .page-item .card-btn-tutorial {
    background: #333;
    color: var(--text-secondary);
}
[data-theme="dark"] .page-item .card-btn-tutorial:hover {
    background: #444;
    color: var(--text-main);
}
[data-theme="dark"] .page-item .card-btn-download {
    background: var(--primary-color);
}
[data-theme="dark"] .page-item .card-btn-download:hover {
    background: var(--primary-light);
}

@media (max-width: 480px) {
    .page-item .card-item {
        min-width: 100%;
    }
}
