/* jump-ocs 静态原型 — 对齐 jump-ocs Vant 学校蓝风格 */
:root {
  --ocs-primary: #2196f3;
  --ocs-primary-dark: #1976d2;
  --ocs-primary-surface: #e3f2fd;
  --ocs-success: #4caf50;
  --ocs-warning: #ff9800;
  --ocs-error: #f44336;
  --ocs-text: #212121;
  --ocs-text-2: #757575;
  --ocs-text-3: #bdbdbd;
  --ocs-bg: #f5f7fa;
  --ocs-surface: #ffffff;
  --ocs-divider: #e0e0e0;
  --ocs-radius: 8px;
  --ocs-radius-lg: 12px;
  --ocs-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
  --hub-max: 960px;
  --phone-w: 375px;
  --font: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Roboto', system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--ocs-text);
  background: #eef2f6;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ocs-primary); text-decoration: none; }
a:hover { color: var(--ocs-primary-dark); }

/* ── Hub（目录页） ── */
.hub-header {
  background: var(--ocs-surface);
  border-bottom: 1px solid var(--ocs-divider);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.hub-header__inner {
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ocs-text);
  font-weight: 700;
  font-size: 1.05rem;
}

.hub-brand img { width: 36px; height: 36px; border-radius: 8px; }

.hub-back {
  font-size: 0.875rem;
  color: var(--ocs-text-2);
  font-weight: 500;
}

.hub-main {
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hub-hero { margin-bottom: 32px; }

.hub-hero h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.hub-hero p {
  color: var(--ocs-text-2);
  max-width: 640px;
}

.hub-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hub-stat {
  background: var(--ocs-surface);
  border-radius: var(--ocs-radius-lg);
  padding: 12px 18px;
  box-shadow: var(--ocs-shadow);
  min-width: 100px;
}

.hub-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--ocs-primary);
}

.hub-stat span { font-size: 0.8125rem; color: var(--ocs-text-2); }

.hub-section { margin-bottom: 36px; }

.hub-section h2 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-section h2 .role-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ocs-primary-surface);
  color: var(--ocs-primary-dark);
}

.page-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ocs-surface);
  border-radius: var(--ocs-radius-lg);
  overflow: hidden;
  box-shadow: var(--ocs-shadow);
  font-size: 0.9375rem;
}

.page-table th,
.page-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ocs-divider);
}

.page-table th {
  background: var(--ocs-primary-surface);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--ocs-text-2);
}

.page-table tr:last-child td { border-bottom: none; }

.page-table tr:hover td { background: #fafcff; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-done { background: #e8f5e9; color: #2e7d32; }
.status-wip { background: #fff3e0; color: #e65100; }
.status-plan { background: #f5f5f5; color: #616161; }

.hub-note {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--ocs-primary-surface);
  border-radius: var(--ocs-radius);
  font-size: 0.875rem;
  color: var(--ocs-text-2);
}

/* ── 原型页 chrome ── */
.proto-page { min-height: 100vh; }

.proto-chrome {
  background: var(--ocs-surface);
  border-bottom: 1px solid var(--ocs-divider);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 50;
}

.proto-chrome__left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
}

.proto-chrome__left a { color: var(--ocs-text-2); font-weight: 500; }

.proto-chrome__title {
  font-weight: 600;
  color: var(--ocs-text);
}

.proto-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: #fff8e1;
  color: #f57f17;
  font-weight: 600;
}

.proto-layout {
  display: flex;
  justify-content: center;
  padding: 32px 16px 48px;
}

/* ── 手机框 ── */
.phone {
  width: var(--phone-w);
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  margin: -4px auto 0;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: var(--ocs-bg);
  border-radius: 28px;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  flex-direction: column;
}

/* ── Vant 风格组件 ── */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 16px;
  background: var(--ocs-surface);
  border-bottom: 1px solid var(--ocs-divider);
  flex-shrink: 0;
}

.nav-bar__title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-bar__title img { width: 24px; height: 24px; border-radius: 4px; }

.nav-bar__sub { font-size: 11px; color: var(--ocs-text-2); font-weight: 400; }

.nav-bar__btn {
  font-size: 13px;
  color: var(--ocs-primary);
  border: 1px solid var(--ocs-primary);
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: default;
}

.nav-bar__back {
  font-size: 14px;
  color: var(--ocs-text-2);
}

.screen-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 8px;
}

.tabbar {
  display: flex;
  background: var(--ocs-surface);
  border-top: 1px solid var(--ocs-divider);
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 6px;
  font-size: 10px;
  color: var(--ocs-text-2);
  text-decoration: none;
}

