:root {
    --glass-bg-opacity: 0.1;
    --blur-strength: 25px;
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    
    /* 按钮主题色 */
    --color-meh: #00d2ff;   /* 亮蓝 */
    --color-nice: #bd34fe;  /* 亮紫 */
    --color-omg: #ff0055;   /* 亮红 */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'PingFang SC', sans-serif;
    background-color: #050510; /* 深底色 */
    height: 100vh;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    cursor: default;
}

/* =========================================
   1. 背景还原：鲜艳流体光球 (Vibrant Flow)
   ========================================= */
.ambient-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* 强模糊 */
    opacity: 0.7;       /* 提高亮度 */
    z-index: 0;
    mix-blend-mode: screen; /* 关键：让颜色叠加变亮，产生通透感 */
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

/* 经典的红蓝紫配色 */
.orb-1 {
    width: 80vw; height: 80vw;
    background: #7000ff; /* 亮紫 */
    top: -10%; left: -10%;
    animation: float1 12s infinite;
}
.orb-2 {
    width: 60vw; height: 60vw;
    background: #ff0055; /* 亮红 */
    bottom: -10%; right: -10%;
    animation: float2 15s infinite;
}
.orb-3 {
    width: 50vw; height: 50vw;
    background: #00d4ff; /* 青蓝 */
    top: 40%; left: 40%;
    opacity: 0.4;
    animation: float3 18s infinite;
}

/* 浮动动画 */
@keyframes float1 {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(20vw, 10vh) rotate(45deg) scale(1.2); }
    100% { transform: translate(-10vw, 20vh) rotate(-20deg) scale(0.9); }
}
@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20vw, -15vh) scale(1.3); }
    100% { transform: translate(10vw, -10vh) scale(0.8); }
}
@keyframes float3 {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-30%, -60%) scale(1.4); }
    100% { transform: translate(-70%, -40%) scale(0.9); }
}

/* =========================================
   主容器
   ========================================= */
.app-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 420px;
    height: 85vh;
    background: rgba(255, 255, 255, 0.05); /* 提高一点透明度，让背景透出来 */
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.brand {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

/* 右侧双标签布局 */
.stats-row {
    display: flex;
    gap: 8px;
}
.visitor-pill {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
}
.pill-hot { color: #ff9900; border-color: rgba(255, 153, 0, 0.3); }
.pill-stock { color: #00d2ff; border-color: rgba(0, 210, 255, 0.3); }

/* 进度条 */
.limit-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}
.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 10px;
    transition: width 0.4s ease, background-color 0.6s ease;
}
.shake-warning { animation: shake 0.7s ease-in-out infinite; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-2px)} 75%{transform:translateX(2px)} }

/* 图片区域 */
.meme-frame {
    flex-grow: 1;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
}
.meme-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.meme-img:hover { transform: scale(1.02); }

/* 引导语 (保留你喜欢的大字体金色效果) */
.guide-text {
    text-align: center;
    font-size: 1.0rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff 20%, #ffd700 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    animation: pulse-guide 2s infinite ease-in-out;
}
@keyframes pulse-guide {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; text-shadow: 0 0 30px rgba(255, 215, 0, 0.7); }
}

/* 按钮 */
.controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    height: 70px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.btn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.3);
}
.btn:active { transform: scale(0.95); }

/* 按钮颜色恢复稍微亮一点，配合鲜艳背景 */
.btn[value="0"]:hover { box-shadow: 0 0 20px var(--color-meh); border-color: var(--color-meh); }
.btn[value="15"]:hover { box-shadow: 0 0 20px var(--color-nice); border-color: var(--color-nice); }
.btn[value="50"]:hover { box-shadow: 0 0 20px var(--color-omg); border-color: var(--color-omg); }

.emoji-icon { font-size: 1.8rem; margin-bottom: 4px; }
.btn-label { font-size: 0.85rem; opacity: 0.8; }
/* --- 2026-01-05 移动端UI修复补丁 --- */
@media (max-width: 480px) {
    /* 1. 头部改为垂直排列，避免重叠 */
    .header {
        flex-direction: column;
        align-items: flex-start; /* 左对齐 */
        gap: 8px; /* 上下间距 */
        margin-bottom: 20px;
    }
    
    /* 2. 让统计胶囊栏占满一行，且左右分布 */
    .stats-row {
        width: 100%;
        justify-content: space-between;
    }
    
    /* 3. 稍微调小 Logo 字号 */
    .brand {
        font-size: 1.4rem;
    }
}

/* --- 2026-01-05 全局布局强制修复 (PC/手机通用) --- */
/* 因为卡片宽度固定，所以无论屏幕多大，都强制垂直排列头部 */
.header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 25px !important;
}

/* 强制统计栏占满一行，两端对齐 */
.stats-row {
    width: 100% !important;
    justify-content: space-between !important;
}
