/* ========================================================================
   Top Section 样式 - Top Bar / Header / 导航菜单
   ======================================================================== */

/* ==================== Header 透明背景 ==================== */
#header.transparent-header.dark #header-wrap {
    background: transparent;
}

/* ==================== 馆训样式 ==================== */
.hc-motto-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1rem;
}

.hc-motto-content {
    text-align: right;
}

.hc-motto-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.4;
    transition: all 0.3s ease;
    font-family: '隶书', sans-serif;
}

.hc-motto-subtext {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.5rem 0 0 0;
    letter-spacing: 0.2rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

/* 吸顶后馆训样式 */
.is-expanded-menu #header.sticky-header-shrink .hc-motto-text {
    font-size: 2rem;
}

.is-expanded-menu #header.sticky-header-shrink .hc-motto-subtext {
    font-size: 0.8rem;
    letter-spacing: 0.15rem;
}

/* ==================== Header 吸顶样式 ==================== */
.is-expanded-menu #header.sticky-header #header-wrap {
    background-color: #115AAD !important;
}

.is-expanded-menu #header.sticky-header-shrink #header-wrap {
    background-color: #115AAD !important;
    padding: 0.5rem 0;
}

/* ==================== 桌面端 - 导航菜单白色文字 ==================== */
.is-expanded-menu .primary-menu .menu-container > .menu-item > .menu-link {
    color: rgba(255, 255, 255, 0.9);
}

.is-expanded-menu .primary-menu .menu-container > .menu-item > .menu-link:hover {
    color: #fff;
}

.is-expanded-menu .primary-menu .menu-container > .menu-item.current > .menu-link,
.is-expanded-menu .primary-menu .menu-container > .menu-item.active > .menu-link {
    color: #fff;
}

/* ==================== 桌面端 - style-4菜单边框白色 ==================== */
.is-expanded-menu .style-4 .menu-container > .menu-item:hover > .menu-link {
    border-color: rgba(255, 255, 255, 0.5);
}

.is-expanded-menu .style-4 .menu-container > .menu-item.current > .menu-link {
    border-color: rgba(255, 255, 255, 0.8);
}

/* ==================== 桌面端 - 吸顶后导航菜单白色文字 ==================== */
.is-expanded-menu #header.sticky-header-shrink .primary-menu .menu-container > .menu-item > .menu-link {
    color: rgba(255, 255, 255, 0.9);
}

.is-expanded-menu #header.sticky-header-shrink .primary-menu .menu-container > .menu-item > .menu-link:hover {
    color: #fff;
}

/* ==================== 桌面端 - 子菜单样式 ==================== */
.is-expanded-menu .primary-menu .menu-item .sub-menu-container {
    background: rgba(255, 255, 255, 0.98);
}

.is-expanded-menu .primary-menu .sub-menu-container .menu-item > .menu-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.is-expanded-menu .primary-menu .sub-menu-container .menu-item > .menu-link:hover {
    color: #1890ff;
}

/* ==================== 移动端 - 顶部背景 ==================== */
body:not(.is-expanded-menu) #top-bar.dark,
body:not(.is-expanded-menu) #header.dark #header-wrap {
    background: rgba(8, 98, 167, 1);
}

/* ==================== 移动端 - 顶部元素白色文字 ==================== */
body:not(.is-expanded-menu) .dark .top-links-item a,
body:not(.is-expanded-menu) .dark .hc-seat-stats,
body:not(.is-expanded-menu) .dark .topbar-search-input,
body:not(.is-expanded-menu) .dark .topbar-search-submit {
    color: rgba(255, 255, 255, 0.9);
}

body:not(.is-expanded-menu) .dark .topbar-search-input {
    border-color: rgba(255, 255, 255, 0.3);
}

body:not(.is-expanded-menu) .dark .topbar-search-submit {
    border-color: rgba(255, 255, 255, 0.3);
}

body:not(.is-expanded-menu) .dark .topbar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== 移动端 - 汉堡菜单图标白色 ==================== */
body:not(.is-expanded-menu) .cnvs-hamburger {
    color: #fff;
}

/* ==================== 移动端 - 导航菜单白色文字 ==================== */
body:not(.is-expanded-menu) .primary-menu .menu-container > .menu-item > .menu-link {
    color: rgba(255, 255, 255, 0.9);
}

body:not(.is-expanded-menu) .primary-menu .menu-container > .menu-item > .menu-link:hover {
    color: #fff;
}

/* ==================== 移动端 - 二级菜单白色文字 ==================== */
body:not(.is-expanded-menu) .primary-menu .sub-menu-container .menu-item > .menu-link {
    color: rgba(255, 255, 255, 0.85);
}

body:not(.is-expanded-menu) .primary-menu .sub-menu-container .menu-item > .menu-link:hover {
    color: #fff;
}

/* ==================== 移动端 - 菜单箭头指示器白色 ==================== */
body:not(.is-expanded-menu) .primary-menu .sub-menu-indicator {
    color: rgba(255, 255, 255, 0.7);
}

