:root {
  --page: #fafbf8;
  --ink: #18251d;
  --muted: #647064;
  --green: #386b4d;
  --green-deep: #28523a;
  --wash: #eef3e9;
  --line: #d8ded6;
  --amber: #865e26;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #739a7a; outline-offset: 4px; }
input:focus-visible { outline-offset: 1px; }
button:disabled { cursor: wait; opacity: .6; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.45; }
.site-shell { width: min(1240px, calc(100% - 80px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; gap: 70px; min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 27px; line-height: 1; font-weight: 750; letter-spacing: -.035em; white-space: nowrap; }
.brand-icon { width: 43px; height: 32px; color: var(--green); }
.primary-nav { display: flex; align-self: stretch; align-items: stretch; gap: 40px; }
.primary-nav a { position: relative; display: flex; align-items: center; color: #354036; font-size: 15px; white-space: nowrap; }
.primary-nav a[aria-current="page"] { color: var(--green); font-weight: 650; }
.primary-nav a[aria-current="page"]::after { position: absolute; content: ""; height: 3px; bottom: 0; left: 0; right: 0; background: var(--green); }
main { min-height: calc(100vh - 190px); }
main:focus { outline: none; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 42px 0 36px; }
.intro h1 { font-size: clamp(26px, 2.7vw, 36px); font-weight: 740; letter-spacing: -.045em; }
.intro-copy { margin-top: 8px; font-size: 17px; color: var(--muted); }
.search-form { flex: 0 1 410px; height: 46px; display: flex; align-items: center; border: 1px solid #aeb8ae; border-radius: 7px; background: transparent; }
.search-form:focus-within { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.search-form svg { width: 21px; height: 21px; margin-left: 15px; flex-shrink: 0; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.search-form input { width: 100%; min-width: 0; height: 100%; padding: 0 11px; color: var(--ink); background: transparent; border: 0; border-radius: 6px; outline: 0; font-size: 14px; }
.search-form input:focus-visible { outline: 0; }
.search-form input::placeholder { color: #788176; opacity: 1; }
.search-form input::-webkit-search-cancel-button { display: none; }
.clear-search { border: 0; background: transparent; color: var(--muted); min-width: 38px; height: 40px; font-size: 24px; line-height: 1; }
.feed-notice { margin: -9px 0 28px; border-left: 2px solid #aebdab; padding: 1px 0 1px 12px; color: var(--muted); font-size: 13px; white-space: pre-line; }
.section-heading, .list-heading { display: flex; align-items: baseline; gap: 20px; margin-bottom: 18px; }
.section-heading h2, .list-heading h2, .reading-tips h2 { position: relative; padding-left: 15px; font-size: 22px; font-weight: 700; }
.section-heading h2::before, .list-heading h2::before, .reading-tips h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: var(--green); }
.section-heading p, .list-heading p { font-size: 13px; color: var(--muted); }
.featured-section { margin-bottom: 30px; }
.featured-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--wash); border-radius: var(--radius); padding: 22px 0; }
.featured-band[data-columns="1"] { grid-template-columns: minmax(0, 1fr); }
.featured-band[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.featured-item { position: relative; padding: 0 26px; min-width: 0; }
.featured-item:nth-child(n + 4) { display: none; }
.featured-item + .featured-item { border-left: 1px solid #ced8ca; }
.featured-item h3 { font-size: 19px; font-weight: 650; margin: 10px 28px 9px 0; overflow-wrap: anywhere; }
.featured-item p { color: #4e5a4e; font-size: 14px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.item-category { color: var(--green); font-weight: 600; }
.featured-link::after, .item-link::after { content: ""; position: absolute; inset: 0; }
.round-arrow { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 27px; height: 27px; border: 1px solid var(--green); color: var(--green); border-radius: 50%; line-height: 1; }
.round-arrow svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.featured-item .round-arrow { position: absolute; right: 24px; top: 43px; width: 25px; height: 25px; }
.featured-item:hover h3, .reading-item:hover h3 { color: var(--green); }
.kind-tabs { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #c3cdc2; }
.kind-tabs button { border: 0; padding: 7px 22px; background: transparent; color: var(--ink); border-radius: 6px; font-size: 15px; }
.kind-tabs button[aria-pressed="true"] { background: var(--green); color: white; font-weight: 600; }
.category-pills { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 15px; }
.category-pills button { padding: 3px 14px; border: 1px solid #cdd4cb; border-radius: 30px; background: transparent; color: #475246; font-size: 13px; line-height: 1.7; }
.category-pills button[aria-pressed="true"] { border-color: var(--green); color: var(--green); background: #f0f4ed; font-weight: 600; }
.category-pills button:hover { border-color: var(--green); }
.mobile-category { display: none; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 32px; margin-top: 30px; }
.reading-stream { min-width: 0; }
.list-heading { justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.list-context { margin: 14px 0 6px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.list-context a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.reading-item { position: relative; display: flex; gap: 26px; align-items: center; padding: 22px 58px 22px 0; border-bottom: 1px solid var(--line); }
.reading-item .round-arrow { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }
.item-copy { flex: 1; min-width: 0; }
.reading-item h3 { font-size: 20px; font-weight: 650; margin: 6px 0; overflow-wrap: anywhere; }
.item-summary { color: #4d594d; margin-bottom: 10px; font-size: 14px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.source-line { display: flex; flex-wrap: wrap; gap: 5px 13px; color: var(--muted); font-size: 12px; }
.source-line a { position: relative; z-index: 1; }
.source-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.item-flags { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.item-flag { color: var(--muted); font-size: 11px; line-height: 1.5; border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }
.item-flag.offer { color: var(--amber); border-color: #d9cfb9; }
.item-flag.sample { color: #866025; }
.github-data { margin-bottom: 8px; display: flex; gap: 7px 18px; flex-wrap: wrap; color: #596755; font-size: 12px; }
.star { color: var(--green); margin-right: 3px; }
.reading-tips { border-left: 1px solid var(--line); padding-left: 25px; }
.tips-body { background: #f0f4ed; border-radius: 8px; padding: 20px 18px; margin-top: 18px; }
.tips-body p { position: relative; padding-left: 15px; color: #586353; font-size: 13px; line-height: 1.9; }
.tips-body p + p { margin-top: 18px; }
.tips-body p::before { content: ""; position: absolute; top: 10px; left: 0; width: 5px; height: 5px; background: var(--green); border-radius: 50%; }
.tips-body strong { font-weight: 600; color: #344b36; }
.loading-state { display: flex; align-items: center; gap: 11px; min-height: 180px; color: var(--muted); font-size: 14px; }
.loading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: breathe 1.3s ease-in-out infinite alternate; }
@keyframes breathe { to { opacity: .25; } }
.state-panel { padding: 38px 24px; border: 1px solid var(--line); border-radius: 8px; margin-top: 22px; }
.state-panel h2, .state-panel h3 { font-size: 20px; margin-bottom: 9px; }
.state-panel p { color: var(--muted); font-size: 14px; max-width: 560px; }
.state-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
.button-primary { background: var(--green); color: white; border: 1px solid var(--green); border-radius: 5px; padding: 8px 18px; font-size: 14px; }
.button-primary:hover { background: var(--green-deep); color: white; }
.text-button { border: 0; background: transparent; color: var(--green); padding: 7px 0; font-size: 14px; }
.text-button span { margin-left: 6px; }
.load-more { display: block; min-width: 160px; margin: 28px auto 8px; padding: 9px 25px; border: 1px solid #b8c7b7; background: transparent; color: var(--green); border-radius: 5px; font-size: 14px; }
.load-more:hover { background: var(--wash); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 17px; border-top: 1px solid #c7d0c5; margin-top: 36px; padding: 19px 0 26px; color: var(--muted); font-size: 12px; }
.footer-brand { color: #40533f; font-weight: 600; }
#data-updated { margin-left: auto; }
.mobile-only { display: none; }
.detail-view { padding: 30px 0 10px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 14px; min-height: 36px; margin-bottom: 24px; }
.back-link span { font-size: 20px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 800px) 240px; gap: 58px; max-width: 1100px; }
.detail-article { min-width: 0; }
.detail-article h1 { font-size: clamp(27px, 3vw, 36px); font-weight: 730; line-height: 1.5; margin: 14px 0 18px; overflow-wrap: anywhere; }
.detail-summary { font-size: 18px; line-height: 1.9; color: #3f4c3e; overflow-wrap: anywhere; }
.detail-dates { color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px 15px; margin-top: 16px; }
.detail-callout { background: var(--wash); border-left: 3px solid var(--green); border-radius: 3px; padding: 18px 22px; margin-top: 28px; }
.detail-callout h2 { color: var(--green-deep); font-size: 20px; margin-bottom: 8px; }
.detail-callout p { color: #41533d; font-size: 15px; line-height: 1.95; white-space: pre-line; overflow-wrap: anywhere; }
.detail-section { margin-top: 28px; }
.detail-section h2 { font-size: 21px; margin-bottom: 11px; }
.detail-section p { color: #455242; font-size: 15px; line-height: 2; white-space: pre-line; overflow-wrap: anywhere; }
.detail-source-section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.source-link { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--green-deep); font-size: 14px; overflow-wrap: anywhere; }
.source-link small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.source-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.source-link.unavailable { color: var(--muted); }
.detail-aside { border-left: 1px solid var(--line); padding-left: 25px; }
.detail-aside h2 { font-size: 19px; margin: 1px 0 17px; }
.detail-facts { margin: 0; font-size: 13px; }
.detail-facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-facts dt { color: var(--muted); margin-bottom: 4px; }
.detail-facts dd { margin: 0; overflow-wrap: anywhere; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px 11px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.detail-tag { color: var(--green); text-decoration: underline; text-decoration-color: #b8cbb3; text-underline-offset: 4px; }
.detail-bottom { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 13px; }
.detail-bottom .back-link { margin: 0; }
.detail-bottom p { color: var(--muted); font-size: 12px; }
.detail-status { color: var(--muted); font-size: 13px; margin-top: 20px; padding-left: 12px; border-left: 2px solid #aebdab; }
.offer-section { color: var(--amber); }
.offer-section h2 { color: var(--amber); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; padding: 10px 18px; color: white; background: var(--green); }
.skip-link:focus { top: 12px; }
@media (min-width: 1600px) { .site-shell { width: min(1320px, calc(100% - 120px)); } }
@media (max-width: 1050px) {
  .site-shell { width: calc(100% - 56px); }
  .site-header { gap: 45px; }
  .primary-nav { gap: 29px; }
  .intro { gap: 24px; }
  .intro h1 { font-size: 29px; }
  .intro-copy { font-size: 15px; }
  .search-form { flex-basis: 330px; }
  .reading-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 25px; }
  .reading-tips { padding-left: 20px; }
  .featured-item { padding: 0 20px; }
  .featured-item h3 { font-size: 17px; }
  .featured-item .round-arrow { display: none; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 195px; gap: 32px; }
}
@media (max-width: 760px) {
  .site-shell { width: calc(100% - 40px); }
  .site-header { min-height: 104px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0; padding-top: 21px; }
  .brand { font-size: 24px; gap: 8px; }
  .brand-icon { width: 34px; height: 26px; }
  .primary-nav { width: 100%; align-self: auto; height: 43px; justify-content: space-between; gap: 12px; margin-top: 13px; }
  .primary-nav a { font-size: 13px; }
  .intro { display: block; padding: 28px 0 25px; }
  .intro h1 { font-size: 27px; letter-spacing: -.045em; }
  .intro-copy { font-size: 15px; margin-top: 7px; }
  .search-form { width: 100%; margin-top: 23px; height: 45px; }
  .search-form input { font-size: 14px; }
  .feed-notice { margin: -3px 0 22px; font-size: 12px; line-height: 1.9; }
  .section-heading { display: block; margin-bottom: 13px; }
  .section-heading h2, .list-heading h2, .reading-tips h2 { font-size: 20px; padding-left: 0; }
  .section-heading h2::before, .list-heading h2::before, .reading-tips h2::before { display: none; }
  .section-heading p { display: none; }
  .featured-section { margin-bottom: 23px; }
  .featured-band { display: block; padding: 0; border-radius: 5px; }
  .featured-item { border-left: 3px solid var(--green); padding: 15px 17px; }
  .featured-item + .featured-item { border-left: 3px solid var(--green); border-top: 1px solid #d5dfd0; }
  .featured-item:not(:first-child) { display: none; }
  .featured-band.is-expanded .featured-item { display: block; }
  .featured-item h3 { font-size: 18px; margin: 7px 0 6px; }
  .featured-item p { font-size: 13px; }
  .featured-item .item-meta { font-size: 11px; }
  .mobile-only { display: inline-block; }
  #more-featured { padding: 10px 0 0; font-size: 13px; }
  .kind-tabs { justify-content: space-between; gap: 4px; padding-bottom: 0; }
  .kind-tabs button { position: relative; font-size: 14px; padding: 8px 6px 12px; border-radius: 0; }
  .kind-tabs button[aria-pressed="true"] { color: var(--green); background: transparent; }
  .kind-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; height: 3px; bottom: -1px; left: 0; right: 0; background: var(--green); }
  .category-pills { display: none; }
  .mobile-category { display: block; margin-top: 15px; }
  .mobile-category select { width: 100%; min-height: 39px; border: 1px solid #bdc8ba; border-radius: 4px; color: #3f4c3b; background: var(--page); padding: 5px 10px; font-size: 13px; }
  .reading-layout { grid-template-columns: 1fr; margin-top: 25px; gap: 30px; }
  .list-heading { margin-bottom: 2px; }
  .list-heading p { font-size: 11px; }
  .list-context { font-size: 12px; margin-top: 11px; }
  .reading-item { padding: 18px 0; gap: 0; }
  .reading-item h3 { font-size: 19px; line-height: 1.6; margin: 6px 0; }
  .reading-item .round-arrow { display: none; }
  .item-summary { font-size: 13px; line-height: 1.9; margin-bottom: 9px; }
  .item-meta, .source-line { font-size: 11px; gap: 4px 9px; }
  .item-flag { font-size: 10px; }
  .github-data { font-size: 11px; }
  .reading-tips { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .reading-tips h2 { font-size: 17px; }
  .tips-body { padding: 16px; margin-top: 12px; }
  .tips-body p { font-size: 12px; }
  .tips-body p + p { margin-top: 11px; }
  .site-footer { margin-top: 28px; gap: 4px 10px; font-size: 11px; padding-bottom: 22px; }
  #data-updated { width: 100%; margin-left: 0; }
  .state-panel { padding: 26px 18px; }
  .state-panel h3 { font-size: 18px; }
  .state-panel p { font-size: 13px; }
  .detail-view { padding-top: 18px; }
  .back-link { font-size: 13px; margin-bottom: 17px; }
  .detail-layout { display: block; }
  .detail-article h1 { font-size: 27px; margin: 12px 0 16px; }
  .detail-summary { font-size: 16px; line-height: 1.95; }
  .detail-dates { margin-top: 14px; font-size: 11px; }
  .detail-callout { padding: 15px 17px; margin-top: 23px; }
  .detail-callout h2, .detail-section h2 { font-size: 19px; }
  .detail-callout p, .detail-section p { font-size: 14px; }
  .detail-section { margin-top: 25px; }
  .detail-source-section { padding-top: 22px; }
  .source-link { font-size: 13px; }
  .detail-aside { border-left: 0; padding: 24px 0 0; margin-top: 25px; border-top: 1px solid var(--line); }
  .detail-aside h2 { font-size: 17px; margin-bottom: 4px; }
  .detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; font-size: 12px; }
  .detail-facts div { padding: 11px 0; }
  .detail-bottom { margin-top: 24px; align-items: flex-start; }
  .detail-bottom p { font-size: 11px; }
}
@media (max-width: 360px) { .site-shell { width: calc(100% - 32px); } .intro h1 { font-size: 24px; } .intro-copy { font-size: 14px; } .primary-nav { gap: 8px; } .primary-nav a { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; } }
