:root {
  --bg-color: #faf7f2;         /* paper */
  --card-bg: #ffffff;          /* page card */
  --text-color: #2b2622;       /* ink */
  --title-color: #151311;      /* deep ink */
  --accent-color: #8b2c3b;     /* burgundy */
  --meta-color: #6e665c;       /* notes */
  --border-color: #e8e2d9;     /* hairline */
  --hover-bg: #f5f1ea;         /* paper hover */
  --shadow-light: 0 1px 3px rgba(0,0,0,0.03);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.06);
  --plyr-color-main: var(--accent-color);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  letter-spacing: 0.2px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

html {
  overflow-y: scroll;
  overscroll-behavior-y: none;
}

.safe-area-top-shim {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0px);
  background-color: var(--bg-color);
  z-index: 10;
  pointer-events: none;
}

a, button, .article-list-item, .back-link {
  -webkit-tap-highlight-color: rgba(139, 44, 59, 0.15);
}

*:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent-color), transparent 45%);
  outline-offset: 2px;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 12px;
}

.main-header {
  background: var(--card-bg);
  border-radius: var(--radius-m);
  padding: 16px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-header .pre-title {
  font-size: 1em;
  color: var(--meta-color);
  margin: 0 0 2px;
}

.main-header h1 {
  font-size: 2.2em;
  color: var(--title-color);
  line-height: 1.4;
  font-weight: 800;
  margin: 2px 0 4px;
  width: fit-content;
  font-family: 'Songti SC', 'Noto Serif SC', 'SimSun', 'FangSong', Georgia, serif;
}

.main-header h1::before {
  content: '✦';
  display: inline-block;
  margin-right: 0.5em;
  color: var(--accent-color);
  font-weight: 600;
  vertical-align: 0.02em;
}

.article-header {
  margin-bottom: 20px;
}

.article-header h1 {
  font-size: 2em;
  line-height: 1.4;
  font-weight: 800;
  margin: 2px 0 5px;
  color: var(--title-color);
  font-family: 'Songti SC', 'Noto Serif SC', 'SimSun', 'FangSong', Georgia, serif;
}

.article-content {
  font-size: 1.1em;
  text-align: justify;
  animation: fadeIn 0.4s ease-out both;
  text-justify: inter-ideograph;
  line-break: strict;
  overflow-wrap: anywhere;
}

.article-content p {
  margin-top: 0;
  margin-bottom: 1em;
}

.article-content a {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-content a:hover {
  color: var(--title-color);
  text-decoration-color: var(--title-color);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--title-color);
  font-weight: 800;
  margin: 1.2em 0 0.5em;
  line-height: 1.35;
  font-family: 'Songti SC', 'Noto Serif SC', Georgia, serif;
}

.article-content h2 { font-size: 1.3em; }
.article-content h3 { font-size: 1.2em; }
.article-content h4 { font-size: 1.1em; }

.article-content ul {
  padding-left: 20px;
}

.article-content img:not(.favicon) {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  display: block;
  margin: 1em auto;
  box-shadow: var(--shadow-light);
}

.article-content blockquote {
  padding: 1em 1em;
  margin: 1.2em 0;
  color: #61584e;
  background-color: rgba(139,44,59,0.04);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  font-family: 'Songti SC', 'Noto Serif SC', Georgia, serif;
  font-style: normal;
}

.article-content blockquote p {
  margin: 0;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1em 0;
  opacity: 0.9;
}

.plyr--audio {
  --plyr-range-track-height: 3px;
  --plyr-range-thumb-height: 14px;
  --plyr-range-thumb-width: 14px;
  --plyr-range-thumb-shadow: 0 2px 4px rgba(0,0,0,0.1);
  --plyr-range-thumb-border: 2px solid var(--bg-color);
  --plyr-control-icon-size: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-m);
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-light);
}

.plyr--audio .plyr__controls {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}

.plyr__controls .plyr__controls__item.plyr__control {
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: var(--radius-s);
}

.plyr__controls .plyr__controls__item.plyr__control:hover {
  background: var(--hover-bg);
  transform: scale(1.05);
}

.plyr--audio .plyr__controls .plyr__control svg {
  color: var(--text-color);
}

