/* 鹿楠笔记 · 时尚大刊暗色版 */
:root {
  --bg: #0e0c0a;
  --bg-soft: #171310;
  --text: #ece5da;
  --text-dim: #a99f92;
  --gold: #c8a45f;
  --gold-soft: rgba(200, 164, 95, 0.35);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --latin: "Cormorant Garamond", Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- 星光层 ---------- */
#starfield {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
main, .page-wrap, .post-wrap, .hero, .site-footer {
  position: relative; z-index: 1;
}

/* ---------- 导航 ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 6vw;
  background: linear-gradient(to bottom, rgba(10,8,6,.75), transparent);
  transition: background .3s;
}
.topnav .brand {
  font-family: var(--latin);
  font-size: 24px; font-weight: 600; letter-spacing: 5px;
  background: linear-gradient(110deg,
    #ece5da 0%, #ece5da 38%,
    #ffffff 48%, #e8d3a4 52%, #c8a45f 56%,
    #ece5da 66%, #ece5da 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 4.5s ease-in-out infinite;
}

.topnav .brand-logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 95, 0.55);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(200, 164, 95, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.topnav .brand:hover .brand-logo {
  transform: translateY(-2px) rotate(-8deg) scale(1.06);
  box-shadow: 0 0 14px rgba(200, 164, 95, 0.35);
}
.topnav .links a {
  margin-left: 34px; font-size: 15px; letter-spacing: 4px;
  color: var(--text-dim); transition: color .25s;
}
.topnav .links a:hover, .topnav .links a.active { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 560px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  opacity: 0;
  animation: heroCycle 21s linear infinite;
  will-change: opacity, transform;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 7s; }
.hero-slide:nth-child(3) { animation-delay: 14s; }
@keyframes heroCycle {
  0%    { opacity: 0; transform: scale(1.07); }
  4%    { opacity: 1; }
  30%   { opacity: 1; transform: scale(1); }
  36%   { opacity: 0; transform: scale(1); }
  100%  { opacity: 0; transform: scale(1); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(14,12,10,.3) 0%,
      rgba(14,12,10,.12) 40%,
      rgba(14,12,10,.9) 100%),
    linear-gradient(100deg, rgba(14,12,10,.5) 0%, transparent 55%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: left;
  width: 100%; padding: 0 8vw 104px;
}
@keyframes titleShimmer {
  0%   { background-position: 180% 0; }
  55%  { background-position: -80% 0; }
  100% { background-position: -80% 0; }
}
.hero-quotes {
  position: relative; margin-top: 0;
  height: 84px; width: min(560px, 84vw);
}
.hero-quote {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 7px;
  font-size: 17px; letter-spacing: 4px; color: var(--text);
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
  opacity: 0;
  animation: quoteCycle 21s linear infinite;
}
.hero-quote:nth-child(1) { animation-delay: 0s; }
.hero-quote:nth-child(2) { animation-delay: 7s; }
.hero-quote:nth-child(3) { animation-delay: 14s; }
.quote-en {
  font-family: var(--latin);
  font-size: 13px; letter-spacing: 1px; font-weight: 400;
  color: var(--text-dim);
  font-style: italic;
}
.quote-from {
  font-size: 13px; letter-spacing: 3px; color: var(--gold);
  font-family: var(--latin);
}
@keyframes quoteCycle {
  0%    { opacity: 0; transform: translateY(10px); }
  5%    { opacity: 1; transform: translateY(0); }
  30%   { opacity: 1; transform: translateY(0); }
  36%   { opacity: 0; transform: translateY(-8px); }
  100%  { opacity: 0; transform: translateY(-8px); }
}
.hero-scroll {
  position: absolute; bottom: 34px; right: 6vw;
  z-index: 2; color: var(--gold); font-size: 22px;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- 区块 ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 72px 6vw 10px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid rgba(200,164,95,.25); padding-bottom: 14px;
  margin-bottom: 36px;
}
.section-head h2 { font-size: 26px; letter-spacing: 8px; font-weight: 600; }
.section-head .more { font-size: 14px; color: var(--gold); letter-spacing: 2px; }
.kicker {
  font-family: var(--latin); font-size: 13px; letter-spacing: 6px;
  color: var(--gold); text-transform: uppercase; margin-bottom: 10px;
}
.issue-no {
  display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: 2px;
  color: var(--gold); margin-right: 14px;
  padding-right: 14px; border-right: 1px solid rgba(200,164,95,.45);
}

/* ---------- 封面卡片（单列列表） ---------- */
.cover-grid {
  display: flex; flex-direction: column; gap: 28px;
}
.cover-card {
  position: relative; display: flex; overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid rgba(200,164,95,.14);
  transition: border-color .4s ease, transform .4s ease;
}
.cover-card:hover {
  border-color: rgba(200,164,95,.45);
  transform: translateY(-3px);
}
.cover-img {
  position: relative;
  width: 300px; height: 190px; flex-shrink: 0;
  background-size: cover; background-position: center 25%;
  transition: filter .5s ease;
  filter: saturate(.92);
}
.cover-no {
  position: absolute; top: 14px; right: 18px; z-index: 2;
  font-family: var(--latin); font-size: 19px; font-weight: 700;
  line-height: 1; letter-spacing: 2px;
  color: var(--gold);
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
  pointer-events: none;
}
.cover-no em {
  font-style: normal; font-weight: 400; font-size: 12px;
  letter-spacing: 2px; margin-right: 4px;
  color: var(--gold-soft);
}
.cover-card:hover .cover-img { filter: saturate(1.05); }
.cover-info {
  position: relative;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 24px 30px; min-width: 0;
}
.cover-date {
  font-family: var(--latin); font-size: 13px; letter-spacing: 3px; color: var(--gold);
}
.cover-info h3 { font-size: 22px; font-weight: 600; margin: 8px 0 6px; letter-spacing: 2px; }
.cover-info p {
  font-size: 14px; color: var(--text-dim); letter-spacing: 1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cover-more {
  margin-top: 12px;
  font-size: 12px; letter-spacing: 3px; color: var(--gold-soft);
  transition: color .3s ease;
}
.cover-card:hover .cover-more { color: var(--gold); }

/* ---------- 分页 ---------- */
.pager {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; margin-top: 44px;
}
.pager-btn {
  font-family: var(--latin);
  font-size: 14px; letter-spacing: 2px;
  padding: 9px 18px;
  border: 1px solid rgba(200,164,95,.3);
  color: var(--text-dim);
  text-decoration: none;
  transition: color .3s ease, border-color .3s ease;
}
.pager-btn:hover { color: var(--gold); border-color: rgba(200,164,95,.7); }
.pager-current {
  color: var(--gold); border-color: var(--gold);
  background: rgba(200,164,95,.08);
}

/* ---------- 内页头部 ---------- */
.page-hero {
  position: relative; height: 46vh; min-height: 340px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center 25%;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,12,10,.3), rgba(14,12,10,.95));
}
.page-hero-content { position: relative; z-index: 2; padding: 0 6vw 40px; }
.page-hero-content h1 { font-size: 42px; letter-spacing: 10px; font-weight: 900; }
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 56px 6vw 40px; }
.page-head { margin-bottom: 40px; }
.page-head h1 { font-size: 38px; letter-spacing: 10px; font-weight: 900; }

