/* =========================================
   全局变量定义
   ========================================= */
:root {
    --c-yellow: rgb(255, 239, 1);
    --c-black: #000000;
    --c-white: #ffffff;
    --c-gray-light: #f5f5f7;
    --c-gray-mid: #d1d1d6;
    --c-gray-dark: #333333;
    --font-main: 'Noto Sans SC', sans-serif;
    --font-tech: 'Chakra Petch', sans-serif;
    --vh-unit: 1vh; /* 初始值，JS会更新 */
    
    /* 设置面板颜色变量 */
    --gray-normal: rgb(69, 68, 68);
    --gray-hover: rgb(83, 82, 82);
    --yellow-normal: rgb(255, 239, 1);
    --yellow-hover: rgb(255, 245, 104);
    --white-btn: rgb(240, 237, 235);
    --panel-header-bg: #1a1a1a;
    --panel-body-bg: #f2f2f2;
    --panel-radius: 24px;
    --highlight-bg: rgba(255, 220, 0, 0.2);
    
    /* 名字输入页变量 */
    --ni-bg-color: #050505;
    --ni-main-color: #eeeeee;
    --ni-dim-color: #666666;
    --ni-glow-color: rgba(255, 255, 255, 0.6);
    --ni-input-bg: rgba(255, 255, 255, 0.08);
}

/* =========================================
   全局基础样式
   ========================================= */
* { 
    box-sizing: border-box; 
    cursor: default; 
    user-select: none; 
    -webkit-user-drag: none; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    background-color: var(--c-black); 
    margin: 0; 
    height: 100vh; 
    overflow: hidden;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-family: var(--font-main);
}

/* =========================================
   主页样式 (Index Page)
   ========================================= */

/* 背景动效 */
.bg-marquee-layer {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    z-index: 0;
    pointer-events: none; 
    opacity: 0.15; 
    transform: skewY(-5deg);
    padding: 8vh 0;
    transition: opacity 0.5s;
}

.marquee-row { 
    display: flex; 
    width: 200%; 
    overflow: hidden; 
}

.marquee-text {
    white-space: nowrap; 
    font-family: var(--font-tech); 
    font-size: 15vh; 
    font-weight: 900;
    color: transparent; 
    -webkit-text-stroke: 2px var(--c-white); 
    animation: moveLeft 30s linear infinite;
}

@keyframes moveLeft { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* UI 缩放容器 */
#ui-layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 960px; 
    height: 520px;
    transform-origin: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    flex-shrink: 0;
    transition: opacity 0.5s, transform 0.5s;
}

/* 主面板 */
.panel {
    position: relative; 
    z-index: 10; 
    width: 100%; 
    height: 100%; 
    display: flex;
    box-shadow: 0 0 100px rgba(255, 255, 33, 0.1);
    opacity: 0;
}

.animate-panel { 
    animation: slideInLeftPanel 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards; 
}

.panel-left {
    flex: 1.8; 
    background-color: var(--c-white); 
    position: relative; 
    padding: 50px;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    overflow: visible; 
    clip-path: polygon(0 0, 100% 0, 100% 100%, 40px 100%, 0 calc(100% - 40px));
}

.panel-right {
    flex: 1.2; 
    background-color: var(--c-yellow); 
    position: relative; 
    padding: 40px;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, -60px 100%); 
    margin-left: -1px;
}

