* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

/* 清新治愈的马卡龙色系，每次加载随机切换 */
:root {
    --bg-color: #f0f9ff;
    --glass-bg: rgba(255,255,255,0.75);
    --primary-color: #60a5fa;
    --text-color: #374151;
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-color);
    transition: background-color 0.5s ease;
}

/* iOS毛玻璃磨砂效果 */
.ios-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* 60帧高帧弹性动画 */
@keyframes iosFadeIn {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes iosFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}
.ios-fade { animation: iosFadeIn 0.4s cubic-bezier(0.22,1,0.36,1); }
.ios-float { animation: iosFloat 3s ease-in-out infinite; }

/* iOS按压微动效果 */
.btn-ios {
    padding: 12px 24px;
    border: none;
    border-radius: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    transition: all 0.2s cubic-bezier(0.2,0,0.2,1);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}
.btn-ios:active {
    transform: scale(0.94);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

/* 悬浮弹窗专用样式 */
.pop-mask {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    display: none;
    z-index: 999;
}
.pop-box {
    width: 80%;
    max-width: 400px;
    padding: 30px;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* 页面导航卡片样式 */
.card-ios {
    margin: 18px auto;
    padding: 35px 20px;
    width: 90%;
    border-radius: 24px;
}

/* 修复画布区域滚动问题 */
.canvas-container {
    touch-action: none;
}
