/* ===========================================================
   栖光集 · Lumen — Design System
   现代杂志风 / 别墅级生活美学
   =========================================================== */

:root {
  --bg:           #F8F5F0;
  --bg-elev:     #FFFFFF;
  --ink:          #1C1C1C;
  --ink-soft:     #3D3D3D;
  --muted:        #6B6B6B;
  --line:         #E5DED3;
  --line-strong:  #D4CCBE;
  --brass:        #B08A4F;
  --brass-deep:   #8A6A38;
  --ink-blue:     #2A3A4A;
  --quote-bg:     #F1ECE3;

  --serif:  "Fraunces", "Playfair Display", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --sans:   "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, system-ui, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1240px;
  --read: 720px;
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --shadow-sm: 0 2px 6px rgba(28,28,28,.04);
  --shadow-md: 0 8px 28px rgba(28,28,28,.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--brass); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1.1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 240, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -.01em; }
.brand-sub { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: .92rem; color: var(--ink-soft); position: relative; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1px; background: var(--brass);
}
.lang-switch {
  font-size: .78rem; letter-spacing: .12em;
  border: 1px solid var(--line-strong);
  padding: 5px 11px; border-radius: 999px;
  color: var(--muted);
}
.lang-switch:hover { color: var(--brass); border-color: var(--brass); }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 24px; gap: 18px;
  }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
  }
}

