/* v1.0.39 polished news card layout */
.news-page .news-section-card{
  width:var(--rinchan-frame-width, calc(100% - 40px))!important;
  max-width:390px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding:26px 20px!important;
  border-radius:34px!important;
  box-sizing:border-box!important;
}

.news-page .section-head-row{
  margin-bottom:18px!important;
}

.news-page .section-head-row .label{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  font-size:18px!important;
  line-height:1.35!important;
  color:#4f665e!important;
  font-weight:900!important;
  letter-spacing:0!important;
}

.news-page .section-head-row h2{
  margin:8px 0 0!important;
  font-size:25px!important;
  line-height:1.28!important;
  letter-spacing:.01em!important;
  color:#173f36!important;
}

.news-page .notice-list,
.news-page .group-news-list,
.news-page .thanks-story-list{
  gap:14px!important;
}

.news-page .notice-item{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr)!important;
  column-gap:14px!important;
  align-items:start!important;
  padding:16px!important;
  border-radius:24px!important;
  background:#fff!important;
  border:1px solid rgba(67,104,92,.12)!important;
  box-shadow:0 10px 22px rgba(38,83,70,.045)!important;
}

.news-page .notice-dot{
  width:54px!important;
  height:54px!important;
  border-radius:18px!important;
  font-size:26px!important;
  background:#f7edf3!important;
  flex:none!important;
}

.news-page .notice-title{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
}

.news-page .notice-meta-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto auto!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  margin:0!important;
}

.news-page .news-source-pill{
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:28px!important;
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#173f36!important;
  font-size:16px!important;
  line-height:1.25!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

.news-page .notice-meta-row time,
.news-page .group-news-meta time{
  margin:0!important;
  color:#70867d!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
}

.news-page .notice-state{
  min-height:32px!important;
  padding:0 13px!important;
  font-size:13px!important;
  line-height:1!important;
}

.news-page .notice-confirm{
  min-width:58px!important;
  min-height:38px!important;
  padding:0 14px!important;
  font-size:13px!important;
  line-height:1!important;
  box-shadow:0 8px 14px rgba(40,184,210,.18)!important;
}

.news-page .notice-title strong{
  margin:2px 0 0!important;
  font-size:18px!important;
  line-height:1.38!important;
  color:#173f36!important;
  font-weight:900!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}

.news-page .notice-title p{
  margin:0!important;
  font-size:15px!important;
  line-height:1.65!important;
  color:#5f746d!important;
  font-weight:650!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}

.news-page .group-news-item{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr)!important;
  column-gap:14px!important;
  padding:16px!important;
  border-radius:24px!important;
  background:#fff!important;
  border:1px solid rgba(67,104,92,.12)!important;
  box-shadow:0 10px 22px rgba(38,83,70,.045)!important;
}

.news-page .group-news-icon{
  width:54px!important;
  height:54px!important;
  border-radius:18px!important;
  font-size:27px!important;
  background:#eef9fb!important;
}

.news-page .group-news-body{
  min-width:0!important;
}

.news-page .group-news-meta{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:8px!important;
  margin:0 0 8px!important;
}

.news-page .group-news-meta .news-source-pill{
  font-size:15px!important;
  color:#173f36!important;
}

.news-page .group-news-tag{
  min-height:28px!important;
  padding:0 12px!important;
  background:#f1f5f1!important;
  color:#607569!important;
  font-size:13px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

.news-page .group-news-item h3{
  margin:0 0 8px!important;
  color:#173f36!important;
  font-size:19px!important;
  line-height:1.36!important;
  font-weight:900!important;
  word-break:normal!important;
}

.news-page .group-news-item p{
  margin:0!important;
  color:#5f746d!important;
  font-size:15px!important;
  line-height:1.65!important;
  font-weight:650!important;
  word-break:normal!important;
}

.news-page .thanks-flow-empty{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  grid-template-areas:"icon title" "icon body"!important;
  gap:8px 18px!important;
  align-items:center!important;
  padding:24px 22px!important;
  min-height:150px!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,#fffafb,#fff)!important;
  border:1px solid rgba(226,129,153,.26)!important;
}

.news-page .thanks-flow-empty span{
  grid-area:icon!important;
  width:62px!important;
  height:62px!important;
  border-radius:20px!important;
  font-size:34px!important;
  background:#fff1f4!important;
}

.news-page .thanks-flow-empty p{
  grid-area:title!important;
  margin:0!important;
  font-size:20px!important;
  line-height:1.38!important;
  color:#173f36!important;
  font-weight:900!important;
  word-break:normal!important;
}

.news-page .thanks-flow-empty small{
  grid-area:body!important;
  display:block!important;
  margin:0!important;
  color:#5f746d!important;
  font-size:15px!important;
  line-height:1.75!important;
  font-weight:650!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  writing-mode:horizontal-tb!important;
}

.news-page .sync-status,
.news-page .last-sync,
.news-page [id*="sync"],
.news-page [class*="sync"]{
  word-break:normal!important;
}

@media(max-width:430px){
  .news-page .news-section-card{
    padding:24px 18px!important;
  }
  .news-page .notice-item,
  .news-page .group-news-item{
    grid-template-columns:48px minmax(0,1fr)!important;
    gap:12px!important;
    padding:14px!important;
  }
  .news-page .notice-dot,
  .news-page .group-news-icon{
    width:48px!important;
    height:48px!important;
    border-radius:16px!important;
    font-size:23px!important;
  }
  .news-page .notice-meta-row{
    grid-template-columns:minmax(0,1fr) auto auto!important;
    row-gap:8px!important;
  }
  .news-page .notice-confirm{
    grid-column:3!important;
    grid-row:2!important;
    justify-self:end!important;
    min-width:64px!important;
  }
  .news-page .notice-state{
    grid-column:2!important;
    grid-row:2!important;
  }
  .news-page .notice-meta-row time{
    grid-column:2 / 4!important;
    grid-row:1!important;
    justify-self:end!important;
  }
  .news-page .notice-meta-row .news-source-pill{
    grid-column:1!important;
    grid-row:1 / 3!important;
    align-self:start!important;
    font-size:16px!important;
  }
  .news-page .notice-title strong{
    font-size:17px!important;
  }
  .news-page .notice-title p,
  .news-page .group-news-item p{
    font-size:14px!important;
    line-height:1.65!important;
  }
  .news-page .group-news-meta{
    grid-template-columns:minmax(0,1fr) auto!important;
    row-gap:6px!important;
  }
  .news-page .group-news-meta .news-source-pill{
    grid-column:1!important;
    grid-row:1!important;
    font-size:14px!important;
  }
  .news-page .group-news-tag{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:end!important;
  }
  .news-page .group-news-meta time{
    grid-column:2!important;
    grid-row:2!important;
    justify-self:end!important;
  }
  .news-page .group-news-item h3{
    font-size:18px!important;
  }
  .news-page .thanks-flow-empty{
    grid-template-columns:52px minmax(0,1fr)!important;
    gap:8px 14px!important;
    padding:22px 18px!important;
  }
  .news-page .thanks-flow-empty span{
    width:52px!important;
    height:52px!important;
    font-size:28px!important;
  }
  .news-page .thanks-flow-empty p{
    font-size:18px!important;
  }
}
