/* qianse-gegong Askama adapter: keep the original ggong_2025 visual system. */
:root {
  --color-background: #fff;
}

body {
  letter-spacing: 0;
}

img {
  max-width: 100%;
}

.header-container .mask-paper img,
.side-bar img,
.feed-card img,
.bottom-nav img {
  display: block;
}

.side-bar {
  padding-top: 76px;
}

.side-bar .item a[href^="/"],
.content-container a[href^="/"] {
  color: inherit;
}

.index_search_diag {
  display: none;
}

.index_search_diag.is-open {
  display: block;
  max-height: min(76vh, 680px);
  overflow-y: auto;
  width: min(560px, calc(100vw - 28px));
}

.search_diag_button {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.index_search_submit,
.image_search_link {
  border: 0;
  border-radius: 8px;
  background: #813f91;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
}

.image_search_link {
  background: #f5d9fc;
  color: #813f91;
}

.input-button {
  border: 0;
  cursor: pointer;
}

.dropdown-nav {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.qianse-button-new {
  align-items: center;
  background: #fff;
  border: 1px solid #f0e8f2;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(124, 55, 139, .08);
  color: #813f91;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  padding: 0 10px;
}

.qianse-button-new img {
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.history-btn::before {
  content: "↺";
  font-size: 18px;
}

.message-btn::before {
  content: "✉";
  font-size: 18px;
}

.breadcrumb-btn {
  flex-direction: column;
  gap: 4px;
}

.qg-menu-line {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 16px;
}

.dropdown-wrapper {
  position: relative;
}

.dropdown-container {
  background: #fff;
  border: 1px solid #f0e8f2;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
  min-width: 180px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 1200;
}

.dropdown-container[hidden] {
  display: none !important;
}

.dropdown-items {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-title {
  color: #813f91;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
}

.dropdown-items .link,
.qg-dropdown-button {
  background: transparent;
  border: 0;
  color: #333;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 8px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.dropdown-items .link:hover,
.qg-dropdown-button:hover {
  background: #fbf7fc;
  color: #813f91;
}

.qg-search-checklist {
  background: #fff;
  border: 1px solid #ead8ef;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  display: none;
  margin: 6px 0 0;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  position: absolute;
  z-index: 50;
}

.qg-search-checklist.is-open {
  display: block;
}

.diag_form_select_a {
  min-width: 180px;
  position: relative;
}

.diag_select_title {
  cursor: pointer;
}

.diag_input {
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  height: 34px;
  padding: 0 10px;
  width: 100%;
}

.qg-search-checklist .btn1,
.qg-search-checklist .btn2 {
  color: #813f91;
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 10px 8px 0;
}

.qg-search-checklist dd {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 6px;
}

.country_text.checked {
  background: #813f91;
  color: #fff;
}

.feed-card-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.gegong-channel-header {
  margin: 0 0 20px;
  padding: 4px 4px 16px;
  border-bottom: 1px solid #eee;
}

.gegong-channel-title {
  margin: 0 0 8px;
  color: #333;
  font-size: 24px;
  font-weight: 700;
}

.gegong-channel-desc {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.qg-feature-shell,
.qg-channel-shell,
.qg-detail-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px 0 40px;
}

.qg-feature-shell .overview-card,
.qg-channel-shell .overview-card,
.qg-detail-shell .overview-card {
  background: #fff;
  border: 1px solid #f0e8f2;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(124, 55, 139, 0.08);
  margin-bottom: 18px;
  padding: 22px;
}

.qg-feature-shell h1,
.qg-channel-shell h1,
.qg-detail-shell h1 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.3;
}

.qg-feature-shell p,
.qg-channel-shell p,
.qg-detail-shell p {
  color: #666;
  line-height: 1.8;
}

.qg-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.qg-button {
  border-radius: 8px;
  background: #813f91;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
}

.qg-button-secondary {
  background: #f5d9fc;
  color: #813f91;
}

.qg-notification-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.qg-notification-item,
.qg-notification-empty {
  border: 1px solid #f0e8f2;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

.qg-notification-item.is-unread {
  border-color: #d59be3;
  background: #fff8ff;
}

.qg-notification-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.qg-notification-meta strong {
  color: #333;
  font-size: 15px;
}

.qg-notification-meta time {
  color: #888;
  font-size: 12px;
  white-space: nowrap;
}

.qg-notification-item p,
.qg-notification-empty {
  color: #666;
  line-height: 1.7;
  margin: 0;
}

.qg-rights-grid,
.qg-task-list,
.qg-review-list,
.qg-settings-form {
  display: grid;
  gap: 12px;
}

.qg-rights-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.qg-rights-grid span,
.qg-task-item,
.qg-review-item {
  border: 1px solid #f0e8f2;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.qg-task-item,
.qg-review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.qg-user-card-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  color: inherit;
}

.qg-user-card-link img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.qg-task-item p,
.qg-review-item p {
  margin: 6px 0 0;
  color: #777;
  line-height: 1.5;
}

.qg-settings-form label {
  display: grid;
  gap: 6px;
  color: #555;
}

.qg-settings-form input,
.qg-settings-form select,
.qg-settings-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 15px;
}

.qg-settings-form textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.qg-review-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.qg-contact-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1002;
  width: min(360px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: #fff;
  padding: 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .24);
}

.qg-contact-dialog img {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
}

.qg-contact-dialog h2 {
  margin: 0 0 8px;
}

.qg-contact-dialog p {
  color: #666;
  line-height: 1.7;
}

.qg-contact-dialog .post_close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.left-dropdown {
  display: none;
}

.left-dropdown.show {
  display: block;
}

.dropdown-arrow {
  display: inline-flex;
  transition: transform .2s ease;
}

.dropdown-arrow.active {
  transform: rotate(180deg);
}

.qg-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.qg-detail-page,
.qg-publish-page,
.qg-usercenter-page {
  padding-bottom: 42px;
}

.qg-detail-card {
  background: #fff;
  border: 1px solid #f0e8f2;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(124, 55, 139, .08);
  display: grid;
  grid-template-columns: minmax(280px, 46%) minmax(0, 1fr);
  margin: 18px auto 0;
  max-width: 980px;
  overflow: hidden;
}

.qg-detail-media {
  background: #111;
  min-width: 0;
  overflow: hidden;
}

.qg-detail-media .feed-detail-image-container,
.qg-detail-media .feed-detail-slider {
  display: block;
  height: auto;
  min-height: 0;
  opacity: 1;
  max-width: 100% !important;
  overflow: hidden;
  position: relative;
  transform: none;
  visibility: visible;
  width: 100% !important;
}

.qg-detail-media .feed-detail-image-container {
  position: relative;
}

.qg-detail-media .feed-detail-slide {
  display: block;
  height: auto;
  opacity: 1;
  position: relative;
  transform: none;
  width: 100% !important;
}

.qg-detail-media .feed-detail-slide + .feed-detail-slide {
  display: none !important;
}

.qg-detail-media .feed-detail-slide img {
  aspect-ratio: 4 / 5;
  display: block;
  height: auto;
  object-fit: cover !important;
  width: 100% !important;
}

.qg-detail-media .qg-detail-media-empty {
  align-items: center;
  aspect-ratio: 4 / 5;
  background: #fbf6fc;
  color: #5e2868;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 320px;
  padding: 32px;
  text-align: center;
}

.qg-detail-media .feed-detail-slide.qg-detail-media-empty img {
  aspect-ratio: auto;
  height: auto;
  max-width: 250px;
  object-fit: contain !important;
  width: 72% !important;
}

.qg-detail-media-empty strong {
  font-size: 15px;
  font-weight: 500;
  opacity: .82;
}

.qg-detail-gallery-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px;
}

.qg-detail-thumb {
  aspect-ratio: 1;
  background: #222;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
}

.qg-detail-thumb.active {
  border-color: #813f91;
}

.qg-detail-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.qg-detail-info {
  flex: initial !important;
  min-width: 0;
  width: 100% !important;
}

.qg-detail-city {
  color: #7b378b;
  font-size: 13px;
  font-weight: 600;
}

.qg-detail-tags,
.qg-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qg-detail-tags span,
.qg-chip-row span {
  background: #f6e7fa;
  border: 1px solid #efd4f6;
  border-radius: 999px;
  color: #7b378b;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
}

.qg-chip-row-muted span {
  background: #f7f7f7;
  border-color: #eee;
  color: #777;
}

.qg-detail-stats,
.qg-detail-profile-grid,
.qg-contact-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0;
}

.qg-detail-stats div,
.qg-detail-profile-grid div,
.qg-contact-grid div {
  background: #fbf7fc;
  border: 1px solid #f0e8f2;
  border-radius: 8px;
  padding: 12px;
}

.qg-detail-stats strong,
.qg-detail-profile-grid strong,
.qg-contact-grid strong {
  color: #333;
  display: block;
  font-size: 16px;
}

.qg-detail-stats span,
.qg-detail-profile-grid span,
.qg-contact-grid span {
  color: #777;
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.qg-detail-section,
.qg-detail-contact {
  border-top: 1px solid #f0f0f0;
  margin-top: 18px;
  padding-top: 18px;
}

.qg-detail-section h2,
.qg-detail-contact h2 {
  color: #333;
  font-size: 16px;
  margin: 0 0 12px;
}

.qg-video-placeholder {
  align-items: center;
  aspect-ratio: 4 / 5;
  color: #fff;
  display: flex;
  justify-content: center;
}

.qg-static-detail-prev,
.qg-static-detail-next {
  background: rgba(0, 0, 0, .36);
  color: #fff;
  display: flex;
}

.qg-static-detail-counter {
  background: rgba(0, 0, 0, .48);
  border-radius: 999px;
  bottom: 14px;
  color: #fff;
  display: flex;
  gap: 4px;
  left: 50%;
  padding: 5px 10px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.qg-static-detail-footer {
  align-items: center;
  background: #fff;
  border: 1px solid #f0e8f2;
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  display: flex;
  gap: 8px;
  left: 50%;
  max-width: min(760px, calc(100vw - 32px));
  padding: 8px 12px;
  position: sticky;
  transform: translateX(-50%);
  z-index: 30;
}

.qg-static-detail-footer .comment-input {
  border: 1px solid #eee;
  border-radius: 999px;
  flex: 1;
  min-height: 36px;
  min-width: 120px;
  padding: 0 14px;
}

.qg-publish-channel-grid,
.qg-publish-field-grid,
.qg-user-action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qg-publish-channel-grid label,
.qg-publish-field-grid label,
.qg-user-action-grid a,
.qg-user-action-grid button {
  background: #fbf7fc;
  border: 1px solid #f0e8f2;
  border-radius: 8px;
  color: #333;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  padding: 12px;
}

.qg-publish-channel-grid label {
  align-items: center;
  flex-direction: row;
}

.qg-publish-channel-grid .is-disabled {
  color: #999;
}

.qg-publish-field-grid input,
.qg-publish-textarea {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  color: #666;
  font-size: 14px;
  min-height: 40px;
  padding: 10px 12px;
}

.qg-publish-contact-grid {
  margin-top: 14px;
}

.qg-publish-textarea {
  min-height: 120px;
  resize: vertical;
  width: 100%;
}

.qg-publish-page .media-upload-container {
  display: none;
  margin-top: 16px;
}

.qg-publish-page .publish-post-header {
  box-sizing: border-box;
  min-height: 94px;
}

.qg-publish-page.qg-publish-media-editing .media-upload-container {
  display: block;
}

.qg-publish-page.qg-publish-media-editing .media-default-view {
  display: none;
}

.qg-publish-page .publish-submit-section {
  border-top: 1px solid #f0f0f0;
  margin-top: 20px;
  padding-top: 20px;
  position: relative;
}

.qg-publish-page .qg-publish-submit {
  position: static;
}

.qg-publish-page .content-textarea {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-sizing: border-box;
  color: #333;
  font-size: 15px;
  min-height: 160px;
  outline: none;
  padding: 12px 14px;
  resize: vertical;
  width: 100%;
}

.qg-usercenter-page .overview-page {
  width: min(900px, 100%);
}

.qg-usercenter-page .overview-main {
  padding-bottom: 40px;
}

.qg-comment-signature,
.qg-comment-sticker {
  color: #7b378b;
  font-size: 12px;
  margin: 6px 0 0;
}

.qg-level-progress {
  background: #eadff0;
  border-radius: 999px;
  display: block;
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  width: 100%;
}

.qg-level-progress > span {
  background: linear-gradient(90deg, #be8bdb, #7b378b);
  display: block;
  height: 100%;
  transition: width .2s ease;
}

.qg-user-action-grid a,
.qg-user-action-grid button {
  align-items: center;
  color: #7b378b;
  justify-content: center;
  min-height: 54px;
  text-decoration: none;
}

.qg-user-action-grid button {
  cursor: pointer;
}

.qg-user-timeline {
  display: grid;
  gap: 12px;
}

.qg-user-timeline div {
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 0;
}

.qg-user-timeline div:last-child {
  border-bottom: 0;
}

.qg-user-timeline strong {
  color: #333;
  white-space: nowrap;
}

.qg-user-timeline span {
  color: #666;
  text-align: right;
}

body.qg-modal-open {
  overflow: hidden;
}

#feedDetailModal:not(.active) {
  pointer-events: none;
}

#feedDetailModal.active {
  pointer-events: auto;
}

#feedDetailModal:not(.active) .feed-detail-content.visible {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#feedDetailModal .feed-detail-content.visible {
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  height: min(82vh, 720px);
  left: 50%;
  max-height: min(82vh, 720px);
  opacity: 1;
  overflow: hidden;
  pointer-events: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  visibility: visible;
  width: min(900px, calc(100vw - 48px));
}

#feedDetailModal .feed-detail-image-section {
  flex: 0 0 60%;
  min-height: 0;
}

