/* css.css */
body {
    background-color: #f3f4f6; /* 整体背景色偏灰，突出白色卡片 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 走马灯动画关键帧 */
@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 走马灯样式类 */
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 15s linear infinite; /* 15s 滚动一次，可自行调节速度 */
}

/* 隐藏滚动条 (为了后期排版美观) */
::-webkit-scrollbar {
    display: none;
}

/* kaijiang.css */

/* 开奖球基础样式 */
.ball {
    width: 36px;
    height: 36px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

/* 三色球背景 (请确保 img 目录下有这三张 144px 的图) */
.ball-red { background-image: url('../img/hongqiu.png'); }
.ball-blue { background-image: url('../img/lanqiu.png'); }
.ball-green { background-image: url('../img/lvqiu.png'); }
.ball-gray { background-image: url('../img/huiqiu.png'); }




/* 刮刮乐弹窗遮罩与容器 */
.scratch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.scratch-container {
    position: relative;
    width: 280px;
    height: 120px;
    background: #fff;
    /* 模拟你截图中的邮票/锯齿边缘效果，这里用简单圆角代替，你可以换成带锯齿的背景图 */
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Canvas 本身 */
#scratchCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* 刮开后底层显示的内容容器 */
.scratch-underneath {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: #f8f9fa;
}



/* ==========================================
   模块 5: 文本导航网格样式 (Text Links Grid)
   ========================================== */
.text-nav-item {
    background-color: #f8f9fa; /* 极浅的灰白背景，还原截图质感 */
    border: 1px solid #f0f0f0; /* 非常细微的边框 */
    border-radius: 4px;        /* 小圆角 */
    transition: all 0.2s ease; /* 动画过渡 */
}

/* 鼠标悬停时的效果 (电脑端体验) */
.text-nav-item:hover {
    background-color: #f1f3f5;
    color: #1e3a8a;
    border-color: #e5e7eb;
}

/* 手指点击按下的真实触感 */
.text-nav-item:active {
    transform: scale(0.94);
    background-color: #e5e7eb;
}



/* ==========================================
   模块 7: 瀑布流与弹窗样式附加
   ========================================== */

/* 隐藏横向滚动条，但保留滚动功能 */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 弹窗从底部平滑升起动画 */
@keyframes slideUp {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}
.animate-slide-up {
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}



/* 突起按钮本体 (缩小尺寸，减细描边，更精致) */
.tab-special-button {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); 
    border: 3px solid #fff; /* 3px 纯白描边 */
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.3);
}

/* 底部安全区适配 (防全面屏黑条遮挡) */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

/* 悬浮广告条显示/隐藏平滑动画 */
.banner-slide-up {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* 高手之家专属渐变圆角底部 */
.master-header-pill {
    background: linear-gradient(to right, #10b981, #3b82f6);
    border-bottom-left-radius: 20px; /* 弧度改小，适应更紧凑的高度 */
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

/* 图标圆形背景美化 */
.header-btn-circle {
    width: 32px; /* 改为32px，更精致 */
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}
.header-btn-circle:active {
    transform: scale(0.9) rotate(15deg);
    background: rgba(255, 255, 255, 0.3);
}


/* pic.html 必须的基础样式补充 */
[x-cloak] { display: none !important; }
.vote-bar { transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.text-brand-green { color: #10b981; }
.bg-brand-green { background-color: #10b981; }
.vote-bar { transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }