* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%;
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0f1216; color: #e6e6e6; font-size: 14px; }

a { color: #5a93c7; text-decoration: none; }
a:hover { color: #7ab0d9; }

.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid #262b34; background: #12161c; }
.brand { font-size: 18px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.brand .accent { color: #477FB3; }
.langs { display: flex; gap: 6px; }
.langs button { background: transparent; border: 1px solid #2b313b; color: #8a919c;
  padding: 4px 10px; font-size: 12px; border-radius: 4px; cursor: pointer; }
.langs button.active { background: #477FB3; color: #fff; border-color: #477FB3; }
.langs button:hover { color: #e6e6e6; }

.wrap { max-width: 920px; margin: 0 auto; padding: 32px 24px 60px; }

.hero { text-align: center; margin-bottom: 36px; }
.hero h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: 1px; }
.hero p { color: #8a919c; margin: 0; font-size: 14px; }

.gate { max-width: 460px; margin: 0 auto; background: #171b22; border: 1px solid #262b34;
  border-radius: 12px; padding: 28px 24px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.gate h2 { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.gate label { display: block; font-size: 12px; color: #a3a9b3; margin-bottom: 6px; }
.gate input { width: 100%; padding: 11px 13px; font-size: 14px; letter-spacing: 1px;
  background: #0f1216; border: 1px solid #2b313b; border-radius: 6px; color: #e6e6e6;
  outline: none; font-family: ui-monospace, Consolas, monospace; }
.gate input:focus { border-color: #477FB3; }
.gate .btn { width: 100%; margin-top: 14px; padding: 11px; font-size: 14px; font-weight: 600;
  border: 0; border-radius: 6px; background: #477FB3; color: #fff; cursor: pointer; }
.gate .btn:hover { background: #5a93c7; }
.gate .btn:disabled { opacity: .6; cursor: default; }
.gate .err { color: #ff6b6b; font-size: 12px; margin-top: 12px; min-height: 16px; text-align: center; }
.gate .hint { color: #8a919c; font-size: 12px; margin-top: 10px; text-align: center; }

.file-list { display: grid; gap: 14px; }
.file { display: flex; gap: 16px; align-items: center; padding: 18px 20px;
  background: #171b22; border: 1px solid #262b34; border-radius: 10px; }
.file .meta { flex: 1; min-width: 0; }
.file .name { font-size: 15px; font-weight: 600; color: #e6e6e6; margin-bottom: 4px; word-break: break-all; }
.file .desc { font-size: 13px; color: #8a919c; white-space: pre-wrap; }
.file .size { font-size: 12px; color: #666c76; margin-top: 6px; }
.file .dl { flex: 0 0 auto; padding: 9px 20px; font-size: 13px; font-weight: 600;
  border: 0; border-radius: 6px; background: #477FB3; color: #fff; cursor: pointer; }
.file .dl:hover { background: #5a93c7; }

.empty { text-align: center; color: #8a919c; padding: 40px; }

.footer { text-align: center; color: #666c76; font-size: 11px; margin-top: 40px; }

@media (max-width: 640px) {
  .file { flex-direction: column; align-items: stretch; }
  .file .dl { width: 100%; }
}
