/* ==========================================================
   O鲸鲸 官网 · news.css
   新闻页专有：列表卡片扩展 / 正文 / 打分 / 评论
   公共部分（页头 / 视图切换 / 骨架屏 / 工具条）见 page.css
   ========================================================== */

/* ==========================================================
   列表卡片扩展
   ========================================================== */
.news-card { align-items: flex-start; }
.news-card .news-thumb { width: 104px; height: 72px; }
.news-excerpt {
  margin-top: 4px; font-size: 12.5px; color: var(--c-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-foot {
  margin-top: 7px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 11.5px; color: var(--c-dim-2);
}
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 8px; border-radius: 999px;
  background: rgba(74, 144, 226, .16);
  border: 1px solid rgba(110, 170, 255, .26);
  color: #9cc6ff; font-size: 11px;
}
/* 评分徽标：注意不要用 .star，那是打分组件的大星星 */
.badge.score {
  background: rgba(255, 196, 84, .13);
  border-color: rgba(255, 196, 84, .3);
  color: #ffcf7a;
}
.news-item-new .badge.new {
  background: rgba(255, 96, 120, .16);
  border-color: rgba(255, 96, 120, .34);
  color: #ff9db0;
}

/* ==========================================================
   详情：正文
   ========================================================== */
.article { max-width: 760px; margin: 0 auto; padding: 24px 18px 0; }

.art-title {
  font-size: 22px; font-weight: 700; line-height: 1.45; letter-spacing: .3px;
}
.art-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 12px; padding-bottom: 16px;
  font-size: 12px; color: var(--c-dim-2);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.art-meta .dot { opacity: .5; }

.art-cover {
  width: 100%; margin-top: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--c-card-line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}

.art-body { margin-top: 20px; }
.art-body p {
  margin-bottom: 15px;
  font-size: 15px; line-height: 1.95;
  color: rgba(255, 255, 255, .88);
  word-break: break-word;
}
.art-body p:last-child { margin-bottom: 0; }

/* 正文插图：加载完成后淡入，避免图片出现时页面跳动 */
.art-figure { margin: 20px 0; }
.art-figure img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--c-card-line);
  animation: figIn .45s ease-out;
}
@keyframes figIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.art-figure figcaption {
  margin-top: 8px; text-align: center;
  font-size: 12px; color: var(--c-dim-2);
}

/* 正文末尾行动区 */
.art-actions {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex; flex-wrap: wrap; gap: 10px;
}
.btn-ghost {
  padding: 9px 20px; font-size: 13.5px; color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  transition: .2s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-ghost.btn-accent {
  background: linear-gradient(135deg, rgba(90, 157, 245, .92), rgba(70, 125, 220, .92));
  border-color: rgba(255, 255, 255, .22);
}

/* ==========================================================
   打分
   ========================================================== */
.rate-box {
  margin-top: 26px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--c-card);
  border: 1px solid var(--c-card-line);
  text-align: center;
}
.rate-head {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap;
}
.rate-label { font-size: 13.5px; color: var(--c-dim); }
.rate-score { font-size: 13px; color: #ffcf7a; font-weight: 600; }

.rate-stars { margin-top: 12px; display: flex; justify-content: center; gap: 6px; }
.star {
  background: none; border: 0; padding: 2px 4px;
  font-size: 30px; line-height: 1;
  color: rgba(255, 255, 255, .18);
  transition: transform .15s, color .15s;
}
.star:hover { transform: scale(1.14); }
.star.on { color: #ffc454; text-shadow: 0 0 14px rgba(255, 196, 84, .55); }
.star.pop { animation: starPop .32s ease-out; }
@keyframes starPop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

.rate-hint { margin-top: 10px; font-size: 12px; color: var(--c-dim-2); }

/* ==========================================================
   评论
   ========================================================== */
.cm-count { font-style: normal; font-size: 12.5px; color: var(--c-dim-2); margin-left: 6px; font-weight: 400; }

.cm-form {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--c-card);
  border: 1px solid var(--c-card-line);
}
.cm-nick { margin-bottom: 8px; }

/* 评论身份提示：未登录时提示，登录后显示当前账号 */
.cm-who {
  margin-bottom: 9px;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 12.5px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  color: var(--c-dim-2);
}
.cm-who.on {
  background: rgba(74, 144, 226, .14);
  border-color: rgba(110, 170, 255, .3);
  color: #9cc6ff;
}
.cm-text {
  width: 100%; resize: vertical; min-height: 76px;
  line-height: 1.7; font-family: inherit;
}
.cm-form-foot {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cm-words { font-size: 12px; color: var(--c-dim-2); }
.cm-submit { width: auto; margin: 0; padding: 9px 26px; font-size: 14px; letter-spacing: 1px; }
.cm-submit[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.cm-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

.cm-item {
  padding: 12px 14px;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  animation: cmIn .3s ease-out;
}
@keyframes cmIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cm-top {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 6px;
}
.cm-avatar {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #5a9df5, #7a5cf0);
}
.cm-name { font-size: 13px; font-weight: 500; }
.cm-time { margin-left: auto; font-size: 11.5px; color: var(--c-dim-2); }
.cm-body { font-size: 13.5px; line-height: 1.75; color: rgba(255, 255, 255, .84); word-break: break-word; white-space: pre-wrap; }

@media (min-width: 720px) {
  .art-title { font-size: 25px; }
}
