
/* ============================================================
   观察 · 文章详情（article.php）
   手机版和 PC 右栏共用，右栏用 body.pane-art 覆盖
   ============================================================ */

body.pg-article { background: #fff; }

/* 手机版顶部返回栏 */
.at-bar {
  position: sticky; top: 0; z-index: 30; height: 48px;
  display: flex; align-items: center; padding: 0 6px;
  background: #fff; border-bottom: 1px solid #F2F3F5;
}
.at-back {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: #1A1A1E; font-size: 22px; text-decoration: none;
}
.at-bar-t { flex: 1; text-align: center; font-size: 15px; font-weight: 700; color: #0B0C0E; }
.at-bar-r { width: 40px; }

/* 内容容器 */
.at-wrap { max-width: 760px; margin: 0 auto; padding: 16px 16px 90px; }

/* 类型标 */
.at-kind {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .3px;
}

/* 标题 */
.at-title {
  margin: 12px 0 0; font-size: 24px; line-height: 1.42;
  font-weight: 800; letter-spacing: -.5px; color: #0B0C0E;
}

/* 作者 */
.at-author {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 0;
  padding: 12px 0; border-top: 1px solid #F2F3F5; border-bottom: 1px solid #F2F3F5;
  text-decoration: none; color: inherit;
}
.at-av {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none;
  background: #FDECEF; display: flex; align-items: center; justify-content: center;
}
.at-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-av i { font-style: normal; font-size: 14px; font-weight: 700; color: #C41E3A; }
.at-au-tx { min-width: 0; }
.at-au-tx b { display: block; font-size: 14px; font-weight: 700; color: #16181B; }
.at-au-tags { display: flex; gap: 6px; margin-top: 4px; }
.at-job, .at-ok {
  font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 4px;
}
.at-job { background: #F5F6F8; color: #6B7078; }
.at-ok { background: #F0F8F3; color: #2F7D52; }
.at-time { margin-left: auto; font-size: 11.5px; color: #A8ADB5; flex: none; }

/* 正文 */
.at-body { padding-top: 18px; }
.at-body p {
  font-size: 16.5px; line-height: 1.9; color: #22262C;
  margin: 0 0 15px; letter-spacing: .2px;
}
.at-body p:first-child { font-size: 17.5px; font-weight: 500; color: #0B0C0E; }

/* 配图 */
.at-imgs { display: grid; gap: 6px; margin: 16px 0 4px; }
.at-imgs.ih-1 { grid-template-columns: 1fr; }
.at-imgs.ih-2 { grid-template-columns: 1fr 1fr; }
.at-imgs.ih-3 { grid-template-columns: repeat(3, 1fr); }
.at-imgs img {
  width: 100%; display: block; border-radius: 10px; background: #F2F3F5;
  aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in;
}
.at-imgs.ih-1 img { aspect-ratio: 16 / 9; }

/* 关联项目 */
.at-rel {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 0;
  padding: 12px 14px; border-radius: 12px; background: #F7F8FA;
  text-decoration: none; color: inherit; transition: background .15s;
}
.at-rel:hover { background: #F1F2F5; }
.at-rel-v {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: #FFE9EE; color: #C41E3A; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.at-rel-tx { min-width: 0; flex: 1; }
.at-rel-tx b { display: block; font-size: 13.5px; font-weight: 600; color: #16181B;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-rel-tx span { display: block; margin-top: 3px; font-size: 11px; color: #9AA0A6; }
.at-rel-go { flex: none; font-size: 11.5px; color: #C41E3A; font-weight: 600; }

/* 投票条 */
.at-votes {
  display: flex; gap: 10px; margin: 20px 0 4px;
  padding: 12px 0; border-top: 1px solid #F2F3F5;
}
.at-vb {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 20px; border: 1px solid #EDEEF1;
  background: #fff; color: #5A5F66; font-size: 13px; font-family: inherit;
  cursor: pointer; text-decoration: none;
}
.at-vb b { font-weight: 600; }
.at-vb.on { border-color: #F3D6DD; background: #FFF5F7; color: #C41E3A; }
.at-vb .mi { font-size: 15px; }

/* 区块标题 */
.at-sec-h {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: #16181B; margin: 24px 0 12px;
}
.at-sec-h span {
  font-size: 10.5px; font-weight: 600; color: #C41E3A;
  background: #FFF0F3; padding: 1px 6px; border-radius: 4px;
}

/* 推荐位 */
.at-rec-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.at-rc {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid #EDEEF1; border-radius: 12px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.at-rc:hover { border-color: #E0E2E6; box-shadow: 0 6px 18px rgba(17,24,39,.06); }
.at-rc-img {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; background: #F5F6F7; overflow: hidden;
}
.at-rc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-rc-img i { font-style: normal; font-size: 15px; font-weight: 700; color: rgba(196,30,58,.55); }
.at-rc-t {
  padding: 8px 9px 0; font-size: 12.5px; line-height: 1.45; font-weight: 600; color: #16181B;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.at-rc-m { padding: 4px 9px 0; font-size: 10.5px; color: #A8ADB5; }
.at-rc-go {
  margin: 8px 9px 9px; text-align: center; font-size: 11.5px; font-weight: 600;
  color: #C41E3A; background: #FFF5F7; border-radius: 7px; padding: 5px 0;
}

/* 评论 */
.at-cm-form { margin-bottom: 16px; }
.at-cm-form textarea {
  width: 100%; box-sizing: border-box; padding: 11px 13px; resize: vertical;
  border: 1px solid #EAECEF; border-radius: 10px; background: #F7F8FA;
  font-size: 14px; line-height: 1.7; font-family: inherit; color: #16181B; outline: none;
}
.at-cm-form textarea:focus { border-color: #C41E3A; background: #fff; }
.at-cm-form button {
  margin-top: 8px; height: 38px; padding: 0 20px; border: 0; border-radius: 9px;
  background: #C41E3A; color: #fff; font-size: 13.5px; font-weight: 600; font-family: inherit;
  cursor: pointer;
}
.at-cm-form button:disabled { background: #E4E2E4; cursor: default; }

.at-cm { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid #F5F6F8; }
.at-cm-av {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none;
  background: #F1F2F4; display: flex; align-items: center; justify-content: center;
}
.at-cm-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-cm-av i { font-style: normal; font-size: 12px; color: #8E8E93; }
.at-cm-b { min-width: 0; flex: 1; }
.at-cm-h { display: flex; align-items: center; gap: 7px; }
.at-cm-h b { font-size: 12.5px; font-weight: 600; color: #16181B; }
.at-cm-h em {
  font-style: normal; font-size: 10px; color: #6B7078; background: #F5F6F8;
  padding: 1px 5px; border-radius: 4px;
}
.at-cm-h span { margin-left: auto; font-size: 11px; color: #B0B4BA; }
.at-cm-b p { margin: 6px 0 0; font-size: 14px; line-height: 1.7; color: #2B2F36; }
.at-cm-like {
  margin-top: 8px; border: 0; background: transparent; padding: 0;
  font-size: 11.5px; color: #A8ADB5; font-family: inherit; cursor: pointer;
}
.at-cm-like.on { color: #C41E3A; }
.at-cm-like b { font-weight: 600; }

.at-empty { padding: 26px 0; text-align: center; font-size: 13px; color: #B0B4BA; }
.at-end { margin-top: 26px; text-align: center; font-size: 11.5px; color: #C0C4CA; }

/* ============================================================
   PC 右栏
   ============================================================ */
body.pane-art { background: #fff; padding: 0; }
body.pane-art .at-wrap {
  max-width: 800px; margin: 0 auto;
  padding: 30px clamp(24px, 3vw, 44px) 56px;
}
body.pane-art .at-title { font-size: 28px; line-height: 1.38; letter-spacing: -.7px; }
body.pane-art .at-body p { font-size: 15.5px; line-height: 1.95; }
body.pane-art .at-body p:first-child { font-size: 16.5px; }
body.pane-art .at-imgs { grid-template-columns: repeat(3, 1fr); }
body.pane-art .at-imgs img { aspect-ratio: 1 / 1; max-height: 200px; }
body.pane-art .at-imgs.ih-1 { grid-template-columns: 1fr; }
body.pane-art .at-imgs.ih-1 img { aspect-ratio: 16 / 9; max-height: 300px; }
body.pane-art .at-rec-g { gap: 10px; }
body.pane-art .at-rc-img { aspect-ratio: 16 / 10; }
body.pane-art .at-author:hover { background: #FAFAFB; }
body.pane-art .at-author { border-radius: 10px; padding: 12px 10px; margin-left: -10px; margin-right: -10px; }
body.pane-art .tabbar { display: none !important; }

@media (max-width: 760px) {
  body.pane-art .at-imgs { grid-template-columns: 1fr 1fr; }
  body.pane-art .at-rec-g { grid-template-columns: 1fr 1fr; }
}

/* 推荐位 · 三行列表（缩略图 + 标题 + 查看） */
.at-rec-l { display: flex; flex-direction: column; gap: 8px; }
.at-rl {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px; border: 1px solid #EDEEF1;
  background: #fff; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.at-rl:hover { border-color: #E0E2E6; box-shadow: 0 6px 18px rgba(17,24,39,.06); }
.at-rl-img {
  width: 52px; height: 52px; flex: none; border-radius: 9px; overflow: hidden;
  background: linear-gradient(135deg,#FFF0F3,#FDF2F6);
  display: flex; align-items: center; justify-content: center;
}
.at-rl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-rl-img i { font-style: normal; font-size: 15px; font-weight: 800; color: rgba(196,30,58,.6); }
.at-rl-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.at-rl-t {
  font-size: 13.5px; font-weight: 600; line-height: 1.45; color: #16181B;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.at-rl-m { font-size: 11px; color: #9AA0A6; }
.at-rl-go {
  flex: none; padding: 5px 13px; border-radius: 15px;
  border: 1px solid #F3D6DD; background: #FFF8F9; color: #C41E3A;
  font-size: 12px; font-weight: 600;
}
.at-rl:hover .at-rl-go { background: #FFF0F3; }


/* 底部悬浮评论条（跟 App 一致：胶囊输入 + 发送） */
.at-cbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #ECEDEF;
  box-shadow: 0 -6px 20px rgba(17,24,39,.05);
}
.at-cbar input {
  flex: 1; min-width: 0; height: 40px; padding: 0 16px;
  border: 1px solid #EFF0F3; border-radius: 20px; background: #F7F8FA;
  font-size: 14px; font-family: inherit; color: #16181B; outline: none;
}
.at-cbar input:focus { background: #fff; border-color: #E4E6EA; }
.at-cbar button {
  flex: none; height: 40px; padding: 0 20px; border: none; border-radius: 20px;
  background: #C41E3A; color: #fff; font-size: 14px; font-weight: 700;
  font-family: inherit; cursor: pointer;
}
.at-cbar button:disabled { opacity: .6; }

/* 正文底部留出悬浮条的空间 */
.pg-article { padding-bottom: 84px !important; }