.plyr--audio .plyr__controls .plyr__control:hover svg {
  color: var(--accent-color);
}

.back-link {
  display: inline-block;
  width: fit-content;
  margin-bottom: 10px;
  color: var(--accent-color);
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  background: var(--card-bg);
  padding: 5px 12px;
  border-radius: var(--radius-m);
  font-size: 0.9em;
  font-weight: bold;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.back-link:hover {
  transform: translateY(-1px);
  background: var(--hover-bg);
  box-shadow: var(--shadow-hover);
  color: var(--accent-color);
}

.sidebar {
  display: none;
}

.main-content {
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 18px 24px;
}

.persistent-player-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  padding: 8px 15px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.persistent-player-container:not(.hidden) {
  transform: translateY(0);
}

.persistent-player-container.hidden {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav-item a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--text-color);
  border-radius: var(--radius-m);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1px;
  font-size: 0.96em;
  line-height: 1.4;
}

.sidebar-nav-item a:hover {
  background-color: var(--hover-bg);
  transform: translateY(-2px);
}

.sidebar-nav-item.active a {
  background: var(--card-bg);
  color: var(--accent-color);
  font-weight: bold;
  border: 1px solid var(--border-color);
}

.summary-title {
  font-weight: 700;
  color: color-mix(in oklab, var(--accent-color), var(--title-color) 40%);
}

.article-meta {
  font-size: 0.85em;
  color: var(--meta-color);
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0px;
}

.article-meta a {
  color: inherit;
  text-decoration: none;
}

.article-meta a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

.article-meta .link-favicon {
  margin-right: 0.7em;
}

.link-favicon {
  width: 1em;
  height: 1em;
  border-radius: 3px;
  flex-shrink: 0;
}

.ptr--top {
  touch-action: pan-y;
}

.ptr--ptr {
  box-shadow: none !important;
  background: transparent !important;
}

.ptr--box {
  padding: 20px 0;
}

.ptr--text,
.ptr--icon {
  color: var(--meta-color);
}

hr.summary-separator {
  display: none;
  border: none;
  border-top: 1px solid var(--accent-color);
  margin: 0;
  opacity: 0.6;
}

.article-list-item {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-m);
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
  display: flex;
  align-items: center;
}

.article-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in oklab, var(--border-color), var(--accent-color) 12%);
}

.article-list-item:not(.rich-item) a {
  font-size: 1.05em;
  color: var(--title-color);
  text-decoration: none;
  display: block;
  width: 100%;
  padding: 8px 14px;
  transition: color 0.3s ease;
}

.article-list-item a:hover {
  color: var(--accent-color);
}

.player-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  pointer-events: auto;
}

.track-info {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.9em;
  color: var(--meta-color);
}

#persistent-player {
  max-width: 300px;
  width: 100%;
}

.app-container {
  padding-bottom: 6px;
  padding-top: env(safe-area-inset-top);
}

.podcast-play-wrapper {
  background: transparent;
  border-radius: var(--radius-m);
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: none;
  border: 1px solid var(--border-color);
}

.podcast-play-wrapper:hover {
  background: var(--hover-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.podcast-play-icon {
  background: var(--accent-color);
  border: none;
  padding: 0;
  margin: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.2s ease;
}

.podcast-play-icon svg {
  width: 14px;
  height: 14px;
  margin-left: 0px;
}

.podcast-play-text {
  font-weight: 700;
  font-size: 0.95em;
  color: var(--accent-color);
}

.podcast-play-wrapper:hover .podcast-play-icon {
  transform: scale(1.1);
}

.article-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-nav-link {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-m);
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
  background: var(--card-bg);
  box-shadow: var(--shadow-light);
  white-space: nowrap;
}

.article-nav-link:hover {
  background: var(--hover-bg);
  color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in oklab, var(--border-color), var(--accent-color) 12%);
}

.player-controls-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.player-nav-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.player-nav-btn:hover {
  color: var(--accent-color);
  background-color: var(--hover-bg);
  transform: scale(1.1);
}

.player-nav-btn svg {
  width: 22px;
  height: 22px;
}

.player-close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--meta-color);
    opacity: 0.7;
    transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    margin-left: -2px;
    flex-shrink: 0;
}

