:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: #e4e7ec;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #2563eb;
  --success: #16a34a;
  --warning: #ca8a04;
}

/* Keep `hidden` reliable even when class styles set display. */
[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

a.brand {
  text-decoration: none;
  color: inherit;
}

a.brand:hover strong {
  color: var(--primary-dark);
}

.brand-badge {
  background: #dbeafe;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.top-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.top-nav a {
  color: #344054;
  text-decoration: none;
  font-size: 14px;
}

.top-nav a:hover {
  color: var(--primary);
}

.top-nav a.is-active {
  color: var(--primary-dark);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #ffffff;
  border-color: var(--line);
  color: #344054;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-ghost:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
}

.auth-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-account-wrap {
  position: relative;
}

.auth-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  max-width: min(220px, 52vw);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-account-trigger:hover,
.auth-account-wrap:focus-within .auth-account-trigger,
.auth-account-wrap.is-open .auth-account-trigger {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.auth-account-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #64748b;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.auth-account-wrap.is-open .auth-account-caret,
.auth-account-wrap:focus-within .auth-account-caret,
.auth-account-wrap:hover .auth-account-caret {
  transform: rotate(180deg);
}

.auth-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(0,0,0,0.05);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-account-menu a[role="menuitem"] {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #475467;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.auth-account-menu a[role="menuitem"]:hover,
.auth-account-menu a[role="menuitem"]:focus-visible {
  background: #f1f5f9;
  color: var(--primary-dark);
  outline: none;
}

.auth-account-menu a[role="menuitem"].is-active {
  font-weight: 600;
  color: var(--primary-dark);
  background: #eff6ff;
}

.auth-account-wrap:hover .auth-account-menu,
.auth-account-wrap:focus-within .auth-account-menu,
.auth-account-wrap.is-open .auth-account-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.auth-nickname {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.auth-nickname {
  text-decoration: none;
  color: var(--accent, #2563eb);
}

a.auth-nickname:hover {
  text-decoration: underline;
}

.auth-logout {
  margin: 0;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-logout:hover {
  color: #ef4444;
  background: #fef2f2;
  border-color: #fca5a5;
}

.auth-logout:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.auth-modal__panel {
  position: relative;
  width: min(420px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  padding: 22px 22px 20px;
}

.auth-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-modal__head h2 {
  margin: 0;
  font-size: 18px;
}

.auth-modal__close {
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 4px;
}

.auth-modal__close:hover {
  color: var(--text);
}

.auth-modal__hint {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
}

.auth-modal__hint code {
  font-size: 11px;
  background: #f2f4f7;
  padding: 2px 6px;
  border-radius: 6px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tab {
  flex: 1;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #475467;
}

.auth-tab--active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--primary-dark);
}

.auth-toast {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  margin-bottom: 12px;
}

.auth-toast--error {
  background: #fef2f2;
  color: #991b1b;
}

.auth-panel__note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.auth-pwd-subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.auth-pwd-subtab {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #475467;
}

.auth-pwd-subtab--active {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: var(--primary-dark);
}

.auth-lock-hint {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.auth-pwd-strength {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.auth-pwd-strength__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.auth-pwd-strength__list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-pwd-strength__list li.ok {
  color: var(--success);
}

.auth-pwd-strength__list li.bad {
  color: #b45309;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #344054;
}

.auth-field input,
.auth-field textarea,
.auth-field select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.auth-field input:focus,
.auth-field textarea:focus,
.auth-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-field textarea {
  resize: vertical;
  min-height: 96px;
}

.auth-field--row .auth-sms-row {
  display: flex;
  gap: 8px;
}

.auth-field--row .auth-sms-row input {
  flex: 1;
  min-width: 0;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-page-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.auth-page-main {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-page-card {
  width: min(480px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.1);
}

.developer-register-card {
  width: min(560px, 100%);
}

.developer-register-contract-hint {
  margin: 12px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.developer-register-contract-hint a {
  color: var(--accent, #2563eb);
}

.developer-form .auth-field select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  background: #fff;
}

.tech-stack-chips,
.expertise-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.chip-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  background: #f8fafc;
}

.chip-option:hover {
  border-color: var(--primary);
  background: #eff6ff;
}

.chip-option:has(input:checked) {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary-dark);
}

.chip-option input {
  margin: 0;
}

.auth-field-extra {
  margin-top: 8px;
}

.auth-field em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}

.auth-page-head h1 {
  margin: 0 0 8px;
  font-size: 26px;
}

.auth-page-head p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.auth-page-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
}

.auth-page-actions a {
  color: var(--primary);
  text-decoration: none;
}

.auth-page-actions a:hover {
  text-decoration: underline;
}

.hero {
  padding: 56px 0 36px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 60%, #f2f5ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

.hero-tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 0 0 14px;
  line-height: 1.25;
}

.hero-desc {
  margin: 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--card);
}

.section {
  padding: 46px 0;
}

.section-muted {
  background: #f8fafc;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 6px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-bar input,
.filter-bar select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.card h3,
.card h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #0f172a;
  line-height: 1.4;
}

.card p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.meta-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip {
  font-size: 12px;
  border-radius: 8px;
  padding: 3px 8px;
  background: #f2f4f7;
  color: #344054;
}

.chip.type-web {
  background: #dbeafe;
  color: #1d4ed8;
}

.chip.type-download {
  background: #fef3c7;
  color: #92400e;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 12px;
  background: #fff;
}

.metric strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.developer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.shell-uploader {
  padding: 20px;
}

.shell-uploader__head h2 {
  margin: 0 0 8px;
}

.shell-uploader__head p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.shell-uploader__form {
  display: grid;
  gap: 0;
}

.shell-uploader__inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shell-uploader__submit {
  width: fit-content;
  min-width: 180px;
}

.shell-uploader__submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.shell-flow {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.shell-flow h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.shell-flow__steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.shell-flow__steps li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  list-style-position: outside;
}

.shell-step-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.shell-step-meta {
  font-size: 12px;
  color: var(--muted);
}

.shell-step-status {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

.shell-step-status--pending {
  color: #475467;
}

.shell-step-status--running {
  color: #1d4ed8;
}

.shell-step-status--success {
  color: #166534;
}

.shell-step-status--error {
  color: #b42318;
}

.shell-flow__result {
  margin-top: 12px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
}

.shell-flow__result a {
  color: #14532d;
  font-weight: 700;
}

.developer-overview p {
  margin-top: 0;
  color: #475467;
}

.developer-overview p a {
  color: var(--primary);
  text-decoration: none;
}

.developer-overview p a:hover {
  text-decoration: underline;
}

.developer-profile-block {
  margin-bottom: 16px;
}

.developer-profile-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #f8fafc;
}

.developer-profile-name {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.developer-profile-intro {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #475467;
}

.developer-profile-tags {
  margin-bottom: 8px;
  font-size: 13px;
}

.developer-profile-tags:last-of-type {
  margin-bottom: 0;
}

.developer-profile-tags .chip {
  margin-right: 6px;
  margin-bottom: 4px;
}

.developer-profile-exp {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.wallet-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

.wallet-balance {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.money {
  margin: 6px 0 14px;
  font-size: 32px;
  font-weight: 700;
  color: #0f766e;
}

.wallet-actions {
  display: flex;
  gap: 10px;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.tx-table th,
.tx-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  font-size: 13px;
}

.tx-table th {
  background: #f8fafc;
  color: #344054;
}

.tx-table tr:last-child td {
  border-bottom: 0;
}

.tx-in {
  color: var(--success);
}

.tx-out {
  color: #dc2626;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.safety-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #667085;
  gap: 12px;
}

.footer-inner a {
  color: inherit;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--primary);
}

@media (max-width: 980px) {
  .hero-grid,
  .wallet-layout,
  .card-grid,
  .safety-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .top-nav {
    display: none;
  }

  .shell-uploader__inline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .shell-uploader__submit {
    width: 100%;
  }
}

/* 个人主页：分区为链接导航 + 内容卡片，避免原生 button 外观 */
.profile-hero {
  padding-top: 32px;
  padding-bottom: 48px;
}

.profile-page {
  max-width: 1080px;
}

.profile-head {
  margin-bottom: 28px;
}

.profile-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.profile-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.profile-sub {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.profile-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-layout--stacked {
  gap: 12px;
}

.profile-section-label {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.profile-section-hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-panels {
  min-height: 220px;
  padding: 28px 24px 32px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 32px rgba(15, 23, 42, 0.06);
}

.profile-panel[hidden] {
  display: none !important;
}

.profile-panel-hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.profile-toast {
  margin-bottom: 12px;
}

.profile-demand-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-wallet-head {
  margin-bottom: 20px;
}

.developer-layout--nested {
  padding: 0;
  max-width: none;
}

.profile-account-read {
  margin-bottom: 20px;
}

.profile-account-read h3 {
  margin-top: 0;
}

.profile-account-meta {
  margin: 0;
  padding-left: 18px;
  line-height: 1.85;
}

.profile-account-meta li {
  margin-bottom: 4px;
}

.profile-account-form h3 {
  margin-top: 0;
}

.profile-account-footnote {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* 卖家开发契约与源码自检（创作者分区） */
.seller-contract {
  margin-bottom: 24px;
}

.seller-contract__head h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.seller-contract__head p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.seller-contract__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.seller-contract__block {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.seller-contract__block--wide {
  grid-column: 1 / -1;
}

.seller-contract__block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.seller-contract__ol,
.seller-contract__ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #334155;
  font-size: 13px;
  line-height: 1.65;
}

.seller-contract__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 0 0 10px;
}

.seller-contract__table th,
.seller-contract__table td {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  vertical-align: top;
}

.seller-contract__table thead {
  background: #f1f5f9;
}

.seller-contract__note {
  margin: 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
}

.seller-contract__note--gate {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}

.seller-contract__muted {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}

.seller-contract__validate {
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.seller-contract__validate h3 {
  margin: 16px 0 6px;
  font-size: 16px;
}

.seller-contract__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.seller-contract__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seller-contract__source textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.seller-contract__result {
  margin-top: 16px;
}

.encapsulation-result {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.encapsulation-result--ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.encapsulation-result--fail {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.encapsulation-result__meta {
  margin: 8px 0;
  font-size: 12px;
}

.encapsulation-result__list {
  margin: 6px 0 0;
  padding-left: 1.2rem;
}

.encapsulation-result__urls code {
  word-break: break-all;
}

@media (min-width: 900px) {
  .profile-layout:not(.profile-layout--stacked) {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .profile-layout:not(.profile-layout--stacked) .profile-panels {
    flex: 1;
    min-width: 0;
  }
}
