:root {
  --brand: #0077ff;
  --brand-light: #0095ff;
  --brand-tint: rgba(127, 163, 255, 0.16);
  --bg: #ffffff;
  --bg-soft: #f8f8f9;
  --border: rgba(0, 0, 0, 0.12);
  --text-1: #242424;
  --text-2: rgba(0, 0, 0, 0.7);
  --text-3: rgba(60, 60, 60, 0.45);
  --sidebar-w: 320px;
  --aside-w: 268px;
  --nav-h: 64px;
  --content-max: 1000px;
  --font: "Inter", "Microsoft YaHei UI", ui-sans-serif, system-ui, sans-serif;
  --mono: Menlo, Monaco, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; font-weight: 500; }
a:hover { opacity: 0.85; border-bottom: 1px solid currentColor; }
a.login-btn:hover,
.login-btn:hover {
  opacity: 1;
  border-bottom: none;
}

.VPApp { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- 顶栏 ---- */
.VPNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.VPNavBar {
  height: var(--nav-h);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.VPNavBarTitle { display: flex; align-items: center; gap: 12px; min-width: 0; }
.VPNavBarTitle .title { font-size: 16px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.VPNavBarTitle .title:hover { border-bottom: none; opacity: 1; }

.sidebar-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  width: 36px; height: 36px;
  cursor: pointer;
  color: var(--text-2);
}

.VPNavBarMenu { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text-2); flex-shrink: 0; }
.VPNavBarMenu a { color: var(--text-2); font-weight: 500; }
.VPNavBarMenu a:hover { color: var(--brand); border-bottom: none; }
.nav-divider { width: 1px; height: 16px; background: var(--border); }
.user-name { color: var(--text-3); margin-right: 4px; }

/* ---- 布局 ---- */
.VPLayout {
  display: flex;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.VPSidebar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  overflow-y: auto;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 24px 0 96px;
  z-index: 20;
}

.VPContent {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

.doc-layout { width: 100%; }

.VPDoc {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 48px 24px 96px;
  max-width: calc(var(--content-max) + var(--aside-w) + 120px);
  margin: 0 auto;
}

.VPDoc .content {
  flex: 1;
  min-width: 0;
  max-width: var(--content-max);
  padding: 0 24px;
}

.VPDocAside {
  width: var(--aside-w);
  flex-shrink: 0;
  padding-left: 24px;
}

/* ---- 侧栏导航 ---- */
.nav-loading, .nav-empty { padding: 8px 24px; color: var(--text-3); font-size: 14px; }

.sidebar-group { margin-bottom: 24px; }
.sidebar-group-title {
  padding: 0 24px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.02em;
}

.sidebar-link {
  display: block;
  margin: 2px 12px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
.sidebar-link:hover { background: var(--bg-soft); color: var(--text-1); border-bottom: none; opacity: 1; }
.sidebar-link.active { background: var(--brand-tint); color: var(--brand); font-weight: 600; }

.sidebar-subgroup { margin: 4px 0 8px; }
.sidebar-subgroup-title {
  padding: 8px 24px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

/* ---- 正文 ---- */
.vp-doc { color: var(--text-1); }
.vp-doc h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 600;
}
.vp-doc h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  line-height: 1.35;
  font-weight: 600;
  position: relative;
}
.vp-doc h2:first-of-type::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 3rem;
}
.vp-doc h3 {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 600;
}
.vp-doc h4 { margin-top: 1.5rem; margin-bottom: 1rem; font-size: 1.25rem; font-weight: 600; }
.vp-doc p { margin: 1.25rem 0; line-height: 1.75rem; color: var(--text-2); }
.vp-doc ul, .vp-doc ol { margin: 1rem 0; padding-left: 1.25rem; line-height: 1.75rem; color: var(--text-2); }
.vp-doc li + li { margin-top: 0.5rem; }
.vp-doc .header-anchor {
  float: left;
  margin-left: -0.87em;
  padding-right: 0.23em;
  color: var(--brand-light);
  opacity: 0;
  font-weight: 500;
}
.vp-doc h2:hover .header-anchor,
.vp-doc h3:hover .header-anchor,
.vp-doc h4:hover .header-anchor { opacity: 1; }

.vp-doc :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.875em;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.05);
  background: rgba(153,161,179,.08);
  color: #476582;
}

