:root {
  color-scheme: light;
  --bg: #f4efe6;
  --panel: #fffcf7;
  --ink: #1c1814;
  --muted: #6e645a;
  --line: rgba(28, 24, 20, 0.1);
  --accent: #c45c72;
  --teal: #2f5f5a;
  --radius: 16px;
  --font-display: "Songti SC", "Noto Serif SC", STSong, Georgia, serif;
  --font-body: "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 92, 114, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%, rgba(47, 95, 90, 0.08), transparent 50%);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.shell {
  width: min(680px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.mast {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #8f3d52;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.sync {
  flex: 1;
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
}

.feed {
  display: grid;
  gap: 0.85rem;
}

.loading,
.empty,
.error {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.error {
  color: #b42318;
  background: #fff5f5;
  border: 1px solid rgba(180, 35, 24, 0.15);
  border-radius: var(--radius);
}

.article {
  position: relative;
  padding: 1rem 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(28, 24, 20, 0.05);
}

.article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), var(--teal));
}

.article-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.article-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

.article-time {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.2rem;
}

.article-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #4a4540;
  white-space: pre-wrap;
}

.article-media {
  margin: 0.65rem 0 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  background: #f0ebe3;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.article-gallery .article-media {
  margin: 0;
}

.article-gallery .article-media img {
  max-height: 180px;
}

.article-video {
  margin-top: 0.65rem;
}

.article-video-player {
  display: block;
  width: 100%;
  max-height: 360px;
  border-radius: 10px;
  background: #1c1814;
}

.article-video-fallback img {
  margin-bottom: 0.5rem;
}

.video-hint {
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  background: #f0ebe3;
  border-radius: 8px;
}

.load-more-wrap {
  margin-top: 1.25rem;
  text-align: center;
}

.load-more-wrap.hidden {
  display: none;
}

.btn-load-more {
  min-width: 9rem;
}

.load-more-meta {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.btn-expand {
  appearance: none;
  border: none;
  background: none;
  padding: 0.35rem 0 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8f3d52;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body-wrap.is-collapsed .article-body {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.foot {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.72rem;
  color: #a8a29e;
}
