:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --paper-deep: #f3eadc;
  --ink: #252525;
  --muted: #6f6a61;
  --line: #ded3c2;
  --blue: #17324d;
  --blue-soft: #e8edf1;
  --shadow: 0 22px 60px rgba(48, 38, 25, 0.1);
  --serif: Inter, "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --sans: Inter, "Noto Sans SC", "Source Han Sans SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(rgba(23, 50, 77, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 50, 77, 0.02) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

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

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
  border-bottom: 1px solid rgba(222, 211, 194, 0.75);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(222, 211, 194, 0.72);
  border-radius: 9px;
  object-fit: cover;
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav nav a:hover {
  color: var(--blue);
  background: rgba(23, 50, 77, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: 48px;
  align-items: center;
  min-height: 720px;
  padding: 64px 0;
}

.hero > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: #17324d;
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 580px;
  margin-bottom: 34px;
  color: #45413b;
  font-family: var(--sans);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-link {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(23, 50, 77, 0.18);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.primary-link:hover,
.text-link:hover,
.entry-panel:hover,
.article-card:hover,
.featured-topic:hover {
  transform: translateY(-2px);
}

.browser-frame {
  overflow: hidden;
  max-width: 100%;
  border: 1px solid rgba(222, 211, 194, 0.95);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.78);
  box-shadow: var(--shadow);
}

.browser-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(222, 211, 194, 0.8);
  background: rgba(243, 234, 220, 0.7);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b9aa96;
}

.browser-title {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-content {
  padding: clamp(24px, 4vw, 44px);
}

.latest-notes {
  min-height: 420px;
  padding: 34px;
  border: 1px solid rgba(222, 211, 194, 0.9);
  background:
    linear-gradient(90deg, rgba(23, 50, 77, 0.08) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(23, 50, 77, 0.06) 1px, transparent 1px) 0 0 / 42px 42px,
    #fffaf2;
}

.latest-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
}

.latest-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.latest-list a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(222, 211, 194, 0.86);
}

.latest-list a:last-child {
  border-bottom: 0;
}

