 :root {
  color-scheme: light dark;
  --bg: #f0f2f5;
  --text: rgba(0, 0, 0, 0.88);
  --muted: rgba(0, 0, 0, 0.58);
  --border: rgba(0, 0, 0, 0.08);
  --card: #fff;
  --shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  --soft: rgba(0, 0, 0, 0.015);
  --modal-bg: #fff;
  --community-item-bg: #fff;
  --community-btn-bg: #fff;
  --header-bg: #fff;

  --primary: #1890ff;
  --primary-2: #40a9ff;

  --sider: #001529;
  --sider-text: rgba(255, 255, 255, 0.85);
  --sider-muted: rgba(255, 255, 255, 0.65);
  --sider-hover: rgba(255, 255, 255, 0.08);
  --sider-active: rgba(24, 144, 255, 0.22);

  --radius: 8px;
  --max: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f14;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --border: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --soft: rgba(255, 255, 255, 0.06);
  --modal-bg: #0f1216;
  --community-item-bg: #141922;
  --community-btn-bg: #0f1216;
  --header-bg: #11161d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0b0f14;
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.62);
    --border: rgba(255, 255, 255, 0.12);
    --card: rgba(255, 255, 255, 0.06);
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    --soft: rgba(255, 255, 255, 0.06);
    --modal-bg: #0f1216;
    --community-item-bg: #141922;
    --community-btn-bg: #0f1216;
    --header-bg: #11161d;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sider {
  width: 240px;
  background: var(--sider);
  color: var(--sider-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.sider .logo {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  font-weight: 900;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sider .logo::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  background: url("../ICON/22375.png") center/cover no-repeat;
}

.menu {
  padding: 10px 6px 18px;
  overflow: auto;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--sider-text);
  font-weight: 800;
  margin-top: 6px;
}

.menu button.menu-link {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--sider-text);
  font-weight: 800;
  margin-top: 6px;
}

.menu button.menu-link:focus-visible {
  outline: 2px solid rgba(24, 144, 255, 0.75);
  outline-offset: 2px;
  border-radius: 10px;
}

.menu a:hover {
  background: var(--sider-hover);
}

.menu a.active {
  background: var(--sider-active);
  color: #fff;
}

