/* ===== 数校云频道公共样式（暗黑风格，对齐全站官网） ===== */
:root {
  --primary: #2196F3;
  --primary-dark: #1565C0;
  --primary-light: rgba(33,150,243,.15);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50: #0a1628;
  --gray-100: #162744;
  --gray-200: rgba(255,255,255,.08);
  --gray-300: rgba(255,255,255,.12);
  --gray-500: #78909c;
  --gray-600: #94a3b8;
  --gray-700: #b0bec5;
  --gray-900: #e8edf5;
  --card: #111d32;
  --card-hover: #18273f;
  --border: rgba(255,255,255,.06);
  --border-hover: rgba(255,255,255,.12);
  --radius: 14px;
  --shadow: 0 2px 10px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.2);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.4);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; }

/* ===== 顶部导航 ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--gray-900); }
.logo-badge {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #1565c0, #00b8d4);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--gray-500);
  transition: all .2s;
}
.nav a:hover { color: var(--primary); background: var(--gray-100); }
.nav a.active { color: #18ffff; background: var(--primary-light); font-weight: 600; }
.user-area { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-name { font-size: 13px; color: var(--gray-700); font-weight: 500; }
.btn {
  padding: 8px 18px; border-radius: 9px; font-size: 14px; font-weight: 500;
  transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: linear-gradient(135deg, #1565c0, #00b8d4); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #0d47a1, #0097b2); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,184,212,.35); }
.btn-outline { border: 1px solid var(--gray-300); color: var(--gray-700); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: #18ffff; }
.btn-danger { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.btn-success:hover { background: var(--success); color: #fff; }
.btn-warning { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.btn-warning:hover { background: var(--warning); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 99px; background: var(--gray-100);
  font-size: 13px; color: var(--gray-700);
}
.user-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #1565c0, #00b8d4);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.role-tag { font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.role-tag.admin { background: rgba(167,139,250,.15); color: #a78bfa; }
.role-tag.developer { background: rgba(33,150,243,.15); color: #60a5fa; }
.role-tag.supplier { background: rgba(34,197,94,.15); color: #4ade80; }
.role-tag.user { background: var(--gray-200); color: var(--gray-700); }
.role-tag.license { background: rgba(245,158,11,.15); color: #fbbf24; }

/* ===== 页面容器 ===== */
.page { max-width: 1160px; margin: 0 auto; padding: 28px 20px 60px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 24px; margin-bottom: 6px; color: var(--gray-900); }
.page-head p { color: var(--gray-500); font-size: 14px; }
.hidden { display: none !important; }

