/* 页头 / 导航 */
.site-header-bar {
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    max-width: 100%;
    min-width: 0;
    font-size: 26px;
    line-height: 1.25;
    font-weight: bold;
    color: var(--wnl-theme-accent);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.site-logo:hover {
    color: var(--wnl-nav-accent-hover);
    text-decoration: none;
}

.site-logo:active {
    filter: brightness(0.97);
}

.site-logo:focus-visible {
    outline: 2px solid var(--wnl-theme-accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.site-logo__mark-wrap {
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    height: 50px;
    width: auto;
    aspect-ratio: 121 / 75;
}

/* 浅色主题页头背景：深色篆字 PNG */
.site-logo__mark-wrap .site-logo__mark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    pointer-events: none;
}

.site-logo__mark--darkmode {
    visibility: hidden;
}

html[data-theme="dark"] .site-logo__mark--light-theme {
    visibility: hidden;
}

html[data-theme="dark"] .site-logo__mark--darkmode {
    visibility: visible;
}

.site-header-bar__cluster {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 20px);
    flex: 1 1 auto;
    min-width: 0;
}

.site-header-bar__cluster .site-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.site-nav-toggle {
    display: none;
}

.site-nav-backdrop {
    display: none;
}

.site-nav-drawer-head {
    display: none;
}

.wnl-theme-toggle {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--wnl-border-warm);
    border-radius: 10px;
    background: var(--wnl-bg-parchment);
    color: var(--wnl-theme-accent);
    cursor: pointer;
    box-shadow: 0 1px 0 var(--wnl-inset-chip) inset;
}

.wnl-theme-toggle:hover {
    filter: brightness(0.95);
}

.wnl-theme-toggle:focus-visible {
    outline: 2px solid var(--wnl-theme-accent);
    outline-offset: 2px;
}

.wnl-theme-toggle__glyph {
    width: 22px;
    height: 22px;
}

html[data-theme="light"] .wnl-theme-toggle__glyph--sun {
    display: none;
}

html[data-theme="dark"] .wnl-theme-toggle__glyph--moon {
    display: none;
}

.breadcrumb-container {
    flex-shrink: 0;
    padding: 0 var(--page-gutter-x);
    font-size: 13px;
    line-height: 1.5;
    color: var(--wnl-text-brown);
    background: linear-gradient(180deg, var(--wnl-breadcrumb-from) 0%, var(--wnl-breadcrumb-to) 100%);
    border-top: 3px solid var(--wnl-theme-accent);
    border-bottom: 1px solid var(--wnl-breadcrumb-edge);
    box-shadow: inset 0 1px 0 var(--wnl-rule-argb255_255_255-550);
}

.breadcrumb-container__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 4px;
    padding: 12px 0 13px;
    max-width: 1200px;
}

.breadcrumb__lead {
    margin: 0;
    padding: 0 2px 0 0;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--wnl-crumb-lead);
    white-space: nowrap;
}

/* 可点：小衬块 + 与主导航、热门链同系 */
.breadcrumb__a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding: 4px 12px 5px;
    font-weight: 600;
    font-size: 13px;
    color: var(--wnl-crumb-link-fg) !important;
    text-decoration: none;
    background: linear-gradient(180deg, var(--wnl-crumb-pill-top) 0%, var(--wnl-crumb-pill-bot) 100%);
    border: 1px solid var(--wnl-crumb-pill-border);
    border-radius: 8px;
    box-shadow: 0 1px 0 var(--wnl-rule-argb255_255_255-750) inset, 0 1px 2px var(--wnl-rule-argb60_40_0-050);
    transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.breadcrumb__a:hover {
    color: var(--wnl-theme-accent) !important;
    background: var(--wnl-crumb-pill-hover);
    border-color: var(--wnl-theme-accent);
    box-shadow: 0 1px 0 var(--wnl-rule-argb255_255_255-850) inset, 0 2px 6px var(--wnl-rule-argb100_60_20-080);
}

.breadcrumb__a:active {
    background: var(--wnl-crumb-pill-active);
    transform: translateY(0.5px);
}

.breadcrumb__a:focus-visible {
    outline: 2px solid var(--wnl-theme-accent);
    outline-offset: 2px;
}

/* 单角分隔，避免默认蓝色、略抬视觉节奏 */
.breadcrumb-sep {
    display: inline-block;
    margin: 0 1px;
    padding: 0 1px;
    font-size: 1.1em;
    line-height: 1;
    font-weight: 600;
    color: var(--wnl-crumb-sep);
    user-select: none;
}

/* 当前页 / 无链接 */
.breadcrumb-title {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding: 4px 12px 5px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--wnl-crumb-title-fg);
    background: var(--wnl-crumb-title-bg);
    border: 1px solid var(--wnl-crumb-title-border);
    border-radius: 8px;
    box-shadow: 0 1px 0 var(--wnl-col-inset-highlight) inset;
}

.breadcrumb-title--current {
    color: var(--wnl-crumb-current-fg);
    background: linear-gradient(180deg, var(--wnl-crumb-current-top) 0%, var(--wnl-crumb-current-bot) 100%);
    border-color: var(--wnl-crumb-current-border);
}

