/* ========== 全局基础样式 ========== */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #F5F7FA;
    color: #333;
    line-height: 1.5;
}

/* 全局过渡效果 */
a, button, .btn, input, select, textarea,
.cashtabBar-item, .new-web-block, .type-item,
.bottom-message, .navitem li, .mui-control-item {
    transition: all 0.25s ease;
}

/* 全局点击反馈 */
a:active, button:active, .btn:active,
.new-web-block:active, .type-item:active,
.bottom-message:active, .navitem li:active {
    transform: scale(0.97);
    opacity: 0.85;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 隐藏/显示过渡 */
.mui-hidden {
    display: none !important;
}

.mui-block {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 列表项交错入场动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用卡片阴影 */
.card-shadow {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* 加载中遮罩优化 */
#loading-mask {
    transition: opacity 0.3s ease;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(89, 204, 195, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* 通用渐变按钮 */
.gradient-btn {
    background: linear-gradient(135deg, #8CE9B1, #59ccc3);
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(89, 204, 195, 0.3);
}

.gradient-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(89, 204, 195, 0.2);
}