.tabbar-item.active { color: var(--ocs-primary); }

.tabbar-item .icon { font-size: 20px; line-height: 1; }

.cell-group {
  margin: 0 12px 12px;
  background: var(--ocs-surface);
  border-radius: var(--ocs-radius-lg);
  overflow: hidden;
}

.cell-group__title {
  padding: 12px 16px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ocs-text);
}

.cell {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ocs-divider);
  gap: 8px;
  min-height: 48px;
}

.cell:last-child { border-bottom: none; }

.cell__main { flex: 1; min-width: 0; }

.cell__title {
  font-size: 15px;
  color: var(--ocs-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell__label {
  font-size: 12px;
  color: var(--ocs-text-2);
  margin-top: 2px;
}

.cell__value {
  font-size: 14px;
  color: var(--ocs-text-2);
  flex-shrink: 0;
  text-align: right;
}

.cell__arrow {
  color: var(--ocs-text-3);
  font-size: 14px;
  margin-left: 4px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.tag-primary { color: var(--ocs-primary); border: 1px solid var(--ocs-primary); background: transparent; }
.tag-success { color: var(--ocs-success); border: 1px solid var(--ocs-success); background: transparent; }
.tag-warning { color: var(--ocs-warning); border: 1px solid var(--ocs-warning); background: transparent; }
.tag-danger { color: var(--ocs-error); border: 1px solid var(--ocs-error); background: transparent; }
.tag-fill-success { background: var(--ocs-success); color: #fff; border: none; }
.tag-fill-warning { background: var(--ocs-warning); color: #fff; border: none; }

.ocs-card {
  margin: 0 12px 12px;
  padding: 16px;
  background: var(--ocs-surface);
  border-radius: var(--ocs-radius-lg);
  box-shadow: var(--ocs-shadow);
}

.ocs-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.muted { color: var(--ocs-text-2); font-size: 13px; }

.field-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ocs-divider);
  gap: 12px;
}

.field-row label {
  width: 72px;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--ocs-text);
}

.field-row label.required::after { content: '*'; color: var(--ocs-error); margin-left: 2px; }

.field-row input,
.field-row select,
.field-row .field-value {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--ocs-text);
  outline: none;
}

.field-row input::placeholder { color: var(--ocs-text-3); }

.field-row textarea {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  resize: none;
  min-height: 48px;
  font-family: inherit;
}

.radio-row {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex: 1;
}

.radio-row label {
  width: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.btn-primary {
  display: block;
  width: calc(100% - 32px);
  margin: 16px auto;
  padding: 12px;
  background: var(--ocs-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: default;
}

.btn-outline {
  display: block;
  width: calc(100% - 32px);
  margin: 8px auto;
  padding: 12px;
  background: transparent;
  color: var(--ocs-text);
  border: 1px solid var(--ocs-divider);
  border-radius: 999px;
  font-size: 16px;
  text-align: center;
  cursor: default;
}

.action-bar { padding: 8px 0 16px; }

.login-hero {
  text-align: center;
  padding: 24px 16px 12px;
}

.login-hero img { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 12px; }

.login-hero h2 { font-size: 20px; margin-bottom: 6px; }

.tabs {
  display: flex;
  background: var(--ocs-surface);
  margin: 0 12px 12px;
  border-radius: var(--ocs-radius);
  overflow: hidden;
}

.tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--ocs-text-2);
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: var(--ocs-primary);
  border-bottom-color: var(--ocs-primary);
  font-weight: 600;
}

.grid-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ocs-divider);
}

.grid-item {
  text-align: center;
  padding: 8px 4px;
  font-size: 11px;
  color: var(--ocs-text-2);
}

.grid-item .icon { font-size: 22px; display: block; margin-bottom: 4px; color: var(--ocs-primary); }

.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--ocs-text-2);
}

.empty .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }

.score-value { font-weight: 600; color: var(--ocs-primary); font-size: 15px; }

.comp-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notice-bar {
  background: #fff7e6;
  color: #d46b08;
  font-size: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-overlay {
  position: relative;
}

.plan-overlay::after {
  content: '计划中 · 界面待开发';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ocs-text-2);
  border-radius: inherit;
  pointer-events: none;
}

@media (max-width: 480px) {
  .proto-layout { padding: 16px 8px 32px; }
  .phone { width: 100%; max-width: var(--phone-w); border-radius: 24px; padding: 8px; }
  .phone-screen { border-radius: 20px; min-height: 600px; }
}
