:root {
  --bg: #f9f9f9;
  --side: #f9f9f9;
  --card: #fff;
  --ink: #14171b;
  --muted: #6d6e74;
  --line: rgba(130, 130, 130, 0.15);
  --accent: #5961f9;
  --accent-2: #ee9ae5;
  --radius: 8px;
  --side-w: 220px;
  --font: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

[data-theme="dark"] {
  --bg: #2c2e2f;
  --side: #2c2e2f;
  --card: #232529;
  --ink: #f2f3f5;
  --muted: #989da1;
  --line: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  text-wrap: pretty;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 550px;
  background-image: url("../assets/hero-blur.png");
  background-size: cover;
  z-index: -1;
  pointer-events: none;
}

[data-theme="dark"] body::before {
  opacity: 0.35;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 18px;
  font-weight: 700;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 40;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.skip:focus {
  left: 8px;
}

.shell {
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  min-height: 100vh;
}

.nav-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 16px 12px 24px;
  border-right: 1px solid var(--line);
  background: var(--side);
  display: grid;
  align-content: start;
  gap: 2px;
  overflow: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 8px 10px 16px;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.nav-logo-mark {
  height: 32px;
  width: auto;
  flex: none;
  display: block;
}

.nav-label {
  padding: 14px 10px 6px;
  font-size: 12px;
  color: var(--muted);
}

.nav-item {
  display: block;
  background: none;
  border: 0;
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--ink);
}

.nav-item:hover,
.nav-item.is-on {
  color: var(--accent);
}

.nav-theme {
  margin-top: 20px;
  padding: 10px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.nav-theme label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--ink);
}

.shell-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 36px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.account-slot {
  position: absolute;
  right: 36px;
  top: 12px;
  display: flex;
  align-items: center;
  height: 40px;
}

html[data-layout="detail"] .account-slot {
  position: static;
  height: auto;
  margin-left: 4px;
}

.top-nav {
  display: none;
  align-items: center;
  gap: 8px 20px;
  min-width: 0;
  flex: 1;
}

.top-nav[hidden] {
  display: none !important;
}

.top-nav .nav-logo {
  padding: 0 8px 0 0;
  font-size: 16px;
  flex: none;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
}

.top-links .nav-item {
  display: inline-flex;
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 14px;
}

html[data-layout="detail"] .shell {
  grid-template-columns: 1fr;
}

html[data-layout="detail"] .nav-side {
  display: none;
}

html[data-layout="detail"] .topbar {
  justify-content: flex-start;
}

html[data-layout="detail"] .top-nav {
  display: flex;
}

html[data-layout="detail"] .search-bar {
  flex: 0 0 280px;
  width: 280px;
  max-width: 280px;
  margin: 0 0 0 auto;
}

html[data-layout="detail"] .skill-page,
html[data-layout="detail"] .guide-page,
html[data-layout="detail"] .article {
  margin-left: auto;
  margin-right: auto;
}

html[data-layout="detail"] .skill-page {
  padding-top: 28px;
}

html[data-layout="detail"] .guide-page {
  padding-top: 28px;
}

.search-bar {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.search-bar input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 18px;
  background: var(--card);
  outline: none;
}

.search-bar input:focus {
  border-color: var(--accent);
}

.main-page {
  padding: 20px 36px 72px;
  max-width: 1180px;
}

.page-h {
  font-size: 22px;
  margin-bottom: 18px;
}

.crumb {
  color: var(--muted);
  font-size: 14px;
}

.term {
  scroll-margin-top: 68px;
}

.term + .term {
  margin-top: 8px;
}

.sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.seo-lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.term-desc {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px 13px;
}

.url-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.url-grid.sub {
  margin-top: 12px;
}

.url-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  transition: border-color 0.2s;
}

.url-card:hover {
  border-color: var(--accent);
}

.url-card-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.url-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  min-width: 0;
}

