/* 羞羞漫画 - 温暖暗色阅读风：侧边导航+琥珀强调+瀑布流 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #141210;
  --surface: #1c1917;
  --surface-hover: #252220;
  --text: #faf5f0;
  --text-muted: #a39e98;
  --accent: #eab308;
  --accent-dim: rgba(234, 179, 8, 0.15);
}

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

body {
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
}

/* 整体布局：侧边+主区 */
.wrap {
  display: flex;
  min-height: 100vh;
}

/* 侧边导航 - 固定左侧 */
.aside {
  width: 200px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.aside .logo {
  padding: 0 1.25rem 1.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.aside .logo a {
  color: var(--text);
  text-decoration: none;
}

.aside .logo a:hover {
  color: var(--accent);
}

.aside-nav {
  list-style: none;
}

.aside-nav a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}

.aside-nav a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

/* 主内容区 */
.main {
  flex: 1;
  padding: 2rem 2rem 3rem;
  max-width: 900px;
}

/* 首页首屏 */
.hero {
  margin-bottom: 2rem;
}

.hero-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hero .lead {
  font-size: 1rem;
  color: var(--text-muted);
}

/* 文案块 - 柔和分隔 */
.story {
  margin-bottom: 2rem;
}

.story h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.story p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.story p:last-child {
  margin-bottom: 0;
}

/* 瀑布流卡片 */
.stream-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.tile {
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  transition: background 0.2s, transform 0.2s;
}

.tile:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.tile img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.tile .info {
  padding: 1rem;
}

.tile .info h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.tile .info h3 a {
  color: var(--text);
  text-decoration: none;
}

.tile .info h3 a:hover {
  color: var(--accent);
}

.tile .info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* 列表页 */
.page-hero {
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 0.4rem;
}

.page-hero p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* 列表项 */
.flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flow-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 10px;
  transition: background 0.2s;
}

.flow-item:hover {
  background: var(--surface-hover);
}

.flow-item img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.flow-item .txt {
  flex: 1;
  min-width: 0;
}

.flow-item .txt h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.flow-item .txt h3 a {
  color: var(--text);
  text-decoration: none;
}

.flow-item .txt h3 a:hover {
  color: var(--accent);
}

.flow-item .txt p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

/* 内容页 */
.post {
  max-width: 640px;
}

.post .header {
  margin-bottom: 1.5rem;
}

.post .header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  margin-bottom: 0.4rem;
}

.post .header .meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.post .body {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: 10px;
}

.post .body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.25rem 0;
  border: 1px solid rgba(255,255,255,0.06);
}

.post .body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin: 1.5rem 0 0.6rem;
  color: var(--accent);
}

.post .body h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.post .body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.post .body ul, .post .body ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 链接 */
.btns {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btns a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.btns a:hover {
  background: var(--accent);
  color: var(--bg);
}

/* 页脚 */
.footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

/* 移动端：侧边收起来 */
@media (max-width: 768px) {
  .wrap {
    flex-direction: column;
  }

  .aside {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .aside .logo {
    padding: 0;
  }

  .aside-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .aside-nav a {
    padding: 0.4rem 0.75rem;
  }

  .main {
    padding: 1.5rem 1.25rem 2rem;
  }

  .flow-item {
    flex-direction: column;
  }

  .flow-item img {
    width: 100%;
    height: 160px;
  }

  .masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .masonry {
    grid-template-columns: 1fr;
  }

  .post .body {
    padding: 1.25rem;
  }
}
