﻿/*
Theme Name: SkyStarry星空简约风格主题
Theme URI: https://www.blog.skyllyf.cc
Author: 林霖澐枫
Author URI: https://www.blog.skyllyf.cc
Description: 基于 FSS 设计风格的 WordPress 主题，具有精美的星空渐变背景效果。包含博客、关于页面等功能模块，支持响应式布局、深色模式和辅助功能。
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skystarry
Tags: blog, portfolio, custom-background, custom-menu, featured-images, responsive-layout, translation-ready, dark-mode, accessibility-ready, full-site-editing
*/

:root {
  --primary-blue: #009FFD;
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --nav-bg-desktop: rgba(255, 255, 255, 0);
  --nav-bg-mobile: rgba(255, 255, 255, 0);
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
}

[data-theme="dark"] {
  --nav-bg-desktop: rgba(15, 23, 42, 0);
  --nav-bg-mobile: rgba(15, 23, 42, 0);
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-tertiary: #94A3B8;
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1E293B;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}


.site-content img,
.site-content .container img {
  max-width: 100%;
  height: auto;
}

.site-content a,
.site-navigation a {
  color: #3B82F6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-content a:hover,
.site-navigation a:hover {
  color: #60A5FA;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}


.notification-bar {
  width: 100%;
  height: 50px;
  z-index: 999;
  overflow: hidden;
  border: none;
  background: linear-gradient(90deg, rgba(0, 159, 253, 0.5), rgba(102, 126, 234, 0.5));
  transition: background 0.3s ease;
}

[data-theme="dark"] .notification-bar {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.7), rgba(118, 75, 162, 0.7));
}

