/* H5 only: the captured mobile layout stays mobile at every host window width. */
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #08090b !important;
}
body {
  display: block !important;
  color: #fff;
  font-family:
    "PingFang SC",
    -apple-system,
    BlinkMacSystemFont,
    "Microsoft YaHei",
    Arial,
    sans-serif;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #b9c7f2;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
#mobile-app {
  --tabbar-safe-area: max(
    env(safe-area-inset-bottom, 0px),
    var(--app-system-gesture-inset-bottom, 0px)
  );
  --tabbar-height: calc(52px + var(--tabbar-safe-area));
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 430px;
  height: 100%;
  margin: 0 auto;
  background: #0e0e0e;
  box-shadow: 0 0 90px #0008;
  overflow: hidden;
}
#app-scroll-container {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
#app-scroll-container::-webkit-scrollbar {
  display: none;
}
.mobile-header,
.mobile-tabbar {
  width: 100% !important;
  max-width: 430px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  margin: 0 !important;
}
.mobile-header {
  height: calc(56px + env(safe-area-inset-top, 0px)) !important;
  padding-top: env(safe-area-inset-top, 0px);
}
.mobile-header.at-top {
  background: transparent !important;
  backdrop-filter: none !important;
}
.mobile-tabbar {
  z-index: 60 !important;
  padding-bottom: var(--tabbar-safe-area);
  background: #0e0e0e;
}
.mobile-tabbar > .safe-area-bottom {
  padding-bottom: 0;
}
#hero {
  height: calc(100dvh - 56px - env(safe-area-inset-top, 0px));
  min-height: 620px;
}
#hero h1 {
  max-width: calc(100% - 32px);
  margin: auto;
}
#hero p {
  max-width: calc(100vw - 40px);
}
section h2,
section p {
  max-width: 100%;
}
#brands .grid {
  width: min(348px, 100%);
}
#brands .grid > div > div {
  width: 100%;
}
#architecture .overflow-x-auto {
  scroll-snap-type: x mandatory;
}
#architecture article {
  scroll-snap-align: center;
}
.swiper[data-carousel] {
  overflow-x: auto !important;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  touch-action: pan-x pan-y;
}
.swiper[data-carousel]::-webkit-scrollbar {
  display: none;
}
.swiper[data-carousel] .swiper-wrapper {
  transform: none !important;
  transition: none !important;
  display: flex;
  position: relative;
}
.swiper[data-carousel="showcase"] .swiper-slide {
  flex: 0 0 100%;
  width: 100% !important;
  scroll-snap-align: center;
}
.swiper[data-carousel="evolution"] .swiper-wrapper {
  gap: 12px;
  padding: 0 20px;
}
.swiper[data-carousel="evolution"] .swiper-slide {
  flex: 0 0 162px !important;
  width: 162px !important;
  scroll-snap-align: center;
}
.swiper[data-carousel="evolution"] .swiper-slide:last-child {
  margin-right: 20px;
}
button[aria-label^="助手"] {
  position: relative;
}
button[aria-label^="助手"]:before {
  content: "";
  position: absolute;
  inset: -15px -5px;
}
footer button {
  min-height: 44px;
}
footer a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}
footer a img {
  max-height: 32px;
}
.mobile-header img[alt="Customer"] {
  cursor: pointer;
}
.mobile-header img[alt="Logo"] {
  cursor: pointer;
}
#route-view {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #0e0e0e;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.sub-page {
  min-height: 100%;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px
    calc(96px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(ellipse 240px 250px at 100% 0%, #455b8e66, transparent), #0e0e0e;
}
.sub-nav {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid #424242;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(120deg, #30303099, #17171799);
  display: grid;
  place-items: center;
  font-size: 24px;
}
/* 返回图标统一尺寸与居中，避免文字箭头的字体基线偏移。 */
.back-button,
.chat-back,
.model-picker .sheet-top .close,
.vib-game-panel header button:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 1;
}
.back-button {
  border: 1px solid #424242;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(120deg, #30303099, #17171799);
}
.back-icon {
  display: block;
  width: 20px;
  height: 20px;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}
.small-logo {
  width: 82px;
}
.sub-page h1 {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  background: linear-gradient(110deg, #fff 40%, #818181);
  background-clip: text;
  color: transparent;
}
.sub-copy {
  font-size: 14px;
  line-height: 1.8;
  color: #999;
  margin-bottom: 24px;
}
.field {
  margin: 16px 0;
}
.field label {
  display: block;
  font-size: 13px;
  color: #c9c9cc;
  margin-bottom: 8px;
}
.field-box {
  display: flex;
  position: relative;
  gap: 8px;
}
.field input,
.field select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 54px;
  color: #fff;
  background: #202020;
  border: 1px solid #2f2f2f;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 16px;
  outline-offset: 2px;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  width: 116px;
  flex: 0 0 116px;
  padding: 0 36px 0 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23dddddd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  cursor: pointer;
}
.field input::placeholder {
  color: #777;
}
.field input[type="password"],
.field input.password-visible {
  padding-right: 53px;
}
.eye {
  position: absolute;
  right: 0;
  top: 0;
  width: 52px;
  height: 54px;
  color: #aaa;
  background: none;
  border: 0;
  font-size: 12px;
}
.field-hint {
  font-size: 12px;
  color: #858585;
  margin-top: 6px;
}
.form-error {
  min-height: 22px;
  color: #ff8c9e;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0;
}
.form-error:empty {
  margin: 4px 0;
}
.primary-btn,
.secondary-btn {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #626262;
  color: #fff;
  background: linear-gradient(155deg, #3a3b40, #202125);
  box-shadow:
    inset 0 1px 0 #ffffff20,
    0 8px 22px #0002;
}
.primary-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.primary-btn:active,
.secondary-btn:active {
  transform: scale(0.985);
}
.secondary-btn {
  background: #1c1c1c;
  border-color: #303030;
  box-shadow: none;
  font-weight: 400;
  margin-top: 12px;
}
.auth-form {
  margin-top: 26px;
}
.auth-bottom {
  margin-top: 44px;
  text-align: center;
}
.or {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #777;
  font-size: 12px;
}
.or:before,
.or:after {
  content: "";
  height: 1px;
  background: #292929;
  flex: 1;
}
.mode-switch {
  margin: 20px auto;
  color: #ddd;
  border: 0;
  background: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-switch {
  margin-top: 12px;
  color: #888;
  font-size: 14px;
}
.text-button {
  color: #fff;
  background: none;
  border: 0;
  padding: 8px 4px;
}
.terms {
  color: #727272;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
  margin-top: 22px;
}
.terms a {
  color: #b9b9b9;
}
.demo-note {
  font-size: 11px;
  line-height: 1.7;
  color: #767b87;
  margin-top: 18px;
  text-align: center;
}
.scope-chip {
  display: inline-block;
  border: 1px solid #343b48;
  background: #1a202a;
  color: #b6c1db;
  font-size: 11px;
  letter-spacing: 1px;
  border-radius: 24px;
  padding: 5px 10px;
  margin-bottom: 18px;
}
.boundary-art {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  margin: 48px auto 26px;
  border: 1px solid #3f4249;
  border-radius: 27px;
  background: radial-gradient(at 10% 0%, #6a7b9f77, transparent), #191919;
  box-shadow: 0 0 60px #8aa8df15;
}
.boundary-art img {
  width: 42px;
  height: 42px;
}
.boundary {
  text-align: center;
}
.info-card {
  padding: 20px;
  border: 1px solid #303030;
  background: #1b1b1be6;
  border-radius: 20px;
  margin: 20px 0;
  color: #aaa;
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
}
.info-card h2 {
  font-size: 17px;
  color: #eee;
  margin-bottom: 10px;
}
.info-card ul {
  padding-left: 18px;
  list-style: disc;
}
.profile-head {
  margin: 24px 0;
  display: flex;
  gap: 16px;
  align-items: center;
}
.avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #5b6479;
  background: radial-gradient(at 20% 10%, #8a9dc8, #252b3b 70%);
  font-size: 23px;
}
.profile-head h1 {
  font-size: 22px;
}
.profile-head small {
  color: #8e8e93;
  font-size: 12px;
}
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #2c2c2c;
  font-size: 13px;
}
.status-row:last-child {
  border: 0;
}
.status-row strong {
  color: #ddd;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.status-dot {
  color: #a9d4bc;
}
#overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: #000b;
  backdrop-filter: blur(7px);
  display: flex;
  align-items: flex-end;
}
#overlay .sheet {
  width: 100%;
  max-height: 90%;
  overflow: auto;
  border: 1px solid #383838;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: radial-gradient(ellipse at 90% 0%, #45547035, transparent 45%), #171717;
  padding: 10px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  animation: sheet-in 0.22s ease-out;
}
.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 10px;
  background: #666;
  margin: 0 auto 20px;
}
.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sheet h2 {
  font-size: 22px;
  font-weight: 650;
}
.sheet .close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #2c2c2c;
  color: #aaa;
  font-size: 23px;
}
.sheet p {
  font-size: 14px;
  line-height: 1.8;
  color: #999;
  margin-bottom: 18px;
}
.download-link {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #3c3c3c;
  border-radius: 18px;
  padding: 16px;
  margin: 12px 0;
  background: linear-gradient(135deg, #292929, #1c1c1c);
  color: #fff;
}
.download-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.download-link span {
  flex: 1;
}
.download-link small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: #929292;
}
.choice {
  width: 100%;
  border: 1px solid #414141;
  background: #242424;
  color: #fff;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.choice:disabled {
  opacity: 0.4;
  cursor: default;
}
.sheet .fine {
  font-size: 11px;
  color: #777;
}
.sheet .status-dot {
  font-size: 14px;
}
#toast {
  position: absolute;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  transform: translate(-50%, 12px);
  max-width: calc(100% - 40px);
  width: max-content;
  border: 1px solid #4e4e4e;
  background: #252525f5;
  box-shadow: 0 8px 30px #0005;
  border-radius: 14px;
  padding: 12px 18px;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.download-link:focus-visible {
  outline: 2px solid #b9c7f2;
}
.reduced-motion * {
  animation: none !important;
  transition: none !important;
}
@keyframes sheet-in {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (min-width: 700px) {
  #mobile-app {
    border-left: 1px solid #27292e;
    border-right: 1px solid #27292e;
  }
}
@media (max-width: 360px) {
  #hero h1 {
    font-size: 29px;
    line-height: 36px;
  }
  #hero p {
    font-size: 15px;
  }
  #brands .grid {
    gap: 4px;
  }
  #brands .grid > div > div {
    height: 88px;
  }
  #brands .grid p {
    font-size: 10px;
  }
  .sub-page {
    padding-left: 20px;
    padding-right: 20px;
  }
  .mobile-header .gap-3 {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .rfm-marquee {
    animation-play-state: paused !important;
  }
  .animate-in,
  .animate-flip-in-y {
    animation: none !important;
  }
}
@media (max-height: 700px) {
  #hero {
    min-height: 600px;
  }
}
#hero .pt-29\.5 {
  width: 100%;
  min-width: 0;
}
#hero .mb-0 {
  width: 100%;
  min-width: 0;
}
#hero h1 {
  width: calc(100% - 32px);
  max-width: 100%;
}
#hero .flex-1 {
  min-width: 0;
}
.fixed-bottom.mobile-tabbar {
  bottom: 0 !important;
}
#mobile-app .mobile-tabbar {
  height: auto !important;
}
@media (max-width: 390px) {
  #hero h1 {
    font-size: 30px;
    line-height: 36px;
  }
}
@media (max-width: 360px) {
  #hero h1 {
    font-size: 26px;
    line-height: 34px;
  }
}
.swiper[data-carousel="evolution"] .swiper-wrapper {
  padding: 0 !important;
}
.swiper[data-carousel="evolution"] .swiper-slide:last-child {
  margin-right: 0;
}
.swiper[data-carousel="evolution"] .swiper-slide {
  cursor: pointer;
}
.swiper[data-carousel="evolution"] .swiper-slide:focus-visible {
  outline: 1px solid #8c9abb;
  outline-offset: -1px;
}

