/* 基础与布局 */
body {
    background: radial-gradient(circle at top left, #1a1025, #0f111a 50%, #0d1a26);
    padding-bottom: 80px; 
}
.container { max-width: 800px; margin: 0 auto; padding: 20px; }
.hero-banner { text-align: center; padding: 20px; margin-bottom: 24px; }
.hero-banner h1 { margin: 0; font-size: 22px; background: linear-gradient(90deg, #f1f2f6, #a4b0be); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-banner p { color: #a4b0be; font-size: 14px; margin-top: 8px; }

/* 网格与卡片 */
.grid-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.brand-item { padding: 20px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.brand-item:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.brand-name { font-size: 18px; margin: 0 0 16px 0; }
.action-group { display: flex; flex-direction: column; gap: 10px; }

/* 按钮通用 */
a, button { text-decoration: none; border: none; outline: none; cursor: pointer; border-radius: 8px; font-weight: bold; transition: all 0.2s; }
.btn-main { padding: 12px; color: #fff; background: rgba(255,255,255,0.1); }
.btn-sub { padding: 8px; font-size: 12px; color: #a4b0be; background: transparent; border: 1px solid rgba(255,255,255,0.1); }

/* 置顶大卡专属 (金光流转) */
.brand-item--top-pick { grid-column: 1 / -1; margin-bottom: 24px; position: relative; overflow: hidden; border-color: rgba(255,215,0,0.3); }
.brand-item--top-pick::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(255, 215, 0, 0.2), transparent 30%);
    animation: rotate-glow 4s linear infinite; z-index: -1;
}
@keyframes rotate-glow { 100% { transform: rotate(360deg); } }
.top-badge { display: inline-block; background: linear-gradient(135deg, #ffd32a, #ffa801); color: #000; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; margin-bottom: 12px; }

/* 品牌色应用 */
[data-brand="lewan"] .btn-main { background: var(--brand-lewan); }
[data-brand="touhao"] .btn-main { background: var(--brand-touhao); }
[data-brand="ued"] .btn-main { background: var(--brand-ued); }
[data-brand="jxf"] .btn-main { background: var(--brand-jxf); }
[data-brand="rb88"] .btn-main { background: var(--brand-rb88); }

/* 工具与底部 */
.tools-section { padding: 20px; text-align: center; margin-bottom: 24px; }
.tool-btn, .cs-btn { display: block; width: 100%; padding: 14px; margin-bottom: 12px; background: rgba(255,255,255,0.08); color: #fff; }
.cs-group { display: flex; gap: 12px; }
.cs-group .cs-btn { margin-bottom: 0; }

#mobile-recommend-bar { position: fixed; bottom: 0; left: 0; right: 0; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; z-index: 100; border-radius: 20px 20px 0 0; border-bottom: none; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#mobile-recommend-bar.visible { transform: translateY(0); }
.btn-small { padding: 8px 16px; background: var(--brand-lewan); color: #fff; font-size: 14px; }
.site-footer { text-align: center; font-size: 12px; color: #747d8c; line-height: 1.6; }

/* 吐司提示 */
.toast-msg { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); color: #fff; padding: 10px 20px; border-radius: 8px; z-index: 10000; }

/* ================= 营销增强视觉 ================= */

/* 1. 按钮呼吸脉冲效果 */
.pulse {
    animation: pulse-animation 2s infinite;
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
}
@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); box-shadow: 0 0 20px 5px rgba(255, 71, 87, 0.4); }
    100% { transform: scale(1); }
}

/* 2. 实时中奖快讯样式 */
.winner-ticker {
    display: flex;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid #ffd32a;
    overflow: hidden;
}
.ticker-label { color: #ffd32a; font-weight: bold; margin-right: 10px; flex-shrink: 0; }
.ticker-text { color: #f1f2f6; white-space: nowrap; animation: slide-up 3s infinite; }
@keyframes slide-up {
    0% { transform: translateY(100%); opacity: 0; }
    10% { transform: translateY(0); opacity: 1; }
    90% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

/* 3. 文案高亮 */
.highlight { color: #ffd32a; font-weight: bold; }

/* 4. 实时在线状态 */
.live-status {
    font-size: 12px;
    color: #2ed573;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.dot { width: 8px; height: 8px; background: #2ed573; border-radius: 50%; display: inline-block; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }