/* 静态文件导入 自定义样式*/

#theme-fukasawa .sideLeft hr{
    opacity: .04;
}
.fa-info:before {
    content: "\f05a";
}

/* --- maynor1024.live typography / layout polish (2026-11-05) --- */
/* --- pass 2: readability + home/nav spacing (2026-11-06) --- */

/* Low-contrast nav tagline (BIO): text-light-400 is undefined in tailwind config */
#nav-bar-swipe h1 {
  color: #4b5563 !important; /* gray-600 */
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.dark #nav-bar-swipe h1,
html.dark #nav-bar-swipe h1 {
  color: #d1d5db !important; /* gray-300 */
}

/* ---------- Top nav: less cramped ---------- */
#theme-heo #nav {
  letter-spacing: 0.01em;
}
#theme-heo #nav-mobile a,
#theme-heo #nav-mobile .cursor-pointer {
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
  margin: 0 0.1rem;
}
@media (max-width: 768px) {
  #theme-heo #nav .max-w-\[86rem\] {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ---------- Category bar ---------- */
#theme-heo #category-bar {
  min-height: 3.25rem;
  height: auto !important;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  margin-bottom: 1.15rem !important;
  gap: 0.5rem;
}
#theme-heo #category-bar-items {
  gap: 0.35rem;
  padding: 0.1rem 0;
}
#theme-heo #category-bar-items > div {
  margin-right: 0.4rem !important;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.925rem;
  line-height: 1.35;
  border-radius: 0.5rem;
}
#theme-heo #category-bar-next a {
  padding: 0.25rem 0.35rem;
  font-size: 0.925rem;
}

/* ---------- Home card grid / typography ---------- */
#theme-heo #container > div.grid-cols-1,
#theme-heo #container > .grid-cols-1 {
  gap: 1.35rem !important;
  row-gap: 1.35rem !important;
}
#theme-heo #container article {
  margin-bottom: 0.15rem;
}
#theme-heo #container article > div {
  margin-bottom: 1.15rem !important;
  border-radius: 0.9rem !important;
}
/* Card text block */
#theme-heo #container article > div > div.flex.p-6,
#theme-heo #container article .flex.p-6 {
  padding: 1.35rem 1.4rem !important;
  gap: 0.55rem;
}
/* Title */
#theme-heo #container article a.replace.text-xl,
#theme-heo #container article .text-xl.font-extrabold {
  line-height: 1.45 !important;
  letter-spacing: -0.015em;
}
/* Summary */
#theme-heo #container article main.replace,
#theme-heo #container article main.line-clamp-2 {
  line-height: 1.65 !important;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  color: #4b5563;
}
.dark #theme-heo #container article main.replace,
html.dark #theme-heo #container article main.line-clamp-2 {
  color: #d1d5db;
}
/* Tags row breathing room */
#theme-heo #container article .md\:flex-nowrap {
  margin-top: 0.25rem;
}

@media (min-width: 1536px) {
  #theme-heo #container > .2xl\:grid,
  #theme-heo #container > div[class*="2xl:grid"] {
    gap: 1.5rem !important;
  }
}

/* ---------- Article body: readable measure + breathing room ---------- */
#notion-article {
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}
#notion-article .notion {
  font-size: 17px;
  line-height: 1.85;
  color: #1f2937;
  letter-spacing: 0.01em;
  word-break: break-word;
}
.dark #notion-article .notion,
html.dark #notion-article .notion {
  color: #e5e7eb;
}

#notion-article .notion-page,
#notion-article .notion.notion-page {
  max-width: 44rem; /* ~704px readable Chinese/English measure */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

#notion-article .notion-h {
  line-height: 1.4;
  margin-top: 1.85em !important;
  margin-bottom: 0.65em !important;
  padding-top: 0.2em;
  padding-bottom: 0.12em;
  letter-spacing: -0.015em;
  font-weight: 700;
}
#notion-article .notion-h1 {
  margin-top: 2em !important;
  margin-bottom: 0.7em !important;
  font-size: 1.65em;
}
#notion-article .notion-h2 {
  margin-top: 1.7em !important;
  margin-bottom: 0.6em !important;
  font-size: 1.38em;
}
#notion-article .notion-h3 {
  margin-top: 1.45em !important;
  margin-bottom: 0.5em !important;
  font-size: 1.18em;
}
#notion-article .notion-h4 {
  margin-top: 1.3em !important;
  margin-bottom: 0.45em !important;
}

#notion-article .notion-h:first-child,
#notion-article .notion-page > .notion-h:first-of-type {
  margin-top: 0.35em !important;
}

#notion-article .notion-text {
  padding: 0.4em 0.1em !important;
  margin: 0.45em 0 !important;
  line-height: 1.9 !important;
}

#notion-article .notion-list {
  margin: 0.45em 0 0.7em !important;
  padding: 0.2em 0 !important;
  line-height: 1.8;
}
#notion-article .notion-list li {
  margin: 0.35em 0;
  padding: 0.12em 0;
  line-height: 1.75;
}