/* 智能体：固定首屏、可伸展的选择面板与独立列表滚动。 */
#route-view.agent-directory-view {
  overflow: hidden;
  overscroll-behavior: none;
}
.agent-page {
  --agent-nav-height: var(--tabbar-height);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: calc(294px + var(--agent-nav-height));
  overflow: hidden;
  background:
    radial-gradient(ellipse 350px 300px at 10% -60px, #526f9dcc, #2a385466 48%, transparent 80%),
    #0e0e0e;
}
.agent-title {
  position: relative;
  flex: 0 0 auto;
  width: fit-content;
  margin: 0;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 0;
  font-size: 30px;
  line-height: 42px;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: #dedede;
  background: linear-gradient(110deg, #fff 10%, #858585 90%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.agent-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 0;
  text-align: center;
}
.agent-orbit {
  position: relative;
  flex: 0 0 auto;
  width: 180px;
  height: clamp(80px, calc(100dvh - 538px), 180px);
  margin: 12px auto 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.agent-hero-fallback {
  width: 116px;
  max-height: 85%;
  object-fit: contain;
  opacity: 0.85;
}
.agent-orbit video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
  opacity: 0;
}
.agent-orbit video.ready {
  opacity: 1;
}
.agent-orbit:has(video.ready) .agent-hero-fallback {
  visibility: hidden;
}
.agent-ask {
  flex: 0 0 auto;
  height: 52px;
  margin: 8px 24px 24px;
  border: 1px solid transparent;
  border-radius: 28px;
  color: #fafafa;
  background:
    linear-gradient(135deg, #191919, #161616) padding-box,
    linear-gradient(130deg, #f0f0f0, #545454 22%, #2c2c2c 76%, #c9c9c9) border-box;
  font-size: 16px;
  font-weight: 600;
}
.agent-ask:active {
  transform: scale(0.99);
  opacity: 0.9;
}
.agent-catalog {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: var(--agent-nav-height);
  display: flex;
  flex-direction: column;
  height: 294px;
  max-height: calc(100% - 100px - var(--agent-nav-height));
  border-radius: 16px 16px 0 0;
  background: #141414;
  overflow: hidden;
  transition: height 300ms ease-in-out;
}
.agent-catalog.expanded {
  height: 406px;
}
.agent-catalog.dragging {
  transition: none;
}
.agent-panel-heading {
  flex: 0 0 auto;
  padding: 12px 12px 16px;
  text-align: center;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.agent-panel-heading:active {
  cursor: grabbing;
}
.agent-panel-heading:focus-visible {
  outline: 2px solid #b9c7f2;
  outline-offset: -3px;
}
.agent-panel-handle {
  display: block;
  width: 64px;
  height: 4px;
  background: #303030;
  margin: 0 auto 8px;
}
.agent-panel-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
  color: #fafafa;
}
.agent-catalog-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 24px;
}
.agent-catalog-scroll::-webkit-scrollbar {
  display: none;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 16px;
}
.agent-choice {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #ededed;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.agent-choice > span:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  width: 100%;
}
.agent-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(#0e0e0e, #0e0e0e) padding-box,
    linear-gradient(130deg, #eeeeee, #383838 27%, #262626 70%, #c4c4c4) border-box;
}
.agent-icon-fallback {
  position: absolute;
  color: #e3e4f0;
  font-size: 20px;
}
.agent-icon img {
  position: relative;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.agent-icon:has(img:not(.image-failed)) .agent-icon-fallback {
  visibility: hidden;
}
.agent-icon img.image-failed {
  display: none;
}
.agent-icon.monochrome img {
  filter: brightness(0) invert(1);
}
.agent-choice:hover .agent-icon,
.agent-choice:focus-visible .agent-icon,
.agent-choice.selected .agent-icon {
  border-color: #bec9ea;
  box-shadow: 0 0 18px #c0d0ff20;
}
.agent-choice.selected::after {
  content: "✓";
  position: absolute;
  top: -4px;
  right: calc(50% - 34px);
  background: #d9e1f7;
  color: #20232d;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-size: 12px;
}
.agent-entry {
  background: radial-gradient(ellipse 260px 230px at 80% 18%, #2d344844, transparent), #0e0e0e;
}
.agent-entry .sub-nav {
  margin-bottom: 28px;
}
.agent-entry-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.agent-entry-heading > div {
  flex: 1;
  min-width: 0;
}
.agent-entry-heading h1 {
  font-size: 24px;
  overflow-wrap: anywhere;
  margin: 0 0 5px;
}
.agent-entry-heading p {
  font-size: 11px;
  color: #a2a5b1;
}
.agent-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #464854;
  border-radius: 12px;
  background: #202127;
  color: #d7dbe8;
  font-size: 12px;
}
.agent-reserved {
  text-align: center;
  padding: 42px 0 34px;
}
.agent-reserved-art {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border: 1px solid #58627b55;
  border-radius: 30px;
  background: radial-gradient(at top left, #bacaff25, transparent), #20232d;
  color: #cad3ea;
  font-size: 60px;
  box-shadow: 0 0 60px #6073a61a;
}
.agent-reserved h2 {
  color: #f0f1f7;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  margin: 18px 0 12px;
}
.agent-reserved p,
.agent-reserved-note {
  color: #a2a5b3;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.agent-reserved-note {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #353744;
  border-radius: 14px;
  font-size: 11px;
}
.agent-composer-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  border: 1px dashed #474954;
  border-radius: 17px;
  color: #9397a7;
  padding: 14px 18px;
  font-size: 12px;
  margin-bottom: 20px;
}
.agent-switch-grid {
  margin: 26px 0 12px;
}
.agent-sheet-symbol {
  font-size: 42px;
  color: #c3cee9;
  margin-top: 16px;
}
.agent-list-message {
  text-align: center;
  padding: 22px 0 12px;
}
.agent-list-message > span {
  font-size: 32px;
  color: #aebbd9;
}
.agent-list-message h3 {
  font-size: 16px;
  margin: 12px 0;
}
.agent-list-message p {
  font-size: 12px;
  line-height: 1.8;
  color: #a1a4b1;
  margin-bottom: 20px;
}
@media (max-width: 350px) {
  .agent-catalog-scroll {
    padding-left: 8px;
    padding-right: 8px;
  }
  .agent-grid {
    column-gap: 4px;
  }
  .agent-entry {
    padding-left: 18px;
    padding-right: 18px;
  }
  .agent-entry-heading {
    gap: 10px;
  }
  .agent-switch {
    gap: 10px;
  }
}

@media (max-height: 620px) {
  .agent-page {
    padding-bottom: calc(240px + var(--agent-nav-height));
  }
  .agent-catalog {
    height: 240px;
  }
  .agent-title {
    padding-top: 12px;
    font-size: 26px;
    line-height: 36px;
  }
  .agent-orbit {
    height: 80px;
    margin-top: 4px;
  }
  .agent-ask {
    margin-bottom: 12px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .agent-catalog {
    transition: none;
  }
}

/* 演示聊天室：顶部与输入区固定，消息独立滚动。 */
#route-view.chat-route-view {
  bottom: auto;
  overflow: hidden;
  overscroll-behavior: none;
}
.chat-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #0e0e0e;
  color: #ededed;
}
.chat-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  min-height: calc(60px + env(safe-area-inset-top, 0px));
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px 24px;
  background: #111113;
}
.chat-back {
  border: 1px solid #393939;
  border-radius: 50%;
  background: linear-gradient(130deg, #282828, #202020);
  color: #eee;
}
.chat-model {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  padding: 0 14px 0 4px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #f3f3f3;
  text-align: left;
}
.chat-model > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 600;
}
.chat-model i {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border: 5px solid transparent;
  border-top-color: #eee;
  transform: translateY(3px);
}
.chat-model .agent-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.chat-model .agent-icon img {
  width: 23px;
  height: 23px;
}
.chat-demo-badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid #343438;
  border-radius: 18px;
  color: #aaa9b0;
  font-size: 11px;
  line-height: 18px;
}
.chat-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chat-scroll::-webkit-scrollbar,
.chat-quick-actions::-webkit-scrollbar,
.model-brands::-webkit-scrollbar,
.model-options-scroll::-webkit-scrollbar {
  display: none;
}
.chat-welcome {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 36px 24px;
}
.chat-welcome h1 {
  margin: 0 0 20px;
  color: #fafafa;
  font-size: 24px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.chat-suggestions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.chat-suggestions button {
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid #252525;
  border-radius: 22px;
  background: #171717;
  color: #e8e8e8;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}
.chat-messages {
  padding: 22px 20px 26px;
}
.chat-messages:empty {
  display: none;
}
.chat-message + .chat-message {
  margin-top: 26px;
}
.chat-user {
  display: flex;
  justify-content: flex-end;
}
.chat-user-bubble {
  max-width: 88%;
  border-radius: 20px 20px 5px 20px;
  padding: 12px 16px;
  color: #eee;
  background: #27272b;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-message-author {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: #aaa9b2;
  margin-bottom: 12px;
}
.chat-message-author .agent-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}
.chat-message-author .agent-icon img {
  width: 18px;
  height: 18px;
}
.chat-message-author > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.chat-reply {
  font-size: 14px;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-reply.is-streaming::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: #d5d5db;
  animation: chat-caret 900ms ease-in-out infinite;
}
.chat-message-status {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #85848d;
}
.chat-message-status:empty {
  display: none;
}
.chat-composer-region {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 16px max(12px, env(safe-area-inset-bottom, 0px));
  background: #0e0e0e;
}
.chat-quick-actions {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 3px 0 16px;
}
.chat-quick-actions button {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  border: 1px solid #333;
  border-radius: 24px;
  padding: 6px 13px;
  min-height: 34px;
  background: #222;
  color: #eee;
  font-size: 14px;
  white-space: nowrap;
}
.chat-quick-actions button span {
  font-size: 19px;
}
.chat-composer {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  border: 1px solid #2b2b2b;
  border-radius: 30px;
  background: radial-gradient(ellipse at 60% 90%, #222, #090909 65%);
  padding: 12px 13px 12px 20px;
}
.chat-composer:focus-within {
  border-color: #60616b;
}
.chat-composer textarea {
  flex: 1;
  width: 0;
  min-width: 0;
  min-height: 26px;
  max-height: 120px;
  resize: none;
  border: 0;
  outline: none;
  padding: 2px 0;
  margin: 4px 0;
  background: transparent;
  color: #eee;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  overflow-y: auto;
  scrollbar-width: none;
}
.chat-composer textarea::placeholder {
  color: #77767e;
}
#chat-send {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eee;
  color: #111;
  font-size: 27px;
  line-height: 1;
}
#chat-send:disabled {
  cursor: default;
  background: #505050;
  color: #111;
}
.stop-square {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #181818;
}
.chat-demo-note {
  margin: 8px 0 0;
  text-align: center;
  font-size: 10px;
  line-height: 16px;
  color: #777780;
}
.chat-input-error {
  margin: 8px 10px 0;
  color: #e6a8a8;
  font-size: 11px;
  line-height: 1.5;
}
.chat-input-error:empty {
  display: none;
}
.chat-jump {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  border: 1px solid #484850;
  border-radius: 20px;
  background: #242428;
  color: #ddd;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 6px 20px #0006;
}
.chat-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 模型选择：品牌横滑、型号双列、确认后生效。 */
#overlay .model-picker {
  display: flex;
  flex-direction: column;
  height: min(660px, 72%);
  min-height: min(470px, 92%);
  max-height: 92%;
  padding: 0;
  background: #171719;
  overflow: hidden;
}
.model-picker .sheet-top {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  margin: 0;
  padding: 12px 46px;
  border-bottom: 1px solid #303034;
}
.model-picker .sheet-top h2 {
  font-size: 18px;
  line-height: 26px;
  text-align: center;
}
.model-picker .sheet-top .close {
  position: absolute;
  left: 14px;
  top: 11px;
  background: transparent;
  color: #fafafa;
}
.model-brands {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 12px 16px;
  border-bottom: 1px solid #303034;
}
.model-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: #29292f;
  color: #b7b6bc;
  font-size: 14px;
  line-height: 22px;
}
.model-brand[aria-pressed="true"] {
  border-color: #f0f0f0;
  color: #fff;
}
.model-brand .agent-icon {
  width: 22px;
  height: 22px;
  border: 0;
  background: none;
  border-radius: 0;
}
.model-brand .agent-icon img {
  width: 22px;
  height: 22px;
}
.model-options-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 12px 16px 18px;
}
.model-options-scroll h3 {
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  color: #87878e;
  margin: 0 0 12px;
}
.model-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.model-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-width: 0;
  min-height: 152px;
  padding: 16px;
  border: 1px solid #3a3a43;
  border-radius: 24px;
  background: #1f1f23;
  color: #f5f5f5;
  text-align: left;
}
.model-card.selected {
  border-color: #f5f5f5;
  box-shadow: inset 0 0 0 0.5px #f5f5f5;
}
.model-card .agent-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  margin-bottom: 9px;
}
.model-card .agent-icon img {
  width: 30px;
  height: 30px;
}
.model-card strong {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.model-card small {
  margin-top: 9px;
  color: #87878e;
  font-size: 12px;
}
.model-card-check {
  position: absolute;
  top: 13px;
  right: 14px;
  font-size: 13px;
}
.model-confirm-area {
  flex: 0 0 auto;
  padding: 10px 16px max(16px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #303034;
  background: #171719;
}
.model-confirm-area p {
  margin: 0 0 7px;
  color: #8c8b94;
  text-align: center;
  font-size: 10px;
  line-height: 15px;
}
.model-confirm-area .primary-btn {
  margin: 0;
  min-height: 44px;
  height: auto;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
@keyframes chat-caret {
  50% {
    opacity: 0.2;
  }
}
@media (max-width: 350px) {
  .chat-header {
    gap: 8px;
    padding-left: 16px;
    padding-right: 12px;
  }
  .chat-model {
    gap: 8px;
    padding-left: 0;
    padding-right: 12px;
  }
  .chat-model > span:nth-child(2) {
    font-size: 15px;
  }
  .chat-demo-badge {
    padding: 4px 7px;
    font-size: 10px;
  }
  .chat-welcome {
    padding-left: 20px;
    padding-right: 20px;
  }
  .chat-welcome h1 {
    font-size: 22px;
  }
  .model-card {
    padding: 13px;
    border-radius: 20px;
  }
  .model-card strong {
    font-size: 15px;
  }
}
@media (max-height: 520px) {
  .chat-welcome {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .chat-header {
    min-height: 52px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .chat-quick-actions {
    display: none;
  }
  .chat-composer-region {
    padding-top: 4px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-reply.is-streaming::after {
    animation: none;
  }
}

/* VIB 游戏助手：独立消息滚动，底部快捷操作保持可达。 */
.vib-avatar {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid #3c3c40;
  border-radius: 9px;
  padding: 5px;
}
.vib-page .chat-header {
  gap: 10px;
  padding-left: 20px;
}
.vib-page .chat-message-author .vib-avatar {
  width: 24px;
  height: 24px;
  padding: 3px;
}
.vib-points {
  background: #18181b;
  border: 1px solid #343438;
  border-radius: 24px;
  padding: 5px 12px;
  color: #d1d1d8;
  font-size: 19px;
  white-space: nowrap;
}
.vib-points span {
  color: #f8c85b;
  font-size: 14px;
}
.vib-welcome {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 24px 30px;
}
.vib-welcome[hidden] {
  display: none;
}
.vib-eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #909098;
}
.vib-welcome h1 {
  margin: 16px 0 10px;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.8px;
}
.vib-welcome p {
  color: #9999a3;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 24px;
}
.vib-actions {
  gap: 8px;
}
.vib-actions button {
  gap: 6px;
  padding: 7px 10px;
  font-size: 12px;
}
.vib-actions svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.vib-actions button:disabled {
  opacity: 0.45;
  cursor: wait;
}
.vib-send {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 50%;
  color: #111;
  background: #ededed;
  font-size: 27px;
  display: grid;
  place-items: center;
  padding: 0;
}
.vib-send:disabled {
  background: #555;
}
.vib-card {
  background: #19191c;
  border: 1px solid #303034;
  border-radius: 18px;
  padding: 17px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.vib-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.vib-card p {
  font-size: 12px;
  color: #a3a3ad;
  line-height: 1.8;
  margin: 10px 0 16px;
}
.vib-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.vib-status {
  padding: 3px 6px;
  border-radius: 5px;
  color: #99d8b4;
  background: #213329;
  font-size: 10px;
  white-space: nowrap;
}
.vib-site-row {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid #303034;
}
.vib-site-row:last-child {
  padding-bottom: 4px;
}
.vib-site-row > img,
.vib-account-brand > img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.vib-site-row > div {
  flex: 1;
  min-width: 0;
}
.vib-site-row strong {
  font-size: 15px;
}
.vib-site-row span {
  display: block;
  font-size: 10px;
  color: #8d8d98;
  margin-top: 5px;
}
.vib-site-row button {
  border: 1px solid #48484d;
  border-radius: 20px;
  padding: 7px 10px;
  background: #252528;
  color: #eee;
  font-size: 12px;
  white-space: nowrap;
}
.vib-game-row {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
  background: #222226;
  border: 1px solid #333339;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
  color: #eee;
}
.vib-game-row img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
}
.vib-game-row span {
  min-width: 0;
  flex: 1;
}
.vib-game-row strong {
  display: block;
  font-size: 14px;
}
.vib-game-row small {
  display: block;
  color: #aaaab3;
  font-size: 10px;
  margin-top: 6px;
}
.vib-game-row b {
  font-size: 22px;
  color: #8d8d95;
}
.vib-card-foot {
  color: #92929b;
  font-size: 11px;
  line-height: 1.8;
  padding-top: 15px;
}
.vib-card-primary {
  width: 100%;
  background: #e9e9ec;
  color: #19191b;
  padding: 12px;
  border: 0;
  border-radius: 22px;
  font-weight: 600;
  font-size: 13px;
}
.vib-text-button {
  display: block;
  border: 0;
  background: transparent;
  color: #aaa;
  margin: 14px auto 0;
  font-size: 12px;
}
.vib-account-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}
.vib-account-brand p {
  margin: 3px 0 0;
}
.vib-account-report {
  margin: 14px 0;
}
.vib-account-report > div {
  padding: 12px 0;
  border-bottom: 1px solid #303034;
}
.vib-account-report dt {
  font-size: 13px;
  color: #f3f3f4;
}
.vib-account-report dd {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #97979f;
}
.vib-connect {
  text-align: center;
}
.vib-connect > .vib-avatar {
  width: 54px;
  height: 54px;
  padding: 10px;
}
.vib-connect h3 {
  font-size: 20px;
  margin: 18px 0 12px;
}
.vib-connect p {
  color: #a5a5ae;
  line-height: 1.8;
  font-size: 13px;
}
.vib-connect-account {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: #26262c;
  border-radius: 12px;
  margin: 22px 0;
  font-size: 13px;
  gap: 10px;
}
.vib-connect-account span {
  color: #a5a5ae;
}
.vib-switch-title {
  font-size: 14px;
  color: #a8a8b2;
  margin-top: 24px;
}
.vib-point-info > strong {
  font-size: 36px;
  color: #f3cf79;
}
.vib-point-info > strong span {
  font-size: 14px;
  color: #999;
}
.vib-game-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #101015;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vib-game-panel > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  min-height: 56px;
}
.vib-game-panel header strong {
  flex: 1;
  font-size: 15px;
}
.vib-game-panel header button {
  color: #ddd;
  border: 1px solid #3c3c43;
  background: #222228;
  border-radius: 18px;
  padding: 7px 10px;
  font-size: 12px;
}
.vib-game-panel iframe {
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  background: #111;
}
.vib-binding-status {
  color: #dedee9;
  background: #252633;
  padding: 9px 14px;
  font-size: 12px;
  line-height: 1.6;
}
.vib-sdk-status {
  color: #d3c393;
  background: #29271d;
  padding: 8px 14px;
  font-size: 11px;
  line-height: 1.6;
}
.vib-sdk-status.ready {
  color: #a7c9b7;
  background: #1e2c26;
}
.vib-game-note {
  color: #888891;
  padding: 7px 12px max(7px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 10px;
}
@media (max-width: 350px) {
  .vib-page .chat-header {
    padding-left: 14px;
    padding-right: 14px;
    gap: 6px;
  }
  .vib-points {
    padding: 4px 9px;
    font-size: 16px;
  }
  .vib-welcome {
    padding: 24px 20px;
  }
  .vib-welcome h1 {
    font-size: 25px;
  }
  .vib-card {
    padding: 13px;
  }
  .vib-site-row {
    gap: 8px;
  }
}

.vib-site-row button:disabled,
.vib-game-row:disabled,
.vib-card-primary:disabled,
.vib-text-button:disabled {
  opacity: 0.45;
  cursor: wait;
}

/* 邀请：独立 H5 页面、政策、记录和提现演示。 */
.invite-page {
  min-height: 100%;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px
    calc(32px + env(safe-area-inset-bottom, 0px));
  background: #0e0e0e;
  overflow-wrap: anywhere;
}
.invite-home {
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(ellipse 220px 170px at 12% 0, #52678b80, transparent), #0e0e0e;
}
.invite-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 24px;
}
.invite-home .invite-header {
  margin-bottom: 38px;
}
.invite-header h1 {
  flex: 1;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}
.invite-subheader h1 {
  font-size: 20px;
}
.invite-header a,
.invite-section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #bcbfc7;
  font-size: 13px;
  text-decoration: none;
}
.invite-header a span,
.invite-section-heading a span {
  font-size: 24px;
}
.invite-share-card {
  position: relative;
  padding: 24px 20px 18px;
  border: 1px solid #34363b;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 250px 140px at 0 100%, #506f9366, transparent),
    linear-gradient(135deg, #1d2027bf, #151515);
  box-shadow: inset 0 1px 0 #ffffff08;
}
.invite-share-card h2 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.invite-share-card p,
.invite-share-card > span {
  color: #92969f;
  font-size: 13px;
  line-height: 1.7;
}
.invite-share-card > strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}
.invite-code {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 20px;
}
.invite-code span {
  display: block;
  color: #92969f;
  font-size: 13px;
}
.invite-code strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 6px;
}
.invite-code button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #eee;
}
.invite-share-card .invite-url {
  margin: 0 0 20px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.invite-page .primary-btn {
  min-height: 46px;
  border-radius: 16px;
  border-color: #7d828d;
  background: linear-gradient(135deg, #ffffff15, #ffffff0a);
}
.invite-guest p {
  margin: 20px 0;
}
.invite-guest .primary-btn {
  margin-top: 22px;
}
.invite-guest-note {
  text-align: center;
  color: #8e919a;
  font-size: 12px;
  line-height: 2;
  padding: 44px 10px 0;
}
.invite-earnings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid #303032;
  border-radius: 22px;
  margin-top: 16px;
  background: radial-gradient(ellipse at 0 100%, #a58b4830, transparent 70%), #141414;
}
.invite-earnings h2 {
  margin: 0 0 4px;
  font-size: 13px;
  color: #eacd8c;
}
.invite-earnings p {
  color: #edcf8b;
  margin: 0;
  font-size: 14px;
}
.invite-earnings strong {
  font-size: 32px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.invite-earnings small {
  display: block;
  margin-top: 4px;
  color: #96938c;
  font-size: 12px;
}
.invite-earnings button {
  flex: 0 0 88px;
  width: 88px;
}
.invite-records {
  margin-top: 28px;
}
.invite-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.invite-section-heading h2 {
  font-size: 22px;
  margin: 0;
}
.invite-tabs {
  display: flex;
  gap: 12px;
}
.invite-tabs button {
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid #333;
  border-radius: 24px;
  background: #1b1b1b;
  color: #84858a;
  font-size: 14px;
}
.invite-tabs button[aria-pressed="true"] {
  color: #fff;
  border-color: #4a4c52;
  background: #25262a;
}
.invite-records-hint {
  font-size: 12px;
  color: #8a8d95;
  margin: 10px 0 0;
}
.invite-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 10px 28px;
  text-align: center;
  color: #62656d;
}
.invite-empty h3 {
  color: #9a9da4;
  font-weight: 400;
  font-size: 13px;
  margin: 8px 0 0;
}
.invite-empty p {
  margin: 0;
  font-size: 12px;
  color: #838791;
}
.invite-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.invite-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid #282a2e;
}
.invite-list li > div {
  min-width: 0;
  flex: 1;
}
.invite-list strong {
  display: block;
  color: #e7e9ef;
  font-size: 14px;
  font-weight: 500;
}
.invite-list small {
  display: block;
  color: #838791;
  font-size: 11px;
  margin-top: 6px;
}
.invite-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid #35455c;
  border-radius: 50%;
  color: #b2cbef;
  background: #1b2738;
  font-size: 12px;
}
.invite-member-level {
  font-size: 11px;
  color: #a5b6cf;
}
.invite-list-end,
.invite-demo-badge {
  color: #8a94a6;
  font-size: 11px;
  text-align: center;
  padding: 14px 0;
}
.invite-demo-badge {
  padding: 7px 10px;
  border: 1px solid #3b465b;
  border-radius: 8px;
  background: #1c2330;
  margin-bottom: 16px;
}
.invite-mini-button {
  border: 1px solid #454b57;
  border-radius: 20px;
  padding: 0 12px;
  background: #232b35;
}
.invite-policy {
  background: radial-gradient(ellipse 250px 320px at 100% 3%, #102c4d80, transparent), #090a0c;
}
.invite-policy-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 180px;
}
.invite-policy-hero p {
  font-size: 16px;
  margin: 0 0 10px;
  font-weight: 600;
}
.invite-policy-hero h2 {
  font-size: 29px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}
.invite-orbit {
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 45%;
  aspect-ratio: 1;
  border: 1px solid #5278ab;
  border-radius: 50%;
  box-shadow:
    0 0 40px #2d7be538,
    inset 0 0 22px #4593ed38;
}
.invite-orbit::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #9db9de88;
  border-radius: 50%;
}
.invite-orbit span {
  display: grid;
  place-items: center;
  width: 60%;
  aspect-ratio: 1;
  font-size: 64px;
  color: #a5d6ff;
  text-shadow: 0 0 24px #4596ee;
  background: linear-gradient(150deg, #264364, #090f19);
  border: 1px solid #d0b56b;
  border-radius: 26%;
}
.invite-orbit i {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid #bbd8ff;
  border-radius: 50%;
  background: #4387c8;
  bottom: 12%;
  left: 12%;
  box-shadow: 0 0 14px #529ae7;
}
.invite-orbit i:nth-of-type(2) {
  left: auto;
  right: 10%;
  bottom: 19%;
}
.invite-orbit i:nth-of-type(3) {
  bottom: auto;
  top: 0;
  left: 50%;
}
.invite-policy-lead {
  font-size: 14px;
  line-height: 1.8;
  color: #b5bac5;
  margin: 8px 0 24px;
}
.invite-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}
.invite-benefits article {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid #3a414a;
  border-radius: 18px;
  background: #11151a;
}
.invite-benefits article > span {
  color: #85b6fa;
  font-size: 28px;
  text-shadow: 0 0 15px #4785f9;
}
.invite-benefits h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
.invite-benefits p {
  margin: 0;
  color: #959ba8;
  font-size: 11px;
  line-height: 1.6;
}
.invite-policy-section {
  margin-top: 18px;
  padding: 20px 16px;
  border: 1px solid #34383e;
  border-radius: 20px;
  background: #101114;
}
.invite-policy-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin: 0 0 14px;
}
.invite-policy-section h2 b {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border: 1px solid #555b66;
  border-radius: 50%;
  font-size: 14px;
  background: #282c34;
}
.invite-policy-section > p {
  color: #a7adb8;
  font-size: 13px;
  line-height: 1.8;
  margin: 12px 0;
}
.invite-policy-section > h3 {
  margin-top: 20px;
  font-size: 15px;
}
.invite-team-example,
.invite-rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.invite-team-example article {
  text-align: center;
  padding: 14px 6px;
  border: 1px solid #373940;
  border-radius: 12px;
}
.invite-team-example h3 {
  font-size: 14px;
  color: #e8ca89;
  margin: 0;
}
.invite-team-example p {
  min-height: 48px;
  margin: 12px 0;
  font-size: 11px;
  color: #a7adb8;
}
.invite-team-example strong {
  display: block;
  color: #a0c9ff;
  font-size: 27px;
}
.invite-team-example small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: #8c95a4;
}
.invite-team-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.invite-team-total strong {
  color: #edce8b;
  font-size: 28px;
}
.invite-team-total small {
  font-size: 12px;
}
.invite-rates > div {
  text-align: center;
}
.invite-rates strong {
  display: block;
  font-size: 36px;
  font-weight: 650;
  color: #f0d194;
}
.invite-rates small {
  font-size: 17px;
}
.invite-rates span {
  font-size: 11px;
  color: #a5acb7;
}
.invite-growth {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.invite-growth li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #262b32;
}
.invite-growth li:last-child {
  border: 0;
  padding-bottom: 0;
}
.invite-growth b {
  color: #d7bf84;
  font-size: 22px;
}
.invite-growth h3 {
  font-size: 14px;
  margin: 0;
}
.invite-growth p {
  font-size: 12px;
  color: #969eab;
  margin: 6px 0 0;
}
.invite-policy-outro {
  text-align: center;
  margin: 28px 0 20px;
  font-size: 15px;
}
.invite-methods button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 4px;
  color: #eee;
  border: 0;
  background: transparent;
  text-align: left;
}
.invite-methods button > span:nth-child(2) {
  flex: 1;
}
.invite-methods strong,
.invite-methods small {
  display: block;
}
.invite-methods strong {
  font-size: 17px;
  font-weight: 500;
}
.invite-methods small {
  color: #a4a7ae;
  font-size: 12px;
  margin-top: 4px;
}
.invite-method-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 24px;
  background: #1c886d;
}
.invite-method-icon.usdc {
  background: #2779bc;
}
.invite-methods i {
  width: 24px;
  height: 24px;
  border: 1px solid #555;
  border-radius: 50%;
}
.invite-methods button[aria-pressed="true"] i {
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
}
.invite-methods button[aria-pressed="true"] i::after {
  content: "✓";
  font-style: normal;
}
.invite-methods + button {
  margin-top: 20px;
}
.invite-withdraw select {
  width: 100%;
  max-width: 100%;
  flex: auto;
  font-size: 13px;
  padding-right: 40px;
  background-position: right 14px center;
}
.invite-phone-prefix {
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #343434;
  border-radius: 14px;
  color: #ccc;
  background: #202020;
}
.invite-all {
  position: absolute;
  top: 0;
  right: 0;
  height: 54px;
  padding: 0 15px;
  color: #e2e9f7;
  border: 0;
  background: none;
}
#withdraw-amount {
  padding-right: 64px;
}
.invite-token {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #b9bfca;
  font-size: 14px;
}
.invite-withdraw-notes,
.invite-withdraw-history {
  margin-top: 30px;
}
.invite-withdraw-notes h2,
.invite-withdraw-history h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.invite-withdraw-notes ul {
  padding-left: 18px;
  color: #949ba7;
  font-size: 12px;
  line-height: 1.9;
}
.invite-copy-text {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border: 1px solid #536078;
  border-radius: 12px;
  background: #15171c;
  color: #e5eaf4;
  font: inherit;
  resize: vertical;
}
.sheet:has(.auth-page) {
  max-height: 94dvh;
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}
.sheet .auth-page {
  background: none;
  min-height: 0;
  padding: 12px 0 0;
}
.sheet .auth-page h1 {
  font-size: 27px;
}
.sheet .auth-bottom {
  margin-top: 24px;
}
@media (max-width: 350px) {
  .invite-page {
    padding-left: 12px;
    padding-right: 12px;
  }
  .invite-share-card {
    padding: 20px 16px 16px;
  }
  .invite-share-card h2 {
    font-size: 21px;
  }
  .invite-policy-hero h2 {
    font-size: 25px;
  }
  .invite-benefits article {
    padding: 12px 8px;
  }
  .invite-benefits article > span {
    font-size: 22px;
  }
  .invite-rates strong {
    font-size: 30px;
  }
}

