﻿/* 全站厚产品壳：几何固定。深色页用深壳，浅色社区/创作用浅壳。 */

.site-chrome {
    --site-chrome-height: 64px;
    --text-primary: #f4f6ff;
    --text-secondary: #c5c8d8;
    --border: rgba(255, 255, 255, 0.14);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --primary: #b06bff;
    box-sizing: border-box;
    height: var(--site-chrome-height);
    padding: 0;
    line-height: 1.6;
    color: var(--text-primary);
    background: rgba(10, 10, 16, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    backdrop-filter: blur(20px) saturate(1.2);
}

.navbar.site-chrome,
.navbar.site-chrome.scrolled {
    padding: 0;
    background: rgba(10, 10, 16, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-chrome-inner,
.navbar.site-chrome .nav-container,
.community-hig .capp-topbar.site-chrome .capp-topbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.site-chrome-brand,
.site-chrome .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    margin-left: 0;
}

.site-chrome .site-user-cluster {
    margin-right: 0;
}

body.community-hig .xinlan-audio-chip__label {
    color: var(--hig-text-secondary);
}

body.community-hig .xinlan-audio-chip__name {
    color: var(--hig-text);
}

.site-chrome-modes {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.site-chrome-mode {
    position: relative;
    min-width: 52px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.site-chrome-mode:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.site-chrome-mode.is-active,
.site-chrome-mode.nav-active,
.nav-links .site-chrome-mode.nav-active {
    color: #16131f;
    background: #fff;
}

.site-chrome .site-chrome-mode::after,
.nav-links .site-chrome-mode::after,
.site-chrome-mode.is-active::after,
.site-chrome-mode.nav-active::after {
    display: none;
    content: none;
    width: 0;
}

.site-chrome-search,
.site-chrome .capp-search {
    display: flex;
    align-items: center;
    flex: 1 1 220px;
    min-width: 0;
    max-width: 420px;
    height: 40px;
    margin-inline: auto;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.site-chrome-search input,
.site-chrome .capp-search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #f4f6ff;
    font-size: 0.875rem;
    outline: none;
}

.site-chrome-search input::placeholder,
.site-chrome .capp-search input::placeholder {
    color: rgba(244, 246, 255, 0.55);
}

.site-chrome-actions,
.site-chrome .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: 0;
}

html[data-theme="light"] .navbar.site-chrome,
html[data-theme="light"] .navbar.site-chrome.scrolled {
    --text-primary: #172033;
    --text-secondary: #617188;
    --text-muted: #8a98ad;
    --border: #dce5ef;
    --border-hover: rgba(45, 200, 184, 0.42);
    --bg-glass: rgba(248, 250, 253, 0.9);
    --primary: #2dc8b8;
    color: #172033;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(205, 216, 230, 0.86);
    box-shadow: 0 12px 36px rgba(91, 112, 145, 0.1);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

html[data-theme="light"] .navbar.site-chrome .site-chrome-brand,
html[data-theme="light"] .navbar.site-chrome .logo {
    color: #172033;
}

html[data-theme="light"] .navbar.site-chrome .site-chrome-modes {
    border-color: #dce5ef;
    background: #f1f5fa;
}

html[data-theme="light"] .navbar.site-chrome .site-chrome-mode {
    color: #617188;
}

html[data-theme="light"] .navbar.site-chrome .site-chrome-mode:hover {
    color: #172033;
    background: rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .navbar.site-chrome .site-chrome-mode.is-active,
html[data-theme="light"] .navbar.site-chrome .site-chrome-mode.nav-active,
html[data-theme="light"] .navbar.site-chrome .nav-links .site-chrome-mode.nav-active {
    color: #0d6f65;
    background: #ddf8f4;
    box-shadow: inset 0 0 0 1px rgba(45, 200, 184, 0.24);
}

html[data-theme="light"] .navbar.site-chrome .site-chrome-search,
html[data-theme="light"] .navbar.site-chrome .capp-search {
    border-color: #dce5ef;
    background: #f8fafd;
}

html[data-theme="light"] .navbar.site-chrome .site-chrome-search input,
html[data-theme="light"] .navbar.site-chrome .capp-search input {
    color: #172033;
}

html[data-theme="light"] .navbar.site-chrome .site-chrome-search input::placeholder,
html[data-theme="light"] .navbar.site-chrome .capp-search input::placeholder {
    color: #8a98ad;
}

html[data-theme="light"] .navbar.site-chrome .site-chrome-download,
html[data-theme="light"] .navbar.site-chrome .xinlan-audio-chip,
html[data-theme="light"] .navbar.site-chrome .site-user-btn,
html[data-theme="light"] .navbar.site-chrome .site-user-pill {
    border-color: #dce5ef;
    color: #617188;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 20px rgba(91, 112, 145, 0.08);
}

html[data-theme="light"] .navbar.site-chrome .site-chrome-download:hover,
html[data-theme="light"] .navbar.site-chrome .xinlan-audio-chip:hover,
html[data-theme="light"] .navbar.site-chrome .site-user-btn:hover,
html[data-theme="light"] .navbar.site-chrome .site-user-pill:hover {
    border-color: rgba(45, 200, 184, 0.42);
    color: #0d6f65;
    background: #ddf8f4;
}

html[data-theme="light"] .navbar.site-chrome .xinlan-audio-chip__icon,
html[data-theme="light"] .navbar.site-chrome .xinlan-audio-chip__label,
html[data-theme="light"] .navbar.site-chrome .xinlan-audio-chip__name {
    color: #617188;
}

html[data-theme="light"] .navbar.site-chrome .xinlan-audio-chip.is-playing .xinlan-audio-chip__icon {
    color: #0d6f65;
    background: #ddf8f4;
}

html[data-theme="light"] .navbar.site-chrome .site-user-panel {
    border-color: rgba(205, 216, 230, 0.95);
    color: #617188;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 58px rgba(91, 112, 145, 0.18);
}

html[data-theme="light"] .navbar.site-chrome .site-user-panel__head {
    border-color: #e6edf5;
}

html[data-theme="light"] .navbar.site-chrome .site-user-panel__head b,
html[data-theme="light"] .navbar.site-chrome .site-user-panel__item b {
    color: #172033;
}

html[data-theme="light"] .navbar.site-chrome .site-user-panel__action,
html[data-theme="light"] .navbar.site-chrome .site-user-panel__item {
    color: #617188;
}

html[data-theme="light"] .navbar.site-chrome .site-user-panel__action:hover,
html[data-theme="light"] .navbar.site-chrome .site-user-panel__item:hover {
    color: #0d6f65;
    background: #eef8f7;
}

html[data-theme="light"] .navbar.site-chrome .site-user-panel__item.is-unread {
    background: #ddf8f4;
    box-shadow: inset 3px 0 0 #2dc8b8;
}

html[data-theme="light"] .navbar.site-chrome .site-user-panel__body small,
html[data-theme="light"] .navbar.site-chrome .site-user-panel__empty {
    color: #8a98ad;
}

.site-chrome.site-chrome--light,
body.community-hig .capp-topbar.site-chrome,
body.community-hig[data-community-page] .capp-topbar.site-chrome,
.hig-games-app .capp-topbar.site-chrome,
.community-section-app .capp-topbar.site-chrome,
html[data-theme="light"] body.community-hig .capp-topbar.site-chrome,
html[data-theme="light"] body.community-hig[data-community-page] .capp-topbar.site-chrome {
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #8e8e93;
    --border: rgba(60, 60, 67, 0.14);
    --border-hover: rgba(60, 60, 67, 0.22);
    --bg-glass: rgba(118, 118, 128, 0.08);
    --primary: #0a84ff;
    height: var(--hig-topbar, var(--site-chrome-height));
    color: #1d1d1f;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(60, 60, 67, 0.1);
    box-shadow: none;
}

.site-chrome.site-chrome--light .site-chrome-brand,
.site-chrome.site-chrome--light .site-chrome-brand span,
body.community-hig .capp-topbar.site-chrome .site-chrome-brand,
body.community-hig .capp-topbar.site-chrome .site-chrome-brand span,
body.community-hig .capp-topbar.site-chrome .capp-brand,
body.community-hig .capp-topbar.site-chrome .capp-brand b {
    color: #1d1d1f;
}

.site-chrome.site-chrome--light .site-chrome-modes,
body.community-hig .capp-topbar.site-chrome .site-chrome-modes {
    border-color: rgba(60, 60, 67, 0.1);
    background: rgba(118, 118, 128, 0.08);
}

.site-chrome.site-chrome--light .site-chrome-mode,
body.community-hig .capp-topbar.site-chrome .site-chrome-mode {
    color: #6e6e73;
}

.site-chrome.site-chrome--light .site-chrome-mode:hover,
body.community-hig .capp-topbar.site-chrome .site-chrome-mode:hover {
    color: #1d1d1f;
    background: rgba(118, 118, 128, 0.1);
}

.site-chrome.site-chrome--light .site-chrome-mode.is-active,
.site-chrome.site-chrome--light .site-chrome-mode.nav-active,
body.community-hig .capp-topbar.site-chrome .site-chrome-mode.is-active,
body.community-hig .capp-topbar.site-chrome .site-chrome-mode.nav-active {
    color: #1d1d1f;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(60, 60, 67, 0.08);
}

.site-chrome.site-chrome--light .site-chrome-search,
.site-chrome.site-chrome--light .capp-search,
body.community-hig .capp-topbar.site-chrome .capp-search,
.hig-games-app .capp-topbar.site-chrome .capp-search,
.community-section-app .capp-topbar.site-chrome .capp-search {
    color: #1d1d1f;
    border: 1px solid rgba(60, 60, 67, 0.14);
    background: rgba(118, 118, 128, 0.08);
    box-shadow: none;
}

.site-chrome.site-chrome--light .site-chrome-search input,
.site-chrome.site-chrome--light .capp-search input,
body.community-hig .capp-topbar.site-chrome .capp-search input,
.hig-games-app .capp-topbar.site-chrome .capp-search input {
    color: #1d1d1f;
}

.site-chrome.site-chrome--light .site-chrome-search input::placeholder,
.site-chrome.site-chrome--light .capp-search input::placeholder,
body.community-hig .capp-topbar.site-chrome .capp-search input::placeholder,
.hig-games-app .capp-topbar.site-chrome .capp-search input::placeholder {
    color: rgba(29, 29, 31, 0.45);
}

.site-chrome.site-chrome--light .capp-search-toggle,
.site-chrome.site-chrome--light .capp-icon-btn,
.community-hig .capp-topbar.site-chrome .capp-search-toggle,
.community-hig .capp-topbar.site-chrome .capp-icon-btn {
    color: #3a3a3c;
}

.site-chrome.site-chrome--light .xinlan-audio-chip,
body.community-hig .capp-topbar.site-chrome .xinlan-audio-chip {
    border-color: rgba(60, 60, 67, 0.14);
    background: rgba(118, 118, 128, 0.08);
    color: #1d1d1f;
}

.site-chrome.site-chrome--light .xinlan-audio-chip:hover,
body.community-hig .capp-topbar.site-chrome .xinlan-audio-chip:hover {
    border-color: rgba(60, 60, 67, 0.22);
    background: rgba(118, 118, 128, 0.14);
    color: #1d1d1f;
}

.site-chrome.site-chrome--light .xinlan-audio-chip__icon,
body.community-hig .capp-topbar.site-chrome .xinlan-audio-chip__icon {
    background: rgba(10, 132, 255, 0.12);
    color: #0a84ff;
}

html[data-theme="dark"] body.community-hig .capp-topbar.site-chrome,
body.community-hig[data-theme="dark"] .capp-topbar.site-chrome {
    --text-primary: #f4f6ff;
    --text-secondary: #c5c8d8;
    --border: rgba(255, 255, 255, 0.14);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --primary: #b06bff;
    color: #f4f6ff;
    background: rgba(10, 10, 16, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.community-hig .capp-topbar.site-chrome .site-chrome-brand,
body.community-hig[data-theme="dark"] .capp-topbar.site-chrome .site-chrome-brand {
    color: #fff;
}

html[data-theme="dark"] body.community-hig .capp-topbar.site-chrome .site-chrome-mode.is-active,
body.community-hig[data-theme="dark"] .capp-topbar.site-chrome .site-chrome-mode.is-active {
    color: #16131f;
    background: #fff;
}

html[data-theme="dark"] body.community-hig .capp-topbar.site-chrome :is(.site-chrome-brand span, .capp-search input, .capp-search-toggle) {
    color: var(--hig-text);
}

html[data-theme="dark"] body.community-hig .capp-topbar.site-chrome .site-chrome-mode:not(.is-active),
html[data-theme="dark"] body.community-hig .capp-topbar.site-chrome .capp-search input::placeholder {
    color: var(--hig-text-secondary);
}

.site-chrome .mobile-menu-btn {
    display: none;
}

.site-chrome .site-brand-mark {
    width: 32px;
    height: 32px;
}

.site-chrome-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-chrome-download:hover,
.site-chrome-download[aria-current="page"] {
    border-color: var(--primary);
    color: var(--primary);
}

.site-chrome-download:focus-visible,
.site-chrome-mode:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .site-chrome .xinlan-audio-chip {
        min-width: 40px;
        width: 40px;
        padding: 0;
        justify-content: center;
    }

    .site-chrome .xinlan-audio-chip__text {
        display: none;
    }
}

@media (max-width: 980px) {
    .site-chrome-search,
    .site-chrome .capp-search input {
        max-width: none;
    }

    .site-chrome-mode {
        padding: 8px 10px;
    }
}

@media (max-width: 820px) {
    .site-chrome {
        --site-chrome-height: 112px;
    }

    body.community-hig {
        --hig-topbar: 112px;
        --capp-topbar: 112px;
    }

    .site-chrome-inner,
    .navbar.site-chrome .nav-container,
    body.community-hig .capp-topbar.site-chrome .capp-topbar-inner {
        flex-wrap: wrap;
        align-content: center;
        gap: 8px;
        padding: 8px 16px;
    }

    .site-chrome-actions,
    .site-chrome .nav-actions {
        margin-left: auto;
    }

    .site-chrome-modes,
    .navbar.site-chrome .nav-links {
        display: flex;
        position: static;
        order: 3;
        flex: 1 0 100%;
        flex-direction: row;
        justify-content: center;
        height: 40px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .site-chrome :is(#siteMsgBtn, #siteNotifyBtn) {
        display: none;
    }

    .site-chrome-search {
        display: none;
    }

    .navbar.site-chrome ~ .engine-page {
        padding-top: 136px;
    }
}

@media (max-width: 768px) {
    body.community-hig .capp-topbar.site-chrome .capp-topbar-inner {
        gap: 8px;
        padding-inline: 12px;
    }

    body.community-hig .site-chrome .capp-search {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    body.community-hig .site-chrome .capp-search-toggle {
        width: 40px;
        height: 40px;
    }

    body.community-hig .site-chrome .capp-search input {
        color: var(--hig-text);
        background: var(--hig-surface-solid);
        border: 1px solid var(--hig-control-border);
    }

    body.community-hig .site-chrome .xinlan-audio-chip {
        min-width: 40px;
        width: 40px;
        padding: 0;
        justify-content: center;
    }

    body.community-hig .site-chrome .xinlan-audio-chip__text,
    body.community-hig .site-chrome :is(#siteMsgBtn, #siteNotifyBtn) {
        display: none;
    }
}

@media (max-width: 600px) {
    .site-chrome-brand {
        gap: 6px;
        min-width: 0;
        font-size: .875rem;
    }

    .site-chrome .site-chrome-brand > span:last-child {
        display: none;
    }

}

@media (max-width: 980px) {
    .site-chrome-download {
        width: 40px;
        padding: 0;
    }

    .site-chrome-download span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    body.community-hig .capp-topbar.site-chrome .capp-topbar-inner {
        padding-inline: 4px;
    }

    body.community-hig .capp-topbar.site-chrome .capp-topbar-inner,
    body.community-hig .site-chrome :is(.site-chrome-actions, .site-user-cluster) {
        gap: 4px;
    }

    body.community-hig .site-chrome .capp-menu-btn {
        width: 40px;
        min-width: 40px;
    }
}
