/* ============================================
 * layout.css - 整体布局：固定头部、导航
 * 统一管理：页面骨架结构样式
 * 全屏状态切换（透明/白底）见 fullpage.css
 * ============================================ */

/* ========== 固定头部 ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background .35s;
}

/* 通用容器 */
.site-header .wrap {
    width: 1200px;
    max-width: 96%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* ========== 第一行：logo + 辅助链接 ========== */
.site-header .header-top { padding: 22px 0 14px; }
.site-header .header-top .wrap { justify-content: space-between; }

.site-header .logo { display: block; flex-shrink: 0; }
.site-header .logo img { display: block; height: 70px; width: auto; }

/* 辅助链接区 */
.site-header .header-utils {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1;
}
.site-header .util-link {
    padding: 6px 12px;
    color: #fff;
    transition: color .25s;
}
.site-header .util-link:hover { color: #f37021; }
.site-header .header-utils .sep {
    color: rgba(255,255,255,.5);
    font-weight: 300;
}
.site-header .util-round {
    width: 28px;
    height: 28px;
    margin-left: 8px;
    background: #f37021;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 13px;
    transition: background .25s, transform .25s;
}
.site-header .util-round:hover { background: #d85a14; transform: translateY(-1px); }

/* ========== 第二行：主导航 ========== */
.site-header .navbar {
    height: 56px;
    position: relative;
    transition: background .35s, box-shadow .35s;
}
.site-header .navbar .wrap { height: 100%; }
.site-header .nav-list {
    display: flex;
    align-items: center;
    height: 100%;
}
.site-header .nav-list > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.site-header .nav-list > li > a {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: color .25s;
    position: relative;
    white-space: nowrap;
}
.site-header .nav-list > li > a .caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transform: translateY(2px);
    transition: transform .25s;
}
.site-header .nav-list > li.has-sub:hover > a .caret { transform: translateY(2px) rotate(180deg); }
.site-header .nav-list > li > a:hover,
.site-header .nav-list > li.active > a,
.site-header .nav-list > li.hover > a { color: #f37021; }

/* 搜索框 */
.site-header .nav-search {
    margin-left: auto;
    position: relative;
    width: 230px;
    height: 36px;
    background: #fff;
    border: 1px solid #f37021;
    border-radius: 4px;
    overflow: hidden;
}
.site-header .nav-search input {
    width: 100%;
    height: 100%;
    padding: 0 44px 0 14px;
    font-size: 13px;
    color: #333;
    background: transparent;
    border: 0;
    outline: 0;
}
.site-header .nav-search input::placeholder { color: #999; }
.site-header .nav-search button {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background: #f37021;
    color: #fff;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    transition: background .25s;
}
.site-header .nav-search button::before {
    content: "\1F50D";
    font-size: 16px;
    line-height: 1;
}
.site-header .nav-search button:hover { background: #d85a14; }

/* ========== 二级菜单（浅灰大面板） ========== */
.site-header .nav-list .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 540px;
    background: #f4f5f8;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,.15);
    padding: 18px 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
    z-index: 99;
}
.site-header .nav-list > li.has-sub:hover .submenu,
.site-header .nav-list > li.hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.site-header .submenu ul {
    display: block;
    column-count: 3;
    column-gap: 18px;
}
.site-header .submenu li {
    break-inside: avoid;
    margin-bottom: 14px;
}
.site-header .submenu li a {
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    transition: color .25s;
}
.site-header .submenu li a .ico {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    background: #f37021;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.site-header .submenu li a .ico::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 4px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: translate(-50%, -65%) rotate(-45deg);
}
.site-header .submenu li a:hover { color: #f37021; }

/* ========== 白底状态（非首屏） ========== */
.site-header.solid { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.site-header.solid .header-top { padding: 18px 0 10px; }
.site-header.solid .logo img { height: 58px; }
.site-header.solid .util-link { color: #333; }
.site-header.solid .util-link:hover { color: #f37021; }
.site-header.solid .header-utils .sep { color: #ddd; }

.site-header.solid .nav-list > li > a { color: #333; }
.site-header.solid .nav-list > li > a:hover,
.site-header.solid .nav-list > li.active > a,
.site-header.solid .nav-list > li.hover > a { color: #f37021; }

/* ============================================
 * 通用容器工具
 * ============================================ */
.wrap {
    width: 1200px;
    max-width: 96%;
    margin: 0 auto;
}
