:root {
  --bg: #FBF6EF;
  --bg-soft: #F4ECE0;
  --surface: #FFFFFF;
  --ink: #2E2722;
  --ink-soft: #6B5F54;
  --muted: #9A8C7E;
  --line: #ECE2D4;
  --accent: #C08457;
  --accent-deep: #A66A3E;
  --shadow: 0 22px 50px -28px rgba(80, 55, 30, .45);
  --shadow-soft: 0 12px 30px -20px rgba(80, 55, 30, .35);
  --radius: 22px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, #F7E7D6 0%, rgba(247, 231, 214, 0) 60%),
    radial-gradient(900px 500px at -10% 10%, #F3E9DA 0%, rgba(243, 233, 218, 0) 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(251, 246, 239, .72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
}
.nav-tag {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .08em;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: 1120px;
  margin: 34px auto 0;
  padding: 0 24px;
}
.hero-track {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 7;
  background: var(--bg-soft);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  text-decoration: none;
  display: block;
}
.slide.active { opacity: 1; z-index: 2; }
.slide-img, .slide-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 28, 18, 0) 35%, rgba(38, 26, 16, .72) 100%);
}
.slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 38px 44px;
  color: #FFF7EE;
  z-index: 3;
}
.slide-date {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #F2D9C5;
  margin-bottom: 10px;
}
.slide-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 38px);
  margin: 0 0 14px;
  line-height: 1.25;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
  max-width: 760px;
}
.slide-cta {
  font-size: 14px;
  letter-spacing: .04em;
  color: #FBEBDD;
  border: 1px solid rgba(255, 240, 228, .55);
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-block;
  transition: background .25s ease, color .25s ease;
}
.slide:hover .slide-cta { background: #FBEBDD; color: var(--accent-deep); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background .2s ease, transform .2s ease;
}
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hero-arrow.prev { left: 38px; }
.hero-arrow.next { right: 38px; }
.hero-dots {
  position: absolute;
  bottom: 16px;
  right: 44px;
  z-index: 6;
  display: flex;
  gap: 8px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, width .2s ease;
}
.dot.active { background: #fff; width: 22px; border-radius: 6px; }

/* ---------- latest section ---------- */
.latest {
  max-width: 1120px;
  margin: 64px auto 0;
  padding: 0 24px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  margin: 0;
  letter-spacing: .03em;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 12px;
  vertical-align: middle;
}
.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
  opacity: 0;
  transform: translateY(22px);
}
.card.in {
  opacity: 1;
  transform: translateY(0);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, opacity .6s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card:hover .card-cover img { transform: scale(1.05); }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(46, 39, 34, .78);
  color: #FBEBDD;
  font-size: 11px;
  letter-spacing: .12em;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-date {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
}
.card-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
}
.card-digest {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- empty state ---------- */
.empty-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  font-size: 15px;
  line-height: 2;
}
.empty-note code {
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--accent-deep);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- footer ---------- */
.foot {
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 36px 24px 56px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}
.foot-line { margin: 0; font-size: 13px; letter-spacing: .04em; }
.foot-sub { margin: 8px 0 0; font-size: 12px; color: #B6A99B; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .hero { margin-top: 20px; }
  .hero-track { aspect-ratio: 4 / 3; }
  .slide-content { padding: 24px 22px; }
  .hero-arrow { width: 38px; height: 38px; font-size: 20px; }
  .hero-arrow.prev { left: 14px; }
  .hero-arrow.next { right: 14px; }
  .hero-dots { right: 22px; }
  .latest { margin-top: 44px; }
  .grid { gap: 18px; }
}