/* 我的：移动端个人中心与二级页面。 */
.profile-page {
  min-height: 100%;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px
    calc(28px + env(safe-area-inset-bottom, 0px));
  background: #0e0e0e;
  overflow-wrap: anywhere;
  color: #f5f5f5;
}
.profile-home {
  padding-bottom: calc(var(--tabbar-height) + 44px);
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 24px;
}
.profile-header h1 {
  flex: 1;
  min-width: 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}
.profile-subheader h1 {
  font-size: 20px;
}
.profile-subheader .back-button {
  background: #242424;
  border: 1px solid #333;
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 4px 28px;
  min-height: 80px;
}
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 2px solid #303030;
  border-radius: 50%;
  background: #1c1c1c;
  color: #505050;
  overflow: hidden;
}
.profile-avatar svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  stroke: none;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-level-badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 60px;
  border: 1px solid #31465c;
  border-radius: 20px;
  padding: 3px 8px;
  background: linear-gradient(110deg, #122643, #11151b);
  color: #dae7f5;
  font-size: 11px;
  white-space: nowrap;
}
.profile-identity-copy {
  min-width: 0;
}
.profile-identity-copy > strong,
.profile-identity-copy > button {
  display: block;
  text-align: left;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  background: none;
  border: 0;
}
.profile-identity-copy small {
  display: block;
  margin-top: 7px;
  color: #b6b6bb;
  font-size: 12px;
}
.profile-identity-copy .profile-uid {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.profile-uid button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 0;
  background: none;
}
.profile-card {
  padding: 18px 16px 20px;
  margin-bottom: 12px;
  background: #1d1d1d;
  border: 1px solid #242424;
  border-radius: 22px;
}
.profile-points {
  background: linear-gradient(120deg, #1b1b1b, #121212);
}
.profile-card-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin-bottom: 14px;
}
.profile-card h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}
.profile-info {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8b8b8b;
  font-size: 11px;
  font-weight: 600;
}
.profile-info::first-letter {
  border: 1px solid currentColor;
}
.profile-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #babcbf;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.profile-card-heading .profile-text-link {
  margin-left: auto;
  background: none;
  border: 0;
  min-height: 30px;
}
.profile-text-link span {
  font-size: 22px;
}
.profile-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.profile-amount {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 0;
  color: #f3cf86;
  line-height: 1.2;
}
.profile-amount strong {
  font-size: 32px;
  font-weight: 750;
}
.profile-amount > span {
  color: #838383;
  font-size: 13px;
}
.profile-balance {
  align-items: center;
  gap: 5px;
  color: #fff;
}
.profile-balance strong {
  font-size: 26px;
}
.profile-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 18px;
  border: 1px solid #818181;
  border-top-color: #b5b5b5;
  border-radius: 16px;
  background: linear-gradient(125deg, #ffffff16, #ffffff04 60%, #ffffff12);
  box-shadow: inset 0 1px 8px #ffffff08;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}
.profile-pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.profile-wide {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  border-radius: 20px;
}
.profile-vip {
  position: relative;
  isolation: isolate;
  margin-bottom: 12px;
  padding: 17px 20px 20px;
  border: 1px solid #5a6978;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 85% at 100% 115%, #4bd6ff 5%, #5fd9e1 35%, transparent 90%),
    radial-gradient(ellipse 55% 70% at -10% -25%, #afc6d8, transparent 100%), #1e1e1e;
}
.profile-vip h2 {
  font-size: 22px;
  font-style: italic;
  font-weight: 800;
  margin: 0 70px 5px 0;
}
.profile-vip p {
  color: #999;
  font-size: 12px;
  margin: 0 50px 18px 0;
  line-height: 1.6;
}
.profile-vip .profile-pill {
  width: 100%;
  min-height: 44px;
  font-size: 14px;
}
.profile-vip-gem {
  position: absolute;
  z-index: -1;
  right: 21px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 45px;
  height: 48px;
  border: 3px solid #b7ecf4;
  border-radius: 13px 15px 21px 12px;
  background: linear-gradient(135deg, #effbff, #4f9cc1 50%, #9cefff);
  box-shadow:
    inset 0 0 0 4px #e5ffff80,
    4px 3px 0 #5897a9;
  transform: rotate(18deg);
  color: #30677e;
  font-size: 30px;
  font-style: italic;
  font-weight: 900;
}
/* 机器人：入口、星级预览与待定购买说明。 */
.profile-robot-entry {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 158px;
  padding: 18px 18px 16px;
  margin-bottom: 12px;
  overflow: hidden;
  text-align: left;
  color: #f5f5f5;
  border: 1px solid #46595b;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 100% 70%, #6bdce329, transparent 65%),
    linear-gradient(125deg, #242a2d, #15191b 70%);
}
.profile-robot-entry-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 7px;
  padding-right: 78px;
}
.profile-robot-eyebrow {
  color: #a9c6ce;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}
.profile-robot-entry-copy > strong {
  font-size: 19px;
  line-height: 1.4;
}
.profile-robot-entry-copy > small {
  color: #a1aaad;
  font-size: 11px;
  line-height: 1.5;
}
.profile-robot-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  margin-top: 5px;
  color: #d2f1f2;
  font-size: 12px;
  font-weight: 600;
}
.profile-robot-entry-link > span {
  font-size: 17px;
}
.profile-robot-art {
  display: block;
  flex-shrink: 0;
  width: 120px;
  height: 136px;
  object-fit: contain;
}
.profile-robot-entry > .profile-robot-art {
  position: absolute;
  width: 104px;
  height: 126px;
  right: 6px;
  bottom: 5px;
  transform: rotate(5deg);
}
.profile-robot-art.robot-tone-silver {
  filter: saturate(0.18);
}
.profile-robot-art.robot-tone-gold {
  filter: hue-rotate(185deg) saturate(0.7);
}
.profile-robot-art.robot-tone-violet {
  filter: hue-rotate(65deg) saturate(0.7);
}
.profile-robots {
  padding-bottom: calc(152px + env(safe-area-inset-bottom, 0px));
}
.profile-robot-rules {
  min-height: 36px;
  flex-shrink: 0;
  padding: 6px 0 6px 8px;
  border: 0;
  background: transparent;
  color: #b5b7bc;
  font-size: 12px;
}
.profile-robot-intro {
  margin: 0 2px 22px;
}
.profile-robot-intro h2 {
  margin: 8px 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
.profile-robot-intro h2 span {
  color: #c4e5e9;
}
.profile-robot-intro p {
  margin: 0;
  color: #999da4;
  font-size: 12px;
  line-height: 1.7;
}
.profile-robot-preview {
  padding: 18px 16px 14px;
  border: 1px solid #3c4c55;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 100% 20%, #5bbec12b, transparent 65%),
    linear-gradient(130deg, #262b31, #171a1e);
}
.profile-robot-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 148px;
}
.profile-robot-preview-top > div {
  flex: 1;
  min-width: 0;
}
.profile-robot-preview h2 {
  margin: 8px 0 7px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
}
.profile-robot-preview h2 small,
.profile-robot-tier-name strong small {
  color: #aab5c2;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.profile-robot-stars {
  color: #edca82;
  font-size: 17px;
  letter-spacing: 3px;
  line-height: 1.3;
}
.profile-robot-preview-label {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 8px;
  border: 1px solid #4a5059;
  border-radius: 8px;
  color: #b5c0cc;
  font-size: 10px;
  line-height: 1.5;
}
.profile-robot-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 0;
  padding: 14px 0 4px;
  border-top: 1px solid #ffffff14;
  text-align: center;
}
.profile-robot-overview > div + div {
  border-left: 1px solid #ffffff14;
}
.profile-robot-overview dt {
  color: #a6adb7;
  font-size: 11px;
}
.profile-robot-overview dd {
  margin: 7px 0 0;
  color: #e4e8ee;
  font-size: 16px;
  font-weight: 600;
}
.profile-robot-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 27px 0 13px;
}
.profile-robot-list-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.profile-robot-list-heading > span {
  color: #93969d;
  font-size: 11px;
}
.profile-robot-tiers {
  display: grid;
  gap: 12px;
}
.profile-robot-tier {
  display: block;
  width: 100%;
  padding: 13px 16px 16px;
  text-align: left;
  color: #f4f5f7;
  background: #1c1d20;
  border: 1px solid #303237;
  border-radius: 20px;
  scroll-margin-bottom: 160px;
}
.profile-robot-tier[aria-pressed="true"] {
  background: linear-gradient(125deg, #253238, #1b2228);
  border-color: #9dcdd6;
  box-shadow: inset 0 0 0 1px #9dcdd61a;
}
.profile-robot-tier-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.profile-robot-tier-head .profile-robot-art {
  width: 49px;
  height: 59px;
}
.profile-robot-tier-name {
  display: grid;
  flex: 1;
  gap: 7px;
  min-width: 0;
}
.profile-robot-tier-name > strong {
  font-size: 16px;
  line-height: 1.4;
}
.profile-robot-tier-name .profile-robot-stars {
  font-size: 13px;
  letter-spacing: 2px;
}
.profile-robot-check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #62686f;
  border-radius: 50%;
}
.profile-robot-tier[aria-pressed="true"] .profile-robot-check {
  background: #c4e5e9;
  border-color: #c4e5e9;
  color: #192125;
}
.profile-robot-tier[aria-pressed="true"] .profile-robot-check::after {
  content: "✓";
  font-size: 12px;
  font-weight: 800;
}
.profile-robot-tier-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 24px;
  padding-top: 12px;
  border-top: 1px solid #ffffff12;
}
.profile-robot-tier-details > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.profile-robot-tier-details small {
  color: #a3a5ae;
  font-size: 11px;
}
.profile-robot-tier-details strong {
  color: #d1d4da;
  font-size: 12px;
  font-weight: 500;
}
.profile-robot-note {
  display: flex;
  gap: 8px;
  margin: 18px 2px 0;
  color: #92979f;
  font-size: 11px;
  line-height: 1.8;
}
.profile-robot-note p {
  margin: 0;
}
.profile-robot-purchase {
  position: fixed;
  z-index: 65;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  padding: 13px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #343638;
  background: #131517f5;
  backdrop-filter: blur(16px);
}
.profile-robot-selection {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 12px;
  color: #979da5;
  font-size: 11px;
}
.profile-robot-selection strong {
  margin-left: 3px;
  color: #edf1f5;
  font-size: 13px;
  font-weight: 600;
}
.profile-robot-purchase > small {
  display: block;
  margin-top: 8px;
  text-align: center;
  color: #989da4;
  font-size: 10px;
}
@media (max-width: 350px) {
  .profile-robot-entry {
    min-height: 150px;
    padding: 16px 12px;
  }
  .profile-robot-entry-copy > strong {
    font-size: 17px;
  }
  .profile-robot-entry-copy > small {
    max-width: 145px;
  }
  .profile-robot-intro h2 {
    font-size: 23px;
  }
  .profile-robot-preview {
    padding-left: 12px;
    padding-right: 12px;
  }
  .profile-robot-preview-top > .profile-robot-art {
    width: 90px;
    height: 112px;
  }
  .profile-robot-preview h2 {
    font-size: 19px;
  }
  .profile-robot-tier {
    padding-left: 12px;
    padding-right: 12px;
  }
  .profile-robot-tier-details {
    column-gap: 16px;
  }
}
.profile-menu {
  display: grid;
  gap: 12px;
}
.profile-menu > button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  width: 100%;
  border: 1px solid #242424;
  border-radius: 21px;
  padding: 12px 16px;
  background: #1d1d1d;
  text-align: left;
  color: #fff;
  font-size: 14px;
}
.profile-menu-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #282828;
}
.profile-menu-icon svg {
  width: 16px;
  height: 16px;
}
.profile-chevron {
  margin-left: auto;
  font-size: 24px;
  color: #c9c9c9;
  line-height: 1;
}
#overlay:has(.profile-dialog) {
  align-items: center;
  padding: 24px;
  backdrop-filter: none;
}
#overlay .profile-dialog {
  padding: 20px 24px 24px;
  border: 1px solid #333;
  border-radius: 28px;
  background: #252525;
}
.profile-dialog .sheet-handle {
  display: none;
}
.profile-dialog .sheet-top {
  margin-bottom: 18px;
}
.profile-dialog h2 {
  font-size: 18px;
}
.profile-dialog .profile-copy-value {
  user-select: all;
}
.profile-demo {
  color: #888;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  margin: 20px 0;
}
.profile-purchase-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: #222;
  margin: 25px 0 16px;
}
.profile-purchase-note strong {
  font-size: 16px;
}
.profile-purchase-note p {
  color: #8b8b8b;
  font-size: 12px;
  line-height: 1.65;
  margin: 4px 0 0;
}
.profile-packages {
  display: grid;
  gap: 12px;
}
.profile-packages button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 16px;
  border: 1px solid #303030;
  border-radius: 18px;
  background: #202020;
  color: #b6b6bd;
  font-size: 17px;
  text-align: left;
}
.profile-packages button[aria-pressed="true"] {
  border-color: #d9d9d9;
  background: #292929;
  color: #fff;
}
.profile-packages span {
  color: #f3cf86;
  font-weight: 700;
  font-size: 20px;
}
.profile-pro-heading {
  padding: 10px 4px 22px;
}
.profile-pro-heading h2 {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -1px;
  margin: 0 0 8px;
  background: linear-gradient(#fff 40%, #777);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.profile-pro-heading p {
  color: #b8b8bf;
  font-size: 14px;
  margin: 0;
}
.profile-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid #333;
  border-radius: 18px;
  background: #202020;
}
.profile-plans button {
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #a8a8ad;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
.profile-plans button[aria-pressed="true"] {
  border-color: #858585;
  background: linear-gradient(120deg, #363636, #272727);
  color: #fff;
}
.profile-price-note {
  margin: 10px 4px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #9b9ba1;
}
.profile-tiers {
  display: grid;
  gap: 12px;
}
.profile-tier {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #363636;
  border-radius: 22px;
  background: linear-gradient(120deg, #1c1c1c, #171717);
  color: #ededed;
  text-align: left;
}
.profile-tier[aria-pressed="true"] {
  border-color: #999;
  background: linear-gradient(120deg, #303030, #202020);
  box-shadow: inset 0 1px 10px #ffffff05;
}
.profile-tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.profile-tier-top > strong {
  font-size: 21px;
  letter-spacing: -0.3px;
}
.profile-tier-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #606060;
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
}
.profile-tier[aria-pressed="true"] .profile-tier-check {
  background: #ededed;
  border-color: #ededed;
  color: #222;
}
.profile-tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.profile-tier-price > strong {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.profile-tier-price > span {
  font-size: 13px;
  color: #b6b6bc;
}
.profile-tier-price > small {
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.6;
  color: #cfbd96;
  background: #cfbd9612;
}
.profile-tier-caption {
  font-size: 12px;
  line-height: 1.6;
  color: #a3a3a9;
}
.profile-subscription-details {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #303030;
  border-radius: 20px;
  background: linear-gradient(115deg, #161616, #1b1b1b);
}
.profile-subscription-details h3 {
  margin: 0 0 14px;
  font-size: 13px;
  color: #aeb2b8;
  font-weight: 500;
}
.profile-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.profile-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.profile-benefits li span {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  height: 26px;
  background: #292929;
  border-radius: 50%;
  color: #cce8f5;
}
.profile-ultra-details p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #a7a7af;
}
.profile-subscription-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 4px 12px;
  font-size: 13px;
  color: #ccc;
}
.profile-subscription-summary strong {
  font-size: 12px;
  color: #a7a7af;
  font-weight: 400;
}
.profile-legal-links {
  margin: 28px 0 8px;
  text-align: center;
  color: #8b8b8b;
  font-size: 12px;
  text-decoration: underline;
}
.profile-growth-card {
  padding: 24px 20px 18px;
  border: 1px solid #344b6d;
  border-radius: 24px;
  background: linear-gradient(125deg, #153c5e, #0a111f 50%, #090d18);
  margin: 26px 4px 40px;
  box-shadow: 0 0 26px #22527e1a;
}
.profile-growth-top {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #27456d;
  margin-bottom: 14px;
}
.profile-level-medal,
.profile-level-node {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border: 2px solid #58c8fb;
  border-radius: 50%;
  box-shadow:
    inset 0 0 13px #2493ee,
    0 0 12px #1389f9;
  background: radial-gradient(ellipse at 50% 0, #5bb9fb, #001630 70%);
  font-size: 26px;
  font-weight: 750;
  color: #effaff;
  text-shadow: 0 0 6px #1eb6ff;
}
.profile-growth-top h2 {
  font-size: 32px;
  margin: 8px 0;
}
.profile-growth-top small,
.profile-growth-card p {
  font-size: 12px;
  color: #b9c3d3;
}
.profile-growth-top em {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 6px;
  border: 1px solid #8cc8ac;
  border-radius: 14px;
  color: #9cd7b3;
  font-style: normal;
}
.profile-growth-card progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border: 1px solid #234064;
  border-radius: 10px;
  margin: 10px 0;
  background: #080e18;
}
.profile-growth-card progress::-webkit-progress-bar {
  background: #080e18;
  border-radius: 10px;
}
.profile-growth-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
}
.profile-section-title {
  margin: 0 4px 24px;
  font-size: 20px;
  font-weight: 700;
}
.profile-levels {
  list-style: none;
  padding: 0 4px;
}
.profile-levels li {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 30px;
}
.profile-levels li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 45px;
  bottom: 0;
  left: 22px;
  width: 2px;
  background: #454545;
}
.profile-level-node {
  width: 46px;
  height: 46px;
  font-size: 20px;
  box-shadow: inset 0 0 8px #2493ee;
}
.profile-levels li > div {
  flex: 1;
  border-bottom: 1px solid #262626;
  padding: 10px 0 20px;
}
.profile-levels h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.profile-levels h3 small {
  font-size: 12px;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 3px 8px;
  font-weight: 400;
}
.profile-levels p {
  font-size: 14px;
  line-height: 2;
}
.profile-empty {
  padding: 38px 12px;
  text-align: center;
  color: #b9b9bf;
  font-size: 14px;
}
.profile-records {
  list-style: none;
  padding: 0;
}
.profile-records li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #292929;
  font-size: 14px;
}
.profile-records small {
  display: block;
  margin-top: 7px;
  color: #888;
  font-size: 11px;
}
.profile-records li > div:last-child {
  text-align: right;
  flex-shrink: 0;
}
.profile-settings {
  display: flex;
  flex-direction: column;
}
.profile-settings-list {
  display: grid;
  gap: 12px;
}
.profile-settings-list > button,
.profile-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid #282828;
  border-radius: 17px;
  background: #1e1e1e;
  color: #fff;
  text-align: left;
  font-size: 14px;
}
.profile-settings-list small {
  display: block;
  margin-top: 4px;
  color: #bcbcc2;
  font-size: 12px;
}
.profile-language select {
  width: 64%;
  min-height: 42px;
  padding-right: 36px;
  border-radius: 14px;
  background-position: right 14px center;
}
.profile-settings-bottom {
  margin-top: auto;
  padding-top: 90px;
  padding-bottom: 60px;
}
.profile-avatar-editor {
  text-align: center;
  margin: 34px 0 36px;
}
.profile-avatar-editor label {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  color: #b6b6bc;
  cursor: pointer;
}
.profile-avatar-editor .profile-avatar {
  width: 94px;
  height: 94px;
}
.profile-avatar-editor input {
  margin: 14px auto 0;
  width: 100%;
  font-size: 12px;
}
.profile-article p {
  font-size: 16px;
  line-height: 1.9;
  margin: 24px 0;
}
.profile-support {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}
.profile-support .profile-header {
  flex-shrink: 0;
  margin-bottom: 12px;
}
.profile-support-hero {
  text-align: center;
  padding: 18px 0 20px;
  border-bottom: 1px solid #333;
  background: radial-gradient(ellipse at 50% 0%, #193151, transparent 70%);
}
.profile-support-hero > span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #438fe5;
  border-radius: 50%;
  font-size: 30px;
}
.profile-support-hero h2 {
  font-size: 16px;
  margin: 14px 0 4px;
}
.profile-support-hero p {
  color: #aaa;
  font-size: 12px;
}
.profile-messages {
  flex: 1;
  overflow-y: auto;
  min-height: 80px;
  padding: 18px 0;
}
.profile-chat-message {
  width: fit-content;
  max-width: 90%;
  background: #2e2e2e;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 14px;
  white-space: pre-wrap;
}
.profile-chat-message.from-user {
  background: #205b9c;
  margin-left: auto;
}
.profile-support-form {
  border: 1px solid #444;
  background: #303030;
  border-radius: 18px;
  padding: 12px;
}
.profile-support-form textarea {
  width: 100%;
  resize: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline-offset: 1px;
}
.profile-support-form > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-support-form > div > span {
  flex: 1;
  font-size: 10px;
  color: #aaa;
}
@media (max-width: 350px) {
  .profile-page {
    padding-left: 12px;
    padding-right: 12px;
  }
  .profile-card {
    padding: 14px 12px 18px;
  }
  .profile-card-bottom {
    gap: 8px;
  }
  .profile-vip {
    padding-left: 16px;
    padding-right: 16px;
  }
  .profile-tier {
    padding: 14px;
  }
  .profile-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .profile-growth-card {
    padding: 20px 14px;
  }
  .profile-growth-top {
    gap: 14px;
  }
  .profile-growth-top em {
    margin-left: 0;
  }
}

