/* 伊儿 v3 · 深夜画廊风（参考 refero「Origin Financial · midnight gallery」：配色、字重、圆角、版式） */
:root {
  --obsidian: #0f1011;
  --abyss: #090a0b;
  --graphite: #2e2e2e;
  --steel: #3f4041;
  --fog: #6a6b6b;
  --ash: #9f9fa0;
  --read: #d4d4d6;
  --silver: #cacaca;
  --cloud: #f5f5f7;
  --pure: #ffffff;
  --iris: #847dff;
  --pale-iris: #d1c9ff;
  --deep-iris: #4b49aa;
  --orchid: #dd90d8;
  --peri: #90b8f0;
  --cyan: #00b3dd;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "Roboto Mono", "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--obsidian); color: var(--ash);
  font-family: var(--sans); font-weight: 400; line-height: 1.6;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--fog);
}
.serif { font-family: var(--serif); font-weight: 300; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 8px;
  background: var(--pure); color: #000;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--cloud); border: 1px solid var(--steel); }

/* 顶部 */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(15, 16, 17, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #1d1e1f; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; color: var(--cloud); letter-spacing: .08em; }
.logo i { width: 10px; height: 10px; border-radius: 50%; background: var(--iris); box-shadow: 0 0 18px var(--iris); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--ash); }
.nav-links a:hover, .nav-links a.on { background: var(--graphite); color: var(--pure); }

/* 首页大字 */
.hero { padding: 120px 0 96px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: 40px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 125, 255, .28), rgba(132, 125, 255, 0) 65%);
  pointer-events: none;
}
.hero h1 {
  position: relative; z-index: 1;
  font-family: var(--serif); font-weight: 300; color: var(--cloud);
  font-size: clamp(48px, 9vw, 112px); line-height: 1.02; letter-spacing: -.01em;
  margin: 24px 0 36px;
}
.hero h1 em { font-style: normal; color: var(--pale-iris); }
.hero p { position: relative; z-index: 1; font-size: 18px; font-weight: 300; color: var(--ash); max-width: 540px; margin: 0 0 40px; line-height: 1.8; }
.hero .acts { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }

/* 话题色块 */
.tiles { padding: 0 0 96px; }
.tiles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  border-radius: 30px; padding: 28px; min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #0f1011;
}
.tile .label { color: rgba(15, 16, 17, .6); }
.tile b { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1.1; }
.tile span.d { font-size: 14px; line-height: 1.6; color: rgba(15, 16, 17, .72); }
.c0 { background: var(--iris); }
.c1 { background: var(--orchid); }
.c2 { background: var(--peri); }
.c3 { background: var(--pale-iris); }

/* 文章 */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 16px; }
.sec-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.5vw, 52px); line-height: 1; color: var(--cloud); margin: 12px 0 0; }
.posts { padding: 0 0 120px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.post {
  display: flex; flex-direction: column; gap: 18px; min-height: 340px;
  padding: 32px; border-radius: 30px; color: #0f1011;
  transition: transform .25s;
}
.post:hover { transform: translateY(-4px); }
.post .label { color: rgba(15, 16, 17, .62); }
.post h3 { font-family: var(--serif); font-weight: 300; font-size: 32px; line-height: 1.2; margin: 0; }
.post p { margin: 0; font-size: 15px; line-height: 1.75; color: rgba(15, 16, 17, .75); }
.post .go { margin-top: auto; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; }
.post.dark { background: var(--graphite); color: var(--cloud); }
.post.dark .label, .post.dark p { color: var(--ash); }
.empty { color: var(--fog); }

/* 文章页 */
.post-head { padding: 96px 0 56px; }
.post-head h1 { font-family: var(--serif); font-weight: 300; color: var(--cloud); font-size: clamp(36px, 6vw, 64px); line-height: 1.15; margin: 20px 0 24px; }
.body p { font-family: var(--serif); font-size: 19px; line-height: 2.05; color: var(--read); margin: 0 0 1.5em; text-align: justify; }
.quote {
  margin: 64px 0 0; padding: 44px 40px; border-radius: 30px;
  background: var(--pale-iris); color: #0f1011;
  font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.6;
}
.quote .label { display: block; margin-bottom: 16px; color: rgba(15, 16, 17, .55); }
.source { margin-top: 24px; padding: 20px 24px; border-radius: 16px; background: var(--graphite); font-size: 13px; color: var(--ash); word-break: break-all; }
.source a { color: var(--cyan); }
.next { margin: 64px 0 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.next a { padding: 24px; border-radius: 16px; background: var(--abyss); border: 1px solid #1d1e1f; transition: background .15s; }
.next a:hover { background: var(--graphite); }
.next b { display: block; margin-top: 8px; font-family: var(--serif); font-weight: 300; font-size: 19px; color: var(--cloud); }
.next .r { text-align: right; }

/* 关于 */
.about .body p { font-size: 20px; }

/* 底部 */
.foot { background: var(--abyss); border-top: 1px solid #1d1e1f; }
.foot .wrap { padding-top: 72px; padding-bottom: 40px; }
.foot .big { font-family: var(--serif); font-weight: 300; color: var(--cloud); font-size: clamp(30px, 5vw, 56px); line-height: 1.1; margin: 0 0 48px; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; color: var(--fog); border-top: 1px solid #1d1e1f; padding-top: 24px; }
.foot a:hover { color: var(--pure); }

@media (max-width: 900px) {
  .tiles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .narrow { padding: 0 16px; }
  .hero { padding: 72px 0 64px; }
  .hero::after { width: 360px; height: 360px; right: -160px; }
  .tiles-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { border-radius: 22px; padding: 20px; min-height: 170px; }
  .tile b { font-size: 26px; }
  .post-grid { grid-template-columns: 1fr; }
  .post { border-radius: 22px; padding: 26px; min-height: 0; }
  .post h3 { font-size: 26px; }
  .body p { font-size: 17px; }
  .quote { padding: 30px 24px; font-size: 21px; border-radius: 22px; }
  .next { grid-template-columns: 1fr; }
  .next .r { text-align: left; }
}

/* 「内容」栏目：带 3:4 配图的卡片和文章封面 */
.post-head .lead { font-size: 18px; font-weight: 300; color: var(--ash); max-width: 560px; margin: 0; line-height: 1.8; }
.post-grid.shots { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post.shot { padding: 0; overflow: hidden; background: var(--graphite); color: var(--cloud); gap: 0; min-height: 0; }
.post.shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--steel); }
.post.shot .in { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.post.shot .label, .post.shot p { color: var(--ash); }
.post.shot h3 { font-size: 26px; }
.cover { margin: 0 0 56px; }
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 30px; background: var(--graphite); }
@media (max-width: 600px) { .cover img { border-radius: 22px; } .post.shot h3 { font-size: 22px; } }
