/* base.css — 设计变量、重置、背景 */
:root {
    --ink: #3a2a30;
    --ink-soft: #7d6a72;
    --pink: #ff8c9a;
    --pink-deep: #e85d75;
    --butter: #f6c865;
    --peach: #ff9f7a;
    --lavender: #a99bfa;

    --radius-l: 30px;
    --radius-m: 24px;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "PingFang SC",
            "Hiragino Sans", "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;

    --safe-t: env(safe-area-inset-top, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font);
    color: var(--ink);
    background: #fff1ea;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; -webkit-appearance: none; appearance: none; }
a { color: var(--pink-deep); text-decoration: none; font-weight: 600; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; display: block; flex-shrink: 0; }

/* 背景：几团渐变光斑缓慢漂移，给玻璃提供折射内容 */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(160deg, #fff4e8 0%, #ffe7ee 55%, #efe9ff 100%);
}
.bg i {
    position: absolute;
    width: 78vmax;
    height: 78vmax;
    border-radius: 50%;
    animation: drift 26s ease-in-out infinite alternate;
}
.bg i:nth-child(1) { top: -30vmax; left: -26vmax; background: radial-gradient(circle, rgba(255, 140, 154, .55), transparent 68%); }
.bg i:nth-child(2) { top: 18vmax;  right: -34vmax; background: radial-gradient(circle, rgba(246, 200, 101, .5), transparent 68%); animation-duration: 31s; }
.bg i:nth-child(3) { bottom: -34vmax; left: -20vmax; background: radial-gradient(circle, rgba(169, 155, 250, .5), transparent 68%); animation-duration: 29s; }
.bg i:nth-child(4) { bottom: -20vmax; right: -30vmax; background: radial-gradient(circle, rgba(255, 159, 122, .42), transparent 68%); animation-duration: 35s; }

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(6vmax, -5vmax, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
