@media only screen and (max-width: 767px) {
    body,
    html {
        height: 100%;
        margin: 0;
        background: #333333;
    }
    #app {
        width: 100%;
        height: 100%;
        border-right: 20vw solid #333;
        border-bottom: 62vw solid #333;
        margin-top: 5vw;
    }
    #container {
        margin: auto;
        position: relative;
        background-color: #f0f0f0;
        border: 2px solid #ccc;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
    }
    .image-container {}
    @font-face {
        font-family: 'simhei';
        /* 自定义字体的名称 */
        src: url('https://mall.howvin.com/fonts/simhei.woff') format('truetype');
        /* TTF格式，作为最后的备选 */
        font-weight: normal;
        /* 字体粗细 */
        font-style: normal;
        /* 字体风格，如italic */
    }
    #draggable {
        position: absolute;
        cursor: move;
        border: 1px solid;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-family: 'simhei', Arial, sans-serif;
    }
    #point-draggable {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 10vw;
        height: 10vw;
        background-image: url('../images/point.png');
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
    /* 扫描线 */
    .scan-line {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background-image: linear-gradient(to right, rgba(255, 0, 0, 0.7) 0%, rgba(255, 0, 0, 0.2) 50%, rgba(255, 0, 0, 0.7) 100%);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
        animation: scan 1.8s linear infinite;
    }
    /* 动画 */
    @keyframes scan {
        0% {
            top: 0;
        }
        100% {
            top: calc(100% - 2px);
        }
    }
    /** 选择按钮 **/
    .select-image {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .select-image-btn {
        width: 80vw;
        height: 50px;
        background: #ff6600;
        color: white;
        font-size: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 25px;
        font-size: 14px;
    }
    /** 控制台输入 **/
    .console {
        width: 100vw;
        position: fixed;
        z-index: 200;
        display: flex;
        flex-direction: column;
        bottom: 0;
    }
    .console-container {
        width: 100%;
        height: 100%;
        /* background: white; */
    }
    .console-content {
        width: 100vw;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .console-input {
        width: 100%;
    }
    .input-fontsize {
        width: 100%;
        height: 40px;
        display: flex;
        flex-direction: row;
        align-items: center;
        font-size: 12px;
    }
    .font-size-label {
        width: 50px;
        height: 20px;
        text-align: center;
    }
    .font-size-slider {
        width: 90%;
        padding: 0px 5px;
    }
    .el-card__header{
        display: none;
    }
    .color-item {
        gap:1rem;
        display: flex;
    align-items: center;
    justify-content: center;
        padding: 0px 5px;
    }
    .box-card {
        width: 100%;
        background: white;
    }
    /** 按钮样式 **/
    .btn-container {
        position: fixed;
        top: 0;
        right: 0;
    }
    .btn-content {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap:1rem;
      margin:1rem;
    }
    .el-button.el-button--mini{
        width: 40px;
        height:40px;
        border-radius:50%;
        border:0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding:0;

    }
    .save-btn {
    
    }
    .beian {
        width: 100%;
        height: 5vh;
        font-size: 13px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
    }
    .point {
        background: #ff6600;
        color: white;
        padding: 5px 10px;
        font-size: 10px;
        border-radius: 15px;
    }
    /* 选择需要在悬停时显示手指图标的元素，例如一个a标签或按钮 */
    .point {
        /* 默认状态下的光标样式 */
        cursor: default;
    }
    /* 当鼠标悬停在元素上时，光标变为手指图标 */
    .point {
        cursor: pointer;
    }
    .item-char {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
    }
    .select-item-char {
        border: 1px dashed green;
    }
    .movable-view {
        position: absolute;
        cursor: grab;
        user-select: none;
        touch-action: none;
    }
    .font-icon{
        min-width: 60px;
        height: 29px;
        border: 1px solid #000;
        display: inline-block;
        vertical-align: middle;
        object-fit: contain;
        
    }
    #fonts-box{
        align-items: flex-start;
        height: auto;
    }
    #font-icons{
        overflow-x: scroll;
        white-space: nowrap;
    }
}