.bg-hatched-text {
    position: absolute; 
    top: -40px; 
    left: -20px; 
    font-family: var(--font-tech); 
    font-size: 380px;
    font-weight: 900; 
    line-height: 0.8; 
    pointer-events: none; 
    z-index: 0; 
    opacity: 0;
    background-image: repeating-linear-gradient(-45deg, var(--c-black), var(--c-black) 2px, transparent 2px, transparent 6px);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.animate-hatched { 
    animation: slideInLeftHatched 1s cubic-bezier(0.19, 1, 0.22, 1) 0.2s forwards; 
}

/* Logo 复刻区 */
.logo-lockup {
    position: relative; 
    width: 100%; 
    margin-top: 20px; 
    padding: 20px 0; 
    z-index: 20;
    opacity: 0;
}

.animate-content-1 { 
    animation: slideInLeftContent 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards; 
}

.logo-frame {
    position: absolute; 
    top: 0; 
    left: -20px; 
    right: -20px; 
    bottom: 0;
    border: 1px solid rgba(0,0,0,0.3); 
    pointer-events: none; 
    z-index: 0;
}

.logo-frame::after {
    content: 'INITIALIZE ACCESS'; 
    position: absolute; 
    bottom: 2px; 
    right: 5px;
    font-size: 9px; 
    font-family: var(--font-tech); 
    color: rgba(0,0,0,0.5);
}

.logo-stripe {
    position: absolute; 
    top: 72%; 
    left: -50px; 
    width: 150%; 
    height: 18px;
    background: var(--c-yellow); 
    opacity: 0.8; 
    z-index: 1; 
    mix-blend-mode: multiply;
}

.logo-content { 
    position: relative; 
    z-index: 2; 
    display: flex; 
    flex-direction: column; 
}

.logo-top {
    font-size: 26px; 
    font-weight: 900; 
    color: var(--c-black);
    margin-bottom: 2px; 
    margin-left: 2px; 
    letter-spacing: 0px;
    text-shadow: 0px -1px 0px var(--c-yellow);
}

.logo-row { 
    display: flex; 
    align-items: flex-end; 
}

.logo-cn {
    font-size: 130px; 
    line-height: 1; 
    font-weight: 900; 
    color: #111;
    margin: 0; 
    padding: 0; 
    letter-spacing: -6px; 
    white-space: nowrap;
    text-shadow: 0px -3px 0px var(--c-yellow); 
    transform: scaleY(0.95);
    margin-right: 12px; 
    z-index: 5;
}

.logo-en-box {
    width: 130px; 
    height: 130px; 
    background-color: #111; 
    position: relative;
    background-image: linear-gradient(#333 1px, transparent 1px), linear-gradient(90deg, #333 1px, transparent 1px);
    background-size: 4px 4px; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    padding-bottom: 15px;
}

.logo-en-wrapper { 
    width: 100%; 
    padding: 0; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
}

.logo-en-text { 
    font-family: var(--font-tech); 
    font-weight: 700; 
    line-height: 1; 
    display: block; 
    text-align: center; 
    width: 100%; 
}

.logo-en-top { 
    color: var(--c-white); 
    font-size: 20px; 
    margin-bottom: 2px; 
}

.logo-en-bottom { 
    color: var(--c-yellow); 
    font-size: 26px; 
}

/* 按钮部分 */
.btn-secondary {
    width: fit-content; 
    background: transparent; 
    border: 2px solid var(--c-black);
    color: var(--c-black); 
    padding: 12px 30px; 
    font-family: var(--font-tech);
    font-weight: 700; 
    font-size: 16px; 
    cursor: pointer; 
    margin-top: 40px;
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    z-index: 10;
    opacity: 0;
}

.animate-content-2 { 
    animation: slideInLeftContent 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.4s forwards; 
}

.btn-secondary:hover { 
    background: var(--c-black); 
    color: var(--c-white); 
}

.btn-start-container { 
    width: 100%; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-end; 
    opacity: 0;
}

.animate-content-3 { 
    animation: slideInLeftContent 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards; 
}

.btn-start {
    width: 100%; 
    height: 140px; 
    background: var(--c-black); 
    border: none;
    color: var(--c-white); 
    font-family: var(--font-tech); 
    font-size: 32px;
    font-weight: 700; 
    text-align: left; 
    padding: 30px; 
    cursor: pointer;
    position: relative; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column;
    justify-content: space-between; 
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
}

.btn-start::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--c-white); 
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); 
    z-index: 0;
}

.btn-start:hover::before { 
    transform: scaleX(1); 
}

.btn-start span { 
    position: relative; 
    z-index: 1; 
    transition: color 0.3s; 
}

.btn-start:hover span { 
    color: var(--c-black); 
}

.btn-sub-text { 
    font-size: 14px; 
    opacity: 0.6; 
    margin-bottom: 5px; 
}

