/* 5.1.css - 保持原有风格 + 移动端适配 */

/* ==================== 全局基础样式 ==================== */
html {
    font-size: 62.5%;
}

body {
    font: normal 100% Arial, sans-serif;
    font-size: 14px;
    font-size: 1.4rem;
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    line-height: 1.6;
}

/* ==================== 标题动画样式 ==================== */
h2 {
    text-align: center;
    font-size: 30px;
    animation: colorShift 3s infinite, blink 0.9s infinite;
    margin: 20px 0;
}

@keyframes colorShift {
    0% { color: #e3a413; }
    50% { color: #020202; }
    100% { color: #5a5ab3; }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* ==================== 导航菜单样式 ==================== */
#fist {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

#fist ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

#fist li {
    display: inline-block;
}

#fist li a {
    display: block;
    color: rgb(14, 14, 16);
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
}

#fist li a:hover {
    background-color: #4876bb;
}

#fist .active {
    background-color: #4CAF50;
}

/* ==================== 其他元素样式 ==================== */
.top-div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.footer {
    text-align: center;
    font-size: 12px;
}

.xiao {
    position: fixed;
    left: 0;
    bottom: 0;
    color: #676565;
}

.yonghu {
    text-align: center;
    font-size: 15px;
    color: #6d6868;
}

.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0 auto;
    z-index: 1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

video {
    height: 100%;
    width: 100%;
    position: absolute;
    right: 0px;
    bottom: 0px;
    z-index: -3;
}

.wenzi, .wenzi ul {
    text-align: center;
    padding-left: 20px;
    margin-left: 10px;
    list-style-type: none;
    color: #6fe1e1;
}

.wenzi2 {
    text-align: center;
    width: auto;
    height: 15px;
    color: #c64aae;
}

.hy {
    text-align: center;
    font-size: large;
}

/* ==================== 光标样式 ==================== */
.cyber-cursor {
    position: fixed;
    width: 24px;
    height: 36px;
    background: linear-gradient(180deg, rgba(0,243,255,0.8) 0%, rgba(0,243,255,0.2) 100%);
    border: 1px solid #00f3ff;
    box-shadow: 0 0 20px #00f3ff;
    pointer-events: none;
    z-index: 9999;
    animation: cursor-pulse 1s infinite, data-flow 2s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 25% 100%, 0 75%);
    transform: translate(-50%, -50%);
    display: none; /* 默认隐藏，桌面端通过JS显示 */
}

@keyframes cursor-pulse {
    0%, 100% { transform: translate(-50%, -50%) scaleY(1); }
    50% { transform: translate(-50%, -50%) scaleY(0.8); }
}

@keyframes data-flow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ==================== 移动端适配 - 仅在需要时调整 ==================== */

/* 平板设备 (768px以下) */
@media screen and (max-width: 768px) {
    h2 {
        font-size: 24px;
        margin: 15px 0;
    }
    
    #fist ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #fist li {
        margin: 5px;
    }
    
    #fist li a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .hy {
        font-size: 18px;
    }
    
    .wenzi, .wenzi ul {
        padding-left: 10px;
        margin-left: 5px;
        font-size: 14px;
    }
    
    .video-container {
        height: 300px;
    }
}

/* 手机设备 (480px以下) */
@media screen and (max-width: 480px) {
    h2 {
        font-size: 20px;
        margin: 10px 0;
        animation: colorShift 3s infinite, blink 1.2s infinite;
    }
    
    .top-div {
        font-size: 14px;
        padding: 5px;
    }
    
    #fist ul {
        flex-direction: column;
        align-items: center;
    }
    
    #fist li {
        width: 100%;
        max-width: 280px;
        margin: 3px 0;
    }
    
    #fist li a {
        padding: 10px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hy {
        font-size: 16px;
    }
    
    .wenzi, .wenzi ul {
        font-size: 13px;
        padding: 0 10px;
    }
    
    .wenzi li {
        margin: 8px 0;
        text-align: left;
    }
    
    .video-container {
        height: 250px;
    }
    
    .xiao {
        position: relative;
        text-align: center;
        padding: 10px;
    }
    
    .footer {
        font-size: 11px;
        padding: 0 10px;
    }
    
    .yonghu {
        font-size: 13px;
    }
}

/* 超小屏幕 (360px以下) */
@media screen and (max-width: 360px) {
    h2 {
        font-size: 18px;
    }
    
    .top-div {
        font-size: 12px;
    }
    
    #fist li a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .wenzi, .wenzi ul {
        font-size: 12px;
    }
}