.player-close-btn:hover {
    color: var(--accent-color);
    opacity: 1;
    background-color: var(--hover-bg);
    transform: scale(1.1);
}

.player-close-btn svg {
    width: 18px;
    height: 18px;
}

.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px
}

.pagination-controls button {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-m);
  padding: 8px 16px;
  font-size: 0.9em;
  font-weight: bold;
  color: var(--accent-color);
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-light);
}

.pagination-controls button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--hover-bg);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in oklab, var(--border-color), var(--accent-color) 12%);
}

.pagination-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pagination-info {
  font-size: 0.9em;
  color: var(--meta-color);
  font-weight: 500;
}

.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
  border-radius: 8px;
  opacity: 0.7;
}

.skeleton-back-link { width: 100px; height: 30px; margin-bottom: 20px; }
.skeleton-title { width: 90%; height: 2.4em; margin-bottom: 8px; }
.skeleton-meta { width: 60%; height: 1em; }
.skeleton-text { width: 100%; height: 1.2em; margin-top: 1em; }
.skeleton-text:first-child { margin-top: 2em; }
.skeleton-text:last-child { width: 70%; }
.skeleton-pre-title { width: 40%; max-width: 280px; height: 1em; margin-bottom: 0.7em; }
.skeleton-main-title { width: 60%; max-width: 400px; height: 2.5em; margin-bottom: 2em; }
.skeleton-list-item { height: 1.1em; padding: 10px 16px; margin: 0; background-clip: content-box; }
.skeleton.skeleton-list-item-content { border-radius: 999px; background-clip: content-box; border-top: 10px solid transparent; border-bottom: 10px solid transparent; padding-top: 0; padding-bottom: 0; }
#title-list-container .summary-separator.skeleton { animation: none; height: 1px; border: none; opacity: 0.5; background-color: hsl(38, 25%, 85%); }

@keyframes skeleton-loading {
  0% { background-color: hsl(38, 25%, 85%); }
  100% { background-color: hsl(38, 25%, 95%); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 要点列表 --- */
.content-highlights-list {
  margin: 0.8em 0;
  margin-top: -2px;
  margin-bottom: 20px;
  padding-left: 0;
  list-style-type: none;
  margin-left: -20px;
}

.content-highlights-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-color);
}

.content-highlights-list .bullet {
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background-color: var(--accent-color);
  border-radius: 50%;
  color: #ffffff;
  text-align: center;
  line-height: 18px;
  font-size: 13px;
  font-weight: 600;
}

/* --- 观点卡片组 --- */
.content-viewpoint-container {
  margin: 0.8em 0;
  margin-top: -5px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.content-viewpoint-item {
  display: inline-block;
  vertical-align: top;
  width: 200px;
  margin: 10px;
  text-align: left;
}

.content-viewpoint-card {
  padding: 16px;
  background-color: var(--card-bg);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-light);
  white-space: normal;
  overflow-wrap: break-word;
  border: 1px solid var(--border-color);
}

.content-viewpoint-card .source {
  margin: 0 0 10px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.5;
}

.content-viewpoint-card .text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
}

/* --- 时间线卡片组 --- */
.content-timeline-container {
  margin: 20px 0;
  margin-top: -8px;
  box-sizing: border-box;
}

.content-timeline-container *, .content-timeline-container *::before, .content-timeline-container *::after {
  box-sizing: border-box;
}

.content-timeline {
  position: relative;
  list-style-type: none;
  margin: 0;
  padding: 0;
  margin-left: -20px;
}

.content-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 15px;
  bottom: 5px;
  width: 3px;
  background-color: var(--accent-color);
  opacity: 0.6;
}

.content-timeline li {
  position: relative;
  margin-bottom: 18px;
  padding-left: 32px;
}

.content-timeline .marker,
.content-timeline > li > span:first-child {
  position: absolute;
  left: 0;
  top: 5.5px;
  width: 18px;
  height: 18px;
  background-color: var(--accent-color);
  border-radius: 50%;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 18px;
}

.content-timeline > li > span:has(div) {
  display: contents;
}

.content-timeline .date {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-color);
  text-align: left;
}

.content-timeline .description {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  text-align: left;
}

/* --- 问答卡片 --- */
.content-qa-card {
  margin: 0.8em 0;
  margin-bottom: 20px;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.content-qa-card .question,
.content-qa-card .answer {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-color);
}