#notion-article .notion-quote {
  margin: 1.25em 0 !important;
  padding: 0.95em 1.15em !important;
  line-height: 1.75;
  border-radius: 0.5rem;
}

#notion-article .notion-callout {
  margin: 1.2em 0 !important;
  border-radius: 0.65rem;
}

#notion-article .notion-hr {
  margin: 1.75em 0 !important;
  opacity: 0.55;
}

/* Images */
#notion-article .notion-asset-wrapper {
  margin: 1.45em 0 !important;
}
#notion-article .notion-asset-wrapper-image {
  margin: 1.55em auto !important;
}
#notion-article .notion-asset-wrapper-image img {
  border-radius: 0.75rem;
  max-width: 100%;
  height: auto;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
#notion-article .notion-asset-caption {
  margin-top: 0.55em !important;
  font-size: 0.875em;
  line-height: 1.5;
  color: #6b7280;
  text-align: center;
}
.dark #notion-article .notion-asset-caption,
html.dark #notion-article .notion-asset-caption {
  color: #9ca3af;
}

/* Hide broken images gracefully (CSDN hotlink / 403 fallback) */
#notion-article .notion-asset-wrapper-image img.is-broken,
#notion-article img.is-broken {
  display: none !important;
}
#notion-article .notion-asset-wrapper-image.is-broken-wrap {
  display: none !important;
}

/* Soften dense collection properties leftover if any */
#notion-article .notion-collection-page-properties {
  display: none !important;
}

/* ---------- Code blocks & inline code ---------- */
#notion-article .notion-code,
#notion-article pre.notion-code,
#notion-article pre[class*='language-'] {
  margin: 1.25em 0 !important;
  padding: 1.05rem 1.15rem !important;
  border-radius: 0.75rem !important;
  font-size: 0.875em !important;
  line-height: 1.7 !important;
  overflow-x: auto;
  tab-size: 2;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dark #notion-article .notion-code,
html.dark #notion-article .notion-code,
.dark #notion-article pre[class*='language-'],
html.dark #notion-article pre[class*='language-'] {
  border-color: rgba(75, 85, 99, 0.55);
}
#notion-article .notion-code .token,
#notion-article code[class*='language-'] {
  font-size: inherit;
  line-height: inherit;
}
#notion-article .notion-inline-code {
  padding: 0.15em 0.4em !important;
  margin: 0 0.1em;
  border-radius: 0.35rem;
  font-size: 0.9em;
  line-height: 1.45;
  background: rgba(99, 102, 241, 0.08) !important;
  border: 1px solid rgba(99, 102, 241, 0.12);
}
.dark #notion-article .notion-inline-code,
html.dark #notion-article .notion-inline-code {
  background: rgba(250, 204, 21, 0.1) !important;
  border-color: rgba(250, 204, 21, 0.18);
}

/* Tables */
#notion-article .notion-simple-table,
#notion-article table {
  margin: 1.25em 0 !important;
  font-size: 0.95em;
  line-height: 1.55;
}
#notion-article .notion-simple-table td,
#notion-article .notion-simple-table th {
  padding: 0.55em 0.75em !important;
}

/* Links in article */
#notion-article .notion-link,
#notion-article a.notion-link {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

/* Bookmark / embed */
#notion-article .notion-bookmark {
  margin: 1.25em 0 !important;
  border-radius: 0.65rem;
  overflow: hidden;
}

/* ---------- Mobile article ---------- */
@media (max-width: 768px) {
  #notion-article .notion {
    font-size: 16px;
    line-height: 1.82;
  }
  #notion-article .notion-page,
  #notion-article .notion.notion-page {
    max-width: 100%;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
  }
  #notion-article .notion-h1 { font-size: 1.45em; }
  #notion-article .notion-h2 { font-size: 1.28em; }
  #notion-article .notion-h3 { font-size: 1.12em; }
  #notion-article .notion-text {
    padding: 0.32em 0.05em !important;
    margin: 0.38em 0 !important;
  }
  #notion-article .notion-code,
  #notion-article pre.notion-code,
  #notion-article pre[class*='language-'] {
    padding: 0.9rem 0.85rem !important;
    font-size: 0.8125em !important;
    border-radius: 0.6rem !important;
    margin: 1.05em -0.15rem !important;
  }
  #notion-article .notion-asset-wrapper,
  #notion-article .notion-asset-wrapper-image {
    margin: 1.2em 0 !important;
  }
  #theme-heo #container article > div {
    margin-bottom: 1rem !important;
  }
  #theme-heo #container article > div > div.flex.p-6,
  #theme-heo #container article .flex.p-6 {
    padding: 1.15rem 1.1rem !important;
  }
  #theme-heo #category-bar-items > div {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.875rem;
  }
}

/* Prefer readable wrapping for long URLs / code-ish text */
#notion-article .notion-text,
#notion-article .notion-list {
  overflow-wrap: anywhere;
}