.menu .menu-sub {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu .menu-sub a {
  color: var(--sider-muted);
  font-weight: 700;
}

.menu .menu-sub a:hover,
.menu .menu-sub a.active {
  color: #fff;
}

.menu .menu-sub .support {
  color: #fff;
  font-weight: 900;
  background: rgba(24, 144, 255, 0.14);
  border: 1px solid rgba(24, 144, 255, 0.35);
}

.menu .menu-sub .support:hover {
  background: rgba(24, 144, 255, 0.2);
}

.ico {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: var(--sider-text);
  opacity: 0.95;
  font-size: 14px;
  flex: 0 0 auto;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.header {
  height: 64px;
  background: var(--header-bg);
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 30;
  isolation: isolate;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--header-bg);
  z-index: -1;
  pointer-events: none;
}

.header-title {
  flex: 1;
  text-align: center;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-left {
  width: 200px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-right {
  width: 200px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.iconbtn {
  border: 1px solid var(--border);
  background: var(--card);
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}

.iconbtn:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 22px 18px 32px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.hero {
  border-radius: var(--radius);
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)), linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 12px;
  font-weight: 800;
  margin-top: 10px;
}

.hero p {
  margin: 10px 0 0;
  line-height: 1.8;
  font-size: 13px;
  opacity: 0.95;
}

.feature-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1020px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  overflow: hidden;
}

.feature .img {
  height: 140px;
  background: #e6f4ff;
  overflow: hidden;
}

.feature .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature .body {
  padding: 14px 16px 16px;
}

.feature .body h3 {
  margin: 0;
  font-size: 16px;
}

.feature .body p {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.primarybtn {
  width: 100%;
  border: 1px solid rgba(24, 144, 255, 0.5);
  background: var(--primary);
  color: #fff;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.primarybtn:hover {
  background: #0b76d1;
}

.section {
  margin-top: 18px;
}

.section-hd {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-hd h2 {
  margin: 0;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pill {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

button.pill {
  cursor: pointer;
}

button.pill:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
}

.modal[data-open="true"] {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal-dialog {
  position: relative;
  max-width: min(920px, calc(100vw - 24px));
  margin: 44px auto;
  background: var(--modal-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

@media (max-width: 720px) {
  .modal-dialog {
    margin: 14px auto;
  }
}

.modal-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.modal-header strong {
  font-size: 14px;
}

.modal-body {
  padding: 14px;
  max-height: calc(100vh - 170px);
  overflow: auto;
}

.modal-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.75;
  color: var(--text);
  font-size: 13px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.muted {
  color: var(--muted);
}

.support-dialog {
  background: #0f1216;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.support-dialog .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.support-dialog .iconbtn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.support-dialog .iconbtn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.support-body {
  padding: 14px;
  max-height: calc(100vh - 170px);
  overflow: auto;
}

.support-title {
  font-size: 16px;
  font-weight: 950;
  margin: 0;
}

.support-sub {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  font-size: 13px;
}

.support-reasons {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .support-reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.reason {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reason .r-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.reason strong {
  display: block;
  font-size: 13px;
}

.reason span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.support-stack {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.support-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.support-dev-list {
  margin-top: 0;
}

.support-dev-list .c-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.support-dev-list .c-avatar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.support-dev-list .c-meta code {
  color: rgba(255, 255, 255, 0.62);
}

.support-dev-list .c-copy {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.support-dev-list .c-copy:hover {
  border-color: rgba(24, 144, 255, 0.5);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.support-card-hd {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-card-hd h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 950;
}

.support-card-hd p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.7;
}

.qr-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 720px) {
  .qr-grid {
    grid-template-columns: 1fr;
  }
}

.qr {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr img {
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.qr .cap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
}

.community-body {
  padding: 14px;
  max-height: calc(100vh - 170px);
  overflow: auto;
}

.community-hd {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.community-hd strong {
  font-size: 16px;
}

.community-hd span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.c-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.c-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--community-item-bg);
}

.c-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--soft);
  flex: 0 0 auto;
}

.c-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-item.no-avatar {
  gap: 0;
}

.c-item.no-avatar .c-avatar {
  display: none;
}

.c-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-meta b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: var(--muted);
}

.c-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}

.c-copy {
  border: 1px solid var(--border);
  background: var(--community-btn-bg);
  color: var(--text);
  border-radius: 10px;
  height: 34px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c-copy:hover {
  border-color: rgba(24, 144, 255, 0.45);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dot.wx {
  background: #52c41a;
}

.dot.zfb {
  background: #1677ff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-weight: 900;
  background: var(--soft);
}

td {
  color: var(--text);
}

.ver {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(24, 144, 255, 0.35);
  color: #1677ff;
  font-weight: 900;
  font-size: 12px;
  background: rgba(24, 144, 255, 0.08);
}

.mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 60;
}

.mask[data-on="true"] {
  display: block;
}

@media (min-width: 921px) {
  .layout[data-sider="off"] .sider {
    width: 0;
    border-right: 0;
  }
}

@media (max-width: 920px) {
  .sider {
    position: fixed;
    left: -260px;
    top: 0;
    z-index: 70;
    transition: left 160ms ease;
    box-shadow: 8px 0 18px rgba(0, 0, 0, 0.25);
  }

  .layout[data-sider="on"] .sider {
    left: 0;
  }

  .header-title {
    font-size: 13px;
  }

  .header-left {
    width: auto;
    min-width: 64px;
  }

  .header-right {
    width: auto;
    min-width: 64px;
  }
}