/* ===== 商店 ===== */
.store-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip {
  padding: 6px 14px; border-radius: 99px; font-size: 13px;
  background: var(--card); border: 1px solid var(--gray-200); color: var(--gray-500);
  transition: all .2s;
}
.chip:hover { border-color: var(--primary); color: #18ffff; }
.chip.active { background: linear-gradient(135deg, #1565c0, #00b8d4); border-color: transparent; color: #fff; font-weight: 500; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--gray-200); border-radius: 10px;
  padding: 8px 14px; min-width: 240px;
}
.search-box input { border: none; outline: none; flex: 1; background: transparent; color: var(--gray-900); }
.search-box input::placeholder { color: var(--gray-500); }
.search-box svg { color: var(--gray-500); }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.app-card {
  background: var(--card-bg, var(--card)); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: all .25s; cursor: pointer; display: flex; flex-direction: column; gap: 12px;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--app-glow, rgba(33,150,243,.4)); background: var(--card-bg, var(--card-hover)); }
.app-card-top { display: flex; align-items: flex-start; gap: 12px; }
.app-icon {
  width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c1,#1565c0), var(--c2,#00b8d4));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.app-meta { flex: 1; min-width: 0; }
.app-name { font-weight: 600; font-size: 16px; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-company { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.app-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.tag.free { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.tag.paid { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); font-weight: 600; }
.tag.official { background: rgba(33,150,243,.12); color: #60a5fa; border: 1px solid rgba(33,150,243,.3); }
.tag.third { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.app-desc {
  font-size: 13px; color: var(--gray-500); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--gray-500);
}
.empty-state {
  text-align: center; padding: 80px 20px; color: var(--gray-500);
}
.empty-state svg { opacity: .4; margin-bottom: 12px; }

/* ===== 详情模态 ===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(3,8,16,.72);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); padding: 28px;
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { transform: translateY(16px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.modal-title { font-size: 20px; font-weight: 700; color: var(--gray-900); }
.modal-close {
  margin-left: auto; width: 34px; height: 34px; border-radius: 9px;
  background: var(--gray-100); color: var(--gray-500); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-900); }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.detail-rows { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.detail-row { display: flex; gap: 12px; font-size: 14px; }
.detail-row .k { color: var(--gray-500); width: 84px; flex-shrink: 0; }
.detail-row .v { color: var(--gray-700); flex: 1; word-break: break-all; }
.detail-desc {
  background: var(--gray-100); border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  font-size: 14px; line-height: 1.7; color: var(--gray-700);
}
.detail-features { margin-top: 18px; }
.detail-features.hidden { display: none; }
.features-title {
  font-size: 14px; font-weight: 600; color: var(--gray-900);
  margin-bottom: 10px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.feature-item {
  background: var(--gray-100); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.feature-name { font-size: 13px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.feature-desc { font-size: 12px; color: var(--gray-500); line-height: 1.5; }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

/* ===== 表单 ===== */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-item label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-700); margin-bottom: 6px; }
.form-item input, .form-item textarea, .form-item select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 10px;
  outline: none; transition: all .2s; background: var(--card); color: var(--gray-900);
}
.form-item input::placeholder, .form-item textarea::placeholder { color: var(--gray-500); }
.form-item input:focus, .form-item textarea:focus, .form-item select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(33,150,243,.15);
}
.form-item textarea { min-height: 84px; resize: vertical; }

/* ===== 面板 ===== */
.panel { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.panel-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-head h2 { font-size: 16px; color: var(--gray-900); }
.panel-body { padding: 22px; }

/* ===== 统计卡 ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 18px; box-shadow: var(--shadow);
}
.stat-card .num { font-size: 28px; font-weight: 700; margin: 6px 0 2px; color: var(--gray-900); }
.stat-card .label { font-size: 13px; color: var(--gray-500); }
.stat-card .icon { font-size: 20px; }

/* ===== 站点管理卡片 ===== */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.site-card { transition: box-shadow .15s; }
.site-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.site-card .status-badge { white-space: nowrap; }

/* ===== 列表 ===== */
.list-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.list-table th {
  text-align: left; padding: 12px 16px; font-size: 12px; color: var(--gray-500);
  background: var(--gray-100); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.list-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--gray-700); }
.list-table tr:last-child td { border-bottom: none; }
.list-table tr:hover td { background: var(--gray-100); }
.status-badge { font-size: 12px; padding: 3px 10px; border-radius: 99px; font-weight: 500; }
.status-badge.pending { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.status-badge.approved { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.status-badge.rejected { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.status-badge.revoked { background: rgba(167,139,250,.12); color: #a78bfa; border: 1px solid rgba(167,139,250,.3); }
.status-badge.draft { background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); }
.status-badge.offline { background: var(--gray-100); color: var(--gray-500); border: 1px solid var(--gray-200); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== 提示 ===== */
.toast-wrap { position: fixed; top: 74px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--card); border: 1px solid var(--border); color: var(--gray-900); padding: 11px 18px; border-radius: 10px;
  font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .3s ease; max-width: 340px;
}
.toast.success { background: rgba(34,197,94,.2); border-color: rgba(34,197,94,.4); color: #4ade80; }
.toast.error { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.4); color: #f87171; }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== 登录/注册 ===== */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; background: var(--gray-100); padding: 4px; border-radius: 11px; }
.auth-tabs button { flex: 1; padding: 9px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--gray-500); }
.auth-tabs button.active { background: var(--card); color: #18ffff; box-shadow: var(--shadow); }

/* ===== 授权协议 ===== */
.license-agreement {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--gray-100); margin-bottom: 18px; overflow: hidden;
}
.agreement-title {
  padding: 10px 16px; font-weight: 700; font-size: 14px;
  background: var(--card); border-bottom: 1px solid var(--border);
}
.agreement-body {
  padding: 14px 16px; font-size: 12.5px; line-height: 2; color: var(--gray-600);
  max-height: 180px; overflow-y: auto;
}
.checkbox {
  display: flex; align-items: flex-start; gap: 8px; margin: 14px 0;
  font-size: 13px; color: var(--gray-600); cursor: pointer;
}
.checkbox input { margin-top: 3px; accent-color: var(--primary); }

/* ===== 供应商 ===== */
.supplier-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-badge.supplier-approved { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.status-badge.supplier-pending { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.status-badge.supplier-rejected { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.status-badge.license-approved { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.status-badge.license-pending { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.status-badge.license-rejected { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.product-kind-badge {
  display: inline-block; padding: 2px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600;
}
.kind-product { background: rgba(0,184,212,0.12); color: #00b8d4; border: 1px solid rgba(0,184,212,0.3); }
.kind-service { background: rgba(83,109,254,0.12); color: #7c8cff; border: 1px solid rgba(83,109,254,0.3); }
.license-code {
  font-family: ui-monospace, monospace; font-size: 14px; letter-spacing: 1px;
  background: var(--gray-100); border: 1px dashed var(--gray-300);
  padding: 6px 12px; border-radius: 8px; color: #18ffff; font-weight: 700;
}

/* ===== 安装包横幅 ===== */
.installer-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(21,101,192,0.15), rgba(0,184,212,0.12));
  border: 1px solid rgba(0,184,212,0.25); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 22px;
}
.installer-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #00b8d4); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,184,212,0.3);
}
.installer-info { flex: 1; min-width: 200px; }
.installer-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; color: var(--gray-900); }
.installer-sub { font-size: 13px; color: var(--gray-500); line-height: 1.6; }
.installer-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== 入驻状态 ===== */
.status-hero {
  text-align: center; padding: 44px 24px; border-radius: var(--radius);
  border: 1px dashed var(--gray-300); background: var(--gray-100);
}
.status-hero .big { font-size: 42px; margin-bottom: 14px; }
.status-hero h3 { font-size: 18px; margin-bottom: 8px; color: var(--gray-900); }
.status-hero p { color: var(--gray-500); font-size: 14px; line-height: 1.7; }

.loading { text-align: center; padding: 60px; color: var(--gray-500); }
.spinner {
  width: 30px; height: 30px; margin: 0 auto 12px;
  border: 3px solid var(--gray-200); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.muted { color: var(--gray-500); font-size: 13px; }
footer { text-align: center; padding: 32px; color: var(--gray-500); font-size: 13px; }

/* ===== 全站导航（官网深色风格，供三个频道主页复用） ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; gap: 1rem;
  height: 72px; padding: 0 2rem;
  /* 只过渡滚动压缩相关属性，禁用 all：避免加载/布局切换时导航内容（菜单图标）整体滑动 */
  transition: height .3s cubic-bezier(.4,0,.2,1), background-color .3s cubic-bezier(.4,0,.2,1), border-color .3s cubic-bezier(.4,0,.2,1);
  background: rgba(6,14,26,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}
/* 页面加载完成前导航完全禁用过渡，防止刷新时菜单图标闪现/滑动 */
body:not(.menu-ready) .site-nav { transition: none; }
.site-nav.scrolled { border-bottom-color: rgba(255,255,255,.06); height: 62px; background: rgba(6,14,26,.95); }
.site-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.5px; color: #e8edf5; white-space: nowrap; }
.site-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg,#0d47a1,#1565c0 30%,#00b8d4 70%,#18ffff);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: 0 4px 16px rgba(0,184,212,.3);
}
.site-menu { display: flex; align-items: center; gap: .15rem; list-style: none; flex: 1; justify-content: flex-end; min-width: 0; padding: 0; margin: 0; }
.site-menu > li { position: relative; flex-shrink: 0; }
.site-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 14px; border-radius: 8px;
  font-size: .92rem; font-weight: 500;
  color: #b0bec5; transition: all .3s cubic-bezier(.4,0,.2,1); white-space: nowrap;
}
.site-menu > li > a:hover { color: #fff; background: rgba(255,255,255,.05); }
.site-menu > li > a.active { color: #18ffff; background: rgba(0,184,212,.12); font-weight: 600; }
.site-menu > li > a svg { width: 14px; height: 14px; opacity: .5; transition: all .3s cubic-bezier(.4,0,.2,1); }
.site-menu > li:hover > a svg { opacity: 1; transform: rotate(180deg); }
.site-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: rgba(15,31,56,.98); backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.06); border-radius: 12px;
  padding: .9rem .8rem; min-width: 540px;
  display: none; opacity: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: auto;
}
.site-dropdown::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.site-menu > li:hover > .site-dropdown,
.site-dropdown:hover { display: flex; opacity: 1; transform: translateX(-50%) translateY(4px); }
.site-dropdown-col { flex: 1; min-width: 120px; padding: 0 4px; }
.site-dropdown-col h6 { font-size: .7rem; font-weight: 700; color: #00b8d4; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 .5rem; padding-left: 8px; }
.site-dropdown-col a { display: block; padding: 5px 8px; border-radius: 5px; font-size: .82rem; color: #78909c; transition: all .2s ease; white-space: nowrap; }
.site-dropdown-col a:hover { color: #fff; background: rgba(255,255,255,.06); }
.site-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; z-index: 1001; }
.site-toggle span { display: block; width: 26px; height: 2px; background: #e8edf5; border-radius: 2px; transition: all .3s cubic-bezier(.4,0,.2,1); }
.site-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.site-toggle.active span:nth-child(2) { opacity: 0; }
.site-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.site-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; }
/* 深色导航下的用户区适配 */
.site-nav .user-area { margin-left: auto; }
.site-nav .user-area .btn-outline { border-color: rgba(255,255,255,.3); color: #e8edf5; background: transparent; }
.site-nav .user-area .btn-outline:hover { border-color: #00b8d4; color: #fff; background: rgba(255,255,255,.08); }
.site-nav .user-chip { color: #e8edf5; }
.site-nav .user-chip .role-tag { background: rgba(255,255,255,.1); color: #cfd8dc; }
.site-nav .user-area .user-name { color: #e8edf5; }
body.has-site-nav .page { padding-top: 100px; }
/* 移动端抽屉内的用户区（默认隐藏，桌面端不显示） */
.site-menu-user { display: none; }
/* 触屏设备（含 iPad 横屏/F12 移动模拟等宽视口）一律使用汉堡抽屉菜单 */
@media (max-width: 1100px), (pointer: coarse) {
  .site-menu {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: rgba(10,22,40,.98); backdrop-filter: blur(30px);
    flex-direction: column; padding: 90px 1.5rem 2rem; gap: .3rem;
    justify-content: flex-start; align-items: stretch;
    z-index: 1000;
  }
  /* 页面加载完成后才启用抽屉过渡，避免刷新/首次渲染时菜单闪现又弹回 */
  body.menu-ready .site-menu { transition: right .4s cubic-bezier(.4,0,.2,1); }
  .site-menu.open { right: 0; }
  .site-toggle { display: flex; margin-left: auto; }
  .site-overlay.active { display: block; }
  .site-dropdown { position: static; transform: none; min-width: auto; background: transparent; border: none; padding: 0 0 0 1rem; box-shadow: none; display: none; }
  .site-menu > li:hover .site-dropdown, .site-dropdown.open { display: block; opacity: 1; transform: none; }
  .site-nav { padding: 0 1rem; }
  .site-menu > li > a { color: #b0bec5; font-size: .92rem; padding: 10px 14px; }
  /* 移动端：右上角用户信息收进抽屉，导航栏不再显示 */
  .site-nav .user-area { display: none; }
  .site-menu-user {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: .6rem; padding: 0 4px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-menu-user .user-name { color: #e8edf5; font-size: 14px; }
  .site-menu-user .role-tag { background: rgba(255,255,255,.1); color: #cfd8dc; }
  .site-menu-user .btn-outline { border-color: rgba(255,255,255,.3); color: #e8edf5; background: transparent; justify-content: center; }
  .site-menu-user .btn-outline:hover { border-color: #00b8d4; color: #fff; background: rgba(255,255,255,.08); }
}

/* ===== 移动端商店工具栏排版修复 ===== */
@media (max-width: 720px) {
  .store-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .cat-chips { flex: none; width: 100%; }
  .search-box { min-width: 0; width: 100%; }
}

/* ===== 开放平台介绍 / 开发者文档 ===== */
.intro-wrap, .docs-wrap { display: flex; flex-direction: column; gap: 18px; margin-bottom: 34px; }
.intro-head h2 { font-size: 20px; color: var(--gray-900); }
.intro-head p { color: var(--gray-500); font-size: 13px; margin-top: 4px; }
.intro-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.intro-card {
  border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px; background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.intro-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }
.intro-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--primary-light); border: 1px solid rgba(33,150,243,.25);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.intro-title { display: flex; align-items: center; gap: 12px; }
.intro-card h3 { font-size: 16px; color: var(--gray-900); }
.intro-card p { font-size: 13px; color: var(--gray-500); line-height: 1.7; }
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.flow-step {
  position: relative; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px 16px; background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.flow-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(33,150,243,.35); }
.flow-num {
  position: absolute; top: -9px; left: 14px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: linear-gradient(135deg, #1565c0, #00b8d4); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.flow-icon { font-size: 26px; line-height: 1; margin-top: 6px; }
.flow-step h3 { font-size: 14px; color: var(--gray-900); }
.flow-step p { font-size: 12px; color: var(--gray-500); line-height: 1.6; }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.doc-card {
  border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px; background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(33,150,243,.35); }
.doc-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--gray-900); }
.doc-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--primary-light); border: 1px solid rgba(33,150,243,.25);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.doc-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc-card li {
  position: relative; padding-left: 14px;
  font-size: 13px; color: var(--gray-500); line-height: 1.6;
}
.doc-card li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, #1565c0, #00b8d4);
}
@media (max-width: 860px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .flow-steps { grid-template-columns: 1fr; }
}

/* ===== 优秀开发者排行榜 ===== */
.leader-wrap { display: flex; flex-direction: column; gap: 18px; margin-bottom: 34px; }
.leader-head h2 { font-size: 20px; color: var(--gray-900); }
.leader-head p { color: var(--gray-500); font-size: 13px; margin-top: 4px; }
.leader-card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 24px; background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  transition: transform .25s, box-shadow .25s;
}
.leader-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.leader-rank { font-size: 13px; font-weight: 700; color: var(--gray-400); letter-spacing: 1px; }
.leader-avatar {
  width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 25px; font-weight: 700;
}
.leader-card h3 { font-size: 17px; color: var(--gray-900); }
.leader-desc { font-size: 13px; color: var(--gray-500); line-height: 1.7; }
.leader-stat { font-size: 13px; color: var(--gray-500); }
.leader-stat b { font-size: 20px; color: var(--gray-900); margin-right: 4px; }
.leader-apps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; justify-content: center; }
.leader-mini-app {
  position: relative; width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.leader-mini-app span {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: var(--gray-900); color: #fff; font-size: 12px;
  padding: 4px 9px; border-radius: 6px; font-weight: 400; z-index: 5;
}
.leader-mini-app:hover span { display: block; }
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
@media (max-width: 720px) {
  .leader-grid { grid-template-columns: 1fr; }
}

/* ===== 开发者主页 ===== */
.dev-page-head h1 { font-size: 22px; margin-bottom: 4px; color: var(--gray-900); }
.dev-page-head p { color: var(--gray-500); font-size: 14px; }
.dev-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-500); margin-bottom: 12px; transition: color .2s; }
.dev-back:hover { color: #18ffff; }
.dev-profile {
  display: flex; gap: 24px; align-items: flex-start;
  border-radius: var(--radius); border: 1px solid var(--border);
  padding: 28px; background: var(--card); box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.dev-avatar {
  width: 84px; height: 84px; border-radius: 22px; flex-shrink: 0;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(21,101,192,.35);
}
.dev-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dev-info h2 { font-size: 22px; color: var(--gray-900); }
.dev-desc { font-size: 14px; color: var(--gray-500); line-height: 1.8; }
.dev-stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 4px; }
.dev-stat { display: flex; flex-direction: column; gap: 2px; }
.dev-stat b { font-size: 22px; color: var(--gray-900); }
.dev-stat span { font-size: 12px; color: var(--gray-500); }
.dev-apps-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.dev-apps-head h2 { font-size: 18px; color: var(--gray-900); }
.dev-apps-head p { font-size: 13px; color: var(--gray-500); }
@media (max-width: 640px) {
  .dev-profile { flex-direction: column; align-items: center; text-align: center; padding: 22px 16px; }
  .dev-stats { justify-content: center; gap: 24px; }
}