body:not(.is-expanded-menu) .primary-menu .menu-item-hover > .menu-link .sub-menu-indicator,
body:not(.is-expanded-menu) .primary-menu .sub-menu > .menu-link .sub-menu-indicator {
    color: #fff;
}

/* ==================== 移动端 - 子菜单触发按钮白色 ==================== */
body:not(.is-expanded-menu) .sub-menu-trigger {
    color: rgba(255, 255, 255, 0.7);
}

body:not(.is-expanded-menu) .sub-menu-trigger:hover {
    color: #fff;
}

/* ==================== Top Bar 搜索框 ==================== */
.topbar-search {
    display: flex;
    align-items: center;
    position: relative;
}

/* form 直接包裹搜索框的样式（替代 topbar-search-input-wrapper） */
.topbar-search form {
    display: inline-flex !important;
    align-items: center;
    margin: 0;
    padding: 0;
    width: auto !important;
    max-width: none;
    flex-wrap: nowrap;
}

.topbar-search form .topbar-search-input {
    width: 10rem !important;
    max-width: 10rem !important;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.topbar-search form .topbar-search-submit {
    flex-shrink: 0;
}

/* 当 form 在 wrapper 内时，让 wrapper 自适应内容 */
.topbar-search-input-wrapper:has(form) {
    width: auto !important;
}

.topbar-search-input-wrapper {
    display: flex;
    align-items: center;
    width: 10rem;
    overflow: visible;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-search-input {
    width: 100%;
    height: 2rem;
    padding: 0 0.75rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: 0.875rem;
    outline: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.topbar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.topbar-search-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.topbar-search-submit {
    width: 2.5rem;
    height: 2rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.3);
    border-left: none;
    background: transparent;
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-search-submit:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.topbar-search-submit i {
    margin: 0;
}

.hc-seat-available span {
    color: #15d960;
    font-weight: bold;
}

/* ==================== 菜单链接 ==================== */
.menu-link {
    font-size: 1rem;
    font-weight: normal;
}

/* ==================== Dark主题 - Top Links ==================== */
.dark .top-links-item > a {
    color: #EEE;
}

.dark .top-links-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.dark #top-social li {
    border-left: 0;
}

.dark #top-social li a {
    color: #EEE;
}

.dark #header-wrap:not(.not-dark) .primary-menu.style-4 > ul > li:hover > a,
.dark #header-wrap:not(.not-dark) .primary-menu.style-4 > ul > li.current > a {
    border-color: rgba(255, 255, 255, 0.5);
}


/* ========================================================================
   响应式媒体查询 - Top Section
   ======================================================================== */

/* ==================== 超大屏幕 (≥1920px) ==================== */
@media (min-width: 1920px) {

    /* Header - Logo样式 */
    #header-wrap #logo .logo-default,
    #header-wrap #logo .logo-dark {
        height: 6rem !important;
    }

    .hc-motto-text {
        font-size: 2.25rem;
        letter-spacing: 0.2rem;
    }

    .hc-motto-subtext {
        font-size: 0.75rem;
        letter-spacing: 0.17rem;
    }

}


/* ==================== 大屏幕 (1600px - 1919px) ==================== */
@media (min-width: 1600px) and (max-width: 1919px) {

    /* Header - Logo样式 */
    #header-wrap #logo .logo-default,
    #header-wrap #logo .logo-dark {
        height: 5.5rem !important;
    }

    .hc-motto-text {
        font-size: 2rem;
        letter-spacing: 0.18rem;
    }

}


/* ==================== 中大屏幕 (1400px - 1599px) ==================== */
@media (min-width: 1400px) and (max-width: 1599px) {

    /* Header - Logo样式 */
    #header-wrap #logo .logo-default,
    #header-wrap #logo .logo-dark {
        height: 5rem !important;
    }

    .hc-motto-text {
        font-size: 1.75rem;
        letter-spacing: 0.15rem;
    }

}


/* ==================== 标准屏幕 (1200px - 1399px) ==================== */
@media (min-width: 1200px) and (max-width: 1399px) {

    /* Header - Logo样式 */
    #header-wrap #logo .logo-default,
    #header-wrap #logo .logo-dark {
        height: 5rem !important;
    }

    .hc-motto-text {
        font-size: 1.75rem;
        letter-spacing: 0.12rem;
    }

    .hc-motto-subtext {
        font-size: 0.6875rem;
    }

}


/* ==================== 中等屏幕 (992px - 1199px) ==================== */
@media (min-width: 992px) and (max-width: 1199px) {

    /* Header - Logo样式 */
    #header-wrap #logo .logo-default,
    #header-wrap #logo .logo-dark {
        height: 3.5rem !important;
    }

    .hc-motto-text {
        font-size: 1.25rem;
        letter-spacing: 0.1rem;
    }

    .hc-motto-subtext {
        font-size: 0.625rem;
    }

}