#feedDetailModal .feed-detail-content-section {
  flex: 1 1 40%;
  min-width: 0;
}

#feedDetailModal .qg-modal-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0;
}

#feedDetailModal .qg-modal-profile-grid div,
#feedDetailModal .qg-modal-contact-section .qg-contact-grid div {
  padding: 9px;
}

#feedDetailModal .qg-modal-chip-section,
#feedDetailModal .qg-modal-contact-section {
  margin-top: 12px;
  padding-top: 12px;
}

#feedDetailModal .qg-modal-contact-section .qg-contact-grid {
  grid-template-columns: 1fr;
  margin: 10px 0;
}

#feedDetailModal .qg-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.message-page [data-message-tab] {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

#imUnreadBadge {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
}

.qg-im-status {
  padding: 10px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}

.qg-im-status[data-state="online"] { color: #047857; background: #ecfdf5; }
.qg-im-status[data-state="error"],
.qg-im-status[data-state="offline"] { color: #b45309; background: #fffbeb; }

.qg-im-layout {
  display: grid;
  grid-template-columns: minmax(240px, 32%) minmax(0, 1fr);
  min-height: 560px;
  background: #fff;
}

.qg-im-conversations {
  border-right: 1px solid #e5e7eb;
  overflow: hidden;
}

.qg-im-panel-title,
.qg-im-chat-header {
  min-height: 64px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.qg-im-panel-title button,
.qg-im-chat-actions button,
.qg-im-message footer button {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  padding: 6px 10px;
}

.qg-im-conversation {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  color: #334155;
  text-align: left;
  cursor: pointer;
}

.qg-im-conversation:hover,
.qg-im-conversation.active { background: #fff7ed; }

.qg-im-conversation-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qg-im-conversation-head b {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.qg-im-conversation small {
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qg-im-chat {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.qg-im-chat-header small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
}

.qg-im-messages {
  min-height: 390px;
  max-height: 520px;
  padding: 20px;
  overflow-y: auto;
  background: #f8fafc;
}

.qg-im-message {
  max-width: min(76%, 620px);
  margin: 0 0 14px;
}

.qg-im-message.mine { margin-left: auto; }
.qg-im-message.peer { margin-right: auto; }

.qg-im-message p {
  margin: 0;
  padding: 10px 13px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
  color: #1f2937;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.qg-im-message.mine p { background: #ffedd5; }

.qg-im-message footer {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.qg-im-message.mine footer { justify-content: flex-end; }
.qg-im-message footer button { padding: 2px 6px; font-size: 12px; }

.qg-im-compose {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid #e5e7eb;
}

.qg-im-compose textarea {
  min-height: 58px;
  max-height: 160px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

@media (max-width: 767px) {
  .qg-im-layout { grid-template-columns: 1fr; min-height: 0; }
  .qg-im-conversations { border-right: 0; border-bottom: 1px solid #e5e7eb; max-height: 260px; overflow-y: auto; }
  .qg-im-chat { min-height: 520px; }
  .qg-im-messages { min-height: 330px; max-height: 430px; padding: 14px; }
  .qg-im-message { max-width: 88%; }
  .qg-im-chat-header { align-items: flex-start; }
  .qg-im-chat-actions { display: flex; gap: 6px; }
}

#feedDetailModal .feed-detail-slide {
  height: 100%;
  opacity: 1;
}

#feedDetailModal .feed-detail-slide img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

#feedDetailModal .feed-detail-close {
  background: rgba(0, 0, 0, .38);
  color: #fff;
}

#feedDetailModal .comment-input-footer {
  align-items: center;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  bottom: 0;
  display: flex !important;
  gap: 8px;
  padding: 10px 14px;
  position: sticky;
}

#feedDetailModal .comment-input {
  border: 1px solid #eee;
  border-radius: 999px;
  flex: 1;
  min-height: 36px;
  padding: 0 14px;
}

#feedDetailModal .feed-detail-action-btn {
  min-width: 44px;
}

#feedDetailModal .send-comment,
.qg-static-detail-footer .send-comment {
  background: #813f91;
  border-radius: 999px;
  color: #fff;
  min-width: 54px;
}

.feed-detail-more-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.feed-detail-more-actions button {
  background: #f7f7f7;
  border: 0;
  border-radius: 999px;
  color: #666;
  cursor: pointer;
  font-size: 12px;
  padding: 6px 10px;
}

.feed-detail-zoom-btn {
  align-items: center;
  background: rgba(0, 0, 0, .4);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  z-index: 5;
}

#feedDetailModal.qg-feed-fullscreen .feed-detail-content.visible {
  border-radius: 0;
  height: 100vh;
  max-height: none;
  width: 100vw;
}

.feed-detail-modal[hidden],
.login-modal[hidden],
.contact-modal[hidden],
.age-modal[hidden] {
  display: none !important;
}

#loginModal.qg-login-open {
  visibility: visible;
  opacity: 1;
  z-index: 1300 !important;
}

#phoneVerifyModal.qg-phone-open {
  display: block !important;
  opacity: 1;
  visibility: visible;
  z-index: 1310 !important;
}

.qg-phone-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
  left: 50%;
  max-width: 460px;
  padding: 34px 42px 38px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 460px);
}

