#post, #post-recent { width: 100%; display: flex; flex-direction: column; } #post .post-item, #post-recent .post-item { display: flex; flex-direction: column; align-content: center; margin: 2rem 0; background: $color-content-background; border-radius: 4px; } #post .post-item-header, #post-recent .post-item-header { display: flex; flex-direction: column; } #post .post-item-header-title, #post-recent .post-item-header-title { margin: 1rem 2rem 1rem 2rem; font-size: 1.5rem; line-height: 2rem; text-align: left; } #post .post-item-header-meta, #post-recent .post-item-header-meta { margin: 0rem 2rem 1rem 2rem; font-size: 1rem; text-align: left; color: $color-text; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.25rem 0; } #post .post-item-header-meta-item, #post-recent .post-item-header-meta-item { display: inline-block; padding: 0.25rem 0.25rem 0.25rem 0.25rem; align-content: center; text-align: center; margin-right: 0.5rem; } #post .post-item-header-meta-item-icon, #post-recent .post-item-header-meta-item-icon { margin-left: 0.25rem; margin-right: 0.5rem; } #post .post-item-header-meta-item-text, #post-recent .post-item-header-meta-item-text { margin-right: 0.5rem; } #post .post-item-header-meta-item-text:hover, #post-recent .post-item-header-meta-item-text:hover { color: $color-theme; } #post .post-item-header-sticky, #post-recent .post-item-header-sticky { display: inline-block; margin-right: 0.5rem; padding: 0.1rem 0.5rem; font-size: 0.75rem; color: $color-theme; border: 1px solid $color-theme; border-radius: 4px; opacity: 0.8; } #post .post-item-content, #post-recent .post-item-content { margin: 0rem 2rem 1rem 2rem; line-height: 1.5rem; } #post .post-item-content blockquote, #post-recent .post-item-content blockquote { color: #808080; border-left: $color-sub-theme solid 2px; margin: 1rem 0 1rem 1rem; padding-left: 1rem; } #post .post-item-content img, #post-recent .post-item-content img { max-width: 100%; height: auto; margin: 1rem 0 1rem 0; } #post .post-item-content a, #post-recent .post-item-content a { color: $color-sub-theme; } #post .post-item-content a:hover, #post-recent .post-item-content a:hover { color: $color-theme; } #post .post-item-content table, #post-recent .post-item-content table { margin: 8px 0 16px 0; max-width: 100%; } #post .post-item-content table thead tr th, #post-recent .post-item-content table thead tr th { padding: 0.5rem 1rem; border: 1px solid $color-border; background: $color-content-background; white-space: nowrap; } #post .post-item-content table tbody tr td, #post-recent .post-item-content table tbody tr td { padding: 0.5rem 1rem; border: 1px solid $color-border; } #post .post-item-content h1, #post-recent .post-item-content h1, #post .post-item-content h2, #post-recent .post-item-content h2, #post .post-item-content h3, #post-recent .post-item-content h3, #post .post-item-content h4, #post-recent .post-item-content h4, #post .post-item-content h5, #post-recent .post-item-content h5, #post .post-item-content h6, #post-recent .post-item-content h6 { position: relative; cursor: pointer; transition: $transition-delay; padding-left: 1.5rem; color: $color-text; } #post .post-item-content h1::before, #post-recent .post-item-content h1::before, #post .post-item-content h2::before, #post-recent .post-item-content h2::before, #post .post-item-content h3::before, #post-recent .post-item-content h3::before, #post .post-item-content h4::before, #post-recent .post-item-content h4::before, #post .post-item-content h5::before, #post-recent .post-item-content h5::before, #post .post-item-content h6::before, #post-recent .post-item-content h6::before { position: absolute; top: 50%; left: 0; transform: translateY(-50%); color: $color-sub-theme; content: '\f0c1'; font: normal normal normal 12px/1 FontAwesome; font-size: 0.8rem; transition: $transition-delay; } #post .post-item-content h1:hover, #post-recent .post-item-content h1:hover, #post .post-item-content h2:hover, #post-recent .post-item-content h2:hover, #post .post-item-content h3:hover, #post-recent .post-item-content h3:hover, #post .post-item-content h4:hover, #post-recent .post-item-content h4:hover, #post .post-item-content h5:hover, #post-recent .post-item-content h5:hover, #post .post-item-content h6:hover, #post-recent .post-item-content h6:hover { padding-left: 2rem; } #post .post-item-content h1:hover::before, #post-recent .post-item-content h1:hover::before, #post .post-item-content h2:hover::before, #post-recent .post-item-content h2:hover::before, #post .post-item-content h3:hover::before, #post-recent .post-item-content h3:hover::before, #post .post-item-content h4:hover::before, #post-recent .post-item-content h4:hover::before, #post .post-item-content h5:hover::before, #post-recent .post-item-content h5:hover::before, #post .post-item-content h6:hover::before, #post-recent .post-item-content h6:hover::before { color: $color-theme; } #post .post-item-content ol, #post-recent .post-item-content ol, #post .post-item-content ul, #post-recent .post-item-content ul { margin-top: 0.5rem; padding: 0 0 0 1rem; list-style: none; counter-reset: li; } #post .post-item-content ol p, #post-recent .post-item-content ol p, #post .post-item-content ul p, #post-recent .post-item-content ul p { margin: 0; } #post .post-item-content ol ol, #post-recent .post-item-content ol ol, #post .post-item-content ul ol, #post-recent .post-item-content ul ol, #post .post-item-content ol ul, #post-recent .post-item-content ol ul, #post .post-item-content ul ul, #post-recent .post-item-content ul ul { padding-left: 0.5rem; } #post .post-item-content ol li, #post-recent .post-item-content ol li, #post .post-item-content ul li, #post-recent .post-item-content ul li { position: relative; margin: 0.25rem 0; padding: 0.125px 0.8px 0.125rem 2.5rem; } #post .post-item-content ol li:hover:before, #post-recent .post-item-content ol li:hover:before, #post .post-item-content ul li:hover:before, #post-recent .post-item-content ul li:hover:before { transform: rotate(360deg); color: $color-theme; } #post .post-item-content ol li:before, #post-recent .post-item-content ol li:before, #post .post-item-content ul li:before, #post-recent .post-item-content ul li:before { position: absolute; top: 0; left: 0; background: $color-content-background; color: $color-sub-theme; cursor: pointer; transition: $transition-delay; } #post .post-item-content ol li:before, #post-recent .post-item-content ol li:before { margin-top: 0.2rem; width: 1.5rem; height: 1.5rem; border-radius: 0.75rem; content: counter(li); counter-increment: li; text-align: center; font-size: 0.8rem; font-weight: 600; line-height: 1.5rem; } #post .post-item-content ul li:hover:before, #post-recent .post-item-content ul li:hover:before { border-color: $color-theme; } #post .post-item-content ul li:before, #post-recent .post-item-content ul li:before { top: 0.6rem; margin-left: 0.25rem; width: 0.4rem; height: 0.4rem; border: 0.12rem solid $color-content-background; background: transparent; content: ''; line-height: 0.4rem; transform: rotateZ(45deg); } #post .post-item-content code, #post-recent .post-item-content code { padding: 0.2rem 0.2rem; background: $color-code-background; border-radius: 4px; color: $color-text; } #post .post-item-copyright, #post-recent .post-item-copyright { display: flex; flex-direction: row; align-items: flex-start; gap: 1rem; margin: 0rem 2rem 1rem 2rem; padding: 1rem; background: $color-content-background; border-radius: 4px; } #post .post-item-copyright-info, #post-recent .post-item-copyright-info { flex: 1; min-width: 0; } #post .post-item-copyright-item, #post-recent .post-item-copyright-item { display: block; padding: 0.25rem 0; align-content: center; } #post .post-item-copyright-item-meta, #post-recent .post-item-copyright-item-meta { margin-left: 0.25rem; margin-right: 0.5rem; color: $color-theme; } #post .post-item-copyright-item-text, #post-recent .post-item-copyright-item-text { margin-right: 0.5rem; } #post .post-item-copyright-item-text a, #post-recent .post-item-copyright-item-text a { color: $color-sub-theme; } #post .post-item-copyright-item-text a:hover, #post-recent .post-item-copyright-item-text a:hover { color: $color-theme; } #post .post-item-copyright-qrcode, #post-recent .post-item-copyright-qrcode { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0.5rem 0 0 0; padding: 0.75rem; background: #fff; border-radius: 8px; border: 1px solid $color-border; } #post .post-item-copyright-qrcode .post-item-qrcode-img img, #post-recent .post-item-copyright-qrcode .post-item-qrcode-img img { width: 80px; height: 80px; border-radius: 4px; } #post .post-item-copyright-qrcode-tip, #post-recent .post-item-copyright-qrcode-tip { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1rem; color: $color-text-muted; text-align: center; white-space: nowrap; } #post .post-item-comment, #post-recent .post-item-comment { margin: 0rem 2rem 1rem 2rem; background: $color-content-background; border-radius: 4px; } #post .post-item-more, #post-recent .post-item-more { position: relative; overflow: hidden; cursor: pointer; font-size: 0.8rem; margin: 1rem 2rem 1rem 2rem; padding: 0.35rem 0.75rem; display: inline-block; text-align: center; align-items: center; width: auto; min-width: 5rem; color: $color-text-muted; background: transparent; border: 1px solid $color-border; border-radius: 0.45rem; transition: color 0.16s ease, border-color 0.16s ease; } #post .post-item-more:hover, #post-recent .post-item-more:hover, #post .post-item-more:focus-visible, #post-recent .post-item-more:focus-visible { color: $color-theme; border-color: $color-theme; } #post .post-item-sponsor, #post-recent .post-item-sponsor { display: flex; flex-direction: column; align-items: center; padding: 1.5rem 0; margin-top: 1rem; border-top: 1px solid $color-border; } #post .post-item-sponsor-btn, #post-recent .post-item-sponsor-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.5rem; border-radius: 20px; background: $color-theme; color: $color-on-accent; font-size: 0.9rem; cursor: pointer; transition: opacity 0.2s; } #post .post-item-sponsor-btn:hover, #post-recent .post-item-sponsor-btn:hover { opacity: 0.85; } #post .post-item-sponsor-panel, #post-recent .post-item-sponsor-panel { display: flex; flex-direction: column; align-items: center; margin-top: 1rem; } #post .post-item-sponsor-panel-tip, #post-recent .post-item-sponsor-panel-tip { font-size: 0.85rem; color: $color-text; opacity: 0.6; margin-bottom: 1rem; } #post .post-item-sponsor-panel-codes, #post-recent .post-item-sponsor-panel-codes { display: flex; gap: 1.5rem; } #post .post-item-sponsor-panel-codes-code, #post-recent .post-item-sponsor-panel-codes-code { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; } #post .post-item-sponsor-panel-codes-code img, #post-recent .post-item-sponsor-panel-codes-code img { width: 160px; height: 160px; border-radius: 8px; padding: 0.5rem; background: #fff; } #post .post-item-sponsor-panel-codes-code span, #post-recent .post-item-sponsor-panel-codes-code span { font-size: 0.8rem; color: $color-text; opacity: 0.6; } #post .post-item, #post-recent .post-item { margin: 1.5rem 0; overflow: hidden; background: $color-content-background; border: 1px solid $color-border; border-radius: 16px; box-shadow: 0 16px 42px rgba(0,0,0,0.12); transition: background 0.68s ease, border-color 0.68s ease, box-shadow 0.68s ease, color 0.68s ease; } #post .post-item-header-title, #post-recent .post-item-header-title { font-family: "Noto Serif CJK SC", "Source Han Serif SC", STSong, serif; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.45; } #post .post-item-content, #post-recent .post-item-content { line-height: 1.8; color: $color-text; } #post .post-item-content table, #post-recent .post-item-content table, #post .post-item-content pre, #post-recent .post-item-content pre { display: block; max-width: 100%; overflow-x: auto; } #post .post-item-content img, #post-recent .post-item-content img { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.16); } #post .post-item-more, #post-recent .post-item-more { width: auto; min-height: 44px; margin: 0 2rem 1.5rem; padding: 0.55rem 0.9rem; border-radius: 10px; } #post .post-item-more::after, #post-recent .post-item-more::after { content: '\f105'; display: inline-block; margin-left: 0.45rem; color: $color-theme; font-family: "Font Awesome 6 Free"; font-size: 0.8em; font-weight: 900; opacity: 0; transform: translateX(-0.3rem); transition: opacity 0.18s ease, transform 0.18s ease; } #post .post-item-more:hover::after, #post-recent .post-item-more:hover::after, #post .post-item-more:focus-visible::after, #post-recent .post-item-more:focus-visible::after { opacity: 1; transform: translateX(0); } @media (max-width: 767px) { #post .post-item-header-title, #post-recent .post-item-header-title, #post .post-item-header-meta, #post-recent .post-item-header-meta, #post .post-item-content, #post-recent .post-item-content, #post .post-item-copyright, #post-recent .post-item-copyright, #post .post-item-comment, #post-recent .post-item-comment { margin-left: 1rem; margin-right: 1rem; } #post .post-item-more, #post-recent .post-item-more { margin-left: 1rem; margin-right: 1rem; } } @media (min-width: 1600px) { #post .post-item { padding: 1rem 0; } #post .post-item-header-title, #post .post-item-header-meta, #post .post-item-content, #post .post-item-copyright, #post .post-item-comment, #post .post-item-sponsor { width: calc(100% - 4rem); margin-left: auto; margin-right: auto; } }