.notification-scroll {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.notification-content {
  white-space: nowrap;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  padding: 0 100%;
  animation: scroll-left 20s linear infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .notification-content {
  color: #F1F5F9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}


[data-theme="dark"] body {
  color: #F1F5F9;
  background-color: transparent;
}
[data-theme="dark"] .site-navigation .nav-menu li:not(:last-child)::after {
  color: #F1F5F9;
}
[data-theme="dark"] .site-navigation .nav-menu a {
  color: #F1F5F9;
}
[data-theme="dark"] .header-actions {
  color: #F1F5F9;
}

.site-header {
    z-index: 1000;
    width: 3.125vw;
    max-width: 5vw;
    height: 70%;
    max-height: 70vh;
    position: fixed;
    top: 10vh;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    transition: transform .3s, color .3s, background-color .3s;
    background-color: var(--nav-bg-desktop);
}
.header-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg-desktop);
    
    transition: background 0.3s ease;
    z-index: 0;
}
[data-theme="dark"] .header-background {
    background: var(--nav-bg-desktop);
}
.site-header.in-hero-section {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

.site-header:not(.in-hero-section) {
	  width:10vw;
	max-width:11vw
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}


.site-header .site-title {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.site-header .site-navigation .nav-menu li {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.site-header .header-actions .action-button {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}


.site-header:not(.in-hero-section) .site-title {
    animation: slideInLeft 0.4s ease forwards;
}

.site-header:not(.in-hero-section) .site-navigation .nav-menu li {
    animation: slideInLeft 0.4s ease forwards;
}

.site-header:not(.in-hero-section) .header-actions .action-button {
    animation: slideInLeft 0.4s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.site-header.in-hero-section .site-navigation .nav-menu a,
.site-header.in-hero-section .site-navigation .nav-menu li:not(:last-child)::after,
.site-header.in-hero-section .action-button {
  color: white !important;
}
.site-header.in-hero-section .action-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 1;
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  gap: 0;
  background: transparent !important;
}

.site-title {
  margin-bottom: 1vh;
  padding-top: 2vh; 
  padding-bottom: 0;
  border-bottom: 1px solid transparent;
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; 
}
.site-title a {
  font-size: clamp(1.5rem, 1.5vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #3B82F6, #60A5FA, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  letter-spacing: 0;
  line-height: 1;
  padding: 0;
  margin: 0;
  width: auto;
  height: auto;
}
.site-title a:hover { color: #3B82F6; }

.site-title a span {
  display: block;
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
}


.site-navigation {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  position: relative; 
}
.site-navigation .nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
  flex: 1;
  width: 100%;
  
}
.site-navigation .nav-menu li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-30px);
  animation: menu-fly-in 0.6s ease forwards;
  flex-shrink: 0;
  width: 100%;
  
  height: auto;
}

.site-navigation .nav-menu li:not(:last-child)::after {
  display: none;
}


.site-navigation .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.site-navigation .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
.site-navigation .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
.site-navigation .nav-menu li:nth-child(4) { animation-delay: 0.4s; }
.site-navigation .nav-menu li:nth-child(5) { animation-delay: 0.5s; }
.site-navigation .nav-menu li:nth-child(6) { animation-delay: 0.6s; }
.site-navigation .nav-menu li:nth-child(7) { animation-delay: 0.7s; }
.site-navigation .nav-menu li:nth-child(8) { animation-delay: 0.8s; }

@keyframes menu-fly-in {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.site-navigation .nav-menu a {
  color: #1E293B;
  font-weight: 500;
  font-size: clamp(0.875rem, 1vw, 1rem);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  letter-spacing: 0;
  padding: 0;
  margin: 0;
  width: auto;
  height: auto;
  max-height: 3.65vw;
  text-decoration: none;
}
.site-navigation .nav-menu a:hover,
.site-navigation .nav-menu a.current-menu-item {
  color: #3B82F6;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.6), 0 0 20px rgba(59, 130, 246, 0.4);
}
.site-navigation .nav-menu a span {
  display: block;
  line-height: 1.2; 
  letter-spacing: 0;
  margin: 0;
  padding: 0;
}


.section-separator {
  display: none;
}


.header-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 6vh;
  padding-top: 0;
  flex-shrink: 0;
  width: 100%;
  height: 8vh;
}
.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 1.25vw;
  min-width: 20px;
  max-width: 28px;
  height: 1.25vw;
  min-height: 20px;
  max-height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1E293B !important;
  transition: all 0.2s ease;
}
.action-button:hover {
  background: transparent;
  color: #3B82F6 !important;
}
[data-theme="dark"] .action-button {
  color: rgba(255, 255, 255, 0.9) !important;
}
[data-theme="dark"] .action-button:hover {
  color: #60A5FA !important;
}
.site-header.in-hero-section .action-button {
  color: white !important;
}
.site-header:not(.in-hero-section) .action-button {
  color: #1E293B !important;
}
[data-theme="dark"] .site-header:not(.in-hero-section) .action-button {
  color: rgba(255, 255, 255, 0.9) !important;
}
.action-button .icon { width: 1vw; min-width: 14px; height: 1vw; min-height: 14px; flex-shrink: 0; }
.action-button .moon { display: none; }
[data-theme="dark"] .action-button .sun { display: none; }
[data-theme="dark"] .action-button .moon { display: block; }


.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
}
.search-overlay.active { opacity: 0.95; visibility: visible; }
[data-theme="dark"] .search-overlay {
  background: rgba(15, 23, 42, 0.95);
}
.search-container {
  width: 90%;
  max-width: 600px;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.search-field {
  flex: 1;
  min-width: 0;
  padding: 1rem 1rem;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: 50px;
  background: #F8FAFC;
  color: #1E293B;
  outline: none;
  transition: border-color 0.2s ease;
  border-color: #64748B;
  box-sizing: border-box;
}
[data-theme="dark"] .search-field {
  background: rgba(30, 41, 59, 0.8);
  color: #F1F5F9;
}
.search-field:focus { border-color: #3B82F6; }
.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12vw; max-width: 48px;
  height: 12vw; max-height: 48px;
  padding: 0;
  background: #3B82F6;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}
.search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12vw; max-width: 48px;
  height: 12vw; max-height: 48px;
  padding: 0;
  background: #F1F5F9;
  color: #1E293B;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
[data-theme="dark"] .search-close {
  background: #334155;
  color: #F1F5F9;
}
.search-submit:hover { background: #60A5FA; }
.search-close:hover { background: #64748B; }
[data-theme="dark"] .search-close:hover { background: #475569; }
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.qr-modal.active { opacity: 1; visibility: visible; }
.qr-modal-content { position: relative; background: #FFFFFF; padding: 4rem; border-radius: 16px; text-align: center; }
.qr-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  color: #1E293B;
  cursor: pointer;
  transition: background 0.2s ease;
}
.qr-modal-close:hover { background: #64748B; }
.qr-modal-close svg { width: 16px; height: 16px; }
#qrcode { display: flex; align-items: center; justify-content: center; }
#qrcode canvas, #qrcode img { max-width: 200px; height: auto; }
.hero-section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 0;
}
.hero-section-hidden {
  opacity: 0;
  pointer-events: none;
}
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-title {
  position: relative;
  font-size: clamp(6rem, 8vw, 8rem);
  font-weight: 700;
  text-align: center;
  color: white !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 4rem;
  z-index: 1;
  letter-spacing: 2px;
}
[data-theme="dark"] .hero-title {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scroll-down {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: transparent;
  border: none;
  color: #94A3B8 !important;
  cursor: pointer;
  animation: bounce 2s infinite;
  z-index: 1;
  transition: all 0.3s ease;
}
.scroll-down:hover {
  transform: scale(1.5);
}
[data-theme="dark"] .scroll-down:hover {
  transform: scale(1.5);
}
.scroll-down svg { width: 40px; height: 40px; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}
.dots-lines-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-color: #FFFFFF;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}
[data-theme="dark"] .dots-lines-background {
  background-color: #0F172A;
}
.dots-lines-background canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.site-main {
  position: relative;
  padding: 4rem;
  z-index: 1;
}
.posts-container {
  width: 90vw;
  margin: 0;
}
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 4rem;
}
.post-card {
  display: flex;
  flex-direction: row;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.3s ease;
  border: none;
  align-items: flex-start;
  overflow-wrap: break-word;
  max-height: 20vw;
}
.post-card:hover {
  background: linear-gradient(135deg, rgba(245, 244, 244, 0.1), rgba(141, 145, 150, 0.1));
  backdrop-filter: blur(5px);
  border-radius: 0.5rem;
}
.post-card:nth-child(odd) {
  flex-direction: row;
}
.post-card:nth-child(even) {
  flex-direction: row-reverse;
}
.post-card.no-featured-image {
  flex-direction: row !important;
}
.post-card.no-featured-image .post-content {
  width: 100%;
}
.featured-image-container {
  position: relative;
  max-width: 640px;
  flex-shrink: 0;
  max-height: 360px;
  width:35vw;
  height: 25vw;
  overflow: hidden;
  border-radius: 8px;
  
}
.featured-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.featured-image-container img.lazy-image.loaded {
  transition: opacity 0.3s ease, transform 1s ease !important;
}
.post-card:hover .featured-image-container img { transform: scale(1.15); }
.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 2rem;
  cursor: pointer;
}
.entry-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  align-items: center;
  flex-wrap: wrap;
}
.post-date, .post-category, .post-tags, .post-author {
  color: #00BFA5;
  position: relative;
  padding-bottom: 2px;
}
.post-date, .post-author {
  display: inline-flex;
  align-items: center;
}
.post-date::after,
.post-category::after,
.post-tags::after,
.post-author::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00BFA5, #00E5FF);
  transition: width 0.3s ease;
}
.post-date:hover::after,
.post-category:hover::after,
.post-tags:hover::after,
.post-author:hover::after {
  width: 100%;
}
.post-date:hover,
.post-category:hover,
.post-tags:hover,
.post-author:hover {
  color: #00E5FF;
  cursor: pointer;
}
.post-category a {
  color: #00BFA5;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.post-category a:hover {
  color: #00E5FF;
  text-decoration: none;
}
.post-category a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00BFA5, #00E5FF);
  transition: width 0.3s ease;
}
.post-category a:hover::after {
  width: 100%;
}
.post-tags a,
.post-author a {
  color: #00BFA5;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.post-tags a:hover,
.post-author a:hover {
  color: #00E5FF;
  text-decoration: none;
}
.post-tags a::after,
.post-author a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00BFA5, #00E5FF);
  transition: width 0.3s ease;
}
.post-tags a:hover::after,
.post-author a:hover::after {
  width: 100%;
}
.tag-links {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tag-links a {
  display: inline-flex;
  align-items: center;
}
.entry-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: break-word;
}
.entry-title a {
  color: #BABEC4;
  transition: color 0.2s ease;
  text-decoration: none;
}
.entry-title a:hover { color: #3B82F6; }
.entry-excerpt {
  color: #64748B;
  font-size: 1.1rem;
  line-height: 1.6;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow-wrap: break-word;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 4rem;
}
.pagination .nav-links { display: flex; align-items: center; gap: 0.5rem; }
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #F8FAFC;
  color: #1E293B;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pagination a:hover { background: #3B82F6; color: white; }
.pagination .current { background: #3B82F6; color: white; font-weight: 700; }
.pagination a svg { width: 20px; height: 20px; }



.author-box {
  display: flex;
  gap: 2rem;
  padding: 4rem;
  background: transparent;
  border-radius: 12px;
  margin-bottom: 4rem;
  border: none;
  overflow-wrap: break-word;
}
.author-avatar { flex-shrink: 0; }
.author-avatar img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #3B82F6; }
.author-info { flex: 1; }
.author-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: #1E293B; }
.author-description { color: #64748B; margin-bottom: 1rem; }
.author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3B82F6;
  font-weight: 500;
  transition: gap 0.2s ease;
}
.author-link:hover { gap: 1rem; }
.author-link svg { width: 16px; height: 16px; }

.related-posts { margin-bottom: 4rem; }
.related-posts h3 { font-size: 1.75rem; margin-bottom: 2rem; color: #1E293B; }
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.related-post-card {
  background: #F8FAFC;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.related-post-card:hover { transform: translateY(-4px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.related-post-image { aspect-ratio: 16/9; overflow: hidden; }
.related-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.related-post-card:hover .related-post-image img { transform: scale(1.05); }
.related-post-title { padding: 1rem; font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.related-post-title a { color: #1E293B; transition: color 0.2s ease; }
.related-post-title a:hover { color: #3B82F6; }
.related-post-date {
  display: block;
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: #64748B;
}

.post-copyright {
  background: #F8FAFC;
  opacity: 0.2;
  padding: 4rem;
  border-radius: 12px;
  margin: 4rem 0;
}
.post-copyright h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1E293B;
}
.post-copyright-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #1E293B;
}
.post-copyright-label {
  font-weight: 600;
  min-width: 80px;
}
.post-copyright-value {
  flex: 1;
  color: #64748B;
}
.post-copyright-value a {
  color: #3B82F6;
  text-decoration: none;
  transition: color 0.2s ease;
}
.post-copyright-value a:hover { color: #60A5FA; }

.site-footer {
  position: relative;
  z-index: 10;
  padding: 4rem 0;
  text-align: center;
  display: block !important;
}
.copyright {
  color: #64748B;
  font-size: 0.875rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.footer-badges {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  justify-content: center;
}
.footer-badges a {
  color: #64748B;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.footer-badges a:hover { color: #3B82F6; }
.gongan-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}
.footer-custom-text { margin-left: 0.5rem; }
.screen-resolution {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #64748B;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.screen-resolution a {
  color: #64748B;
  text-decoration: none;
  cursor: default;
  transition: color 0.2s ease;
}
.screen-resolution a:hover {
  color: #3B82F6;
  text-decoration: none;
}


[data-theme="dark"] .copyright { color: #94A3B8; }
[data-theme="dark"] .footer-badges a { color: #94A3B8; }
[data-theme="dark"] .footer-badges a:hover { color: #60A5FA; }

.lazy-image {
  position: relative;
  background: #F1F5F9;
  overflow: hidden;
  min-height: 200px;
}
.lazy-image.loading {
  opacity: 0.7;
}
.lazy-image.loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.page-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loading.loaded { opacity: 0; visibility: hidden; }
.page-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #F1F5F9;
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: page-spin 1s linear infinite;
}
@keyframes page-spin { to { transform: rotate(360deg); } }
.page-loading-percent {
  font-size: 2rem;
  font-weight: 700;
  color: #1E293B;
  transition: color 0.3s ease;
}

.no-posts {
  text-align: center;
  padding: var(--spacing-xxl) 2rem;
}
.no-posts h2 { font-size: 2rem; margin-bottom: 1rem; color: #1E293B; }
.no-posts p { color: #64748B; }

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 12vw; max-width: 48px;
  height: 12vw; max-height: 48px;
  background: #3B82F6;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  background: #60A5FA;
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
#backToTop svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {

  .site-navigation .nav-menu li {
    opacity: 1;
    transform: translateX(0);
  }

  .site-title {
    writing-mode: horizontal-tb;
    -webkit-writing-mode: horizontal-tb;
    -ms-writing-mode: horizontal-tb;
  }
  .site-title a {
    letter-spacing: 0;
  }
  .site-navigation .nav-menu {
    gap: 1.2rem;
  }
  .site-navigation .nav-menu li {
    letter-spacing: 0;
  }
  .site-navigation .nav-menu li:not(:last-child)::after {
    display: flex; 
  }
  .site-navigation .nav-menu a {
    letter-spacing: 0;
    flex-direction: column; 
    font-size: 1rem; 
  }
  .site-navigation .nav-menu a span {
    display: block; 
  }
  .header-actions {
    flex-direction: column;
    gap: 1rem;
  }
  .action-button {
    width: 12vw;
    max-width: 48px;
    height: 12vw;
    max-height: 48px;
    margin-bottom: 0;
  }
  .hero-title { font-size: clamp(1.75rem, 10vw, 3rem); }
  .container { padding: 0 1rem; }
  .site-main { padding-left: 2rem; margin-left: 0; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card {
    flex-direction: column !important;
    min-height: auto;
  }
  .post-card .featured-image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    max-height: 15vh;
  }
  .post-card .post-content {
    padding: 0.5rem 0.75rem;
    max-height: 15vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .post-card .entry-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 2;
  }
  .post-card .entry-excerpt {
    font-size: 0.875rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    flex: 1;
  }
  .post-card .entry-meta {
    font-size: 0.75rem;
    gap: 0.75rem;
  }
  .post-navigation { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .single-footer { flex-direction: column; text-align: center; }
  .author-box { flex-direction: column; text-align: center; }

  
  .single-wrapper, .archive-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .single-sidebar, .archive-sidebar-left, .archive-sidebar-right {
    order: 2;
  }
  .single-content-area, .archive-content {
    order: 1;
  }
  .breadcrumb {
    font-size: 0.75rem;
    padding: 0.75rem;
  }
}


.breadcrumb {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

[data-theme="dark"] .breadcrumb {
  background: rgba(15, 23, 42, 0.8);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--primary-blue);
}


.widget {
  backdrop-filter: blur(1px);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .widget {

}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-blue);
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.widget-content {
  color: var(--text-secondary);
  overflow-wrap: break-word;
}

.widget-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-content ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .widget-content ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-content ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.widget-content ul li a:hover {
  color: var(--primary-blue);
}


.author-mini {
  text-align: center;
  padding: 1rem 0;
}

.author-mini img {
  border-radius: 50%;
  margin-bottom: 1rem;
}

.author-mini h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.author-mini p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}


.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .recent-posts li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .widget_recent_entries a {
  color: #94A3B8;
}

[data-theme="dark"] .widget_recent_entries a:hover {
  color: #60A5FA;
}

.recent-posts li:last-child {
  border-bottom: none;
}


.widget_recent_entries ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget_recent_entries li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget_recent_entries li:last-child {
  border-bottom: none;
}

.widget_recent_entries a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.widget_recent_entries a:hover {
  color: var(--primary-blue);
}

.post-date-sm {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}


.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--gradient-start));
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.875rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tag-cloud a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}


.archive-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
}

.archive-sidebar-left,
.archive-sidebar-right {
  position: sticky;
  top: 100px;
  height: fit-content;
  align-self: start;
}

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

.archive-header {
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .archive-header {
  background: rgba(15, 23, 42, 0.8);
}

.archive-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.archive-description {
  color: var(--text-secondary);
  line-height: 1.6;
}



@supports (-webkit-backdrop-filter: none) or (not (backdrop-filter: none)) {
  .breadcrumb,
  .widget,
  .archive-header {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}


@-moz-document url-prefix() {
  .breadcrumb,
  .widget,
  .archive-header {
    
  }

  [data-theme="dark"] .breadcrumb,
  [data-theme="dark"] .widget,
  [data-theme="dark"] .archive-header {
    
  }
}


@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .single-wrapper,
  .archive-wrapper {
    display: flex;
    flex-wrap: wrap;
  }

  .single-content-area,
  .single-sidebar,
  .archive-content,
  .archive-sidebar-left,
  .archive-sidebar-right {
    width: 100%;
  }

  .breadcrumb,
  .widget,
  .archive-header {
    
  }
}





.post-header {
    z-index: 1000;
    width: 5vh;
    height: 75vh;
    max-height: 80vh;
    position: fixed;
    top: 10vh;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;

}

.post-header .header-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.post-header .header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg-desktop);
    transition: background 0.3s ease;
    z-index: 0;
}

[data-theme="dark"] .post-header .header-background {
    background: var(--nav-bg-desktop);
}


.post-header .site-title {
    margin-bottom: 1vh;
    padding-top: 2vh;
    padding-bottom: 0;
    border-bottom: 1px solid transparent;
    flex-shrink: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.post-header .site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #3B82F6, #60A5FA, #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    letter-spacing: 0;
    line-height: 1;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
}


.post-header .site-title a span {
    display: block;
    line-height: 1;
    letter-spacing: 0;
    margin: 0;
    padding: 0;
}

.post-header .site-title a:hover {
    -webkit-text-fill-color: #3B82F6;
    text-fill-color: #3B82F6;
}


.post-header .site-navigation {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.post-header .site-navigation .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
    flex: 1;
    width: 100%;
}

.post-header .site-navigation .nav-menu li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    height: auto;
}


.post-header .site-navigation .nav-menu li:not(:last-child)::after {
    display: none;
}


.post-header .site-navigation .nav-menu a {
    color: #1E293B;
    font-weight: 500;
    font-size: clamp(0.875rem, 1vw, 1rem);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1;
    letter-spacing: 0;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
    max-height: 3.65vw;
    text-decoration: none;
}

.post-header .site-navigation .nav-menu a:hover,
.post-header .site-navigation .nav-menu a.current-menu-item {
    color: #3B82F6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.6), 0 0 20px rgba(59, 130, 246, 0.4);
}


.post-header .site-navigation .nav-menu a span {
    display: block;
    line-height: 1;
    letter-spacing: 0;
    margin: 0;
    padding: 0;
}



.post-header .action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1E293B;
    transition: all 0.2s ease;
}

.post-header .action-button:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}


[data-theme="dark"] .post-header .site-navigation .nav-menu a {
    color: #F1F5F9;
}

[data-theme="dark"] .post-header .header-actions {
    color: #F1F5F9;
}

[data-theme="dark"] .post-header .action-button {
    color: #F1F5F9;
}

[data-theme="dark"] .post-header .site-navigation .nav-menu a:hover,
[data-theme="dark"] .post-header .site-navigation .nav-menu a.current-menu-item {
    color: #60A5FA;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.6), 0 0 20px rgba(96, 165, 250, 0.4);
}

[data-theme="dark"] .post-header .action-button:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #60A5FA;
}




@media (max-width: 768px) {
    .single-post-title{
        line-height: 0;
        margin-bottom: 1rem;
    }
    .single-post-entry-content pre{
        margin: 2rem 0;
        padding: 0rem;
        overflow-x: auto;
        border-radius: 8px;
        font-size: 1rem;
        text-align: center;
    }
    .single-post-copyright{
        padding-top: 0.01vh !important;
        padding-left: 1rem !important;
        line-height: 1.2;
        height: 40vh;
        font-size: 0.9rem;
    }
    .single-post-copyright-item{
        gap: 0;
        margin-bottom: 0.5rem;
    }
    .single-post-author-box{
        margin-bottom: 0;
        padding: 0;
        gap: 0;
    }
    .post-header .site-title a {
        font-size: 1rem;
    }

    .post-header .site-navigation .nav-menu {
        gap: 0rem;
    }

    .post-header .site-navigation .nav-menu a {
        font-size: 0.85rem;
    }

    .post-header .action-button {
        width: 32px;
        height: 32px;
    }
    .single-post-featured-image {
        width: 100%;
        max-height: 30vh;
        overflow: hidden;
        border-radius: 16px;
        margin-bottom: 2rem;
        background: #F1F5F9;
    }
    .widget {
        padding: 0rem;
        margin-bottom: 0rem;
    }
    .single-post-featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}





.post-single {
    position: relative;
    padding: 4rem;
    z-index: 1;
}


.post-single-wrapper {
    display: grid;
    grid-template-columns: 70vw 20vw;
    gap: 2rem;
    max-width: 90vw;
    margin: 0 auto;
}


.post-single-content-left {
    display: flex;
    gap: 2rem;
    width: 70vw;
    grid-template-columns: 1fr;
}

.post-single-content-area {
    width: 55vw;
}


.post-single-wrapper.no-toc .post-single-content-left {
    display: block;
}

.post-single-wrapper.no-toc .post-single-content-area {
    flex: none;
    min-width: 70vw;
}

.post-single-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: start;
    width: 20vw;
}


.single-post-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 2rem;
    background: #F1F5F9;
}

.single-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.single-post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    color: #1E293B;
    margin-bottom: 2rem;
    text-align: center;
}


