/* ===== 念今朝 / 念昨日 / 念未来 —— 拍立得·手账风 =====
   注意：本文件为整站 index.html 共用，所有选择器已加 .nc- 前缀做命名空间隔离，
   禁止写全局 reset（html/body/*），禁止定义 .btn/.card/.list 等通用类名，
   否则会污染站点其它模块（原主题在 assets/css/styles.css）。
*/

.nc-scope {
  /* 局部 CSS 变量，不污染 :root */
  --nc-bg-paper: #FAF6EE;
  --nc-ink: #2B2B2B;
  --nc-ink-soft: #6B6B6B;
  --nc-ink-faint: #A8A39A;
  --nc-accent: #E88A7A;
  --nc-accent-2: #7AB3E8;
  --nc-accent-3: #F2C66B;
  --nc-line: #EAE4D7;
  --nc-shadow: 0 6px 20px rgba(0,0,0,0.08);
  --nc-shadow-hover: 0 12px 32px rgba(0,0,0,0.14);
  --nc-radius: 16px;

  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--nc-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--nc-bg-paper);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(232,138,122,0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(122,179,232,0.05) 0%, transparent 40%);
  border-radius: var(--nc-radius);
  padding: 4px 0 8px;
  position: relative;
}

.nc-scope *,
.nc-scope *::before,
.nc-scope *::after {
  box-sizing: border-box;
}

.nc-scope .nc-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 18px 56px;
}

/* ===== 头部 ===== */
.nc-scope .nc-head {
  text-align: center;
  padding: 22px 0 12px;
}
.nc-scope .nc-head h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 4px;
  margin: 0;
  display: inline-block;
  position: relative;
  color: var(--nc-ink);
  font-family: inherit;
}
.nc-scope .nc-head h2::before,
.nc-scope .nc-head h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--nc-ink-faint);
}
.nc-scope .nc-head h2::before { right: 100%; margin-right: 14px; }
.nc-scope .nc-head h2::after { left: 100%; margin-left: 14px; }
.nc-scope .nc-head .nc-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--nc-ink-soft);
  letter-spacing: 2px;
}
.nc-scope .nc-head .nc-date {
  margin-top: 6px;
  font-size: 12px;
  color: var(--nc-ink-faint);
  letter-spacing: 1px;
}