/* ---------- 文章页 ---------- */
.post-cover {
  height: 56vh; min-height: 360px;
  background-size: cover; background-position: center 22%;
  position: relative;
}
.post-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg));
}
.post-wrap { max-width: 720px; margin: 0 auto; padding: 48px 6vw 60px; }
.post-title { font-size: 34px; font-weight: 900; letter-spacing: 3px; margin-bottom: 8px; }
.post-author {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 34px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(200,164,95,.15);
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(200,164,95,.5);
}
.author-name { font-size: 15px; letter-spacing: 4px; color: var(--gold); }
.author-sign {
  font-size: 12px; letter-spacing: 2px; color: var(--text-dim);
  margin-left: 14px; padding-left: 14px;
  border-left: 1px solid rgba(200,164,95,.3);
}
.post-body { margin-top: 34px; font-size: 16.5px; }
.post-body p { margin: 1.2em 0; }
.post-body h2 {
  margin: 1.8em 0 .8em; font-size: 22px; letter-spacing: 2px; font-weight: 600;
  border-left: 3px solid var(--gold); padding-left: 14px;
}
.post-body blockquote {
  margin: 1.6em 0; padding: 16px 22px;
  background: var(--bg-soft); border-left: 3px solid var(--gold-soft);
  color: var(--text-dim); font-style: italic;
}
.post-body ul, .post-body ol { padding-left: 1.6em; margin: 1em 0; }
.post-body li { margin: .4em 0; }
.post-body strong { color: var(--gold); font-weight: 600; }
.post-body code {
  background: var(--bg-soft); padding: 2px 8px; border-radius: 4px;
  font-size: 14px; color: var(--gold);
}
.post-body pre {
  background: var(--bg-soft); padding: 18px; border-radius: 8px;
  overflow-x: auto; margin: 1.4em 0;
}
.post-body pre code { background: none; padding: 0; }
.post-body hr { border: none; border-top: 1px solid rgba(200,164,95,.2); margin: 2.2em 0; }
.post-body a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.post-nav { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(200,164,95,.2); }
.post-nav a { color: var(--gold); font-size: 15px; letter-spacing: 2px; }