.single-post-entry-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.single-post-entry-meta .single-post-date,
.single-post-entry-meta .single-post-category,
.single-post-entry-meta .single-post-author {
    color: #64748B;
}

.single-post-entry-meta .single-post-category {
    color: #3B82F6;
}

.single-post-entry-meta .single-post-category a {
    color: #3B82F6;
    text-decoration: none;
}

.single-post-entry-meta .single-post-category a:hover {
    text-decoration: underline;
}

.single-post-entry-meta .single-post-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.single-post-entry-meta .single-post-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.single-post-entry-meta svg {
    width: 14px;
    height: 14px;
}


.single-post-entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 4rem;
    overflow-wrap: break-word;
}

.single-post-entry-content h1 {
    font-size: 2.5rem;
}

.single-post-entry-content h2 {
    font-size: 2rem;
}

.single-post-entry-content h3 {
    font-size: 1.75rem;
}

.single-post-entry-content h4 {
    font-size: 1.5rem;
}

.single-post-entry-content h5 {
    font-size: 1.25rem;
}

.single-post-entry-content h6 {
    font-size: 1.125rem;
}

.single-post-entry-content h1,
.single-post-entry-content h2,
.single-post-entry-content h3,
.single-post-entry-content h4,
.single-post-entry-content h5,
.single-post-entry-content h6 {
    margin-top: 4rem;
    margin-bottom: 1rem;
    color: #1E293B;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.single-post-entry-content h1:first-child,
.single-post-entry-content h2:first-child {
    margin-top: 0;
}

.single-post-entry-content p {
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

.single-post-entry-content ul,
.single-post-entry-content ol {
    margin-bottom: 1rem;
    padding-left: 4rem;
}

.single-post-entry-content li {
    margin-bottom: 0.5rem;
}

.single-post-entry-content blockquote {
    margin: 2rem 0;
    padding: 2rem;
    border-left: 4px solid #3B82F6;
    background: #F8FAFC;
    color: #64748B;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.single-post-entry-content code {
    padding: 0.25rem 0.5rem;
    background: #F1F5F9;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.single-post-entry-content pre {
    margin: 2rem 0;
    padding: 2rem;
    overflow-x: auto;
    background: #F1F5F9;
    border-radius: 8px;
}

.single-post-entry-content pre code {
    padding: 0;
    background: none;
    border-radius: 0;
}

.single-post-entry-content .page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #E2E8F0;
}


.single-post-copyright {
    padding: 4rem;
    border-radius: 12px;
    margin: 4rem 0;
    overflow-wrap: break-word;
}

.single-post-copyright h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1E293B;
    overflow-wrap: break-word;
}