.qg-phone-close {
  background: transparent;
  border: 0;
  color: #333;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 16px;
}

.qg-phone-header {
  text-align: center;
}

.qg-phone-header img {
  height: 54px;
  margin-bottom: 8px;
}

.qg-phone-header h2 {
  color: #9b3ba4;
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 6px;
}

.qg-phone-header p {
  color: #555;
  font-size: 15px;
  margin: 0 0 26px;
}

.qg-phone-form {
  display: grid;
  gap: 16px;
}

.qg-phone-form label {
  color: #9b3ba4;
  display: grid;
  font-size: 14px;
  gap: 6px;
}

.qg-phone-form input {
  border: 2px solid #aaa;
  border-radius: 4px;
  color: #222;
  font-size: 18px;
  height: 46px;
  padding: 0 12px;
}

.qg-phone-form input:focus {
  border-color: #9b3ba4;
  outline: 0;
}

.qg-phone-dev-code {
  background: #fbf6fc;
  border: 1px solid #ecd9ef;
  border-radius: 6px;
  color: #7a2883;
  font-size: 14px;
  margin: 0;
  padding: 10px 12px;
}

.qg-phone-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

body.qg-session-logged-in #publishSubmitButton {
  min-width: 170px;
}

body.qg-session-logged-in .qg-login-required-contact {
  display: none;
}

