/* ============================================================
   /studios 工作室目录 v2：左导航 + 右内容（原 main+rail 合并）
   依赖 shell.css 的 .card/.rail-card/.tag-hero/.pager 基础样式，
   本文件只负责双栏骨架与富信息厂商卡（.scard）。
   ============================================================ */

/* ---------- 双栏骨架：内容在 DOM 前面（SEO 优先）占左，目录导航贴最右 ---------- */
.stu-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 0 26px;
  align-items: start;
  max-width: 1340px;
  margin-inline: auto;
  padding: 20px 24px 72px;
}
.stu-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stu-nav {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stu-nav::-webkit-scrollbar { display: none; }
/* 与 .rail 同一条铁律：sticky+max-height 容器的子项不许被压扁，溢出交给滚动 */
.stu-nav > * { flex: 0 0 auto; }

/* ---------- 紧凑 hero ---------- */
.stu-hero .tag-desc { margin-bottom: 0; }

/* ---------- 厂商富信息卡 ---------- */
.stu-list { display: flex; flex-direction: column; gap: 12px; }
.scard {
  position: relative;
  padding: 18px 20px 16px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.scard:hover {
  border-color: var(--brand-600);
  box-shadow: 0 6px 18px rgba(17, 19, 24, .07);
  transform: translateY(-1px);
}
/* 整卡点击区：卡片不是 <a>，内部官网链接浮在 z2 仍可点 */
.scard-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.scard-head { display: flex; align-items: center; gap: 14px; }
.scard-logo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--surface-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--brand-600);
}
.scard-logo img { width: 100%; height: 100%; object-fit: cover; }
.scard-id { flex: 1 1 auto; min-width: 0; }
.scard-name {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.scard-name .verified { color: var(--brand); flex: 0 0 auto; }
.scard-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 5px 0 0;
  font-size: 12.5px;
  color: var(--ink-2);
}
/* meta 段间的 · 分隔（a 不参与，官网有自己的前置点） */
.scard-meta > span { position: relative; }
.scard-meta > span + span::before {
  content: "·";
  position: absolute;
  left: -9px;
  color: var(--ink-3);
}
.scard-site { position: relative; z-index: 2; font-weight: 600; color: var(--brand-600); }
.scard-site::before { content: "·"; position: absolute; left: -9px; color: var(--ink-3); font-weight: 400; }
.scard-site:hover { text-decoration: underline; }
.scard-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.scard-count { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.scard-count b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 3px;
}
.scard-score {
  background: var(--gold-tint);
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.scard-desc {
  margin: 10px 0 0 70px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 已发布代表作：小封面票签（整卡可点，票签不单独成链接） */
.scard-titles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0 70px;
}
.scard-tl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
  margin-right: 2px;
}
.scard-game {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 200px;
  padding: 3px 11px 3px 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.scard-game img {
  width: 36px;
  height: 25px;
  border-radius: var(--r-pill);
  object-fit: cover;
  background: var(--surface);
}

/* ---------- 左导航卡片 ---------- */
.stu-nav-card h3 { margin-bottom: 10px; }
.stu-nav-stats {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 18px 14px;
  font-size: 13px;
  color: var(--ink-2);
}
.stu-nav-stats b { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--ink); }
/* ---------- 地区筛选条（hero 正下方，/rank 过滤台同款语言） ---------- */
.stu-filterbar { padding: 14px 18px 16px; }
.stu-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.stu-filter-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-3);
}
.stu-filter-clear {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-tint);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  text-decoration: none;
}
.stu-filter-clear:hover { background: #ffe4da; text-decoration: none; }
.stu-region-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stu-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .12s ease, background .12s ease;
}
.stu-chip:hover { border-color: var(--brand-600); text-decoration: none; }
.stu-chip-n {
  font-size: 11.5px;
  color: var(--ink-3);
  background: var(--surface-2);
  border-radius: var(--r-pill);
  padding: 1px 7px;
}
.stu-chip.on { background: var(--brand-tint); border-color: transparent; color: var(--brand-800); }
.stu-chip.on .stu-chip-n { background: rgba(0, 208, 156, .18); color: var(--brand-800); }
.stu-sort { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 14px; }
.stu-sort-item {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  text-decoration: none;
}
.stu-sort-item:hover { border-color: var(--brand-600); color: var(--brand-600); text-decoration: none; }
.stu-sort-item.on { background: var(--brand-tint); border-color: transparent; color: var(--brand-800); }

/* ---------- 响应式：窄屏单列，导航上移成横向筛选条 ---------- */
@media (max-width: 1080px) {
  .stu-page { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 56px; }
  .stu-main { grid-row: auto; }
  .stu-nav {
    order: -1;
    position: static;
    grid-row: auto;
    grid-column: 1;
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 640px) {
  .scard { padding: 14px 16px 13px; }
  .scard-side { flex-direction: row; align-items: center; width: 100%; margin: 10px 0 0 60px; }
  .scard-desc, .scard-titles { margin-left: 0; }
  .scard-logo { width: 46px; height: 46px; border-radius: 12px; font-size: 17px; }
  .scard-desc { margin-top: 8px; }
}
