/* community.css — 首页 Hero、Bento 与 Minecraft 票据；彩色表面保留高对比文字和焦点。 */
.minecraft-intro h2 { font-size: 24px; margin: 0 0 12px; }
.minecraft-intro p { color: var(--text-secondary); font-size: 14px; max-width: 34em; }
.download-card > .badge { align-self: flex-start; }
.download-card h3 { font-size: 20px; margin: 0; }
.download-card > p { color: var(--text-secondary); font-size: 14px; margin: 0; }
.release-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.release-facts dt { color: var(--text-secondary); font-size: 12px; }
.release-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 14px; }
.release-hash { font-size: 13px; }
.release-hash code { display: block; overflow-wrap: anywhere; margin-top: 8px; user-select: all; }
.copy-control { display: flex; flex-direction: column; gap: 4px; }
.copy-feedback { font-size: 12px; color: var(--text-secondary); }
.copy-feedback:empty { display: none; }
.guide-nav a:hover { color: var(--link); }
.world-visual { border-radius: 12px; overflow: hidden; margin-top: 24px; background: var(--surface-muted); }
.world-cover { width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; display: block; }
.world-placeholder { display: none; }
.world-caption { padding: 16px; display: grid; gap: 4px; font-size: 13px; }
.guide-crumb { display: flex; gap: 10px; font-size: 13px; color: var(--text-secondary); margin-bottom: 32px; }
.guide-head > p:last-child { color: var(--text-secondary); }
.minecraft-player-entry .eyebrow { margin-bottom: 8px; }
.minecraft-player-entry p:last-child { margin: 0; color: var(--text-secondary); }
.minecraft-player-entry .btn { flex-shrink: 0; min-height: 44px; }
.section-heading h2 { font-size: 24px; margin: 0 0 12px; }
.section-heading p:not(.eyebrow) { color: var(--text-secondary); }
.install-steps h3 { margin: 0 0 8px; font-size: 17px; }
.install-steps p { margin-top: 0; color: var(--text-secondary); font-size: 14px; }
.guide-copy p { margin-top: 0; color: var(--text-secondary); font-size: 14px; }
.install-steps a { font-size: 13px; color: var(--brand); }
.guide-faq { margin-top: 24px; }
.guide-faq p { color: var(--text-secondary); margin: 12px 0 0; font-size: 14px; max-width: 48rem; }
.guide-head { max-width: 42rem; margin-bottom: 24px; }
.guide-wrap .btn { min-height: 44px; }
.community-home { max-width: var(--content-width); padding: 48px 24px 64px; }
.portal-hero { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 48px; align-items: center; padding: 24px 0 56px; }
.hero-title {
  font-family: var(--font-display); font-size: clamp(40px,6vw,72px); line-height: 1.05; font-weight: 850;
  letter-spacing: -.045em; margin: 14px 0 28px;
}
.hero-mark { position: relative; white-space: nowrap; z-index: 0; }
.hero-mark::after {
  content: ''; position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .34em;
  background: var(--tone-sun); z-index: -1; border-radius: 4px; transform: rotate(-1.5deg);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 380px; justify-self: center; width: 100%; }
