/* 公告页内容区样式 —— 只作用于注入的 .ovn 容器，不影响 App 其它部分 */

/* 命中公告路由时隐藏 App 原本渲染的那一屏（顶栏与底栏都在 .qs-main 之外，不受影响） */
html[data-ov-notice] .qs-main > div:not(.ovn){ display:none !important }

.ovn{
  padding: 8px 20px 28px;
  max-width: 760px;
  margin: 0 auto;
  color: #2B2C31;
  font-family: inherit;
}
.ovn *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}

/* ---------- 列表：标题区 ---------- */
.ovn-hero{margin-top:8px}
.ovn-hero h2{
  margin:0;font-size:28px;line-height:1.3;font-weight:800;letter-spacing:-.5px;color:#101114;
}
.ovn-hero p{margin:10px 0 0;font-size:14.5px;line-height:21.5px;color:#6E7076}

/* 置顶卡 */
.ovn-feature{
  display:block;margin-top:22px;background:#FAFAFB;border-radius:20px;padding:18px 20px 16px;
  text-decoration:none;color:inherit;transition:transform .14s ease,opacity .14s ease;
}
.ovn-feature:active{transform:scale(.994);opacity:.92}
.ovn-row{display:flex;align-items:center;gap:8px}
.ovn-badge-new{
  height:24px;padding:0 9px;border-radius:8px;background:#5754EA;color:#fff;
  font-size:11.5px;font-weight:600;letter-spacing:.3px;display:inline-flex;align-items:center;
}
.ovn-date{font-size:12px;color:#8A8B90;font-variant-numeric:tabular-nums}
.ovn-feature h3{
  margin:12px 0 0;font-size:18px;line-height:1.42;font-weight:700;letter-spacing:-.3px;color:#101114;
}
.ovn-feature p{
  margin:8px 0 0;font-size:12.5px;line-height:19px;color:#6E7076;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.ovn-more{
  margin-top:14px;padding-top:13px;border-top:1px solid #F4F5F7;
  display:flex;align-items:center;justify-content:space-between;
}
.ovn-more span{font-size:12.5px;font-weight:600;color:#5754EA}
.ovn-more svg{color:#5754EA}

/* 列表 */
.ovn-list{margin-top:12px;background:#fff;border:1px solid #EDEEF3;border-radius:20px;overflow:hidden}
.ovn-item{
  display:flex;align-items:center;gap:14px;padding:16px 18px;
  text-decoration:none;color:inherit;transition:background-color .14s ease;
}
.ovn-item + .ovn-item{border-top:1px solid #F4F5F7}
.ovn-item:active{background:#FAFAFB}
.ovn-item .ovn-txt{flex:1;min-width:0}
.ovn-item .ovn-meta{display:flex;align-items:center;gap:8px}
.ovn-badge{
  height:24px;padding:0 8px;border-radius:8px;background:#EDECFD;color:#5754EA;
  font-size:11.5px;font-weight:600;letter-spacing:.3px;display:inline-flex;align-items:center;
}
.ovn-item h3{
  margin:8px 0 0;font-size:15.5px;line-height:1.4;font-weight:600;color:#101114;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ovn-item p{
  margin:4px 0 0;font-size:12.5px;line-height:18px;color:#6E7076;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ovn-chev{flex:0 0 auto;color:#B4B6BD}

/* ---------- 详情 ---------- */
.ovn-meta{display:flex;align-items:center;gap:10px;margin-top:8px}
.ovn-detail-title{
  margin:14px 0 0;font-size:24px;line-height:1.38;font-weight:800;letter-spacing:-.4px;color:#101114;
}
.ovn-lead{margin:12px 0 0;font-size:14.5px;line-height:22px;color:#6E7076}
.ovn-rule{height:1px;background:#F4F5F7;margin:20px 0 0}

.ovn-body{margin-top:4px;font-size:15px;line-height:26px;color:#2B2C31;word-break:break-word}
.ovn-body p{margin:18px 0 0}
.ovn-body img{max-width:100%;height:auto;border-radius:16px;margin:16px 0 0;display:block}
.ovn-body ul,.ovn-body ol{margin:16px 0 0;padding-left:22px}
.ovn-body li{margin:6px 0}
.ovn-body strong{font-weight:600;color:#101114}
.ovn-body a{color:#5754EA;text-decoration:none}
.ovn-body blockquote{
  margin:18px 0 0;padding:12px 16px;background:#FAFAFB;border-radius:16px;
  color:#6E7076;border-left:5px solid #5754EA;
}
.ovn-body blockquote p{margin:0}
.ovn-body h3,.ovn-body h4{margin:22px 0 0;font-size:16px;font-weight:700;color:#101114}
.ovn-body pre{
  margin:16px 0 0;padding:14px;background:#F5F6F8;border-radius:14px;overflow:auto;
  font-size:13px;line-height:22px;
}
.ovn-body code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13.5px;
  background:#F5F6F8;padding:2px 6px;border-radius:6px;
}
.ovn-body pre code{background:none;padding:0}
.ovn-body table{width:100%;border-collapse:collapse;margin:16px 0 0;font-size:13.5px}
.ovn-body th,.ovn-body td{border:1px solid #EDEEF3;padding:8px 10px;text-align:left}

.ovn-pub{
  margin-top:24px;padding-top:16px;border-top:1px solid #F4F5F7;
  display:flex;align-items:center;justify-content:space-between;
}
.ovn-pub span{font-size:12px;color:#B4B6BD}
.ovn-pub b{font-weight:500;color:#8A8B90}

.ovn-back{
  margin-top:14px;width:100%;height:46px;border-radius:999px;border:0;
  background:#F5F6F8;color:#5A5C63;font-family:inherit;font-size:14px;font-weight:600;
  display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;
  text-decoration:none;transition:background-color .14s ease,transform .14s ease;
}
.ovn-back:active{background:#ECEDF1;transform:scale(.99)}

/* 占位与空态 */
.ovn-sk{background:#F1F2F5;border-radius:8px;animation:ovnSk 1.2s ease-in-out infinite}
@keyframes ovnSk{0%,100%{opacity:1}50%{opacity:.55}}
.ovn-empty{margin:70px 0 0;text-align:center;color:#B4B6BD}
.ovn-empty p{margin:14px 0 0;font-size:13px}

/* 手机上减弱阴影/圆角冲突，宽屏收窄 */
@media (min-width: 768px){
  .ovn{padding-top:16px}
  .ovn-hero h2{font-size:32px}
}