.url-foot small {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.url-guide {
  flex: none;
  margin-left: auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.url-guide:hover {
  text-decoration: underline;
}

.kind-head {
  margin: 18px 0 10px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.url-ico {
  width: 40px;
  height: 40px;
  flex: none;
  margin-top: 1px;
  border-radius: 8px;
  background: rgba(89, 97, 249, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.url-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.url-meta b {
  font-size: 15px;
}

.url-meta em,
.url-meta small {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.url-meta small {
  font-size: 11px;
}

.url-meta .tag-list {
  margin-top: 4px;
  gap: 6px;
}

.url-meta .tag-list span {
  padding: 2px 8px;
  font-size: 11px;
}

.article-repo {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.install-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.install-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.install-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.news-list a {
  display: grid;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.news-list a:hover {
  border-color: var(--accent);
}

.news-list span {
  color: var(--muted);
  font-size: 12px;
}

.empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
}

.article {
  max-width: 720px;
  display: grid;
  gap: 14px;
}

.article-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  white-space: pre-wrap;
}

.skill-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  padding: 20px 36px 72px;
  max-width: 1180px;
  align-items: start;
}

.skill-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.skill-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.skill-title-row h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.skill-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  color: var(--accent);
  background: rgba(89, 97, 249, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.skill-side .guide-grid {
  grid-template-columns: 1fr;
}

.skill-side .guide-cover {
  aspect-ratio: 16 / 9;
}

.skill-tutorial h2 {
  margin: 0;
  font-size: 20px;
}

.skill-tutorial .guide-grid {
  margin: 0;
}

.guide-page .lang-tabs {
  margin-top: 0;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px 28px;
}

.skill-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px;
}

.lang-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.lang-tabs button,
.copy-btn {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
}

.lang-tabs button.is-on {
  background: var(--accent);
  color: #fff;
}

.copy-btn {
  color: var(--muted);
  border-radius: 8px;
}

.copy-btn:hover {
  color: var(--accent);
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 13px;
}

.meta-table th,
.meta-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.meta-table th {
  width: 120px;
  color: var(--muted);
  font-weight: 500;
  background: rgba(130, 130, 130, 0.06);
}

.md-body h1,
.md-body h2 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.md-body h3 {
  margin: 20px 0 8px;
  font-size: 16px;
}

.md-body p,
.md-body li {
  line-height: 1.75;
}

.md-body ul,
.md-body ol {
  margin: 8px 0 16px;
  padding-left: 22px;
}

.md-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  background: rgba(89, 97, 249, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.md-pre {
  margin: 12px 0 18px;
  padding: 14px 16px;
  background: #0f1115;
  color: #e8eaed;
  border-radius: 8px;
  overflow: auto;
}

.md-pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 12px;
}

.md-fig {
  margin: 16px 0 24px;
}

.md-fig img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.md-fig figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 14px;
}

.md-table th,
.md-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.md-table th {
  background: rgba(130, 130, 130, 0.06);
  font-weight: 600;
}

.md-body a {
  color: var(--accent);
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px);
  gap: 12px;
  margin-bottom: 8px;
}

.guide-card {
  display: grid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.guide-card:hover {
  border-color: var(--accent);
}

.guide-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #111;
}

.guide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-cover em {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(20, 23, 27, 0.82);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.guide-meta {
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
}

.guide-meta b {
  font-size: 15px;
}

.guide-meta small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.guide-page {
  padding: 20px 36px 72px;
  max-width: 860px;
  display: grid;
  gap: 16px;
}

.guide-page h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.guide-more {
  margin: 12px 0 0;
  font-size: 18px;
}

.guide-video {
  display: block;
  width: 100%;
  margin: 8px 0 24px;
  background: #14171b;
  border-radius: 14px;
}

.vp {
  background: #14171b;
  color: #f4f5f7;
  border-radius: 14px;
  overflow: hidden;
}

.vp-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(80% 60% at 20% 10%, rgba(19, 203, 185, 0.22), transparent 55%),
    radial-gradient(70% 50% at 90% 80%, rgba(89, 97, 249, 0.28), transparent 50%),
    #14171b;
}

.vp-shot {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: 8% 8%;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.vp-shot.is-on {
  opacity: 1;
  transform: none;
}

.vp-kicker {
  margin: 0;
  color: #13cbb9;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.vp-shot h2,
.vp-shot h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
}

.vp-shot p,
.vp-shot li {
  margin: 0;
  color: rgba(244, 245, 247, 0.82);
  font-size: 16px;
  line-height: 1.6;
}

.vp-shot ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.vp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 560px);
}

.vp-grid div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}

.vp-grid b {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.vp-grid span {
  color: rgba(244, 245, 247, 0.72);
  font-size: 13px;
}

.vp-shot pre {
  margin: 0;
  padding: 12px 14px;
  background: #0c0e12;
  border-radius: 8px;
  font-size: 14px;
  color: #13cbb9;
}

.vp-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px 12px;
  background: #0f1115;
}

.vp-play {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  min-width: 64px;
}

.vp-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  cursor: pointer;
}

