
    * {
        box-sizing: border-box;
    }
    html, body {
        cursor: pointer;
        background-color: #000 !important;
        background-image: url('/files/default/back.jpg');
        background-repeat: no-repeat;
        background-size: 30% auto;
        background-position-y: 10px; /*背景图 往下移动 50 像素，数值越大越往下 */
        color: #fff !important;
       
        padding: 0; 
        width: 100%;
        /* 核心：禁止水平滚动条，确保页面左右不会晃动 */
        overflow-x: hidden; 
        position: relative;
        /* 优化移动端手势：只允许上下滑动，防止误触导致水平翻页 */
        touch-action: pan-y; /* 明确只允许垂直滑动，禁止水平手势 */
    }
 

    #app {
        width: 100%;
        /* 相比 100vw l浏览器的百分比，100% 父元素的百分比，能更好地避开移动端滚动条带来的计算错误 */
        max-width: 100%;
        min-height: 0vh;
        overflow-x: hidden;
        display: flex; 
        flex-direction: column; /* 纵向排列布局 */
        align-items: center;
       
    }
    
    .main-wrapper { 
        width: 100%;
        max-width: 450px; /* 典型的手机端最大宽度限制 */
        margin: 0 auto;
        padding: 0 2px; /* 侧边留极小间隙，防止内容贴边 */
        overflow: hidden; 
    }
    
    /* 彻底解决 Bootstrap row 溢出 */
    .row {
        margin: 0 !important;
        padding: 0 !important;
    }
    /* 针对 Edge 浏览器的特定优化 */
    @supports (-ms-ime-align:auto) or (-webkit-mask:none) {
        .btn-warning, .btn-dark {
            flex-shrink: 1 !important; /* 强制允许缩小 */
            word-break: break-all; /* 强制长单词换行 */
        }
    }
    
    /*电阻屏幕 显示 的  点击图片，二维图， 退出 在一行显示*/
    .container-row {
        display: flex;             /* 核心：开启 flex 布局 */
        flex-direction: row;       /* 确保水平排列 */
       
        align-items: flex-end;    /* 这会让右侧的图标组整体沉到底部，与左侧木鱼图片的下边缘对齐 align-items: center;     垂直居中对齐，防止按钮和二维码高低不一  */
        justify-content: flex-start; /* 靠左对齐，如果想撑满可以选 space-between */

        gap: 20px;                 /* 三个盒子之间的间距 */
        width: 100%;
        margin-bottom: 5px;
    }

    click—area {
        display: inline-block;
        padding: 15px 20px; /* 增加内边距 */
        background-color: #f0f0f0; 
        border-radius: 8px;
        text-decoration: none;
        min-width: 60px; /* 最小宽度，防止太窄点不到 */
    }

    .display-area {
        position: relative; /* 必须是 relative */
        z-index: 1; 
        overflow: hidden;   /* 裁剪掉超出边界的文字 */
      
        width: 100%;
        height: auto; /* 让高度由内容决定 */
        /* height: 70vh; 重点：高度设为 100% 可视高度  这个是设置区域高度，但是导致中间位置浪费*/
        display: flex; 
        justify-content: flex-end; /* 关键：让内容沉到底部 */
      
        margin-bottom: 10px;  /*显示区域 跟底部文件选择 有一定空隙*/
        border-radius: 15px;
        contain: paint; /* 告诉浏览器，内部元素绝不会画到盒子外面 */    
        align-self: flex-start; /* 关键：防止父容器强制拉伸该盒子的高度 */
        height: min-content;    /* 强制高度等于内部元素的最小高度 */
    }
    
    .video-player {
        width: 100%;
        display: block; /* 解决底部 4px 间隙的关键 */
        height: auto;
        border-radius: 15px;
        /* 核心修改：移除 contain */
        object-fit: cover; 
        /* 如果不想有任何裁剪，尝试把 object-fit 删掉，让浏览器用默认的内建比例计算高度 */
    }

    /* 确保内部视频和图片永远不会比父亲宽     */
    .video-player, .topic {
        max-width: 100%; 
        height: auto; 
        object-fit: contain; 
        
    }

    .topic-active { transform: scale(0.92); }
    

    .screen_sm{
        display: none;
        
      
    }
    /* 二维码区域 */
    .screen_sm img {
        width: 60px !important;  /* 减小二维码，否则 80px 太占地方 */
        height: 60px !important;
    }

    @media ((max-width: 1024px) ) {
        body {
          background-image: none; /* 隐藏背景图 */
        }

       
    }     

    /* 当屏幕是非常小屏，电阻屏时屏幕宽度小于 500px（几乎所有手机）
    2.8寸 320x240 
    3.5   480 × 320
    800 × 480
    */
    @media ((max-width: 500px) and (max-height: 350px)) {
        body {
        background-image: none; /* 隐藏背景图 */
        }

        .display-area {
            
            height: auto;
            font-size: 12px; /* 建议同步减小字体，否则文字会溢出容器 */
            justify-content: flex-start;
            padding-left: 2px;
        }
        .screen_sm{
            /*CSS 的属性值必须是预定义的关键字（如 block, flex, none initia 等  initia 恢复到元素标签自带的默认显示方式）*/
            display: flex;
            justify-content: center; /* 居中对齐子项 */
            gap: 10px;              /* 让两个二维码之间有点间距 */
        }
        .topic {
            /* 设置木鱼图片的大小*/
            width: 130px !important; /* 如果被层级覆盖，加 !important */
        }
    }       


    
    /* 加载动画 */
    .loading-spinner {
        position: absolute; width: 40px; height: 40px;
        border: 3px solid rgba(241, 196, 15, 0.3);
        border-top: 3px solid #f1c40f; border-radius: 50%;
        animation: spin 1s linear infinite; z-index: 10;
        pointer-events: none; /* 让点击事件直接穿透到下层的 video 标签上 */
              
    }
    
    .float-text {
        z-index: 1000;
        position: absolute;
        /* --- 1. 将起点下移到底部附近 --- */
        /*bottom: 5%; */
        bottom: 10%; 
        left: 50%;
        transform: translateX(-50%);
       
        width: 90%; 
        text-align: center; 
        color: #ffc107; 
        font-weight: 800;
        font-size: 26px; 
        letter-spacing: 2px;
        line-height: 1.4;
        
        white-space: normal;
        word-break: break-all;
        pointer-events: none;
        
        
        /* 既然路程变长了，8s 会显得比之前稍快一点点，
           如果想更悠长，可以考虑改为 10s */
        animation: flowUpwardsSlow 10s ease-out forwards;
        text-shadow: 0 0 10px rgba(0,0,0,0.5);
    }
    
    @keyframes flowUpwardsSlow {
        0% { 
            /* 从底部贴近处弹出 */
            transform: translate(-50%, 0) scale(0.3); 
            opacity: 0; 
        }
        8% { 
            /* 快速喷涌感：向上冲一点点并放大 */
            transform: translate(-50%, -40px) scale(1.1); 
            opacity: 1; 
        }
        100% { 
            /* --- 2. 延长飞行距离 ---
               从底部 5% 飞到靠近顶部（-85vh 代表向上飞行屏幕高度的 85%）
               这样文字几乎贯穿整个大屏幕 */
            transform: translate(-50%, -99vh) scale(0.8); 
            opacity: 0; 
        }
    }
    /* --- Tab 与折叠面板 --- */
    .nav-tabs-custom { border-bottom: 1px solid #333; display: flex; justify-content: space-around; margin-bottom: 15px; }
    .nav-item-custom { padding: 8px 0; color: #888; cursor: pointer; position: relative; font-size: 0.95rem; }
    .nav-item-custom.active { color: #f1c40f; font-weight: bold; }
    .nav-item-custom.active::after {
        content: ""; position: absolute; bottom: -1px; left: 0; right: 0;
        height: 2px; background: #f1c40f; box-shadow: 0 0 8px #f1c40f;
    }
    
    .card { background: #161616; border: 1px solid #333; margin-bottom: 10px; overflow: hidden; }
    .card-header { background: #222 !important; cursor: pointer; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; }
    .collapse-content { max-height: 0; transition: max-height 0.4s ease-out, opacity 0.4s; opacity: 0; }
    .collapse-content.show { max-height: 800px; opacity: 1; padding: 15px; } /* 增加 max-height 以容纳网格 */
    
    /* --- 方案二：按钮网格优化部分 (修改此块) --- */
    .gap-2.justify-content-center {
        display: grid !important;
        /* auto-fill: 自动填充; minmax(100px, 1fr): 最小100px, 最大平分 */
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
        gap: 8px !important;
        width: 100%;
    }
    
    .btn-warning, .btn-dark {
        width: 100%;
        margin: 0 !important;
        /* 处理长文字：换行显示并垂直居中 */
        white-space: normal !important;
        word-break: break-all;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 45px; /* 保证高度一致 */
        font-size: 0.8rem !important;
        line-height: 1.2;
        padding: 5px !important;
    }
    /* --- 修改结束 --- */






/* 文件列表容器 */
/* 文件列表容器：增加了高度限制和滚动条 */
.file-list-container {
    
    /* 核心修改：限制高度并允许垂直滚动 */
    max-height: 400px; 
    overflow-y: auto;
    overflow-x: hidden;
    /* 增加一个平滑滚动的效果 */
    scroll-behavior: smooth;
}

/* 单个条目样式 */
.file-item {
    padding: 5px 5px;
    margin: 4px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* 确保内部元素垂直居中 */
    display: flex;
    align-items: center;
}

/* 最后一个条目去掉底边线 */
.file-item:last-child {
    border-bottom: none;
}

/* 悬停效果 */
.file-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

/* 图标样式 */
.file-icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

/* 文件名样式：针对看不清的问题，稍微提升了不透明度 */
.file-name {
    /* 将 0.85 提升到 0.95，这样文字会更亮白一些 */
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* --- 新增：滚动条的美化（适配你的深色界面） --- */
.file-list-container::-webkit-scrollbar {
    width: 5px; /* 窄一点，不显眼 */
}

.file-list-container::-webkit-scrollbar-thumb {
    /* 使用你之前的黄色（warning）作为滚动条滑块颜色，增加整体感 */
    background-color: rgba(255, 193, 7, 0.5); 
    border-radius: 10px;
}

.file-list-container::-webkit-scrollbar-track {
    background: transparent;
}
    
    
    /* mp3播放器容器样式：增加阴影和圆角 */
    .audio-container {
        padding: 10px;
        background: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
        border-radius: 8px;
        margin-top: 10px;
    }
    
    /* 播放器核心：色彩反转 */
    .custom-audio {
        width: 100%;
        height: 40px;
        filter: invert(90%) hue-rotate(180deg) brightness(1.2); /* 关键：反转颜色 */
        opacity: 0.8; /* 增加一点透明度，更柔和 */
        transition: opacity 0.3s;
    }
    
    .custom-audio:hover {
        opacity: 1;
    }
    /*mp3播放器结束*/
    
    
    /* 进度条样式微调 */
    .progress { border-radius: 10px; }
    .sys-dashboard span { font-size: 14px; letter-spacing: 1px; }
    
    
    [v-cloak] {
        display: none;
    }
        
