@charset "utf-8";

:root{
  --notice-primary:#111111;
  --notice-primary-hover:#222222;
  --notice-gray-50:#f9f9f9;
  --notice-gray-100:#f3f4f6;
  --notice-gray-200:#e5e7eb;
  --notice-gray-300:#d1d5db;
  --notice-gray-400:#9ca3af;
  --notice-gray-500:#6b7280;
  --notice-gray-600:#111;
  --notice-gray-700:#374151;
  --notice-gray-800:#1f2937;
  --notice-gray-900:#111827;
  --notice-border:#e7e7e7;
  --notice-radius:18px;
  --notice-shadow:0 10px 30px rgba(0,0,0,.06);
}

*{
  box-sizing:border-box;
}

.notice-view{
  max-width:1280px;
  margin:0 auto;
  padding:0 24px 40px;
  color:var(--notice-gray-800);
  word-break:break-word;
  overflow-wrap:anywhere;
}

.sb-view-icon{
  width:24px;
  height:24px;
  display:block;
}

/* hero */
.notice-hero{
  position:relative;
  overflow:hidden;
  border-radius:32px;
  min-height:320px;
  margin-bottom:18px;
  background-color:#ddd;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
}

.notice-hero.no-bg{
  background:linear-gradient(135deg, #d9d9d9 0%, #bdbdbd 100%);
}

.notice-hero-dim{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.46) 0%, rgba(0,0,0,.18) 38%, rgba(0,0,0,.05) 100%);
}

.notice-hero-inner{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:320px;
  padding:28px 28px 34px;
}

.notice-hero-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

.notice-hero-badge-wrap{
  width:100%;
  display:flex;
  justify-content:flex-start;
  pointer-events:none;
}

.notice-hero-actions{
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.notice-hero-actions a{
  min-width: 52px;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  transition: .2s ease;
}

.notice-hero-actions a:hover{
  transform:translateY(-1px);
  background:#fff;
}

.notice-hero-content{
  justify-items: center;
}

.notice-title{
  margin:0;
  color:#fff;
  font-size:50px;
  line-height:1.18;
  font-weight:600;
  letter-spacing:-0.04em;
  word-break:keep-all;
  text-shadow:0 4px 16px rgba(0,0,0,.16);
}

.notice-hero-content.is-always .notice-title{
  margin-bottom:30px;
}

.notice-period-hero{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:22px;
  color:rgba(255,255,255,.92);
  font-size:18px;
  font-weight:500;
}

.notice-period-hero-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  backdrop-filter:blur(8px);
  font-size:14px;
  font-weight:700;
}

.notice-header{
  margin-bottom:18px;
}

.notice-title{
  margin:0;
  font-size:24px;
  line-height:1.3;
  font-weight:700;
  color:#111;
  letter-spacing:-0.03em;
}

.notice-cate{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  margin-right:10px;
  border-radius:999px;
  background:#f3f4f6;
  color:#111;
  font-size:14px;
  font-weight:700;
  vertical-align:middle;
}


/* badge */
.notice-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 18px;
  border-radius:999px;
  font-size:15px;
  font-weight:700;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  white-space:nowrap;
}

.notice-badge--active{
  background:#111;
  color:#fff;
}

.notice-badge--always{
  background:#1367ff;
  color:#fff;
}

.notice-badge--ended{
  background:#f3f4f6;
  color:#6b7280;
}

.notice-badge--upcoming{
  background:#eff6ff;
  color:#1d4ed8;
}

/* meta */
.notice-meta-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:10px 20px;
  margin-bottom:24px;
  border-radius:22px;
  background:#f3f3f3;
}

.notice-meta-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.notice-author-avatar{
  width:46px;
  height:46px;
  border-radius:50%;
  overflow:hidden;
  flex:0 0 46px;
  background:#d9d9d9;
  display:flex;
  align-items:center;
  justify-content:center;
}

.notice-author-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.notice-author-avatar-fallback{
  font-size:24px;
  line-height:1;
}

