/* 社区：内容优先，紧凑讨论，适配触屏。 */
.social-heading{margin-bottom:20px!important}.social-heading h2{font-size:28px;margin:0 0 8px}.social-heading p{margin:0;color:#9aacc4}
.social-compose-entry{padding:18px!important;margin-bottom:24px!important;background:#101b2e!important}.social-compose-entry>div{display:flex;align-items:center;gap:12px;margin-top:12px}.social-compose-entry>div .primary{margin-left:auto}.social-compose-prompt{text-align:left!important;padding:14px 16px!important;border:1px solid #31425c!important;border-radius:10px!important;background:#0a1423!important;width:100%}
.social-layout{grid-template-columns:minmax(0,1fr) 270px!important;gap:24px!important;align-items:start}.social-main{min-width:0}.social-filters{margin:0 0 12px!important;padding:0!important;gap:8px!important;flex-wrap:wrap}.social-filters a{padding:8px 14px!important;font-size:14px}.social-topics{border-bottom:1px solid #27354b;padding-bottom:14px!important}.social-topics a{padding:5px 10px!important;background:transparent!important;border:0!important}.social-topics a.active{color:#c0afff!important}
.social-post{padding:22px!important;margin-bottom:16px!important;border:1px solid #27354b;background:#101827!important;border-radius:14px!important}.social-post>header{gap:12px;align-items:center}.social-post>header small{display:block;margin:4px 10px 0 0;font-size:12px;color:#90a1b8}.social-avatar{width:36px;height:36px;flex:0 0 36px;display:inline-grid;place-items:center;border-radius:50%;background:#253356;color:#c6b7ff;font-size:15px}.social-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.85;margin:18px 0}.social-media:empty{display:none}.social-media{gap:8px!important;margin:12px 0!important}.social-media img,.social-media video{width:100%;max-height:320px;object-fit:contain;background:#060c16;border-radius:8px}.social-media:has(> :only-child){grid-template-columns:minmax(0,520px)!important}.social-links{display:flex;gap:8px;flex-wrap:wrap}.social-links a{font-size:12px;padding:5px 8px;background:#17263b;border-radius:6px}.social-actions{margin-top:16px!important;display:flex;flex-wrap:wrap;gap:8px!important}.social-actions button{padding:6px 10px!important;font-size:13px;border-color:transparent!important;background:transparent!important;color:#a9bad1}.social-actions button:hover,.social-actions button[data-liked=true]{color:#c5b6ff;background:#242340!important}.social-actions button[data-social=report]{margin-left:auto;color:#78899f}.social-pin{color:#7bdecf}
.social-welcome{padding:28px!important;text-align:center;border:1px dashed #33445c;border-radius:12px}.social-welcome h3{font-size:19px!important;margin:0 0 10px}.social-welcome p{font-size:14px!important;margin:0 0 18px}.social-rail>section{padding:18px!important;margin-bottom:16px!important}.social-rail h3{font-size:16px;margin:0 0 12px}.social-rail p{font-size:13px;line-height:1.8;color:#96a8c0}.social-rail a{font-size:14px!important;padding:9px 0!important;display:flex;justify-content:space-between;gap:8px}.social-rail small{font-size:12px;color:#7f94af;white-space:nowrap}
.social-comments[data-open]{margin-top:18px;border-top:1px solid #2b394f;padding-top:16px}.social-discussion-title{display:flex;justify-content:space-between;align-items:center;font-size:14px}.social-comments button{font-size:12px;padding:5px 9px}.social-discussion-title button,.social-comment-content>button{border:0;background:transparent;color:#a9a0d9}.social-comment{display:flex;gap:10px;padding:16px 0!important;border-bottom:1px solid #233047}.social-comment-content{min-width:0;flex:1}.social-comment-content header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}.social-comment-content small{font-size:11px;color:#8496af}.social-comment-content p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.75;margin:8px 0}.social-comment-content blockquote{margin:10px 0 0;padding:8px 12px;background:#182439;border-left:2px solid #8f7ac9;color:#9fafc6;font-size:12px;overflow-wrap:anywhere}.social-comment-empty{font-size:14px;color:#8fa2bb}.social-comments form{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:12px}.social-comments textarea{width:100%;resize:vertical;min-height:70px;padding:12px;border-radius:8px}.social-reply-target{width:100%;display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#c1b0ff}.social-reply-target[hidden]{display:none}.social-comments form>.primary{padding:8px 16px;font-size:13px}.social-admin-settings{padding:20px;background:#101b2e;border:1px solid #30415a;border-radius:12px;margin-bottom:20px}.social-admin-settings>button{align-self:start}.social-pager{display:flex;gap:16px;justify-content:center}
@media(max-width:1000px){.social-layout{grid-template-columns:minmax(0,1fr)!important}.social-rail{display:none}}@media(max-width:600px){.social-post{padding:15px!important}.social-media{grid-template-columns:repeat(2,minmax(0,1fr))!important}.social-compose-entry{padding:12px!important}.social-compose-entry>div{gap:4px}.social-compose-entry button{font-size:12px}.social-heading h2{font-size:24px}.social-comment .social-avatar{width:28px;height:28px;flex-basis:28px}}

.social-heading h2{font-size:clamp(30px,4vw,46px);line-height:1.12}
.social-heading{padding:24px 0 12px;background:radial-gradient(ellipse at 90% 0,rgba(40,84,156,.16),transparent 62%)}
.social-feed .social-post{padding:clamp(16px,2vw,24px);margin-bottom:16px}
@media (max-width: 600px) {
  .social-topics { flex-wrap: wrap; }
  .social-topics a { display: inline-flex; align-items: center; min-height: 44px; }
  .creator-actions a { flex: 1 1 140px; min-height: 44px; }
}

.landing-mode .community-experience-grid { margin: 0; gap: 20px; }
.community-experience-grid .tu-card { position: relative; min-width: 0; overflow-wrap: anywhere; }
.community-experience-grid .tu-card-like {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  padding: 5px 10px; border: 1px solid #ffffff42; border-radius: 999px;
  background: #101322e8; color: #e4dcf9; font-size: 12px;
}
.community-experience-grid .tu-card-like[aria-pressed="true"] { color: #a4eedb; }

.community-hero {
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  min-height:128px; box-sizing:border-box; margin:0 0 22px; padding:22px 28px;
  border:1px solid #61549a; border-radius:12px;
}
.community-hero-copy > span {color:#c7bcff;font-size:12px;font-weight:650;letter-spacing:.14em}
.community-hero-copy h2 {margin:4px 0;font-size:clamp(24px,2.4vw,36px);line-height:1.14;color:#f7f4ff}
.community-hero-copy p {margin:0;color:#c5c7e1;line-height:1.6}
.community-publish-menu {position:relative;flex:none}
.community-publish-menu summary {
  list-style:none;display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;
  padding:0 20px;border:1px solid #b2a2ff;border-radius:999px;cursor:pointer;
  color:white;background:linear-gradient(140deg,#6264e9,#7440cf);font-weight:700;
  box-shadow:inset 0 1px 3px #ffffff55,0 6px 24px #100b4080;
}
.community-publish-menu summary:is(:hover,:focus-visible) {background:linear-gradient(140deg,#7275fa,#874ee3)}
@media(max-width:600px) {
  .community-hero {min-height:108px;padding:14px;gap:10px;}
  .community-hero-copy p {font-size:13px}
  .community-publish-menu summary {padding:0 12px;gap:6px}
}

.community-hero {
  background: linear-gradient(90deg,#0a1225c9 0%,#0a1225a3 23%,#0a122516 40%,#0a122510 67%,#0a1225a3 87%,#0a1225b3 100%),
    url('/static/learning/assets/community-banner-desktop-v2.webp?v=20261114') center / cover no-repeat #0b0e27;
}
@media(max-width:720px) {
  .community-hero {
    background: linear-gradient(90deg,#0a1225e6 0%,#0a1225b8 44%,#0a122540 70%,#0a12255c 100%),url('/static/learning/assets/community-banner-mobile-v2.webp') right center / cover no-repeat #0b0e27;
  }
}

.community-hero-copy p {color:#dfe7fa}
.community-publish-menu summary:focus-visible {outline:2px solid #e9e4ff;outline-offset:3px}

.community-hero {min-height:138px;margin-inline:10px;padding-block:17px}
@media(max-width:720px) {.community-hero {min-height:150px;padding:14px}}

@media(max-width:720px) {
  .community-hero {align-items:flex-start;position:relative}
  .community-hero-copy p {max-width:15em}
  .community-publish-menu {position:absolute;right:14px;bottom:10px}
  .community-publish-menu summary {min-height:38px}
}

.social-rail .social-recent > a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #263347;
  line-height: 1.5;
}
.social-rail .social-recent > a > span:first-child { overflow-wrap: anywhere; }
.social-rail .social-recent > a > small { color: #9caae4; white-space: nowrap; }
.social-rail .social-recent > a:is(:hover, :focus-visible) { color: #dfd7ff; }

.social-live .social-discussion-new {
  animation: social-discussion-arrival 800ms ease-out;
}
@keyframes social-discussion-arrival {
  from { transform: translateY(-5px); background: #35305c; }
  to { transform: translateY(0); background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .social-live .social-discussion-new { animation: none; }
}
.social-rail .social-live [data-discussions] > a {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid #33445c;
  overflow-wrap: anywhere;
}
.social-rail .social-live [data-discussions] > a > small { color: #9caae4; }

.social-rail > section {
  margin-bottom: 8px !important;
  padding: 14px !important;
  background: linear-gradient(145deg, #182237, #101827 72%);
}
.social-rail h3 { margin-bottom: 8px; }
.social-rail p { margin: 0; }
.social-rail .social-live {
  border-color: #454876;
  background: linear-gradient(145deg, #222747, #101827 72%);
}
.social-live h3 { display: flex; align-items: center; justify-content: space-between; }
.social-live h3 small { font-weight: 500; }
.social-rail .social-live [data-discussions] > a {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.social-discussion-copy { display: grid; gap: 3px; }
.social-rail .social-discussion-copy small { white-space: normal; }
.social-discussion-faces { display: flex; padding-right: 3px; }
.social-role-avatar {
  position: relative;
  background: linear-gradient(145deg, hsl(var(--avatar-hue) 48% 37%), hsl(var(--avatar-hue) 41% 20%));
  color: #fff;
}
.social-discussion-faces .social-role-avatar { width: 25px; height: 25px; font-size: 12px; border: 1px solid #8791b4; }
.social-discussion-faces .social-role-avatar + .social-role-avatar { margin-left: -5px; }
.social-role-avatar i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  padding: 1px 3px;
  border-radius: 5px;
  background: #252046;
  color: #ded3ff;
  font: 8px/1.2 system-ui, sans-serif;
}
.social-discussion-highlight .social-role-avatar { animation: social-avatar-hop 750ms ease-in-out; }
.social-discussion-highlight .social-role-avatar + .social-role-avatar { animation-delay: 140ms; }
@keyframes social-avatar-hop {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .social-discussion-highlight .social-role-avatar { animation: none; }
}

.social-post.social-question-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, #18213a, #101827 66%);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.social-question-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 420px 270px at var(--question-glow-x, 50%) var(--question-glow-y, 0%), #7560eb46, transparent 80%);
  opacity: 0;
  transition: opacity 180ms ease;
}
.social-post.social-question-card:is(:focus-within, :has(.social-comments[data-open])) {
  border-color: #7971b3;
  box-shadow: 0 0 24px #7962d52a;
}
@media (hover: hover) and (pointer: fine) {
  .social-post.social-question-card:hover {
    border-color: #9280df;
    box-shadow: 0 0 26px #7962d541;
  }
  .social-question-card:hover::before { opacity: 1; }
}
.social-question-card .social-question-toggle {
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.social-question-toggle::after {
  content: "⌄";
  display: inline-block;
  color: #c0adff;
  margin-inline-start: .65em;
}
.social-question-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.social-question-count { align-self: center; color: #adbcda; font-size: .875rem; }
.social-question-card .social-comments { cursor: auto; }
@media (prefers-reduced-motion: reduce) {
  .social-post.social-question-card, .social-question-card::before { transition: none; }
}

.social-publisher-avatar {
  background: linear-gradient(145deg, #263b55, #202c42);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}
.social-discussion-faces .social-publisher-avatar {
  width: 25px;
  height: 25px;
  font-size: 13px;
  border: 1px solid #8791b4;
}
.social-discussion-faces .social-publisher-avatar + .social-role-avatar {
  margin-left: -5px;
}
@media (prefers-reduced-motion: no-preference) {
  .social-discussion-highlight .social-publisher-avatar { animation: social-avatar-hop 750ms ease-in-out; }
}

.social-post.social-question-card {
  padding: 13px 18px !important;
  background: linear-gradient(120deg, #17233a, #101827 72%) !important;
}
.social-question-card > header { gap: 9px; margin: 0; }
.social-question-card > header .social-avatar { width: 28px; height: 28px; }
.social-question-card .social-post-author {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
}
.social-question-card .social-post-author small { margin: 0; }
.social-question-card > h3 { margin: 6px 0 2px; line-height: 1.35; }
.social-question-card > .social-body { margin: 6px 0; line-height: 1.55; }
.social-question-card > .social-actions {
  margin-top: 6px !important;
  padding-top: 4px;
  border-top: 1px solid #92a0c21f;
}
.social-question-card > .social-actions button { padding-block: 3px !important; }
.social-question-card > .social-comments:empty,
.social-question-card > .social-links:empty { display: none; }

.social-post .social-media > .social-photo-preview {
  display: block;
  width: min(100%, 240px);
  aspect-ratio: 16 / 9;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
  border: 1px solid #40516f;
  border-radius: 9px;
  background: #0b1220;
}
.social-post .social-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.social-post .social-photo-preview:is(:hover, :focus-visible) {
  border-color: #a596f8;
}

#social-compose [data-question-fields] {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
#social-compose [data-question-fields]:not([hidden]) { display: grid; gap: 8px; }


.social-rail .social-live [data-discussions] > a {
  box-sizing: border-box;
  height: 80px;
  padding: 8px 0;
}
.social-discussion-copy { min-width: 0; }
.social-discussion-copy strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
}
.social-rail .social-discussion-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


dialog.social-photo-dialog {
  width: fit-content;
  max-width: min(920px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 12px;
  border-radius: 14px;
}
.social-photo-dialog::backdrop { background: rgb(5 9 17 / 78%); }
.social-photo-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.social-photo-dialog img {
  display: block;
  max-width: 100%;
  max-height: 70dvh;
  margin: auto;
  border-radius: 8px;
  object-fit: contain;
}

.community-publish-menu summary::-webkit-details-marker { display: none; }
.community-publish-menu > div {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  display: grid;
  min-width: 162px;
  padding: 6px;
  background: #131c30;
  border: 1px solid #4b4c77;
  border-radius: 12px;
  box-shadow: 0 12px 28px #050712aa;
}
.community-publish-menu > div > :is(a,button) {
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #eeefff;
  font: inherit;
  text-align: left;
  white-space: nowrap;
}
.community-publish-menu > div > :is(a,button):is(:hover,:focus-visible) { background: #282748; }

.community-hero-copy .community-content-note { margin-top: 5px; font-size: 12px; }
