/* Integration overrides for Zyang / ZYYO. The five original stylesheets are unchanged. */
html { color-scheme: light; scroll-padding-top: 85px; }
html.Dark { color-scheme: dark; }
body { font-family: 'BlogUI96', 'BlogUI95', 'BlogUI94', 'BlogUI93', 'BlogUI92', 'BlogUI91', 'Microsoft YaHei', sans-serif; user-select: text; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--theme_color); outline-offset: 4px; }
.line-icon { fill: none !important; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header_logo:hover > svg { color: #fff; }
.header_icon { background: transparent; display: block; flex-shrink: 0; }
.header_icon:hover { color: #fff; }
.skip-link { position: fixed; left: 12px; top: -100px; padding: 12px; background: var(--color0); z-index: 10000; }
.skip-link:focus { top: 10px; }
.author_infor::before { background-image: url('../image/default.webp'); }
.author_infor .logo { border: 3px solid #ffffff5c; }
.author_infor .about, .author_infor .link { background: #00000025; }
.author_infor .infor { pointer-events: none; }
.author_infor .say1 { line-height: 1.9; }
.welcome-note { margin: 14px 0 0 20px; color: var(--color2); font-size: .85rem; position: relative; z-index: 1; }
.author_other .main { right: 24px; top: 40px; pointer-events: none; }
.author_other .group > .icon { font-size: 38px; }
.author_other h1, .author_other .button { z-index: 2; }
.author_other .button { width: 130px; }
.tile-green { background: #8ea28e; }
.tile-blue { background: #8aa8c6; }
.tile-sand { background: #ccb493; }
.tile-rose { background: #bb9998; }
.quiet-note { position: absolute; left: 25px; bottom: 25px; color: var(--color2); font-size: .75rem; }
.author_div .yiyan p { line-height: 1.9; }
.author_div .stat-item h2 { overflow-wrap: anywhere; }
.blog-filters { display: block; }
#search-form { border: 1px solid var(--border); border-radius: var(--borer_radius); padding: 22px; background: var(--card_color); box-shadow: var(--shadow); }
#search-form label { display: block; margin-bottom: 12px; font-weight: bold; }
.search-row { display: flex; gap: 12px; }
.search-row input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--theme_color_10); font-size: 16px; }
.blog-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; min-height: 42px; background: var(--color0); border: 1px solid var(--border); border-radius: 12px; font-size: .85rem; }
.blog-button:hover { background: var(--theme_color_10); }
.blog-button.primary { background: var(--theme_color); color: #fff; }
.filter-row { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.filter-row h2 { font-size: .85rem; flex-shrink: 0; color: var(--color2); }
.filter-row nav { min-width: 0; }
.category_card { height: auto; min-height: 66px; padding: 12px; gap: 10px; }
.category_card .item { height: auto; min-height: 38px; padding: 8px 16px; max-width: 100%; overflow-wrap: anywhere; }
.category_card .count { margin-left: 8px; font-size: .8em; opacity: .75; }
.tags_card { gap: 8px; padding: 12px; min-height: 60px; }
.tags_card .item { height: auto; min-height: 32px; max-width: 100%; padding: 7px 12px; overflow-wrap: anywhere; flex-shrink: 1; }
.meta-status { margin-top: 12px; color: var(--color2); font-size: .8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.meta-status:empty { display: none; }
.list-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 30px 0 20px; }
.list-heading h2 { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.text-link, a.text-link:visited { color: var(--theme_color); font-size: .85rem; }
#clear-filters { flex-shrink: 0; }
.blog-status { width: 100%; padding: 42px 22px; text-align: center; background: var(--card_color); border: 1px solid var(--border); border-radius: var(--borer_radius); margin-bottom: 25px; line-height: 1.8; }
.blog-status:empty { display: none; }
.blog-status h2 { font-size: 1.3rem; margin-bottom: 8px; }
.blog-status p { color: var(--color2); margin-bottom: 14px; overflow-wrap: anywhere; }
.status-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.blog-status[data-state='loading']::before { content: ''; display: block; width: 25px; height: 25px; margin: 0 auto 16px; border: 3px solid var(--border); border-top-color: var(--theme_color); border-radius: 50%; animation: blog-spin .9s linear infinite; }
@keyframes blog-spin { to { transform: rotate(360deg); } }
.article-card, .article-card-1 { min-width: 0; }
.article-card .img, .article-card-1 .img { display: block; flex-shrink: 0; background: var(--theme_color_10); }
.article-card .content, .article-card-1 .content { min-width: 0; display: flex; flex-direction: column; padding: 18px 22px; }
.article-card .content h3, .article-card-1 .content h3 { margin-bottom: 7px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.55; overflow-wrap: anywhere; flex-shrink: 0; }
.article-card .content .tags, .article-card-1 .content .tags { display: flex; flex-wrap: nowrap; gap: 6px; overflow: hidden; margin-bottom: 7px; line-height: 1.5; flex-shrink: 0; }
.article-card .tag, .article-card-1 .tag { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.article-card .tag:hover, .article-card-1 .tag:hover { text-decoration: underline; }
.article-card .summary, .article-card-1 .summary { color: var(--color2); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-card time, .article-card-1 time { color: var(--color2); font-size: .72rem; margin-top: auto; padding-top: 8px; }
.article-card-1 { background: var(--card_color); }
.article-card-1 .content { height: 100%; padding-right: 0; }
.article-card:focus-within, .article-card-1:focus-within { border-color: var(--theme_color); }
.pagination { margin: 35px 0 16px; flex-wrap: wrap; gap: 8px; }
.pagination li { min-width: 40px; width: auto; }
.pagination li a, .pagination li span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 100%; padding: 0 9px; }
.pagination .disabled { opacity: .55; pointer-events: none; }
.pagination .ellipsis { background: none; border-color: transparent; pointer-events: none; }
.page-summary { text-align: center; font-size: .8rem; color: var(--color2); margin-bottom: 35px; }
.container.detail-mode { max-width: 1200px; }
.post_article { min-width: 0; }
.post_aside_card { margin-top: 0; }
.post_aside_card > h2 { font-size: 1.2rem; }
.aside-note { color: var(--color2); font-size: .85rem; margin: 12px 0 22px; }
#toc-wrap { margin-top: 28px; }
#toc { max-height: 55vh; overflow-y: auto; }
#toc li { list-style: none; line-height: 1.5; overflow-wrap: anywhere; }
#toc a { font-size: .85rem !important; }
.back-link { margin-bottom: 20px; width: fit-content; }
.post_cover { isolation: isolate; height: auto; min-height: 280px; }
.post_cover::before { background: linear-gradient(to right top, var(--post_cover_lin), #14263c80); z-index: -1; }
.detail-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.post_title { overflow-wrap: anywhere; line-height: 1.5; }
.post_meta { gap: 4px; }
.post_meta a:hover { text-decoration: underline; }
.detail-summary { padding: 0 20px 16px; color: var(--color2); line-height: 1.8; overflow-wrap: anywhere; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-tags .tag { font-size: .8rem; border-radius: 20px; padding: 6px 12px; background: var(--theme_color_10); color: var(--theme_color); overflow-wrap: anywhere; max-width: 100%; }
.post_content { overflow-wrap: anywhere; }
.post_content > :first-child { margin-top: 0; }
.post_content img { height: auto; object-fit: contain; border-radius: 9px; }
.post_content pre { max-width: 100%; overflow: auto; white-space: pre; border-radius: 9px; padding: 16px; background: #282c34; color: #fff; line-height: 1.7; font-size: .85rem; }
.post_content pre code { padding: 0; }
.post_content table { display: block; max-width: 100%; overflow-x: auto; }
.post_content a { text-decoration: underline; }
.post_content em { color: var(--color2); }
.post_content video { max-width: 100%; }
.footer { height: auto; min-height: 100px; }
.footer_container { padding: 22px; gap: 15px; }
.footer_container .right { text-align: right; }
.footer_container .right > p > a { padding: 0; }
@media (max-width: 1200px) {
  .blog-filters, .list-heading, #list-status, #pagination { width: 92%; margin-left: auto; margin-right: auto; }
  .author_other .main { top: 22px; }
  .author_other .group > .icon { font-size: 25px; }
  .post_cover { min-height: 250px; }
}
@media (max-width: 480px) {
  .header_logo { font-size: 1.05rem; margin-left: 12px; }
  .header_icon { margin-right: 5px; }
  .author_other .main { right: 18px; }
  .author_other .welcome-note { max-width: 48%; line-height: 1.8; }
  .author_div .stats { padding: 18px; gap: 16px; }
  .author_photo { height: 250px; }
  #search-form { padding: 18px 14px; }
  .search-row { gap: 8px; }
  .search-row input { padding: 12px; }
  .blog-button { padding: 10px 14px; }
  .filter-row { gap: 8px; }
  .article-card-1 { padding: 0 12px; }
  .article-card-1 .content { padding-left: 14px; }
  .footer_container { flex-direction: column; align-items: flex-start; }
  .footer_container .right { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- 评论（ZYYO 主题结构） ---- */
/* style.css sets every <section> to display:flex; the comment block must stack instead. */
.post_comment { display: block; }
.comment-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.comment_card .emoji,
.comment_card .send {
  border: none;
  cursor: pointer;
  color: var(--color1);
  font-size: 1.4rem;
}
.comment_card .send[disabled] { opacity: .55; cursor: default; }
.comment_card textarea.content { resize: vertical; min-height: 150px; line-height: 1.6; }
.comment_card textarea.content::placeholder { color: var(--color2, #999); }
.emoji_picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--color0);
}
.emoji_picker[hidden] { display: none; }
.emoji_picker button {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}
.emoji_picker button:hover { background: var(--theme_color_10); }
.comment_hint {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--color2, #888);
}
.comment_hint[hidden] { display: none; }
.comment_hint b { color: var(--theme_color); }
.comment_hint .text-link { border: none; background: transparent; cursor: pointer; padding: 0; font-size: .85rem; }
.comment_status {
  width: 100%;
  min-height: 1.4em;
  margin-top: 8px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--color2, #888);
}
.comment_status:empty { margin-top: 0; }
.comment_status[data-state="error"] { color: #d9534f; }
.comment_status[data-state="success"] { color: #2e7d32; }
.comment_body .comment-list { list-style: none; margin: 0; padding: 0; }
.comment_body > .comment-list { padding: 0 30px; }
.comment_body .body .browser,
.comment_body .body .os {
  display: inline-flex;
  align-items: center;
  color: var(--color2, #888);
  vertical-align: middle;
}
.comment_body .body .name > span { margin-right: 8px; }
.comment_body .body .name > span:last-child { margin-right: 0; }
.comment_body .body .content { white-space: pre-wrap; overflow-wrap: anywhere; }
.comment_body .body .content:empty::before { content: "（空）"; opacity: .5; }
.comment_body .body .logo img { object-fit: cover; background: var(--theme_color_10); }
.comment_body .item.comment-parent + .item.comment-parent { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 12px; }
.comment_pagination li a { cursor: pointer; }
.comment_pagination li.disabled { opacity: .45; }
@media (max-width: 768px) {
  .post_comment { padding: 24px 18px; }
  .comment_body > .comment-list { padding: 0; }
  .comment_card .name,
  .comment_card .mail,
  .comment_card .url { width: 100%; }
  .comment_card textarea.content { font-size: 1.1rem; height: 120px; }
}
.comment_body .comment_empty {
  list-style: none;
  padding: 10px 0;
  font-size: .9rem;
  color: var(--color2, #888);
}
