/* ═══════════════════════════════════════════
   南方数字教辅平台 — Design Tokens
   Flat Design · 教育场景 · 专业清爽
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* ─── Brand Colors ─── */
  --brand-primary: #1B78F8;
  --brand-primary-hover: #1565D8;
  --brand-primary-light: #E6F0FF;
  --brand-primary-bg: rgba(27, 120, 248, 0.08);

  /* ─── Sidebar (Teacher Web) ─── */
  --sidebar-bg: #1a2744;
  --sidebar-bg-deep: #0f1a30;
  --sidebar-text: rgba(255, 255, 255, 0.65);
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: rgba(27, 120, 248, 0.4);
  --sidebar-active-border: #1B78F8;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.06);

  /* ─── Page Background ─── */
  --bg-page: #f5f7fa;
  --bg-card: #ffffff;
  --bg-body: #e8ecf0; /* 浏览器外部背景 */

  /* ─── Text ─── */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-placeholder: #bbbbbb;

  /* ─── Border & Divider ─── */
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --divider: #eeeeee;

  /* ─── Semantic ─── */
  --success: #22C55E;
  --success-bg: #e6f7e6;
  --success-text: #2a8d2a;
  --warning: #F59E0B;
  --warning-bg: #fff3e0;
  --warning-text: #e65100;
  --danger: #EF4444;
  --danger-bg: #ffe6e6;
  --danger-text: #d32f2f;
  --info: #3B82F6;
  --info-bg: #e6f0ff;
  --info-text: #1B78F8;

  /* ─── Spacing ─── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;

  /* ─── Border Radius ─── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-round: 50%;
  --radius-phone: 32px; /* 手机外壳圆角 */

  /* ─── Font ─── */
  --font-family: 'Noto Sans SC', 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-xs: 11px;
  --font-sm: 12px;
  --font-base: 13px;
  --font-md: 14px;
  --font-lg: 16px;
  --font-xl: 17px;
  --font-2xl: 18px;
  --font-3xl: 22px;
  --font-4xl: 28px;
  --font-5xl: 32px;

  /* ─── Font Weight ─── */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ─── Shadows ─── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.04);

  /* ─── Transitions ─── */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* ─── Layout (PC Web) ─── */
  --pc-width: 1440px;
  --pc-height: 900px;
  --sidebar-width: 200px;
  --topbar-height: 56px;
  --content-padding: 20px;
  --card-gap: 20px;

  /* ─── Layout (Mobile) ─── */
  --mobile-width: 375px;
  --mobile-height: 812px;
  --mobile-nav-height: 72px;
  --mobile-tab-height: 56px;
  --mobile-padding: 12px;
  --mobile-card-gap: 10px;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; display: block; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ═══ Page Label (底部标注) ═══ */
.page-label {
  position: fixed;
  bottom: 6px;
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-xs);
}