body.qg-phone-verified #publishSubmitButton {
  background: #8c2f96;
}

@media screen and (max-width: 960px) {
  .side-bar {
    padding-top: 0;
  }

  .qg-feature-shell,
  .qg-channel-shell,
  .qg-detail-shell {
    padding: 12px 12px 92px;
  }

  .qg-detail-card {
    display: block;
    margin: 12px;
  }

  .qg-detail-stats,
  .qg-detail-profile-grid,
  .qg-contact-grid,
  .qg-publish-channel-grid,
  .qg-publish-field-grid,
  .qg-rights-grid,
  .qg-user-action-grid {
    grid-template-columns: 1fr 1fr;
  }

  .qg-task-item,
  .qg-review-item {
    align-items: stretch;
    flex-direction: column;
  }

  .qg-user-timeline div {
    align-items: flex-start;
    flex-direction: column;
  }

  .qg-user-timeline span {
    text-align: left;
  }

  #feedDetailModal .feed-detail-content.visible {
    border-radius: 0;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    width: 100vw;
  }

  #feedDetailModal .feed-detail-image-section {
    flex: 0 0 52vh;
  }

  .index_search_diag.is-open {
    background: #fff;
    border: 1px solid #f0e8f2;
    border-radius: 12px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, .18);
    display: block;
    left: 14px;
    padding: 18px;
    position: fixed;
    right: 14px;
    top: 70px;
    width: auto;
    z-index: 1200;
  }

  .dropdown-nav {
    gap: 6px;
  }

  .qianse-button-new {
    height: 34px;
    min-width: 34px;
    padding: 0 8px;
  }

  .dropdown-container {
    right: -8px;
  }

  .qg-static-detail-footer {
    border-radius: 0;
    bottom: 0;
    left: 0;
    max-width: none;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    position: fixed;
    transform: none;
    width: 100%;
  }

  .qg-static-detail-footer .comment-input {
    min-width: 0;
  }
}

@media screen and (max-width: 520px) {
  .qg-detail-stats,
  .qg-detail-profile-grid,
  .qg-contact-grid,
  .qg-publish-channel-grid,
  .qg-publish-field-grid,
  .qg-rights-grid,
  .qg-user-action-grid {
    grid-template-columns: 1fr;
  }

  .qg-review-actions {
    width: 100%;
  }

  .qg-review-actions .qg-button {
    flex: 1 1 0;
  }

  .qg-phone-dialog {
    border-radius: 0;
    min-height: 100vh;
    padding: 48px 24px 34px;
    width: 100vw;
  }
}