.hero-blob {
  position: absolute; inset: 10%; background: var(--periwinkle); border: var(--bw) solid var(--line);
  border-radius: 32px; box-shadow: var(--shadow-hard-lg); transform: rotate(4deg);
}
.hero-sticker { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; border-radius: 28px; transform: rotate(-3deg); }
.hero-chip {
  position: absolute; display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px;
  border-radius: 999px; background: var(--surface); border: var(--bw) solid var(--line);
  box-shadow: var(--shadow-hard-sm); font-size: 13px; font-weight: 700;
  animation: float 6s ease-in-out infinite;
}
.hero-chip img { width: 22px; height: 22px; }
.chip-mc { left: 0; top: 16%; }
.chip-games { right: 0; top: 46%; animation-delay: -2s; }
.chip-agent { left: 6%; bottom: 4%; animation-delay: -4s; }
.portal-launchpad {
  display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr);
  grid-template-rows: auto auto; gap: 24px; margin-bottom: 40px;
}
.launch-card {
  min-width: 0; position: relative; border: var(--bw) solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard); padding: 24px; background: var(--surface); display: flex;
  flex-direction: column; gap: 16px;
  transition: transform 200ms var(--ease-out),box-shadow 200ms var(--ease-out);
}
.launch-card:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-hard-lg); }
.launch-agent { grid-row: span 2; background: var(--periwinkle); color: #fff; }
.launch-minecraft { background: var(--tone-mc-soft); grid-column: 2 / 4; }
.launch-games { background: var(--tone-games-soft); grid-column: 2 / 4; }
.launch-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.launch-heading h2 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 800; }
.launch-icon {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 12px;
  border: var(--bw) solid var(--line); background: var(--surface); color: var(--text);
}
.launch-agent .launch-icon { background: var(--tone-sun); color: var(--on-accent); }
.launch-minecraft .launch-icon { background: var(--tone-mc); color: var(--on-accent); }
.launch-games .launch-icon { background: var(--tone-games); color: var(--on-accent); }
.launch-tag { margin-left: auto; font: 11.5px var(--font-mono); border: var(--bw) solid rgba(255,255,255,.45); border-radius: 999px; padding: 4px 8px; }
.launch-examples { display: grid; gap: 12px; margin: 8px 0 16px; }
.launch-example {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px;
  padding: 8px 16px; border-radius: 12px; border: var(--bw) solid rgba(255,255,255,.35); color: #fff;
  text-decoration: none; font-weight: 600;
}
.launch-example:hover { background: #fff; color: var(--on-accent); border-color: var(--ink); box-shadow: 2px 2px 0 #18171F; }
.launch-agent .launch-cta { margin-top: auto; align-self: flex-start; background: var(--tone-sun); color: var(--on-accent); }
.launch-agent .launch-cta:hover { margin-top: auto; align-self: flex-start; background: var(--tone-sun); color: var(--on-accent); }
.launch-status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 auto; padding: 3px 12px;
  border-radius: 999px; border: var(--bw) solid var(--line); background: var(--surface); font-size: 12.5px;
  font-weight: 700;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-tertiary); flex: none; }
