@charset "utf-8";
/* PG26 Mobile Thread Detail Styles — aligned with pinggu-mobile-detail/index.html */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body.pg26-detail-page {
  margin: 0;
  background: #f4f5f6 !important;
  color: #2d3035;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --u: clamp(1px, .266667vw, 2px);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-primary, #f36b21); outline-offset: 4px; }
[hidden] { display: none !important; }
:where(.pg26-m-page) svg,
.bottom-bar svg,
.back-top svg,
dialog svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

body.pg26-detail-page .page {
  max-width: 750px;
  margin: auto;
  background: #fff;
  min-height: 100vh;
  padding-bottom: calc(88 * var(--u) + env(safe-area-inset-bottom));
}

/* Shared 20*u horizontal margins matching design */
body.pg26-detail-page .context,
body.pg26-detail-page .intro,
body.pg26-detail-page .post-content,
body.pg26-detail-page .comments,
body.pg26-detail-page .related-section,
body.pg26-detail-page .recommendations {
  margin-left: max(calc(20 * var(--u)), env(safe-area-inset-left));
  margin-right: max(calc(20 * var(--u)), env(safe-area-inset-right));
}

/* Compact breadcrumb + WeChat group inline */
body.pg26-detail-page .context {
  position: relative;
  display: block;
  padding-top: calc(10 * var(--u));
}
body.pg26-detail-page .breadcrumb-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(10 * var(--u));
}
body.pg26-detail-page .compact-crumbs {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--u));
  min-width: 0;
  width: 100%;
  font-size: calc(11 * var(--u));
  color: #848c96;
  line-height: 1.6;
}
body.pg26-detail-page .compact-crumbs > span {
  color: #c4c8cf;
  flex: none;
}
body.pg26-detail-page #crumb-toggle {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #7e8894;
  font-size: calc(16 * var(--u));
  padding: 0;
  text-align: left;
  display: inline-flex;
  align-items: center;
}
body.pg26-detail-page .parent-crumb {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 28%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.pg26-detail-page .current-crumb {
  flex: 1 1 auto;
  min-width: 0;
  color: #606b77;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.pg26-detail-page .wechat-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: calc(4 * var(--u));
  margin: 0;
  padding: calc(6 * var(--u)) 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  min-height: 44px;
  font-size: calc(11 * var(--u));
  line-height: 1.65;
  white-space: nowrap;
  color: #668473;
}
body.pg26-detail-page .wechat-button svg {
  width: calc(14 * var(--u));
  height: calc(14 * var(--u));
  min-width: 18px;
  min-height: 18px;
  color: #53916a;
}
body.pg26-detail-page .full-path {
  position: absolute;
  z-index: 15;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #e8ebee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px #25304410;
  padding: 8px 16px;
}
body.pg26-detail-page .full-path em {
  display: none;
}
body.pg26-detail-page .full-path a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: calc(12 * var(--u));
  line-height: 1.6;
  padding: 6px 0;
  color: #64707e;
  overflow-wrap: anywhere;
  border-bottom: 1px solid #f4f5f7;
}
body.pg26-detail-page .full-path a:last-child {
  border-bottom: 0;
  color: #2d3035;
  font-weight: 500;
}

