body {
    margin: 0;
    color: #202124;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: #111827;
}

.yuimg-site-main,
.yuimg-resource {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.yuimg-site-title {
    color: #202124;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* Primary nav */
.yuimg-nav {
    flex: 1;
    min-width: 0;
}

.yuimg-nav-list {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.yuimg-nav-list li a {
    display: block;
    padding: 6px 14px;
    border-radius: 6px;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.yuimg-nav-list li a:hover,
.yuimg-nav-list li.current-menu-item a {
    background: rgba(17,24,39,.08);
    color: #111827;
}

/* Header actions (login / user / manage) */
.yuimg-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    white-space: nowrap;
    font-size: 14px;
}

.yuimg-site-main,
.yuimg-resource {
    padding: 32px 0;
}

.yuimg-entry {
    padding: 24px 0;
    border-bottom: 1px solid #d8d8d2;
}

.yuimg-entry-title {
    margin: 0 0 12px;
    font-size: 28px;
}


/* Empty state shared by the blog index. */
.yuimg-home-empty { padding: 62px 24px; border: 1px dashed #d1d5db; border-radius: 22px; background: rgba(255,255,255,.45); text-align: center; }
.yuimg-home-empty h2 { margin: 0 0 10px; font-size: 30px; }
.yuimg-home-empty p { max-width: 570px; margin: 0 auto; color: #6b7280; line-height: 1.7; }

.yuimg-status-page{width:min(680px,calc(100% - 32px));margin:0 auto;padding:110px 0 130px;text-align:center}.yuimg-status-code{display:inline-block;color:#111827;font:800 12px/1 ui-monospace,monospace;letter-spacing:.18em}.yuimg-status-page h1{margin:17px 0 12px;color:#1f2937;font-size:clamp(34px,6vw,54px);letter-spacing:-.04em}.yuimg-status-page p{max-width:520px;margin:0 auto 28px;color:#6b7280;line-height:1.8}.yuimg-status-page>div{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.yuimg-status-button,.yuimg-status-link{display:inline-flex;min-height:44px;align-items:center;padding:0 20px;border-radius:999px;font-size:13px;font-weight:700;text-decoration:none}.yuimg-status-button{background:#111827;color:#fff}.yuimg-status-link{border:1px solid #d1d5db;background:#fff;color:#374151}
.yuimg-share-password-page{display:grid;min-height:calc(100vh - 150px);padding:64px 16px;place-items:center}.yuimg-share-password-card{width:min(440px,100%);padding:36px;border:1px solid var(--yuimg-border,#d1d5db);border-radius:18px;background:var(--yuimg-surface,#fff);box-shadow:0 20px 60px rgba(31,41,55,.1);text-align:center}.yuimg-share-password-card h1{margin:14px 0 9px;color:var(--yuimg-ink,#1f2937);font-size:clamp(24px,5vw,34px)}.yuimg-share-password-card>p{margin:0 0 20px;color:var(--yuimg-muted,#6b7280);line-height:1.7}.yuimg-share-password-error{margin-bottom:16px;padding:10px 12px;border-radius:8px;background:#fff0f0;color:var(--yuimg-danger,#b42318);font-size:13px}.yuimg-share-password-form{display:grid;gap:10px;text-align:left}.yuimg-share-password-form label{color:var(--yuimg-ink,#1f2937);font-size:13px;font-weight:700}.yuimg-share-password-form input{width:100%;height:46px;padding:0 13px;border:1px solid var(--yuimg-border,#d1d5db);border-radius:9px;background:#fff;font-size:16px}.yuimg-share-password-form button{height:46px;border:0;border-radius:9px;background:var(--yuimg-accent,#111827);color:#fff;font-weight:700;cursor:pointer}.yuimg-share-password-form button:hover{background:var(--yuimg-accent-hover,#374151)}.yuimg-share-password-card>small{display:block;margin-top:12px;color:var(--yuimg-muted,#6b7280)}.yuimg-share-password-back{display:inline-block;margin-top:22px;color:var(--yuimg-accent,#111827);font-size:13px;text-decoration:none}

/* ── Yublog-aligned page shell ─────────────── */
:root{--yuimg-header-h:60px;--yuimg-header-overlay-z:100;--yuimg-shell-max:1900px;--yuimg-gutter:32px;--yuimg-rail:240px;--yuimg-rail-gap:40px;--yuimg-page-bg:#f0f2f5;--yuimg-card-bg:#fff;--yuimg-input-bg:#f9fafb;--yuimg-border:#e1e5e9;--yuimg-hover:#f5f6f8;--yuimg-accent:#111827;--yuimg-accent-hover:#374151;--yuimg-ink:#1f2937;--yuimg-muted:#6d7975;--yuimg-danger:#bd382f;--yuimg-success:#374151;--yuimg-text-xs:.75rem;--yuimg-text-sm:.8125rem;--yuimg-text-base:.875rem;--yuimg-text-lg:1.0625rem}
body{padding-top:var(--yuimg-header-h);background:var(--yuimg-page-bg)}
.yuimg-site-header{position:fixed;z-index:1000;top:0;left:0;width:100%;min-height:var(--yuimg-header-h);margin:0;border-bottom:1px solid var(--yuimg-border);background:rgba(255,255,255,.96);box-shadow:0 1px 3px rgba(15,23,42,.04);backdrop-filter:blur(12px)}
body.admin-bar .yuimg-site-header{top:32px}
.yuimg-site-header-inner{position:relative;display:flex;width:min(1360px,calc(100% - 32px));min-height:var(--yuimg-header-h);align-items:center;gap:22px;margin:0 auto}.yuimg-site-header.is-manage .yuimg-site-header-inner{width:calc(100% - 32px);max-width:none}.yuimg-header-brand-wrap{display:flex;min-width:0;align-items:center;gap:8px}.yuimg-site-title{display:flex;align-items:center;gap:9px}.yuimg-site-icon{width:30px;height:30px;border-radius:8px;object-fit:cover}.yuimg-header-context{color:#6b7280;font-size:var(--yuimg-text-base);white-space:nowrap}.yuimg-header-spacer{min-width:0;flex:1}.yuimg-header-actions{gap:10px}.yuimg-header-login{display:inline-flex;min-height:36px;align-items:center;padding:0 20px;border-radius:22px;background:var(--yuimg-accent);color:#fff;font-size:var(--yuimg-text-base);font-weight:650;text-decoration:none}.yuimg-header-login:hover{background:var(--yuimg-accent-hover);color:#fff}
.yuimg-nav-toggle{display:none;width:38px;height:38px;box-sizing:border-box;align-content:center;justify-items:center;gap:4px;padding:8px;border:1px solid var(--yuimg-border);border-radius:50%;background:#fff;color:var(--yuimg-ink);cursor:pointer}.yuimg-nav-toggle>span[aria-hidden]{display:block;width:17px;height:2px;border-radius:2px;background:currentColor;transition:transform .18s,opacity .18s}.yuimg-nav-toggle.is-open>span[aria-hidden]:first-child{transform:translateY(6px) rotate(45deg)}.yuimg-nav-toggle.is-open>span[aria-hidden]:nth-child(2){opacity:0}.yuimg-nav-toggle.is-open>span[aria-hidden]:nth-child(3){transform:translateY(-6px) rotate(-45deg)}.yuimg-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.yuimg-user-dropdown{position:relative}.yuimg-user-toggle{display:flex;min-height:40px;align-items:center;gap:8px;padding:4px 11px 4px 4px;border:0;border-radius:24px;background:#f3f4f6;color:#1f2937;font:600 13px/1 inherit;cursor:pointer}.yuimg-user-toggle:hover{background:#e5e7eb}.yuimg-user-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover}.yuimg-user-toggle i{color:#6b7280;font-style:normal;transition:transform .18s}.yuimg-user-dropdown.is-open .yuimg-user-toggle i{transform:rotate(180deg)}.yuimg-user-menu{position:absolute;top:calc(100% + 7px);right:0;display:none;min-width:164px;padding:6px 0;border:1px solid #e5e7eb;border-radius:10px;background:#fff;box-shadow:0 10px 28px rgba(17,24,39,.14)}.yuimg-user-dropdown.is-open .yuimg-user-menu{display:grid}.yuimg-user-menu a{padding:9px 16px;color:#374151;font-size:13px;text-decoration:none}.yuimg-user-menu a:hover{background:var(--yuimg-hover);color:#111827}.yuimg-user-menu>span{height:1px;margin:4px 0;background:#e5e7eb}.yuimg-user-menu .is-logout{color:#8b5752}
.yuimg-header-quick-nav{display:flex;align-items:center;gap:3px}.yuimg-header-quick-nav a{padding:7px 12px;border-radius:18px;color:#4b5563;font-size:13px;font-weight:600;text-decoration:none}.yuimg-header-quick-nav a:hover,.yuimg-header-quick-nav a.is-active{background:#f3f4f6;color:#111827}
.yuimg-site-footer{width:100%;box-sizing:border-box;margin:0;padding:22px 0;border-top:1px solid var(--yuimg-border);background:#fff}.yuimg-site-footer-inner{display:flex;width:min(1120px,calc(100% - 32px));align-items:center;justify-content:space-between;gap:20px;margin:0 auto;color:#8a9390;font-size:12px}.yuimg-site-footer-inner nav{display:flex;gap:16px}.yuimg-site-footer-inner a{color:#69736f;text-decoration:none}.yuimg-site-footer-inner a:hover{color:#111827}
@media(max-width:782px){body.admin-bar .yuimg-site-header{top:46px}.yuimg-site-header-inner{gap:12px}.yuimg-user-toggle span{display:none}.yuimg-header-context{font-size:var(--yuimg-text-xs)}}
@media(max-width:640px){.yuimg-site-header{min-height:56px}.yuimg-site-header-inner{min-height:56px;gap:8px}.yuimg-nav-toggle{display:grid;margin-left:auto}.yuimg-nav{position:absolute;top:calc(100% - 1px);right:0;left:0;display:none;padding:8px;border:1px solid var(--yuimg-border);border-radius:0 0 12px 12px;background:#fff;box-shadow:0 12px 28px rgba(17,24,39,.14)}.yuimg-nav.is-open{display:block}.yuimg-nav-list{align-items:stretch;flex-direction:column;gap:2px}.yuimg-nav-list li a{padding:10px 12px}.yuimg-header-actions{margin-left:0}.yuimg-header-quick-nav a{padding:6px 8px;font-size:var(--yuimg-text-xs)}.yuimg-site-footer-inner{align-items:flex-start;flex-direction:column}.yuimg-site-footer-inner nav{flex-wrap:wrap}}

:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--yuimg-accent);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.yuimg-gallery-card:hover{transform:none}.yuimg-user-toggle i,.yuimg-nav-toggle>span[aria-hidden]{transition:none}}


/* Keep the three direct management links inside the fixed header on phones. */
@media(max-width:640px){
    .yuimg-site-header.is-manage .yuimg-site-title>span{display:none}
    .yuimg-site-header.is-manage .yuimg-header-brand-wrap{gap:5px}
    .yuimg-site-header.is-manage .yuimg-header-actions{gap:6px}
    .yuimg-site-header.is-manage .yuimg-header-quick-nav{gap:0}
}
@media(max-width:420px){
.yuimg-site-header.is-manage .yuimg-header-context{display:none}
}

/* Permission-aware search in the center of the fixed header. */
.yuimg-global-search{position:absolute;z-index:var(--yuimg-header-overlay-z,100);top:50%;left:50%;width:min(420px,34vw);transform:translate(-50%,-50%)}
.yuimg-global-search-toggle{display:none;width:38px;height:38px;box-sizing:border-box;align-items:center;justify-content:center;padding:0;border:1px solid var(--yuimg-border);border-radius:50%;background:#fff;color:var(--yuimg-ink);cursor:pointer}
.yuimg-global-search-toggle svg,.yuimg-global-search-form>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.yuimg-global-search-panel{position:relative;width:100%}
.yuimg-global-search-form{display:flex;height:38px;box-sizing:border-box;align-items:center;gap:8px;padding:0 12px;border:1px solid #d1d5db;border-radius:20px;background:#f3f4f6;color:#6b7280;transition:border-color .18s,background .18s,box-shadow .18s}
.yuimg-global-search-form:focus-within{border-color:var(--yuimg-accent);background:#fff;box-shadow:0 0 0 3px rgba(17,24,39,.1)}
.yuimg-global-search-form input{min-width:0;flex:1;padding:0;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:var(--yuimg-ink);font-family:inherit;font-size:var(--yuimg-text-base);line-height:1.4}
.yuimg-global-search-form input::-webkit-search-cancel-button{display:none}
.yuimg-global-search-clear{padding:2px 4px;border:0;background:transparent;color:#6b7280;font-size:20px;line-height:1;cursor:pointer}
.yuimg-global-search-results{position:absolute;top:calc(100% + 8px);right:0;left:0;max-height:min(620px,calc(100vh - 92px));padding:7px;overflow:auto;border:1px solid #e5e7eb;border-radius:14px;background:#fff;box-shadow:0 18px 48px rgba(17,24,39,.18)}
.yuimg-search-state{padding:26px 14px;color:var(--yuimg-muted);font-size:13px;text-align:center}
.yuimg-search-login-state{display:grid;justify-items:center;gap:12px}
.yuimg-search-login-button{min-height:34px;padding:0 18px;border:0;border-radius:18px;background:var(--yuimg-accent);color:#fff;font-family:inherit;font-size:var(--yuimg-text-sm);font-weight:650;line-height:1;cursor:pointer}
.yuimg-search-login-button:hover{background:var(--yuimg-accent-hover)}
.yuimg-search-section+.yuimg-search-section{margin-top:6px;padding-top:6px;border-top:1px solid #f3f4f6}
.yuimg-search-section-title{display:flex;align-items:center;justify-content:space-between;padding:6px 8px;color:#6b7280;font-size:10px;font-weight:800;letter-spacing:.12em}
.yuimg-search-section-title span{min-width:20px;height:20px;display:grid;place-items:center;border-radius:10px;background:#f3f4f6;color:var(--yuimg-accent);font-size:10px;letter-spacing:0}
.yuimg-search-result{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;padding:8px;border-radius:9px;color:var(--yuimg-ink);text-decoration:none}
.yuimg-search-result:hover,.yuimg-search-result:focus{background:#f3f4f6;color:var(--yuimg-accent)}
.yuimg-search-result-thumb,.yuimg-search-result-badge{display:grid;width:42px;height:42px;place-items:center;overflow:hidden;border-radius:8px;background:#f3f4f6;color:var(--yuimg-accent);font-size:10px;font-weight:800}
.yuimg-search-result-thumb img{width:100%;height:100%;object-fit:cover}
.yuimg-search-result-badge.is-share{background:#eef0f7;color:#59628a}
.yuimg-search-result-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.yuimg-search-result-copy strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.yuimg-search-result-copy small{overflow:hidden;color:#84908b;font-size:10px;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:1100px){.yuimg-global-search{width:min(330px,30vw)}}
@media(max-width:900px){
    .yuimg-global-search{position:static;width:auto;transform:none}
    .yuimg-global-search-toggle{display:flex}
    .yuimg-global-search-panel{position:fixed;top:calc(var(--yuimg-header-h) + 8px);right:12px;left:12px;display:none;width:auto}
    .yuimg-global-search.is-open .yuimg-global-search-panel{display:block}
    .yuimg-global-search-form{height:44px;border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(17,24,39,.14)}
    .yuimg-global-search-results{top:calc(100% + 6px);max-height:calc(100vh - var(--yuimg-header-h) - 76px)}
    body.admin-bar .yuimg-global-search-panel{top:calc(var(--yuimg-header-h) + 40px)}
}
@media(max-width:782px){body.admin-bar .yuimg-global-search-panel{top:calc(var(--yuimg-header-h) + 54px)}}

/* Keep the footer at the viewport bottom on short pages. */
body{display:flex;min-height:95dvh;flex-direction:column}
body>.yuimg-site-footer{margin-top:auto}

/* Always-visible public navigation. */
.yuimg-public-nav{display:flex;align-items:center;gap:3px;white-space:nowrap}.yuimg-public-nav a{padding:7px 10px;border-radius:18px;color:#4b5563;font-size:12px;font-weight:650;text-decoration:none}.yuimg-public-nav a:hover,.yuimg-public-nav a.is-active{background:#f3f4f6;color:#111827}.yuimg-site-header.is-manage .yuimg-public-nav{display:none}
@media(max-width:1100px){body:not(.yuimg-manage-view){padding-top:calc(var(--yuimg-header-h) + 40px)}.yuimg-site-header:not(.is-manage) .yuimg-public-nav{position:absolute;top:100%;right:-16px;left:-16px;height:39px;justify-content:center;border-top:1px solid var(--yuimg-border);border-bottom:1px solid var(--yuimg-border);background:rgba(255,255,255,.97)}.yuimg-site-header:not(.is-manage) .yuimg-public-nav a{padding:6px 13px}}

/* Shared breadcrumb behavior: retain each page's visual treatment and safely
   truncate long current titles on narrow screens. */
.yuimg-breadcrumb{min-width:0}
.yuimg-breadcrumb em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Stable SVG chevron for the account menu across platform font stacks. */
.yuimg-user-chevron{display:block;flex:none;width:16px;height:16px;color:#6b7280;transition:transform .18s}
.yuimg-user-dropdown.is-open .yuimg-user-chevron{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){.yuimg-user-chevron{transition:none}}

/* ── Clean white surface pass ───────────────────────────────
   Flatten the public UI: white canvas, neutral gray borders and
   text, no decorative elevation or hover movement. The green
   accent stays for links and primary actions. */
:root{
    --yuimg-page-bg:#fff;
    --yuimg-input-bg:#f7f7f8;
    --yuimg-border:#e5e7eb;
    --yuimg-hover:#f5f6f7;
    --yuimg-ink:#111827;
    --yuimg-muted:#6b7280;
}
body{background:#fff}

/* Header and account menu */
.yuimg-site-header{background:#fff;box-shadow:none;backdrop-filter:none}
.yuimg-nav-list li a:hover,
.yuimg-nav-list li.current-menu-item a,
.yuimg-public-nav a:hover,
.yuimg-public-nav a.is-active,
.yuimg-header-quick-nav a:hover,
.yuimg-header-quick-nav a.is-active{background:#f5f6f7;color:#111827}
.yuimg-user-toggle{background:#f5f6f7;color:#111827}
.yuimg-user-toggle:hover{background:#eceef1}
.yuimg-user-toggle i,.yuimg-user-chevron{color:#6b7280}
.yuimg-user-menu{border-color:#e5e7eb;box-shadow:0 8px 24px rgba(17,24,39,.12)}
.yuimg-user-menu a:hover{background:#f5f6f7;color:#111827}
.yuimg-site-footer{border-color:#e5e7eb;background:#fff}
.yuimg-site-footer-inner{color:#9ca3af}
.yuimg-site-footer-inner a{color:#6b7280}
.yuimg-site-footer-inner a:hover{color:#111827}

/* Header search */
.yuimg-global-search-form{border-color:#e5e7eb;background:#f5f6f7;color:#6b7280}
.yuimg-global-search-form:focus-within{border-color:#9ca3af;background:#fff;box-shadow:0 0 0 3px rgba(17,24,39,.06)}
.yuimg-global-search-results{border-color:#e5e7eb;box-shadow:0 12px 32px rgba(17,24,39,.14)}
.yuimg-search-section+.yuimg-search-section{border-color:#f0f1f3}
.yuimg-search-section-title{color:#6b7280}
.yuimg-search-section-title span{background:#f3f4f6;color:#4b5563}
.yuimg-search-result:hover,.yuimg-search-result:focus{background:#f5f6f7;color:#111827}
.yuimg-search-result-thumb,.yuimg-search-result-badge{background:#f3f4f6;color:#4b5563}
.yuimg-search-result-badge.is-share{background:#f3f4f6;color:#4b5563}
.yuimg-search-result-copy small{color:#9ca3af}

/* Blog index */
.yuimg-entry{border-color:#e5e7eb}
.yuimg-home-empty{border-color:#e5e7eb;background:#fafafa}
.yuimg-home-empty p{color:#6b7280}

/* Status and password pages */
.yuimg-status-code{color:#6b7280}
.yuimg-status-page h1{color:#111827}
.yuimg-status-page p{color:#6b7280}
.yuimg-status-link{border-color:#e5e7eb;background:#fff;color:#374151}
.yuimg-share-password-card{border-color:#e5e7eb;border-radius:10px;box-shadow:none}

/* On phones the management links live in the account menu so the fixed
   header keeps one row without squeezing the site title. */
.yuimg-user-menu .yuimg-user-menu-manage{display:none}
@media(max-width:640px){
    .yuimg-site-header:not(.is-manage) .yuimg-header-quick-nav{display:none}
    .yuimg-user-menu .yuimg-user-menu-manage{display:block}
}

/* ── StockSnap-inspired pass ─────────────────────────────────
   Reference: stocksnap.io. Photo-first white canvas, one
   mint-teal accent, hairline dividers, system sans UI and a
   pill-shaped search. Article reading text stays serif. */
:root{
    --yuimg-accent:#111827;
    --yuimg-accent-hover:#374151;
    --yuimg-accent-soft:#f3f4f6;
    --yuimg-accent-bright:#111827;
    --yuimg-surface:#f4f4f4;
    --yuimg-surface-soft:#ebeff2;
    --yuimg-border:#e1e5e9;
    --yuimg-ink:#1f2937;
    --yuimg-muted:#6d7975;
}
body{
    color:#333;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}
a{color:var(--yuimg-accent)}
a:hover{color:var(--yuimg-accent-hover)}

/* Header: hairline bar, underlined nav, pill search */
.yuimg-site-header{border-bottom-color:var(--yuimg-border);background:#fff}
.yuimg-site-title{color:#333;letter-spacing:-.02em}
.yuimg-nav-list li a{color:#454545;font-size:13px;font-weight:600;letter-spacing:.02em;transition:color .15s}
.yuimg-nav-list li a:hover{background:transparent;color:#111}
.yuimg-nav-list li.current-menu-item a{background:transparent;color:#111;font-weight:700}
.yuimg-header-quick-nav a,
.yuimg-public-nav a{color:#454545;font-size:13px;font-weight:600;transition:color .15s}
.yuimg-header-quick-nav a:hover,
.yuimg-public-nav a:hover{background:transparent;color:#111}
.yuimg-header-quick-nav a.is-active,
.yuimg-public-nav a.is-active{background:transparent;color:#111;font-weight:700}
.yuimg-global-search-form{border-color:transparent;border-radius:999px;background:var(--yuimg-surface);color:#777}
.yuimg-global-search-form:focus-within{border-color:var(--yuimg-accent-bright);background:#fff;box-shadow:0 0 0 3px rgba(17,24,39,.16)}
.yuimg-global-search-results{border-color:var(--yuimg-border);border-radius:12px;box-shadow:0 14px 34px rgba(17,24,39,.14)}
.yuimg-header-login,.yuimg-search-login-button{border-radius:4px;background:var(--yuimg-accent)}
.yuimg-header-login:hover,.yuimg-search-login-button:hover{background:var(--yuimg-accent-hover)}
.yuimg-user-toggle{background:var(--yuimg-surface)}
.yuimg-user-toggle:hover{background:#ececec}
.yuimg-user-menu a:hover{background:var(--yuimg-surface);color:#111}
.yuimg-search-section-title span{background:var(--yuimg-accent-soft);color:var(--yuimg-accent)}
.yuimg-search-result:hover,.yuimg-search-result:focus{background:var(--yuimg-surface);color:#111}
.yuimg-search-result-thumb,.yuimg-search-result-badge{background:var(--yuimg-accent-soft);color:var(--yuimg-accent)}
.yuimg-site-footer{border-color:var(--yuimg-border)}
.yuimg-site-footer-inner a:hover{color:#111}

/* Wide layout: structural containers hug the viewport edges. */
@media (min-width:761px){
    .yuimg-site-header-inner,
    .yuimg-site-footer-inner{width:calc(100% - 32px);max-width:1900px}
}

/* ── Header focus: public nav centered, search moved into the content ──
   The search no longer competes for space in the fixed bar, so the
   公开图库 / 公开文章 / 公开分享 links take the middle. It now renders
   as a band directly above the page content instead. */
@media (min-width:1101px){
    .yuimg-site-header:not(.is-manage) .yuimg-header-brand-wrap{flex:1 1 0;min-width:0}
    .yuimg-site-header:not(.is-manage) .yuimg-header-spacer{display:none}
    .yuimg-site-header:not(.is-manage) .yuimg-header-actions{flex:1 1 0;justify-content:flex-end}
}

.yuimg-search-band{padding:14px 0 0;background:#fff}
.yuimg-search-band-inner{display:flex;justify-content:center;width:min(1360px,calc(100% - 32px));margin:0 auto}
.yuimg-search-band .yuimg-global-search{width:min(640px,100%)}

.yuimg-search-band .yuimg-global-search{position:static;transform:none}
.yuimg-search-band .yuimg-global-search-toggle{display:none}
.yuimg-search-band .yuimg-global-search-panel{position:relative;top:auto;right:auto;left:auto;display:block;width:100%}

/* Public pages: the search sits in the header, just before the account links.
   At 900px and below it falls back to the round toggle + fixed panel. */
.yuimg-header-search{flex:0 1 260px;min-width:0}
@media(min-width:901px){
    .yuimg-header-search .yuimg-global-search{position:static;width:100%;transform:none}
    .yuimg-header-search .yuimg-global-search-form{height:38px;border-radius:19px;box-shadow:none}
    .yuimg-header-search .yuimg-global-search-results{left:auto;width:min(420px,calc(100vw - 32px));box-sizing:border-box}
}
@media(min-width:901px) and (max-width:1280px){.yuimg-header-search{flex-basis:200px}}
@media(max-width:900px){.yuimg-header-search{flex:none}}

@media (max-width:760px){
    .yuimg-search-band{padding:10px 0 0}
    .yuimg-search-band-inner{width:calc(100% - 28px)}
}

/* Shared display refinements. Page-specific layouts remain in their own files. */
body{box-sizing:border-box;min-height:100vh;min-height:100dvh;line-height:1.6}
body>main,body>.yuimg-search-band,body>.yuimg-site-footer{flex-shrink:0}
button,input,select,textarea{font-family:inherit}
::selection{background:#e5e7eb;color:#374151}
html{scroll-padding-top:120px}
.yuimg-site-title{min-width:0;font-size:19px;letter-spacing:-.025em}
.yuimg-site-title>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yuimg-site-icon{flex:none}
.yuimg-site-header{box-shadow:none}
.yuimg-public-nav{gap:8px}
.yuimg-public-nav a{position:relative;min-height:40px;box-sizing:border-box;display:inline-flex;align-items:center;padding:8px 12px;border-radius:6px;color:#4b5563;font-weight:500}
.yuimg-public-nav a:hover,.yuimg-public-nav a.is-active{background:#f3f4f6;color:#374151}
.yuimg-header-login{min-height:38px;padding:0 22px;border-radius:7px;font-size:13px}
.yuimg-user-toggle{max-width:180px;font-family:inherit;font-size:13px}
.yuimg-user-toggle>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yuimg-user-menu{max-width:calc(100vw - 32px);border-color:#e5e7eb;border-radius:10px;box-shadow:0 12px 32px #233e2e1a}
.yuimg-user-menu a{padding-top:11px;padding-bottom:11px}
.yuimg-site-header :where(a,button):focus-visible,.yuimg-site-footer a:focus-visible{outline:2px solid #111827;outline-offset:3px}
.yuimg-global-search-form{border:1px solid #e5e7eb;background:#f3f4f6;color:#6b7280}
.yuimg-global-search-form:focus-within{border-color:#9ca3af;background:#fff;box-shadow:0 0 0 3px rgba(17,24,39,.06)}
.yuimg-global-search-form input{font-size:13px}
.yuimg-global-search-form input::placeholder{color:#6b7280;opacity:1}
.yuimg-global-search-results{border-color:#e5e7eb;border-radius:10px;box-shadow:0 12px 32px #233e2e1a}
.yuimg-search-band .yuimg-global-search-form{height:44px;border-radius:8px;box-shadow:none}
.yuimg-site-footer{padding:24px 0;border-color:#e5e7eb}
.yuimg-site-footer-inner{color:#6b7280;font-size:12px;line-height:1.8}
.yuimg-site-footer-inner a{color:#6b7280}
.yuimg-site-footer-inner a:hover{color:#111827}
@media(min-width:1101px){.yuimg-site-header-inner,.yuimg-site-footer-inner{width:calc(100% - 64px);max-width:1900px}.yuimg-site-header:not(.is-manage) .yuimg-header-brand-wrap{flex:1 1 0;min-width:100px}.yuimg-site-header:not(.is-manage) .yuimg-header-actions{min-width:0}}
@media(max-width:1100px){.yuimg-site-header:not(.is-manage) .yuimg-public-nav{height:43px;box-sizing:border-box}.yuimg-site-header:not(.is-manage) .yuimg-public-nav a{min-height:34px;padding:5px 12px}body:not(.yuimg-manage-view){padding-top:calc(var(--yuimg-header-h) + 44px)}}
@media(max-width:640px){.yuimg-site-title{max-width:52vw;font-size:17px}.yuimg-header-login{min-height:36px;padding:0 17px}.yuimg-site-footer-inner{gap:10px}.yuimg-global-search-form input{font-size:16px}.yuimg-search-band .yuimg-global-search-form{background:#f3f4f6}}
@media(prefers-reduced-motion:reduce){.yuimg-site-header *,.yuimg-global-search-form{transition:none}}

/* ── Visual system ───────────────────────────────────────────
   Shared tokens for public pages. Page files (home, public, article,
   author) build on these instead of redefining colors and radii. */
:root {
    --yuimg-heading: #111827;
    --yuimg-text: #1f2937;
    --yuimg-subtle: #8a938f;
    --yuimg-soft-bg: #f9fafb;
    --yuimg-radius-sm: 6px;
    --yuimg-radius: 10px;
    --yuimg-radius-lg: 16px;
    --yuimg-shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
    --yuimg-shadow: 0 10px 30px rgba(17, 24, 39, .09);
    --yuimg-shadow-lg: 0 24px 60px rgba(17, 24, 39, .18);
    --yuimg-ease: cubic-bezier(.2, .8, .2, 1);
    --yuimg-serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
    --yuimg-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
    --yuimg-reading: 820px;
}

/* ── Public gallery pages (group page and share image section) ── */
.yuimg-gallery-page { box-sizing: border-box; width: calc(100% - 64px); max-width: 1900px; margin: 0 auto; padding: 36px 0 80px; }
.yuimg-share-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--yuimg-subtle); font-size: 12px; }
.yuimg-share-breadcrumb a { color: var(--yuimg-muted); text-decoration: none; }
.yuimg-share-breadcrumb a:hover { color: var(--yuimg-accent); }
.yuimg-share-breadcrumb em { font-style: normal; }
.yuimg-gallery-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--yuimg-border); }
.yuimg-gallery-hero h1 { margin: 0 0 6px; color: var(--yuimg-heading); font-size: clamp(28px, 3.6vw, 44px); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.yuimg-gallery-hero p { margin: 0; color: var(--yuimg-muted); font-size: 14px; }
.yuimg-gallery-kicker { color: var(--yuimg-accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.yuimg-gallery-expire { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--yuimg-accent-soft); color: var(--yuimg-accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.yuimg-gallery-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.yuimg-gallery-tags span { padding: 4px 10px; border: 1px solid var(--yuimg-border); border-radius: 999px; background: #fff; color: var(--yuimg-muted); font-size: 12px; }
.yuimg-gallery-summary { display: none; }

.yuimg-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.yuimg-gallery-card { position: relative; min-width: 0; overflow: hidden; border-radius: var(--yuimg-radius); background: var(--yuimg-surface); box-shadow: var(--yuimg-shadow-sm); transition: box-shadow .25s var(--yuimg-ease), transform .25s var(--yuimg-ease); }
.yuimg-gallery-card:hover { box-shadow: var(--yuimg-shadow); transform: translateY(-2px); }
.yuimg-gallery-open { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: var(--yuimg-surface); cursor: zoom-in; }
.yuimg-gallery-open img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--yuimg-ease); }
.yuimg-gallery-card:hover .yuimg-gallery-open img { transform: scale(1.04); }
.yuimg-gallery-card > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; }
.yuimg-gallery-card > div span { min-width: 0; flex: 1; overflow: hidden; color: var(--yuimg-heading); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.yuimg-gallery-card > div a { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--yuimg-accent-soft); color: var(--yuimg-accent); font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .18s, color .18s; }
.yuimg-gallery-card > div a:hover { background: var(--yuimg-accent); color: #fff; }

/* On pointer devices the caption becomes an overlay so the grid reads as pure photos. */
@media (hover: hover) and (min-width: 761px) {
    .yuimg-gallery-card > div { position: absolute; right: 0; bottom: 0; left: 0; padding: 40px 12px 11px; background: linear-gradient(to top, rgba(3,7,18, .74), rgba(3,7,18, 0)); opacity: 0; transform: translateY(8px); transition: opacity .22s var(--yuimg-ease), transform .22s var(--yuimg-ease); pointer-events: none; }
    .yuimg-gallery-card:hover > div, .yuimg-gallery-card:focus-within > div { opacity: 1; transform: none; }
    .yuimg-gallery-card:hover > div a, .yuimg-gallery-card:focus-within > div a { pointer-events: auto; }
    .yuimg-gallery-card > div span { color: #fff; }
    .yuimg-gallery-card > div a { background: rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(6px); }
    .yuimg-gallery-card > div a:hover { background: #fff; color: var(--yuimg-heading); }
}

.yuimg-gallery-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.yuimg-gallery-pagination a { display: grid; min-width: 38px; height: 38px; box-sizing: border-box; place-items: center; padding: 0 10px; border: 1px solid var(--yuimg-border); border-radius: var(--yuimg-radius-sm); background: #fff; color: #4b5563; font-size: 13px; text-decoration: none; transition: border-color .18s, color .18s; }
.yuimg-gallery-pagination a:hover { border-color: var(--yuimg-accent); color: var(--yuimg-accent); }
.yuimg-gallery-pagination a.is-active { border-color: var(--yuimg-accent); background: var(--yuimg-accent); color: #fff; }
.yuimg-gallery-empty { margin-top: 32px; padding: 72px 20px; border: 1px dashed #d1d5db; border-radius: var(--yuimg-radius-lg); background: var(--yuimg-soft-bg); text-align: center; }
.yuimg-gallery-empty h2 { margin: 0 0 8px; color: var(--yuimg-heading); font-size: 20px; font-weight: 650; }
.yuimg-gallery-empty p { margin: 0; color: var(--yuimg-muted); font-size: 14px; }

/* ── Share document ─────────────────────────────────────────── */
.yuimg-share-detail { width: min(1080px, calc(100% - 48px)); padding: 40px 0 88px; color: var(--yuimg-ink); }
.yuimg-share-detail > .yuimg-share-breadcrumb { max-width: var(--yuimg-reading); margin: 0 auto 20px; }
.yuimg-share-hero { display: block; max-width: var(--yuimg-reading); margin: 0 auto; padding: 0 0 26px; border-bottom: 1px solid var(--yuimg-border); }
.yuimg-share-hero-main { min-width: 0; }
.yuimg-share-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.yuimg-share-eyebrow .yuimg-gallery-kicker { padding: 4px 10px; border-radius: 999px; background: var(--yuimg-accent-soft); font-size: 10px; }
.yuimg-share-private-badge { padding: 4px 10px; border: 1px solid #efdcbc; border-radius: 999px; background: #fdf6ea; color: #8a5a1c; font-size: 10px; font-weight: 700; }
.yuimg-share-hero h1 { margin: 0; color: var(--yuimg-heading); font-size: clamp(28px, 4vw, 42px); font-weight: 650; letter-spacing: -.03em; line-height: 1.22; text-wrap: balance; }
.yuimg-share-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; overflow: hidden; margin-top: 14px; color: var(--yuimg-muted); font-size: 13px; line-height: 1.5; }
.yuimg-share-meta span { position: relative; }
.yuimg-share-meta span + span::before { position: absolute; top: 50%; left: -10px; width: 3px; height: 3px; border-radius: 50%; background: #d1d5db; content: ""; transform: translateY(-50%); }
.yuimg-share-meta-category { color: var(--yuimg-heading); font-weight: 600; }
.yuimg-share-hero .yuimg-gallery-expire { display: inline-block; margin-top: 14px; }
.yuimg-share-detail > .yuimg-gallery-tags { max-width: var(--yuimg-reading); margin: 16px auto 0; }
.yuimg-share-reading-layout { max-width: var(--yuimg-reading); margin: 36px auto 0; }

.yuimg-share-gallery-section { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--yuimg-border); }
.yuimg-share-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.yuimg-share-section-heading span { color: var(--yuimg-accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.yuimg-share-section-heading h2 { margin: 6px 0 0; color: var(--yuimg-heading); font-size: clamp(22px, 2.6vw, 28px); font-weight: 650; letter-spacing: -.02em; }
.yuimg-share-section-heading p { margin: 0; color: var(--yuimg-muted); font-size: 12px; }
.yuimg-share-gallery-section .yuimg-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 20px; }
.yuimg-share-gallery-section .yuimg-gallery-open img { aspect-ratio: 4 / 3; }

/* ── Reading typography (share descriptions, articles, pages) ── */
.yuimg-share-article { min-width: 0; color: var(--yuimg-text); font-family: var(--yuimg-serif); font-size: 16.5px; line-height: 1.9; }
.yuimg-share-article > :first-child { margin-top: 0; }
.yuimg-share-article p { margin: 0 0 1.25em; }
.yuimg-share-article :where(h2, h3, h4, h5) { color: var(--yuimg-heading); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", sans-serif; font-weight: 650; letter-spacing: -.01em; line-height: 1.4; text-wrap: balance; }
.yuimg-share-article h2 { margin: 2em 0 .7em; padding-bottom: .35em; border-bottom: 1px solid var(--yuimg-border); font-size: 1.5em; }
.yuimg-share-article h3 { margin: 1.7em 0 .6em; font-size: 1.25em; }
.yuimg-share-article h4 { margin: 1.5em 0 .5em; font-size: 1.1em; }
.yuimg-share-article h5 { margin: 1.4em 0 .5em; font-size: 1em; }
.yuimg-share-article a { color: var(--yuimg-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.yuimg-share-article strong { color: var(--yuimg-heading); }
.yuimg-share-article :where(ul, ol) { margin: 0 0 1.4em; padding-left: 1.45em; }
.yuimg-share-article li { margin: .4em 0; padding-left: .25em; }
.yuimg-share-article li::marker { color: var(--yuimg-accent); font-weight: 700; }
.yuimg-share-article blockquote { margin: 1.6em 0; padding: 14px 20px; border-left: 3px solid var(--yuimg-accent-bright); border-radius: 0 var(--yuimg-radius-sm) var(--yuimg-radius-sm) 0; background: #f3f4f6; color: #4b5563; }
.yuimg-share-article blockquote p:last-child { margin-bottom: 0; }
.yuimg-share-article :not(pre) > code { padding: 2px 6px; border: 1px solid var(--yuimg-border); border-radius: 4px; background: #f6f7f7; color: #b42318; font-family: var(--yuimg-mono); font-size: .86em; }
.yuimg-share-article pre { overflow: auto; margin: 1.5em 0; padding: 18px 20px; border-radius: var(--yuimg-radius); background: #1f2937; color: #e5e7eb; font-family: var(--yuimg-mono); font-size: 13px; line-height: 1.7; }
.yuimg-share-article pre code { border: 0; background: transparent; color: inherit; }
.yuimg-share-article table { display: block; width: 100%; overflow-x: auto; margin: 1.5em 0; border-collapse: collapse; font-family: inherit; font-size: 14px; }
.yuimg-share-article :where(th, td) { padding: 10px 13px; border: 1px solid var(--yuimg-border); text-align: left; }
.yuimg-share-article th { background: #f3f4f6; color: var(--yuimg-heading); }
.yuimg-share-article tr:nth-child(even) td { background: var(--yuimg-soft-bg); }
.yuimg-share-article :where(img, video) { max-width: 100%; height: auto; border-radius: var(--yuimg-radius-sm); }
.yuimg-share-article :where(img) { cursor: zoom-in; }
.yuimg-share-article figure { margin: 1.8em 0; }
.yuimg-share-article figcaption { margin-top: 8px; color: var(--yuimg-subtle); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 12px; line-height: 1.6; text-align: center; }
.yuimg-share-article hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--yuimg-border); }
.yuimg-share-article :where(h2, h3, h4, h5) { scroll-margin-top: calc(var(--yuimg-header-h, 60px) + 24px); }

/* Rich content blocks inserted by the share editor. */
.yuimg-share-article :is(.yuimg-content-image-single, .yuimg-content-image-grid, .yuimg-content-carousel) { position: relative; margin: 32px 0; overflow: hidden; border-radius: var(--yuimg-radius); background: var(--yuimg-surface); }
.yuimg-share-article :is(.yuimg-content-image-single, .yuimg-content-image-grid, .yuimg-content-carousel) figure { margin: 0; overflow: hidden; }
.yuimg-share-article :is(.yuimg-content-image-single, .yuimg-content-image-grid, .yuimg-content-carousel) img { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.yuimg-share-article .yuimg-content-image-single img { max-height: 780px; object-fit: contain; }
.yuimg-share-article :is(.yuimg-content-image-single, .yuimg-content-image-grid, .yuimg-content-carousel) figcaption { margin: 0; padding: 8px 12px; background: var(--yuimg-soft-bg); }
.yuimg-share-article .yuimg-content-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: #fff; }
.yuimg-share-article .yuimg-content-image-grid figure { aspect-ratio: 4 / 3; }
.yuimg-share-article :is(.yuimg-content-grid-3, .yuimg-content-grid-5, .yuimg-content-grid-7, .yuimg-content-grid-9) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yuimg-share-article div.yuimg-content-carousel { padding-bottom: 30px; background: #111827; color: #fff; outline: none; }
.yuimg-share-article div.yuimg-content-carousel:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111827; }
.yuimg-carousel-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.yuimg-carousel-track::-webkit-scrollbar { display: none; }
.yuimg-content-carousel.is-dragging .yuimg-carousel-track { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.yuimg-carousel-track figure { position: relative; flex: 0 0 100%; aspect-ratio: 3 / 2; scroll-snap-align: start; scroll-snap-stop: always; }
.yuimg-share-article div.yuimg-content-carousel img { object-fit: contain; background: #111827; -webkit-user-drag: none; }
.yuimg-share-article div.yuimg-content-carousel figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 28px 16px 10px; overflow: hidden; background: linear-gradient(transparent, rgba(3, 7, 18, .72)); color: #fff; font-size: 13px; font-weight: 500; text-shadow: 0 1px 2px rgba(3, 7, 18, .5); text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.yuimg-share-article div.yuimg-content-carousel figcaption:empty { display: none; }
.yuimg-carousel-nav { position: absolute; z-index: 3; top: calc(50% - 15px); display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111827; box-shadow: 0 2px 8px rgba(3, 7, 18, .24); opacity: 0; transform: translateY(-50%); cursor: pointer; transition: opacity .18s, background .18s; }
.yuimg-content-carousel:is(:hover, :focus-within) .yuimg-carousel-nav { opacity: 1; }
.yuimg-content-carousel .yuimg-carousel-nav:disabled { opacity: 0; pointer-events: none; }
.yuimg-carousel-nav:hover { background: #fff; }
.yuimg-carousel-nav.is-prev { left: 14px; }
.yuimg-carousel-nav.is-next { right: 14px; }
.yuimg-carousel-status { position: absolute; z-index: 3; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(3, 7, 18, .72); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.yuimg-carousel-dots { position: absolute; right: 0; bottom: 0; left: 0; display: flex; height: 30px; align-items: center; justify-content: center; gap: 6px; }
.yuimg-carousel-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .2s, background .2s; }
.yuimg-carousel-dots button.is-active { width: 18px; background: #fff; }
@media (hover: none) { .yuimg-carousel-nav { display: none; } }
.yuimg-share-article .yuimg-video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 32px 0; overflow: hidden; border-radius: var(--yuimg-radius); background: #030712; }
.yuimg-share-article .yuimg-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 760px) {
    .yuimg-gallery-page { width: calc(100% - 28px); padding: 22px 0 56px; }
    .yuimg-gallery-hero { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 18px; }
    .yuimg-gallery-grid, .yuimg-share-gallery-section .yuimg-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
    .yuimg-gallery-card { border-radius: 8px; }
    .yuimg-gallery-card:hover { transform: none; }
    .yuimg-gallery-card > div { padding: 8px; }
    .yuimg-gallery-card > div span { font-size: 12px; }
    .yuimg-share-detail { width: calc(100% - 28px); padding: 22px 0 56px; }
    .yuimg-share-detail > .yuimg-share-breadcrumb { margin-bottom: 14px; }
    .yuimg-share-hero { padding-bottom: 18px; }
    .yuimg-share-hero h1 { font-size: clamp(24px, 7vw, 30px); }
    .yuimg-share-meta { gap: 4px 16px; font-size: 12px; }
    .yuimg-share-reading-layout { margin-top: 24px; }
    .yuimg-share-article { font-size: 15.5px; line-height: 1.82; }
    .yuimg-share-article :is(.yuimg-content-image-single, .yuimg-content-image-grid, .yuimg-content-carousel), .yuimg-share-article .yuimg-video-embed { margin: 24px 0; border-radius: 8px; }
    .yuimg-share-article :is(.yuimg-content-image-grid, .yuimg-content-grid-3, .yuimg-content-grid-5, .yuimg-content-grid-7, .yuimg-content-grid-9) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
    .yuimg-share-gallery-section { margin-top: 40px; padding-top: 20px; }
    .yuimg-share-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .yuimg-share-article div.yuimg-content-carousel { padding-bottom: 26px; }
    .yuimg-carousel-track figure { aspect-ratio: 4 / 3; }
    .yuimg-carousel-dots { height: 26px; }
}

/* ── Lightbox ─────────────────────────────────────────────── */
.yuimg-lightbox[hidden] { display: none !important; }
.yuimg-lightbox { position: fixed; z-index: 150000; inset: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: 60px minmax(0, 1fr); align-items: center; padding: 0 18px 18px; background: rgba(3,7,18, .94); color: #fff; touch-action: none; backdrop-filter: blur(8px); animation: yuimg-lightbox-in .2s var(--yuimg-ease); }
.yuimg-lightbox-top { display: flex; min-width: 0; grid-column: 1 / -1; align-items: center; justify-content: space-between; padding: 10px 4px; }
.yuimg-lightbox-counter { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.yuimg-lightbox-tools { display: flex; align-items: center; gap: 6px; }
.yuimg-lightbox-tools button, .yuimg-lightbox-download { display: inline-flex; min-width: 36px; height: 36px; box-sizing: border-box; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s; }
.yuimg-lightbox-tools button:hover, .yuimg-lightbox-download:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .22); color: #fff; }
.yuimg-lightbox-close { width: 36px; padding: 0; font-size: 22px; line-height: 1; }
.yuimg-lightbox-stage { position: relative; display: grid; width: 100%; height: 100%; min-height: 0; grid-column: 2; grid-row: 2; place-items: center; overflow: hidden; }
.yuimg-lightbox-stage img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 6px; object-fit: contain; box-shadow: 0 20px 70px rgba(0, 0, 0, .5); transform-origin: center; user-select: none; -webkit-user-drag: none; will-change: transform; }
.yuimg-lightbox-caption { position: absolute; right: 10px; bottom: 6px; left: 10px; overflow: hidden; color: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 500; text-align: center; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.yuimg-lightbox-nav { display: grid; width: 48px; height: 48px; place-items: center; justify-self: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background .18s, transform .18s; }
.yuimg-lightbox-nav:hover { background: rgba(255, 255, 255, .18); transform: scale(1.06); }
.yuimg-lightbox-nav.is-prev { grid-column: 1; grid-row: 2; }
.yuimg-lightbox-nav.is-next { grid-column: 3; grid-row: 2; }
.yuimg-lightbox-open { overflow: hidden; }
.yuimg-lightbox-thumbs { display: none; }
.yuimg-lightbox.has-thumbs { grid-template-rows: 60px minmax(0, 1fr) 72px; }
.yuimg-lightbox.has-thumbs .yuimg-lightbox-stage img { max-height: calc(100vh - 190px); }
.yuimg-lightbox.has-thumbs .yuimg-lightbox-thumbs { display: flex; min-width: 0; grid-column: 1 / -1; grid-row: 3; justify-content: safe center; gap: 6px; overflow-x: auto; padding: 8px 4px 2px; scrollbar-width: none; }
.yuimg-lightbox-thumbs::-webkit-scrollbar { display: none; }
.yuimg-lightbox-thumbs button { flex: none; width: 52px; height: 52px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: rgba(255, 255, 255, .08); opacity: .5; cursor: pointer; transition: opacity .18s, border-color .18s; }
.yuimg-lightbox-thumbs button:hover { opacity: .85; }
.yuimg-lightbox-thumbs button.is-active { border-color: #fff; opacity: 1; }
.yuimg-lightbox-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.yuimg-lightbox-stage::before { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; box-sizing: border-box; border: 3px solid rgba(255, 255, 255, .18); border-top-color: #fff; border-radius: 50%; content: ""; opacity: 0; animation: yuimg-spin .8s linear infinite; transition: opacity .2s; pointer-events: none; }
.yuimg-lightbox.is-loading .yuimg-lightbox-stage::before { opacity: 1; }
.yuimg-lightbox.is-loading .yuimg-lightbox-stage img { opacity: .35; }
.yuimg-lightbox-stage img { transition: opacity .2s; }
@keyframes yuimg-spin { to { transform: rotate(360deg); } }
@keyframes yuimg-lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 700px) {
    .yuimg-lightbox { grid-template-columns: 46px minmax(0, 1fr) 46px; grid-template-rows: 54px minmax(0, 1fr) 54px; padding: 0 6px max(8px, env(safe-area-inset-bottom)); }
    .yuimg-lightbox-top { padding: 7px 6px; }
    .yuimg-lightbox-tools [data-zoom="out"], .yuimg-lightbox-tools [data-zoom="in"] { display: none; }
    .yuimg-lightbox-stage { grid-column: 1 / -1; grid-row: 2; }
    .yuimg-lightbox-stage img { max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); }
    .yuimg-lightbox-nav { width: 42px; height: 42px; font-size: 26px; }
    .yuimg-lightbox-nav.is-prev { grid-column: 1; grid-row: 3; }
    .yuimg-lightbox-nav.is-next { grid-column: 3; grid-row: 3; }
    .yuimg-lightbox.has-thumbs { grid-template-rows: 54px minmax(0, 1fr) 58px; }
    .yuimg-lightbox.has-thumbs .yuimg-lightbox-stage img { max-height: calc(100vh - 134px); max-height: calc(100dvh - 134px); }
    .yuimg-lightbox.has-thumbs .yuimg-lightbox-thumbs { grid-column: 2; padding: 6px 2px 0; }
    .yuimg-lightbox-thumbs button { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .yuimg-gallery-card, .yuimg-gallery-open img, .yuimg-gallery-card > div, .yuimg-lightbox-nav { transition: none; }
    .yuimg-gallery-card:hover, .yuimg-gallery-card:hover .yuimg-gallery-open img { transform: none; }
    .yuimg-lightbox { animation: none; }
}

/* ── One shell for every page ─────────────────────────────────
   Header, content shell, search band and footer share one width token so
   public pages and the image/file libraries line up at every breakpoint. */
.yuimg-site-header-inner,
.yuimg-site-footer-inner,
.yuimg-search-band-inner,
.yuimg-site-header.is-manage .yuimg-site-header-inner {
    width: min(var(--yuimg-shell-max, 1900px), calc(100% - var(--yuimg-gutter, 32px) * 2));
    max-width: var(--yuimg-shell-max, 1900px);
}

@media (max-width: 1180px) {
    :root {
        --yuimg-gutter: 20px;
        --yuimg-rail: 220px;
        --yuimg-rail-gap: 28px;
    }
}

@media (max-width: 640px) {
    :root {
        --yuimg-gutter: 14px;
        --yuimg-rail-gap: 20px;
    }

    /* The user menu already carries the management links on phones. */
    .yuimg-site-header.is-manage .yuimg-header-quick-nav {
        display: none;
    }

    /* Do not leave the mobile header with an empty brand area. */
    .yuimg-site-header.is-manage .yuimg-site-title > span {
        display: inline;
    }
}

/* Keep the shell width stable between long and short pages. */
html {
    scrollbar-gutter: stable;
}

/* The hidden attribute must win over component display rules (.button etc.). */
[hidden] {
    display: none !important;
}

/* ── Line icons (Helpers::icon / YuImgIcon) ── */
:root{--yuimg-icon-arrow-right:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E")}
.yuimg-icon{display:inline-block;flex:none;vertical-align:-.18em;pointer-events:none}
:where(button,a,span):where(:has(> .yuimg-icon)){display:inline-flex;align-items:center;justify-content:center;gap:6px}
:where(button,a,span)[hidden]:where(:has(> .yuimg-icon)){display:none}
.yuimg-arrow-link::after,.yuimg-public-section > header > a::after,.yuimg-home-section-head > a::after,.yuimg-home-tabs-more::after,.yuimg-author-post-more::after{display:inline-block;width:14px;height:14px;margin-left:4px;vertical-align:-2px;background:currentColor;content:"";-webkit-mask:var(--yuimg-icon-arrow-right) center/contain no-repeat;mask:var(--yuimg-icon-arrow-right) center/contain no-repeat;transition:transform .18s}
.yuimg-arrow-link:hover::after,.yuimg-home-section-head > a:hover::after,.yuimg-home-tabs-more:hover::after,.yuimg-author-post-more:hover::after{transform:translateX(3px)}
/* ── Likes (articles and shares) ── */
.yuimg-like-bar { display: flex; justify-content: center; margin: 40px 0 8px; }
.yuimg-article-footer > .yuimg-like-bar { margin: 0 0 28px; }
.yuimg-like { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 0 20px; border: 1px solid var(--yuimg-line-strong, #d1d5db); border-radius: 999px; background: #fff; color: #111827; font: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; transition: border-color .18s, background .18s, color .18s; }
.yuimg-like:hover { border-color: #9ca3af; background: #f9fafb; }
.yuimg-like:focus-visible { outline: 2px solid #111827; outline-offset: 2px; }
.yuimg-like:disabled { cursor: progress; }
.yuimg-like .yuimg-icon { transition: transform .2s, fill .2s; }
.yuimg-like-count { min-width: 1ch; padding-left: 8px; border-left: 1px solid #e5e7eb; color: #374151; font-variant-numeric: tabular-nums; }
.yuimg-like.is-liked { border-color: #fecaca; background: #fef2f2; color: #dc2626; }
.yuimg-like.is-liked .yuimg-icon { fill: currentColor; }
.yuimg-like.is-liked .yuimg-like-count { border-color: #fecaca; color: #dc2626; }
.yuimg-like.is-popping .yuimg-icon { animation: yuimg-like-pop .36s ease; }
@keyframes yuimg-like-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .yuimg-like.is-popping .yuimg-icon { animation: none; } }
/* Editor preview banner (front-end preview page) */
.yuimg-preview-notice {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #111827;
    color: #f9fafb;
    font-size: 13px;
    line-height: 1.4;
}