/* 首页：节日 + 历史上的今天（同背景顶边；内层无纵向外边距） */
.breadcrumb-container--festivals {
    border-top: 3px solid var(--wnl-theme-accent);
    box-shadow: inset 0 1px 0 var(--wnl-rule-argb255_255_255-500);
    padding: 0;
    background: linear-gradient(180deg, var(--wnl-breadcrumb-from) 0%, var(--wnl-breadcrumb-to) 100%);
    border-bottom: 1px solid var(--wnl-breadcrumb-edge);
}

.breadcrumb-container--festivals a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb-container--festivals a:hover {
    text-decoration: none;
    filter: brightness(0.95);
}

.home-hero-ticker--inline {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.home-hero-ticker__strip {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    max-width: 1200px;
    padding: 10px 12px 12px;
    margin: 0 auto;
    box-sizing: border-box;
}

.home-hero-ticker__strip--with-countdown {
    align-items: center;
    gap: 12px 18px;
}

.home-holiday-countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4em 0.55em;
    flex: 1 1 220px;
    margin: 0;
    min-width: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--wnl-text-brown);
}

.home-holiday-countdown__icon {
    flex: 0 0 auto;
    width: 1.2em;
    height: 1.2em;
    display: block;
    flex-shrink: 0;
    color: var(--wnl-theme-accent);
    opacity: 0.92;
}

.home-holiday-countdown__lead {
    margin-right: 0.25em;
    color: var(--wnl-hero-lead);
    font-weight: 700;
}

.home-holiday-countdown__name {
    margin-right: 0.35em;
    color: var(--wnl-hero-name);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid var(--wnl-link-underline-accent);
}

.home-holiday-countdown__name:hover {
    border-bottom-color: var(--wnl-theme-accent);
    filter: brightness(0.92);
}

.home-holiday-countdown__num {
    color: var(--wnl-hero-num);
    font-weight: 600;
}

.home-holiday-countdown__num strong {
    font-weight: 800;
    color: var(--wnl-hero-strong);
    font-variant-numeric: tabular-nums;
}

.home-holiday-countdown__empty {
    font-size: 13px;
    font-weight: 500;
    color: var(--wnl-hero-empty);
}

.home-header-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 200px;
    justify-content: flex-end;
    min-width: 0;
    margin: 0;
}

.home-header-search__input {
    flex: 1 1 140px;
    min-width: 0;
    max-width: 320px;
    margin: 0;
    padding: 6px 12px 7px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--wnl-text-brown);
    border-radius: 999px;
    border: 1px solid var(--wnl-beijing-chip-border);
    background: var(--wnl-beijing-chip-bg);
    box-shadow: 0 1px 0 var(--wnl-inset-chip) inset;
}

.home-header-search__input::placeholder {
    color: var(--wnl-hero-empty);
    font-weight: 400;
}

.home-header-search__input:focus {
    outline: 2px solid var(--wnl-theme-accent);
    outline-offset: 1px;
}

.home-header-search__btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 16px 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--wnl-surface, #fff);
    background: var(--wnl-theme-accent);
    border: 1px solid color-mix(in srgb, var(--wnl-theme-accent) 82%, #000 18%);
    border-radius: 999px;
    cursor: pointer;
}

.home-header-search__btn:hover {
    filter: brightness(1.05);
}

.home-header-search__btn:active {
    filter: brightness(0.95);
}

@media (max-width: 520px) {
    .home-header-search {
        justify-content: stretch;
        width: 100%;
    }

    .home-header-search__input {
        max-width: none;
    }
}

.wnl-search-head {
    margin: 1.25rem 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wnl-breadcrumb-edge, rgba(0, 0, 0, 0.08));
}

.wnl-search-head__title {
    margin: 0 0 0.85rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--wnl-text-brown, inherit);
    line-height: 1.3;
}

.wnl-search-head__kw {
    color: var(--wnl-theme-accent);
    font-weight: 900;
}

.wnl-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    max-width: 36rem;
}