/* ---------- 说说（时间轴流） ---------- */
.idea-timeline {
  position: relative;
  max-width: 720px; margin: 0 auto;
  padding-left: 34px;
}
.idea-timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 1px; background: linear-gradient(to bottom, rgba(200,164,95,.55), rgba(200,164,95,.1));
}
.idea-card {
  position: relative;
  background: var(--bg-soft);
  padding: 22px 26px 20px;
  border: 1px solid rgba(200,164,95,.14);
  margin-bottom: 26px;
  transition: border-color .3s, transform .3s;
}
.idea-card::before {
  content: ""; position: absolute; left: -31px; top: 30px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(200,164,95,.15);
}
.idea-card:hover { border-color: rgba(200,164,95,.45); transform: translateX(3px); }
.idea-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.idea-head img {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; border: 1px solid rgba(200,164,95,.45);
}
.idea-name { font-size: 14px; letter-spacing: 3px; color: var(--gold); }
.idea-date {
  font-family: var(--latin); font-size: 12px; letter-spacing: 2px;
  color: var(--text-dim); margin-left: auto;
}
.idea-text {
  font-size: 17px; line-height: 1.9; letter-spacing: 1.5px;
  color: var(--text-main, #e8e2d6);
}
.idea-text::before { content: "「 "; color: var(--gold-soft); }
.idea-text::after { content: " 」"; color: var(--gold-soft); }
.page-hero-sub {
  margin-top: 10px; font-size: 13px; letter-spacing: 3px;
  color: rgba(232,226,214,.75);
}
.idea-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.idea-strip-item {
  background: var(--bg-soft); padding: 24px 24px 16px;
  border-left: 2px solid var(--gold-soft);
}
.idea-strip-item p { font-size: 15px; margin-bottom: 10px; }
.idea-strip-item span { font-family: var(--latin); font-size: 12px; color: var(--text-dim); letter-spacing: 2px; }
.empty { color: var(--text-dim); }

/* ---------- 相册夹 ---------- */
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.album-card {
  display: block; background: var(--bg-soft);
  border: 1px solid rgba(200,164,95,.18);
  transition: transform .4s ease, border-color .4s ease;
}
.album-card:hover { transform: translateY(-6px); border-color: rgba(200,164,95,.55); }
.album-cover {
  position: relative; height: 190px;
  background-size: cover; background-position: center 20%;
}
.album-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,8,6,.55), transparent 55%);
}
.album-count {
  position: absolute; right: 12px; bottom: 10px; z-index: 2;
  font-family: var(--latin); font-size: 12px; letter-spacing: 2px;
  color: var(--text); background: rgba(10,8,6,.65);
  padding: 3px 10px; border: 1px solid rgba(200,164,95,.4);
}
.album-info { padding: 14px 16px 16px; }
.album-info h3 { font-size: 17px; letter-spacing: 4px; color: var(--text); margin-bottom: 6px; }
.album-info p { font-size: 12px; color: var(--text-dim); letter-spacing: 1px; line-height: 1.6; }
.album-back { margin-bottom: 26px; }
.album-back a { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.album-hero-desc { margin-top: 14px; font-size: 14px; letter-spacing: 3px; color: var(--text-dim); }

/* ---------- 相册 ---------- */
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.photo-item {
  position: relative; margin: 0; cursor: pointer;
  overflow: hidden; background: var(--bg-soft);
}
.photo-frame {
  height: 300px;
  background-size: cover; background-position: center 20%;
  transition: transform .7s cubic-bezier(.22,.8,.32,1), filter .7s ease;
}
.photo-item:nth-child(3n+1) .photo-frame { height: 340px; }
.photo-item:nth-child(3n+2) .photo-frame { height: 280px; }
.photo-item:hover .photo-frame { transform: scale(1.05); filter: brightness(1.08); }
.photo-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 40px 16px 14px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  background: linear-gradient(to top, rgba(10,8,6,.85), transparent);
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
}
.photo-item:hover figcaption { opacity: 1; transform: translateY(0); }
.photo-title { font-size: 14px; letter-spacing: 3px; color: var(--text); }
.photo-date { font-family: var(--latin); font-size: 12px; letter-spacing: 2px; color: var(--gold); flex-shrink: 0; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: rgba(8,6,4,.94);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 86vw; max-height: 80vh;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox p { font-size: 14px; letter-spacing: 4px; color: var(--gold); }
.lightbox-close {
  position: absolute; top: 26px; right: 36px;
  background: none; border: none; cursor: pointer;
  font-size: 34px; color: var(--text-dim); line-height: 1;
}
.lightbox-close:hover { color: var(--gold); }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 80px; padding: 48px 6vw; text-align: center;
  border-top: 1px solid rgba(200,164,95,.15);
  color: var(--text-dim); font-size: 14px;
}
.foot-brand { font-family: var(--latin); font-size: 20px; letter-spacing: 4px; color: var(--gold); margin-bottom: 8px; }
.site-footer a { color: var(--gold); }
.foot-intro {
  font-size: 15px; letter-spacing: 3px; color: var(--text);
  margin-bottom: 22px;
}
.foot-social { display: flex; justify-content: center; gap: 18px; margin-bottom: 26px; }
.social-link {
  display: inline-block; padding: 7px 22px;
  border: 1px solid var(--gold-soft); border-radius: 999px;
  font-size: 14px; letter-spacing: 4px; text-indent: 4px; color: var(--text-dim);
  transition: color .25s, border-color .25s, transform .25s;
}
.social-link:hover {
  color: var(--gold); border-color: var(--gold); transform: translateY(-2px);
}
.foot-copy { font-size: 13px; color: var(--text-dim); }

