/* ==========================================================================
   「GOAP-Cloud-EIE（智元演进）」AI 教育平台统一门户 视觉样式表
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #6366f1 100%);
  --accent-purple: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.88);
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-sub: #94a3b8;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease;
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 页面背景装饰网格与光斑 */
.bg-decor-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(at 10% 20%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 10%, rgba(124, 58, 237, 0.07) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
    linear-gradient(rgba(226, 232, 240, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.35) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* 布局容器 */
.app-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px 60px 24px;
}

/* ==========================================================================
   全局统一导航栏 Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
}

.brand-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  letter-spacing: -0.5px;
}

.brand-text h1 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text h1 span.highlight {
  color: var(--primary);
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: var(--radius-full);
}

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

/* 导航快捷搜索与快速切换角色工具栏 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.preset-switcher-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
}

.preset-switcher-box span.hint {
  font-weight: 600;
  color: #64748b;
  margin-right: 2px;
}

.btn-preset-role {
  border: none;
  background: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  color: #334155;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.btn-preset-role:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-preset-role.active {
  background: var(--primary);
  color: #ffffff;
}

/* 用户登录状态区域 */
.user-account-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login-trigger {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: var(--transition-normal);
}

.btn-login-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.user-profile-badge:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

.user-meta-info {
  display: flex;
  flex-direction: column;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-display-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.auth-status-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.pill-student {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.pill-teacher {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.pill-unverified {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

/* ==========================================================================
   顶部区域：活动轮播 Banner 与 平台推荐应用
   ========================================================================== */
.hero-section {
  margin-top: 24px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* 轮播大 Banner */
.event-carousel-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 370px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carousel-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 75%, #0f172a 100%);
  z-index: 2;
}

.carousel-content {
  position: relative;
  z-index: 3;
  padding: 32px 36px;
}

.event-top-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.event-tag {
  background: rgba(37, 99, 235, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-countdown-chip {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fef08a;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.event-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.event-subtitle {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 20px;
  max-width: 90%;
  line-height: 1.5;
}

.event-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-event-participate {
  background: #ffffff;
  color: #0f172a;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-normal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-event-participate:hover {
  background: #dbeafe;
  color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 轮播点导航 */
.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot-indicator {
  width: 24px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot-indicator.active {
  width: 38px;
  background: #38bdf8;
}

/* 推荐应用快速磁贴卡片区 (Top Recommended) */
.featured-apps-panel {
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: space-around;
}

.featured-mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.featured-mini-card:hover {
  transform: translateX(4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.mini-card-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

.mini-card-info {
  flex: 1;
  min-width: 0;
}

.mini-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.mini-card-slogan {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.mini-card-tags {
  display: flex;
  gap: 6px;
}

.mini-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   下方区域：全部应用列表、控制台与筛选
   ========================================================================== */
.apps-section-header {
  margin-bottom: 20px;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-main-title h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.section-main-title p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 综合检索与筛选控制台 */
.filter-toolbar-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.search-icon-box {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.main-search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 14.5px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  outline: none;
  transition: var(--transition-fast);
}

.main-search-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  border: none;
  background: #e2e8f0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  font-size: 12px;
}

.search-clear-btn.visible {
  display: flex;
}

/* 筛选维度行：分类、身份要求、排序 */
.filter-row-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.categories-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid transparent;
  background: #f1f5f9;
  color: #475569;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.filter-dropdown-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-select-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-select-wrapper label {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.styled-select {
  padding: 6px 30px 6px 12px;
  font-size: 13px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 14px;
  appearance: none;
  cursor: pointer;
  outline: none;
  color: #1e293b;
  font-weight: 500;
  transition: var(--transition-fast);
}

.styled-select:focus {
  border-color: var(--primary);
}

/* ==========================================================================
   全部应用展示：网格、卡片及三态
   ========================================================================== */
.apps-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

/* 核心应用卡片样式 */
.app-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.card-header-media {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
}

.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.app-card:hover .card-cover-img {
  transform: scale(1.04);
}

.card-media-tags {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.category-badge-chip {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.identity-badge-chip {
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.badge-student {
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
}

.badge-teacher {
  background: rgba(124, 58, 237, 0.9);
  color: #ffffff;
}

.badge-both {
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
}

.card-body-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.app-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.app-rating-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Slogan 标识条 */
.app-slogan-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

/* 核心定位引用块 */
.app-positioning-box {
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  padding: 8px 12px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 14px;
  line-height: 1.45;
}

.app-desc-paragraph {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* 特性亮点胶囊 */
.app-features-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.feature-tag-item {
  font-size: 11.5px;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 卡片底栏 */
.card-bottom-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.card-stat-text {
  font-size: 12px;
  color: var(--text-sub);
}

.btn-launch-app {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-launch-app:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

/* --------------------------------------------------------------------------
   状态展示：骨架屏加载状态 (Loading Skeleton)
   -------------------------------------------------------------------------- */
.skeleton-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.skeleton-media {
  height: 200px;
  width: 100%;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
}

.skeleton-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
}

.skeleton-line.w-half { width: 50%; }
.skeleton-line.w-3-4 { width: 75%; }
.skeleton-line.w-full { width: 100%; }
.skeleton-line.h-title { height: 22px; }

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   状态展示：空状态 (Empty State / No Results)
   -------------------------------------------------------------------------- */
.empty-state-card {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 60px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.empty-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.empty-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-reset-filter {
  border: 1px solid var(--border-light);
  background: #f8fafc;
  color: #1e293b;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-reset-filter:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   模态弹窗系统 (Modal Dialogs)
   包含：登录/注册、学信网认证、中国教师小程序认证、权限阻断
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 20px 24px 16px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-text h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.modal-header-text p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-close-btn {
  border: none;
  background: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* 弹窗中的步骤引导条 */
.auth-steps-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.auth-steps-stepper::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  transition: var(--transition-fast);
}

.step-item.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.step-item.completed .step-circle {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #ffffff;
}

.step-text {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.step-item.active .step-text {
  color: var(--primary);
  font-weight: 700;
}

/* 目标拦截恢复提示横条 */
.target-intercept-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #1e40af;
}

.target-intercept-notice strong {
  color: #1e3a8a;
}

/* 登录/表单控件通用 */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.input-with-action {
  display: flex;
  gap: 8px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #ffffff;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-send-sms {
  white-space: nowrap;
  padding: 0 16px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-send-sms:hover:not(:disabled) {
  background: #e2e8f0;
}

.btn-send-sms:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  background: #f8fafc;
}

.modal-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* 快速填入演示桩按钮工具条 */
.demo-helper-bar {
  margin-top: 14px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn-fill-demo {
  border: none;
  background: #e0e7ff;
  color: #4338ca;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-fill-demo:hover {
  background: #c7d2fe;
}

/* 认证成功卡片 */
.auth-success-card {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
}

.auth-success-card h4 {
  color: #166534;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.auth-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 12px;
  color: #14532d;
}

.auth-info-grid .full-span {
  grid-column: 1 / -1;
}

/* 认证失败状态盒 */
.auth-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 14px;
  color: #991b1b;
  font-size: 12.5px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.auth-error-box strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

/* 中国教师小程序二维码区域 */
.qr-container-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.qr-code-graphic {
  width: 180px;
  height: 180px;
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.qr-code-graphic img {
  width: 100%;
  height: 100%;
}

.qr-scan-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   权限不足阻断弹窗专属样式
   ========================================================================== */
.forbidden-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff1f2;
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.forbidden-dialog-content {
  text-align: center;
  margin-bottom: 20px;
}

.forbidden-dialog-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.forbidden-dialog-content p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.forbidden-diff-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: left;
  margin-bottom: 20px;
  font-size: 12.5px;
}

.forbidden-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-forbidden-action {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-forbidden-action.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.btn-forbidden-action:hover {
  background: #f1f5f9;
}

.btn-forbidden-action.primary:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   通知吐司组件 (Toast System)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideInToast 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 380px;
}

.toast-item.success { background: #065f46; border-left: 4px solid #34d399; }
.toast-item.error { background: #991b1b; border-left: 4px solid #f87171; }
.toast-item.warning { background: #854d0e; border-left: 4px solid #facc15; }

@keyframes slideInToast {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   响应式断点适配
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .apps-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .preset-switcher-box {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .filter-row-container {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-dropdown-group {
    justify-content: space-between;
  }
  .apps-grid-container {
    grid-template-columns: 1fr;
  }
}
