/* 全局样式 */
:root {
    --primary: #0a0a2e;
    --secondary: #2a1a3e;
    --menuHorver: #871F78;
    --bg: #ffffff;
    --text: #333333;
    --gray: #888888;
    --light-gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x:hidden;
}

/* 全局滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100vw;
    min-height: calc(100vh - 50px);
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* 使得子元素垂直排列 */
}
/* ========== 图标组（右上角固定） ========== */
#iconGroup {
    position: fixed;
    top: 60px;
    right: 10px;
    z-index: 1000;
    width: 140px
}

/* 小恐龙关闭时，图标组移到距离上部10px */
#iconGroup.move-up {
    top: 10px;
}

/* 菜单包装器（relative 定位） */
#menuWrapper {
    float: right;
}

/* 菜单图标 */
#menuIcon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    position: relative;
}

#menuIcon:hover {
    transform: scale(1.1);
}

/* 小恐龙图标 */
#dinoIcon {
    float: right;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

#dinoIcon.show {
    display: block;
    margin-right: 10px;
}

#dinoIcon:hover {
    transform: scale(1.1);
}

/* 二级导航（absolute 定位在菜单图标下方） */
#subNav {
    display: none;
    position: absolute;
    background: var(--bg);
    //border: 1px solid var(--light-gray);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1001;
    width: 160px;
    right: 0;
    top: 55px;
}

#subNav.show {
    display: block;
}

#subNav a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.3s;
}

#subNav a:hover {
    background: var(--menuHorver);
    color: #fff;
}

/* 小恐龙跑酷条（全宽） */
#dinoBar {
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    overflow: hidden;
}

#dinoBar .close-btn {
    position: absolute;
    left: 0;
    top: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    width:50px;
    height:50px
}