/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}
* {
    scrollbar-width: none;
}

/* 导航栏样式 */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
}

.site-nav {
    margin-top: 1rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
    padding: 0.5rem clamp(1rem, 4vw, 2rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.site-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.site-nav__left {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 10vw, 2rem);
    min-width: 0;
}

.site-nav__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    background-color: #0084ff;
    border-radius: 20px;
    padding: 0.5rem 0.55rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.site-nav__logo {
    display: block;
    background-color: #ffffff;
    border-radius: 100%;
    height: 20px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.site-nav__logo-text {
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.3rem;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 10vw, 2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.35rem 0;
    border-radius: 6px;
    transition: color 0.2s ease, font-weight 0.2s ease, font-size 0.2s ease;
}

.site-nav__link--active,
.site-nav__link[aria-current="page"] {
    color: #2563eb;
    font-weight: 700;
}


.site-nav__link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.site-nav__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.site-nav__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav__icon-btn:hover {
    background: rgba(133, 133, 133, 0.06);
}

.site-nav__icon-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.site-nav__icon {
    width: 19.2px;
    height: 19.2px;
    flex: 0 0 19.2px;
    display: block;
}

.site-nav__icon-btn--avatar {
    padding: 6px;
    margin-left: 0.8rem;
}

.site-nav__avatar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #006aff;
}

/* 主体内容样式 */

.page-home .site-main {
    flex: 1 0 auto;
    padding-top: calc(4.5rem + clamp(2rem, 6vw, 4rem));
}

.site-main {
    padding: clamp(2rem, 6vw, 4rem);
    min-height: 0;
}

.page-home .site-main--three-col {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(0.75rem, 3vw, 3rem);
    padding-top: calc(3.5rem + clamp(1rem, 3vw, 1.5rem));
    padding-right: clamp(1rem, 4vw, 2rem);
    padding-bottom: clamp(1rem, 3vw, 1.5rem);
    padding-left: clamp(1rem, 4vw, 2rem);
}

.page-home .site-main--three-col .site-main__content-left {
    flex: 1 1 0;
    min-width: 150px;
    max-width: 200px;
    min-height: 0;
    align-self: stretch;
    overflow: hidden;
}

.page-home .site-main--three-col .site-main__content-middle {
    flex: 2.5 1 0;
    min-width: 400px;
    max-width: 600px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
}

.site-main__content-frame {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    display: block;
    background-color: #ffffff;
}

.page-home .site-main--three-col .site-main__content-right {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.site-main__placeholder {
    margin: 0;
    opacity: 0.45;
    font-size: 0.95rem;
}

    /* 侧边栏样式 */

.site-main__content-left {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sider {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: #444444;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.sider__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.4rem;
    border-radius: 10px;
    color: #444444;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sider__item:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #303030;
}

.sider__item:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.sider__item--publish {
    background-color: #f5f5f5;
    border: 1px solid #ecebeb;
}

.sider__item--publish:hover {
    background-color: #efefef;
}

.sider__item--active {
    color: #0084ff;
    background-color: transparent;
}

.sider__item--active:hover {
    color: #0070e0;
    background-color: rgba(0, 132, 255, 0.06);
}

.sider__item .sider__icon {
    width: 28.8px;
    height: 28.8px;
    flex: 0 0 28px;
    display: block;
}

.sider__label {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
    font-size: 0.875rem;
    font-weight: 600;
}

.sider__dot {
    margin-left: auto;
    margin-right: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #0084ff;
    align-self: center;
}

.sider__item:not(.sider__item--active) .sider__dot {
    display: none;
}

.sider-bottom {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0.5rem 0.45rem;
    border-radius: 10px;
    border: 1px solid #ecebeb;
    background: transparent;
}

.sider-bottom__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.sider-bottom__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #444444;
    min-width: 0;
}

.sider-bottom__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #707070;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.sider-bottom__close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333333;
}

.sider-bottom__close:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.sider-bottom__close-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.sider-bottom__media {
    width: 100%;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    border-radius: 4px;
}

.sider-bottom__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sider-bottom__img--empty {
    min-height: 0;
    background: transparent;
}

    /* 中间内容样式 */

    /* 右侧内容样式 */

/* 脚部样式 */

.site-footer {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #798494;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem 1.25rem;
    margin: 0 auto;
    padding: 0.65rem clamp(1rem, 4vw, 2rem);
    font-size: 0.75rem;
}

.site-footer__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.site-footer__link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__link:hover {
    color: #2563eb;
}

.site-footer__link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 2px;
}

.site-footer__handle {
    margin: 0;
    color: #475569;
    letter-spacing: 0.02em;
}

/* 全局样式 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    height: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    padding: 0;
}

.page-home {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}
