#header {
    --header-pc-scale: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

@media (min-width: 1025px) {
    #header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10;
        background: #000000;
        height: 53px;
    }
}

@media (min-width: 1025px) {
    header#header .header {
        max-width: 60vw;
        margin: 0 auto;
    }
}

@media (min-width: 1025px) {
    .header {
        width: 100%;
        height: 53px;
        /* padding: 0 2em; */
    }
}

.drawer-inner {
    height: 900px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0px 0px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    --row-gap: 21px;
    --col-gap: 36px;
    row-gap: var(--row-gap);
    column-gap: var(--col-gap);
    gap: var(--row-gap) var(--col-gap);
    box-sizing: border-box;
}

.drawer-column {
    display: contents;
}

.drawer-block {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1025px) {
    .header a {
        font-size: 14px;
        color: #f8f7f7;
        display: inline-block;
        transition: all .3s linear;
    }
}

.block-img img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    /* border-radius: 6px; */
}

.block-title {
    margin-top: 12px;
}

.block-title a {
    font-size: 20px;
    color: #222;
    font-weight: 700;
    text-decoration: none;
}

.block-line {
    width: 48px;
    height: 3px;
    background: #e6e6e6;
    margin: 8px 0;
    transition: background .18s;
}

.block-desc a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}


/* Header 完整样式提取 */

/* ========== 基础头部样式 ========== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: #000000;
    height: 53px;
}

.header {
    width: 100%;
    height: 53px;
}

.header a {
    font-size: 14px;
    color: #f8f7f7;
    display: inline-block;
    transition: all .3s linear;
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* PC端头部容器居中 */
header#header .header {
    max-width: 60vw;
    margin: 0 auto;
}

/* 导航列和链接对齐 */
#header .header .column,
#header .header .column a {
    display: inline-flex;
}

.column {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    text-align: center;
    align-items: center;
}

/* ========== Icon 样式 ========== */
.icon {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    height: 1.5rem;
    width: 1.5rem;
}

.icon.is-small {
    height: 1rem;
    width: 1rem;
}

.icon.is-medium {
    height: 2rem;
    width: 2rem;
}

.icon.is-large {
    height: 3rem;
    width: 3rem;
}

.icon svg {
    display: block;
    border: none;
    height: 100%;
    width: 100%;
}

/* ========== Navbar 样式 ========== */
.navbar {
    background-color: transparent;
    min-height: 3.25rem;
    position: relative;
    z-index: 30;
}

.navbar-item,
.navbar-link {
    color: #4a4a4a;
    display: block;
    line-height: 1.5;
    position: relative;
}

