/* ==========================================================================
   前台浏览样式（NGINdeX 风格：大标题 + 极简文件网格）
   ========================================================================== */

/* ── Hero ── */
.hero {
  padding: 54px 0 34px;
  text-align: center;
}

.hero-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0 auto;
  max-width: 480px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .hero { padding: 36px 0 24px; }
  .hero-title { font-size: 27px; }
  .hero-sub { font-size: 14px; }
}

/* ── 挂载卡列表 ── */
.mount-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 12px;
}

.mount-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 17px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.mount-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mount-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 17px;
}

.mount-name {
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -.012em;
  margin-bottom: 2px;
}

.mount-meta { font-size: 12px; color: var(--text-faint); }

/* ── 文件工具栏 ── */
.fs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  flex-wrap: wrap;
  min-width: 0;
}

.crumbs button {
  border: none;
  background: none;
  padding: 2px 0;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13.5px;
  border-radius: 4px;
  transition: color .13s;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumbs button:hover { color: var(--accent); }
.crumbs .cur { color: var(--text); font-weight: 620; cursor: default; }
.crumbs .cur:hover { color: var(--text); }
.crumbs .sl { color: var(--text-faint); opacity: .5; }

/* 搜索框 */
.search-box {
  position: relative;
  width: 240px;
  flex: none;
}
.search-box .input { padding-left: 32px; height: 34px; }
.search-box .ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .4;
  pointer-events: none;
  line-height: 0;
}

/* ── 文件列表 ── */
.fs-list {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.fs-head {
  display: grid;
  grid-template-columns: 1fr 110px 140px;
  gap: 12px;
  padding: 10px 17px;
  font-size: 11.5px;
  font-weight: 620;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.fs-row {
  display: grid;
  grid-template-columns: 1fr 110px 140px;
  gap: 12px;
  align-items: center;
  padding: 11px 17px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.fs-row:last-child { border-bottom: none; }
.fs-row:hover { background: var(--bg-hover); }

.fs-name {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.fs-ico {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--bg-subtle);
  color: var(--text-dim);
  font-size: 13px;
  overflow: hidden;
}
.fs-ico img { width: 100%; height: 100%; object-fit: cover; }
.fs-ico.dir { background: var(--accent-soft); color: var(--accent); }

.fs-label {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.fs-size, .fs-time {
  font-size: 12.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.fs-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity .14s;
}
.fs-row:hover .fs-actions { opacity: 1; }

@media (max-width: 720px) {
  .fs-head { display: none; }
  .fs-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .fs-time { display: none; }
  .fs-size { grid-column: 1; padding-left: 41px; margin-top: -4px; }
  .fs-actions { grid-row: 1; grid-column: 2; opacity: 1; }
}

/* ── 密码解锁 ── */
.lock-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 24px;
}

.lock-card {
  width: 100%;
  max-width: 366px;
  text-align: center;
}

.lock-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 22px;
}

.lock-title { font-size: 19px; font-weight: 660; letter-spacing: -.02em; margin: 0 0 6px; }
.lock-sub { font-size: 13px; color: var(--text-faint); margin: 0 0 24px; }

/* ── 预览模态 ── */
.preview-body {
  display: grid;
  place-items: center;
  background: #0a0a0c;
  min-height: 300px;
  max-height: 74vh;
  border-radius: var(--radius);
  overflow: hidden;
}
.preview-body img,
.preview-body video {
  max-width: 100%;
  max-height: 74vh;
  display: block;
  object-fit: contain;
}
.preview-body iframe {
  width: 100%;
  height: 74vh;
  border: none;
  background: #fff;
}
.preview-body audio { width: 100%; padding: 30px; }

/* ── 全局密码页 ── */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 460px at 50% -12%, var(--accent-soft), transparent 70%),
    var(--bg);
}

/* 骨架载入 */
.skel-row {
  height: 54px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, transparent 25%, var(--bg-hover) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