.single-post-copyright-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #1E293B;
    overflow-wrap: break-word;
    flex-wrap: wrap;
}

.single-post-copyright-label {
    font-weight: 600;
    min-width: 80px;
    overflow-wrap: break-word;
}

.single-post-copyright-value {
    flex: 1;
    color: #64748B;
    overflow-wrap: break-word;
    min-width: 0;
}

.single-post-copyright-value a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.2s ease;
    overflow-wrap: break-word;
}

.single-post-copyright-value a:hover {
    color: #60A5FA;
}


.single-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.single-post-navigation .single-post-nav-previous,
.single-post-navigation .single-post-nav-next {
    padding: 1.5rem 2rem;
    background: transparent;
    border-radius: 8px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}


.single-post-navigation .single-post-nav-previous::after,
.single-post-navigation .single-post-nav-next::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3B82F6, transparent);
    -webkit-transition: width 0.3s ease;
    transition: width 0.3s ease;
}

.single-post-navigation .single-post-nav-previous:hover::after,
.single-post-navigation .single-post-nav-next:hover::after {
    width: 100%;
}

.single-post-navigation .single-post-nav-previous:hover,
.single-post-navigation .single-post-nav-next:hover {
    border-color: rgba(59, 130, 246, 0.2);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.single-post-navigation .single-post-nav-previous:hover .nav-label,
.single-post-navigation .single-post-nav-next:hover .nav-label {
    color: #3B82F6;
}

.single-post-navigation .single-post-nav-previous:hover .nav-title,
.single-post-navigation .single-post-nav-next:hover .nav-title {
    color: #3B82F6;
}

.nav-label {
    display: block;
    font-size: 0.75rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.single-post-navigation .single-post-nav-previous a,
.single-post-navigation .single-post-nav-next a {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #1E293B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    overflow-wrap: break-word;
}

.nav-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
}

.nav-number {
    display: block;
    font-size: 0.75rem;
    color: #94A3B8;
    font-style: italic;
    margin-top: 0.5rem;
    overflow-wrap: break-word;
}

.single-post-navigation .single-post-nav-previous a {
    align-items: flex-start;
}

.single-post-navigation .single-post-nav-next a {
    align-items: flex-end;
}

.single-post-navigation .single-post-nav-next .nav-content {
    flex-direction: row-reverse;
}

.single-post-navigation a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.single-post-navigation .single-post-nav-previous:hover a svg {
    -webkit-transform: translateX(-4px);
    transform: translateX(-4px);
}

.single-post-navigation .single-post-nav-next:hover a svg {
    -webkit-transform: translateX(4px);
    transform: translateX(4px);
}


.single-post-author-box {
    display: flex;
    gap: 2rem;
    padding: 4rem;
    background: transparent;
    border-radius: 12px;
    margin-bottom: 4rem;
    border: none;
    overflow-wrap: break-word;
}

.single-post-author-box .single-post-author-avatar {
    flex-shrink: 0;
}

.single-post-author-box .single-post-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #3B82F6;
}