/* ==================== ≥992px ==================== */
@media (min-width: 992px) {

    /* Top Bar - 占位符 */
    .topbar-placeholder {
        height: 0.5rem;
    }

    /* Top Bar - 去除边框 */
    #top-bar {
        z-index: 399;
        border: none;
    }

    /* Top Bar - 顶部分隔线颜色 */
    .top-links-item{
        border-left-color: rgba(0, 0, 0, 0.05);
    }

    .dark .top-links-item{
        border-left-color: rgba(255, 255, 255, 0.05);
    }

    /* Top Bar - 透明背景 */
    #top-bar.transparent-topbar {
        background: transparent !important;
    }

    /* Header - 包含top-bar的slider偏移 */
    #header + .include-header.include-topbar {
        margin-top: calc(-100px - 2px - 45px);
    }
}


/* ==================== ≤1199.98px ==================== */
@media (max-width: 1199.98px) {

    /* Header - 主菜单间距调整 */
    .is-expanded-menu .primary-menu .menu-container > .menu-item > .menu-link {
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
    }

}


/* ==================== 平板横屏 (768px - 991px) ==================== */
@media (min-width: 768px) and (max-width: 991px) {

    /* Header - Logo样式 */
    #header-wrap #logo .logo-default,
    #header-wrap #logo .logo-dark {
        height: 2rem !important;
    }

    .hc-motto-text {
        font-size: 0.9375rem;
        letter-spacing: 0.08rem;
    }

    .hc-motto-subtext {
        font-size: 0.5625rem;
    }

    .hc-motto-container {
        padding: 0 1rem;
    }

}


/* ==================== ≤991.98px ==================== */
@media (max-width: 991.98px) {

    /* Top Bar / Header - 统一背景色 */
    #top-bar,
    #header-wrap {
        background: rgba(8, 98, 167, 1);
    }

    /* Top Bar - 去除底部边框 */
    #top-bar {
        border-bottom: none;
    }

}


/* ==================== ≤767.98px ==================== */
@media (max-width: 767.98px) {

    /* Header - Logo样式 */
    #header-wrap #logo .logo-default,
    #header-wrap #logo .logo-dark {
        height: 2rem !important;
    }

    .hc-motto-text {
        font-size: 0.875rem;
        letter-spacing: 0.06rem;
    }

    .hc-motto-subtext {
        font-size: 0.5rem;
    }

    .hc-motto-container {
        padding: 0 0.5rem;
    }

}


/* ==================== 平板竖屏/大手机 (576px - 767px) ==================== */
@media (min-width: 576px) and (max-width: 767px) {

    /* Top Bar - 搜索框 */
    .topbar-search {
        padding: 0.5rem 0;
    }

    .topbar-search-btn {
        display: none;
    }

    .topbar-search-input-wrapper {
        width: 100%;
        margin-left: 0;
    }

    /* Header - Logo样式 */
    #header-wrap #logo .logo-default,
    #header-wrap #logo .logo-dark {
        height: 2rem !important;
    }

    .hc-motto-text {
        font-size: 0.8125rem;
        letter-spacing: 0.05rem;
    }

    .hc-motto-subtext {
        font-size: 0.4375rem;
    }

}


/* ==================== ≤575.98px ==================== */
@media (max-width: 575.98px) {

    /* Top Bar - 搜索框 */
    .topbar-search {
        padding: 0.5rem 0;
    }

    .topbar-search-btn {
        display: none;
    }

    .topbar-search-input-wrapper {
        width: 100%;
        margin-left: 0;
    }

    /* Header - Logo文字隐藏 */
    .site-title {
        display: none;
    }

    .hc-motto-text {
        font-size: 0.75rem;
        letter-spacing: 0.04rem;
    }

    .hc-motto-subtext {
        font-size: 0.375rem;
    }

    .hc-motto-container {
        padding: 0 0.25rem;
    }

}


/* ==================== 大手机 (480px - 575px) ==================== */
@media (min-width: 480px) and (max-width: 575px) {

    /* Header - Logo样式 */
    #header-wrap #logo .logo-default,
    #header-wrap #logo .logo-dark {
        height: 2.25rem !important;
    }

    .topbar-search-btn {
        display: none;
    }

    .topbar-search-input-wrapper {
        width: 100%;
        margin-left: 0;
    }

}


/* ==================== 小手机 (360px - 479px) ==================== */
@media (min-width: 360px) and (max-width: 479px) {

    /* Header - Logo样式 */
    #header-wrap #logo .logo-default,
    #header-wrap #logo .logo-dark {
        height: 2rem !important;
    }

    .topbar-search-btn {
        display: none;
    }

    .topbar-search-input-wrapper {
        width: 100%;
        margin-left: 0;
    }

}


/* ==================== 极小手机 (<360px) ==================== */
@media (max-width: 359px) {

    /* Header - Logo样式 */
    #header-wrap #logo .logo-default,
    #header-wrap #logo .logo-dark {
        height: 1.75rem !important;
    }

    .topbar-search-btn {
        display: none;
    }

    .topbar-search-input-wrapper {
        width: 100%;
        margin-left: 0;
    }

}
