:root {
  --accent: #e43f5a;
  --accent-soft: #fff0f3;
  --ink: #23262f;
  --muted: #667085;
  --line: #eceff3;
  --bg: #f7f8fb;
  --card: #ffffff;
  --green: #2f855a;
  --blue: #2b6cb0;
  --amber: #b7791f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7f9 0%, #f7f8fb 32%, #f7f8fb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.bar {
  width: min(100%, 560px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h1 {
  margin: 0;
  color: var(--accent);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.today {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

main {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 18px 14px 30px;
}

.feed {
  display: grid;
  gap: 14px;
}

.intro {
  padding: 2px 2px 4px;
}

.intro h2 {
  margin: 0 0 7px;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: 0;
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.feed-card,
.post {
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.08);
}

.feed-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.feed-card img,
.hero img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfe5eb;
}

.feed-body {
  padding: 15px 15px 17px;
}

.feed-body h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.38;
  letter-spacing: 0;
}

.feed-body p,
.content p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero {
  position: relative;
  background: #dfe5eb;
}

.badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 28px);
  padding: 8px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.82);
  font-size: 13px;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}

.image-note {
  margin: 9px 14px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.content {
  padding: 18px 17px 20px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.pill.community {
  color: var(--green);
  background: #edf8f2;
}

.content h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.34;
  letter-spacing: 0;
}

.note {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #f1d8de;
  border-radius: 8px;
  background: #fff8fa;
}

.note strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 15px;
}

.tips {
  display: grid;
  gap: 9px;
  margin: 14px 0 18px;
}

.tip {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.tip:nth-child(2) .num { background: var(--green); }
.tip:nth-child(3) .num { background: var(--amber); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.content .tags {
  margin: 16px 0 18px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  color: #344054;
  background: #f2f4f7;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.source span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.source a,
.back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.back {
  margin-bottom: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 420px) {
  header { padding-inline: 14px; }
  .bar { align-items: flex-start; flex-direction: column; gap: 4px; }
  main { padding-inline: 10px; }
  .content { padding-inline: 15px; }
  .content h2 { font-size: 20px; }
  .source { align-items: stretch; flex-direction: column; }
  .source a { justify-content: center; width: 100%; }
}