.single-post-author-box .single-post-author-info {
    flex: 1;
    overflow-wrap: break-word;
}

.single-post-author-box .single-post-author-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1E293B;
    overflow-wrap: break-word;
}

.single-post-author-box .single-post-author-description {
    color: #64748B;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.single-post-author-box .single-post-author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3B82F6;
    font-weight: 500;
    transition: gap 0.2s ease;
}

.single-post-author-box .single-post-author-link:hover {
    gap: 1rem;
}

.single-post-author-box .single-post-author-link svg {
    width: 16px;
    height: 16px;
}


[data-theme="dark"] .single-post-title {
    color: #F1F5F9;
}

[data-theme="dark"] .single-post-entry-meta .single-post-date,
[data-theme="dark"] .single-post-entry-meta .single-post-category,
[data-theme="dark"] .single-post-entry-meta .single-post-author {
    color: #94A3B8;
}

[data-theme="dark"] .single-post-entry-meta .single-post-category a {
    color: #60A5FA;
}

[data-theme="dark"] .single-post-entry-content {
    color: #F1F5F9;
}

[data-theme="dark"] .single-post-entry-content h1,
[data-theme="dark"] .single-post-entry-content h2,
[data-theme="dark"] .single-post-entry-content h3,
[data-theme="dark"] .single-post-entry-content h4,
[data-theme="dark"] .single-post-entry-content h5,
[data-theme="dark"] .single-post-entry-content h6 {
    color: #F1F5F9;
}

[data-theme="dark"] .single-post-entry-content blockquote {

    color: #94A3B8;
}

[data-theme="dark"] .single-post-entry-content code {
 
}

[data-theme="dark"] .single-post-entry-content pre {
    color: #0F172A;
}