.content-qa-card .question { margin: 0 0 12px 0; }
.content-qa-card .answer { margin: 0; }

/* --- 信息提示框 --- */
.content-info-box {
  margin: 0.8em 0;
  margin-bottom: 20px;
  padding: 20px;
  background-color: rgba(139, 44, 59, 0.05);
  border-radius: var(--radius-s);
  border: 1px solid var(--border-color);
}

.content-info-box p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-color);
}

/* --- 来源列表 --- */
.content-source-container {
  margin: 20px 0;
  border-top: 1px solid var(--border-color);
}

.content-source-item { margin-bottom: 2px; }
.content-source-item:last-child { margin-bottom: 0; }

.content-source-item a {
  text-decoration: none;
  display: inline-block;
  padding: 3px 6px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  line-height: 1;
}

.content-source-item a:hover { background-color: var(--hover-bg); }
.content-source-item table { width: 100%; border-spacing: 0; }
.content-source-item .favicon-cell { padding-right: 10px; vertical-align: middle; width: 20px; }
.content-source-item .favicon { width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; transform: translateY(-2px); }
.content-source-item .domain-cell { vertical-align: middle; }
.content-source-item .domain-name { margin: 0; font-family: 'Google Sans', Roboto, Arial, sans-serif; font-size: 13px; font-weight: 600; color: var(--title-color); line-height: 1.3; }

/* --- 分类导航 --- */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 10px;
    border-bottom: none;
}

.category-button {
    padding: 4px 7px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.category-button:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background-color: var(--hover-bg);
    color: var(--accent-color);
    border-color: color-mix(in oklab, var(--border-color), var(--accent-color) 12%);
}

.category-button.active {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-light);
    border-color: var(--accent-color);
}

.skeleton-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 10px;
}

.skeleton-category-button {
    height: 21px;
    border-radius: 12px;
}

/* --- 图文列表项 --- */
.article-list-item.rich-item {
    display: block;
    padding: 0;
}

.article-list-item.rich-item .article-link-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.rich-item .text-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rich-item .item-title {
    font-size: 1em;
    font-weight: 700;
    color: var(--title-color);
    line-height: 1.4;
    transition: color 0.2s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rich-item .item-summary {
    font-size: 0.85em;
    color: var(--meta-color);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rich-item .item-summary.single-line {
    -webkit-line-clamp: 1;
}

.rich-item .image-container {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: var(--radius-s);
    background-color: var(--hover-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rich-item .image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    -webkit-mask-image: url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e%3ctext x='50%25' y='50%25' text-anchor='middle' dominant-baseline='central' font-size='24' fill='white'%3e✦%3c/text%3e%3c/svg%3e");
    mask-image: url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e%3ctext x='50%25' y='50%25' text-anchor='middle' dominant-baseline='central' font-size='24' fill='white'%3e✦%3c/text%3e%3c/svg%3e");
    -webkit-mask-size: 24px 24px;
    mask-size: 36px 36px;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    opacity: 0.8;
}

.rich-item .item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    color: transparent;
}

.image-placeholder-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-color);
    opacity: 0.5;
}

/* --- 已访问链接高亮 --- */
.article-list-item.last-visited > a.summary-title {
    color: var(--accent-color);
}

.article-list-item.rich-item.last-visited .item-title {
    color: var(--accent-color);
}

