.thoughts [hidden] { display: none !important; }
.thoughts { padding-top: 0 !important; margin-top: 0 !important; }
.thoughts-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--md-default-fg-color--lighter); }
.thoughts-eyebrow { color: var(--md-default-fg-color--light); font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; }
.thoughts-heading h1 { margin: .5rem 0 .8rem; font-weight: 700; }
.thoughts-total { font-size: 2.2rem; line-height: 1.2; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.thoughts-total small { display: block; font-size: .6rem; font-weight: 400; color: var(--md-default-fg-color--light); white-space: nowrap; }
.thoughts-toolbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .5rem 0 1.2rem; font-size: .65rem; }
.thoughts-toolbar label { color: var(--md-default-fg-color--light); }
.thoughts-toolbar select, .thoughts button { font: inherit; color: var(--md-default-fg-color); background: var(--md-code-bg-color); border: 1px solid var(--md-default-fg-color--lighter); border-radius: .4rem; padding: .4rem .6rem; cursor: pointer; }
.thoughts-toolbar select:hover, .thoughts button:hover { border-color: #2196F3; }
#thoughts-count { margin-left: auto; color: var(--md-default-fg-color--light); }
.thoughts-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; align-items: stretch; max-width: 1200px; margin: 0 auto; }
.thoughts-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--md-default-fg-color--lighter); border-radius: .8rem; padding: 1.1rem; background: #ffffff; transition: border-color .2s, box-shadow .2s, transform .2s; }
[data-md-color-scheme="slate"] .thoughts-card { background: #2a2d3a; }
.thoughts-card:hover { border-color: #2196F3; box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15); transform: translateY(-2px); }
.thoughts-card header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.thoughts-card header time { color: var(--md-default-fg-color--light); font-size: .55rem; text-transform: uppercase; letter-spacing: .05em; }
.thoughts-category-badge { display: inline-block; background: #2196F3; color: white; font-size: .5rem; padding: .2rem .4rem; border-radius: .25rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.thoughts-card h2 { font-size: 1.05rem; line-height: 1.5; margin: .5rem 0 .8rem; overflow-wrap: anywhere; font-weight: 600; }
.thoughts-card h2 a { color: var(--md-default-fg-color); text-decoration: none; }
.thoughts-card h2 a:hover { color: #2196F3; }
.thoughts-card-body { font-size: .7rem; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 1rem; color: #555555; }
[data-md-color-scheme="slate"] .thoughts-card-body { color: #b0b0b0; }
.thoughts-card-image { display: block; width: 100%; max-height: 14rem; object-fit: cover; border-radius: .4rem; margin-bottom: .8rem; }
.thoughts-card footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .8rem; margin-top: auto; border-top: 1px solid var(--md-default-fg-color--lighter); font-size: .6rem; }
.thoughts-card footer a { color: #2196F3; text-decoration: none; font-weight: 500; }
.thoughts-card footer a:hover { text-decoration: underline; }
.thoughts-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.thoughts-tags span { border: 1px solid var(--md-default-fg-color--lighter); border-radius: .25rem; color: var(--md-default-fg-color--light); padding: .15rem .4rem; font-size: .55rem; background: var(--md-code-bg-color); }
.thoughts-record-note { color: var(--md-default-fg-color--light); font-size: .55rem; font-style: italic; margin-top: .5rem; }
#thoughts-more { display: block; margin: 1.5rem auto 0; cursor: pointer; font-size: .7rem; padding: .6rem 1.2rem; }
.thoughts a:focus-visible, .thoughts select:focus-visible, .thoughts button:focus-visible { outline: 2px solid #2196F3; outline-offset: 4px; }

/* 单篇随想文章页面样式 */
.thought-post { position: relative; padding-top: 0 !important; margin-top: 0 !important; }
/* 隐藏 document-dates 插件在单篇文章顶部自动添加的时间 */
.thought-post > p:first-of-type time,
.thought-post .md-content__inner > p:first-of-type time {
  display: none;
}
.thought-back { font-size: .7rem; color: #2196F3; text-decoration: none; display: inline-block; margin-bottom: .3rem; margin-top: 0; }
.thought-back:hover { text-decoration: underline; }
.thought-post-heading { margin: 0 0 1.5rem; }
.thought-post-heading h1 { margin: 0; }
.md-typeset .thoughts-heading h1 { margin: .5rem 0 .8rem; }
.md-typeset .thoughts-card h2 { margin: .5rem 0 .8rem; padding: 0; border: 0; font-size: 1.05rem; }
.md-typeset .thought-post-heading h1 { margin: .3rem 0; }
.thought-source { font-size: .65rem; color: var(--md-default-fg-color--light); margin: .3rem 0; }
.thought-editor-note { font-size: .65rem; padding: .8rem 1rem; border-left: 2px solid #2196F3; background: var(--md-code-bg-color); margin: .8rem 0; }
@media (max-width: 76em) {
  .thoughts-feed { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
@media (max-width: 60em) {
  .thoughts-feed { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 50em) {
  .thoughts-feed { grid-template-columns: 1fr; }
  .thoughts-total { font-size: 1.6rem; }
  #thoughts-count { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .thoughts-card { transition: none; }
}
