/* 内核英语工作室 - 移动端通用样式 */
:root {
  --primary: #a78bfa;
  --primary-dark: #8b5cf6;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #f3e8ff;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --error: #dc2626;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* 顶部 */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.25);
}

.site-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-icon-placeholder {
  font-size: 1.25rem;
  opacity: 0.9;
}

.site-icon-img {
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 主内容区 */
.main-content {
  flex: 1;
  padding: 1.5rem 1.25rem;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 底部 */
.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--primary);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* 首页欢迎 */
.welcome-card {
  text-align: center;
  padding: 1rem 0;
}

.welcome-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

/* pending 页面 - 班级信息卡片（单卡片包裹全部内容） */
.class-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.class-item {
  margin-bottom: 1rem;
}

.class-item:last-child {
  margin-bottom: 0;
}

.class-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.class-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.class-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: white !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.class-link:hover {
  background: var(--primary-dark);
}

.class-link:active {
  transform: scale(0.98);
}

.error-msg {
  color: var(--error);
  font-size: 1rem;
  text-align: center;
  padding: 2rem 1rem;
}
