/* ============================================================
   海河照相馆 — 番外博客样式表
   极简个人博客风格，与主站视觉区分
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Serif SC', 'SimSun', 'STSong', serif;
  background: #fafaf8;
  color: #3a3a3a;
  line-height: 1.9;
  font-size: 15px;
}

a { color: #5a5a5a; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #8a7a6a; }

/* 顶部 */
.blog-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e5;
  padding: 40px 24px 32px;
  text-align: center;
}

.blog-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3a3a3a;
  letter-spacing: 0.2em;
}

.blog-header .sub {
  font-size: 0.75rem;
  color: #9a9a9a;
  margin-top: 6px;
  letter-spacing: 0.15em;
}

/* 导航 */
.blog-nav {
  background: #fff;
  border-bottom: 1px solid #e8e8e5;
  padding: 0 24px;
}

.blog-nav-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.blog-nav-inner a {
  display: block;
  padding: 12px 18px;
  font-size: 0.75rem;
  color: #8a8a8a;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.blog-nav-inner a:hover,
.blog-nav-inner a.active {
  color: #3a3a3a;
  border-bottom-color: #3a3a3a;
}

/* 内容区 */
.blog-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  min-height: 60vh;
}

/* 文章列表 */
.post-list { list-style: none; }

.post-item {
  padding: 28px 0;
  border-bottom: 1px solid #eee;
}

.post-item:first-child { padding-top: 0; }

.post-item .post-date {
  font-size: 0.7rem;
  color: #b0b0b0;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.post-item .post-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3a3a3a;
  text-decoration: none;
  display: block;
  line-height: 1.5;
}

.post-item .post-title:hover { color: #8a7a6a; }

.post-item .post-excerpt {
  font-size: 0.85rem;
  color: #7a7a7a;
  margin-top: 8px;
  line-height: 1.8;
}

/* 文章正文 */
.article { }
.article .article-date {
  font-size: 0.7rem;
  color: #b0b0b0;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.article h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3a3a3a;
  line-height: 1.5;
  margin-bottom: 24px;
}

.article p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 2;
  color: #4a4a4a;
}

.article p em {
  color: #8a7a6a;
  font-style: italic;
}

.article p strong {
  font-weight: 700;
  color: #3a3a3a;
}

.article .photo-placeholder {
  margin: 24px 0;
  padding: 40px 20px;
  background: #f0f0ee;
  border: 1px solid #e0e0dd;
  border-radius: 2px;
  text-align: center;
  color: #b0b0b0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.article .photo-caption {
  font-size: 0.7rem;
  color: #b0b0b0;
  margin-top: -16px;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 0.05em;
}

.article .footnote {
  font-size: 0.65rem;
  color: #c0c0c0;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  text-align: right;
  line-height: 1.6;
}

/* 归档页面 */
.archive-list { }
.archive-list .archive-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: #3a3a3a;
  margin: 24px 0 12px;
  letter-spacing: 0.1em;
}

.archive-list .archive-item {
  padding: 8px 0 8px 16px;
  border-left: 2px solid #eee;
  margin-bottom: 4px;
}

.archive-list .archive-item a {
  font-size: 0.85rem;
  color: #5a5a5a;
  text-decoration: none;
}