/* 公会内容区，使用全局底栏与弹层。 */
.guild-page {
  --guild-secondary: #babcbf;
  --guild-muted: #838383;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  padding-bottom: calc(var(--tabbar-height) + 28px);
  background: #0e0e0e;
  color: #fff;
}
.guild-page *,
.guild-explore-list *,
.guild-directory-list * {
  box-sizing: border-box;
}
.guild-page h1,
.guild-page h2,
.guild-page h3,
.guild-page p,
.guild-recommendation h3,
.guild-recommendation p {
  margin: 0;
}
.guild-page button,
.guild-page select {
  font: inherit;
}
.guild-page button {
  -webkit-appearance: none;
}
.guild-page img,
.guild-recommendation img {
  display: block;
  flex-shrink: 0;
}
.guild-header-glow {
  position: absolute;
  top: -62px;
  left: 0;
  width: 336px;
  height: 281px;
  pointer-events: none;
}
.guild-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(62px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 20px 0;
}
.guild-header h1 {
  background: linear-gradient(270deg, #ffffff4d 27.5%, #fff 68.6%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
}
.guild-header > div {
  display: flex;
  gap: 6px;
  margin-right: -4px;
}
.guild-header button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
}
.guild-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 8px 16px 0;
}
.guild-hero {
  position: relative;
  min-height: 204px;
  overflow: hidden;
  border: 1px solid #8db3a280;
  border-radius: 24px;
  background: linear-gradient(180deg, #060a0ebf, #0b1217d9), #0e0e0e;
}
.guild-hero-art {
  position: absolute;
  top: -1px;
  right: -1px;
  height: 224px;
  pointer-events: none;
}
.guild-hero-art {
  width: 234px;
  height: 204px;
}
.guild-hero-light {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 370px;
  height: 204px;
  pointer-events: none;
}
.guild-hero-light img {
  position: absolute;
  max-width: none;
}
.guild-hero-light-one {
  left: 95.36px;
  top: 34.36px;
  transform: rotate(165.59deg) scaleY(-1);
  mix-blend-mode: plus-lighter;
}
.guild-hero-light-two {
  left: 239.48px;
  top: 189.63px;
  transform: rotate(165.59deg) scaleY(-1);
}
.guild-hero-light-three {
  left: 140px;
  top: -123px;
}
.guild-hero-light-four {
  left: 56px;
  top: 128px;
}
.guild-hero-copy {
  position: relative;
  padding: 33px 20px 36px;
}
.guild-hero h2 {
  width: max-content;
  background: linear-gradient(110deg, #ffffffe6 3%, #6ffffee6 62%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
  font-weight: 800;
  line-height: 24px;
}
.guild-hero p {
  margin-top: 8px;
  color: var(--guild-secondary);
  font-size: 12px;
  line-height: 16px;
}
.guild-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #cffffa;
  border-radius: 16px;
  background: linear-gradient(90deg, #4ae79f, #31c5d0);
  box-shadow: inset 0 0 16px #ffffff66;
  color: #0e0e0e;
  font-weight: 700 !important;
}
.guild-page .guild-tutorial-button {
  gap: 2px;
  height: 32px;
  margin-top: 12px;
  padding: 0 11px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 16px;
}
.guild-banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}
.guild-banner-dots i {
  width: 6px;
  height: 3px;
  border-radius: 4px;
  background: #ffffff40;
}
.guild-banner-dots i:first-child {
  width: 12px;
  background: white;
}
.guild-sites-section,
.guild-site-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guild-section-heading {
  padding: 0 8px;
}
.guild-section-heading h2 {
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}
.guild-section-heading p {
  margin-top: 2px;
  color: var(--guild-muted);
  font-size: 12px;
  line-height: 16px;
}
.guild-announcement {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f3cf861a, #86bbf31a);
}
.guild-announcement-glow {
  position: absolute;
  left: -69px;
  top: -48px;
  pointer-events: none;
}
.guild-speaker {
  position: relative;
  padding: 4px;
  border-radius: 10px;
  background: #f3cf861a;
}
.guild-announcement p {
  position: relative;
  font-size: 12px;
  line-height: 16px;
}
.guild-announcement strong {
  font-weight: 500;
}
.guild-announcement p span {
  color: #f3cf86;
  white-space: nowrap;
}
.guild-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.guild-segments {
  display: flex;
  flex: 1;
  min-width: 0;
  padding: 2px;
  border-radius: 12px;
  background: #1c1c1c;
}
.guild-segments button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  height: 40px;
  padding: 0 5px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--guild-muted);
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
}
.guild-segments button[aria-pressed="true"] {
  background: #262626;
  box-shadow: 0 3px 8px #0000001f;
  color: #fff;
  font-weight: 700;
}
.guild-sort {
  position: relative;
  flex: 0 0 92px;
  min-width: 0;
}
.guild-sort select {
  appearance: none;
  width: 100%;
  height: 40px;
  padding: 0 30px 0 14px;
  border: 0;
  border-radius: 12px;
  background: #1c1c1c;
  color: #fffffff2;
  font-size: 12px;
  cursor: pointer;
}
.guild-sort > img {
  position: absolute;
  top: 12px;
  right: 12px;
  pointer-events: none;
}
.guild-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.guild-site-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
  border: 1px solid #ffffff14;
  border-radius: 20px;
  background: #1f1f1f;
  backdrop-filter: blur(4px);
}
.guild-site-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.guild-site-logo {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid #ffffff33;
  border-radius: 16px;
}
.guild-site-content {
  flex: 1;
  min-width: 0;
}
.guild-site-title-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.guild-site-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.guild-site-name h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}
.guild-link-badge {
  padding: 0 4px;
  border: 1px solid #ffffff33;
  border-radius: 6px;
  background: #ffffff14;
  color: var(--guild-secondary);
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
}
.guild-link-badge.is-linked {
  border-color: #86f3a83d;
  background: #86f3a81a;
  color: #86f3a8;
}
.guild-domain {
  margin-top: 2px !important;
  color: var(--guild-muted);
  font-size: 12px;
  line-height: 16px;
}
.guild-favorite {
  display: grid;
  place-items: center;
  align-self: flex-start;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.guild-favorite[aria-pressed="true"] {
  background: #ffffff14;
}
.guild-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  margin-top: 2px;
  color: var(--guild-muted);
  font-size: 12px;
  line-height: 16px;
}
.guild-metrics > span {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  white-space: nowrap;
}
.guild-metrics strong {
  color: #fffffff2;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}
.guild-rtp {
  display: grid;
  place-items: center;
  width: 18px;
  height: 22px;
  margin-left: -2px;
  padding: 0;
  border: 0;
  background: transparent;
}
.guild-companion {
  position: relative;
  height: 42px;
}
.guild-companion-strip {
  position: absolute;
  inset: 6px 0 0;
  overflow: hidden;
  border-radius: 12px;
  container-type: inline-size;
}
.guild-companion-strip img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform: scaleX(calc(100cqw / 338px));
  transform-origin: left center;
}
.guild-companion-art {
  position: absolute;
  left: 0;
  top: 0;
  width: 76px;
  height: 42px;
}
.guild-companion p {
  position: relative;
  margin-left: 64px;
  padding-top: 16px;
  color: #fffffff2;
  font-size: 12px;
  line-height: 16px;
}
.guild-page .guild-site-open {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 18px;
}
.guild-button-glow {
  position: absolute;
  top: -47px;
  right: -41px;
  pointer-events: none;
}
.guild-button-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.guild-details-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  background: #03030333;
  box-shadow: inset 0 0 16px #444f6599;
}
.guild-details-glow {
  position: absolute;
  left: -65px;
  top: -36px;
  max-width: none;
  pointer-events: none;
}
.guild-emblem {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}
.guild-emblem > img:first-child {
  width: 56px;
  height: 56px;
  object-fit: cover;
}
.guild-emblem-spark {
  position: absolute;
  left: 26px;
  top: 7px;
  transform: rotate(-162.65deg);
}
.guild-details-copy {
  position: relative;
  flex: 1;
  min-width: 0;
}
.guild-details-copy h2 {
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}
.guild-details-copy p {
  margin-top: 2px;
  color: #ffffff59;
  font-size: 12px;
  line-height: 16px;
}
.guild-details-card button {
  position: relative;
  flex: 0 0 81px;
  height: 32px;
  padding: 0;
  border: 1px solid #ffffff1f;
  border-radius: 14px;
  background: #ffffff14;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.guild-more {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guild-more .guild-section-heading {
  padding: 0 4px;
}
.guild-recommendations {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-right: -16px;
  padding-right: 16px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.guild-recommendations::-webkit-scrollbar {
  display: none;
}
.guild-recommendation {
  display: flex;
  flex: 0 0 272px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  background: #1c1c1c;
  scroll-snap-align: start;
}
.guild-recommendation:nth-child(2) {
  flex-basis: 262px;
}
.guild-recommendation-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}
.guild-avatar {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
}
.guild-recommendation h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}
.guild-recommendation p {
  margin-top: 4px;
  color: #babcbf;
  font-size: 12px;
  line-height: 16px;
}
.guild-site-icons {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.guild-site-icons > span {
  position: relative;
  flex: 0 0 40px;
}
.guild-site-icons img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}
.guild-site-icons b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0008;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.guild-glass-button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  background: #ffffff14;
  box-shadow:
    inset 3px 3px 0.5px -3.5px #ffffff80,
    inset 2px 2px 1px -2px #666,
    inset -2px -2px 1px -2px #666,
    inset 0 0 0 1px #a6a6a6,
    inset 0 0 22px #f2f2f224;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}