.navbar-item .icon:only-child,
.navbar-link .icon:only-child {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

a.navbar-item,
.navbar-link {
    cursor: pointer;
}

a.navbar-item:focus,
a.navbar-item:focus-within,
a.navbar-item:hover,
a.navbar-item.is-active,
.navbar-link:focus,
.navbar-link:focus-within,
.navbar-link:hover,
.navbar-link.is-active {
    color: #FFA500;
}

.navbar-item {
    flex-grow: 0;
    flex-shrink: 0;
    font-size: 14px !important;
}

.navbar-item img {
    max-height: 1.75rem;
}

.navbar-item.has-dropdown {
    padding: 0;
}

.navbar-item.is-expanded {
    flex-grow: 1;
    flex-shrink: 1;
}

.navbar-item.is-tab {
    border-bottom: 1px solid transparent;
    min-height: 3.25rem;
    padding-bottom: calc(0.5rem - 1px);
}

.navbar-item.is-tab:focus,
.navbar-item.is-tab:hover {
    background-color: transparent;
    border-bottom-color: #3273dc;
}

.navbar-item.is-tab.is-active {
    background-color: transparent;
    border-bottom-color: #3273dc;
    border-bottom-style: solid;
    border-bottom-width: 3px;
    color: #3273dc;
    padding-bottom: calc(0.5rem - 3px);
}

.navbar-content {
    flex-grow: 1;
    flex-shrink: 1;
}

.navbar-link:not(.is-arrowless) {
    padding-right: 2.5em;
}

.navbar-link:not(.is-arrowless)::after {
    border-color: #3273dc;
    margin-top: -0.375em;
    right: 1.125em;
}

/* Navbar Dropdown 样式 */
.navbar-dropdown {
    font-size: 0.875rem;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

.navbar-dropdown .navbar-item {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Navbar 下拉菜单显示 */
.navbar-item.has-dropdown {
    align-items: stretch;
}

.navbar-item.has-dropdown-up {
    align-items: flex-end;
}

.navbar-dropdown {
    display: none;
    left: 0;
    min-width: 100%;
    position: absolute;
    top: 100%;
    z-index: 20;
}

.navbar-item.has-dropdown-up .navbar-dropdown {
    bottom: 100%;
    padding-bottom: 4px;
    padding-top: initial;
    top: auto;
}

.navbar-item.has-dropdown.is-hoverable:hover .navbar-dropdown,
.navbar-item.has-dropdown.is-hoverable:focus .navbar-dropdown,
.navbar-item.has-dropdown.is-hoverable:focus-within .navbar-dropdown {
    display: block;
}

/* ========== Drawer 样式 ========== */
/* 产品 Drawer */
.drawer-header {
    position: absolute;
    left: 0;
    right: 0;
    top: 53px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s cubic-bezier(.215, .61, .355, 1);
    z-index: 30;
}

#header.show-drawer .drawer-header {
    max-height: 1000px;
}

.drawer-inner {
    height: 900px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0px 0px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    --row-gap: 21px;
    --col-gap: 36px;
    row-gap: var(--row-gap);
    column-gap: var(--col-gap);
    gap: var(--row-gap) var(--col-gap);
    box-sizing: border-box;
}

.drawer-column {
    display: contents;
}

.drawer-block {
    display: flex;
    flex-direction: column;
}

.block-img img {
    width: 100%;
    height: 195px;
    object-fit: cover;
}

.block-title {
    margin-top: 12px;
}

.block-title a {
    font-size: 20px;
    color: #222;
    font-weight: 700;
    text-decoration: none;
}

.block-line {
    width: 48px;
    height: 3px;
    background: #e6e6e6;
    margin: 8px 0;
    transition: background .18s;
}

.block-desc a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.block-title a:hover,
.block-desc a:hover {
    color: #f98800;
}

.block-title a:hover+.block-line,
.block-title a:focus+.block-line {
    background: #f98800;
}

.block-title:hover+.block-line,
.block-title:focus-within+.block-line {
    background: #f98800;
}

/* 软件下载 Drawer */
.drawer-header-software {
    position: absolute;
    left: 0;
    right: 0;
    top: 53px;
    background: #000;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s cubic-bezier(.215, .61, .355, 1);
    z-index: 30;
}

#header.show-drawer-software .drawer-header-software {
    max-height: 720px;
}

.drawer-inner-software {
    height: 125px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0px 0px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    --row-gap: 21px;
    --col-gap: 36px;
    row-gap: var(--row-gap);
    column-gap: var(--col-gap);
    gap: var(--row-gap) var(--col-gap);
    box-sizing: border-box;
}

.drawer-inner-software .list-3 {
    display: contents;
}

.drawer-inner-software .list-3>li {
    list-style: none;
    position: relative;
    padding: 5px 22px;
    box-sizing: border-box;
    transition: background-color .18s ease, transform .12s ease;
    display: flex;
    align-items: center;
    min-height: 110px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.drawer-inner-software .list-3>li>a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.drawer-inner-software .about-head {
    position: absolute;
    top: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.drawer-inner-software .about-head img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.drawer-inner-software .about-head p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1;
}

.drawer-inner-software .about-desc {
    margin-top: 7px;
    color: #cfcfcf;
    font-size: 15px;
    line-height: 7.6;
    margin-left: 33px;
}

.drawer-inner-software .list-3>li:hover {
    background: #f99000;
    color: #fff;
}

.drawer-inner-software .list-3>li:hover .about-desc,
.drawer-inner-software .list-3>li:hover .about-head p,
.drawer-inner-software .list-3>li:hover .about-our .about-head p {
    color: #fff;
}

.drawer-header-software .list-3 .software-item {
    position: relative;
}

.drawer-inner-software .list-3 .software-item .tournament-item--1,
.drawer-inner-software .list-3 .software-item .tournament-item--2,
.drawer-inner-software .list-3 .software-item .tournament-item--3 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -45%);
}

/* 高校赛事 Drawer */
.drawer-header-tournament {
    position: absolute;
    left: 0;
    right: 0;
    top: 53px;
    background: #000;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s cubic-bezier(.215, .61, .355, 1);
    z-index: 30;
}

#header.show-drawer-tournament .drawer-header-tournament {
    max-height: 720px;
}

.drawer-inner-tournament {
    display: grid;
    column-gap: 0px;
    row-gap: 0;
    height: 125px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0px 0px;
    display: grid;
    column-gap: 0px;
    grid-template-columns: repeat(4, 1fr);
}

.drawer-inner-tournament .list-3 {
    display: contents;
}

.drawer-header-tournament .list-3 .software-item {
    position: relative;
}

.drawer-inner-tournament .list-3>li {
    list-style: none;
    position: relative;
    /* padding: 5px 22px; */
    box-sizing: border-box;
    transition: background-color .18s ease, transform .12s ease;
    /* display: flex; */
    align-items: center;
    min-height: 110px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.drawer-inner-tournament .list-3>li>a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.drawer-header-tournament .list-3 .software-item .tournament-item--1 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -45%);
}