.wnl-search-form__input {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.55rem 0.85rem;
    font-size: 1rem;
    border: 1px solid var(--wnl-beijing-chip-border, #d4c4a8);
    border-radius: 999px;
    background: var(--wnl-beijing-chip-bg, #fff);
    color: var(--wnl-text-brown, inherit);
}

.wnl-search-form__input:focus {
    outline: 2px solid var(--wnl-theme-accent);
    outline-offset: 1px;
}

.wnl-search-form__btn {
    padding: 0.55rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--wnl-surface, #fff);
    background: var(--wnl-theme-accent);
    border: 1px solid color-mix(in srgb, var(--wnl-theme-accent) 82%, #000 18%);
    border-radius: 999px;
    cursor: pointer;
}

.wnl-search-summary {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: var(--wnl-hero-lead, inherit);
    line-height: 1.5;
}

.wnl-search-by-cat {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.wnl-search-cat-block {
    margin: 0;
    padding: 0;
}

.wnl-search-cat-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.65rem;
}

.wnl-search-cat-block__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.wnl-search-cat-block__catlink {
    color: var(--wnl-theme-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--wnl-link-underline-accent, transparent);
}

.wnl-search-cat-block__catlink:hover {
    border-bottom-color: var(--wnl-theme-accent);
}

.wnl-search-cat-block__catlink--muted {
    color: var(--wnl-hero-empty, #888);
    border-bottom: none;
    cursor: default;
}

.wnl-search-cat-block__count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wnl-hero-num, inherit);
    font-variant-numeric: tabular-nums;
}

.wnl-search-cat-block__list {
    margin-top: 0;
}

.wnl-search-empty {
    margin: 1rem 0 2rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px dashed var(--wnl-breadcrumb-edge, #ccc);
    background: var(--wnl-beijing-chip-bg, rgba(0, 0, 0, 0.03));
    color: var(--wnl-text-brown, inherit);
    line-height: 1.55;
}

/* 主导航：与月历 cal-nav 同系（米黄渐变、金棕边、药丸式） */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    flex: 1 1 auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 10px;
    margin: 0;
    padding: 0;
}

.nav-menu__item {
    margin: 0;
}

.nav-menu__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--wnl-theme-accent);
    text-decoration: none;
    background: linear-gradient(180deg, var(--wnl-bg-parchment) 0%, var(--wnl-tone-low) 100%);
    border: 1px solid var(--wnl-cal-nav-border);
    border-radius: 999px;
    box-shadow:
        0 1px 0 var(--wnl-rule-argb255_255_255-650) inset,
        0 1px 2px var(--wnl-rule-argb80_40_0-070);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-menu__link:hover {
    color: var(--wnl-nav-menu-hover-fg);
    background: var(--wnl-nav-menu-hover-bg);
    border-color: var(--wnl-border-accent);
    text-decoration: none;
    box-shadow:
        0 1px 0 var(--wnl-rule-argb255_255_255-800) inset,
        0 2px 8px var(--wnl-rule-argb102_51_0-100);
}

.nav-menu__link:active {
    background: var(--wnl-nav-menu-active);
    box-shadow: 0 1px 2px var(--wnl-rule-argb102_51_0-100) inset;
    transform: translateY(1px);
}

.nav-menu__link:focus-visible {
    outline: 2px solid var(--wnl-theme-accent);
    outline-offset: 2px;
}

/* 页脚：与顶栏/面包屑同系（米黄渐变 + 主色顶边，链色与内页一致） */
.site-footer {
    flex-shrink: 0;
    margin-top: 50px;
    padding: 22px var(--page-gutter-x) 26px;
    background: linear-gradient(180deg, var(--wnl-footer-from) 0%, var(--wnl-footer-to) 100%);
    border-top: 3px solid var(--wnl-theme-accent);
    box-shadow: inset 0 1px 0 var(--wnl-rule-argb255_255_255-500);
}

.site-footer__inner,
.site-footer .container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
    color: var(--wnl-text-brown);
}

.site-footer__nav {
    margin: 0 0 14px;
    line-height: 1.85;
    flex-wrap: wrap;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0;
}

.site-footer__rule {
    border: none;
    border-top: 1px solid var(--wnl-footer-rule);
    margin: 0 auto 14px;
    max-width: min(520px, 100%);
    opacity: 1;
}

.site-footer__tagline {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--wnl-text-brown);
}

.site-footer__copy {
    margin: 0;
}

.site-footer a,
.site-footer__link {
    color: var(--wnl-theme-link);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer__link:hover {
    color: var(--wnl-theme-accent);
    text-decoration: underline;
}

.site-footer__sep {
    display: inline-block;
    margin: 0 0.45em;
    color: var(--wnl-text-sep-soft);
    font-weight: 400;
}

/* 与顶栏站点名同强调色，略轻 */
.site-footer__brand {
    font-weight: 600;
    color: var(--wnl-theme-accent) !important;
}

.site-footer__brand:hover {
    color: var(--wnl-theme-accent) !important;
    text-decoration: underline;
}

/* 全局返回顶部（固定于视口，与页脚同系配色） */
.back-to-top {
    position: fixed;
    z-index: 900;
    right: max(14px, calc(env(safe-area-inset-right, 0px) + 10px));
    bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 18px));
    width: 46px;
    height: 46px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--wnl-back-top-br);
    border-radius: 50%;
    background: linear-gradient(180deg, var(--wnl-back-top-bg1) 0%, var(--wnl-back-top-bg2) 100%);
    color: var(--wnl-theme-accent);
    box-shadow: 0 2px 10px var(--wnl-rule-argb90_60_30-140);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease,
        background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(180deg, var(--wnl-nav-pill-hover) 0%, var(--wnl-border-warm) 100%);
    border-color: var(--wnl-theme-accent);
    color: var(--wnl-patch-hero-bar);
    box-shadow: 0 3px 14px var(--wnl-rule-argb90_60_30-180);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--wnl-theme-accent);
    outline-offset: 3px;
}

.back-to-top__icon {
    width: 22px;
    height: 22px;
    display: block;
}

