/* 桥边札记: editorial rhythm over the original moving landscape. */
.header-tools, .reader-tools { display: flex; align-items: center; gap: 16px; min-width: 0; pointer-events: auto; }
.account-entry { pointer-events: auto; }
.brand { text-decoration: none; letter-spacing: 0; font-size: 1.125rem; }
.brand-name { display: flex; align-items: center; gap: 16px; }
.brand-subtitle { color: var(--color-muted); font: .875rem var(--font-display); letter-spacing: .12em; padding-left: 16px; border-left: 1px solid var(--color-border); }
.brand-mark { width: 8px; height: 8px; border-radius: 50%; box-shadow: none; }
.account-entry { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#home-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.25rem, 4.3vw, 3.75rem); letter-spacing: .01em; line-height: 1.25; }
.hero-description { max-width: 30em; font-size: 1rem; line-height: 1.9; }
.hero-actions { margin-top: 32px; }
.hero-actions .primary-btn { border-radius: 8px; background: var(--color-accent); color: var(--color-on-accent); border: 0; padding: 0 22px; box-shadow: none; transition: background 160ms ease; }
.hero-actions .primary-btn:hover { background: var(--color-focus); }
.hero-actions .hint { font-size: .75rem; }
.profile-card { background: rgba(12, 21, 25, .76); border-radius: 8px; box-shadow: none; }
.profile-card h2 { font-family: var(--font-display); margin: 0 0 16px; font-size: 1.25rem; }
.profile-card dl { margin-bottom: 0; }
.weather-panel { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-line); }
.weather-heading, .section-heading-small { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weather-heading h3, .section-heading-small h3 { margin: 0; font: 500 .875rem/1.5 var(--font-sans); color: var(--color-text); }
.weather-heading span { font-size: .75rem; color: var(--color-muted); }
.weather-panel p { margin: 12px 0 0; font-size: .875rem; line-height: 1.9; overflow-wrap: anywhere; }
.work-layout { grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 64px; }
.article-sidebar { min-width: 0; height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; }
.section-header { padding-top: 16px; }
.section-header h2, .contact-intro h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: .06em; }
.section-header .section-subtitle { line-height: 2; }
.advertisement-panel { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--color-line); }
.advertisement-card { display: block; padding-block: 16px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--color-line); }
.advertisement-card img { display: block; width: 100%; max-height: 128px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }
.advertisement-label { color: var(--color-muted); font-size: .75rem; padding: 2px 6px; border: 1px solid var(--color-border); border-radius: 3px; }
.advertisement-card h3 { margin: 12px 0 4px; font-size: .9375rem; line-height: 1.6; }
.advertisement-card p { margin: 0; color: var(--color-muted); font-size: .8125rem; line-height: 1.8; overflow-wrap: anywhere; }
.advertisement-card:hover h3, .friend-card:hover h3 { color: var(--color-accent); }
.article-filters { padding: 20px 24px; gap: 12px; border-radius: 8px; box-shadow: none; }
/* Keep the source project's two-column glass cards; the data is now articles. */
.article-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; background: transparent; padding: 0; }
.article-card { min-height: 286px; border: 1px solid var(--color-line); border-radius: 12px; background: rgba(12,21,25,.78); box-shadow: none; backdrop-filter: blur(14px); transition: transform 180ms ease, border-color 180ms ease; }
.article-card:hover { transform: translateY(-2px); border-color: var(--color-accent); }
.article-card-link { display: flex; flex-direction: column; height: 100%; padding: 0; gap: 0; }
.article-cover { width: auto; margin: 12px 12px 0; border-radius: 6px; aspect-ratio: 16 / 10; }
.article-card-content { padding: 20px; gap: 12px; }
.article-card h3 { font-size: 1.25rem; line-height: 1.6; font-weight: 600; }
.article-card:hover h3 { color: var(--color-accent); }
.article-featured h3 { font-family: var(--font-display); font-size: 1.375rem; }
.article-featured .article-summary { -webkit-line-clamp: 2; }
.article-meta { font-size: .75rem; letter-spacing: .02em; }
.article-tags span { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--color-muted); }
.article-tags span::before { content: '#'; color: var(--color-accent); margin-right: 3px; }
.article-read { font-size: .75rem; }
.friends-panel { margin-top: 40px; border-top: 1px solid var(--color-line); padding-top: 16px; }
.friend-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.friend-card { display: flex; align-items: start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--color-line); text-decoration: none; }
.friend-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; }
.friend-card div { min-width: 0; }
.friend-card h3 { margin: 0 0 6px; font-size: 1rem; overflow-wrap: anywhere; }
.friend-card p { margin: 0; color: var(--color-muted); font-size: .8125rem; line-height: 1.8; overflow-wrap: anywhere; }
.page-contact { overflow-y: auto; overscroll-behavior: contain; align-items: start; }
.contact-layout { margin-top: 24px; }
.contact-side { padding-top: 16px; }
.contact-info-card { border-radius: 8px; box-shadow: none; }
.water-ripple-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.flow-layout .article-sidebar { height: auto; overflow: visible; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; }
.flow-layout .advertisement-panel { margin-top: 0; }
.flow-layout .article-sidebar .section-header { margin-bottom: 24px; }
.flow-layout #advertisements { max-height: 200px; overflow: auto; }
.flow-layout .work-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (max-width: 1199px) {
  .work-layout { grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 767px) {
  .brand-subtitle { display: none !important; }
}
@media (max-width: 639px) {
  .topbar { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; row-gap: 8px; }
  .header-tools { display: contents; }
  .topbar nav { grid-column: 1 / -1; grid-row: 2; }
  .account-entry { grid-column: 2; grid-row: 1; background: transparent; border: 0; padding: 0 8px; min-height: 44px; }
  .brand { min-height: 44px; }
  .flow-layout .page { padding-top: 160px; }
  #home-title { font-size: clamp(2rem, 7.6vw, 2.75rem); }
  .article-cards-grid { grid-template-columns: 1fr; gap: 16px; padding: 0; }
  .article-card { min-height: 0; }
  .article-card-content { padding: 20px; }
  .article-card h3 { font-size: 1.25rem; }
  .article-summary { font-size: .9375rem; }
  .flow-layout .article-sidebar { display: contents; }
  .flow-layout .article-sidebar .section-header { grid-row: 1; margin-bottom: 0; }
  .flow-layout .article-browser { grid-row: 2; }
  .flow-layout .advertisement-panel { grid-row: 3; margin-top: 0; }
  .advertisement-card { display: flex; gap: 16px; align-items: center; }
  .advertisement-card img { width: 80px; height: 80px; margin: 0; flex: 0 0 80px; }
  .friend-links { grid-template-columns: 1fr; }
  .contact-intro h2 { font-size: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) { .water-ripple-canvas { display: none; } }

/* Scene movement follows the source film; articles only open on card activation. */
.article-browser { transition: opacity 320ms ease, transform 320ms var(--ease-cinema); }
.article-browser.is-leaving { opacity: 0; transform: translateY(-12px); pointer-events: none; }

/* All matching articles share one continuous list. */
.article-list-end { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 24px 0 8px; border-top: 1px solid var(--color-line); color: var(--color-muted); font-size: .875rem; }
.article-browser { scrollbar-gutter: stable; }
.article-filters { scroll-margin-top: 152px; }
@media (max-width: 639px) { .article-list-end { flex-wrap: wrap; } }

.weather-city-label { display: block; margin: 14px 0 6px; font-size: .75rem; color: var(--color-muted); }
#weatherCity { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--color-line); border-radius: 6px; background: var(--color-reading-bg); color: var(--color-text); font: inherit; font-size: .875rem; color-scheme: dark; }
.weather-panel .weather-location-hint { margin-top: 8px; font-size: .75rem; line-height: 1.6; color: var(--color-muted); }
