:root {
  --ink: #1a202c;
  --muted: #4a5568;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --paper: #f8f9fa;
  --surface: #ffffff;
  --dark: #1a202c;
  --dark-soft: #1f2937;
  --accent: #f37021;
  --accent-deep: #e5620a;
  --accent-soft: rgba(243, 112, 33, 0.12);
  --rose: #b85563;
  --shadow: 0 12px 32px rgba(26, 32, 44, 0.08);
  --shadow-lg: 0 18px 46px rgba(26, 32, 44, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(243, 112, 33, 0.28);
}

.brand-title {
  font-size: 16px;
  font-weight: 760;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.text-button,
.user-chip {
  height: 38px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 680;
  font-size: 13px;
}

.text-button {
  padding: 0 14px;
  gap: 8px;
  cursor: pointer;
}

.text-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.text-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.user-chip {
  padding: 0 12px;
  min-width: 120px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.favorite-button,
.dislike-button,
.note-button {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.favorite-button:hover,
.dislike-button:hover,
.note-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.note-button.has-notes {
  border-color: rgba(243, 112, 33, 0.34);
  background: rgba(243, 112, 33, 0.08);
  color: var(--accent-deep);
}

.favorite-button.is-favorited {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.dislike-button.is-disliked {
  border-color: rgba(184, 85, 99, 0.35);
  background: rgba(184, 85, 99, 0.08);
  color: var(--rose);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.section-kicker {
  color: var(--accent);
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}

h2 {
  margin: 0;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0;
}

.section-note {
  color: var(--muted);
  font-size: 13px;
  max-width: 420px;
  line-height: 1.55;
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 20px;
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.tag {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 9px;
  background: var(--paper);
  white-space: nowrap;
}

.tag.hot {
  color: var(--accent-deep);
  border-color: rgba(243, 112, 33, 0.45);
  background: var(--accent-soft);
}

.article-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.28;
  color: var(--ink);
}

.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
  font-size: 14px;
}

.article-take {
  margin-top: 10px;
}

.take-label {
  color: var(--accent);
  font-weight: 860;
}

.take-highlight {
  color: var(--ink);
  font-weight: 720;
}

.article-side {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.score {
  font-size: 32px;
  font-weight: 840;
  color: var(--accent);
}

.score span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 680;
}

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

.favorite-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.favorite-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

.favorite-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.favorite-remove {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(184, 85, 99, 0.35);
  background: var(--surface);
  color: var(--rose);
  font-size: 12px;
  cursor: pointer;
  align-self: start;
}

.favorites-empty {
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  background: var(--surface);
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }
}
