body {
  font-family: Georgia, "Noto Serif SC", "Source Han Serif SC", serif;
  background: #fdfcf9;
  color: #2a2a2a;
  line-height: 1.85;
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

header {
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid #e8e8e8;
}

header h1 a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 2.4rem;
  letter-spacing: 0.05em;
}

nav {
  margin-top: 16px;
}

nav a {
  margin: 0 18px;
  color: #555;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.25s ease;
}

nav a:hover {
  color: #5a8ed3;
}

h2 {
  font-size: 1.8rem;
  color: #333;
  margin: 50px 0 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.post-item {
  margin: 35px 0;
  padding-left: 16px;
  border-left: 4px solid #e0e0e0;
  transition: all 0.25s ease;
}

.post-item:hover {
  border-left-color: #a0c0e8;
  transform: translateX(6px);
}

.post-item time {
  color: #888;
  font-size: 0.95rem;
}

.post-item h3 {
  margin: 10px 0 8px;
  font-size: 1.45rem;
}

.post-item h3 a {
  color: #222;
  text-decoration: none;
}

.post-item h3 a:hover {
  color: #5a8ed3;
  text-decoration: underline;
}

.post-item .meta {
  margin: 6px 0 12px;
  font-size: 0.92rem;
  color: #777;
}

footer {
  margin-top: 80px;
  text-align: center;
  color: #888;
  font-size: 0.95rem;
}
/* 每個文章卡片預設隱藏並向下偏移 */
.post-item {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

/* 當進入視窗時觸發 */
.post-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 頁面標題也可以加一點效果（可選） */
h2 {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease-out;
}

h2.visible {
  opacity: 1;
  transform: translateY(0);
}
/* 首頁專用 - 開頭區域 */

.sidebar-left {
  position: fixed;
  left: 40px;
  top: 80px;
  font-size: 0.9rem;
  color: #444;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.5em;
  line-height: 2.2;
}

.author-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.categories {
  font-size: 0.85rem;
  opacity: 0.7;
}

.top-right-icons {
  position: fixed;
  right: 40px;
  top: 40px;
  font-size: 1.4rem;
  color: #222;
}

.top-right-icons .icon {
  margin-left: 20px;
  cursor: pointer;
}

.top-right-icons .dot {
  font-size: 1.8rem;
}

.intro-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.big-quote {
  font-size: 8rem;
  line-height: 0.6;
  color: #888;
  opacity: 0.4;
  margin-right: 20px;
  vertical-align: middle;
}

.quote-text {
  font-size: 1.4rem;
  line-height: 2.1;
  max-width: 680px;
  margin: 0 auto 20px;
  color: #333;
}

.quote-source {
  font-size: 1rem;
  color: #777;
  font-style: italic;
}

.latest-title {
  font-size: 1.6rem;
  color: #222;
  text-align: center;
  margin: 80px 0 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

/* 手機版調整 */
@media (max-width: 768px) {
  .sidebar-left {
    position: static;
    writing-mode: horizontal-tb;
    text-align: center;
    margin: 20px 0;
  }
  
  .top-right-icons {
    top: 20px;
    right: 20px;
  }
  
  .intro-section {
    min-height: 50vh;
    padding: 40px 20px;
  }
  
  .big-quote {
    font-size: 6rem;
  }
}
/* 右上角图标容器 */
.top-right-icons {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 1000;
  display: flex;
  gap: 28px;
}

.top-right-icons .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #333;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.08);
}

.top-right-icons .icon:hover {
  color: #5a8ed3;
  transform: scale(1.12);
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.top-right-icons svg {
  width: 22px;
  height: 22px;
}

/* 关闭按钮 */
.close-btn {
  position: absolute;
  top: 28px;
  right: 32px;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #666;
  cursor: pointer;
  z-index: 1001;
}

.close-btn:hover {
  color: #c0392b;
}

/* 汉堡菜单样式（全屏） */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: white;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 80px 20px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1.9rem;
  color: #222;
  text-decoration: none;
  margin: 28px 0;
  transition: all 0.25s;
}

.mobile-menu a:hover {
  color: #5a8ed3;
  transform: translateX(8px);
}
/* 全屏背景容器 */
.full-screen-bg {
  position: relative;
  height: 100vh;               /* 全屏高度 */
  min-height: 800px;           /* 最小高度，避免太矮 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 背景图层（支持视差） */
.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;      /* 优化性能 */
  transition: transform 0.1s linear;  /* 平滑视差 */
}

/* 内容层（半透明 + 居中） */
.content-overlay {
  position: relative;
  z-index: 2;
  background: rgba(253, 252, 249, 0.82);
  backdrop-filter: blur(12px);
  padding: 60px 80px;
  border-radius: 16px;
  max-width: 760px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  margin: 0 20px;
}

/* 框內的對稱引號 */
.quote-decoration {
  position: relative;
  margin-bottom: 24px;
}

.quote-open,
.quote-close {
  font-size: 5.5rem;
  line-height: 0.5;
  color: #888;
  opacity: 0.4;
  position: absolute;
  font-family: Georgia, serif;
}

.quote-open {
  left: -100px;
  top: -10px;
}

.quote-close {
  right: -100px;
  bottom: -100px;
}

/* 文字样式（可微调） */
.quote-text {
  font-size: 1.45rem;
  line-height: 2.1;
  color: #2c2c2c;
  margin: 0 0 28px;
}

.quote-source {
  font-size: 1.05rem;
  color: #555;
  font-style: italic;
}

.content-overlay {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s ease-out;
}

.content-overlay.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 手机端适配 */
@media (max-width: 768px) {
  .full-screen-bg {
    height: 90vh;
    min-height: 600px;
  }
  
  .content-overlay {
    padding: 40px 30px;
  }
  
  .quote-text {
    font-size: 1.25rem;
  }
}

/* 右上角控制条（图标容器） */
.top-right-controls {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 2000;          /* 高于菜单 */
  display: flex;
  gap: 28px;
  transition: opacity 0.3s ease;
}

.top-right-controls.hidden {
  opacity: 0;
  pointer-events: none;   /* 隐藏后无法点击 */
}

/* 图标样式 */
.top-right-controls .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  color: #333;
  border: 1px solid rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}

.top-right-controls .icon:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #5a8ed3;
}
/* 单篇文章页面 */
.single-post {
  max-width: 780px;
  margin: 80px auto 120px;
  padding: 0 20px;
}

