html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: none;
}

.site-header,
.site-footer,
.search-container,
.mobile-nav-panel,
.metro-tools-dock,
.single-sidebar,
input, button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  font-family: Georgia, "Hoefler Text", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "Songti SC", "STSong", serif;
  margin: 0;
  padding: 0;
  background-color: #fafafa;
  color: #222222;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

.site-main {
  max-width: 760px;
  margin: 120px auto 60px;
  padding: 0 20px;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fafafa; 
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-bottom 0.2s ease;
  border-bottom: 1px solid transparent; 
}

.site-header.scrolled {
  border-bottom: 1px solid #eaeaea; 
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; 
  margin: 0 auto;
  padding: 20px 40px; 
  position: relative;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 800; 
  letter-spacing: 2px;
  color: #111;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.site-title:hover, 
.site-title a:hover {
  color: var(--primary-color, #26a69a) !important; 
}

/* ================= 菜单 ================= */
.nav-menu {
  display: flex;
  gap: 10px; 
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #777;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px; 
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, text-shadow 0.2s ease, transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link.active {
  color: #111;
  text-shadow: 0 0 0.6px #111, 0 0 0.6px #111; 
}

.nav-link:hover {
  color: #ffffff;
  background-color: #1a1a1a;
  text-shadow: 0 0 0.6px #ffffff, 0 0 0.6px #ffffff; 
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); 
}

/* ================= 搜索 ================= */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
}

.search-input {
  position: absolute;
  right: 36px;
  height: 100%;
  width: 0;
  opacity: 0;
  padding: 0;
  border: 2px solid transparent;
  border-right: none;
  box-sizing: border-box;
  
  background-color: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  color: #111;
  font-weight: 500;
  outline: none;
  
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              opacity 0.2s ease,
              padding 0.3s ease,
              border-color 0.3s ease;
}

.search-container.is-active .search-input {
  width: 220px;
  opacity: 1;
  padding: 0 12px;
  border-color: #1a1a1a; 
  background-color: #ffffff; 
}

.search-toggle-btn {
  height: 36px;
  width: 36px;
  padding: 0; 
  box-sizing: border-box; 
  background: transparent;
  border: 2px solid transparent; 
  cursor: pointer;
  color: #555;
  position: relative; 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2; 
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-toggle-btn svg {
  position: absolute;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease;
}

.icon-search {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.search-container.is-active .search-toggle-btn {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.search-container.is-active .icon-search {
  opacity: 0;
  transform: rotate(90deg) scale(0.5); 
}
.search-container.is-active .icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.search-container:not(.is-active) .search-toggle-btn:hover {
  color: #111;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 15px 20px;
  }
  .nav-menu {
    display: none; 
  }
}

/* 搜索下拉结果面板 */
.search-results-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 500px; 
  max-width: 90vw; 
  margin-top: 12px;
  background: #ffffff;
  border: 2px solid #1a1a1a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); 
  z-index: 1001;
  max-height: 500px; 
  overflow-y: auto;
}

.search-results-panel::-webkit-scrollbar { display: none; }

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  position: relative; 
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), 
              background-color 0.25s ease, 
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  gap: 20px;
}

.search-result-item:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); 
  z-index: 2;
  border-bottom-color: transparent; 
}

.search-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: color 0.2s ease;
}

.search-result-item:hover .search-title {
  color: var(--primary-color, var(--accent-color, #F26522)); 
}

.search-date {
  font-size: 0.8rem;
  color: #888;
  flex-shrink: 0;
  margin-top: 4px;
}

.search-empty {
  padding: 15px 16px;
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
}

/* =========================================
   首页顶部 Hero
   ========================================= */
.home-hero {
  padding: 60px 0 40px 0;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 4.2rem; 
  font-weight: 600; 
  margin: 0 0 10px 0;
  letter-spacing: 1px;
  color: #111111;
}

.hero-slogan {
  font-size: 1.8rem; 
  font-weight: 400; 
  color: #666666;
  margin: 0;
  letter-spacing: 1px; 
}

/* =========================================
   主页文章列表
   ========================================= */

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

.post-entry {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  padding: 40px 20px; 
  background-color: transparent;
  
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              background-color 0.3s ease;
}

@media (min-width: 800px) {
  .post-entry {
    padding-left: calc(50vw - 380px);
    padding-right: calc(50vw - 380px);
  }
}

.post-entry:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  z-index: 10;
  position: relative;
  box-shadow: 0 15px 30px rgba(0,0,0,0.04), 0 -10px 20px rgba(0,0,0,0.02);
}

.post-link-main {
  display: block;
}
.entry-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222222;
  margin: 0 0 8px 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.post-entry:hover .entry-title {
  color: var(--primary-color); 
}

.entry-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: #666666;
  margin: 0 0 12px 0;
}

