/* White jade, celadon mountains and pale gold: the shared desktop skin. */
:root {
  --bg: #f6f8f4;
  --panel: #fffefa;
  --text: #344f55;
  --muted: #758d8b;
  --line: #e0e9e2;
  --accent: #268b98;
  --danger: #bf7678;
  --gold: #c5ad78;
  --jade: #238b96;
  --paper: #fffefa;
  color-scheme: light;
}
body {
  background: #f6f8f4;
  color: #344f55;
}
.windowbar {
  background: #f7faf5;
  color: #708a86;
  border-color: #e1e9df;
}
.windowbar small {
  color: #9da993;
  letter-spacing: 3px;
}
.sidebar {
  background: linear-gradient(180deg, #f9fcf8, #f2f7ef);
  border-color: #dde7db;
  overflow: hidden;
}
.sidebar:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 82px;
  height: 185px;
  background: url("/scenery.svg") 75% bottom/auto 230px;
  opacity: 0.48;
  pointer-events: none;
  z-index: 0;
}
.sidebar > * {
  position: relative;
  z-index: 1;
}
.brand {
  gap: 11px;
}
.brand-wordmark {
  font-family: KaiTi, "STKaiti", "Songti SC", serif;
  font-size: 30px;
  color: #3e6868;
  letter-spacing: 4px;
}
.brand-wordmark small {
  font-family: "Microsoft YaHei", sans-serif;
  color: #9a9979;
  font-size: 10px;
  letter-spacing: 4px;
}
.brand-image {
  border-radius: 11px;
  box-shadow: 0 3px 9px #437f7714;
}
.nav {
  color: #7a928e;
  border: 1px solid transparent;
}
.nav:hover {
  background: #ebf4ed;
  color: #378a8d;
}
.nav.active {
  background: linear-gradient(90deg, #e1f0e9, #edf6ed);
  color: #287e83;
  box-shadow: inset 3px 0 #69aaa2;
  border-color: #d7e7d7;
  font-weight: 500;
}
.nav.active:after {
  content: "✧";
  color: #bca46a;
  margin-left: auto;
  font-size: 16px;
}
.side-note {
  color: #9aab98;
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 2.2;
}
.user-button {
  border-color: #dce6d6;
}
.user-button .avatar {
  background: #f4ebd8;
  color: #a48c5c;
}
.topbar {
  background: #fffefa;
  border-color: #e5eadd;
  position: relative;
}
.topbar:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 34px;
  width: 45px;
  height: 1px;
  background: #c4ae77;
}
.topbar h1 {
  font-weight: 500;
  color: #4e706f;
}
.topbar h1 small {
  color: #a1aa91;
  letter-spacing: 3px;
}
.online-dot {
  background: #7eb09a;
}
.topbar-right {
  color: #8ca293;
}
.view {
  background: transparent;
}
.hero {
  background: #f2f8f1 url("/scenery.svg") right center/auto 100% no-repeat;
  border: 1px solid #dce5ce;
  border-radius: 9px;
  box-shadow:
    inset 0 0 0 5px #fffdf788,
    0 7px 25px #5c83620a;
  min-height: 230px;
  padding: 29px 34px;
  isolation: isolate;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #bdac7755;
  border-radius: 4px;
  pointer-events: none;
  z-index: -1;
}
.hero h2 {
  font-family: KaiTi, "STKaiti", "Songti SC", serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.4;
  color: #426768;
  letter-spacing: 3px;
}
.hero h2 span {
  color: #aebd93;
}
.hero p {
  color: #80978d;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.eyebrow {
  color: #a6a382;
  font-size: 9px;
  letter-spacing: 4px;
}
.hero-art {
  width: 235px;
}
.hero-art:before {
  border-color: #c7b78266;
  background: #f5faf52b;
  inset: -8px 24px;
  transform: rotate(-20deg) scaleY(0.88);
}
.hero-logo {
  width: 124px;
  height: 124px;
  border-radius: 28px;
  transform: rotate(-6deg);
  box-shadow: 0 10px 25px #467d7620;
}
.hero-art small {
  color: #98a991;
  letter-spacing: 3px;
  font-size: 9px;
  margin-top: 18px;
}
.primary {
  background: linear-gradient(120deg, #3f9eaa, #29868f);
  color: #fffdf2;
  box-shadow: 0 4px 11px #448c8b1c;
  border: 1px solid #6ba9a5;
  border-radius: 5px;
  font-weight: 500;
}
.primary:hover {
  background: linear-gradient(120deg, #358f9a, #267983);
  box-shadow: 0 5px 16px #448c8b24;
}
.secondary,
.take {
  background: #f0f7f0;
  color: #588b82;
  border: 1px solid #d0dfc7;
  border-radius: 5px;
}
.secondary:hover,
.take:hover {
  background: #e4f1e7;
  color: #3e807e;
  border-color: #b9cfae;
}
.text-button,
.link {
  color: #839b90;
}
.text-button:hover,
.link:hover {
  color: #27848d;
}
.danger {
  background: #fff8f3;
  border-color: #ecd9ca;
  color: #b38178;
}
.section-head h2 {
  font-family: KaiTi, "STKaiti", serif;
  font-weight: 500;
  font-size: 20px;
  color: #54756e;
  letter-spacing: 2px;
}
.section-head h2 small {
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 9px;
  color: #a6aa8e;
  letter-spacing: 2px;
}
.game-grid {
  gap: 11px;
}
.game {
  background: #fffefa;
  border-color: #e3e9da;
  border-radius: 8px;
  box-shadow: 0 2px 8px #62784d04;
}
.game:hover {
  background: #f9fbf2;
  border-color: #c7d7bd;
}
.game.active {
  background: #edf6e9;
  border-color: #9bbd9c;
  box-shadow: inset 0 0 0 3px #fffdf766;
}
.game > span:last-child {
  color: #738f83;
}
.game.active > span:last-child {
  color: #4d8779;
}
.game-art {
  border-radius: 9px;
}
.art-all {
  background: #dfeede;
  color: #79a38a;
}
.glyph-rpg {
  background: #edf0e1;
  color: #8f9c60;
}
.glyph-legend {
  background: #f7ecdb;
  color: #b49762;
}
.glyph-competitive {
  background: #e2f1eb;
  color: #6ca18e;
}
.glyph-shooting {
  background: #e3eff0;
  color: #709aa3;
}
.glyph-adventure {
  background: #f4e8ea;
  color: #ad8d98;
}
.tabs {
  border-color: #dce5d8;
}
.tabs button {
  color: #8ba08e;
}
.tabs .active {
  color: #498b80;
  border-color: #79ab93;
}
.filters {
  color: #8fa38f;
}
.search,
input,
textarea,
select {
  background: #fffefa;
  border-color: #dce6d8;
  color: #54716a;
}
.search::placeholder,
input::placeholder,
textarea::placeholder {
  color: #a2afa0;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #8db9a5;
  box-shadow: 0 0 0 3px #8db9a512;
}
.order,
.discover-card,
.card {
  background: #fffefa;
  border-color: #dfe7d7;
  border-radius: 8px;
  box-shadow: 0 4px 14px #6f87550a;
}
.order {
  position: relative;
  padding: 22px;
}
.order:before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 9px;
  height: 9px;
  border-left: 1px solid #d2bf91;
  border-top: 1px solid #d2bf91;
  pointer-events: none;
}
.order h3 {
  color: #4b6d65;
}
.order-top,
.order-meta {
  color: #8a9e8c;
}
.order-top time {
  color: #a4af9b;
}
.order-bottom {
  border-color: #e8edde;
}
.order-bottom .name {
  color: #839886;
}
.price {
  color: #b79a65;
}
.price small {
  color: #a4af98;
}
.tag {
  background: #eaf3e6;
  color: #79a171;
}
.tag.blue {
  background: #e4f1ef;
  color: #71a39f;
}
.tag.dim {
  background: #f0f1e7;
  color: #a3a78b;
}
.avatar {
  background: #e6f0df;
  color: #8aa27b;
}
.discover-card h3 {
  color: #668678;
}
.room-short {
  border-color: #e8edde;
}
.room-short .avatar {
  background: #e1efdf;
  color: #85a380;
}
.room-short strong {
  color: #708b79;
}
.room-short small {
  color: #9aab94;
}
.muted,
.form-note {
  color: #829a8b;
}
.empty {
  background: #fffefa url("/clouds.svg") center/420px 270px;
  border-color: #dbe5d1;
  border-radius: 8px;
  color: #97aa92;
}
.empty h3 {
  font-family: KaiTi, "STKaiti", serif;
  font-size: 20px;
  color: #7e9980;
  font-weight: 500;
  letter-spacing: 2px;
}
.empty .empty-icon {
  color: #c0b581;
}
.empty.inline {
  background: none;
}
.app-footer {
  color: #a3b097;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
}
.conversations {
  background: #fcfdf7;
  border-color: #dde7d5;
}
.chat-list-head h2 {
  font-family: KaiTi, "STKaiti", serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #5c8175;
}
.chat-list-head .search {
  background: #f4f8ee;
  border-color: #e6eddd;
}
.chat-tabs {
  border-color: #e3ead9;
}
.chat-tabs button {
  color: #8ba18b;
}
.chat-tabs button.active {
  color: #4c8f7e;
  border-color: #86b29a;
}
.conversation:hover {
  background: #f1f7e9;
}
.conversation.active {
  background: #eaf4e5;
  box-shadow: inset 2px 0 #b6b880;
}
.conversation .avatar {
  background: #e3efdb;
  color: #89a47c;
}
.conv-copy strong {
  color: #638572;
}
.conv-copy small,
.conv-right {
  color: #9bae93;
}
.badge {
  background: #9bb28b;
  color: #fffef2;
}
.conversation-footer {
  background: #f8fbf1;
  border-color: #e3ead9;
  color: #9aad90;
}
.chat-main {
  background: #f5f9f0 url("/clouds.svg") center/420px 270px;
}
.chat-header {
  background: #fbfdf6eb;
  border-color: #dfe8d6;
}
.chat-header h2 {
  font-family: KaiTi, "STKaiti", serif;
  font-size: 21px;
  color: #5c8070;
  letter-spacing: 1px;
}
.chat-header small,
.chat-header button {
  color: #94a98f;
}
.chat-welcome {
  background: radial-gradient(ellipse at center, #fafff380, transparent 65%);
}
.chat-welcome .welcome-mark {
  color: #c8d9b4;
}
.chat-welcome h2 {
  font-family: KaiTi, "STKaiti", serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: #829c7f;
}
.chat-welcome p {
  color: #9aac90;
}
.chat-welcome .eyebrow {
  color: #b8b48e;
}
.bubble {
  background: #fffef8;
  color: #5f7c66;
  border-color: #e0e9d2;
  box-shadow: 0 2px 7px #76994c06;
}
.message.self .bubble {
  background: linear-gradient(120deg, #7db6ab, #69a69e);
  border-color: #81b4a3;
  color: #fffef3;
  box-shadow: 0 3px 9px #68a49212;
}
.message .avatar,
.message.self .avatar {
  background: #e2edda;
  color: #96aa84;
}
.message-meta {
  color: #a0b293;
}
.history-button {
  color: #a3ad83;
}
.composer {
  background: #fffef8;
  border-color: #dfe8d5;
}
.composer textarea {
  background: none;
  color: #6d886e;
}
.composer-bottom {
  color: #a2b292;
}
.contact-card {
  background: #fffef8;
  border-color: #e1e8d6;
}
.contact-card strong {
  color: #69876c;
}
.contact-card p,
.contact-card small {
  color: #9bae92;
}
.card h3 {
  font-family: KaiTi, "STKaiti", serif;
  font-size: 21px;
  color: #6b896b;
  letter-spacing: 2px;
}
.view-heading h2,
.settings-info h2 {
  font-family: KaiTi, "STKaiti", serif;
  color: #62836c;
  font-weight: 500;
  letter-spacing: 2px;
}
.field,
.check {
  color: #7d957b;
}
.field small {
  color: #a0b090;
}
.input-wrap button {
  background: #fffef8;
  border-color: #dce6d8;
  color: #9eae8f;
}
.stat {
  background: #fffefa;
  border-color: #e1e7d6;
}
.stat strong {
  color: #80a28b;
}
.stat small {
  color: #9eaf93;
}
.admin-tabs button {
  background: #eaf2e3;
  color: #8ca17c;
}
.admin-table th {
  background: #f7faef;
  color: #a3ad8b;
}
.admin-table td {
  color: #7d957a;
}
.detail-title {
  font-family: KaiTi, "STKaiti", serif;
  color: #62836b;
  font-weight: 500;
}
.detail-text {
  background: #f7faef;
  color: #8da080;
}
.detail-grid {
  color: #80967a;
}
.detail-grid small {
  color: #a9b394;
}
.member {
  border-color: #e6ecd9;
  color: #809a79;
}
.member button {
  color: #9bad83;
}
dialog {
  background: #fffef8;
  border: 1px solid #cfc69e;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 5px #f8f8ed,
    0 25px 80px #8a9f7b26;
  color: #66846b;
}
dialog::backdrop {
  background: #d7e4d5ad;
  backdrop-filter: blur(5px);
}
.modal-head {
  border-bottom: 1px solid #eee9d6;
  padding-bottom: 14px;
}
.modal-head h2 {
  font-family: KaiTi, "STKaiti", serif;
  color: #64846c;
  font-size: 25px;
  letter-spacing: 3px;
}
.icon {
  color: #a4b096;
}
.icon:hover {
  background: #edf3e4;
  color: #819d7a;
}
.catalog-filters button {
  background: #f4f6eb;
  color: #9ca98c;
}
.catalog-filters button.active {
  background: #e8f1df;
  color: #7a9b6e;
}
.catalog-platforms {
  border-color: #e7ecd9;
}
.catalog-platforms button {
  color: #a3af93;
}
.catalog-platforms button.active {
  color: #7c9e70;
}
.catalog-game strong {
  color: #789375;
}
.catalog-game small,
.catalog-empty {
  color: #a4b193;
}
.catalog-platforms > span {
  color: #b2b899;
}
.auth {
  background: #fffefa;
}
.auth-visual {
  background: #eff7f0 url("/scenery.svg") 70% bottom/auto 65% no-repeat;
  border-color: #dfe8d9;
}
.auth-visual:before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid #c6b88355;
  pointer-events: none;
}
.auth-visual h1 {
  font-family: KaiTi, "STKaiti", serif;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 3px;
  color: #537b70;
}
.auth-visual h1 em {
  color: #74a79c;
}
.auth-visual p {
  color: #91a88e;
}
.auth-logo {
  color: #5b7f70;
  font-family: KaiTi, "STKaiti", serif;
}
.auth-logo small {
  font-family: "Microsoft YaHei", sans-serif;
  color: #b1ad86;
  letter-spacing: 3px;
  font-size: 8px;
}
.auth-orbit {
  border-color: #d4c69933;
  background: none;
  box-shadow: none;
}
.auth-line {
  color: #a7b48e;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
}
.auth-form h2 {
  font-family: KaiTi, "STKaiti", serif;
  color: #65866e;
  font-weight: 500;
  font-size: 33px;
  letter-spacing: 2px;
}
.auth-form .eyebrow {
  color: #b5b18b;
}
.auth-tabs {
  border-color: #e1e7d4;
}
.auth-tabs button {
  color: #a1ae91;
}
.auth-tabs .active {
  color: #7a9e74;
  border-color: #a2b888;
}
.auth-footer {
  color: #a4b18f;
}
.error {
  color: #c18c84;
}
.error.success {
  color: #7caa8c;
}
#toast {
  background: #659e90;
  color: #fffef1;
  box-shadow: 0 6px 25px #649c811f;
}
#toast.bad {
  background: #fff6e9;
  color: #ba9582;
  border-color: #eadcc2;
}
@media (max-width: 1000px) {
  .nav.active:after {
    display: none;
  }
  .hero h2 {
    font-size: 32px;
  }
  .hero-art {
    width: 180px;
  }
  .hero-logo {
    width: 108px;
    height: 108px;
  }
}
@media (max-width: 650px) {
  .hero {
    padding: 26px;
    min-height: 230px;
    background-position: 65% center;
  }
  .hero h2 {
    font-size: 30px;
  }
  .hero-art {
    opacity: 0.5;
  }
  .hero-logo {
    width: 120px;
    height: 120px;
  }
  .hero:before {
    inset: 9px;
  }
  .section-head h2 {
    font-size: 18px;
  }
  .chat-welcome h2 {
    font-size: 25px;
  }
  .modal-head h2 {
    font-size: 22px;
  }
  .game > span:last-child {
    font-size: 10px;
  }
}
.hero {
  background-image:
    linear-gradient(
      90deg,
      #f2f8f1 0%,
      #f2f8f1eb 30%,
      #f2f8f144 68%,
      transparent 100%
    ),
    url("/scenery.svg");
  background-size:
    100% 100%,
    auto 100%;
  background-position:
    center,
    right center;
  background-repeat: no-repeat;
}
.chat-welcome p,
.order-meta,
.muted,
.form-note {
  color: #788f7c;
}
.field {
  color: #6b856e;
}
.game-art.game-cover {
  display: block;
  object-fit: cover;
  background: none;
  border-radius: 9px;
  border: 1px solid #dce6d5;
  box-shadow: 0 2px 7px #48644912;
}
.catalog-game .game-cover {
  flex-shrink: 0;
}
.game-cover[loading] {
  color: transparent;
}
.room-avatar {
  object-fit: cover;
  flex-shrink: 0;
}
.chat-header > .avatar {
  width: 44px;
  height: 44px;
  margin-right: 12px;
}
.chat-header > div {
  flex: 1;
}
#groupAvatarPreview .avatar {
  width: 80px;
  height: 80px;
  font-size: 30px;
}
.profile-avatar-editor {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 20px 0;
}
.profile-avatar-editor > .avatar {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 2px solid #d1dfcd;
}
.profile-avatar-editor small {
  display: block;
  color: #799187;
  margin-top: 10px;
  font-size: 11px;
}
.avatar-upload {
  display: inline-flex;
  cursor: pointer;
  margin-left: 8px;
}
.avatar-upload input {
  display: none;
}
.personal-avatar {
  object-fit: cover;
  flex-shrink: 0;
}
.chat-add-wrap {
  position: relative;
}
.chat-add-menu {
  position: absolute;
  right: 0;
  top: 36px;
  width: 168px;
  z-index: 15;
  background: #fffef6;
  border: 1px solid #d4dfcc;
  border-radius: 12px;
  padding: 7px;
  box-shadow: 0 12px 36px #395d5120;
}
.chat-add-menu button {
  display: block;
  width: 100%;
  padding: 13px 14px;
  text-align: left;
  color: #54796f;
  border-radius: 7px;
}
.chat-add-menu button:hover {
  background: #edf5e9;
}
.auth-form-wrap {
  overflow-y: auto;
}
.composer-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
}
.composer-tools > button {
  color: #658a80;
  padding: 6px 10px;
  border-radius: 7px;
}
.composer-tools > button:hover {
  background: #eaf3e5;
}
.emoji-panel {
  position: absolute;
  bottom: 42px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 320px;
  padding: 12px;
  border: 1px solid #d6e2ce;
  border-radius: 12px;
  background: #fffef7;
  box-shadow: 0 8px 35px #335d4c22;
  z-index: 8;
}
.emoji-panel button {
  font-size: 23px;
  padding: 7px 3px;
  border-radius: 6px;
}
.emoji-panel button:hover {
  background: #edf5e7;
}
.chat-image {
  display: block;
  max-width: min(300px, 100%);
  max-height: 260px;
  border-radius: 9px;
  object-fit: contain;
}
.chat-image-button {
  padding: 0;
  display: block;
}
.chat-image-full {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  margin: auto;
  object-fit: contain;
  border-radius: 10px;
}
.chat-order-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
  max-width: 330px;
  padding: 4px;
  text-align: left;
  color: inherit;
}
.chat-order-card small {
  font-size: 11px;
  opacity: 0.8;
}
.chat-order-card strong {
  font-size: 16px;
  line-height: 1.6;
}
.chat-order-card > span {
  font-size: 12px;
  opacity: 0.9;
}
.chat-order-card footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #9bbfb877;
}
.chat-order-card footer b {
  font-size: 24px;
}
.chat-order-card footer span {
  font-size: 11px;
}
.chat-main {
  position: relative;
}
.chat-main.image-drop-active::after {
  content: "松开发送图片 · 发送前可预览";
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  background: #edf7eeeb;
  border: 2px dashed #79a89b;
  border-radius: 16px;
  z-index: 20;
  pointer-events: none;
  font-size: 19px;
  color: #4e7f72;
}
.recalled-message {
  font-size: 12px;
  opacity: 0.7;
  font-style: italic;
}
.message-meta button[data-recall-message] {
  color: inherit;
  opacity: 0.7;
  font-size: 11px;
  padding: 2px 6px;
}
.message-meta button[data-recall-message]:hover {
  opacity: 1;
  text-decoration: underline;
}
.composer-bottom > span {
  font-size: 10px;
}