/* ===== 拍立得卡片 ===== */
.nc-scope .nc-polaroid {
  background: #fff;
  padding: 26px 26px 62px;
  box-shadow: var(--nc-shadow);
  border-radius: 4px;
  position: relative;
  transform: rotate(-1.2deg);
  transition: transform .35s ease, box-shadow .35s ease;
  margin: 22px auto;
  max-width: 400px;
}
.nc-scope .nc-polaroid:hover {
  transform: rotate(0deg) scale(1.01);
  box-shadow: var(--nc-shadow-hover);
}
.nc-scope .nc-polaroid.nc-right { transform: rotate(1.2deg); }
.nc-scope .nc-polaroid.nc-right:hover { transform: rotate(0deg) scale(1.01); }
.nc-scope .nc-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 76px;
  height: 20px;
  background: rgba(242,198,107,0.55);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.nc-scope .nc-card-date {
  text-align: right;
  font-size: 11px;
  color: var(--nc-ink-faint);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.nc-scope .nc-card-emoji {
  font-size: 68px;
  text-align: center;
  line-height: 1;
  margin: 6px 0 12px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.nc-scope .nc-card-title {
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  color: var(--nc-ink);
  line-height: 1.5;
  margin-bottom: 12px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nc-scope .nc-card-body {
  font-size: 13px;
  color: var(--nc-ink-soft);
  text-align: center;
  max-height: 58px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.6;
  padding: 0 8px;
}
.nc-scope .nc-card-greet {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--nc-ink-faint);
  letter-spacing: 2px;
  font-style: italic;
}

/* ===== 编辑器 ===== */
.nc-scope .nc-editor {
  background: #fff;
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow);
  padding: 26px 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  max-width: 620px;
  margin: 0 auto;
}
.nc-scope .nc-editor .nc-hint {
  font-size: 14px;
  color: var(--nc-ink-faint);
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.nc-scope .nc-editor textarea {
  flex: 1;
  border: 0;
  outline: 0;
  resize: none;
  font-size: 16px;
  line-height: 1.9;
  color: var(--nc-ink);
  font-family: inherit;
  background: transparent;
  min-height: 150px;
  width: 100%;
  padding: 0;
}
.nc-scope .nc-editor textarea::placeholder { color: #C9C2B5; }
.nc-scope .nc-editor .nc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--nc-line);
  font-size: 12px;
  color: var(--nc-ink-faint);
}

/* ===== 情绪戳选择器 ===== */
.nc-scope .nc-emo-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 16px 0 4px;
}
.nc-scope .nc-emo {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #FBF8F1;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}
.nc-scope .nc-emo:hover { background: #fff; transform: scale(1.08); }
.nc-scope .nc-emo.nc-on {
  background: #fff;
  border-color: var(--nc-accent);
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(232,138,122,0.25);
}

/* ===== 按钮（nc- 前缀，不冲突原 .btn） ===== */
.nc-scope .nc-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all .2s ease;
  font-family: inherit;
  display: inline-block;
}
.nc-scope .nc-btn.nc-primary { background: var(--nc-accent); color: #fff; }
.nc-scope .nc-btn.nc-primary:hover { background: #DD7868; }
.nc-scope .nc-btn.nc-ghost {
  background: #fff;
  color: var(--nc-ink);
  border: 1px solid var(--nc-line);
}
.nc-scope .nc-btn.nc-ghost:hover {
  border-color: var(--nc-accent);
  color: var(--nc-accent);
}
.nc-scope .nc-btn.nc-tiny { padding: 7px 16px; font-size: 12px; }
.nc-scope .nc-btn[disabled] { opacity: .4; cursor: not-allowed; }
.nc-scope .nc-btn.nc-seal {
  margin-top: 14px;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  box-shadow: 0 4px 12px rgba(232,138,122,0.35);
}
.nc-scope .nc-btn.nc-seal:hover { transform: translateY(-1px); }
.nc-scope .nc-btn.nc-seal:disabled { background: #ccc; box-shadow: none; }

.nc-scope .nc-act-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

/* ===== 温馨文案 ===== */
.nc-scope .nc-soft-line {
  text-align: center;
  padding: 14px 0 4px;
  font-size: 13px;
  color: var(--nc-ink-soft);
  letter-spacing: 1px;
}
.nc-scope .nc-soft-line .nc-num {
  color: var(--nc-accent);
  font-weight: 700;
}

/* ===== 时间轴 ===== */
.nc-scope .nc-timeline {
  position: relative;
  padding-left: 26px;
  margin-top: 20px;
}
.nc-scope .nc-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--nc-line);
}
.nc-scope .nc-tl-item { position: relative; margin-bottom: 22px; }
.nc-scope .nc-tl-item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nc-accent);
  box-shadow: 0 0 0 4px var(--nc-bg-paper);
}
.nc-scope .nc-tl-date {
  font-size: 12px;
  color: var(--nc-ink-faint);
  margin-bottom: 6px;
  letter-spacing: 1.5px;
}
.nc-scope .nc-tl-card {
  background: #fff;
  padding: 14px 16px;
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all .25s ease;
}
.nc-scope .nc-tl-card:hover {
  transform: translateX(2px);
  box-shadow: var(--nc-shadow-hover);
}
.nc-scope .nc-tl-card .nc-e { font-size: 32px; flex-shrink: 0; }
.nc-scope .nc-tl-card .nc-info { flex: 1; min-width: 0; }
.nc-scope .nc-tl-card .nc-info .nc-t {
  font-size: 14px;
  font-weight: 600;
  color: var(--nc-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nc-scope .nc-tl-card .nc-info .nc-b {
  font-size: 12px;
  color: var(--nc-ink-soft);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 空状态 ===== */
.nc-scope .nc-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--nc-ink-faint);
}
.nc-scope .nc-empty .nc-icon { font-size: 56px; margin-bottom: 12px; opacity: .6; }
.nc-scope .nc-empty .nc-t { font-size: 16px; color: var(--nc-ink-soft); margin-bottom: 6px; }
.nc-scope .nc-empty .nc-s { font-size: 13px; }

/* ===== 明日种子 ===== */
.nc-scope .nc-seed-write {
  background: #fff;
  border-radius: var(--nc-radius);
  padding: 24px 22px;
  box-shadow: var(--nc-shadow);
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.nc-scope .nc-seed-write .nc-label {
  font-size: 14px;
  color: var(--nc-ink-soft);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.nc-scope .nc-seed-write textarea {
  width: 100%;
  min-height: 92px;
  border: 0;
  outline: 0;
  resize: none;
  background: #FBF8F1;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  line-height: 1.8;
  font-family: inherit;
  color: var(--nc-ink);
}
.nc-scope .nc-seed-write textarea::placeholder { color: #C9C2B5; }
.nc-scope .nc-seed-btn {
  margin-top: 14px;
  background: linear-gradient(135deg, var(--nc-accent) 0%, #F2A78F 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(232,138,122,0.3);
}
.nc-scope .nc-seed-list { margin-top: 26px; }
.nc-scope .nc-seed-list h3 {
  font-size: 14px;
  color: var(--nc-ink-soft);
  margin: 0 0 12px;
  letter-spacing: 2px;
  text-align: center;
  font-weight: 600;
}
.nc-scope .nc-seed-card {
  background: #fff;
  border-radius: var(--nc-radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--nc-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.nc-scope .nc-seed-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--nc-accent-3);
}
.nc-scope .nc-seed-card.nc-locked { opacity: .85; }
.nc-scope .nc-seed-emoji { font-size: 30px; flex-shrink: 0; }
.nc-scope .nc-seed-info { flex: 1; min-width: 0; }
.nc-scope .nc-seed-info .nc-msg {
  font-size: 14px;
  color: var(--nc-ink);
  margin-bottom: 3px;
  font-weight: 500;
}
.nc-scope .nc-seed-info .nc-meta {
  font-size: 11px;
  color: var(--nc-ink-faint);
  letter-spacing: 1px;
}
.nc-scope .nc-seed-info .nc-meta .nc-cd { color: var(--nc-accent); font-weight: 600; }
.nc-scope .nc-seed-card.nc-unlocked .nc-msg { color: var(--nc-accent); }

/* ===== 换一换候选 ===== */
.nc-scope .nc-variants {
  background: #fff;
  border-radius: var(--nc-radius);
  padding: 16px 18px;
  margin: 14px auto 0;
  max-width: 620px;
  box-shadow: var(--nc-shadow);
}
.nc-scope .nc-variants .nc-vt-title {
  font-size: 12px;
  color: var(--nc-ink-faint);
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 1px;
}
.nc-scope .nc-variant {
  padding: 10px 14px;
  background: #FBF8F1;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
  border: 1px dashed transparent;
}
.nc-scope .nc-variant:hover {
  background: #fff;
  border-color: var(--nc-accent);
  color: var(--nc-accent);
}

/* ===== 小纸条 ===== */
.nc-scope .nc-notes { margin-top: 18px; }
.nc-scope .nc-note {
  background: #FFFDF5;
  border-left: 3px solid var(--nc-accent-3);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--nc-ink-soft);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ===== 放大查看弹窗 ===== */
.nc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  backdrop-filter: blur(4px);
  padding: 20px;
}
.nc-modal .nc-modal-inner {
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}
.nc-modal .nc-modal-body {
  background: var(--nc-bg-paper, #FAF6EE);
  padding: 24px;
  border-radius: 8px;
}
.nc-modal .nc-modal-body .nc-full-text {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.9;
  color: #2B2B2B;
  white-space: pre-wrap;
  margin-top: 12px;
}
.nc-modal .nc-close {
  display: block;
  margin: 16px auto 0;
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 30px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

/* ===== 照片整理 · 相册 =====
   #photoGrid 原站点自带 .cards（grid 2列），这里改为 block 由内部网格接管。
   内容由 nc-fix.js 渲染，外层套 .nc-scope.nc-plain 以便复用 --nc-* 变量且不吃背景。 */

#photoGrid { display: block !important; }

.nc-scope.nc-plain {
  background: transparent;
  background-image: none;
  padding: 0;
  border-radius: 0;
}

.nc-scope .nc-ph-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--nc-ink-faint);
  font-size: 14px;
  line-height: 2;
}
.nc-scope .nc-ph-empty span { font-size: 12px; }

.nc-scope .nc-ph-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.nc-scope .nc-ph-tag {
  border: 1px solid var(--nc-line);
  background: #fff;
  color: var(--nc-ink-soft);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s ease;
}
.nc-scope .nc-ph-tag:hover { border-color: var(--nc-accent); color: var(--nc-accent); }
.nc-scope .nc-ph-tag.nc-on {
  background: var(--nc-accent);
  border-color: var(--nc-accent);
  color: #fff;
  font-weight: 600;
}

.nc-scope .nc-ph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.nc-scope .nc-ph-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--nc-line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nc-scope .nc-ph-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--nc-shadow-hover);
}
.nc-scope .nc-ph-item img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #F2EEE5;
}
.nc-scope .nc-ph-meta { padding: 8px 10px 10px; }
.nc-scope .nc-ph-taglabel {
  display: inline-block;
  background: #FBF3EC;
  color: var(--nc-accent);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}
.nc-scope .nc-ph-note {
  font-size: 12px;
  color: var(--nc-ink-soft);
  line-height: 1.5;
  max-height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.nc-scope .nc-ph-time {
  font-size: 10px;
  color: var(--nc-ink-faint);
  margin-top: 4px;
}
.nc-scope .nc-ph-del {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 24px;
  height: 24px;
  line-height: 20px;
  text-align: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s ease;
  padding: 0;
}
.nc-scope .nc-ph-item:hover .nc-ph-del { opacity: 1; }
.nc-scope .nc-ph-del:hover { background: #E14B4B; }

.nc-modal .nc-ph-modal {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  padding: 0 0 18px;
}
.nc-modal .nc-ph-modal img {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: #1a1a1a;
}
.nc-modal .nc-ph-modal-info { padding: 14px 18px 0; text-align: center; }
.nc-modal .nc-ph-modal-tag {
  display: inline-block;
  background: #FBF3EC;
  color: #E88A7A;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}
.nc-modal .nc-ph-modal-note {
  font-size: 14px;
  color: #2B2B2B;
  margin-top: 8px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.nc-modal .nc-ph-modal-time {
  font-size: 11px;
  color: #A8A39A;
  margin-top: 6px;
}

@media (max-width: 640px) {
  .nc-scope .nc-ph-grid { grid-template-columns: repeat(2, 1fr); }
  .nc-scope .nc-ph-item img { height: 90px; }
  .nc-scope .nc-ph-del { opacity: 1; }
}

/* ===== Toast（全局，用独特类名避免冲突） ===== */
.nc-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.86);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 9999;
  animation: ncToastIn .3s ease;
}
@keyframes ncToastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== 移动端 ===== */
@media (max-width: 640px) {
  .nc-scope .nc-wrap { padding: 14px 10px 44px; }
  .nc-scope .nc-head h2 { font-size: 22px; letter-spacing: 3px; }
  .nc-scope .nc-head h2::before,
  .nc-scope .nc-head h2::after { width: 18px; }
  .nc-scope .nc-polaroid { padding: 20px 20px 54px; }
  .nc-scope .nc-card-emoji { font-size: 56px; }
  .nc-scope .nc-card-title { font-size: 18px; }
  .nc-scope .nc-emo-picker { grid-template-columns: repeat(4, 1fr); }
}