.language-block {
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.language-block pre {
  margin: 0;
  padding: 16px 20px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  color: #2e3440;
}

.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
.vp-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.vp-doc th, .vp-doc td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.vp-doc th { background: var(--bg-soft); font-weight: 600; color: var(--text-1); }
.vp-doc td { color: var(--text-2); }

.custom-block.warning {
  margin: 1.25rem 0;
  padding: 12px 16px 12px 14px;
  border-radius: 8px;
  border-left: 4px solid #e6a700;
  background: #fff8e6;
  color: #6b5900;
}
.custom-block-title { font-weight: 700; margin-bottom: 6px; }

blockquote {
  margin: 1.25rem 0;
  padding: 0.5rem 0 0.5rem 16px;
  border-left: 4px solid var(--border);
  color: var(--text-2);
}

.doc-placeholder { color: var(--text-3); padding: 40px 0; }

/* ---- 右侧目录 ---- */
.VPDocAsideOutline {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
}

.outline-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
}

.outline-list { list-style: none; position: relative; }
.outline-list li { margin: 0; }
.outline-link {
  display: block;
  padding: 4px 0 4px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
  border-left: 2px solid transparent;
  font-weight: 400;
}
.outline-link:hover { color: var(--brand); border-bottom: none; opacity: 1; }
.outline-link.active { color: var(--brand); font-weight: 500; border-left-color: var(--brand); }
.outline-link.level-3 { padding-left: 24px; font-size: 12px; }
.outline-link.level-4 { padding-left: 36px; font-size: 12px; }

.outline-marker {
  position: absolute;
  left: 0;
  width: 2px;
  height: 18px;
  background: var(--brand);
  border-radius: 1px;
  transform: translateY(4px);
  opacity: 0;
  transition: top .15s, opacity .15s;
  pointer-events: none;
}

/* ---- 上下页 ---- */
.doc-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.pager-link {
  flex: 1;
  max-width: 48%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-2);
}
.pager-link:hover { border-color: var(--brand); color: var(--brand); background: var(--bg-soft); border-bottom: 1px solid var(--brand); opacity: 1; }
.pager-link.next { text-align: right; margin-left: auto; }
.pager-label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.pager-title { display: block; font-size: 14px; font-weight: 600; color: var(--text-1); }

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.flash.err {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 15;
}

/* ---- 登录/注册页 ---- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #f7f8fa;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #242424;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 32px 28px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.login-head {
  text-align: center;
  margin-bottom: 24px;
}
.login-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #1a1a1a;
}
.login-head p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #888;
}

.login-flash {
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.login-flash.err {
  background: #fff1f0;
  color: #cf1322;
  border: 1px solid #ffccc7;
}
.login-flash.ok {
  background: #f6ffed;
  color: #389e0d;
  border: 1px solid #b7eb8f;
}
.login-flash[hidden] {
  display: none !important;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.login-form label {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #555;
}

.login-form input {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 44px;
  color: #242424;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.login-form input::placeholder { color: #bbb; }
.login-form input:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 0 2px rgba(0, 119, 255, 0.12);
}

.login-field-hint {
  margin: 0;
  min-height: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #888;
}
.login-field-hint:empty { display: none; }
.login-field-hint.err { color: #cf1322; }
.login-field-hint.ok { color: #389e0d; }
.login-field-hint.muted { color: #999; }

/* 邮箱后缀提示 */
.email-suggest {
  position: relative;
  width: 100%;
}
.email-suggest > input {
  width: 100%;
}
.email-suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 220px;
  overflow: auto;
}
.email-suggest-item {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.3;
  color: #242424;
  cursor: pointer;
}
.email-suggest-item:hover,
.email-suggest-item.is-active {
  background: #f2f7ff;
  color: #0077ff;
}

.login-code-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}
.login-code-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0;
}
.login-code-btn {
  flex: 0 0 auto;
  width: 118px;
  height: 44px;
  box-sizing: border-box;
  white-space: nowrap;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: #0077ff;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  -webkit-appearance: none;
  appearance: none;
}
.login-code-btn:hover:not(:disabled) { background: #0066dd; }
.login-code-btn:active:not(:disabled) { background: #005bcc; }
.login-code-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.22);
}
.login-code-btn:disabled {
  background: #e8f2ff;
  color: #5b8fd9;
  cursor: not-allowed;
  opacity: 1;
}

.login-form .login-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.app-auth-code {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  text-align: center;
}
.app-auth-code-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.app-auth-code-value {
  font-family: Consolas, "SF Mono", Monaco, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #1a1a1a;
}
.app-auth-code-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #999;
}

