/* 剧点顶栏 + 全屏下拉面导航，供 intro 直接引用；header.html 也可 link 本文件 */
.jd-header-root { position: relative; }

.jd-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    height: 60px;
    padding: 0 20px;
    padding-top: env(safe-area-inset-top, 0);
    background: rgba(0, 0, 0, 0.7);
    /* -webkit-backdrop-filter: blur(6px); */
    /* backdrop-filter: blur(6px); */
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .jd-topbar { height: 80px; }
}

.jd-topbar__inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.jd-topbar__logo { display: flex; align-items: center; text-decoration: none; padding-right: 12px; flex-shrink: 0; }
.jd-topbar__logo-img {
    border-radius: 50%;
    /* width: 100px; */
    height: auto;
    max-height: 40px;
    object-fit: contain;
    display: block;
}
@media (min-width: 768px) {
    .jd-topbar__logo-img { width: 140px; max-height: 48px; }
}
.jd-topbar__logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.jd-topbar__nav--desktop {
    display: none;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
    .jd-topbar__nav--desktop { display: flex; }
}

.jd-topbar__link {
    white-space: nowrap;
    padding: 0 12px;
    line-height: 40px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}
@media (min-width: 1024px) {
    .jd-topbar__link { padding: 0 20px; font-size: 18px; }
}
.jd-topbar__link:hover { color: #fff; }
.jd-topbar__link.is-active { color: #fff; }

.jd-topbar__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 -8px 0 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    color: #fff;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .jd-topbar__menu-btn { display: none; }
}
.jd-topbar__menu-ico {
    display: flex;
    align-items: center;
    justify-content: center;
}
.jd-topbar__menu-ico svg { display: block; }
.jd-topbar__menu-ico--close { display: none; }
.jd-topbar__menu-btn.is-open .jd-topbar__menu-ico--bars { display: none; }
.jd-topbar__menu-btn.is-open .jd-topbar__menu-ico--close { display: flex; }

.jd-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    display: none;
    background: rgba(0, 0, 0, 0.45);
}
.jd-menu-backdrop.is-open { display: block; }

.jd-menu-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1001;
    padding: calc(60px + env(safe-area-inset-top, 0)) 20px 28px;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid #444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-100%);
    transition: transform 0.32s ease, visibility 0.32s;
    opacity: 1;
    visibility: hidden;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
}
@media (min-width: 768px) {
    .jd-menu-panel { display: none !important; }
}
.jd-menu-panel.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.jd-menu-panel__link {
    position: relative;
    z-index: 1;
    display: block;
    padding: 10px 6px;
    line-height: 40px;
    font-size: 16px;
    color: #f0f0f0;
    text-decoration: none;
    border-bottom: 1px solid #666;
    transition: color 0.2s;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    touch-action: manipulation;
    cursor: pointer;
    pointer-events: auto;
}
.jd-menu-panel__link:last-child { border-bottom: none; }
.jd-menu-panel__link:hover { color: #fff; }
.jd-menu-panel__link.is-active { color: #fff; }