.btn-main-text { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.footer-logo { 
    position: absolute; 
    bottom: 30px; 
    right: 40px; 
    font-family: var(--font-tech); 
    font-weight: 700; 
    font-size: 16px; 
    color: var(--c-black); 
    letter-spacing: 1px; 
    opacity: 0;
}

.animate-content-4 { 
    animation: slideInLeftContent 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.7s forwards; 
}

.deco-lines { 
    position: absolute; 
    top: 30px; 
    right: 30px; 
    width: 60px; 
    height: 40px; 
    opacity: 0; 
    cursor: pointer; 
    transition: opacity 0.3s; 
    z-index: 50;
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.deco-lines::before {
    content: ''; 
    width: 40px; 
    height: 4px; 
    background: var(--c-black); 
    box-shadow: 0 8px 0 var(--c-black); 
    transition: 0.3s;
}

.deco-lines:hover::before {
    background: var(--c-white); 
    box-shadow: 0 8px 0 var(--c-white);
}

.animate-content-5 { 
    animation: slideInLeftContent 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards; 
}

.panel-left > div:last-child {
    opacity: 0;
}

.animate-content-6 { 
    animation: slideInLeftContent 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards; 
}

/* 主页动画 */
@keyframes slideInLeftPanel { 
    from { transform: translateX(-80px); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

@keyframes slideInLeftContent { 
    from { transform: translateX(-30px); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

@keyframes slideInLeftHatched { 
    from { transform: translateX(-30px); opacity: 0; } 
    to { transform: translateX(0); opacity: 0.05; } 
}

/* =========================================
   关卡选择页样式 (Level Select Page)
   ========================================= */

#level-select-layer {
    display: none;
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    z-index: 100;
    background-color: var(--c-gray-light);
    overflow: hidden;
    transform-origin: center center;
}

/* 首次进入行动选择页时的透明交互遮罩，防止在教程加载前误触 */
.level-tutorial-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    background: transparent;
    display: none;
    pointer-events: auto; /* 明确阻挡点击 */
    cursor: default;
}

.level-tutorial-mask.active {
    display: block;
}

/* 背景层 - 复合纹理 */
.bg-layer {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 0;
    background-color: #f2f3f5;
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(135deg, transparent 0%, transparent 40%, rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.02) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,0,0,0.03) 5px, rgba(0,0,0,0.03) 6px);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    background-position: center;
}

/* 装饰层 */
.deco-layer {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1; 
    pointer-events: none; 
    overflow: hidden;
}

.deco-dots-bl {
    position: absolute; 
    bottom: 5%; 
    left: 2%; 
    width: 300px; 
    height: 200px;
    background-image: radial-gradient(var(--c-gray-mid) 1px, transparent 1px);
    background-size: 10px 10px; 
    opacity: 0.5;
    mask-image: linear-gradient(to right, black, transparent);
    -webkit-mask-image: linear-gradient(to right, black, transparent);
}

.deco-lines-tr {
    position: absolute; 
    top: 15%; 
    right: 0; 
    width: 400px; 
    height: 300px;
    background: repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(0,0,0,0.04) 4px, rgba(0,0,0,0.04) 5px);
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

.deco-ruler-h {
    position: absolute; 
    top: 20%; 
    left: 0; 
    width: 100%; 
    height: 1px; 
    background: rgba(0,0,0,0.08);
}

.deco-ruler-h::after {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 10%; 
    width: 80%; 
    height: 4px;
    background-image: linear-gradient(90deg, var(--c-black) 1px, transparent 1px);
    background-size: 20px 100%; 
    opacity: 0.1;
}

.deco-cross { 
    position: absolute; 
    width: 20px; 
    height: 20px; 
}

.deco-cross::before, .deco-cross::after { 
    content: ''; 
    position: absolute; 
    background: var(--c-gray-dark); 
}

.deco-cross::before { 
    top: 9px; 
    left: 0; 
    width: 100%; 
    height: 2px; 
}

.deco-cross::after { 
    left: 9px; 
    top: 0; 
    height: 100%; 
    width: 2px; 
}

.pos-tl { 
    top: 140px; 
    left: 40px; 
    opacity: 0.3; 
}

.pos-br { 
    bottom: 40px; 
    right: 40px; 
    opacity: 0.3; 
}

.deco-text { 
    position: absolute; 
    font-family: var(--font-tech); 
    color: rgba(0,0,0,0.05); 
    font-weight: 700; 
    pointer-events: none; 
}

.text-bg-large { 
    font-size: 20vh; 
    bottom: -5vh; 
    right: 5vw; 
    line-height: 1; 
    z-index: -1; 
}

.text-tech-small { 
    font-size: 12px; 
    color: rgba(0,0,0,0.4); 
    letter-spacing: 1px; 
}

/* 顶部装饰条 */
.top-bar {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: calc(var(--vh-unit) * 12);
    background: rgb(28, 28, 28);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transform: translateY(-100%);
}

.animate-slide-down-bar { 
    animation: slideDownBar 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards; 
}

.top-bar::after {
    content: ''; 
    position: absolute; 
    bottom: -4px; 
    left: 0; 
    width: 100%; 
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--c-black) 0, var(--c-black) 2px, transparent 2px, transparent 6px);
    opacity: 0.1;
}

