/* =============================================
   站点图标 - 内联 SVG(mask 方案)
   原 iconfont.ttf 只覆盖约 10 个私有区码点, 模板里 18 个码点缺字形,
   会渲染成空方块; 这里改用 SVG mask, 不依赖字体文件,
   并用 background-color: currentColor 继承文字颜色, 通过 font-size 控制大小。
   用法: <span class="ali-font" data-icon="download"></span>
   ============================================= */
.ali-font[data-icon] {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    flex-shrink: 0;
    background-color: currentColor;
    font-family: inherit;
    font-style: normal;
    line-height: 1;
    -webkit-mask-image: var(--icon);
    mask-image: var(--icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* 纯图标重复按钮里的裸码点(如工具页撤销/重做), 直接给 class 即可 */
.ali-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask-image: var(--icon);
    mask-image: var(--icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.ali-font[data-icon="monitor"],
.ali-icon[data-icon="monitor"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4' width='19' height='13' rx='2'/%3E%3Cpath d='M8.5 21h7M12 17v4'/%3E%3C/svg%3E");
}
.ali-font[data-icon="phone"],
.ali-icon[data-icon="phone"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2'/%3E%3Cpath d='M10.8 18.6h2.4'/%3E%3C/svg%3E");
}
.ali-font[data-icon="avatar"],
.ali-icon[data-icon="avatar"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='9.6' r='2.9'/%3E%3Cpath d='M6.4 18.4c.9-2.3 3-3.7 5.6-3.7s4.7 1.4 5.6 3.7'/%3E%3C/svg%3E");
}
.ali-font[data-icon="search"],
.ali-icon[data-icon="search"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.6' cy='10.6' r='6.4'/%3E%3Cpath d='M15.4 15.4 20.5 20.5'/%3E%3C/svg%3E");
}
.ali-font[data-icon="user"],
.ali-icon[data-icon="user"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.7 20.4c0-3.8 3.3-6.2 7.3-6.2s7.3 2.4 7.3 6.2'/%3E%3C/svg%3E");
}
.ali-font[data-icon="download"],
.ali-icon[data-icon="download"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v11M7.6 10.2 12 14.6l4.4-4.4M4.5 17.5v3h15v-3'/%3E%3C/svg%3E");
}
.ali-font[data-icon="qrcode"],
.ali-icon[data-icon="qrcode"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='6' height='6' rx='1'/%3E%3Crect x='14.5' y='3.5' width='6' height='6' rx='1'/%3E%3Crect x='3.5' y='14.5' width='6' height='6' rx='1'/%3E%3Cpath d='M14.5 14.5h3v3M20.5 20.5h-3v-3'/%3E%3C/svg%3E");
}
.ali-font[data-icon="star"],
.ali-icon[data-icon="star"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.6l2.6 5.3 5.9.9-4.3 4.1 1 5.9L12 17l-5.2 2.8 1-5.9-4.3-4.1 5.9-.9z'/%3E%3C/svg%3E");
}
.ali-font[data-icon="logout"],
.ali-icon[data-icon="logout"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.8 4.5H6.6a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8.2'/%3E%3Cpath d='M13.2 12h8M18 8.4 21.6 12 18 15.6'/%3E%3C/svg%3E");
}
.ali-font[data-icon="arrow-left"],
.ali-icon[data-icon="arrow-left"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.6 5.4 8 12l6.6 6.6'/%3E%3C/svg%3E");
}
.ali-font[data-icon="arrow-right"],
.ali-icon[data-icon="arrow-right"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.4 5.4 16 12l-6.6 6.6'/%3E%3C/svg%3E");
}
.ali-font[data-icon="info"],
.ali-icon[data-icon="info"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11.2v5.6M12 7.7v.1'/%3E%3C/svg%3E");
}
.ali-font[data-icon="qq"],
.ali-icon[data-icon="qq"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.6c-4.4 0-7.4 3-7.4 6.9 0 2.1.8 3.9 2.1 5.2-.3 1-.7 1.9-1.3 2.6 1.4.2 2.6-.2 3.5-.8 1 .3 2 .5 3.1.5s2.1-.2 3.1-.5c.9.6 2.1 1 3.5.8-.6-.7-1-1.6-1.3-2.6 1.3-1.3 2.1-3.1 2.1-5.2 0-3.9-3-6.9-7.4-6.9z'/%3E%3Cpath d='M9.6 10.6v.1M14.4 10.6v.1'/%3E%3C/svg%3E");
}
.ali-font[data-icon="image"],
.ali-icon[data-icon="image"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2'/%3E%3Ccircle cx='8.8' cy='9.8' r='1.7'/%3E%3Cpath d='M4.6 17.6 9.9 12.9l3.2 2.9 2.6-2.4 4 3.8'/%3E%3C/svg%3E");
}
.ali-font[data-icon="undo"],
.ali-icon[data-icon="undo"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6 9.4h9.2a5.6 5.6 0 0 1 0 11.2H8.6'/%3E%3Cpath d='M8.2 5.4 4.2 9.4l4 4'/%3E%3C/svg%3E");
}
.ali-font[data-icon="redo"],
.ali-icon[data-icon="redo"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.4 9.4H10.2a5.6 5.6 0 1 0 0 11.2h5.2'/%3E%3Cpath d='M15.8 5.4l4 4-4 4'/%3E%3C/svg%3E");
}
.ali-font[data-icon="compare"],
.ali-icon[data-icon="compare"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2'/%3E%3Cpath d='M12 4.5v15M7.4 12h1.6M15 12h1.6'/%3E%3C/svg%3E");
}
.ali-font[data-icon="check"],
.ali-icon[data-icon="check"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.8 12.6 9.6 17.4 19.2 6.9'/%3E%3C/svg%3E");
}
.ali-font[data-icon="play"],
.ali-icon[data-icon="play"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.8 5.8 18.4 12 8.8 18.2z'/%3E%3C/svg%3E");
}
.ali-font[data-icon="sparkle"],
.ali-icon[data-icon="sparkle"] {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3.4l1.85 4.75L17.6 10l-4.75 1.85L11 16.6 9.15 11.85 4.4 10l4.75-1.85z'/%3E%3Cpath d='M18.2 15.2l.75 1.9 1.9.75-1.9.75-.75 1.9-.75-1.9L15.55 18l1.9-.75z'/%3E%3C/svg%3E");
}