/* --- 响应式布局：桌面端 --- */
@media (min-width: 1024px) {
  .page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 10px 24px;
  }

  .sidebar {
    display: block;
    position: sticky;
    top: 10px;
    flex: 0 0 280px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px;
    box-sizing: border-box;
  }

  body.player-active .sidebar {
    height: calc(100vh - 95px);
  }

  .main-content {
    flex-basis: 680px;
    max-width: 680px;
    padding: 0;
    margin: 0;
    width: auto;
  }

  .article-content {
    font-size: 1.0625em;
  }

  .persistent-player-container .plyr--audio {
    padding-top: 4px;
    padding-bottom: 4px;
    --plyr-control-icon-size: 14px;
    --plyr-range-thumb-height: 10px;
    --plyr-range-thumb-width: 10px;
    --plyr-range-track-height: 2px;
  }

  .article-list-item a {
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .article-list-item a:hover {
     transform: none;
  }

  .sidebar-header-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--bg-color);
    padding-top: 0;
    padding-bottom: 0.8rem;
  }

  .sidebar-header-sticky h2 {
    font-family: 'Songti SC', 'Noto Serif SC', 'SimSun', 'FangSong', Georgia, serif;
    color: var(--title-color);
    font-weight: 800;
    font-size: 1.6em;
    margin-top: 0 !important;
    margin-bottom: 6px;
 }

  .sidebar-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .sidebar-category-button {
    padding: 5px 6px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 0.7em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
  }

  .sidebar-category-button:hover:not(.active) {
    box-shadow: var(--shadow-hover);
    background-color: var(--hover-bg);
    color: var(--accent-color);
    transform: translateY(-1px);
    border-color: color-mix(in oklab, var(--border-color), var(--accent-color) 12%);
  }

  .sidebar-category-button.active {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-light);
    border-color: var(--accent-color);
  }
}

/* --- 响应式布局：移动端 --- */
@media (max-width: 1024px) {
  .podcast-play-text {
    font-size: 0.9em;
  }


  .persistent-player-container {
    padding-top: 5px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .player-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 8px;
  }

  .persistent-player-container .plyr--audio {
    width: 100%;
    padding: 6px 8px;
    border-radius: var(--radius-s);
    --plyr-control-icon-size: 14px;
    --plyr-range-track-height: 2px;
    --plyr-range-thumb-height: 10px;
    --plyr-range-thumb-width: 14px;
    --plyr-range-thumb-border: 1px solid var(--bg-color);
  }

  .player-controls-wrapper {
    order: 1;
    flex-basis: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
  }

  .player-nav-btn {
    padding: 6px;
  }

  .player-nav-btn svg {
    width: 20px;
    height: 20px;
  }

  .track-info {
    order: 2;
    flex-basis: 100%;
    flex-grow: 0;
    text-align: center;
    font-size: 0.8em;
  }

  .plyr--audio .plyr__controls .plyr__time--duration {
      display: inline !important;
  }

  .plyr--audio .plyr__controls .plyr__time--current {
      margin-right: 0 !important;
      padding-right: 1px !important;
  }

  .plyr--audio .plyr__controls .plyr__time--current + .plyr__time--duration::before {
      content: '/';
      margin: 0 !important;
      padding-right: 1px !important;
      color: var(--meta-color);
  }

  .plyr__controls__item.plyr__time {
      font-size: 13px;
      color: var(--meta-color);
      padding: 0;
  }

  .player-close-btn {
      position: absolute;
      top: 0;
      right: 20px;
      transform: translateY(-50%);
      width: 20px;
      height: 20px;
      padding: 0;
      background-color: var(--bg-color);
      border: 1px solid var(--border-color);
      opacity: 1;
      margin-left: 0;
  }

  .player-close-btn svg {
      width: 12px;
      height: 12px;
      color: var(--meta-color);
      opacity: 0.7;
  }

  .player-close-btn:hover {
      background-color: var(--hover-bg);
      border-color: var(--accent-color);
      transform: translateY(-50%) scale(1.1);
  }

  .player-close-btn:hover svg {
      opacity: 1;
  }

  .persistent-player-container.hidden .player-close-btn {
      display: none;
  }
  
  body.player-active .ios-overlay .article-footer {
  margin-bottom: 80px;
  }
}

/* --- 暗色模式 --- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #252220;
    --card-bg: #2c2826;
    --text-color: #efe8de;
    --title-color: #f7f3ee;
    --meta-color: #c0b6a7;
    --accent-color: #d16b6b;
    --border-color: #3b3734;
    --hover-bg: #35312e;
    --shadow-light: none;
    --shadow-hover: none;
  }

  .article-content blockquote {
    color: var(--meta-color);
    background-color: rgba(209, 107, 107, 0.1);
    border-left-color: var(--accent-color);
  }

  .ptr--text, .ptr--icon { color: var(--text-color) !important; }

  .plyr__controls .plyr__controls__item.plyr__control:hover,
  .sidebar-nav-item a:hover,
  .player-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }

  @keyframes skeleton-loading {
    0% { background-color: hsl(30, 8%, 25%); }
    100% { background-color: hsl(30, 8%, 35%); }
  }

  #title-list-container .summary-separator.skeleton { background-color: hsl(30, 8%, 25%); }

  .content-info-box { background: none; background-color: rgba(209, 107, 107, 0.1); }
}

/* --- 滚动条样式 --- */
* { scrollbar-width: thin; scrollbar-color: var(--meta-color) transparent; }
*::-webkit-scrollbar { height: 8px; width: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 8px; }
@media (prefers-color-scheme: dark) {
  *::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); }
}