.latest-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.latest-list strong {
  display: block;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.latest-list p {
  margin: 8px 0 0;
  color: #575148;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.latest-list a:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.entries-section,
.articles-section,
.topics-section {
  padding: 72px 0;
  border-top: 1px solid rgba(222, 211, 194, 0.75);
}

.openclaw-link {
  display: block;
  padding: 24px 0;
  border-top: 1px solid rgba(222, 211, 194, 0.75);
  border-bottom: 1px solid rgba(222, 211, 194, 0.75);
}

.openclaw-link span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.openclaw-link strong {
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
}

.section-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}

.listing-page .section-header:not(:has(.eyebrow)) {
  grid-template-columns: 1fr;
}

.section-header h2 {
  margin-bottom: 10px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.section-header p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.entry-panel {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.64);
  box-shadow: 0 10px 28px rgba(48, 38, 25, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.entry-panel:hover,
.article-card:hover {
  border-color: rgba(23, 50, 77, 0.36);
  box-shadow: 0 18px 42px rgba(48, 38, 25, 0.09);
}

.entry-panel.is-claw {
  background:
    linear-gradient(90deg, rgba(23, 50, 77, 0.045) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(rgba(23, 50, 77, 0.035) 1px, transparent 1px) 0 0 / 36px 36px,
    rgba(255, 252, 247, 0.7);
}

.entry-panel span {
  display: block;
  margin-bottom: 38px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.entry-panel strong {
  display: block;
  max-width: 460px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.article-card {
  display: flex;
  min-width: 0;
  min-height: 268px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.7);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-card[hidden] {
  display: none;
}

.source-badge {
  align-self: flex-start;
  margin-top: 22px;
  padding: 6px 9px;
  border: 1px solid rgba(222, 211, 194, 0.9);
  border-radius: 999px;
  color: #5b564f;
  background: rgba(255, 252, 247, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.source-badge.is-claw {
  color: var(--blue);
  background: var(--blue-soft);
}

.article-card:nth-child(1) {
  grid-column: span 2;
}

.listing-page .article-card:nth-child(1) {
  grid-column: auto;
}

.article-meta,
.article-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 18px 0 14px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.article-card p {
  margin-bottom: 28px;
  color: #514c44;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.tag-row a {
  padding: 6px 9px;
  border: 1px solid rgba(222, 211, 194, 0.9);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(232, 237, 241, 0.44);
  font-size: 12px;
  font-weight: 700;
}

.article-footer {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(222, 211, 194, 0.72);
}

.source-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 30px;
}

.source-filter button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(222, 211, 194, 0.95);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 252, 247, 0.64);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.source-filter button:hover,
.source-filter button.is-active {
  border-color: rgba(23, 50, 77, 0.34);
  color: var(--blue);
  background: var(--blue-soft);
}

.notice-box {
  margin: -10px 0 34px 208px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.72);
}

.listing-page .notice-box {
  margin: 0 0 34px;
}

.notice-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 14px;
}

.notice-box p {
  margin: 0;
  color: #514c44;
  line-height: 1.7;
}

.featured-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.featured-topic {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  color: var(--blue);
  background: rgba(255, 252, 247, 0.58);
  box-shadow: 0 10px 28px rgba(48, 38, 25, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.featured-topic:hover {
  border-color: rgba(23, 50, 77, 0.34);
  background: var(--blue-soft);
  box-shadow: 0 18px 42px rgba(48, 38, 25, 0.08);
}

.featured-topic span {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.featured-topic strong {
  display: block;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.15;
}

.featured-topic p {
  margin: 18px 0 0;
  color: #514c44;
  line-height: 1.7;
}

.featured-topic.is-openclaw {
  grid-column: span 2;
  min-height: 260px;
  background:
    linear-gradient(90deg, rgba(23, 50, 77, 0.055) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(rgba(23, 50, 77, 0.04) 1px, transparent 1px) 0 0 / 38px 38px,
    rgba(255, 252, 247, 0.72);
}

.featured-topic.is-openclaw strong {
  font-size: clamp(34px, 5vw, 58px);
}

.topic-forward {
  margin: -40px 0 34px 208px;
}

.topic-forward a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.topic-dossier {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 90px;
}

.dossier-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: 48px;
  align-items: center;
  padding: 22px 0 76px;
}

.dossier-hero > * {
  min-width: 0;
}

.dossier-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 6.6vw, 92px);
  white-space: normal;
  overflow-wrap: anywhere;
}

.dossier-hero h1 span {
  display: inline;
}

.dossier-hero p {
  max-width: 650px;
  color: #45413b;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.dossier-note {
  max-width: 100%;
  min-height: 360px;
  padding: 34px;
  border: 1px solid rgba(222, 211, 194, 0.9);
  background:
    linear-gradient(90deg, rgba(23, 50, 77, 0.08) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(23, 50, 77, 0.06) 1px, transparent 1px) 0 0 / 42px 42px,
    #fffaf2;
}

.dossier-note > span {
  display: block;
  margin-bottom: 80px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dossier-note strong {
  display: block;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.12;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dossier-note strong span {
  display: block;
}

.dossier-hero p span,
.dossier-note p span {
  display: block;
}

.dossier-note p {
  margin: 24px 0 0;
  color: #514c44;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.dossier-section {
  padding: 70px 0;
  border-top: 1px solid rgba(222, 211, 194, 0.75);
}

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

.question-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(222, 211, 194, 0.78);
}

.question-list span {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.question-list p {
  margin: 0;
  color: #37342f;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stream-grid div {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  color: var(--blue);
  background: rgba(255, 252, 247, 0.62);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 46px;
  border-top: 1px solid rgba(222, 211, 194, 0.75);
  color: var(--muted);
  font-size: 14px;
}

.listing-page {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 80px;
  overflow-x: hidden;
}

.listing-page .site-nav {
  margin-bottom: 68px;
  padding-top: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 68px;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 0 58px;
  }

  .hero,
  .hero-copy,
  .browser-frame,
  .browser-content,
  .latest-notes {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .article-card:nth-child(1) {
    grid-column: auto;
  }

  .featured-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-topic.is-openclaw {
    grid-column: auto;
  }

  .topic-forward {
    margin: -12px 0 34px;
  }

  .notice-box {
    margin: -12px 0 34px;
  }

  .dossier-hero {
    grid-template-columns: 1fr;
    padding-bottom: 58px;
  }

  .stream-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .topic-dossier {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    overflow-x: hidden;
  }

  .dossier-hero h1 {
    font-size: clamp(38px, 11vw, 46px);
    line-height: 1.08;
  }

  .dossier-hero h1 span {
    display: block;
  }

  .dossier-hero p {
    font-size: 17px;
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .dossier-note {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 300px;
    padding: 22px;
    overflow: hidden;
  }

  .dossier-hero,
  .dossier-hero .browser-frame,
  .dossier-hero .browser-content {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    min-width: 0;
  }

  .dossier-hero {
    display: block;
  }

  .dossier-hero .browser-frame {
    margin-top: 36px;
  }

  .dossier-note > span {
    margin-bottom: 58px;
  }

  .dossier-note strong {
    font-size: clamp(30px, 9vw, 36px);
    word-break: break-all;
  }

  .dossier-note p,
  .dossier-hero p {
    word-break: break-all;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .primary-link {
    justify-content: center;
    width: 100%;
  }

  .text-link {
    justify-content: center;
    width: 100%;
  }

  .browser-content,
  .latest-notes,
  .article-card,
  .entry-panel {
    padding: 20px;
  }

  .latest-notes {
    min-height: 320px;
  }

  .section-header h2,
  .section-header p,
  .notice-box p,
  .article-card h3,
  .article-card p {
    word-break: break-all;
  }

  .featured-topic-grid,
  .stream-grid {
    grid-template-columns: 1fr;
  }

  .question-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