.notice-author-name{
  font-size:20px;
  font-weight:600;
  color:#111;
}

.notice-meta-right{
  display:flex;
  align-items:center;
  gap:12px;
  color:#7b7b7b;
  font-size:15px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.notice-meta-item{
  white-space:nowrap;
}

.notice-meta-dot{
  width:4px;
  height:4px;
  border-radius:50%;
  background:#b7b7b7;
}

/* attach */
.notice-attach{
  margin-bottom:24px;
  padding:20px 24px;
  border:1px solid var(--notice-border);
  border-radius:20px;
  background:#fafafa;
}

.notice-attach-title{
  margin-bottom:12px;
  font-size:18px;
  font-weight:600;
  color:#111;
}

.notice-attach-list{
  list-style:none;
  margin:0;
  padding:0;
}

.notice-attach-item + .notice-attach-item{
  margin-top:10px;
}

.notice-attach-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--notice-border);
  text-decoration:none;
  color:#222;
}

.notice-attach-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.notice-attach-meta{
  flex-shrink:0;
  font-size:13px;
  color:#777;
}

/* body */
.notice-body-wrap{
  margin-bottom:24px;
}

.notice-image-list{
  margin-bottom:20px;
  text-align:center;
}

.notice-image-list:after{
  display:block;
  visibility:hidden;
  clear:both;
  content:"";
}

.notice-image-list a.view_image{
  pointer-events:none;
}

.notice-image-list img{
  max-width:50%;
  height:auto;
  border-radius:12px;
  pointer-events:none;
}

.notice-video-wrap{
  margin-bottom:20px;
}

.notice-video-box iframe{
  width:100%;
  height:auto;
  aspect-ratio:16 / 9;
  border:0;
  border-radius:22px;
  display:block;
}

.notice-article{
  font-size:16px;
  background:#fff;
  border:1px solid var(--notice-border);
  border-radius:24px;
  padding:36px;
  box-shadow:var(--notice-shadow);
}

.notice-article h1,
.notice-article h2,
.notice-article h3,
.notice-article h4{
  color:#111;
  line-height:1.35;
}

.notice-article h2{
  margin:28px 0 16px;
  font-size:28px;
  font-weight:600;
}

.notice-article h3{
  margin:24px 0 12px;
  font-size:22px;
  font-weight:600;
}

.notice-article p{
  margin-bottom:18px;
  font-size:17px;
  line-height:1.8;
  color:#333;
}

.notice-article ul,
.notice-article ol{
  margin:18px 0;
  padding-left:24px;
}

.notice-article li{
  margin-bottom:8px;
  line-height:1.75;
}

.notice-article blockquote{
  margin:24px 0;
  padding:16px 18px;
  border-left:4px solid #111;
  background:#f8f8f8;
  color:#555;
}

.notice-article img,
.notice-article iframe,
.notice-article video{
  max-width:100%;
  height:auto;
}

.notice-article a{
  color:#1f4f9b;
  text-decoration:underline;
}

/* recommend */
.notice-recommend{
  position:relative;
  margin-bottom:24px;
}

.notice-recommend-on,
.notice-recommend-off{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.notice-recommend-on span,
.notice-recommend-off span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  font-size:15px;
  border:1px solid var(--notice-border);
  background:#fafafa;
}

.notice-recommend-on a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:#111;
}

.notice-recommend-on i,
.notice-recommend-off i{
  color:#111;
}

.notice-rec-msg{
  position:absolute;
  bottom:-34px;
  right:0;
  background:#111827;
  border-radius:8px;
  display:none;
}

.notice-rec-msg span{
  display:inline-block;
  padding:8px 10px;
  color:#fff;
  font-size:13px;
}

/* sign */
.notice-sign{
  margin-bottom:24px;
}

.notice-sign-box{
  padding:18px 20px;
  border:1px solid var(--notice-border);
  background:#f6f8fa;
  border-radius:16px;
  border-left:4px solid #111;
  font-size:15px;
}

