.journal-page { background: #fff; font-family: -apple-system,BlinkMacSystemFont,"Microsoft YaHei UI","Microsoft YaHei",sans-serif; }
.journal-hero { min-height: 340px; height: 340px; }
.journal-hero .hero-content { min-height: 340px; padding: 105px 0 48px; align-items: flex-start; width: min(980px, calc(100% - 48px)); }
.journal-hero .hero-copy { max-width: 800px; text-align: left; margin: 0; }
.journal-hero h1 { font: 700 44px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; letter-spacing: 0; background: none; -webkit-text-fill-color: #fff; color: #fff; }
.journal-hero p { font-size: 17px; }
.journal-section { padding: 48px 0 96px; }
.journal-container { width: min(980px, calc(100% - 48px)); margin: auto; }
.journal-controls { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid #dfe5e8; padding-bottom: 24px; }
.journal-controls [role="group"] { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.journal-controls button { border: 0; border-bottom: 2px solid transparent; background: none; color: #536575; padding: 8px 0; font: inherit; cursor: pointer; white-space: nowrap; }
.journal-controls button[aria-pressed="true"] { color: #0b8078; border-color: #0b8078; }
.journal-controls input { min-width: 160px; max-width: 200px; border: 1px solid #d6dee4; padding: 10px 12px; border-radius: 4px; font: inherit; }
.journal-month { margin: 42px 0 6px; font-size: 18px; color: #516777; font-weight: 500; letter-spacing: 0; }
.journal-entry { padding: 28px 0 32px; border-bottom: 1px solid #dfe5e8; }
.journal-entry--with-cover { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; column-gap: 32px; }
.journal-entry-copy { min-width: 0; }
.journal-cover { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #f1f4f6; }
.journal-cover img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 220ms ease; }
.journal-cover:hover img { transform: scale(1.025); }
.journal-cover:focus-visible { outline: 3px solid #1263cf; outline-offset: 4px; }
.journal-meta { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; color: #526575; font-size: 13px; line-height: 1.6; }
.journal-meta span:first-of-type { color: #0b8078; }
.journal-entry h3 { font-size: 25px; line-height: 1.5; margin: 12px 0 10px; font-weight: 650; letter-spacing: 0; overflow-wrap: anywhere; }
.journal-entry h3 a { color: #14213d; text-decoration: none; }
.journal-entry h3 a:hover { color: #1263cf; }
.journal-entry p { max-width: 800px; margin: 0 0 18px; color: #586976; font-size: 16px; line-height: 1.85; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.journal-read { color: #1263cf; font-size: 14px; text-decoration: none; }
.journal-read span { display: inline-block; transition: transform 180ms ease; }
.journal-read:hover span { transform: translateX(4px); }
.journal-empty { padding: 48px 0; color: #586976; }
.journal-page [hidden] { display: none !important; }
.article-reading { width: min(780px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0 80px; }
.article-back { display: inline-block; margin-bottom: 40px; color: #526575; text-decoration: none; font-size: 14px; }
.article-heading { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid #dfe5e8; }
.article-heading h1 { font-size: 38px; line-height: 1.4; margin: 18px 0 20px; letter-spacing: 0; overflow-wrap: anywhere; }
.article-byline { font-size: 14px; color: #586976; margin: 0; }
.article-share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 24px; }
.article-reading > .article-share { margin-top: 40px; }
.article-share-actions { display: flex; gap: 10px; }
.article-share button, .article-share-dialog button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; min-width: 104px; padding: 8px 12px; border: 1px solid #d6dee4; border-radius: 4px; color: #344d60; background: #fff; font: 14px/1.5 -apple-system,BlinkMacSystemFont,"Microsoft YaHei",sans-serif; cursor: pointer; transition: background 160ms ease, transform 160ms ease; }
.article-share button:hover { color: #1263cf; background: #edf5fe; border-color: #a7c9ec; }
.article-share button:active { transform: scale(.97); }
.article-share button:disabled { opacity: .6; cursor: wait; }
.article-share button:focus-visible, .article-share-dialog :focus-visible { outline: 2px solid #1263cf; outline-offset: 3px; }
.article-share svg { width: 17px; height: 17px; }
.article-share-status { min-height: 22px; color: #087a59; font-size: 13px; }
.article-share-status.is-error { color: #a12622; }
.article-share-dialog { width: min(460px, calc(100% - 32px)); padding: 24px; border: 1px solid #d6dee4; border-radius: 6px; color: #243445; }
.article-share-dialog::backdrop { background: rgb(15 25 35 / .4); }
.article-share-dialog h2 { font-size: 21px; margin: 0 0 12px; }
.article-share-dialog p { font-size: 14px; color: #586976; }
.article-share-dialog input { width: 100%; padding: 12px; border: 1px solid #d6dee4; border-radius: 4px; font-size: 14px; }
.article-share-dialog form { margin-top: 18px; text-align: right; }
.article-cover { margin: 0 0 36px; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.article-cover:hover img { transform: scale(1.025); }
.article-toc { padding: 18px 0; margin: 0 0 32px; border-bottom: 1px solid #dfe5e8; color: #586976; font-size: 14px; }
.article-toc summary { cursor: pointer; }
.article-toc nav { display: grid; gap: 12px; padding-top: 20px; }
.article-toc a { color: #1263cf; }
.article-prose { color: #243445; font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
.article-prose > :first-child { margin-top: 0; }
.article-prose p { margin: 0 0 1.35em; }
.article-prose h2 { font-size: 27px; margin: 1.8em 0 .7em; line-height: 1.5; }
.article-prose h3 { font-size: 22px; margin: 1.5em 0 .7em; line-height: 1.5; }
.article-prose h4 { font-size: 19px; margin: 1.5em 0 .7em; }
.article-prose :is(h2,h3) { scroll-margin-top: 110px; letter-spacing: 0; }
.article-prose ul, .article-prose ol { padding-left: 1.6em; margin-bottom: 1.4em; }
.article-prose li { margin-bottom: .5em; }
.article-prose li p { margin: .3em 0; }
.article-prose blockquote { margin: 24px 0; padding: 8px 22px; border-left: 3px solid #168b83; background: #f5f8f8; color: #526575; }
.article-prose blockquote p:last-child { margin-bottom: 0; }
.article-prose img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: 4px; }
.article-prose a { color: #1263cf; text-decoration: underline; text-underline-offset: 3px; }
.article-prose pre { background: #f4f6f7; border: 1px solid #dfe5e8; border-radius: 4px; padding: 20px; overflow-x: auto; line-height: 1.6; white-space: pre; }
.article-prose code { font: .9em/1.6 Consolas,monospace; background: #f1f4f6; padding: 2px 4px; border-radius: 3px; }
.article-prose pre code { background: none; padding: 0; }
.article-prose table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; margin: 24px 0; }
.article-prose td, .article-prose th { min-width: 100px; border: 1px solid #d6dee4; padding: 10px 14px; text-align: left; }
.article-prose th { background: #f4f7f8; }
.article-prose td p:last-child, .article-prose th p:last-child { margin-bottom: 0; }
.article-prose hr { border: 0; border-top: 1px solid #d6dee4; margin: 32px 0; }
.article-end { border-top: 1px solid #dfe5e8; padding-top: 28px; margin-top: 56px; display: flex; justify-content: space-between; font-size: 14px; }
.article-end a { color: #1263cf; }
.article-preview .article-reading { padding-top: 32px; }
@media (max-width: 640px) {
  .journal-hero, .journal-hero .hero-content { min-height: 300px; height: 300px; }
  .journal-hero .hero-content { padding: 95px 0 32px; }
  .journal-hero h1 { font-size: 34px; }
  .journal-hero p { font-size: 15px; }
  .journal-container, .article-reading { width: calc(100% - 40px); }
  .journal-controls { flex-direction: column; gap: 16px; }
  .journal-controls input { max-width: none; width: 100%; }
  .journal-section { padding-top: 28px; }
  .journal-entry h3 { font-size: 22px; }
  .journal-entry p { font-size: 15px; }
  .journal-entry--with-cover { grid-template-columns: minmax(0, 1fr) 104px; column-gap: 16px; }
  .journal-entry--with-cover .journal-entry-copy { display: contents; }
  .journal-entry--with-cover .journal-meta { grid-column: 1 / -1; grid-row: 1; }
  .journal-entry--with-cover h3 { grid-column: 1; grid-row: 2; margin-top: 14px; }
  .journal-entry--with-cover .journal-cover { grid-column: 2; grid-row: 2; align-self: start; margin-top: 14px; border-radius: 4px; }
  .journal-entry--with-cover p { grid-column: 1 / -1; grid-row: 3; }
  .journal-entry--with-cover .journal-read { grid-column: 1 / -1; grid-row: 4; }
  .article-reading { padding-top: 100px; }
  .article-heading h1 { font-size: 29px; }
  .article-prose { font-size: 16px; }
  .article-prose h2 { font-size: 24px; }
  .article-back { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-cover img, .journal-cover img, .journal-read span { transition: none; transform: none !important; }
  .article-share button { transition: none; transform: none !important; }
}
