@charset "UTF-8";

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 全局链接颜色，覆盖浏览器默认蓝/紫 */
a, a:visited {
    color: #4f46e5;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.ml1{
    margin-left: 10px;
}
.ml2{
    margin-left: 20px;
}
.mr1{
    margin-right: 10px;
}
.mr2{
    margin-right: 20px;
}
.mt1{
    margin-top: 10px;
}
.mt2{
    margin-top: 20px;
}
.mb1{
    margin-bottom: 10px;
}
.mb2{
    margin-bottom: 20px;
}

.red{color: red}
.green{color: green}
.gray{color: gray}

.w100{width: 100px}
.w200{width: 200px}
.w300{width: 300px}

.el-table{width: 100%;}
.mr-2{margin-right: 2rem;}
.mr-1{margin-right: 1rem;}
.w-100{width: 100% !important;}
/* 会翻转的金币图标（导航余额用）：关键帧必须放全局样式表，
   因为模板引擎会把组件里多个 style 块当一个处理，scoped 时连 @keyframes 都会被拼上属性限定 */
.coin { position: relative; width: 15px; height: 15px; display: inline-block; transform-style: preserve-3d; animation: coin-flip 3.2s cubic-bezier(.42,.02,.58,1) infinite; }
.coin .face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(146,64,14,.5), 0 1px 1.5px rgba(15,23,42,.22); }
.coin .face::after { content: ''; position: absolute; inset: 3.5px; border-radius: 50%; border: 1px solid rgba(146,64,14,.3); }
.coin .front { transform: rotateY(0deg); background: radial-gradient(circle at 32% 26%, #fef3c7 0 16%, #fcd34d 44%, #d97706 100%); }
.coin .front::before { content: ''; position: absolute; left: 2.5px; top: 1.5px; width: 5px; height: 2.5px; border-radius: 50%; background: rgba(255,255,255,.8); transform: rotate(-28deg); }
.coin .back { transform: rotateY(180deg); background: radial-gradient(circle at 68% 74%, #fef3c7 0 14%, #f59e0b 46%, #b45309 100%); }
.coin .back::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: rgba(146,64,14,.3); }
@keyframes coin-flip { 0%, 10% { transform: rotateY(0deg); } 55%, 65% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* 通用加载中圆环 */
.spin-ring { width: 18px; height: 18px; border: 2px solid #c7d2fe; border-top-color: #4f46e5; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .coin, .spin-ring { animation: none; }
}
