/* 节日营销(holidayMarketing)公告栏皮肤。
   直接照抄老主题 sail004.comm.min.css 里 10 个节日 class 的配色/图标/动画公式，
   只是把选择器从老主题的 `.head-notice.<holiday>` 换成 `body.holiday-note-<holiday> announcement-bar`
   ——Ella 的公告栏没有老主题那个包一切的 <a> 标签，图标改成直接挂在 announcement-bar 本身的
   ::before/::after 伪元素上，颜色改成用 color 让文字/链接继承，背景/圆角保留 !important
   （老主题也是 !important，要压过 announcement-bar 自己的 color-scheme 背景）。
   sail004 里 newYear 用到的 `animation: sky` keyframe 全站 CSS 都搜不到，大概本来就没真正
   上线过，这里不编一个假的，newYear 只保留背景+图标，不加动画。 */

@keyframes holiday-note-snow {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 200px 200px, 200px 200px; }
}
@keyframes holiday-note-bag {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 430px 430px, 4300px 430px; }
}

body.holiday-note-halloween announcement-bar {
  background: #331204 url(festival_bg_1.png) no-repeat !important;
  color: #ff7c0a !important;
}
body.holiday-note-halloween announcement-bar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: url(festival_icon_13.png) no-repeat;
  background-size: 20px;
  transform: scaleX(-1);
}

body.holiday-note-thanksgiving announcement-bar {
  background: #efcd9a url(festival_bg_2.png) no-repeat !important;
  color: #6c3719 !important;
}
body.holiday-note-thanksgiving announcement-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 22px;
  background: url(festival_icon_8.png) no-repeat;
  background-size: 24px;
  transform: scaleX(-1);
}

body.holiday-note-blackFriday announcement-bar {
  background: #131418 url(festival_bg_3.png) no-repeat !important;
  color: #ff2ef5 !important;
}
body.holiday-note-blackFriday announcement-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url(festival_icon_10.png);
  animation: 20s holiday-note-bag linear infinite;
  pointer-events: none;
}

body.holiday-note-cyberMonday announcement-bar {
  background: #191c2d url(festival_bg_4.png) no-repeat !important;
  color: #00afc8 !important;
}

body.holiday-note-christmas announcement-bar {
  background: #244b59 url(festival_bg_5.png) no-repeat !important;
  color: #e42f2d !important;
}
body.holiday-note-christmas announcement-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(festival_icon_1.png), url(festival_icon_2.png);
  animation: 15s holiday-note-snow linear infinite;
  pointer-events: none;
}
body.holiday-note-christmas announcement-bar::after {
  content: '';
  position: absolute;
  top: -14px;
  right: 10px;
  width: 40px;
  height: 25px;
  background: url(festival_icon_3.png);
  transform: scaleX(-1);
}

body.holiday-note-newYear announcement-bar {
  background: #291f31 url(festival_bg_6.png) no-repeat !important;
  color: #2c2036 !important;
}

body.holiday-note-valentinesDay announcement-bar {
  background: #fad7da url(festival_bg_7.png) no-repeat !important;
  color: #e80b2b !important;
}
body.holiday-note-valentinesDay announcement-bar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 15px;
  width: 13px;
  height: 13px;
  background: url(festival_icon_14.png);
}

body.holiday-note-summerBeach announcement-bar {
  background: #4cc2d8 url(summer_beach_flipclock.png) no-repeat !important;
  color: #033038 !important;
}
body.holiday-note-summerBeach announcement-bar::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 10px;
  width: 16px;
  height: 17px;
  background: url(summer_beach_icon.png);
}

body.holiday-note-summerParty announcement-bar {
  background: #f08f59 url(summer_party_flipclock.png) no-repeat !important;
  color: #fff !important;
}
body.holiday-note-summerParty announcement-bar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 6px;
  width: 30px;
  height: 29px;
  background: url(summer_party_icon.png);
}

body.holiday-note-hotSales announcement-bar {
  background: #c00102 url(hot_sales_bg.png) no-repeat 20% 0 !important;
  color: #fff !important;
}

body[class*="holiday-note-"] announcement-bar {
  position: relative;
}
