/* --- 1. 顶部通告栏样式 --- */
.top-notice-bar {
    background: linear-gradient(90deg, #ff9a44, #fc6076); /* 橙红渐变，活力感 */
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 2000; /* 确保在最上层 */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(255, 100, 100, 0.2);
}

.notice-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    cursor: pointer; /* 整个区域可点击 */
}

.notice-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 2px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.notice-btn:hover {
    background-color: #fff;
    color: #ff6a00;
}

.close-notice {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.8;
    font-size: 18px;
    padding: 5px;
    line-height: 1; /* 防止高度撑开 */
}

.close-notice:hover {
    opacity: 1;
}

/* --- 2. Hero 区域福利标签样式 --- */
.welfare-tag-container {
    text-align: center;
    margin-bottom: 20px;
    /* 适配移动端居中 */
    display: flex;
    justify-content: center;
    width: 100%;
}

.welfare-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 245, 230, 0.95); /* 浅橙色背景，稍微增加不透明度 */
    border: 1px solid #ffcc80;
    color: #d35400;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* 浮动动画 */
    animation: floatTag 3s ease-in-out infinite;
}

.welfare-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 165, 0, 0.25);
    animation-play-state: paused; /* 鼠标悬停时暂停动画，方便点击 */
}

.welfare-tag .emoji {
    margin-right: 6px;
    font-size: 18px;
    line-height: 1;
}

.welfare-tag .highlight {
    color: #ff4500;
    font-weight: 800;
    margin: 0 3px;
    font-size: 16px;
}

/* 定义浮动动画 */
@keyframes floatTag {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* --- 3. 移动端适配 (Media Queries) --- */
@media screen and (max-width: 768px) {
    .top-notice-bar {
        font-size: 12px;
        padding: 8px 10px;
        flex-direction: row; /* 保持横向，或者 column 如果内容太长 */
    }

    .notice-content {
        gap: 5px;
    }

    .welfare-tag {
        font-size: 12px;
        padding: 4px 12px;
    }

    .welfare-tag .emoji {
        font-size: 16px;
    }

    .welfare-tag .highlight {
        font-size: 14px;
    }
}