.page-title {
    color: var(--c-white); 
    font-size: calc(var(--vh-unit) * 4); 
    font-weight: 700; 
    letter-spacing: 2px; 
    font-family: var(--font-main);
}

.close-btn {
    width: calc(var(--vh-unit) * 6); 
    height: calc(var(--vh-unit) * 6);
    background: var(--c-white); 
    border-radius: 50%; 
    position: relative;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer;
    transition: transform 0.2s; 
    text-decoration: none; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.close-btn:hover { 
    transform: scale(1.1); 
}

.close-btn::before, .close-btn::after {
    content: ''; 
    position: absolute; 
    width: 50%; 
    height: 12%; 
    background: var(--c-black); 
    border-radius: 1px;
}

.close-btn::before { 
    transform: rotate(45deg); 
}

.close-btn::after { 
    transform: rotate(-45deg); 
}

/* 关卡选择页面寻访凭证显示 */
.level-ticket-display {
    position: absolute;
    top: calc(var(--vh-unit) * 12 + 20px); /* 黑条下方20px */
    right: 40px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 90;
    transition: all 0.3s ease;
}

.level-ticket-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.7);
}

.level-ticket-display .ticket-icon {
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-ticket-display .ticket-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--c-yellow);
    filter: drop-shadow(0 0 4px rgba(253, 208, 0, 0.6));
}

.level-ticket-display #level-ticket-count {
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(255, 239, 1, 0.4);
}

/* 滚动容器 */
#scroll-wrapper {
    position: absolute; 
    top: 0; 
    padding-top: calc(var(--vh-unit) * 12); 
    bottom: 0; 
    left: 0; 
    width: 100%;
    overflow-x: auto; 
    overflow-y: hidden; 
    display: flex; 
    align-items: center;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    cursor: grab; 
    z-index: 10;
    transform: translateY(-100%);
    -webkit-overflow-scrolling: touch;
}

.animate-slide-down-content { 
    animation: slideDownContent 1s cubic-bezier(0.19, 1, 0.22, 1) forwards; 
}

#scroll-wrapper::-webkit-scrollbar { 
    display: none; 
}

#scroll-wrapper:active { 
    cursor: grabbing; 
}

.track { 
    display: flex; 
    align-items: center; 
    height: 100%; 
    padding-left: 10vw;
    padding-right: calc(10vw + 550px); /* 预留右下角按钮组空间，防止遮挡 */
    gap: 2px; 
}

/* 关卡项目样式 */
.level-item {
    position: relative; 
    height: calc(var(--vh-unit) * 65); 
    width: calc(var(--vh-unit) * 20);
    flex-shrink: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: transform 0.3s;
}

.level-trigger {
    position: absolute; 
    top: 0; 
    height: 100%; 
    width: 100%; 
    z-index: 100; 
    cursor: pointer;
}

.level-visual {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.15); 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    overflow: hidden; 
    z-index: 10;
}

/* 悬浮黑色背景展开动画 - 从中间向上下扩散 */
.level-visual::before {
    content: ''; 
    position: absolute; 
    top: 50%; 
    left: 0; 
    width: 100%; 
    height: 0%;
    background: var(--c-black); 
    transform: translateY(-50%);
    transition: height 0.3s cubic-bezier(0.45, 0, 0.55, 1);
    z-index: 0;
}

.level-trigger:hover ~ .level-visual::before {
    height: 100%;
}

/* 悬浮时的容器变化 */
.level-trigger:hover ~ .level-visual {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); 
    border-color: var(--c-black); 
    z-index: 30;
}

/* 内部元素层级提升，确保在黑色背景之上 */
.level-visual > * { 
    position: relative; 
    z-index: 1; 
}

/* 装饰线条 */
.deco-line-top {
    position: absolute; 
    top: 0; 
    left: 50%; 
    width: 1px; 
    height: 15%; 
    background: rgba(0,0,0,0.2); 
    transform: translateX(-50%); 
    transition: background 0.3s;
}

.deco-line-bottom {
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    width: 1px; 
    height: 15%; 
    background: rgba(0,0,0,0.2); 
    transform: translateX(-50%); 
    transition: background 0.3s;
}

.level-trigger:hover ~ .level-visual .deco-line-top,
.level-trigger:hover ~ .level-visual .deco-line-bottom { 
    background: rgba(255,255,255,0.3); 
}

