/* ===== 尘埃在皮塔 · 站点样式 ===== */
:root {
  --paper: #faf7f2;
  --paper-deep: #f3ede4;
  --ink: #2b2622;
  --ink-soft: #6f665c;
  --ink-faint: #a3988a;
  --accent: #c1602f;
  --accent-soft: #e8b48f;
  --line: #e5ddd2;
  --card: #fffdfb;
  --shadow: 0 2px 16px rgba(90, 70, 50, 0.08);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- 导航 ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-soft); }
.nav-links a { padding: 4px 2px; border-bottom: 2px solid transparent; transition: all .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom-color: var(--accent); }
.lang-switch { font-size: 13px; color: var(--ink-faint) !important; border-bottom: none !important; padding: 4px 0; margin-left: 8px; }
.lang-switch:hover { color: var(--accent) !important; }

/* ---- Hero ---- */
.hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(193, 96, 47, 0.07), transparent 70%),
    radial-gradient(500px 260px at 85% 75%, rgba(193, 96, 47, 0.05), transparent 70%);
}
.hero-kicker { font-size: 14px; letter-spacing: 6px; color: var(--ink-faint); margin-bottom: 18px; }
.hero h1 { font-size: 52px; letter-spacing: 6px; font-weight: 700; position: relative; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 20px; font-size: 17px; color: var(--ink-soft); letter-spacing: 1px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; }
.btn {
  display: inline-block; padding: 12px 32px; border-radius: 999px;
  font-size: 15px; letter-spacing: 2px; transition: all .25s; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1px solid var(--ink-faint); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- 分区标题 ---- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.section-title { font-size: 28px; letter-spacing: 3px; }
.section-title::after {
  content: ""; display: block; width: 42px; height: 3px;
  background: var(--accent); margin-top: 10px; border-radius: 2px;
}
.section-more { font-size: 14px; color: var(--ink-faint); }
.section-more:hover { color: var(--accent); }

/* ---- 文章卡片 ---- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(90, 70, 50, 0.14); }
.article-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--paper-deep); display: block; }
.article-cover-placeholder {
  width: 100%; aspect-ratio: 16/9; background: var(--paper-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 30px; letter-spacing: 4px;
}
.article-body { padding: 20px 20px 18px; flex: 1; display: flex; flex-direction: column; }
.article-title { font-size: 17px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-digest { margin-top: 10px; font-size: 14px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.article-meta { margin-top: 14px; font-size: 13px; color: var(--ink-faint); letter-spacing: 1px; }

/* ---- 文章列表页 ---- */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-row {
  display: flex; gap: 24px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s;
}
.article-row:hover { transform: translateY(-3px); }
.article-row .article-cover, .article-row .article-cover-placeholder { width: 260px; aspect-ratio: 16/10; flex-shrink: 0; }
.article-row .article-body { padding: 24px 24px 20px 0; }

/* ---- 文章详情 ---- */
.post { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.post-title { font-size: 34px; letter-spacing: 2px; line-height: 1.5; }
.post-meta { margin: 20px 0 40px; color: var(--ink-faint); font-size: 14px; letter-spacing: 1px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.post-content { font-size: 17px; line-height: 2; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 16px auto; }
.post-content p { margin: 1em 0; }
.post-content section { margin: 0; }
.post-back { display: inline-block; margin-bottom: 32px; font-size: 14px; color: var(--ink-faint); }
.post-back:hover { color: var(--accent); }

/* ---- 视频墙 ---- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .3s; position: relative;
}
.video-card:hover { transform: translateY(-4px); }
.video-cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--paper-deep); display: block; }
.video-cover-placeholder {
  width: 100%; aspect-ratio: 3/4; background: var(--paper-deep);
  display: flex; align-items: center; justify-content: center; color: var(--ink-faint); font-size: 26px;
}
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -70%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(43, 38, 34, 0.55); display: flex; align-items: center; justify-content: center;
}
.video-play::after {
  content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px;
}
.video-title { padding: 14px 16px 6px; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-stats { padding: 0 16px 14px; font-size: 12px; color: var(--ink-faint); display: flex; gap: 14px; }
.video-stats span { white-space: nowrap; }

/* ---- 关于页 ---- */
.about { max-width: 720px; margin: 0 auto; padding: 64px 24px; font-size: 17px; line-height: 2; }
.about h2 { font-size: 30px; letter-spacing: 3px; margin-bottom: 28px; }
.about p { margin: 1.2em 0; color: var(--ink-soft); }
.about .qr-row { display: flex; gap: 32px; margin-top: 40px; }
.about .qr-box { text-align: center; font-size: 14px; color: var(--ink-faint); }
.about .qr-box img { width: 160px; height: 160px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; background: var(--paper-deep); }

/* ---- 页脚 ---- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 48px; text-align: center; color: var(--ink-faint); font-size: 13px; letter-spacing: 1px; }
.footer .footer-name { font-size: 15px; color: var(--ink-soft); letter-spacing: 3px; margin-bottom: 8px; }
.footer .footer-beian { margin-top: 10px; }
.footer .footer-beian a { color: var(--ink-faint); text-decoration: none; }
.footer .footer-beian a:hover { color: var(--accent); }

/* ---- 空状态/加载 ---- */
.empty { text-align: center; color: var(--ink-faint); padding: 80px 0; font-size: 15px; letter-spacing: 2px; }
.loading { text-align: center; color: var(--ink-faint); padding: 80px 0; font-size: 14px; letter-spacing: 4px; }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 640px) {
  .article-grid, .video-grid { grid-template-columns: 1fr; }
  .article-row { flex-direction: column; }
  .article-row .article-cover, .article-row .article-cover-placeholder { width: 100%; }
  .article-row .article-body { padding: 0 20px 20px; }
  .nav-links { gap: 18px; font-size: 14px; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 30px; letter-spacing: 3px; }
}