@media only screen and (min-width: 767px) {
    body,
    html {
        height: 100%;
        margin: 0;
        background: #333333;
    }
    #app {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2vh 0;
        box-sizing: border-box;
    }
    #container {
        margin: auto;
        position: relative;
        background-color: #f0f0f0;
        border: 2px solid #ccc;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
    }
    .image-container {}
    @font-face {
        font-family: 'simhei';
        /* 自定义字体的名称 */
        src: url('https://mall.howvin.com/fonts/simhei.woff') format('truetype');
        /* TTF格式，作为最后的备选 */
        font-weight: normal;
        /* 字体粗细 */
        font-style: normal;
        /* 字体风格，如italic */
    }
    #draggable {
        position: absolute;
        cursor: move;
        border: 1px solid;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-family: 'simhei', Arial, sans-serif;
    }
    #point-draggable {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 10px;
        height: 1px;
        background-image: url('../images/point.png');
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
    /* 扫描线 */
    .scan-line {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background-image: linear-gradient(to right, rgba(255, 0, 0, 0.7) 0%, rgba(255, 0, 0, 0.2) 50%, rgba(255, 0, 0, 0.7) 100%);
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
        animation: scan 1.8s linear infinite;
    }
    /* 动画 */
    @keyframes scan {
        0% {
            top: 0;
        }
        100% {
            top: calc(100% - 2px);
        }
    }
    .el-card {
        height: 100vh;
    }
    /** 选择按钮 **/
    .select-image {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-image: radial-gradient(#ccc 1px, transparent 3px);
        background-size: 30px 30px;
        background-color: #fff;
    }
    .select-image-btn {
        width: 100px;
        height: 50px;
        background: #ff6600;
        color: white;
        font-size: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 25px;
    }
    /** 控制台输入 **/
    .console {
        width: 25vw;
        height: 100%;
        position: fixed;
        z-index: 200;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        right: 0px;
    }
    .console-container {
        height: 96vh;
        /* background: white; */
        position: fixed;
        width: 350px;
        top: 2vh;
        right: 0;
    }
    .console-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* background: white; */
    }
    .console-input {
        width: 100%;
    }
    body,
    html {
        background-image: radial-gradient(#ccc 1px, transparent 3px);
        background-size: 30px 30px;
        background-color: #fff;
        margin: 0;
        padding: 0;
    }
    .input-fontsize {
        width: 100%;
        height: 40px;
        display: flex;
        flex-direction: row;
        align-items: center;
        font-size: 12px;
    }
    .el-card__header {
        text-align: center;
        font-weight: bold;
    }
    .el-color-picker--mini .el-color-picker__trigger {
        width: 36px;
        height: 36px;
    }
    .input-fontsize:nth-child(3) {
        justify-content: space-between;
        padding: 15px 0;
    }
    .font-size-label {
        width: 50px;
        height: 20px;
        text-align: center;
    }
    .font-size-slider {
        width: 90%;
        padding: 0px 5px;
    }
    .color-item {
        width: 80%;
        padding: 0px 5px;
        display: flex;
        flex-direction: row;
    }
    .box-card {
        width: 90%;
    }
    /** 按钮样式 **/
    .btn-container {
        width: 100%;
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 2vw;
    }
    .btn-container .btn-content {
        gap: 16px;
        width: 100%;
    }
    .btn-container .el-button {
        border-radius: 12px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 15px;
    }
    .save-btn,
    .clear-btn {
        flex: 1;
    }
    .save-btn button,
    .clear-btn button {
        width: 100%;
    }
    .el-card__body {
        padding: 20px 10px;
    }
    .el-slider__input {
        overflow: hidden;
        border: 1px solid transparent;
        transition: 300ms;
        border-radius: 12px;
    }
    .el-slider__input:hover {
        border: 1px solid #333;
    }
    .el-slider__input .el-input__inner {
        border: 0!important;
    }
    .el-input__inner {
        background-color: rgb(247, 247, 247);
        border: 1px solid transparent;
        transition: 300ms;
        border-radius: 12px;
        font-size: 16px;
    }
    .el-input__inner:hover {
        border: 1px solid #333333;
    }
    .btn-content {
        width: 40%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
    }
    .save-btn {
        margin: 20px 0px;
    }
    .save-btn:hover button {
        opacity: 0.8;
    }
    .beian {
        width: 100%;
        height: 5vh;
        font-size: 13px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
    }
    .point {
        background: #ff6600;
        color: white;
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 15px;
        height: 36px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        margin-left: 1vw;
    }
    /* 选择需要在悬停时显示手指图标的元素，例如一个a标签或按钮 */
    .point {
        /* 默认状态下的光标样式 */
        cursor: default;
    }
    /* 当鼠标悬停在元素上时，光标变为手指图标 */
    .point {
        cursor: pointer;
        border-radius: 5vw;
    }
    .item-char {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
    }
    .select-item-char {
        border: 1px dashed green;
    }
    .font-icon{
        min-width: 60px;
        height:29px;
        border:1px solid #000;
        
    }
    #fonts-box{
        align-items: flex-start;
        height: auto;
    }
    #font-icons{
        height:30vh;
        overflow-y: scroll;
    }
}

.movable-view {
    width: 80px;
    height: 80px;
    position: absolute;
    background-color: #42b983;
    color: #fff;
    text-align: center;
    line-height: 80px;
    border-radius: 8px;
    user-select: none;
    cursor: move;
}