:root {
    /* Brand colours — never change these */
    --bg-color: #fdfbf7;
    --accent-pink: #ffb7b2;
    --accent-blue: #a8e6cf;
    --accent-yellow: #ffeaa7;
    --accent-purple: #dda0dd;
    --text-main: #4a4a4a;
    --text-light: #888;
    --card-bg: #ffffff;

    /* Semantic surface tokens */
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --border-soft: rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 8px 28px rgba(180, 160, 165, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lift: 0 16px 40px rgba(180, 160, 165, 0.16), 0 6px 14px rgba(0, 0, 0, 0.06);
    --liquid-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.17) 48%, rgba(255, 255, 255, 0.36));
    --liquid-bg-soft: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14));
    --liquid-shadow: 0 8px 22px rgba(78, 66, 62, 0.045), 0 1px 4px rgba(78, 66, 62, 0.025), inset 0 1px 1px rgba(255, 255, 255, 0.76), inset 0 -18px 34px rgba(255, 255, 255, 0.08);
    --liquid-shadow-hover: 0 12px 28px rgba(78, 66, 62, 0.06), 0 2px 6px rgba(78, 66, 62, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.80), inset 0 -18px 34px rgba(255, 255, 255, 0.10);
    --liquid-rim: inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 1px 0 0 rgba(255, 255, 255, 0.34), inset 0 -1px 1px rgba(82, 68, 62, 0.07), inset -1px 0 1px rgba(82, 68, 62, 0.04);
    --liquid-recess: inset 0 1px 1px rgba(255, 255, 255, 0.70), inset 0 -1px 2px rgba(78, 66, 62, 0.07), inset 1px 0 1px rgba(255, 255, 255, 0.24), inset -1px 0 1px rgba(78, 66, 62, 0.035);
    --liquid-filter: blur(24px) saturate(1.32);
    --liquid-filter-soft: blur(18px) saturate(1.22);

    /* Easing curves */
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 183, 178, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(168, 230, 207, 0.10) 0%, transparent 30%),
        radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 20px 20px;
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title .emoji {
    font-size: 1.6rem;
}

.page-header {
    text-align: center;
    padding: 4rem 1rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.loading-dots::after {
    content: ' .';
    animation: dots 1.5s steps(5, end) infinite;
}

.site-toast {
    position: fixed;
    left: 50%;
    bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
    z-index: 12000;
    max-width: min(360px, calc(100vw - 2rem));
    padding: 0.72rem 1.05rem;
    border-radius: 999px;
    background: rgba(74, 74, 74, 0.94);
    color: white;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateX(-50%) translateY(18px);
    transition: opacity 0.22s var(--ease-soft), transform 0.22s var(--ease-soft);
    pointer-events: none;
}

.site-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── 移动端性能：小屏整体降一档 blur（视觉几乎无差，GPU 压力减半）── */
@media (max-width: 600px) {
    :root {
        --liquid-filter: blur(14px) saturate(1.26);
        --liquid-filter-soft: blur(10px) saturate(1.18);
    }
}

/* ── 无障碍/低端机：系统开了「降低透明度」就给近实色表面、关掉玻璃 ── */
@media (prefers-reduced-transparency: reduce) {
    :root {
        --liquid-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.93));
        --liquid-bg-soft: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
        --liquid-filter: none;
        --liquid-filter-soft: none;
    }
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: #333; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 #333, .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 #333, .5em 0 0 #333; }
}
