/* 系统首页样式 */
.hero {
  background: linear-gradient(135deg, #1e293b 0%, #312e81 55%, #1d4ed8 100%);
  color: #fff; border-radius: 18px; padding: 26px 28px; margin-bottom: 22px;
  box-shadow: 0 18px 40px -24px rgba(30, 41, 59, .9);
}
.hero h1 { margin: 0 0 6px; font-size: 25px; letter-spacing: .5px; }
.hero p { margin: 0; color: #c7d2fe; font-size: 13px; }
.hero-stats { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.hero-stats div .n { font-size: 22px; font-weight: 800; }
.hero-stats div .l { font-size: 12px; color: #c7d2fe; }

.hero-cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero-cta .btn { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.08); }
.hero-cta .btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); }
.hero-cta .btn.primary { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.hero-cta .btn.primary:hover { background: #2563eb; border-color: #2563eb; }

/* 科目卡 */
.subj-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .16s, box-shadow .16s;
}
.subj-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.subj-top { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); position: relative; }
.subj-top::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--sc, var(--accent));
}
.subj-name { font-size: 18px; font-weight: 700; margin: 0 0 2px; }
.subj-sub { font-size: 12px; color: var(--text-3); }
.subj-body { padding: 14px 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.subj-body .m { text-align: center; }
.subj-body .m .n { font-size: 19px; font-weight: 800; }
.subj-body .m .l { font-size: 11px; color: var(--text-2); }
.subj-kp { padding: 0 18px 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.subj-foot { margin-top: auto; padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: var(--surface-2); }

/* 最近试卷 */
.paper-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; margin-bottom: 8px; box-shadow: var(--shadow-sm);
}
.paper-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc, var(--accent)); flex: none; }
.paper-row .t { font-weight: 600; font-size: 14px; }
.paper-row .meta { font-size: 12px; color: var(--text-2); }
.paper-row .ops { margin-left: auto; display: flex; gap: 8px; flex: none; }

/* 全局错题概览 */
.nb-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.nb-sum .it {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.nb-sum .it .h { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.nb-sum .it .h i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.nb-sum .it .n { font-size: 22px; font-weight: 800; margin: 4px 0 2px; }
.nb-sum .it .d { font-size: 12px; color: var(--text-2); }
.nb-sum .it .act { margin-top: 8px; }