/* 数字排版优化 */
.level-num {
    font-family: var(--font-tech); 
    font-size: calc(var(--vh-unit) * 16); 
    font-weight: 700; 
    line-height: 1; 
    position: absolute; 
    top: 5%; 
    left: 50%; 
    transform: translateX(-50%);
    color: rgba(0,0,0,0.06);
    transition: all 0.3s;
    z-index: 0;
    pointer-events: none;
}

.level-trigger:hover ~ .level-visual .level-num {
    color: rgba(255,255,255,0.1);
    transform: translateX(-50%) scale(1.1);
}

/* 图标区域 */
.level-icon-container {
    margin-top: calc(var(--vh-unit) * 18);
    display: flex; 
    justify-content: center; 
    align-items: center;
    position: relative;
}

.level-icon {
    width: calc(var(--vh-unit) * 8); 
    height: calc(var(--vh-unit) * 8); 
    border: 1px solid #999;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: all 0.4s; 
    transform: rotate(45deg);
    background: transparent;
}

.level-trigger:hover ~ .level-visual .level-icon {
    border-color: var(--c-yellow); 
    background: var(--c-yellow); 
    box-shadow: 0 0 25px var(--c-yellow);
    transform: rotate(225deg);
}

.level-icon-inner {
    width: calc(var(--vh-unit) * 4); 
    height: calc(var(--vh-unit) * 4); 
    background: #999; 
    transition: background 0.3s;
}

.level-trigger:hover ~ .level-visual .level-icon-inner { 
    background: var(--c-black); 
}

/* 关卡名称 */
.level-name {
    margin-top: auto; 
    margin-bottom: calc(var(--vh-unit) * 10);
    font-size: calc(var(--vh-unit) * 3.2); 
    font-weight: 700; 
    writing-mode: vertical-rl; 
    text-orientation: upright;
    letter-spacing: 6px; 
    color: #333; 
    transition: color 0.3s;
}

.level-trigger:hover ~ .level-visual .level-name { 
    color: var(--c-white); 
}

/* 状态文字 */
.level-status { 
    position: absolute; 
    bottom: calc(var(--vh-unit) * 2);
    font-family: var(--font-tech); 
    font-size: calc(var(--vh-unit) * 1.5); 
    color: #999; 
    letter-spacing: 1px; 
    transition: color 0.3s;
}

.level-trigger:hover ~ .level-visual .level-status { 
    color: rgba(255,255,255,0.6); 
}

/* Locked 状态优化 - 保持按钮形态 */
.level-item.locked { 
    pointer-events: none; 
}

.level-item.locked .level-visual { 
    background: rgba(200, 200, 200, 0.15);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    opacity: 1;
}

.level-item.locked .level-visual::after {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,0,0,0.05) 5px, rgba(0,0,0,0.05) 6px);
    z-index: 2; 
    pointer-events: none;
}

.level-item.locked .level-num { 
    color: rgba(0,0,0,0.05); 
}

.level-item.locked .level-icon { 
    border-color: rgba(0,0,0,0.1); 
}

.level-item.locked .level-icon-inner { 
    background: rgba(0,0,0,0.1); 
}

.level-item.locked .level-name { 
    color: rgba(0,0,0,0.2); 
}

.level-item.locked .level-status { 
    color: rgba(0,0,0,0.2); 
}

/* Cleared 状态 */
.level-item.cleared .level-icon { 
    border-color: rgba(114, 215, 81, 0.6); 
    box-shadow: 0 0 15px rgba(114, 215, 81, 0.1); 
}

.level-item.cleared .level-icon-inner { 
    background: rgba(114, 215, 81, 0.6); 
}

.level-item.cleared .level-trigger:hover ~ .level-visual .level-icon {
    border-color: rgb(114, 215, 81); 
    background: rgba(114, 215, 81, 0.2); 
    box-shadow: 0 0 20px rgb(114, 215, 81);
}

.level-item.cleared .level-trigger:hover ~ .level-visual .level-icon-inner { 
    background: rgb(114, 215, 81); 
}

/* 关卡选择页动画 */
@keyframes slideDownContent { 
    from { transform: translateY(-100%); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

@keyframes slideDownBar { 
    from { transform: translateY(-100%); } 
    to { transform: translateY(0); } 
}

/* =========================================
   移动端适配 (Mobile Responsive)
   ========================================= */
@media screen and (max-width: 950px) {
    .track {
        padding-right: calc(10vw + 350px); /* 移动端按钮组较小，调整留白 */
    }
}

@media screen and (max-width: 600px) {
    .track {
        padding-right: calc(10vw + 300px); /* 超小屏幕进一步调整 */
    }
}