.login-btn {
  display: flex;
  width: 100%;
  height: 44px;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: #0077ff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  opacity: 1;
  -webkit-appearance: none;
  appearance: none;
}
.login-btn:hover,
.login-btn:focus {
  background: #0066dd;
  color: #ffffff;
  opacity: 1;
  outline: none;
  border-bottom: none;
}
a.login-btn,
a.login-btn:visited,
a.login-btn:active,
.login-register a.login-btn,
.login-page a.login-btn {
  display: flex;
  color: #ffffff !important;
  background: #0077ff !important;
  opacity: 1 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}
a.login-btn:hover,
.login-register a.login-btn:hover,
.login-page a.login-btn:hover {
  background: #0066dd !important;
  color: #ffffff !important;
  opacity: 1 !important;
  border-bottom: none !important;
}

.login-register {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: #888;
}
.login-register a {
  color: #0077ff;
  font-weight: 500;
  text-decoration: none;
}
.login-register a:hover { text-decoration: underline; }

.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  line-height: 1.4;
  color: #888;
}
.login-links a {
  color: #0077ff;
  text-decoration: none;
  font-weight: 500;
}
.login-links a:hover { text-decoration: underline; border-bottom: none; opacity: 1; }
.login-links-dot { color: #ccc; user-select: none; }
.login-link-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #0077ff;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  text-decoration: none;
}
.login-link-btn:hover { text-decoration: underline; }
.login-link-btn:focus { outline: none; }
.login-link-btn:focus-visible {
  outline: 2px solid rgba(0, 119, 255, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.login-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 99;
}
.login-toast.show { opacity: 1; }

/* 注册页复用 */
.login-page .login-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 32px 28px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.login-page .login-box > h1 {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.login-page .login-box > p {
  text-align: center;
  color: #888;
  font-size: 13px;
  margin-bottom: 24px;
}
.login-page .login-box label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
}
.login-page .login-box input {
  width: 100%;
  height: 44px;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 14px;
}
.login-page .login-box button {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #0077ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.login-page .login-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #888;
}
.login-page .flash {
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 13px;
}
.login-page .flash.err { background: #fff1f0; color: #cf1322; border: 1px solid #ffccc7; }
.login-page .flash.ok { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }

.flash { padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
.flash.err { background: #fff2f0; color: #cf1322; border: 1px solid #ffccc7; }
.flash.ok { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }

@media (max-width: 1279px) {
  .VPDocAside { display: none; }
  .VPDoc { padding-right: 24px; }
}

@media (max-width: 959px) {
  .sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .VPSidebar {
    transform: translateX(-100%);
    transition: transform .2s;
    box-shadow: 8px 0 32px rgba(0,0,0,.08);
  }
  .VPSidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; }
  .VPContent { margin-left: 0; }
  .VPDoc { padding: 32px 16px 64px; }
  .VPDoc .content { padding: 0; }
}

/* ---- 会员中心 ---- */
.account-page {
  min-height: 100vh;
  background: #f7f8fa;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #242424;
}
.account-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e8e8e8;
  backdrop-filter: blur(10px);
}
.account-top-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.account-brand {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}
.account-brand:hover { opacity: .85; border-bottom: none; }
.account-top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.account-top-nav a { color: #0077ff; text-decoration: none; font-weight: 500; }
.account-top-nav a:hover { text-decoration: underline; border-bottom: none; }
.account-user { color: #888; }

.account-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 28px 64px;
}
.account-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}
.account-lead {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #666;
  max-width: 1100px;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 16px;
}
.account-tab {
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #555;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.account-tab.active {
  background: #0077ff;
  border-color: #0077ff;
  color: #fff;
  font-weight: 600;
}

.account-panel { display: none; }
.account-panel.active { display: block; }

.account-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}
.account-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}
.account-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.account-card-head h2 { margin: 0; }
.account-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.account-card-actions .account-btn {
  margin-top: 0;
  height: 32px;
  padding: 0 12px;
  width: auto;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.account-hint {
  margin: -4px 0 14px;
  font-size: 13px;
  color: #888;
  line-height: 1.55;
}
.account-pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: Consolas, "Microsoft YaHei UI", monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

.account-form label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}
.account-form input,
.account-form select {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #242424;
}
.account-form input[type="file"] {
  height: auto;
  padding: 8px 10px;
  line-height: 1.4;
}
.pay-qr-panel {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #dbe7f5;
  border-radius: 10px;
  background: #f7faff;
}
.pay-qr-panel.is-placeholder {
  border-style: dashed;
  border-color: #f0c36d;
  background: #fffaf0;
}
.pay-qr-panel .pay-proof-hint {
  margin: 0 0 10px;
}
.pay-proof-block {
  margin-top: 8px;
  padding: 12px;
  border: 1px dashed #c9d7ea;
  border-radius: 10px;
  background: #f7faff;
}
.pay-proof-block .pay-proof-hint {
  margin: 0 0 10px;
}
.pay-qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  justify-content: flex-start;
}
.pay-qr-item {
  margin: 0;
  text-align: center;
}
.pay-qr-item img {
  width: 148px;
  height: 148px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.pay-qr-item.is-placeholder img {
  border-color: #f0c36d;
}
.pay-qr-item figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}
.pay-mobile-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d7e3f4;
}
.pay-mobile-upload-qr img {
  width: 140px;
  height: 140px;
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.pay-mobile-upload-meta {
  flex: 1;
  min-width: 180px;
}
.pay-mobile-upload-meta strong {
  display: block;
  margin-bottom: 6px;
  color: #1f2937;
}
.pay-mobile-status {
  margin: 0 0 6px;
  font-size: 13px;
  color: #2563eb;
}
.pay-mobile-status.is-ready {
  color: #067647;
}
.pay-mobile-status.is-error {
  color: #b42318;
}
.pay-mobile-tip {
  margin: 0 0 10px;
  font-size: 12px;
  color: #667085;
  line-height: 1.5;
}
.pay-mobile-link-wrap {
  margin: 0 0 10px;
}
.pay-mobile-link {
  font-size: 12px;
  color: #2563eb;
  word-break: break-all;
}
.pay-mobile-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
  font-size: 13px;
}
.pay-mobile-preview[hidden] {
  display: none !important;
}
.pay-mobile-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #abefc6;
  background: #fff;
}
.account-form input:focus,
.account-form select:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 0 2px rgba(0,119,255,.12);
}