.drawer-header-tournament .list-3 .software-item .tournament-item--2 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -45%);
}

.drawer-header-tournament .list-3 .software-item .tournament-item--3 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -45%);
}

.drawer-inner-tournament .about-head {
    position: absolute;
    top: 20px;
    /* left: 78px; */
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.drawer-inner-tournament .about-desc {
    margin-top: 7px;
    color: #cfcfcf;
    font-size: 15px;
    line-height: 7.6;
    margin-left: 35px;
}

.drawer-inner-tournament .about-head img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.drawer-inner-tournament .about-head p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1;
}

/* @media (min-width: 1025px) {
    .header a {
        font-size: 14px;
        color: #f8f7f7;
        display: inline-block;
        transition: all .3s linear;
    }
} */
/* hover 效果：背景变橙，文字变白 */
.drawer-inner-tournament .list-3>li:hover {
    background: #f99000;
    color: #fff;
}

.drawer-inner-tournament .list-3>li:hover .about-desc,
.drawer-inner-tournament .list-3>li:hover .about-head p,
.drawer-inner-tournament .list-3>li:hover .about-our .about-head p {
    color: #fff;
}

/* ========== 工具类 ========== */
.d-flex {
    display: flex;
}

.fz-14 {
    font-size: 14px;
}

.fz-18 {
    font-size: 18px;
}

.mt-10 {
    margin-top: 10px;
}

/* ========== 响应式 ========== */
@media screen and (max-width: 1023px) {
    .navbar>.container {
        display: block;
    }

    .navbar-brand .navbar-item,
    .navbar-tabs .navbar-item {
        align-items: center;
        display: flex;
    }

    .navbar-item,
    .navbar-link {
        align-items: center;
        display: flex;
    }

    .navbar-item.has-dropdown {
        height: auto;
        align-items: stretch;
    }

    .navbar-item.has-dropdown-up {
        align-items: flex-end;
    }

    .navbar-dropdown {
        display: none;
        left: 0;
        min-width: 100%;
        position: absolute;
        top: 100%;
        z-index: 20;
    }

    .navbar-item.has-dropdown-up .navbar-dropdown {
        bottom: 100%;
        padding-bottom: 4px;
        padding-top: initial;
        top: auto;
    }

    .navbar-item.has-dropdown.is-hoverable:hover .navbar-dropdown,
    .navbar-item.has-dropdown.is-hoverable:focus .navbar-dropdown,
    .navbar-item.has-dropdown.is-hoverable:focus-within .navbar-dropdown {
        display: block;
    }

    /* 软件下载小屏适配 */
    .drawer-inner-software {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .drawer-inner-software .about-our {
        margin-left: 0;
        padding-left: 84px;
    }

    .drawer-inner-software .about-head {
        top: 12px;
        left: 12px;
    }
}

@media screen and (min-width: 1024px) {
    .navbar-item.has-dropdown {
        height: 52px;
        align-items: stretch;
    }

    .navbar-item,
    .navbar-link {
        align-items: center;
        display: flex;
    }

    .navbar,
    .navbar-menu,
    .navbar-start,
    .navbar-end {
        align-items: stretch;
        display: flex;
    }

    .navbar.is-black .navbar-dropdown a.navbar-item.is-active {
        background-color: #0a0a0a;
        color: white;
    }

    .navbar-item.has-dropdown:focus .navbar-link,
    .navbar-item.has-dropdown:hover .navbar-link,
    .navbar-item.has-dropdown.is-active .navbar-link {
        background-color: #fff;
    }

    .navbar-dropdown a.navbar-item:focus,
    .navbar-dropdown a.navbar-item:hover {
        background-color: #f5f5f5;
        color: #0a0a0a;
    }

    .navbar-dropdown a.navbar-item.is-active {
        background-color: #f5f5f5;
        color: #0a0a0a;
    }

    .navbar-burger {
        display: none;
    }
}

@media screen and (min-width: 768px) {
    .navbar-item.has-dropdown {
        height: 52px;
        align-items: stretch;
    }

    .navbar-item,
    .navbar-link {
        display: flex;
    }

    .navbar {
        min-height: 52px;
    }

    .navbar,
    .navbar-menu,
    .navbar-start,
    .navbar-end {
        align-items: stretch;
        display: flex;
    }

    *,
    *::before,
    *::after {
        box-sizing: inherit;
    }
}

/* 小屏适配 */
@media (max-width: 900px) {
    .drawer-inner-software {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .drawer-inner-software .about-our {
        margin-left: 0;
        padding-left: 84px;
    }

    .drawer-inner-software .about-head {
        top: 12px;
        left: 12px;
    }
}