.vp-track i {
  display: block;
  height: 100%;
  width: 0;
  background: #13cbb9;
  border-radius: inherit;
}

.vp-time {
  color: rgba(244, 245, 247, 0.7);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .guide-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .vp-shot h2,
  .vp-shot h3 {
    font-size: 22px;
  }
}

.skill-side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 72px;
}

.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.side-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.side-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.side-card pre {
  margin: 0 0 10px;
  padding: 10px;
  background: rgba(130, 130, 130, 0.08);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.side-card .copy-btn {
  display: inline-flex;
  background: var(--accent);
  color: #fff;
  padding: 7px 12px;
}

.side-card .copy-btn:hover {
  color: #fff;
  background: var(--accent-2);
}

.side-link {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.side-list a {
  color: var(--ink);
  font-size: 13px;
}

.side-list a:hover {
  color: var(--accent);
}

@media (max-width: 860px) {
  .skill-page {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .skill-side {
    position: static;
  }

  .skill-title-row {
    flex-direction: column;
  }
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-pri,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 8px 16px;
}

.btn-pri {
  background: var(--accent);
  color: #fff;
  border: 0;
}

.btn-pri:hover {
  background: var(--accent-2);
}

.btn-ghost {
  background: var(--card);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: none;
}

.fav-btn,
.account-login {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
}

.fav-btn:hover,
.account-login:hover,
.fav-btn.is-on {
  border-color: var(--accent);
  color: var(--accent);
}

.fav-btn.is-on {
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
}

.account-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #13cbb9;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.av-sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.av-lg {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 23, 27, 0.45);
  display: grid;
  place-items: center;
  padding: 24px;
}

.account-modal[hidden] {
  display: none !important;
}

.account-dialog {
  position: relative;
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: grid;
  gap: 14px;
}

.account-x {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
}

.account-lead,
.account-hint,
.account-wechat p {
  color: var(--muted);
  font-size: 13px;
}

.account-hint {
  color: #c45c26;
}

.account-tabs,
.me-tabs {
  display: flex;
  gap: 8px;
}

.account-tab {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.account-tab.is-on {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.account-form,
.me-profile,
.me-bind-form {
  display: grid;
  gap: 12px;
}

.account-form label,
.me-profile label,
.me-bind-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.account-form input,
.me-profile input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--bg);
}

.sms-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.comment-board {
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.comment-form {
  display: grid;
  gap: 8px;
}

.comment-form-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.comment-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.comment-item header {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.comment-item time,
.comment-item header button {
  color: var(--muted);
  font-size: 12px;
}

.comment-login,
.linkish {
  color: var(--accent);
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
}

.account-page {
  display: grid;
  gap: 18px;
  padding-bottom: 64px;
}

.me-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.me-head .btn-ghost {
  margin-left: auto;
}

.me-bind {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.me-bind-form {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--card);
}

.me-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.me-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.me-list a {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.me-list small,
.me-list p {
  color: var(--muted);
  font-size: 13px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .nav-side {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar,
  .main-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  html[data-layout="detail"] .topbar {
    flex-wrap: wrap;
  }

  html[data-layout="detail"] .top-nav {
    width: 100%;
  }

  html[data-layout="detail"] .search-bar {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
    order: 3;
    margin: 0;
  }

  .account-slot {
    position: static;
    height: auto;
    margin-left: auto;
  }
}