/* ---------- 公众号二维码弹层 ---------- */
.qr-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.qr-modal.open { opacity: 1; pointer-events: auto; }
.qr-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 6, 4, .8); backdrop-filter: blur(4px);
}
.qr-panel {
  position: relative; z-index: 2;
  background: var(--bg-soft); border: 1px solid var(--gold-soft);
  border-radius: 14px; padding: 38px 42px 30px;
  text-align: center; max-width: 320px; width: 86vw;
  transform: translateY(14px); transition: transform .25s;
}
.qr-modal.open .qr-panel { transform: translateY(0); }
.qr-close {
  position: absolute; top: 10px; right: 16px;
  background: none; border: none; color: var(--text-dim);
  font-size: 26px; cursor: pointer; line-height: 1;
}
.qr-close:hover { color: var(--gold); }
.qr-title { font-size: 20px; letter-spacing: 6px; font-weight: 600; margin-bottom: 22px; }
.qr-box {
  width: 200px; height: 200px; margin: 0 auto;
  border: 1px dashed var(--gold-soft); border-radius: 10px;
  overflow: hidden; background: #fff; display: flex;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-placeholder {
  width: 100%; flex-direction: column; align-items: center; justify-content: center;
  color: #a99f92; background: var(--bg-soft);
}
.qr-icon { font-size: 44px; color: var(--gold-soft); margin-bottom: 10px; }
.qr-placeholder p { font-size: 15px; letter-spacing: 2px; }
.qr-placeholder small { font-size: 12px; margin-top: 6px; }
.qr-hint { margin-top: 18px; font-size: 13px; color: var(--text-dim); letter-spacing: 3px; }

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .topnav { padding: 14px 5vw; }
  .topnav .links a { margin-left: 18px; font-size: 13px; letter-spacing: 2px; }
  .hero-content h1 { letter-spacing: 8px; text-indent: 8px; }
  .idea-timeline { padding-left: 24px; }
  .idea-card::before { left: -21px; }
  .cover-card { flex-direction: column; }
  .cover-img { width: 100%; height: 210px; }
  .cover-info { padding: 18px 20px 22px; }
  .album-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .photo-frame, .photo-item .photo-frame { height: 220px; }
  .section { padding-top: 52px; }
  .page-hero-content h1, .page-head h1 { font-size: 30px; letter-spacing: 6px; }
  .post-title { font-size: 26px; }
}
