/* 独立副本：AI 在上、原评论在下；不影响站点其他布局。 */
.article-actions.gctx-combined{--gctx-ease:cubic-bezier(.22,1,.36,1)}
.article-actions.gctx-combined:lang(zh){font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
.article-actions.gctx-combined:lang(zh) .article-comments-title,.article-actions.gctx-combined:lang(zh) .gctx-section-heading,.article-actions.gctx-combined:lang(zh) textarea,.article-actions.gctx-combined:lang(zh) input,.article-actions.gctx-combined:lang(zh) .gctx-launcher-label,.article-actions.gctx-combined:lang(zh) #gctx-answer,.article-actions.gctx-combined:lang(zh) #gctx-status{font-family:inherit!important}
.article-actions.gctx-combined:lang(zh) .gctx-section-heading{letter-spacing:.025em!important;line-height:1.7!important}
.article-actions.gctx-combined .article-actions-shell{padding:0 17px;border-radius:20px;box-shadow:0 18px 58px #1834241c,0 2px 7px #18342409}
.article-actions.gctx-combined .article-actions-top{min-height:49px;gap:6px}
.article-actions.gctx-combined .article-comments-title{font-size:13px!important;font-weight:650!important;letter-spacing:-.01em!important}
.article-actions.gctx-combined .article-actions-top-controls{gap:1px}
.article-actions.gctx-combined .article-actions-drag{opacity:.65}
.article-actions.gctx-combined .article-panel-options{display:none}
.article-actions.gctx-combined .article-actions-resize{opacity:.6}
.gctx-panel-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d6dfd5 transparent;padding:0 2px 0 0}
.gctx-panel-content:focus-visible{outline:1px solid #a8bba0;outline-offset:2px;border-radius:5px}
.gctx-shared-auth{padding:17px 0!important;border-bottom:1px solid #e6ece4}
.gctx-shared-auth p{max-width:270px}
#gctx-root{display:flex;flex-direction:column;gap:12px;padding:18px 0 21px;min-width:0}
.gctx-section-heading{display:flex;align-items:center;gap:8px;margin:0!important;color:#304639;font:650 12px/1.5 Manrope,"Microsoft YaHei",sans-serif!important;letter-spacing:0!important}
.gctx-section-heading img{display:block;flex:none;opacity:.85}
.gctx-section-heading .article-comment-count{margin-left:auto;font-size:10px;color:#82917f}
.gctx-comments-section{border-top:1px solid #e6ece4;padding:19px 0 10px}
.gctx-comments-section .article-comments{min-height:45px;padding-top:4px}
.gctx-comments-section .article-comments-list{flex:none;max-height:190px}
.gctx-comments-section .article-comments-empty{margin:10px 0 13px;font-size:11px;color:#97a28f}
.gctx-comments-section .article-comment-form{gap:6px;margin:6px 0 0}
.gctx-comments-section .article-comments-note{font-size:9px;line-height:1.5}
.gctx-comments-section .article-comment-form textarea{min-height:63px;font-size:12px;line-height:1.7}
.article-actions.gctx-combined .article-actions-buttons{gap:26px;min-height:43px;margin-top:0}
#gctx-root [hidden]{display:none!important}
#gctx-root .article-comment-form{flex:none;margin:0;padding:0}
#gctx-root .article-comment-composer{margin:0;background:#f4f7f1;border-color:#e0e7da;border-radius:13px}
#gctx-input{display:block;width:100%;min-height:64px;max-height:130px;resize:none;padding:12px 12px 5px;border:0;border-radius:13px;background:transparent;font:12px/1.75 Manrope,"Microsoft YaHei",sans-serif;color:#304939}
#gctx-input:focus{outline:0}
#gctx-input::placeholder{color:#8e9d85}
#gctx-root .article-comment-composer-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:0 8px 8px}
#gctx-send{width:29px;height:29px;flex:none}
#gctx-root button:disabled{opacity:.45;cursor:wait}
#gctx-answer{max-height:270px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 3px 0 0;color:#304939;font:12px/1.85 Manrope,"Microsoft YaHei",sans-serif}
.gctx-turn{margin:0 0 17px}.gctx-turn:last-child{margin-bottom:0}
.gctx-question{margin:0 0 12px!important;padding:9px 11px;background:#f2f6ee;border-radius:10px;font-size:11px;white-space:pre-wrap}
.gctx-response p{margin:0 0 10px!important;overflow-wrap:anywhere}.gctx-response p:last-child{margin-bottom:0!important}
.gctx-response strong{font-weight:650}.gctx-citation{margin-left:3px;font-size:9px;vertical-align:super;color:#276244;text-decoration:none}
.gctx-sources{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}
.gctx-source{display:inline-flex;align-items:center;padding:4px 7px;border:1px solid #e1e7dd;border-radius:7px;color:#5b7252;text-decoration:none;font-size:9px;line-height:1.6;max-width:100%;overflow-wrap:anywhere}
.gctx-loading{display:inline-flex;align-items:center;gap:8px;color:#819176;font-size:11px}
.gctx-loading:before{content:"";width:6px;height:6px;border-radius:50%;background:#6d8a61;animation:gctx-breathe 1.4s ease-in-out infinite}
.gctx-attribution{display:block;font-size:8px;line-height:1.6;color:#9aa690;margin-top:9px}
#gctx-status{margin:0;padding:0 2px;font:11px/1.6 Manrope,"Microsoft YaHei",sans-serif;color:#8b6353}
.gctx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* 沿用原评论图标，与 OpenAI 标志在同一圆形入口内交叉淡入。 */
.article-actions.gctx-combined .article-actions-compact{position:relative;overflow:visible;border:1px solid #dce5d7;box-shadow:0 7px 25px #25442b18;background:#fff}
.gctx-compact-ai,.gctx-compact-comment{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;will-change:opacity,transform}
.gctx-compact-ai img{display:block;width:24px;height:24px;opacity:.88}
.gctx-compact-comment svg{width:22px;height:22px;stroke-width:1.5}
.gctx-compact-ai{animation:gctx-ai-mark 8s var(--gctx-ease) infinite}
.gctx-compact-comment{animation:gctx-comment-mark 8s var(--gctx-ease) infinite}
.gctx-launcher-label{position:absolute;top:calc(100% + 9px);left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;padding:5px 9px;border:1px solid #e2e8de;border-radius:8px;background:#ffffffed;box-shadow:0 4px 13px #243b2510;font:500 9px/1.6 Manrope,"Microsoft YaHei",sans-serif;color:#7c8b74;pointer-events:none;letter-spacing:.02em}
.gctx-launcher-label i{display:block;width:2px;height:2px;border-radius:50%;background:#b8c3af}
.article-actions.gctx-combined:not(.is-collapsed) .gctx-compact-ai,.article-actions.gctx-combined:not(.is-collapsed) .gctx-compact-comment{animation-play-state:paused}
@keyframes gctx-ai-mark{0%,38%,100%{opacity:1;transform:translateY(0) rotate(0) scale(1)}48%,88%{opacity:0;transform:translateY(-3px) rotate(-14deg) scale(.86)}}
@keyframes gctx-comment-mark{0%,38%,100%{opacity:0;transform:translateY(3px) rotate(14deg) scale(.86)}48%,88%{opacity:1;transform:translateY(0) rotate(0) scale(1)}}
@keyframes gctx-breathe{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1)}}
@keyframes gctx-panel-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference){
  .article-actions.gctx-combined .article-actions-shell{animation:gctx-panel-in .32s var(--gctx-ease)}
  .article-actions.gctx-combined .article-action-button,#gctx-send,.gctx-source{transition:background .2s ease,transform .25s var(--gctx-ease),opacity .2s ease,box-shadow .2s ease}
  #gctx-send:hover,.gctx-source:hover{transform:translateY(-1px)}
  .article-actions.gctx-combined .article-actions-compact:hover{transform:translateY(-2px);box-shadow:0 10px 30px #25442b22}
  #gctx-send:active,.article-actions.gctx-combined .article-actions-compact:active{transform:scale(.96)}
}
@media (max-width:760px), (any-pointer:coarse) and (hover:none){
  .article-actions.gctx-combined .article-actions-shell{padding:0 15px;box-shadow:0 4px 18px #163d2512}
  .article-actions.gctx-combined .article-actions-compact{gap:10px;padding:8px 15px;max-width:100%;box-shadow:none}
  .article-actions.gctx-combined .gctx-compact-ai{display:none}
  .article-actions.gctx-combined .gctx-compact-comment{position:static;width:20px;height:20px;border:0;background:transparent;opacity:1;animation:none}
  .article-actions.gctx-combined .gctx-compact-comment svg{width:19px;height:19px}
  .article-actions.gctx-combined .gctx-launcher-label{position:static;transform:none;background:none;box-shadow:none;border:0;padding:0;font:inherit;font-weight:650;color:inherit;white-space:normal}
  .article-actions.gctx-combined .gctx-panel-content{overflow:visible;overscroll-behavior:auto}
  #gctx-input,.gctx-comments-section .article-comment-form textarea{font-size:16px}
  #gctx-answer{font-size:13px;max-height:240px}
  .gctx-source{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .article-actions.gctx-combined *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .gctx-compact-ai{opacity:1;inset:0 5px 4px 0}.gctx-compact-ai img{width:23px;height:23px}
  .gctx-compact-comment{opacity:1;inset:auto 3px 4px auto;width:20px;height:20px;background:#fff;border:2px solid #fff;border-radius:50%}
  .gctx-compact-comment svg{width:14px;height:14px}
}