.hero { padding: 120px 0 80px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.1; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--brass); font-weight: 300; }
.hero p.lead { font-size: 1.08rem; color: var(--muted); max-width: 460px; line-height: 1.85; }
.hero-meta { margin-top: 36px; display: flex; gap: 28px; font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
.hero-meta strong { color: var(--ink); display: block; font-size: 1.4rem; font-family: var(--serif); }
.hero-art {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #d9cdb8 0%, #b29a7d 60%, #6c5b46 100%);
  border-radius: var(--r-lg);
  position: relative;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-art::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(28,28,28,.35), transparent 50%);
}
.hero-art::after {
  content: ""; position: absolute;
  left: 12%; top: 18%; right: 12%; bottom: 18%;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.15) 0 1px, transparent 1px 80px);
}
@media (max-width: 880px) {
  .hero { padding: 80px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { aspect-ratio: 16/11; }
}

.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin: 80px 0 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.section-head h2 { margin: 0; }
.section-head .more { font-size: .9rem; color: var(--muted); }
.section-head .more:hover { color: var(--brass); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; cursor: pointer; transition: transform .35s ease; }
.card:hover { transform: translateY(-2px); }
.card-cover {
  aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden;
  position: relative; margin-bottom: 18px; background: #ddd2bd;
}
.card-cover .grad { position: absolute; inset: 0; transition: transform .8s ease, filter .8s ease; }
.card:hover .grad { transform: scale(1.04); filter: brightness(1.05); }
.card-tag { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.card h3 { font-size: 1.25rem; line-height: 1.35; margin-bottom: 10px; }
.card-excerpt {
  color: var(--muted); font-size: .94rem; line-height: 1.7; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { font-size: .78rem; color: var(--muted); letter-spacing: .04em; display: flex; gap: 12px; align-items: center; margin-top: auto; }
.card-meta::before { content: ""; width: 24px; height: 1px; background: var(--line-strong); }

.cover-1 .grad { background: linear-gradient(135deg,#cdd9d7 0%,#7a9a98 60%,#3a4f5a 100%); }
.cover-2 .grad { background: linear-gradient(135deg,#e8d8c0 0%,#b89770 55%,#6b4e2f 100%); }
.cover-3 .grad { background: linear-gradient(135deg,#dfe4d8 0%,#8aa17a 55%,#3f5239 100%); }
.cover-4 .grad { background: linear-gradient(135deg,#d4d8df 0%,#7d8aa0 55%,#3a4258 100%); }
.cover-5 .grad { background: linear-gradient(135deg,#efe3d6 0%,#c8a98a 55%,#7d553a 100%); }
.cover-6 .grad { background: linear-gradient(135deg,#e2d4c2 0%,#b6a18a 55%,#5a4838 100%); }
.cover-7 .grad { background: linear-gradient(135deg,#d8e0e6 0%,#90a8b8 55%,#3e505e 100%); }

.post-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }
.post-hero .eyebrow { margin-bottom: 16px; display: inline-block; }
.post-hero h1 { max-width: 880px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.18; }
.post-meta { margin-top: 24px; display: flex; gap: 18px; font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
.post-meta span + span::before { content: "·"; margin-right: 14px; margin-left: 2px; color: var(--line-strong); }
.post-cover { aspect-ratio: 21/9; border-radius: var(--r-md); margin: 56px 0 40px; overflow: hidden; position: relative; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; margin: 56px 0 120px; }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; } .post-toc { display: none; } }

.post-body { max-width: var(--read); font-size: 1.05rem; line-height: 1.85; color: var(--ink-soft); }
.post-body h2 { margin: 2.4em 0 .6em; font-size: 1.7rem; }
.post-body h3 { margin: 2em 0 .5em; font-size: 1.25rem; color: var(--ink); }
.post-body p { margin: 0 0 1.25em; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.post-body li { margin-bottom: .4em; }
.post-body a { color: var(--ink-blue); border-bottom: 1px solid var(--line-strong); }
.post-body a:hover { color: var(--brass); border-color: var(--brass); }
.post-body blockquote {
  margin: 2em 0; padding: 22px 28px; background: var(--quote-bg);
  border-left: 3px solid var(--brass);
  font-family: var(--serif); font-style: italic; color: var(--ink); border-radius: 2px;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body img { border-radius: var(--r-md); margin: 2em 0; box-shadow: var(--shadow-sm); }
.post-body code { font-family: var(--mono); font-size: .88em; background: #efe9de; padding: 2px 6px; border-radius: 3px; color: var(--brass-deep); }
.post-body pre { background: #1c1c1c; color: #e8e0d0; border-radius: var(--r-md); padding: 22px 24px; overflow-x: auto; font-size: .88rem; line-height: 1.7; margin: 1.6em 0; }
.post-body pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .94rem; }
.post-body th, .post-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.post-body th { font-family: var(--serif); font-weight: 500; color: var(--ink); }

.post-toc { position: sticky; top: 100px; align-self: start; font-size: .86rem; }
.post-toc-title { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
.post-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.post-toc li { margin: 0; }
.post-toc a { display: block; padding: 6px 14px; color: var(--muted); border-left: 1px solid transparent; margin-left: -1px; line-height: 1.5; transition: all .2s; }
.post-toc a.active, .post-toc a:hover { color: var(--ink); border-left-color: var(--brass); }
.post-toc li.lvl-3 a { padding-left: 28px; font-size: .82rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 60px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .86rem; color: var(--ink-soft); background: var(--bg-elev); transition: all .2s;
}
.tag-chip:hover, .tag-chip.active { border-color: var(--brass); color: var(--brass); background: #fff; }
.tag-chip .count { font-size: .72rem; color: var(--muted); background: var(--line); padding: 0 7px; border-radius: 999px; }
.tag-chip:hover .count, .tag-chip.active .count { background: rgba(176,138,79,.15); color: var(--brass); }

.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 100px 0 80px; }
.about-hero .portrait {
  aspect-ratio: 4/5; border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(28,28,28,.1), rgba(28,28,28,.4)),
    linear-gradient(135deg, #c9b69a 0%, #8c7456 100%);
  position: relative; box-shadow: var(--shadow-md);
}
.about-hero .portrait::after { content: "L"; position: absolute; right: 24px; bottom: 18px; font-family: var(--serif); font-size: 4rem; color: rgba(255,255,255,.55); font-style: italic; }
.about-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.1; }
.about-hero .lead { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--brass); margin-bottom: 24px; font-weight: 300; }
@media (max-width: 880px) { .about-hero { grid-template-columns: 1fr; padding: 60px 0; } }

.about-section { padding: 60px 0; border-top: 1px solid var(--line); }
.about-section h2 { margin-bottom: 24px; }
.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 24px 0; }
.about-grid + .about-grid { border-top: 1px dashed var(--line); }
.about-grid .label { font-family: var(--serif); font-size: 1.15rem; color: var(--brass); }
.about-grid .body p { margin: 0 0 .8em; }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; gap: 12px; } }

.site-footer { margin-top: 120px; border-top: 1px solid var(--line); background: #efeae2; color: var(--muted); font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding: 60px 0 40px; }
.footer-grid h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--line-strong); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; letter-spacing: .04em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.fade-in { animation: fadeIn .8s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.empty { text-align: center; padding: 80px 0; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; }
