/* 公告条样式 */
.notice-wrapper {
  padding-top: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  width: 70%;
  max-width: 960px;
}

.notice-container {
  margin: 0 auto;
  position: relative;
  width: 100%;
  height: 40px;
  overflow: hidden;
  display: flex;
  background-color: #fff4dc;
  border-radius: 2px;
}

/* 左侧标题部分 */
.notice-title {
  flex: 0 0 auto;
  width: auto;
  height: 40px;
  background-color: #fff4dc;
  font-size: 14px;
  line-height: 40px;
  color: #595757;
  padding: 0 15px;
  box-sizing: border-box;
  white-space: nowrap;
}

.notice-sound-icon {
  display: inline-block;
  background: url('../../web-assets/notice-sound.png') no-repeat center center;
  background-size: contain;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: middle;
  margin-top: -2px;
}

.notice-title span {
  font-weight: 500;
}

/* 中间内容部分 */
.notice-content {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 40px;
  font-size: 14px;
  line-height: 40px;
  padding-right: 40px;
  background-color: #fff4dc;
  color: #595757;
  box-sizing: border-box;
  position: relative;
}

.notice-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 40px;
  overflow: hidden;
  color: #595757;
  text-decoration: none;
  cursor: default;
}

.notice-inner a {
  cursor: pointer;
}

.notice-slide {
  white-space: nowrap;
  font-size: 14px;
  line-height: 40px;
  padding: 0 20px;
  box-sizing: border-box;
  display: inline-block;
  transition: margin-left 0.05s linear;
}

.notice-text {
  padding-right: 120px;
  display: inline-block;
}

/* 关闭按钮 */
.notice-close-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('../../web-assets/notice-close.png') no-repeat center center;
  background-size: contain;
  cursor: pointer;
  z-index: 10;
}

.notice-close-btn:hover {
  opacity: 0.7;
}

/* 移动端适配 */
@media screen and (max-width: 1249px) {
  .notice-wrapper {
    width: 100%;
    max-width: 960px;
    box-sizing: border-box;
  }
  
  .notice-container {
    border-radius: 0;
  }
  
  .notice-title {
    padding: 0 10px;
    font-size: 13px;
  }
  
  .notice-sound-icon {
    width: 12px;
    height: 12px;
  }
  
  .notice-content {
    font-size: 13px;
    padding-right: 35px;
  }
  
  .notice-slide {
    padding: 0 20px;
  }
  
  .notice-text {
    padding-right: 120px;
  }
  
  .notice-close-btn {
    right: 10px;
    top: 12px;
    width: 14px;
    height: 14px;
  }
}

/* 链接状态 */
a.notice-inner {
  cursor: pointer;
}

a.notice-inner:hover {
  opacity: 0.95;
}

/* 无缝滚动效果 */
.notice-slide {
  will-change: margin-left;
}

