:root {
    color-scheme: light;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #20231f;
    background: #1a1a1a;
    --entry-green: #39764f;
    --entry-ink: #20231f;
    --entry-muted: #777a75;
    --entry-line: #e8e8e4;
    --entry-surface: rgba(255, 255, 255, .92);
    --entry-page-bg: #eee;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: #1a1a1a; color: var(--entry-ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.entry-page { position: relative; display: flex; flex-direction: column; width: min(100%, 650px); height: 100vh; height: 100dvh; margin: 0 auto; padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); overflow: hidden; background: var(--entry-page-bg); box-shadow: 0 0 12px rgba(0,0,0,.1); }
.entry-page-header { position: relative; z-index: 2; display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: calc(100% + max(24px, env(safe-area-inset-left) + env(safe-area-inset-right))); height: calc(50px + env(safe-area-inset-top)); margin: 0 calc(-1 * max(12px, env(safe-area-inset-left))); padding-top: env(safe-area-inset-top); background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.05); }
.entry-brand { font-size: 1.5em; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.entry-back-link { position: absolute; left: 8px; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: #555; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.entry-back-link svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.entry-back-link span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (hover: hover) { .entry-back-link:hover { background: rgba(57,118,79,.09); color: #245c3b; } }
.entry-back-link:active { background: rgba(57,118,79,.14); }
.entry-scroll-area { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding: 16px 0 calc(28px + env(safe-area-inset-bottom)); scrollbar-width: none; -ms-overflow-style: none; }
.entry-scroll-area::-webkit-scrollbar { display: none; width: 0; height: 0; }
.entry-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(0,0,0,.04); border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.entry-figure { display: grid; place-items: center; min-width: 0; margin: 0; padding: 16px; background: var(--entry-page-bg); }
.entry-figure img { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; }
.entry-content { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 16px 20px; }
.entry-author { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--entry-line); color: var(--entry-muted); font-size: .78rem; }
.entry-author-link { display: inline-flex; min-width: 0; align-items: center; gap: 8px; color: var(--entry-ink); font-size: .94rem; font-weight: 650; text-decoration: none; }
.entry-author-link img { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid rgba(0,0,0,.07); border-radius: 50%; object-fit: cover; }
.entry-author time { flex: 0 0 auto; }
.entry-caption { margin: 13px 0 10px; color: #343731; font-size: 1rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.entry-tags a { padding: 5px 9px; border-radius: 999px; background: rgba(57,118,79,.08); color: var(--entry-green); font-size: .82rem; text-decoration: none; transition: background .18s ease; }
.entry-tags a:hover, .entry-tags a:focus-visible { background: rgba(57,118,79,.15); }
.entry-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--entry-line); }
.entry-actions button, .entry-actions a { display: inline-flex; min-width: 44px; min-height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: #535750; font: inherit; font-size: .84rem; text-decoration: none; cursor: pointer; transition: color .18s ease, background-color .18s ease; }
.entry-actions svg { width: 40px; height: 40px; flex: 0 0 40px; padding: 8px; border: 1px solid #d6d9d5; border-radius: 999px; background: #fff; fill: none; stroke: #454a45; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: background .18s ease, border-color .18s ease, fill .18s ease, stroke .18s ease; }
.entry-actions .like-icon { stroke-width: 1.5; }
.entry-actions .is-liked .like-icon { fill: #ff6b81; stroke: #ff6b81; border-color: rgba(255,107,129,.35); background: rgba(255,107,129,.08); }
.entry-actions button:disabled { opacity: .55; cursor: wait; }
.entry-actions button:hover, .entry-actions a:hover, .entry-actions button:focus-visible, .entry-actions a:focus-visible { color: #245c3b; }
.entry-actions button:hover svg, .entry-actions a:hover svg, .entry-actions button:focus-visible svg, .entry-actions a:focus-visible svg { background: #e6f3e9; border-color: #39764f; stroke: #245c3b; }
.entry-actions .ui-icon:hover, .entry-actions button:hover .ui-icon, .entry-actions a:hover .ui-icon { transform: none; box-shadow: none; }
.entry-actions button:focus-visible, .entry-actions a:focus-visible { outline: 2px solid #245c3b; outline-offset: 2px; }
.entry-actions button > span { color: inherit; font-size: .84rem; font-variant-numeric: tabular-nums; }
.entry-actions .is-liked { color: #d94c61; }
.entry-actions .is-liked:hover svg, .entry-actions .is-liked:focus-visible svg { fill: #ff6b81; stroke: #ff6b81; border-color: rgba(255,107,129,.55); background: rgba(255,107,129,.12); }
.entry-action-status { min-height: 1.25em; margin: 7px 0 -7px; color: var(--entry-muted); font-size: .82rem; }
.entry-comments { width: 100%; margin: 12px auto 0; padding: 18px 20px; border: 1px solid rgba(0,0,0,.04); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.07); scroll-margin-top: 24px; }
.entry-comments-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.entry-comments h2 { margin: 0; color: var(--entry-ink); font-size: 1.08rem; }
.entry-comments h2 span { margin-left: 5px; color: var(--entry-muted); font-size: .88em; font-weight: 400; }
.entry-comment-form { display: block; margin-bottom: 12px; }
.entry-comment-editor { border: 0; }
.entry-comment-editor .cmt-emoji-panel { z-index: 5; }
.entry-comment-editor .cmt-input { font-size: var(--dlg-font-input, 16px); }
.entry-comment-editor .cmt-input:focus-visible { outline: none; outline-offset: 0; }
.entry-form-status { min-height: 1em; margin: 8px 4px 0; color: var(--entry-muted); font-size: .86rem; }
.entry-signin-prompt { color: var(--entry-muted); }
.entry-signin-prompt a { color: var(--entry-green); }
.entry-comment-sort { margin: 0; }
.entry-comment-sort.is-loading::after { content: ""; position: absolute; top: 50%; left: -18px; width: 11px; height: 11px; margin-top: -6px; border: 2px solid rgba(57,118,79,.2); border-top-color: var(--entry-green); border-radius: 50%; animation: entry-comment-spin .7s linear infinite; }
@keyframes entry-comment-spin { to { transform: rotate(360deg); } }
.entry-comment-list { max-height: none; min-height: 0; overflow: visible; padding: 0; }
.entry-comment-list .cmt-item { margin-left: 0; margin-right: 0; padding: 10px 0; border-top: 1px solid var(--entry-line); border-radius: 0; }
.entry-comment-list .cmt-item + .cmt-item { margin-top: 0; }
.entry-comment-empty { min-height: 130px; }
.entry-comment-load-more { margin: 8px auto 0; }
:focus-visible { outline: 2px solid var(--entry-green); outline-offset: 3px; }
@media (max-width: 680px) {
    .entry-page { padding-right: max(10px, env(safe-area-inset-right)); padding-left: max(10px, env(safe-area-inset-left)); }
    .entry-page-header { height: calc(44px + env(safe-area-inset-top)); margin-right: calc(-1 * max(10px, env(safe-area-inset-right))); margin-left: calc(-1 * max(10px, env(safe-area-inset-left))); }
    .entry-brand { font-size: 1.3em; }
    .entry-back-link { width: 40px; height: 40px; }
    .entry-back-link svg { width: 26px; height: 26px; }
    .entry-scroll-area { padding-top: 10px; }
}
@media (max-width: 380px) {
    .entry-actions { gap: 4px; }
    .entry-actions button, .entry-actions a, .entry-actions .entry-comment-total { padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
    .entry-comment-sort.is-loading::after { animation: none; }
}
.entry-action-status:empty { display: none; }
#shareModal, #downloadModal {
    position: static;
    inset: auto;
    z-index: auto;
    width: 100%;
    max-width: none;
    height: 0;
    margin: 0;
    overflow: hidden;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transition: height .22s ease, margin .22s ease;
}
#shareModal[aria-hidden="false"], #downloadModal[aria-hidden="false"] {
    height: auto;
    margin-top: 12px;
    overflow: visible;
    pointer-events: auto;
}
#shareModal > .dlg-panel, #downloadModal > .dlg-panel {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    padding-bottom: 12px;
    overflow: visible;
    border: 1px solid var(--entry-line);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
    transform: none;
    transition: none;
}
#shareModal .dlg-body, #downloadModal .dlg-body { overflow: visible; }
#shareModal .dlg-share-window { display: none; }
#shareModal .dlg-head, #downloadModal .dlg-head { min-height: 42px; }
#shareModal .share-sheet-actions { margin-top: 12px; }
#downloadModal .download-options { padding-top: 0; }
#shareModal .dlg-share-primary, #shareModal .share-icon-btn, #downloadModal .download-option { min-width: 0; }
@media (max-width: 480px) {
    #shareModal .dlg-share-primary { width: 100%; }
    #shareModal .share-sheet-share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #downloadModal .download-option { grid-template-columns: 24px minmax(0, 1fr); }
    #downloadModal .download-option-res, #downloadModal .download-option-quality { text-align: left; }
}
@media (max-width: 380px) {
  .entry-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; }
  .entry-actions button, .entry-actions a { min-width: 44px; min-height: 44px; padding-inline: 5px; }
}
