
/* ============================================================
   右栏 PC 版：detail.php?pane=1 时套上 .pane-pc
   目标：把「空白太多」治掉 —— 内容列加宽、同类项目两列、底部收个尾
   ============================================================ */
body.pane-pc { background: #fff; }

body.pane-pc .dt-bar { display: none; }

/* 内容列：跟着栏宽走，别死守 820 */
body.pane-pc .dt-wrap {
  max-width: 800px;
  width: 100%;
  padding: 24px clamp(24px, 3vw, 48px) 56px;
  margin: 0 auto;
}

body.pane-pc .dt-card {
  background: #fff; border-radius: 0; padding: 26px 0 8px;
  box-shadow: none;
}

body.pane-pc .dt-title {
  font-size: 26px; line-height: 1.4; font-weight: 700; letter-spacing: -.4px;
  margin-bottom: 14px; max-width: 30em;
}
body.pane-pc .dt-meta { margin-bottom: 16px; gap: 8px; }
body.pane-pc .tag-cat, body.pane-pc .tag-kw { font-size: 12px; padding: 3px 9px; }

body.pane-pc .dt-author { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
body.pane-pc .dt-nick { font-size: 14.5px; }

/* 图片：缩略图三列、矮一点，点开才看大图 */
body.pane-pc .dt-sec-h {
  font-size: 14px; font-weight: 700; color: #5A5F66;
  margin: 22px 0 10px; padding-left: 4px;
}
body.pane-pc .dt-imgs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px;
}
body.pane-pc .dt-img {
  display: block; border-radius: 10px; overflow: hidden; background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(17,24,39,.04);
}
body.pane-pc .dt-imgs img {
  width: 100%; height: 120px; object-fit: cover; display: block;
  transition: transform .2s;
}
body.pane-pc .dt-img:hover img { transform: scale(1.04); }

/* 正文：一行别太长，但用两栏以外的办法控制——限宽交给 dt-card 的 padding */
body.pane-pc .dt-body { font-size: 15.5px; line-height: 1.9; color: #33373D; }
body.pane-pc .dt-body p { margin: 0 0 14px; }

/* 联系方式 */
body.pane-pc .dt-contact {
  background: #fff; border-radius: 16px; margin: 0 0 12px !important; padding: 16px;
  border: 1px solid #EDEFF2; box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 6px 18px rgba(17,24,39,.05);
}
body.pane-pc .dt-c-h { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

/* 同类项目：两列，把下面的空白填起来 */
body.pane-pc .dt-more { margin-top: 22px; }
body.pane-pc .dt-more .dt-m-h {
  font-size: 14px; font-weight: 700; color: #5A5F66; margin: 0 0 12px 4px;
}
body.pane-pc .dt-more {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
body.pane-pc .dt-more .dt-m-h { grid-column: 1 / -1; }

/* 底部收尾：给页面一个结束感，不然滚到底一片空 */
body.pane-pc .dt-end {
  margin-top: 26px; padding: 18px 0 4px; text-align: center;
  font-size: 12px; color: #A8ADB5; letter-spacing: .3px;
}
body.pane-pc .dt-end::before {
  content: ''; display: block; width: 40px; height: 3px; border-radius: 2px;
  background: #E2E0E2; margin: 0 auto 12px;
}

body.pane-pc .tabbar { display: none !important; }
body.pane-pc .dt-bottom, body.pane-pc .dt-cta { position: static; margin-top: 18px; }

/* 白底上，同类项目卡片用细边框区分 */
body.pane-pc .dt-more a.card{ box-shadow:none; border:1px solid #EDEEF1; }
body.pane-pc .dt-more a.card:hover{ border-color:#DADCE0; }

/* ????????hover ????????????????? */
body.pane-pc .dt-author,
body.pg-detail .dt-author {
  text-decoration: none; color: inherit;
  border-radius: 10px; margin: 0; padding: 0;
  transition: background .15s;
}
body.pane-pc .dt-author:hover,
body.pg-detail .dt-author:hover { background: #FFFFFF; }
body.pane-pc .dt-author .dt-expose,
body.pg-detail .dt-author .dt-expose { margin-left: auto; }
.dt-author-arr {
  font-size: 18px; color: #C9C4C6; margin-left: 8px; line-height: 1;
  transition: transform .15s, color .15s;
}
body.pane-pc .dt-author:hover .dt-author-arr,
body.pg-detail .dt-author:hover .dt-author-arr { color: #C41E3A; transform: translateX(2px); }


/* 详情页「免卡」小标签 */
.dt-free { display:inline-block; font-style:normal; font-size:11px; font-weight:700;
           color:#C41E3A; background:#FFF0F3; border-radius:5px; padding:2px 7px;
           margin-right:5px; }


/* ============================================================
   详情页排版对齐 App（detail_page.dart）
   · 顶栏 50 · 返回按钮 32 圆形浅底
   · 置顶提示条：粉底 + 红字 + 右侧胶囊按钮
   · 卡片 radius 16 + 1px 描边 + 轻阴影，卡片间距 12
   · 安全提示：淡黄底卡
   ============================================================ */
.dt-bar {
  height: 50px !important;
  background: #fff !important;
  border-bottom: 1px solid #F1F2F4 !important;
}
.dt-back {
  width: 32px !important; height: 32px !important;
  display: flex !important; align-items: center; justify-content: center;
  border-radius: 50% !important; background: #F3F4F6 !important;
  color: #16181B !important; text-decoration: none;
}
.dt-back:hover { background: #EAECEF !important; }
.dt-bar-t { font-size: 16px !important; font-weight: 700 !important; }

/* 置顶提示条 */
.dt-topbar {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 14px 0; padding: 10px 12px;
  background: #FFF4F6; border: 1px solid #FBE0E6; border-radius: 12px;
}
.dt-topbar-ic {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  background: #C41E3A; color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.dt-topbar-tx { flex: 1; font-size: 12.5px; color: #8A5B66; }
.dt-topbar-btn {
  flex: none; padding: 6px 14px; border-radius: 16px;
  background: #C41E3A; color: #fff; font-size: 12px; font-weight: 700;
  text-decoration: none;
}

/* 卡片统一 */
.dt-card {
  background: #fff !important;
  border: 1px solid #EFF0F3 !important;
  border-radius: 16px !important;
  padding: 18px !important;
  box-shadow: 0 1px 3px rgba(17,24,39,.05) !important;
}
.dt-wrap { padding: 12px 14px 110px !important; }
.dt-wrap > * + * { margin-top: 12px; }

/* 标题与标签 */
.dt-title { font-size: 21px !important; font-weight: 800 !important; line-height: 1.45 !important;
            letter-spacing: -.4px !important; }
.dt-meta { margin-top: 12px !important; display: flex; flex-wrap: wrap; gap: 7px; }

/* 作者行：详情页里作者已经是独立卡片，不要再往里画线/加内边距 */
.dt-author { margin-top: 0 !important; padding-top: 0 !important;
             border-top: 0 !important; }
.dt-av { width: 34px !important; height: 34px !important; }
.dt-nick { font-size: 14.5px !important; font-weight: 700 !important; }
.dt-expose { font-size: 12px !important; color: #9AA0AA !important; }

/* 正文 */
.dt-body { margin-top: 16px !important; }
.dt-body p { font-size: 15px !important; line-height: 1.9 !important; color: #22262C !important; }

/* 安全提示（淡黄底，跟 App 一致） */
.dt-safety {
  margin: 16px 0 0 !important; padding: 14px 16px !important;
  background: #FFFBEF !important; border: 1px solid #F6E9C8 !important;
  border-radius: 14px !important;
}
.dt-safety-h { font-size: 13px !important; font-weight: 700 !important; color: #8A6100 !important;
               margin-bottom: 6px !important; }
.dt-safety p { font-size: 12px !important; line-height: 1.85 !important; color: #8A7A56 !important; }

/* 对接卡 */
.dt-contact { margin-top: 12px !important; }
.dt-c-card {
  background: transparent !important; border: 0 !important;
  border-radius: 0 !important; padding: 0 !important;
  box-shadow: none !important;
}
.dt-c-btn { border-radius: 12px !important; height: 44px !important; font-weight: 700 !important; }

/* 最近查看 */
.dt-acts { background: #fff !important; border: 1px solid #EDEFF2 !important;
           border-radius: 16px !important; padding: 16px !important; margin: 0 0 12px !important;
           box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 6px 18px rgba(17,24,39,.05) !important; }
.dt-sec-h { font-size: 15px !important; font-weight: 800 !important; }

/* 卡片间距统一：只认 12px，别再和外层 margin 叠加 */
body.pg-detail .dt-wrap > *, body.pane-pc .dt-wrap > *{ margin-top:0 !important }
body.pg-detail .dt-wrap > * + *, body.pane-pc .dt-wrap > * + *{ margin-top:0 !important }
