/* ============================================================
   resources.css — 学习资源（仿 kimi-work 常见问题区）
   左侧大字标题，右侧折叠条目（默认收起，点小圆圈展开）
   内容不占满全屏（居中限宽）
   ============================================================ */

.res-block { position: relative; }
.res-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 10px;
}
.res-side { position: sticky; top: 120px; }
.res-big {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: .14em;
  color: #fff;
  margin: 2px 0 14px;
}
.res-side-note { font-size: 12.5px; color: var(--text-2); line-height: 1.9; letter-spacing: .06em; }

.res-list { display: flex; flex-direction: column; gap: 12px; }
.res-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.res-card.open { border-color: rgba(77, 159, 255, .5); background: rgba(77, 159, 255, .05); }

.res-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  user-select: none;
}
.res-head:hover { background: rgba(255, 255, 255, .03); }
.res-ico {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: hsla(var(--rh, 210), 70%, 55%, .14);
  border: 1px solid hsla(var(--rh, 210), 80%, 60%, .3);
}
.res-name { font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.res-count { font-size: 11.5px; color: var(--text-2); margin-top: 1px; }
.res-toggle {
  margin-left: auto;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-dark-2);
  color: var(--text-1);
  background: transparent;
  font-size: 15px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.res-head:hover .res-toggle { border-color: #fff; color: #fff; }
.res-card.open .res-toggle {
  transform: rotate(45deg);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.res-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.25, .9, .3, 1);
}
.res-card.open .res-body { max-height: 560px; }
.res-body-inner { padding: 4px 18px 18px; display: grid; gap: 10px; }

.res-item {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: background .2s;
}
.res-item:hover { background: rgba(77, 159, 255, .09); }
.res-item-icon {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.res-item-title { font-size: 14px; font-weight: 700; }
.res-item-desc { font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.65; }

@media (max-width: 860px) {
  .res-layout { grid-template-columns: 1fr; gap: 22px; }
  .res-side { position: static; }
}