.archive-list .archive-item a:hover { color: #8a7a6a; }

.archive-list .archive-item .ar-date {
  font-size: 0.65rem;
  color: #c0c0c0;
  margin-left: 8px;
}

/* 隐藏密码输入 */
.password-area {
  margin-top: 60px;
  padding: 24px;
  border: 1px solid #eee;
  border-radius: 2px;
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.password-area:hover { opacity: 0.8; }

.password-area .pa-label {
  font-size: 0.7rem;
  color: #c0c0c0;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.password-area .pa-input-wrap {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}

.password-area .pa-input-wrap input {
  width: 36px;
  height: 40px;
  text-align: center;
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  border: 1px solid #ddd;
  border-radius: 2px;
  outline: none;
  color: #3a3a3a;
  background: #fff;
}

.password-area .pa-input-wrap input:focus {
  border-color: #b0b0b0;
}

.password-area .pa-input-wrap input.filled {
  border-color: #b0b0b0;
  background: #f8f8f6;
}

.password-area .pa-btn {
  padding: 8px 28px;
  font-size: 0.75rem;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #fff;
  color: #5a5a5a;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.password-area .pa-btn:hover { border-color: #b0b0b0; background: #f8f8f6; }
.password-area .pa-btn:disabled { opacity: 0.4; cursor: default; }

.password-area .pa-feedback {
  font-size: 0.7rem;
  color: #c0c0c0;
  margin-top: 8px;
  min-height: 20px;
}

.password-area .pa-feedback.error { color: #b0594a; }
.password-area .pa-feedback.success { color: #5a8a6a; }

/* 拼图页 */
.puzzle-page { text-align: center; }

.puzzle-page .pp-header {
  margin-bottom: 28px;
}

.puzzle-page .pp-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3a3a3a;
  letter-spacing: 0.1em;
}

.puzzle-page .pp-header .pp-sub {
  font-size: 0.75rem;
  color: #9a9a9a;
  margin-top: 6px;
}

.puzzle-page .pp-board {
  display: grid;
  gap: 2px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #e8e8e5;
  padding: 2px;
  border-radius: 2px;
}

.puzzle-page .pp-board.grid-4 { grid-template-columns: repeat(4, 1fr); }
.puzzle-page .pp-board.grid-6 { grid-template-columns: repeat(6, 1fr); }

.puzzle-page .pp-piece {
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background-size: 400% 400%;
}

.puzzle-page .pp-piece.grid-4-bg { background-size: 400% 400%; }
.puzzle-page .pp-piece.grid-6-bg { background-size: 600% 600%; }

.puzzle-page .pp-piece:hover {
  border-color: #b0b0b0;
  z-index: 2;
}

.puzzle-page .pp-piece.correct {
  border-color: #b0b0b0;
  cursor: default;
}

.puzzle-page .pp-piece .pp-num {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(58,58,58,0.6);
  color: #f0f0ee;
  font-size: 0.5rem;
  padding: 1px 4px;
  border-radius: 1px;
  pointer-events: none;
}

.puzzle-page .pp-progress {
  font-size: 0.75rem;
  color: #9a9a9a;
  margin: 16px 0;
}

.puzzle-page .pp-bar {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  margin: 8px auto;
  overflow: hidden;
}

.puzzle-page .pp-bar-fill {
  height: 100%;
  background: #b0b0b0;
  border-radius: 2px;
  transition: width 0.4s;
  width: 0%;
}

.puzzle-page .pp-btn {
  padding: 8px 24px;
  font-size: 0.75rem;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #fff;
  color: #5a5a5a;
  cursor: pointer;
  letter-spacing: 0.1em;
  margin-top: 12px;
  transition: all 0.2s;
}

.puzzle-page .pp-btn:hover { border-color: #b0b0b0; background: #f8f8f6; }

.puzzle-page .pp-success {
  display: none;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #f8f8f6;
}

.puzzle-page .pp-success.show { display: block; }

.puzzle-page .pp-success .pp-hint {
  font-size: 0.85rem;
  color: #5a5a5a;
  line-height: 1.8;
  margin-bottom: 8px;
}

.puzzle-page .pp-success .pp-reveal {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3a3a3a;
  letter-spacing: 0.2em;
  font-family: 'Courier New', monospace;
}

/* 拼图导航点 */
.pp-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.pp-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border: 1px solid #ddd;
  background: #fff;
  color: #b0b0b0;
  cursor: pointer;
  transition: all 0.2s;
}

.pp-dot.active {
  border-color: #8a8a8a;
  background: #f0f0ee;
  color: #3a3a3a;
}

.pp-dot.done {
  border-color: #8a8a8a;
  color: #8a8a8a;
}

/* 最终提示 */
.final-hint {
  display: none;
  margin-top: 40px;
  padding: 32px 24px;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #f8f8f6;
  text-align: center;
}

.final-hint.show { display: block; }

.final-hint .fh-label {
  font-size: 0.7rem;
  color: #b0b0b0;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.final-hint .fh-text {
  font-size: 0.9rem;
  color: #5a5a5a;
  line-height: 1.8;
}

.final-hint .fh-code {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: #3a3a3a;
  letter-spacing: 0.3em;
  margin: 12px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 2px;
  display: inline-block;
}

/* 底部 */
.blog-footer {
  border-top: 1px solid #e8e8e5;
  padding: 24px;
  text-align: center;
  font-size: 0.65rem;
  color: #c0c0c0;
  letter-spacing: 0.1em;
  background: #fff;
}

/* 响应式 */
@media (max-width: 640px) {
  .blog-header { padding: 28px 16px 24px; }
  .blog-header h1 { font-size: 1.2rem; }
  .blog-container { padding: 28px 16px 60px; }
  .article p { font-size: 0.9rem; }
  .password-area .pa-input-wrap input { width: 30px; height: 36px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .blog-nav-inner a { padding: 10px 12px; font-size: 0.7rem; }
}