[data-theme="dark"] .single-post-copyright {

}

[data-theme="dark"] .single-post-copyright h4 {
    color: #F1F5F9;
}

[data-theme="dark"] .single-post-copyright-item {
    color: #F1F5F9;
}

[data-theme="dark"] .single-post-copyright-value {
    color: #94A3B8;
}

[data-theme="dark"] .single-post-copyright-value a:hover {
    color: #60A5FA;
}

[data-theme="dark"] .single-post-navigation .single-post-nav-previous a,
[data-theme="dark"] .single-post-navigation .single-post-nav-next a {
    color: #F1F5F9;
}

[data-theme="dark"] .nav-label {
    color: #64748B;
}

[data-theme="dark"] .nav-title {
    color: #F1F5F9;
}

[data-theme="dark"] .nav-number {
    color: #64748B;
}

[data-theme="dark"] .single-post-navigation .single-post-nav-previous:hover,
[data-theme="dark"] .single-post-navigation .single-post-nav-next:hover {
    border-color: rgba(96, 165, 250, 0.3);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

[data-theme="dark"] .single-post-navigation .single-post-nav-previous:hover .nav-label,
[data-theme="dark"] .single-post-navigation .single-post-nav-next:hover .nav-label {
    color: #60A5FA;
}

[data-theme="dark"] .single-post-navigation .single-post-nav-previous:hover .nav-title,
[data-theme="dark"] .single-post-navigation .single-post-nav-next:hover .nav-title {
    color: #60A5FA;
}

[data-theme="dark"] .single-post-author-box .single-post-author-name {
    color: #F1F5F9;
}

[data-theme="dark"] .single-post-author-box .single-post-author-description {
    color: #94A3B8;
}

[data-theme="dark"] .single-post-author-box .single-post-author-link:hover {
    color: #60A5FA;
}


@media (max-width: 768px) {
    .post-single {
        padding: 4rem 2rem;
    }

    .single-post-author-box {
        flex-direction: column;
        text-align: center;
    }

    .single-post-navigation {
        grid-template-columns: 1fr;
    }

    .post-single-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .post-single-content-left {
        display: flex;
        gap: 2rem;
        width: 100%;
    }

    .post-single-wrapper,
    .about-page-wrapper,
    .post-single-content-left,
    .about-content-left {
        width: 100%;
    }


    .single-post-navigation {
        display: none;
    }

    .post-single-sidebar {
        order: 2;
        width: 88vw;
    }

    .post-single-content-area {
        order: 1;
        width: 88vw;
    }

    /* 移动端关于页面无导航时内容占满宽度 */
    .about-page-wrapper.no-toc .about-page-content {
        width: 88vw;
    }

    
    .post-single-content-area,
    .about-page-content,
    .post-card .post-content,
    .widget-content,
    .single-post-entry-content,
    .entry-content {
        word-break: break-word;
        -webkit-word-break: break-word;
        overflow-wrap: break-word;
        -webkit-overflow-wrap: break-word;
    }

    .about-page {
        padding: 2rem 1rem;
    }

    .about-page-nav,
    .about-author-widget,
    .about-sidebar .widget {
        padding: 1.25rem;
    }

    
    .site-footer {
        padding: 3rem 1rem;
        font-size: 0.9rem;
        overflow-x: hidden;
    }
    .site-footer .footer-content {
        padding: 0 0.5rem;
    }
    .copyright {
        font-size: 0.8rem;
        line-height: 1.5;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
    .footer-badges {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    .footer-badges a {
        font-size: 0.75rem;
    }
    .screen-resolution {
        font-size: 0.7rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
}


.about-page {
    padding: 4rem 2rem;
}

.about-page-wrapper {
    width: 90vw;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 70vw 20vw;
    gap: 0;
    align-items: start;
}


/* 关于页面无导航时的布局 */
.about-page-wrapper.no-toc .about-content-left {
    display: block;
}

.about-page-wrapper.no-toc .about-page-content {
    flex: none;
    min-width: 70vw;
}

.about-content-left {
    display: flex;
    gap: 2rem;
    width: 70vw;
}


.about-page-content {
    width: 55vw;
    overflow-wrap: break-word;
}

.about-page-content h1,
.about-page-content h2,
.about-page-content h3,
.about-page-content h4,
.about-page-content h5,
.about-page-content h6 {
    scroll-margin-top: 100px;
    overflow-wrap: break-word;
}

.about-page-content p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}


.about-page-nav {
    position: sticky;
    top: 100px;
    padding: 1.5rem 0;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
}

.about-page-nav h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    white-space: normal;
    overflow-wrap: break-word;
}

.about-toc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.toc-item {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}


.toc-item::before,
.toc-item::after {
    content: '——';
    opacity: 0.3;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: inherit;
}

.toc-item:hover {
    color: #3B82F6;
}

.toc-item:hover::before,
.toc-item:hover::after {
    opacity: 1;
    color: #3B82F6;
}

.toc-item.active {
    color: #3B82F6;
    font-weight: 500;
}

.toc-item.active::before,
.toc-item.active::after {
    opacity: 1;
    color: #3B82F6;
    transform: scaleX(1.2);
}

.toc-item.level-2 {
    font-size: 0.85rem;
}

.toc-item.level-3 {
    font-size: 0.8rem;
}

.toc-item.level-4,
.toc-item.level-5,
.toc-item.level-6 {
    font-size: 0.75rem;
}

.toc-empty {
    color: var(--text-tertiary);
    font-style: italic;
}


.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
    overflow-y: auto;
}


.about-author-widget {
    background: transparent;
    padding: 1.5rem 0;
    border: none;
    position: relative;
}

.about-author-widget::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--border-color),
        transparent
    );
}

.about-author-avatar {
    text-align: center;
    margin-bottom: 1rem;
}

.about-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.about-author-avatar img:hover {
    border-color: #3B82F6;
}

.about-author-name {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.about-author-name::before,
.about-author-name::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--border-color);
    transition: background-color 0.2s ease;
}

.about-author-name::before {
    right: calc(100% + 15px);
}

.about-author-name::after {
    left: calc(100% + 15px);
}

.about-author-widget:hover .about-author-name::before,
.about-author-widget:hover .about-author-name::after {
    background: #3B82F6;
}

.about-author-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


.about-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.contact-item::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.2s ease;
}

.contact-item:hover {
    color: #3B82F6;
    transform: translateX(4px);
}

.contact-item:hover::before {
    background: #3B82F6;
    width: 8px;
    height: 8px;
}

.contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: color 0.2s ease;
}