.post-title {
  font-size: 2.4rem;
  line-height: 1.3;
  margin: 0 0 32px;
  text-align: center;
  color: #222;
  letter-spacing: -0.02em;
}

.post-meta {
  text-align: center;
  color: #777;
  font-size: 0.98rem;
  margin-bottom: 60px;
}

.post-meta time,
.post-meta .categories {
  margin: 0 12px;
}

.post-content {
  font-size: 1.18rem;
  line-height: 2.0;
  color: #2c2c2c;
}

.post-content p {
  margin: 0 0 1.8em;
}

.post-content blockquote {
  margin: 2em 0;
  padding-left: 1.5em;
  border-left: 4px solid #ccc;
  color: #555;
  font-style: italic;
}

.post-navigation {
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

.post-navigation a {
  color: #5a8ed3;
  text-decoration: none;
}

.post-navigation a:hover {
  text-decoration: underline;
}

/* 手机适配 */
@media (max-width: 768px) {
  .single-post {
    margin: 40px auto 80px;
  }
  
  .post-title {
    font-size: 2rem;
  }
  
  .post-content {
    font-size: 1.1rem;
  }
}
.category-title {
  font-size: 2.2rem;
  text-align: center;
  margin: 80px 0 60px;
  color: #222;
}

.post-list .post-item {
  margin: 40px 0;
  padding-left: 16px;
  border-left: 4px solid #e0e0e0;
}

.post-list .post-item time {
  color: #888;
  font-size: 0.95rem;
}

.post-list .post-item h2 {
  margin: 8px 0 12px;
  font-size: 1.5rem;
}

.post-list .post-item h2 a {
  color: #222;
  text-decoration: none;
}

.post-list .post-item h2 a:hover {
  color: #5a8ed3;
}

.post-list .summary {
  color: #555;
  font-size: 1.05rem;
}

.back-home {
  display: inline-block;
  margin: 40px 0 60px;
  color: #555;
  text-decoration: none;
  font-size: 1.1rem;
}

.back-home:hover {
  color: #5a8ed3;
}