.guild-recommendation .guild-glass-button {
  margin-top: 8px;
}
.guild-page .guild-explore {
  min-height: 48px;
  font-size: 16px;
  line-height: 20px;
}
.guild-empty {
  padding: 28px 20px;
  border: 1px solid #ffffff14;
  border-radius: 20px;
  text-align: center;
}
.guild-empty h3 {
  font-size: 16px;
}
.guild-empty p {
  margin: 10px 0 20px;
  color: var(--guild-secondary);
  font-size: 13px;
  line-height: 20px;
}
.guild-dialog-site {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.guild-dialog-site p {
  margin: 4px 0 0;
}
.guild-explore-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guild-explore-list .guild-recommendation {
  flex: none;
}
@media (max-width: 374px) {
  .guild-filters {
    gap: 8px;
  }
  .guild-segments button {
    gap: 3px;
    font-size: 12px;
  }
  .guild-sort {
    flex-basis: 88px;
  }
  .guild-sort select {
    padding-left: 10px;
  }
  .guild-hero-copy {
    padding-left: 16px;
    background: linear-gradient(90deg, #080e12f0, #080e12b3 60%, transparent);
  }
  .guild-companion p {
    padding-top: 10px;
    font-size: 11px;
  }
  .guild-details-card {
    gap: 8px;
    padding: 12px;
  }
  .guild-details-card button {
    flex-basis: 68px;
  }
  .guild-details-copy h2 {
    font-size: 13px;
  }
}

/* 公会目录：Figma 70:5145，游客目录与成员探索页共用布局。 */
.guild-directory-page {
  background: #000;
}
.guild-header .guild-directory-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.guild-directory-title .back-button {
  flex-basis: 42.7px;
  width: 42.7px;
  height: 42.7px;
  padding: 0;
  border: 0;
  background: transparent;
}
.guild-header .guild-create-shortcut {
  display: flex;
  align-items: center;
  gap: 4px;
  width: auto;
  height: 38px;
  padding: 8px 10px 8px 8px;
  border: 1px solid #fff3;
  border-radius: 12px;
  color: #fffefb;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}
.guild-directory-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 16px 0;
}
/* 探索页顶部官方公会卡片：Figma 70:5157。 */
.guild-featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  overflow: hidden;
  border: 1px solid #ffffff14;
  border-radius: 24px;
  background: linear-gradient(137.53deg, #262626a3 2.18%, #262626a3 52.17%, #235cf969 106.53%);
}
.guild-featured-card .guild-featured-background {
  position: absolute;
  top: -24px;
  left: -12px;
  width: calc(100% + 17px);
  max-width: none;
  height: auto;
  min-height: 257px;
  object-fit: cover;
  pointer-events: none;
}
.guild-featured-shade {
  position: absolute;
  top: -9px;
  left: 0;
  width: 100%;
  height: 257px;
  min-height: 100%;
  border-radius: 16px;
  background:
    linear-gradient(#0003, #0003),
    linear-gradient(180deg, #1c1c1c80 0%, #1c1c1c00 13.9%, #1c1c1c 80.3%);
  pointer-events: none;
}
.guild-featured-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 20px 3px 12px;
  border-bottom: 0.5px solid #d1e7ff00;
  border-left: 0.5px solid #d1e7ff00;
  border-radius: 0 0 0 12px;
  background: linear-gradient(#0006, #12285c66);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
}
.guild-featured-badge span {
  background: linear-gradient(270deg, #4372ff 9.89%, #fff 67.48%, #fff 97.83%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 7px #5476baba;
}
.guild-featured-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.guild-featured-logo {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 32px;
}
.guild-featured-logo-base {
  position: absolute;
  top: 3px;
  left: 1px;
  width: 44px;
  height: 41px;
  object-fit: cover;
}
.guild-featured-card .guild-featured-flag {
  position: absolute;
  top: 0;
  left: -9px;
  width: 66px;
  max-width: none;
  height: 48px;
  border-radius: 3.89px;
  object-fit: cover;
}
.guild-featured-heading h2 {
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}
.guild-featured-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #babcbf;
  font-size: 12px;
  line-height: 16px;
}
.guild-featured-country {
  display: flex;
  align-items: center;
  gap: 2px;
}
.guild-page .guild-featured-card .guild-official-button {
  position: relative;
  width: 191px;
  min-height: 32px;
  padding: 6px 10px;
  font-weight: 700;
}
.guild-unjoined-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #ffffff1f;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 100% 0, #305eb845, transparent 65%),
    linear-gradient(135deg, #181c24, #111319 65%, #1b2840);
}
.guild-unjoined-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.guild-unjoined-emblem {
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  width: 52px;
  height: 56px;
}
.guild-unjoined-emblem img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.guild-unjoined-eyebrow {
  color: #a3b7d7;
  font-size: 11px;
  line-height: 16px;
}
.guild-unjoined-heading h2 {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}
.guild-unjoined-copy {
  max-width: 30em;
  color: #babcbf;
  font-size: 12px;
  line-height: 19px;
}
.guild-page .guild-official-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-height: 34px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 16px;
}
.guild-official-button,
.guild-directory-card .guild-directory-apply {
  box-shadow:
    inset 0 1px 1px #ffffff4d,
    inset 0 0 0 1px #ffffff14,
    inset 0 0 16px #ffffff0d;
}
.guild-directory-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px 16px;
  overflow: hidden;
  border: 1px solid #ffffff1f;
  border-radius: 20px;
  background: #141414;
}
.guild-directory-panel > :not(img):not(.guild-sr-only) {
  position: relative;
}
.guild-directory-bottom-glow,
.guild-directory-top-glow,
.guild-directory-soft-glow {
  position: absolute;
  max-width: none;
  pointer-events: none;
}
.guild-directory-bottom-glow {
  left: calc(50% - 260px);
  bottom: -175px;
  transform: rotate(-6.68deg);
}
.guild-directory-top-glow {
  top: -220px;
  left: -250px;
  transform: rotate(12.17deg) scaleY(-1);
  mix-blend-mode: plus-lighter;
}
.guild-directory-soft-glow {
  top: -69px;
  right: -64px;
  mix-blend-mode: soft-light;
}
.guild-directory-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.guild-directory-art {
  position: relative;
  flex: 0 0 60px;
  width: 60px;
  height: 63px;
  overflow: hidden;
}
.guild-directory-art img {
  position: absolute;
  top: 50%;
  left: 50%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}
.guild-policy-art img {
  width: 67.3px;
  height: 67.3px;
  margin-left: -1.7px;
}
.guild-ranking-art img {
  width: 80px;
  height: 80px;
}
.guild-directory-feature-copy {
  flex: 1;
  min-width: 0;
}
.guild-directory-feature h2 {
  color: #fffffff2;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}
.guild-policy-panel ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.guild-policy-panel li {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  color: #babcbf;
  font-size: 12px;
  line-height: 16px;
}
.guild-policy-panel li img {
  margin-top: 2px;
}
.guild-page .guild-directory-action {
  align-self: center;
  width: calc(100% - 16px);
  min-height: 46px;
  padding: 12px;
  border: 1px solid #ffffff1a;
  border-top-color: #ffffff3d;
  border-radius: 16px;
  background: #ffffff08;
  box-shadow: inset 0 0 10px #ffffff12;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.guild-ranking-panel {
  padding-bottom: 20px;
}
.guild-ranking-heading h2 {
  font-size: 18px;
  line-height: 22px;
}
.guild-ranking-heading p {
  margin-top: 4px;
  color: #838383;
  font-size: 14px;
  line-height: 18px;
}
.guild-directory-search-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guild-directory-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  background: #1c1c1c;
}
.guild-directory-search:focus-within {
  border-color: #719bff;
}
.guild-directory-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  color-scheme: dark;
}
.guild-directory-search input::placeholder {
  color: #838383;
  opacity: 1;
}
.guild-directory-search-note {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 0 4px;
  color: #838383;
  font-size: 11px;
  line-height: 15px;
}
.guild-directory-search-note img {
  margin-top: 1px;
}
.guild-directory-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guild-directory-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  background: #1c1c1c;
}
.guild-directory-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.guild-directory-card-copy {
  flex: 1;
  min-width: 0;
}
.guild-directory-card h3,
.guild-directory-card h2 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.guild-directory-card p {
  margin: 4px 0 0;
  color: #babcbf;
  font-size: 12px;
  line-height: 17px;
}
.guild-directory-card .guild-directory-apply {
  flex: 0 0 72px;
  width: 72px;
  min-height: 32px;
  padding: 8px 6px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 16px;
}
.guild-directory-supported > p {
  margin: 0 0 8px;
  line-height: 16px;
}
.guild-directory-icons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 40px));
  gap: 8px;
}
.guild-directory-icons > span {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
}
.guild-directory-icons img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}
.guild-directory-icons b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #0008;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.guild-page .guild-directory-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  background: linear-gradient(110deg, #294368, #1b2029 50%, #37496a);
  box-shadow:
    inset 0 0 0 1px #b4ecffa6,
    inset 0 0 7px #d4e5ff80;
  font-size: 14px;
}
.guild-create-panel {
  padding: 20px 16px;
  background: #03030333;
  box-shadow: inset 0 0 16px #444f6599;
}
.guild-create-art {
  flex-basis: 64px;
  width: 64px;
  height: 76px;
}
.guild-create-art img {
  width: 89.6px;
  height: 89.6px;
  margin: 2.6px 0 0 -3.4px;
}
.guild-create-panel p {
  margin-top: 6px;
  color: #838383;
  font-size: 12px;
  line-height: 16px;
}
@media (max-width: 374px) {
  .guild-unjoined-card {
    padding: 16px;
  }
  .guild-unjoined-heading h2 {
    font-size: 20px;
  }
  .guild-directory-panel {
    padding: 16px 12px;
  }
  .guild-directory-card {
    padding: 12px;
  }
  .guild-directory-card-top {
    gap: 6px;
  }
  .guild-directory-card .guild-avatar {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
  .guild-directory-card h3 {
    font-size: 13px;
  }
  .guild-directory-card .guild-directory-apply {
    flex-basis: 64px;
    width: 64px;
  }
  .guild-ranking-heading h2 {
    font-size: 16px;
  }
  .guild-ranking-heading p {
    font-size: 12px;
  }
  .guild-directory-icons {
    gap: 6px;
  }
}

/* 国家官方公会，二级页面。 */
.guild-official-page {
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  background: #000;
}
.guild-official-earth {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) - 62px);
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.guild-official-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11.6px;
  height: calc(58.2px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 20px 0;
  color: #fff;
  font-size: 17.5px;
  font-weight: 700;
}
.guild-official-header .guild-official-back {
  flex-basis: 42.7px;
  width: 42.7px;
  height: 42.7px;
  border: 0;
  background: transparent;
}
.guild-official-main {
  position: relative;
  padding: 14px 20px 0;
}
.guild-official-intro h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}
.guild-official-intro p {
  margin-top: 8px;
  color: #838383;
  font-size: 14px;
  line-height: 18px;
}
.guild-official-controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 12px;
  margin: 18px 0 12px;
}
.guild-official-search {
  border-color: #ffffff26;
  background: #000;
  box-shadow:
    inset 0 1px 1px #ffffff59,
    inset 0 0 12px #ffffff29;
}
.guild-official-search input::placeholder {
  color: #64625f;
}
.guild-official-picker {
  position: relative;
  min-width: 0;
}
.guild-page .guild-official-country-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #ffffff26;
  border-top-color: #ffffff59;
  border-radius: 16px;
  background: #000;
  color: #fffffff2;
  font-size: 14px;
}
.guild-official-country-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guild-official-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 150px;
  height: 235px;
  border-radius: 16px;
  -webkit-backdrop-filter: blur(54px);
  backdrop-filter: blur(54px);
  box-shadow:
    0 8px 16px #0008,
    inset 0 0 0 1px #ffffff1f,
    inset 0 1px 0 #ffffff26;
}
.guild-official-menu-background {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.guild-official-country-options {
  position: relative;
  height: 235px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 8px 10px;
  border-radius: 16px;
  scrollbar-width: thin;
  scrollbar-color: #ffffff26 transparent;
}
.guild-official-country-options button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #838383;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
}
.guild-official-country-options button span:first-child {
  flex: 0 0 16px;
}
.guild-official-country-options button:hover,
.guild-official-country-options button:focus-visible {
  background: #ffffff0d;
  color: #f2f2f2;
}
.guild-official-country-options [aria-selected="true"] {
  color: #f2f2f2;
}
.guild-official-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 6px;
}
.guild-official-card {
  --official-border: #28387f;
  --official-start: #0710346b;
  --official-end: #000418;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  min-height: 210px;
  overflow: hidden;
  padding: 20px 11px 22px;
  border: 1px solid var(--official-border);
  border-radius: 17.4px;
  background: linear-gradient(161deg, var(--official-start) 5.57%, var(--official-end) 89.09%);
  box-shadow: inset 0 4px 30px #dadada29;
}
.guild-official-vib {
  --official-border: #9b9b9b;
  background: linear-gradient(#242939, #00061a);
}
.guild-official-green {
  --official-border: #246526;
  --official-start: #0934076b;
  --official-end: #000700;
}
.guild-official-copper {
  --official-border: #653c24;
  --official-start: #3419076b;
  --official-end: #110600;
}
.guild-official-gold {
  --official-border: #655b24;
  --official-start: #3426076b;
  --official-end: #120c00;
}
.guild-official-purple {
  --official-border: #622465;
  --official-start: #2707346b;
  --official-end: #0f0013;
}
.guild-official-red {
  --official-border: #652424;
  --official-start: #3407076b;
  --official-end: #130000;
}
.guild-official-decoration {
  position: absolute;
  inset: 0;
  mask-image: url("assets/images/guild/official-card-mask.svg");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  pointer-events: none;
}
.guild-official-decoration img {
  position: absolute;
  top: calc(50% - 8px);
  left: 20.93%;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.4;
  transform: translateY(-50%);
}
.guild-official-decoration.is-vib {
  mask-image: url("assets/images/guild/official-vib-mask.svg");
}
.guild-official-decoration.is-vib img {
  left: 41.86%;
  width: 68.61%;
}
.guild-official-card-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.guild-official-flag {
  display: block;
  flex: 0 0 auto;
  width: 62px;
  height: 40.185px;
  border-radius: 3.5px;
  object-fit: cover;
}
.guild-official-card h2 {
  color: #fffefb;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.guild-official-status {
  padding: 4px 6px;
  border: 1px solid #86f3a899;
  border-radius: 8px;
  background: #86f3a81f;
  color: #86f3a8;
  font-size: 10px;
  line-height: 12px;
}
.guild-official-status.is-review {
  border-color: #f3cf8699;
  background: #f3cf8629;
  color: #f3cf86;
}
.guild-official-status.is-preparing {
  border-color: #99d6f899;
  background: #99d6f829;
  color: #99d6f8;
}
.guild-page .guild-official-join {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 40px;
  padding: 10px 6px;
  border: 1px solid #ffffff0f;
  border-top-color: #ffffff59;
  border-left-color: #ffffff40;
  border-radius: 16px;
  background: #33333329;
  box-shadow: inset 0 0 12px #ffffff0a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}
.guild-page .guild-official-join.is-muted {
  background: #ffffff0f;
  color: #6e6e6e;
}
.guild-official-current {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 12px;
  border-bottom: 1px solid #494646;
  border-left: 1px solid #494646;
  border-radius: 0 16px;
  background: #141515;
  color: #babcbf;
  font-size: 10px;
  line-height: 13px;
}
.guild-official-footnote {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-top: 18px !important;
  color: #838383;
  font-size: 12px;
  line-height: 18px;
}
.guild-official-empty {
  grid-column: 1 / -1;
  padding: 32px 16px;
}
.guild-official-empty h2 {
  font-size: 16px;
}

/* TOP200 公会列表，使用公会目录卡片。 */
.guild-top200-page {
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
.guild-top200-header h1 {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 24px;
}
.guild-top200-main {
  position: relative;
  padding: 14px 16px 0;
}
.guild-top200-search {
  margin-bottom: 10px;
  border-color: #ffffff14;
}
.guild-top200-search input::placeholder {
  color: #64625f;
}
.guild-top200-page .guild-directory-card {
  padding: 16px;
}
.guild-top200-page .guild-directory-card-top {
  gap: 8px;
}
.guild-top200-page .guild-avatar {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  border: 0;
}
.guild-top200-page [data-guild-id="glory"] .guild-avatar {
  object-position: center 27.65%;
}
.guild-top200-page .guild-directory-apply {
  flex-basis: 72px;
  width: 72px;
}
.guild-top200-page .guild-directory-apply.is-joined {
  border: 1px solid #ffffff14;
  background: #1c1c1c;
  box-shadow: none;
  color: #525252;
  cursor: default;
}
.guild-top200-page .guild-directory-icons {
  gap: 13px;
}
.guild-top200-page .guild-empty h2 {
  font-size: 16px;
}
@media (max-width: 374px) {
  .guild-official-main {
    padding-right: 16px;
    padding-left: 16px;
  }
  .guild-official-controls {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 8px;
  }
  .guild-official-card {
    min-height: 230px;
    padding: 18px 10px;
  }
}