/* post nav */
.notice-postnav{
  margin:24px 0;
  border-top:1px solid #dadada;
}

.notice-postnav ul{
  list-style:none;
  margin:0;
  padding:0;
}

.notice-postnav a{
  font-size:16px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px 0;
  text-decoration:none;
  color:#111;
}

.notice-postnav a:hover{
  background:#fafafa;
}

.notice-postnav-move{
  width:15px;
  flex:0 0 15px;
}

.notice-postnav-title{
  flex:1;
  font-weight:500;
}

.notice-postnav-date{
  font-size:14px;
  color:#667085;
}

/* bottom buttons */
.notice-actions-bottom{
  margin-top:20px;
}

.notice-actions-bottom-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.notice-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 18px;
  border-radius:14px;
  background:#111;
  color:#fff;
  text-decoration:none;
  font-size:15px;
  font-weight:600;
  transition:.2s ease;
}

.notice-btn:hover{
  transform:translateY(-1px);
  background:#111;
  color:#fff;
}

.notice-btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.notice-btn-text{
  display:inline-block;
}

@media (max-width: 768px){
  .notice-view{
    padding:10px;
  }
  .notice-header{
    margin-bottom: 10px;
  }
  .notice-title{
    font-size:20px;
    line-height:1.35;
  }
  .notice-cate{
    display: block;
    width: max-content;
    margin: 0 0 10px;
    align-content: center;
  }
  .notice-hero{
    min-height:360px;
    border-radius:24px;
    margin-bottom:14px;
  }

  .notice-hero-inner{
    min-height:360px;
    padding:18px 18px 22px;
  }

  .notice-hero-top{
    flex-direction:column;
    align-items:stretch;
  }

  .notice-hero-badge-wrap{
    justify-content:center;
  }
  .notice-hero-actions a{
    height: 30px;
    padding: 0 10px;
  }

  .notice-badge{
    min-height:34px;
    padding:0 14px;
    font-size:13px;
  }


  .notice-hero-content.is-always .notice-title{
     margin-bottom:16px;
   }

  .notice-period-hero{
    gap:8px;
    margin-top:16px;
    font-size:14px;
  }

  .notice-period-hero-label{
    min-height:32px;
    padding:0 12px;
    font-size:12px;
  }

  .notice-meta-bar{
    padding: 10px;
    border-radius: 18px;
    margin-bottom: 10px;
    gap: 5px;
    flex-direction: unset;
  }

  .notice-author-avatar{
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 20px;
  }

  .notice-author-name{
    font-size:14px;
  }
  .notice-body-wrap{
    margin-bottom: 10px;
  }
  .notice-meta-right{
    gap:8px;
    font-size:13px;
  }

  .notice-attach{
    padding:16px;
    border-radius:18px;
  }

  .notice-attach-link{
    flex-direction:column;
    align-items:flex-start;
  }

  .notice-image-list img{
    width:100%;
    max-width:100% !important;
    height:auto;
    border-radius:10px;
  }
  .notice-actions-bottom{
    flex-direction: column;
    align-items: stretch;
    margin-top: 0px;
  }
  .notice-article{
    padding:20px 18px;
    border-radius:18px;
  }

  .notice-article h2{
    font-size:22px;
    margin:22px 0 12px;
  }

  .notice-article h3{
    font-size:18px;
    margin:18px 0 10px;
  }

  .notice-article p{
    font-size:15px;
    line-height:1.75;
  }
  .notice-postnav{
    margin: 10px 0;
  }
  .notice-postnav a{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
  }

  .notice-postnav-title{
    font-size:13px;
    line-height:1.45;
  }

  .notice-postnav-date{
    font-size:12px;
  }

  .notice-actions-bottom-inner{
    flex-wrap:wrap;
    justify-content:space-between;
  }

  .notice-btn{
    flex:1 1 calc(50% - 5px);
    padding:0 12px;
    min-height:42px;
    font-size:14px;
    color:#fff!important;
  }

  .sb-view-icon{
    width:22px;
    height:22px;
  }
}
