.fz-body { background: #0b1218; min-height: 100vh; color: #e8eef4; }
.fz-gate-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 24px; }
.fz-gate-card {
  width: min(420px, 94vw); padding: 28px 24px; border-radius: 16px;
  border: 1px solid #2a3948; background: linear-gradient(165deg, #152230, #101820);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.fz-gate-card h1 {
  margin: 0 0 8px; font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  font-size: 1.7rem;
}
.fz-lead { margin: 0 0 18px; color: #8b9aab; line-height: 1.55; font-size: .92rem; }
.fz-mode-panel label { display: block; margin: 10px 0 6px; color: #8b9aab; font-size: .86rem; }
.fz-mode-panel input[type=password],
.fz-mode-panel input[type=text],
.fz-mode-panel input[type=tel],
.fz-auth-form input {
  width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 8px;
  border: 1px solid #2a3948; background: #0f171f; color: inherit; font: inherit;
}
.fz-tip { min-height: 1.2em; margin: 10px 0; font-size: .88rem; color: #2bb673; }
.fz-tip.is-error { color: #e85d5d; }
.fz-gate-card .btn-primary,
.fz-zone .btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 8px; padding: 11px 16px; border: 0; border-radius: 8px;
  background: #2bb673; color: #04140c; font: inherit; font-weight: 600; cursor: pointer;
}
.fz-gate-card .btn-ghost,
.fz-zone .btn-ghost {
  display: inline-flex; margin-top: 8px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid #2a3948; background: transparent; color: #e8eef4; cursor: pointer; font: inherit;
}
.fz-qr-box {
  margin: 14px auto; width: 220px; height: 220px; border-radius: 12px;
  border: 1px dashed #2a3948; display: grid; place-items: center; background: #0f171f;
}
.fz-qr-box img { width: 200px; height: 200px; border-radius: 8px; }
.fz-qr-loading, .fz-scan-hint { color: #8b9aab; font-size: .88rem; text-align: center; }
.fz-channel-row { display: grid; gap: 8px; margin-bottom: 8px; }
.fz-radio { display: flex !important; align-items: center; gap: 8px; color: #e8eef4 !important; cursor: pointer; }

/* 首页弹层 */
.fz-modal[hidden] { display: none !important; }
.fz-modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: rgba(4,10,16,.72); padding: 16px;
}
.fz-modal .fz-gate-card { margin: 0; }

.fz-zone { width: min(1100px, 94vw); margin: 28px auto 72px; }
.fz-zone-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  margin-bottom: 18px;
}
.fz-zone-head h1 {
  margin: 0 0 6px; font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif; font-size: 1.8rem;
}
.fz-zone-head p { margin: 0; color: #8b9aab; }
.fz-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fz-filters select, .fz-filters input, .fz-upload-panel select, .fz-upload-panel input[type=text] {
  padding: 8px 10px; border-radius: 8px; border: 1px solid #2a3948;
  background: #0f171f; color: inherit; font: inherit;
}
.fz-user { color: #8b9aab; margin-right: 10px; font-size: .88rem; }

.fz-upload-panel, .fz-list-panel {
  border: 1px solid #2a3948; border-radius: 14px; padding: 18px;
  background: linear-gradient(160deg, #14202c, #101820); margin-bottom: 16px;
}
.fz-upload-panel h2, .fz-list-panel h2 { margin: 0 0 12px; font-size: 1.05rem; }
.fz-upload-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.fz-upload-grid label { display: block; margin: 8px 0 4px; color: #8b9aab; font-size: .84rem; }
.fz-editor-toolbar { display: flex; gap: 6px; margin-bottom: 6px; }
.fz-editor-toolbar button {
  border: 1px solid #2a3948; background: #0f171f; color: #c9d6e2;
  border-radius: 6px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: .8rem;
}
.fz-editor {
  min-height: 140px; padding: 10px 12px; border-radius: 8px; border: 1px solid #2a3948;
  background: #0f171f; line-height: 1.55; outline: none;
}
.fz-editor:empty:before { content: attr(data-placeholder); color: #5d6b7a; }
.fz-editor img { max-width: 100%; border-radius: 6px; }

.fz-file-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
}
.fz-file-card {
  border: 1px solid #2a3948; border-radius: 12px; padding: 14px; background: #0f171f;
  display: flex; flex-direction: column; gap: 8px;
}
.fz-file-card h3 { margin: 0; font-size: 1rem; }
.fz-file-card .meta { color: #8b9aab; font-size: .8rem; }
.fz-file-card .desc { font-size: .86rem; color: #c5d0db; max-height: 72px; overflow: hidden; }
.fz-file-card .desc img { max-height: 48px; }
.fz-file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.fz-file-actions button, .fz-file-actions a {
  padding: 5px 10px; border-radius: 6px; border: 1px solid #2a3948;
  background: transparent; color: #9ec9ff; cursor: pointer; font: inherit; font-size: .8rem; text-decoration: none;
}

.fz-preview-mask[hidden] { display: none !important; }
.fz-preview-mask {
  position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.75);
  display: grid; place-items: center; padding: 16px;
}
.fz-preview-box {
  width: min(900px, 96vw); max-height: 90vh; background: #121b24; border-radius: 12px;
  border: 1px solid #2a3948; display: flex; flex-direction: column; overflow: hidden;
}
.fz-preview-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid #2a3948;
}
.fz-preview-bar button {
  border: 0; background: transparent; color: #8b9aab; cursor: pointer; font: inherit;
}
.fz-preview-body { padding: 12px; overflow: auto; min-height: 240px; }
.fz-preview-body img, .fz-preview-body iframe { width: 100%; max-height: 70vh; border: 0; }
.fz-preview-body pre { white-space: pre-wrap; color: #d7e2ec; font-size: .9rem; }

.upload-mask[hidden] { display: none !important; }

/* 顶栏专区导航 */
.fz-top-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
}
.fz-top-nav a {
  color: #9fb4c6; text-decoration: none; font-size: .9rem; padding: 4px 2px;
}
.fz-top-nav a.is-active {
  color: #7ddea8; font-weight: 700; border-bottom: 2px solid #2bb673;
}
.fz-top-nav .cta { margin-left: 4px; }
.fz-upload-page .fz-zone-head .btn-ghost { width: auto; margin-top: 0; }

/* ========== 下载中心（腾讯软件中心式） ========== */
.fz-soft-center { background: #0a1016; }
.fz-dl {
  width: min(1180px, 96vw);
  margin: 20px auto 64px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.fz-dl-side {
  position: sticky; top: 72px;
  border: 1px solid #2a3948; border-radius: 14px;
  background: linear-gradient(180deg, #152230, #101820);
  padding: 14px 12px 16px;
  max-height: calc(100vh - 96px);
  overflow: auto;
}
.fz-dl-side-head {
  display: grid; gap: 8px; margin-bottom: 10px; padding: 0 4px 10px;
  border-bottom: 1px solid rgba(42,57,72,.85);
}
.fz-dl-side-head strong {
  font-size: .82rem; color: #8b9aab; letter-spacing: .06em;
}
.fz-side-all, .fz-cat-item {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; color: #c5d0db;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-size: .9rem;
}
.fz-side-all:hover, .fz-cat-item:hover {
  background: rgba(43,182,115,.1); color: #fff;
}
.fz-side-all.is-active, .fz-cat-item.is-active {
  background: rgba(43,182,115,.18); color: #9fecd0; font-weight: 650;
}
.fz-cat-group { margin-bottom: 6px; }
.fz-cat-major { font-weight: 650; color: #e8eef4; }
.fz-cat-children { padding-left: 8px; }
.fz-cat-middle { font-size: .86rem; color: #b7c6d4; }
.fz-cat-minors { padding-left: 10px; }
.fz-cat-minor { font-size: .82rem; color: #8b9aab; padding-top: 6px; padding-bottom: 6px; }
.fz-cat-empty { color: #8b9aab; font-size: .85rem; padding: 8px; margin: 0; }

.fz-dl-main {
  border: 1px solid #2a3948; border-radius: 14px;
  background: linear-gradient(160deg, #14202c, #101820);
  padding: 16px 18px 20px;
  min-height: 520px;
}
.fz-dl-toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  align-items: flex-end; margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(42,57,72,.85);
}
.fz-dl-toolbar h1 {
  margin: 0 0 4px; font-size: 1.35rem;
  font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
}
.fz-dl-sub { margin: 0; color: #8b9aab; font-size: .86rem; }
.fz-dl-sub strong { color: #7ddea8; }
.fz-dl-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fz-dl-search input {
  width: min(360px, 72vw); padding: 9px 12px; border-radius: 8px;
  border: 1px solid #2a3948; background: #0f171f; color: inherit; font: inherit;
}
.fz-dl-search-tip {
  margin: 6px 0 0;
  font-size: .78rem;
  color: #8b9aab;
  width: 100%;
}
.fz-dl-toolbar { flex-wrap: wrap; }
.fz-btn-inline { width: auto !important; margin-top: 0 !important; padding: 9px 16px !important; }
.fz-app-aliases { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.fz-alias-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: .72rem;
  background: rgba(43, 182, 115, .16);
  color: #7ddea8;
  border: 1px solid rgba(43, 182, 115, .28);
}

.fz-app-list { display: grid; gap: 10px; }
.fz-app-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 14px;
  border: 1px solid #2a3948;
  border-radius: 12px;
  background: #0f171f;
  transition: border-color .15s, background .15s, transform .15s;
}
.fz-app-row:hover {
  border-color: rgba(43,182,115,.4);
  background: #121c26;
  transform: translateY(-1px);
}
.fz-app-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  color: #04140c; background: #2bb673;
}
.fz-app-icon span { line-height: 1; }
.fz-app-icon.type-zip { background: linear-gradient(145deg, #f0b429, #d97706); color: #1a1205; }
.fz-app-icon.type-pdf { background: linear-gradient(145deg, #f87171, #dc2626); color: #fff; }
.fz-app-icon.type-doc { background: linear-gradient(145deg, #60a5fa, #2563eb); color: #fff; }
.fz-app-icon.type-xls { background: linear-gradient(145deg, #4ade80, #16a34a); color: #052e16; }
.fz-app-icon.type-ppt { background: linear-gradient(145deg, #fb923c, #ea580c); color: #fff; }
.fz-app-icon.type-img { background: linear-gradient(145deg, #a78bfa, #7c3aed); color: #fff; }
.fz-app-icon.type-txt { background: linear-gradient(145deg, #94a3b8, #64748b); color: #fff; }
.fz-app-icon.type-file { background: linear-gradient(145deg, #34d399, #059669); color: #042f1e; }

.fz-app-title {
  margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; color: #f2f7fb;
  line-height: 1.35;
}
.fz-app-meta {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  color: #8b9aab; font-size: .78rem; margin-bottom: 4px;
}
.fz-app-meta span::before {
  content: "·"; margin-right: 12px; color: #4a6075;
}
.fz-app-meta span:first-child::before { content: none; margin: 0; }
.fz-app-desc {
  margin: 4px 0 0; color: #a8b8c8; font-size: .84rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fz-app-file {
  margin-top: 4px; color: #6b7c8d; font-size: .75rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fz-app-actions {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  min-width: 108px;
}
.fz-app-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 8px; font: inherit; font-size: .86rem;
  font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.fz-app-btn.primary {
  background: #2bb673; color: #04140c; border-color: #2bb673;
}
.fz-app-btn.primary:hover { background: #34c984; }
.fz-app-btn.ghost {
  background: transparent; color: #9ec9ff; border-color: #2a3948;
}
.fz-app-btn.ghost:hover { border-color: #4a90c0; color: #fff; }
.fz-app-empty {
  text-align: center; color: #8b9aab; padding: 48px 16px;
  border: 1px dashed #2a3948; border-radius: 12px;
}

@media (max-width: 900px) {
  .fz-dl { grid-template-columns: 1fr; }
  .fz-dl-side {
    position: static; max-height: none;
  }
  .fz-cat-tree {
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .fz-cat-group { width: 100%; }
  .fz-cat-item, .fz-side-all { width: auto; display: inline-flex; }
  .fz-app-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .fz-app-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
  .fz-app-icon { width: 48px; height: 48px; border-radius: 12px; }
}

@media (max-width: 800px) {
  .fz-upload-grid { grid-template-columns: 1fr; }
}