/* --- 浏览器兼容性修复 --- */
.plyr--full-ui input[type=range]::-webkit-slider-runnable-track,
.plyr--full-ui input[type=range]::-webkit-slider-thumb {
  -webkit-user-select: none;
  user-select: none;
}

/* --- 视图切换与 iOS 体验优化 --- */
.view-hidden {
    display: none !important;
}

.ios-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: var(--bg-color);
}

.ios-overlay .main-content,
.ios-overlay .sidebar {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body[data-scroll-locked="true"] .ios-overlay .sidebar {
    position: absolute;
    top: 10px;
    bottom: 10px;
    height: auto;
}

/* --- 列表页刷新按钮 --- */
.main-header {
  position: relative;
}

.refresh-list-btn {
    position: absolute;
    top: 14px;
    right: 12px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
    color: color-mix(in srgb, var(--meta-color) 50%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.3s ease;
}

.refresh-list-btn:hover:not(.is-loading) {
    color: var(--accent-color);
    background-color: var(--hover-bg);
    transform: rotate(90deg);
}

.refresh-list-btn svg {
    width: 20px;
    height: 20px;
}

.refresh-list-btn.is-loading {
    animation: spin 1s linear infinite;
    pointer-events: none;
    color: var(--accent-color);
}

.refresh-list-btn:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent-color), transparent 45%);
  outline-offset: 2px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- 全站搜索样式 --- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    gap: 12px;
}

.category-nav {
    margin: 0;
    flex-grow: 1;
}

#search-trigger-btn {
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    height: 29px;
    width: 29px;
    box-sizing: border-box;
}

#search-trigger-btn svg {
    width: 1.1em;
    height: 1.1em;
}

#search-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

#search-dialog.is-active {
    display: flex;
}

.search-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 34, 32, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

@media (prefers-color-scheme: dark) {
    .search-dialog-overlay {
        background-color: rgba(0, 0, 0, 0.6);
    }
}

.search-dialog-content {
    position: relative;
    z-index: 1;
    background-color: var(--card-bg);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-hover);
    width: calc(100% - 24px);
    max-width: 600px;
    margin-top: 10vh;
    overflow: hidden;
}

.search-wrapper {
    position: relative;
    padding: 12px;
}

#site-search-input {
    width: 100%;
    padding: 12px 80px 12px 16px; 
    font-size: 1em;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-m);
    background-color: var(--card-bg);
    color: var(--text-color);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#site-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-color), transparent 70%);
}

#site-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: none;
}

.search-submit-btn,
#search-close-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--meta-color);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.search-submit-btn:hover,
#search-close-btn:hover {
    color: var(--accent-color);
}

#search-close-btn {
    right: 12px;
}

.search-submit-btn {
    right: 44px;
}

.search-submit-btn svg,
#search-close-btn svg {
    width: 20px;
    height: 20px;
}

#site-search-results {
    border-top: 1px solid var(--border-color);
    max-height: 60vh;
    overflow-y: auto;
}

.search-results-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: var(--radius-s);
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: var(--hover-bg);
}

.search-result-title {
    font-weight: 700;
    color: var(--title-color);
    font-size: 1em;
    margin-bottom: 4px;
}

.search-result-snippet {
    font-size: 0.85em;
    color: var(--meta-color);
    line-height: 1.5;
}

.search-result-snippet mark {
    background-color: color-mix(in oklab, var(--accent-color), transparent 70%);
    color: var(--accent-color);
    font-weight: 600;
    padding: 1px 2px;
    border-radius: 3px;
}

.search-loading,
.search-no-results,
.search-error {
    padding: 20px;
    text-align: center;
    color: var(--meta-color);
    font-size: 0.9em;
}