.entry-meta {
  font-size: 0.85rem;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.entry-description {
  font-size: 0.95rem; 
  font-style: italic;
  color: #555555; 
  margin: 0 0 25px 0;
  line-height: 1.8; 
  letter-spacing: 0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 桌面端 */
@media (min-width: 769px) {
  .entry-description {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
  }
}

/* ================= 标签 ================= */
a.tag {
  display: inline-block;
  margin: 0 8px 8px 0;
  font-size: 0.8rem;
  font-family: sans-serif;
  background-color: #f4f4f4;
  color: #555;
  padding: 4px 12px;
  border-radius: 0; 
  letter-spacing: 0.5px;
  text-decoration: none; 
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.post-entry:hover a.tag {
  color: var(--accent-color, #e65100); 
  background-color: var(--accent-color-light, #fff3e0);
}

.post-entry a.tag:hover,
.single-header a.tag:hover {
  color: var(--accent-color, #e65100);
  background-color: var(--accent-color-light, #fff3e0);
  filter: brightness(0.98);
  text-shadow: 0 0 0.5px var(--accent-color, #e65100);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); 
  z-index: 2; 
}

body, html {
  overflow-x: hidden;
}

@media (max-width: 600px) {
  .site-main {
    margin-top: 100px;
  }
  .post-entry {
    padding: 25px 20px;
  }
}

/* =========================================
   主页底部归档按钮
   ========================================= */
.archive-action {
  margin-top: 60px; 
  margin-bottom: 40px;
  display: flex;
  justify-content: flex-end; 
}

.btn-archive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600; 
  font-style: normal;
  color: #666666;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px; 
  padding: 12px 24px; 
  background-color: transparent;
  line-height: 1; 
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-archive .arrow {
  position: relative;
  top: -1px;
  font-family: sans-serif;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-archive:hover {
  color: #ffffff;
  background-color: #1a1a1a; 
  text-shadow: 0 0 0.6px #ffffff, 0 0 0.6px #ffffff; 
  
  transform: translate(6px, -2px);
  box-shadow: -4px 6px 12px rgba(0, 0, 0, 0.15); 
}

.btn-archive:hover .arrow {
  transform: translateX(6px); /* 箭头再向右滑动 6px！ */
}

/* =========================================
   独立页面 (Page) 样式
   ========================================= */
.page-header {
  padding-top: 80px; 
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .page-header {
    padding-top: 40px; 
    margin-bottom: 40px;
  }
}

/* =========================================
   Archive 归档页面
   ========================================= */

.archive-year-section {
  margin-bottom: 80px;
}

.archive-year {
  font-size: 4.5rem; 
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.3;
  margin: 0 0 20px 0;
  line-height: 1;
  letter-spacing: -2px; 
  z-index: -1; 
}

.archive-posts-list {
  display: flex;
  flex-direction: column;
}

.archive-item {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  padding: 20px 20px;
  background-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

@media (min-width: 800px) {
  .archive-item {
    padding-left: calc(50vw - 380px);
    padding-right: calc(50vw - 380px);
  }
}

.archive-item:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  z-index: 10;
  position: relative;
  border-bottom-color: transparent;
  box-shadow: 0 10px 20px rgba(0,0,0,0.04), 0 -5px 15px rgba(0,0,0,0.02);
}

.archive-link {
  display: flex;
  align-items: baseline;
  gap: 30px;
  text-decoration: none;
  width: 100%;
}

.archive-meta {
  font-size: 1rem;
  color: #999999;
  font-weight: 400;
  flex-shrink: 0;
  width: 60px;
}

.archive-title {
  font-size: 1.15rem;
  font-weight: 400;
  color: #333333;
  margin: 0;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.archive-item:hover .archive-title {
  color: var(--primary-color);
}

.archive-tags {
  margin-left: auto;
  display: flex;
  gap: 12px;
  opacity: 0.5; 
  transition: opacity 0.3s ease;
  /* 如果 Tag 实在太多，允许整体换行，并且换行后依然保持右对齐 */
  flex-wrap: wrap; 
  justify-content: flex-end; 
  max-width: 50%; 
}

.archive-tag-item {
  font-size: 0.85rem;
  font-family: sans-serif; 
  color: #999999;
  white-space: nowrap; 
}

.archive-item:hover .archive-tags {
  opacity: 1;
}

.archive-item:hover .archive-tag-item {
  color: var(--accent-color); 
}

@media (max-width: 600px) {
  .archive-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .archive-tags {
    display: none !important; 
  }
  
  .archive-meta {
    font-size: 0.85rem;
  }
}

.archive-meta.list-meta {
  width: 90px;
  white-space: nowrap;
  font-family: inherit;
}

/* =========================================
   标签云 (Taxonomy Terms Cloud)
   ========================================= */
.taxonomy-cloud {
  display: flex;
  flex-wrap: wrap; 
  gap: 16px 20px; 
  margin-top: 20px;
}

a.taxonomy-tag {
  font-size: 1rem !important;
  padding: 12px 24px;
  margin: 0 !important;
}

.tag-count {
  font-size: 0.85rem;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.taxonomy-cloud a.taxonomy-tag:hover {
  color: var(--accent-color);
  background-color: var(--accent-color-light, #fff3e0);
  filter: brightness(0.98); 
  text-shadow: 0 0 0.5px var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); 
  z-index: 2; 
}

.taxonomy-cloud a.taxonomy-tag:hover .tag-count {
  opacity: 0.8;
}

/* =========================================
   footer
   ========================================= */
.site-footer.metro-dark {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 100px 0 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-main-grid {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 80px; 
}

/* ================= 左侧：品牌与简介区 ================= */
.footer-brand-zone {
  flex: 1;
  max-width: 450px;
  text-align: left; 
}

.footer-site-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.25em; 
}

.footer-slogan {
  font-size: 0.85rem;
  font-weight: 500;
  color: #888888;
  margin: 0 0 50px 0; 
  letter-spacing: 0.15em; 
  text-transform: uppercase;
}

.editorial-bio {
  font-size: 1.15rem; 
  font-weight: 400;  
  line-height: 1.6;
  color: #a0a0a0; 
  margin: 0;
}

/* ================= 右侧：Metro Pivot 链接区 ================= */
.footer-links-zone.pivot-layout {
  display: flex;
  flex-direction: column; 
  gap: 60px; 
  flex: 1;
  max-width: 600px; 
  align-items: flex-end; 
  text-align: right; 
}

.pivot-header {
  font-size: 2.2rem; 
  font-weight: 800; 
  color: rgba(255, 255, 255, 0.25);; 
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
  text-transform: capitalize; 
}

.metro-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; 
  flex-wrap: wrap;
  justify-content: flex-end; 
  gap: 15px 30px; 
}

.metro-list a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.metro-list a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* ================= 底部：版权与 RSS ================= */
.footer-copyright-zone {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  border-top: 1px solid #333333; 
  padding-top: 25px; 
}

.copyright-info,
.theme-declaration {
  font-size: 0.85rem; 
  color: #666666;
}

.theme-declaration {
  margin-bottom: 25px;
}

.copyright-info a,
.theme-declaration a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.copyright-info a:hover,
.theme-declaration a:hover {
  color: #ffffff;
}

.theme-declaration strong {
  font-weight: 600;
  color: #777777;
  transition: color 0.2s ease;
}

.theme-declaration a:hover strong {
  color: #ffffff;
}

.meta-divider {
  margin: 0 2px;
  color: #444444; 
}

/* ================= RSS  ================= */
.site-footer .footer-copyright-zone .footer-rss-btn {
  display: inline-flex; 
  align-items: center; 
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #888888;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  transition: all 0.3s ease;
}

.site-footer .footer-copyright-zone .footer-rss-btn .rss-icon {
  transition: transform 0.3s ease, stroke 0.3s ease;
  margin-top: -2px;
}

.site-footer .footer-copyright-zone .footer-rss-btn:hover {
  color: #ffffff; 
}

.site-footer .footer-copyright-zone .footer-rss-btn:hover .rss-icon {
  stroke: #F26522 !important; 
  transform: translate(2px, -2px) scale(1.1); 
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .footer-main-grid {
    flex-direction: column;
    gap: 80px;
  }
  
  .footer-links-zone.pivot-layout {
    align-items: flex-start;
    text-align: left;
  }
  
  .metro-list {
    justify-content: flex-start;
  }
  
  .footer-slogan {
    margin: 0 0 30px 0; 
  }

  .footer-copyright-zone {
    flex-direction: column;
    align-items: flex-start; 
    gap: 20px;
  }
  
  .copyright-info {
    line-height: 1.6;
  }

  /* No More Hover */
  .site-footer .footer-copyright-zone .footer-rss-btn {
    color: #cccccc;
  }
  
  .site-footer .footer-copyright-zone .footer-rss-btn .rss-icon {
    stroke: var(--accent-color, #F26522) !important;
    transform: scale(1.1); 
  }
  
  @media (max-width: 500px) {
    .copyright-info .meta-divider {
      display: none;
    }
    
    .copyright-info span:not(.meta-divider), 
    .copyright-info a {
      display: block; 
      margin-bottom: 6px; 
    }
  }
}

/* =========================================
   右下角Tool Box
   ========================================= */
.metro-tools-dock {
  position: fixed;
  right: 20px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.metro-tools-dock.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 1280px) {
  .metro-tools-dock {
    /* 让按钮贴着 1200px 宽的主体内容边缘 */
    right: calc(50vw - 580px);
  }
}

.metro-tool-btn {
  width: 48px;
  height: 48px;
  background-color: #111111 !important; 
  border: none !important;
  border-radius: 0 !important;
  display: flex !important; 
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #ffffff !important; 
  padding: 0 !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.metro-tool-btn::before,
.metro-tool-btn::after {
  display: none !important;
}

.metro-tool-btn svg { 
  width: 22px !important; 
  height: 22px !important; 
  stroke: #ffffff !important; 
  display: block;
  margin: 0 !important;
}

/* Hover 仅限拥有真实鼠标的设备 */
@media (hover: hover) and (pointer: fine) {
  .metro-tool-btn:hover {
    background-color: var(--primary-color, #26a69a) !important; 
    transform: translateY(-4px) !important; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
  }
}

/* =========================================
   Desktop/Mobile Display Control
   ========================================= */
.mobile-only {
  display: none !important; 
}

@media (max-width: 1350px) {
  .mobile-only {
    display: flex !important; 
  }
}

.mobile-toggle-btn,
.mobile-menu-overlay {
  display: none;
}

@media (max-width: 768px) {
  
  .nav-menu,
  .search-container {
    display: none !important;
  }

  .header-inner {
    position: relative;
    z-index: 1002;
    background-color: #fafafa;
  }

  .site-title {
    position: relative;
    z-index: 1003; 
  }

  .mobile-toggle-btn {
    display: flex; 
    position: relative;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: #111;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1003;
  }

  .mobile-toggle-btn svg {
    position: absolute;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease;
  }

  .icon-hamburger { opacity: 1; transform: rotate(0deg) scale(1); }
  .icon-close-menu { opacity: 0; transform: rotate(-90deg) scale(0.5); }

  .menu-open .icon-hamburger { opacity: 0; transform: rotate(90deg) scale(0.5); }
  .menu-open .icon-close-menu { opacity: 1; transform: rotate(0deg) scale(1); }

  .mobile-menu-overlay {
    display: block; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    height: 100dvh; 
    
    background-color: #fafafa; 
    z-index: 999; 
    
    transform: translateY(-100%); 
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    overflow-y: auto; 
    overscroll-behavior: contain; 
  }
  .menu-open .mobile-menu-overlay {
    transform: translateY(0);
  }

  .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 80px 20px 30px 20px; 
    box-sizing: border-box;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 40px;
  }

  .mobile-nav-link {
    font-size: 2.2rem;
    font-weight: 800;
    color: #aaa;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .mobile-nav-link.active {
    color: #111;
    transform: translateX(-8px); 
  }

  .mobile-search-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
  }

  #mobileSearchInput {
    width: 100%;
    max-width: 250px; 
    padding: 8px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #111;
    font-size: 1.2rem; 
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    text-align: right; 
    outline: none;
    border-radius: 0;
    transition: border-color 0.2s ease;
  }
  
  #mobileSearchInput::placeholder { color: #ccc; }
  
  #mobileSearchInput:focus {
    border-bottom-color: var(--primary-color, var(--accent-color, #F26522)); 
  }
  .mobile-search-results {
    display: none;
    width: 100%;
    max-width: 250px;
    margin-top: 15px;
    text-align: right;
  }

  .mobile-search-results .search-result-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 右对齐 */
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
    text-decoration: none;
  }

  .mobile-search-results .search-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 5px;
  }
  .mobile-search-results .search-date {
    font-size: 0.8rem;
    color: #888;
  }

  .mobile-meta-footer {
    margin-top: auto;
    padding-top: 40px; 
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }

  .mobile-meta-footer .copyright-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.8rem;
    color: #999;
    line-height: 1.4;
  }

  .mobile-rss-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111; 
    text-decoration: none;
    letter-spacing: 1px;
  }

  .mobile-rss-btn .rss-icon {
    color: var(--accent-color, #F26522); 
    margin-top: -1px;
  }
}

body.menu-open {
  overflow: hidden;
  touch-action: none; 
}