.contact-item:hover .contact-icon {
    color: #3B82F6;
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.about-sidebar .widget {
    backdrop-filter: blur(1px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .about-sidebar .widget {

}

.about-sidebar .widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.recent-post-item {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: break-word;
}

.recent-post-item:hover {
    color: #3B82F6;
}


[data-theme="dark"] .about-page-nav h3,
[data-theme="dark"] .about-author-name,
[data-theme="dark"] .about-sidebar .widget-title {
    color: #F1F5F9;
}

[data-theme="dark"] .about-page-content p,
[data-theme="dark"] .about-author-description,
[data-theme="dark"] .about-toc,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .recent-post-item {
    color: #CBD5E1;
}




@media (min-width: 768px) and (max-width: 1199px){
    .about-page-wrapper {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content-left {
        display: flex;
        gap: 2rem;
        width: 100%;
    }

    .about-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .about-page-nav {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: clamp(5rem, 8vw, 9rem);
    }
}




/* 平板横屏 1025px - 1200px */
@media (min-width: 1025px) and (max-width: 1200px) {
    .about-page-wrapper {
        width: 95vw;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content-left {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .about-page-nav {
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .about-page-nav h3 {
        font-size: 1rem;
    }

    .toc-item {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .about-page {
        padding: 3rem 1.5rem;
    }
}



/* 平板竖屏 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-page-wrapper {
        width: 95vw;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content-left {
        display: flex;
        gap: 1.5rem;
        width: 100%;
    }

    .about-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .about-page-nav {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .about-page {
        padding: 2.5rem 1.5rem;
    }

    .about-page-content h1 {
        font-size: 1.8rem;
    }

    .about-page-content h2 {
        font-size: 1.5rem;
    }

    .about-page-content h3 {
        font-size: 1.25rem;
    }

    .about-page-content p {
        font-size: 1rem;
    }

    .about-author-avatar img {
        width: 90px;
        height: 90px;
    }

    .about-author-name {
        font-size: 1.15rem;
    }

    .about-author-description {
        font-size: 0.875rem;
    }
}



/* 大屏手机 577px - 768px */
@media (min-width: 577px) and (max-width: 768px) {
    .about-page-wrapper {
        width: 86vw;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content-left {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .about-page-nav {
        display: none;
    }

    .about-page {
        padding: 2rem 1rem;
    }

    .about-page-content h1 {
        font-size: 1.6rem;
    }

    .about-page-content h2 {
        font-size: 1.35rem;
    }

    .about-page-content h3 {
        font-size: 1.15rem;
    }

    .about-page-content p {
        font-size: 0.95rem;
    }

    .about-author-avatar img {
        width: 80px;
        height: 80px;
    }

    .about-author-name {
        font-size: 1.1rem;
    }

    .about-author-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .contact-item {
        padding: 0.4rem 0;
        gap: 0.5rem;
    }

    .contact-icon {
        width: 16px;
        height: 16px;
    }

    .contact-label {
        font-size: 0.8rem;
    }

    .widget {
        padding: 1rem;
    }

    .widget-title {
        font-size: 1rem;
    }

    .recent-post-item {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .site-footer {
        padding: 3rem 1rem;
        font-size: 0.9rem;
        overflow-x: hidden;
    }

    .copyright {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .footer-badges {
        gap: 0.5rem;
    }

    .footer-badges a {
        font-size: 0.8rem;
    }

    .screen-resolution {
        font-size: 0.75rem;
    }
}



/* 标准手机 426px - 576px */
@media (min-width: 426px) and (max-width: 576px) {
    .about-page-wrapper {
        width: 86vw;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content-left {
        display: flex;
        gap: 1.5rem;
        width: 100%;
    }

    .about-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .about-page-nav {
        display: none;
    }

    .about-page {
        padding: 1.5rem 0.75rem;
    }

    .about-page-content h1 {
        font-size: 1.5rem;
    }

    .about-page-content h2 {
        font-size: 1.25rem;
    }

    .about-page-content h3 {
        font-size: 1.1rem;
    }

    .about-page-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .about-author-avatar img {
        width: 70px;
        height: 70px;
    }

    .about-author-name {
        font-size: 1rem;
    }

    .about-author-description {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .contact-item {
        padding: 0.3rem 0;
        gap: 0.5rem;
    }

    .contact-icon {
        width: 15px;
        height: 15px;
    }

    .contact-label {
        font-size: 0.75rem;
    }

    .widget {
        padding: 0.875rem;
    }

    .widget-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .recent-post-item {
        font-size: 0.8rem;
        padding: 0.35rem 0;
    }
}



/* 小屏手机 ≤425px */
@media (max-width: 425px) {
    .about-page-wrapper {
        width: 86vw;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content-left {
        display: flex;
        gap: 1.5rem;
        width: 100%;
    }

    .about-page-content{
        width: 85vw;
    }

    .about-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .about-page-nav {
        display: none;
    }

    .about-page {
        padding: 1.25rem 0.5rem;
    }

    .about-page-content h1 {
        font-size: 1.35rem;
    }

    .about-page-content h2 {
        font-size: 1.15rem;
    }

    .about-page-content h3 {
        font-size: 1.05rem;
    }

    .about-page-content p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }

    .about-author-avatar img {
        width: 60px;
        height: 60px;
    }

    .about-author-name {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .about-author-description {
        font-size: 0.75rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .contact-item {
        padding: 0.25rem 0;
        gap: 0.4rem;
    }

    .contact-icon {
        width: 14px;
        height: 14px;
    }

    .contact-label {
        font-size: 0.7rem;
    }

    .contact-item::before {
        left: -0.8rem;
        width: 4px;
        height: 4px;
    }

    .widget {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .widget-title {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.5rem;
    }

    .recent-post-item {
        font-size: 0.75rem;
        padding: 0.3rem 0;
    }

    .site-footer {
        padding: 2.5rem 0.5rem;
        font-size: 0.8rem;
        overflow-x: hidden;
    }

    .copyright {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .footer-badges {
        gap: 0.4rem;
    }

    .footer-badges a {
        font-size: 0.7rem;
    }

    .gongan-icon {
        width: 14px;
        height: 14px;
    }

    .screen-resolution {
        font-size: 0.65rem;
    }
}









@media (min-width: 1920px) {
    .site-main {
        max-width: 90vw;
        margin: 0 auto;
        padding-top: 5vh;
    }
    .post-single-wrapper,
    .about-page-wrapper {
        max-width: 93.75vw;
        gap: 4rem;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
}


@media (min-width: 1200px) and (max-width: 1919px) {
    .site-main {
        max-width: 90vw;
        margin: 0 auto;
        padding-top: 5vh;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
}





@media (max-width: 768px) {
    html {
        font-size: 1rem;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    body {
        font-size: 1rem;
    }
    .site-header,
    .site-header.in-hero-section {
        opacity: 0 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
    }
    .site-header:not(.in-hero-section) {
        opacity: 1 !important;;
        visibility: visible !important;;
        transform: translateX(0) !important;;
    }
    /* 关于页面和文章页面的菜单栏需要固定显示 */
    .post-header {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        position: fixed !important;
        width: 6vw;
        max-width: 9vw;
        padding-left: 1vh;
        top: 10vh;
        left: 0;
        z-index: 1000;
    }
    .header-background {
        width: 100%;
        height: 100%;
        background: var(--nav-bg-desktop);
    }
    .header-content-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        flex: 1;
        position: relative;
        z-index: 1;
        overflow: hidden;
        width: 100%;
    }
    .site-title {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        opacity: 1 !important;
        transform: none !important;
    }
    .site-title a {
        font-size: 1.3rem;
        font-weight: 700;
        text-transform: uppercase;
        background: linear-gradient(135deg, #3B82F6, #60A5FA, #60A5FA);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-decoration: none;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        letter-spacing: 0;
        line-height: 1;
        padding: 0;
        margin: 0;
        width: auto;
        height: auto;
    }
    .site-title a:hover {
        -webkit-text-fill-color: #3B82F6;
        text-fill-color: #3B82F6;
    }
    .site-title a span {
        display: block;
        line-height: 1;
        letter-spacing: 0;
        margin: 0;
        padding: 0;
    }
    .site-navigation {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        overflow: hidden;
        position: relative;
        opacity: 1 !important;
        transform: none !important;
    }
    .site-navigation .nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.6rem;
    }
    .site-navigation .nav-menu li {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .site-navigation .nav-menu a {
        color: #1E293B;
        font-weight: 500;
        font-size: 0.65rem;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        padding: 0.2rem 0;
        margin: 0;
        text-decoration: none;
        line-height: 1;
        width: 100%;
    }
    .site-navigation .nav-menu a:hover,
    .site-navigation .nav-menu a.current-menu-item {
        color: #3B82F6;
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.6), 0 0 20px rgba(59, 130, 246, 0.4);
    }
    [data-theme="dark"] .site-navigation .nav-menu a {
        color: #F1F5F9;
    }
    [data-theme="dark"] .site-navigation .nav-menu a:hover,
    [data-theme="dark"] .site-navigation .nav-menu a.current-menu-item {
        color: #60A5FA;
        text-shadow: 0 0 10px rgba(96, 165, 250, 0.6), 0 0 20px rgba(96, 165, 250, 0.4);
    }
    .site-navigation .nav-menu a span {
        display: block;
        line-height: 1;
        letter-spacing: 0;
        margin: 0;
        padding: 0;
    }
    .header-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        padding: 0;
        margin: 0;
        width: 100%;
        gap: 0;
        margin-top: 1vh;
        padding-bottom: 6vh;
    }
    .action-button {
        width: 32px;
        min-width: 32px;
        max-width: 32px;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        color: #64748B;
        transition: all 0.2s ease;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        box-sizing: border-box;
    }
    .action-button:hover {
        color: #3B82F6;
        background: rgba(59, 130, 246, 0.1);
    }
    [data-theme="dark"] .action-button {
        color: #F1F5F9;
    }
    [data-theme="dark"] .action-button:hover {
        color: #60A5FA;
        background: rgba(96, 165, 250, 0.1);
    }
    .action-button .icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
    .action-button svg {
        width: 100%;
        height: 100%;
    }
    .page-loading {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        overflow: hidden;
        box-sizing: border-box;
    }
    .page-loading-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid #F1F5F9;
        border-top-color: #3B82F6;
    }
    .page-loading-percent {
        font-size: 1.5rem;
        max-width: 90vw;
        word-break: break-word;
        padding: 0 1rem;
    }
    .search-overlay {
        top: 0;
        width: 100vw;
        height: 100vh;
    }
    .search-container {
        width: 80%;
        padding: 1.5rem 1rem;
    }
    .search-form {
        flex-wrap: wrap;
    }
    .search-field {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    .search-submit,
    .search-close {
        width: 40px;
        max-width: 40px;
        height: 40px;
        max-height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    .qr-modal {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }
    .qr-modal-content {
        padding: 2rem 1.5rem;
        max-width: 85vw;
        width: auto;
        max-height: 85vh;
        overflow-y: auto;
        box-sizing: border-box;
    }
    .qr-modal-close {
        width: 28px;
        height: 28px;
        top: 0.5rem;
        right: 0.5rem;
    }
    #qrcode canvas,
    #qrcode img {
        max-width: 150px;
        height: auto;
    }
    .site-main {
      padding-top: 10vh;
      padding-right: 5vw;
      padding-bottom: 10vh;
      padding-left: 10vw;
    }
    .container {
        padding: 0 1rem;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .post-card {
        flex-direction: column !important;
        padding: 0.75rem;
        max-height: 30vh;
        overflow: hidden;
    }
    .post-card .featured-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        max-height: 18vh;
    }
    .post-card .post-content {
        padding: 0.5rem 0.75rem;
        max-height: 12vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .post-card .entry-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        -webkit-line-clamp: 2;
    }
    .post-card .entry-excerpt {
        font-size: 0.875rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        display: none;
    }
    .post-card .entry-meta {
        font-size: 0.75rem;
        gap: 0.75rem;
        margin-top: auto;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        padding: 0 1rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }
    .scroll-down {
        width: 10vw;
        height: 10vw;
        bottom: 2rem;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        top: 30vh;
    }
    .posts-container{
        width: 85vw;
        margin: 0;
    }
    .about-page-content{
        width: 85vw;
        overflow-wrap: break-word;
    }
}


@media (max-height: 500px) and (orientation: landscape) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 3.125vh;
        max-height: 3.125vh;
    }
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .site-title {
        writing-mode: horizontal-tb;
        -webkit-writing-mode: horizontal-tb;
        -ms-writing-mode: horizontal-tb;
        height: auto;
        width: auto;
    }
    .site-navigation {
        height: auto;
        width: auto;
    }
    .site-navigation .nav-menu {
        flex-direction: row;
        gap: 1rem;
    }
    .site-navigation .nav-menu a {
        writing-mode: horizontal-tb;
        -webkit-writing-mode: horizontal-tb;
        -ms-writing-mode: horizontal-tb;
        flex-direction: row;
    }
    .site-navigation .nav-menu a span {
        display: inline;
    }
}


@media print {
    .site-header,
    .site-footer,
    .header-actions,
    .scroll-down,
    .canvas-background {
        display: none !important;
    }
    .site-main {
        padding: 0;
    }
    body {
        background: white;
        color: black;
    }
}