/* Title, author byline & engagement stats */
body.pg26-detail-page .intro {
  padding: calc(16 * var(--u)) 0 calc(18 * var(--u));
  border-bottom: 1px solid #edf0f2;
}
body.pg26-detail-page .intro h1 {
  font-size: calc(22 * var(--u));
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.45;
  margin: 0 0 calc(18 * var(--u));
  color: #22262d;
  overflow-wrap: anywhere;
}
body.pg26-detail-page .intro .digest {
  display: inline-block;
  vertical-align: calc(4 * var(--u));
  font-size: calc(11 * var(--u));
  font-weight: 500;
  line-height: 1.6;
  background: var(--brand-primary-soft, #fff5ed);
  color: var(--brand-primary, #f36b21);
  border: 1px solid var(--brand-primary-border, #f3a779);
  border-radius: calc(3 * var(--u));
  padding: 0 calc(4 * var(--u));
  margin-right: calc(7 * var(--u));
  letter-spacing: 0;
}
body.pg26-detail-page .intro .xg1 {
  font-size: calc(13 * var(--u));
  font-weight: 400;
  color: #989da5;
}
body.pg26-detail-page .byline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: calc(12 * var(--u));
  color: #6f7680;
}
body.pg26-detail-page .byline .author {
  display: flex;
  align-items: center;
  gap: calc(7 * var(--u));
  color: #535c66;
  min-width: 0;
  overflow-wrap: anywhere;
}
body.pg26-detail-page .byline .author img {
  width: calc(23 * var(--u));
  height: calc(23 * var(--u));
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  display: block;
}
body.pg26-detail-page .byline time {
  font-size: calc(11 * var(--u));
  color: #989da5;
  white-space: nowrap;
  flex: none;
}
body.pg26-detail-page .engagement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: calc(10 * var(--u));
}
body.pg26-detail-page .stats {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
  font-size: calc(11 * var(--u));
  color: #989da5;
  margin-top: 0;
  padding-left: 0;
}
body.pg26-detail-page .stats span,
body.pg26-detail-page .stats a {
  display: inline-flex;
  align-items: center;
  gap: calc(5 * var(--u));
  min-height: 32px;
  color: #989da5;
}
body.pg26-detail-page .stats a {
  min-width: 44px;
  min-height: 44px;
}
body.pg26-detail-page .stats .favorite-display {
  min-width: 0;
  min-height: 32px;
}
body.pg26-detail-page .stats svg {
  width: calc(13 * var(--u));
  height: calc(13 * var(--u));
  color: #a1a6ad;
  stroke-width: 1.5;
}
body.pg26-detail-page .mod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: calc(10 * var(--u));
  padding: 8px 12px;
  background: #fff9f4;
  border-radius: 6px;
  font-size: 12px;
}
body.pg26-detail-page .mod-actions a {
  color: var(--brand-primary, #f36b21);
}

/* Main article body */
body.pg26-detail-page .post-content {
  font-size: calc(17 * var(--u));
  line-height: 1.85;
  overflow-wrap: anywhere;
  padding-top: calc(14 * var(--u));
  color: #363b42;
}
body.pg26-detail-page .post-content #nice { padding: 0; }
body.pg26-detail-page .post-content p {
  margin: 0 0 calc(16 * var(--u));
  letter-spacing: 0;
}
body.pg26-detail-page .post-content h3 {
  font-size: calc(19 * var(--u));
  line-height: 1.6;
  margin: calc(28 * var(--u)) 0 calc(12 * var(--u));
  color: #283440;
  font-weight: 600;
}
body.pg26-detail-page .post-content h4 { font-size: 1em; }
body.pg26-detail-page .post-content strong { font-weight: 600; }
body.pg26-detail-page .post-content a {
  color: var(--brand-primary, #f36b21);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
body.pg26-detail-page .post-content ul,
body.pg26-detail-page .post-content ol {
  padding-left: 1.3em;
  margin: calc(10 * var(--u)) 0 calc(18 * var(--u));
}
body.pg26-detail-page .post-content li { margin: calc(7 * var(--u)) 0; }
body.pg26-detail-page .post-content figure { margin: calc(20 * var(--u)) 0 calc(24 * var(--u)); }
body.pg26-detail-page .post-content img {
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: zoom-in;
}
body.pg26-detail-page .post-content figure img {
  display: block;
  width: 100%;
}
body.pg26-detail-page .post-content table {
  display: block;
  overflow: auto;
  max-width: 100%;
  border-collapse: collapse;
  font-size: .85em;
  margin: 24px 0;
}
body.pg26-detail-page .post-content td,
body.pg26-detail-page .post-content th {
  border: 1px solid #e0e5e9;
  padding: 12px;
  min-width: 110px;
}
body.pg26-detail-page .post-content th { background: #f5f7f8; text-align: left; }
body.pg26-detail-page .post-content .quote blockquote {
  background: #f6f7f9;
  border-left: 3px solid var(--brand-primary, #f36b21);
  margin: 12px 0;
  padding: 10px 12px;
  font-size: calc(14 * var(--u));
  line-height: 1.7;
  color: #5c636e;
  border-radius: 4px;
}
body.pg26-detail-page .attach-warning,
body.pg26-detail-page .pay-notice {
  margin: calc(14 * var(--u)) 0;
  padding: calc(10 * var(--u)) calc(12 * var(--u));
  background: #fff9f4;
  border: 1px solid #f7e3d4;
  border-radius: 6px;
  font-size: calc(13 * var(--u));
  line-height: 1.6;
  color: #6b5344;
}
body.pg26-detail-page .attach-box {
  margin: calc(16 * var(--u)) 0;
  padding: calc(12 * var(--u));
  background: #f7f8fa;
  border-radius: 8px;
  font-size: calc(14 * var(--u));
}
body.pg26-detail-page .attach-head {
  font-size: calc(13 * var(--u));
  font-weight: 600;
  color: #535c66;
  margin-bottom: calc(8 * var(--u));
}

/* Vote bar (styles live dz.js .dzboxA markup to match design .vote-bar) */
body.pg26-detail-page .vote-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(8 * var(--u));
  margin-top: calc(14 * var(--u));
  font-size: calc(12 * var(--u));
  color: #85898d;
  line-height: 1.5;
}
body.pg26-detail-page .dzboxA.dzboxH5 {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  width: auto !important;
  flex: 0 1 auto !important;
  gap: calc(8 * var(--u)) !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  font-size: calc(12 * var(--u)) !important;
  line-height: 1.5 !important;
  color: #85898d !important;
}
body.pg26-detail-page .dzboxA.dzboxH5 a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: calc(6 * var(--u)) !important;
  min-height: 44px !important;
  min-width: 44px !important;
  height: auto !important;
  padding: calc(6 * var(--u)) calc(12 * var(--u)) !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: calc(4 * var(--u)) !important;
  background: #f4f3f2 !important;
  color: #818181 !important;
  font-size: calc(12 * var(--u)) !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
body.pg26-detail-page .dzboxA.dzboxH5 a::before {
  content: "" !important;
  display: inline-block !important;
  width: 0 !important;
  height: 0 !important;
  flex: none !important;
  border-left: calc(4.5 * var(--u)) solid transparent !important;
  border-right: calc(4.5 * var(--u)) solid transparent !important;
  border-bottom: calc(7.5 * var(--u)) solid #a0a0a0 !important;
  border-top: 0 !important;
}
body.pg26-detail-page .dzboxA.dzboxH5 a[onclick*="down"]::before,
body.pg26-detail-page .dzboxA.dzboxH5 a[title="点踩"]::before {
  border-bottom: 0 !important;
  border-top: calc(7.5 * var(--u)) solid #a0a0a0 !important;
}
body.pg26-detail-page .dzboxA.dzboxH5 a.dz_up_exist {
  background: var(--brand-primary-soft, #fff5ed) !important;
  border-color: var(--brand-primary-border, #f3a779) !important;
  color: var(--brand-primary, #f36b21) !important;
}
body.pg26-detail-page .dzboxA.dzboxH5 a.dz_up_exist::before {
  border-bottom-color: var(--brand-primary, #f36b21) !important;
}
body.pg26-detail-page .dzboxA.dzboxH5 a.dz_up_exist[onclick*="down"],
body.pg26-detail-page .dzboxA.dzboxH5 a.dz_up_exist[title="点踩"] {
  background: #e7ebef !important;
  border-color: #cbd2da !important;
  color: #536172 !important;
}
body.pg26-detail-page .dzboxA.dzboxH5 a.dz_up_exist[onclick*="down"]::before,
body.pg26-detail-page .dzboxA.dzboxH5 a.dz_up_exist[title="点踩"]::before {
  border-top-color: #536172 !important;
}
body.pg26-detail-page .dzboxA.dzboxH5 a img {
  display: none !important;
}
body.pg26-detail-page .dzboxA.dzboxH5 .dz_up_tips:empty,
body.pg26-detail-page .dzboxA.dzboxH5 .dz_down_tips:empty {
  display: none !important;
}
body.pg26-detail-page .dzboxA.dzboxH5 > span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: calc(5 * var(--u)) !important;
  float: none !important;
  position: static !important;
  top: auto !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 0 0 calc(4 * var(--u)) !important;
  vertical-align: middle !important;
  color: #85898d !important;
  font-size: calc(12 * var(--u)) !important;
  font-variant-numeric: tabular-nums;
}
body.pg26-detail-page .dzboxA.dzboxH5 > span img {
  display: block !important;
  flex: none !important;
  float: none !important;
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: calc(14 * var(--u)) !important;
  height: calc(14 * var(--u)) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: middle !important;
  cursor: default !important;
}
body.pg26-detail-page .vote-bar .post-tools {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: calc(12 * var(--u));
}
body.pg26-detail-page .vote-bar .reply-comment,
body.pg26-detail-page .vote-bar .post-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--brand-primary, #f36b21);
  font-size: calc(12 * var(--u));
  text-decoration: none;
  padding: 8px 0 8px 12px;
  flex: none;
}
body.pg26-detail-page .vote-bar .reply-comment {
  margin-left: auto;
}

/* Post banner: clean spacing, no divider */
body.pg26-detail-page .post-banner {
  margin: calc(24 * var(--u)) max(calc(20 * var(--u)), env(safe-area-inset-left)) 0;
}
body.pg26-detail-page .post-banner a {
  display: block;
}
body.pg26-detail-page .post-banner img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}

/* Comments section: whitespace separation, full-width comment text */
body.pg26-detail-page .comments {
  margin-top: calc(32 * var(--u));
  border-top: 1px solid #e6e9ed;
  padding-top: calc(20 * var(--u));
}
body.pg26-detail-page .post-banner + .comments {
  border-top: 0;
  margin-top: calc(20 * var(--u));
  padding-top: 0;
}
body.pg26-detail-page .comments h2 {
  font-size: calc(18 * var(--u));
  font-weight: 600;
  margin: 0 0 calc(12 * var(--u));
  color: #2d3035;
}
body.pg26-detail-page .comments h2 span {
  color: #9298a0;
  font-size: .8em;
  font-weight: 400;
  margin-left: 8px;
}
body.pg26-detail-page .comment {
  padding: calc(16 * var(--u)) 0;
  border-bottom: 1px solid #eef0f2;
  font-size: calc(15 * var(--u));
  line-height: 1.8;
  color: #2d3035;
}
body.pg26-detail-page .comments > .comment:last-of-type {
  border-bottom: 0;
}
body.pg26-detail-page .comment.reply-hidden,
body.pg26-detail-page .comment[hidden] {
  display: none !important;
}
body.pg26-detail-page .comment-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: calc(12 * var(--u));
  margin-bottom: calc(8 * var(--u));
  color: #727b86;
}
body.pg26-detail-page .comment-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f5c69;
  font-weight: 400;
}
body.pg26-detail-page .comment-author img {
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  display: block;
}
body.pg26-detail-page .comment-meta time {
  color: #939aa2;
  font-size: .9em;
  white-space: nowrap;
}
body.pg26-detail-page .comment-body {
  font-size: calc(15 * var(--u));
  line-height: 1.8;
  color: #2d3035;
  overflow-wrap: anywhere;
}
body.pg26-detail-page .comment-body img {
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
}
body.pg26-detail-page .comment-body img[smilieid] {
  max-width: 44px;
  cursor: default;
}
body.pg26-detail-page .comment-body a {
  color: var(--brand-primary, #f36b21);
  text-decoration: underline;
  text-underline-offset: .2em;
}
body.pg26-detail-page .comment-body .quote blockquote {
  background: #f6f7f9;
  border-left: 3px solid var(--brand-primary, #f36b21);
  margin: 8px 0;
  padding: 8px 12px;
  font-size: calc(13 * var(--u));
  color: #5c636e;
  border-radius: 4px;
}
body.pg26-detail-page .more-comments {
  display: block;
  width: 100%;
  padding: calc(14 * var(--u));
  min-height: 44px;
  background: #fff;
  border: 0;
  color: #7e8790;
  font-size: calc(13 * var(--u));
  cursor: pointer;
}
body.pg26-detail-page .pgbd {
  padding: calc(12 * var(--u)) 0;
  text-align: center;
  font-size: 13px;
}
body.pg26-detail-page .pgbd a,
body.pg26-detail-page .pgbd span {
  display: inline-block;
  padding: 4px 10px;
  margin: 2px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  color: #4f5c69;
}
body.pg26-detail-page .pgbd strong {
  display: inline-block;
  padding: 4px 10px;
  margin: 2px;
  border-radius: 6px;
  background: var(--brand-primary, #f36b21);
  color: #fff;
}

/* Compact, divider-free forum navigation & recommended articles */
body.pg26-detail-page .related-section,
body.pg26-detail-page .recommendations {
  border-top: 0;
  padding-top: 0;
  margin-top: calc(28 * var(--u));
}
body.pg26-detail-page .related-section h2,
body.pg26-detail-page .recommendations h2 {
  font-size: calc(18 * var(--u));
  font-weight: 600;
  color: #2d3035;
  margin: 0 0 calc(10 * var(--u));
}
body.pg26-detail-page .recommendations h2 + ul + h2 {
  margin-top: calc(24 * var(--u));
}
body.pg26-detail-page .related-section ul,
body.pg26-detail-page .recommendations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
body.pg26-detail-page .related-section li,
body.pg26-detail-page .recommendations li {
  display: flex;
  align-items: flex-start;
  gap: calc(10 * var(--u));
  border: 0;
  padding: calc(5.6 * var(--u)) 0;
  min-height: 44px;
  font-size: calc(15 * var(--u));
  line-height: 1.7;
  color: #2d3035;
}
body.pg26-detail-page #forum-navigation li {
  align-items: center;
}
body.pg26-detail-page #forum-navigation .list-icon {
  width: calc(18 * var(--u));
  height: calc(18 * var(--u));
  color: var(--brand-primary, #f36b21);
  stroke-width: 1.6;
  flex: none;
}
body.pg26-detail-page .recommendations .list-avatar {
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  flex: none;
  margin-top: calc(3 * var(--u));
  border-radius: calc(4 * var(--u));
  overflow: hidden;
  display: block;
}
body.pg26-detail-page .recommendations .list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(4 * var(--u));
}
body.pg26-detail-page .related-section li a,
body.pg26-detail-page .recommendations li a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #2d3035;
}
body.pg26-detail-page .recommendations .post-icons {
  display: inline;
  white-space: nowrap;
  margin-left: calc(4 * var(--u));
}
body.pg26-detail-page .recommendations .post-icons img {
  width: calc(15 * var(--u));
  height: calc(15 * var(--u));
  vertical-align: -2px;
  transform: none;
  margin-right: calc(3 * var(--u));
}

/* Floating back-to-top button */
body.pg26-detail-page .back-top {
  position: fixed;
  right: max(calc((100vw - 750px) / 2 + 12px), 12px);
  bottom: calc(88 * var(--u) + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #737e89;
  border: 1px solid #e2e6ea;
  box-shadow: 0 2px 6px #26303d0a;
  z-index: 40;
}
body.pg26-detail-page .back-top svg {
  width: 20px;
  height: 20px;
}

/* Fixed bottom action bar */
body.pg26-detail-page .bottom-bar {
  position: fixed;
  z-index: 45;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 750px);
  background: #fff;
  border-top: 1px solid #e5e8ec;
  display: flex;
  align-items: center;
  gap: calc(7 * var(--u));
  padding: calc(9 * var(--u)) calc(14 * var(--u)) calc(9 * var(--u) + env(safe-area-inset-bottom));
}
body.pg26-detail-page .reply-input {
  flex: 1;
  min-width: 0;
  background: #f6f7f8;
  border: 1px solid #e7eaed;
  border-radius: 40px;
  font-size: calc(14 * var(--u));
  color: #858d96;
  padding: calc(8 * var(--u)) calc(14 * var(--u));
  min-height: 44px;
  display: flex;
  align-items: center;
  text-align: left;
}
body.pg26-detail-page .bottom-bar .icon-button {
  border: 0;
  background: transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  width: calc(31 * var(--u));
  height: calc(31 * var(--u));
  color: var(--brand-primary, #f36b21);
  border-radius: 6px;
  padding: 0;
}
body.pg26-detail-page .bottom-bar .icon-button:focus { outline: none; }
body.pg26-detail-page .bottom-bar svg {
  width: calc(17 * var(--u));
  height: calc(17 * var(--u));
  min-width: 23px;
  min-height: 23px;
}

/* Dialogs & bottom sheets */
body.pg26-detail-page dialog {
  border: 1px solid #e2e6e9;
  border-radius: 14px;
  padding: 28px 24px;
  background: #fff;
  max-width: min(90vw, 520px);
  color: #343e49;
  box-shadow: 0 15px 60px #0002;
}
body.pg26-detail-page dialog::backdrop { background: #18212c80; }
body.pg26-detail-page dialog .close {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #6e7783;
  margin: 0;
}
body.pg26-detail-page dialog .close:focus {
  outline: none;
}

/* WeChat modal */
#wechat-dialog {
  text-align: center;
}
#wechat-dialog h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 0;
  padding: 0;
}
#wechat-dialog .qr {
  display: block;
  width: 180px;
  max-width: 100%;
  margin: 16px auto;
  object-fit: contain;
}
#wechat-dialog > a {
  font-size: 13px;
  color: #558869;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Image lightbox */
#image-dialog {
  width: 94vw;
  max-width: 1200px;
  padding: 52px 12px 16px;
  text-align: center;
}
#image-dialog .image-scroll {
  overflow: auto;
  max-height: 75vh;
}
#image-dialog img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}
#image-dialog.zoom img { max-width: none; }
#image-zoom {
  min-height: 44px;
  border: 1px solid var(--brand-primary-border, #f3a779);
  background: var(--brand-primary-soft, #fff5ed);
  border-radius: 6px;
  padding: 8px 16px;
  margin-top: 14px;
  color: var(--brand-primary, #f36b21);
  font-size: 14px;
}

/* Share bottom sheet (aligned with 分享-头像与来源.jpg) */
#share-dialog.share-sheet {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(100%, 750px);
  max-width: 750px;
  max-height: 85dvh;
  overflow: auto;
  border: 0;
  border-radius: 18px 18px 0 0;
  padding: 10px 20px calc(12px + env(safe-area-inset-bottom));
  box-shadow: none;
}
.share-handle {
  width: 32px;
  height: 4px;
  border-radius: 4px;
  background: #e0e3e7;
  margin: 0 auto 12px;
}
.share-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.share-heading h2 {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 44px;
  color: #292c32;
}
.share-heading .close {
  position: static !important;
  background: transparent;
}
.share-preview {
  display: block;
  background: #f7f8fa;
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0 18px;
}
.share-preview h3 {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
  color: #292c32;
}
.share-preview .share-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: #858b95;
  font-size: 12px;
  line-height: 1.5;
}
.share-preview .share-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.share-source {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: #969ca5;
  margin-top: 2px;
}
#share-dialog .share-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
}
#share-dialog .share-actions button,
#share-dialog .share-actions button#copy-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 88px;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  color: #5c636e;
  border-radius: 8px;
  font-size: 12px;
}
.share-action-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}
.share-action-icon svg { width: 24px; height: 24px; }
.share-action-icon.wechat { background: #edf8f0; color: #3eaa69; }
.share-action-icon.moments { background: #eef7f2; color: #529a72; }
.share-action-icon.copy { background: #f1f3f6; color: #7d8a9c; }
#share-dialog #copy-status {
  font-size: 13px;
  line-height: 1.6;
  color: var(--brand-primary, #f36b21);
  text-align: center;
  margin: 4px 0 12px;
}
#share-dialog #copy-status:empty { display: none; }
.share-address {
  margin: 4px 0 12px;
  color: #9a9fa6;
  font-size: 12px;
}
.share-address summary {
  min-height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
}
.share-address summary::-webkit-details-marker { display: none; }
.share-address summary::after { content: '\ff0b'; margin-left: 5px; }
.share-address[open] summary::after { content: '\2212'; }
#share-dialog #share-url {
  display: block;
  width: 100%;
  font-size: 13px;
  color: #757d88;
  border: 0;
  background: #f7f8fa;
  border-radius: 6px;
  margin: 0;
  padding: 12px;
}
.share-cancel {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-top: 1px solid #eef0f2;
  background: #fff;
  color: #69717c;
  font-size: 15px;
  padding: 12px 0 0;
}

/* Compose comment drawer (aligned with 统一重点色-评论按钮.jpg & 评论-直接输入.jpg) */
#compose-dialog.compose-dialog {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(100%, 750px);
  max-width: 750px;
  max-height: 85dvh;
  overflow: auto;
  border: 0;
  border-radius: 14px 14px 0 0;
  padding: 18px max(20px, env(safe-area-inset-left)) calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px #0001;
}
#compose-dialog .compose-head {
  padding: 0 0 12px;
}
#compose-dialog .compose-head h2 {
  font-size: 18px;
  font-weight: 600;
  color: #292c32;
  margin: 0;
}
#compose-dialog .compose-head .close {
  position: static;
  margin: -8px -10px -8px 0;
}
#compose-dialog .editor_box {
  margin: 0;
  padding: 0;
}
#compose-dialog textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 120px;
  max-height: 40dvh;
  padding: 12px;
  border: 1px solid #e3e6e9;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.7;
  color: #353b43;
  background: #fafbfc;
  outline: none;
  transition: border-color .15s;
}
#compose-dialog textarea::placeholder {
  color: #9ca3af;
}
#compose-dialog textarea:focus {
  border-color: var(--brand-primary, #f36b21);
  background: #fff;
}
#compose-dialog .compose-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
}
#compose-dialog .compose-actions #compose-status {
  font-size: 12px;
  color: #8a9098;
}
#compose-dialog #fastpostsubmit {
  width: auto;
  min-width: 80px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--brand-primary, #f36b21);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  flex: none;
}
#compose-dialog #fastpostsubmit:active:not(:disabled) {
  background: var(--brand-primary-pressed, #d95712);
}
#compose-dialog #fastpostsubmit:disabled {
  background: #eeeef0;
  color: #aaaeb5;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