.account-btn.small {
  margin-top: 0;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  width: auto;
  white-space: nowrap;
}
.account-table .account-btn {
  margin-top: 0;
  width: auto;
}
.account-btn.accent-green {
  background: #2ecc71;
  border-color: #27ae60;
  color: #fff;
}
.account-btn.accent-green:hover { background: #27ae60; }
.account-btn.accent-red {
  background: #e74c3c;
  border-color: #c0392b;
  color: #fff;
}
.account-btn.accent-red:hover { background: #c0392b; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #242424;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.plan-card:hover {
  border-color: #b3d4ff;
  background: #f7faff;
}
.plan-card.active {
  border-color: #0077ff;
  background: #f0f7ff;
  box-shadow: 0 0 0 1px #0077ff;
  color: #242424;
}
.plan-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
}
.plan-card.active .plan-card-title {
  color: #005fcc;
}
.plan-card-price {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #1a1a1a;
}
.plan-card.active .plan-card-price {
  color: #0077ff;
}
.plan-card-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.35;
}
.plan-empty {
  grid-column: 1 / -1;
  padding: 12px;
  color: #888;
  font-size: 13px;
}
@media (max-width: 640px) {
  .plan-grid { grid-template-columns: 1fr; }
}
.account-form.row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.account-form.row input { margin: 0; flex: 1; }
.account-form.row .account-btn { width: auto; flex-shrink: 0; padding: 0 16px; }

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: 14px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: #0077ff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.account-btn:hover { background: #0066dd; }
.account-btn.ghost {
  margin-top: 0;
  height: 32px;
  background: #f5f5f5;
  color: #444;
  border: 1px solid #e0e0e0;
  font-weight: 500;
  font-size: 12px;
}
.account-btn.ghost:hover { background: #eee; }

.account-msg {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
  color: #888;
}
.account-msg.err { color: #cf1322; }
.account-msg.ok { color: #389e0d; }

.account-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}
.account-table th,
.account-table td {
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.account-table th {
  color: #888;
  font-weight: 500;
  background: #fafafa;
}
.account-table td.col-code,
.account-table td.col-device {
  white-space: normal;
  word-break: break-all;
  max-width: 220px;
  line-height: 1.45;
}
.account-table td.col-actions {
  width: 1%;
  white-space: nowrap;
}
.account-table code {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: #333;
}
.account-foot {
  margin-top: 24px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

@media (max-width: 640px) {
  .account-form.row { flex-direction: column; align-items: stretch; }
  .account-form.row .account-btn { width: 100%; }
}