.status-dot.online { background: #287239; box-shadow: 0 0 0 3px rgba(40,114,57,.18); }
.status-dot.offline { background: var(--danger); }
.status-dot.loading { animation: blink 1.2s infinite; }
.portal-address {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 10px 10px 16px;
  border: var(--bw) dashed var(--line); border-radius: 12px; background: var(--surface);
}
.portal-address code { font-size: 16px; font-weight: 700; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--link); text-decoration: none; font-size: 14px; }
.launch-game-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.launch-game {
  min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  background: var(--surface); border: var(--bw) solid var(--line); box-shadow: var(--shadow-hard-sm);
  text-decoration: none; font-weight: 700;
}
.launch-game-art { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 10px; border: var(--bw) solid var(--line); }
.launch-game-art img { width: 30px; height: 30px; }
.launch-game-chess .launch-game-art { background: repeating-conic-gradient(var(--tone-games-soft) 0 25%,var(--surface) 0 50%) 0 0/14px 14px; }
.launch-game-gomoku .launch-game-art { background: var(--board-wood); }
.launch-game-text { flex: 1; }
.portal-recent { margin: 32px 0; }
.portal-recent h2 { font-size: 18px; margin: 0 0 12px; }
.recent-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-decoration: none; }
.recent-row > div { flex: 1; min-width: 0; }
.recent-row strong { font-size: 15px; font-weight: 650; }
.recent-date { color: var(--text-secondary); font-size: 12px; }
.recent-summary { margin: 6px 0 0; color: var(--text-secondary); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-footer {
  border-top: var(--bw) solid var(--line); padding: 24px 0; color: var(--text-secondary); font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.welcome-skeleton { height: 360px; border-radius: 18px; }
.home-error { padding: 16px 0; }
.guide-wrap { max-width: var(--content-width); padding: 48px 24px 64px; }
.guide-head h1 { font-size: clamp(36px,5vw,56px); margin: 12px 0 0; line-height: 1.3; letter-spacing: -.03em; font-weight: 850; }
.server-connect {
  display: grid; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; padding: 28px;
  border-block: 1px solid var(--border); position: relative; grid-template-columns: minmax(0,1fr) auto auto;
  background-color: var(--tone-mc);
  background-image: radial-gradient(circle at 0 50%,var(--page) 9px,transparent 10px),radial-gradient(circle at 100% 50%,var(--page) 9px,transparent 10px);
  border: var(--bw) solid var(--line); border-radius: 18px; box-shadow: var(--shadow-hard-lg);
  color: var(--on-accent);
}
.server-connect .btn:not(.primary) { color: #18171F; border-color: #18171F; background: #FFFDF9; box-shadow: 2px 2px 0 #18171F; }
.server-connect .btn:not(.primary):hover { background: #EFE9DC; }
.server-connect .copy-feedback { color: var(--on-accent); }
.server-connect > div:first-child { flex: 1; display: grid; gap: 6px; min-width: 0; border-right: var(--bw) dashed var(--ink); padding-right: 24px; }
.server-connect span { color: var(--on-accent); font-size: 13px; font-family: var(--font-mono); font-weight: 700; }
.server-connect code { font-size: 28px; color: var(--on-accent); overflow-wrap: anywhere; user-select: all; font-family: var(--font-mono); font-weight: 800; }
.guide-nav {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; position: sticky;
  top: calc(var(--shell-height) + 8px); z-index: 10;
  background: color-mix(in srgb,var(--page) 90%,transparent); backdrop-filter: blur(12px); padding: 8px 0;
}
.guide-nav a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  color: var(--text-secondary); font-size: 14px; padding: 6px 16px; border: var(--bw) solid var(--line);
  border-radius: 999px; background: var(--surface); font-weight: 650;
}
.minecraft-player-entry { display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: none; padding: 16px 20px; }
.minecraft-player-entry > div { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.minecraft-player-entry h2 { margin: 0; }
.download-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 24px;
  box-shadow: var(--shadow-hard); background: var(--surface);
}
.release-facts > div { padding: 10px 12px; border: var(--bw) dashed var(--line-soft); border-radius: 10px; }
.install-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin: 32px 0; }
.install-steps li {
  display: flex; gap: 16px; min-width: 0; padding: 20px; border: var(--bw) solid var(--line);
  border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-hard-sm);
}
.step-number {
  color: var(--on-accent); font-size: 14px; font-weight: 700; padding-top: 3px; display: grid;
  place-items: center; width: 36px; height: 36px; flex: none; border: var(--bw) solid var(--line);
  border-radius: 50%; background: var(--tone-sun); font-family: var(--font-mono); padding: 0;
}
.guide-faq details {
  border-top: 1px solid var(--border); padding: 12px 16px; border: var(--bw) solid var(--line);
  border-radius: 12px; margin-bottom: 12px; background: var(--surface);
}
.guide-faq summary {
  cursor: pointer; font-weight: 550; min-height: 44px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; list-style: none;
}
.guide-faq summary::after { content: '+'; font-size: 22px; transition: transform 180ms var(--ease-out); }
.guide-faq details[open] summary::after { transform: rotate(45deg); }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-note { color: var(--text-tertiary); font-size: 13px; line-height: 1.7; }
.guide-note::before { content: 'ⓘ '; }
.guide-section { border-top: 1px solid var(--border); padding: 40px 0; scroll-margin-top: calc(var(--shell-height) + 90px); padding-block: 32px; }
.minecraft-section {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px;
  border-top: 1px solid var(--border); padding: 32px 0; scroll-margin-top: calc(var(--shell-height) + 90px);
}
#minecraft-download { scroll-margin-top: calc(var(--shell-height) + 90px); }
.launch-agent :focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.server-connect :focus-visible { outline-color: var(--ink); }
.download-card > .guide-note { font-size: 13px; color: var(--text-secondary); }
@keyframes float { 50% { transform:translateY(-6px); } }
@media (max-width: 960px) {
  .portal-hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 260px; }
  .portal-launchpad { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .launch-agent { grid-column: 1 / -1; grid-row: auto; }
  .launch-minecraft { grid-column: auto; }
  .launch-games { grid-column: auto; }
  .launch-status { margin-left: 0; }
}
@media (max-width: 640px) {
  .minecraft-section { grid-template-columns: 1fr; gap: 24px; }
  .guide-section { padding-block: 24px; }
  .server-connect .copy-control { flex: 1; }
  .server-connect { grid-template-columns: minmax(0,1fr); gap: 16px; padding: 22px; }
  .server-connect > div:first-child { border-right: 0; padding-right: 0; padding-bottom: 16px; border-bottom: var(--bw) dashed var(--ink); }
  .guide-wrap { padding: 28px 16px 40px; }
  .install-steps { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .community-home { padding: 28px 16px 40px; }
  .portal-hero { padding: 16px 0 32px; overflow: clip; }
  .hero-title { font-size: 40px; }
  .hero-chip { padding: 5px 10px; font-size: 12px; }
  .chip-agent { display: none; }
  .portal-launchpad { grid-template-columns: 1fr; }
  .launch-card { padding: 20px; }
  .portal-address code { flex-basis: 100%; }
  .launch-game { gap: 8px; padding: 10px; flex-wrap: wrap; }
  .launch-game-art { width: 36px; height: 36px; }
  .launch-game-text { font-size: 13px; }
  .recent-row { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 600px) {
  .minecraft-player-entry { align-items: stretch; flex-direction: column; gap: 20px; }
}
