/* dazi-home.css — 首页关卡分类门户 (application/index/view/index/index.html) */
/* 样式全部收敛在 .dazi-home 下, 不影响 FastAdmin 布局/导航/页脚 */
.dazi-home {
  --dh-blue: #007bff;
  --dh-blue-dark: #0069d9;
  --dh-text: #333;
  --dh-muted: #919191;
  --dh-border: #e8ecf3;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--dh-text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部横幅 ---------- */
.dazi-home .hero {
  margin-top: 22px;
  padding: 34px 30px 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f1ff 0%, #f4f8ff 55%, #eefaf3 100%);
  border: 1px solid #dfe9fb;
  text-align: center;
}
.dazi-home .hero h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}
.dazi-home .hero .hero-sub {
  margin: 10px 0 0;
  font-size: 14px;
  color: #5c6b80;
}
.dazi-home .hero .hero-cta {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dazi-home .hero .hero-cta a {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.dazi-home .hero .btn-main { background: var(--dh-blue); color: #fff; }
.dazi-home .hero .btn-main:hover { background: var(--dh-blue-dark); }
.dazi-home .hero .btn-ghost { background: #fff; color: var(--dh-blue); border: 1px solid #c9dcf8; }
.dazi-home .hero .btn-ghost:hover { border-color: var(--dh-blue); }
.dazi-home .hero .hero-meta {
  margin: 16px 0 0;
  font-size: 13px;
  color: #6b7a90;
}
.dazi-home .hero .hero-meta a { color: var(--dh-blue); text-decoration: none; font-weight: 600; }

/* ---------- 四大学习业务线 ---------- */
.dazi-home .lane-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.dazi-home .lane-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--dh-border);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: var(--dh-text);
  transition: all .18s;
  overflow: hidden;
}
.dazi-home .lane-card.open { cursor: pointer; }
.dazi-home .lane-card.open:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 123, 255, .12);
  border-color: rgba(0, 123, 255, .4);
}
.dazi-home .lane-card.soon { background: #fafbfd; }
.dazi-home .lane-icon { font-size: 30px; }
.dazi-home .lane-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dazi-home .lane-live {
  font-size: 11px; font-weight: 600; color: #1e9e5a; background: #e6f7ee;
  border-radius: 8px; padding: 2px 8px;
}
.dazi-home .lane-sub { font-size: 12px; color: var(--dh-muted); }
.dazi-home .lane-soon {
  position: absolute; top: 14px; right: -28px;
  background: #eef1f5; color: #8a94a8; font-size: 11px; font-weight: 600;
  padding: 3px 32px; transform: rotate(40deg); letter-spacing: 1px;
}
@media (max-width: 600px) {
  .dazi-home .lane-grid { grid-template-columns: 1fr 1fr; }
  .dazi-home .lane-card { padding: 13px; }
  .dazi-home .lane-icon { font-size: 24px; }
  .dazi-home .lane-name { font-size: 14px; }
  .dazi-home .lane-sub { font-size: 11px; }
}

/* ---------- 板块 ---------- */
.dazi-home .cat-section { margin-top: 30px; }
.dazi-home .cat-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}
.dazi-home .cat-section h2::before {
  content: "";
  align-self: center;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--dh-blue);
}
.dazi-home .cat-section .sec-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--dh-muted);
}

/* ---------- 分类卡片网格 ---------- */
.dazi-home .cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.dazi-home .cat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--dh-border);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: var(--dh-text);
  transition: all .18s;
}
.dazi-home .cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 123, 255, .10);
  border-color: rgba(0, 123, 255, .35);
}
.dazi-home .cat-top { display: flex; align-items: center; gap: 10px; }
.dazi-home .cat-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #f0f5fd;
  border-radius: 10px;
}
.dazi-home .cat-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.dazi-home .cat-count { font-size: 12px; color: var(--dh-muted); }
.dazi-home .cat-sub { margin: 0; font-size: 12px; color: var(--dh-muted); }
.dazi-home .cat-groups { display: flex; flex-wrap: wrap; gap: 4px; }
.dazi-home .cat-groups .g-chip {
  font-size: 11px;
  color: #5c6b80;
  background: #f2f4f8;
  border-radius: 4px;
  padding: 2px 7px;
}
.dazi-home .cat-groups .g-chip.more { background: transparent; color: #b0bac7; }

/* 登录用户: 通关进度条 */
.dazi-home .cat-progress { display: flex; align-items: center; gap: 8px; }
.dazi-home .cat-progress .bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #eef1f5;
  overflow: hidden;
}
.dazi-home .cat-progress .bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #5cb85c, #3fa93f);
}
.dazi-home .cat-progress .pct {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--dh-muted);
  font-family: Consolas, Monaco, monospace;
}
.dazi-home .cat-progress .pct.done { color: #1e9e5a; font-weight: 700; }

.dazi-home .cat-go {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--dh-blue);
}

/* ---------- 学习资源 ---------- */
.dazi-home .home-extras { margin-top: 30px; }
.dazi-home .home-extras h2 { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
.dazi-home .extra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dazi-home .extra-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--dh-border);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--dh-text);
  font-size: 14px;
  font-weight: 600;
  transition: all .18s;
}
.dazi-home .extra-card:hover {
  border-color: rgba(0, 123, 255, .35);
  box-shadow: 0 8px 22px rgba(0, 123, 255, .10);
}
.dazi-home .extra-card .e-icon { font-size: 22px; }
.dazi-home .extra-card .e-sub { display: block; font-size: 12px; font-weight: 400; color: var(--dh-muted); margin-top: 2px; }

/* 加载/失败态 */
.dazi-home .loading, .dazi-home .empty {
  text-align: center;
  color: var(--dh-muted);
  padding: 60px 0;
  font-size: 14px;
}

@media (max-width: 600px) {
  .dazi-home { padding: 0 12px 30px; }
  .dazi-home .hero { margin-top: 14px; padding: 24px 16px 22px; }
  .dazi-home .hero h1 { font-size: 24px; }
  .dazi-home .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
