:root {
  --blue: #1d8bf8;
  --blue-d: #0b6fd6;
  --blue-dd: #08305f;
  --bg: #f3f6fb;
  --text: #1b2733;
  --muted: #6b7a8c;
  --line: #e1e8f0;
  --white: #fff;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--blue-d); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* header */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--blue-dd); letter-spacing: -.5px; }
.logo:hover { text-decoration: none; }
.logo.center { justify-content: center; }
.nav { display: flex; gap: 18px; flex: 1; }
.nav a { color: var(--text); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.hsearch { display: flex; }
.hsearch input { border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; padding: 9px 12px; width: 230px; font-size: 14px; outline: none; }
.hsearch input:focus { border-color: var(--blue); }
.hsearch button { background: var(--blue); color: #fff; border: 0; padding: 0 16px; border-radius: 0 8px 8px 0; font-weight: 600; cursor: pointer; }

/* hero */
.hero { background: linear-gradient(135deg, #1d8bf8 0%, #0b5fc4 100%); color: #fff; text-align: center; padding: 64px 0 52px; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: #bfe0ff; }
.hero p { font-size: 18px; opacity: .92; margin: 0 0 28px; }
.bigsearch { display: flex; max-width: 640px; margin: 0 auto 22px; box-shadow: 0 10px 30px rgba(0,0,0,.18); border-radius: 12px; overflow: hidden; }
.bigsearch input { flex: 1; border: 0; padding: 17px 20px; font-size: 17px; outline: none; min-width: 0; }
.bigsearch button { border: 0; background: #ffb400; color: #3a2a00; font-weight: 800; font-size: 16px; padding: 0 28px; cursor: pointer; }
.bigsearch button:hover { background: #ffc33a; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 18px; }
.chip { background: rgba(255,255,255,.16); color: #fff; padding: 6px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.chip:hover { background: rgba(255,255,255,.3); text-decoration: none; }
.chip-decor, .chip-decor:hover { background: rgba(255,255,255,.16); cursor: default; }
.main .chips { justify-content: flex-start; }
.main .chip { background: var(--white); color: var(--text); border: 1px solid var(--line); }
.main .chip:hover, .main .chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* layout */
.main { padding-top: 28px; padding-bottom: 40px; }
.main.narrow { max-width: 820px; }
.cols { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.sec { font-size: 19px; margin: 22px 0 12px; }
.cols .sec:first-child { margin-top: 0; }
.more { margin-top: 14px; font-weight: 600; }
.empty { padding: 26px; text-align: center; color: var(--muted); background: var(--white); border-radius: var(--radius); }

/* file rows */
.list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.row:last-child { border-bottom: 0; }
.row:hover { background: #f7fbff; text-decoration: none; }
.rinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rinfo strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.rinfo small { color: var(--muted); font-size: 12.5px; }
.rdl { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.list.compact .rdl, .list.compact .btn { display: none; }

.ext { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 6px; border-radius: 9px; font-size: 12px; font-weight: 800; color: #fff; background: #8896a6; flex-shrink: 0; letter-spacing: .3px; }
.ext-lg { min-width: 56px; height: 56px; font-size: 14px; }
.ext-xl { min-width: 78px; height: 78px; font-size: 18px; border-radius: 14px; }
.c-orange { background: #f59e0b; } .c-blue { background: #2f7de1; } .c-purple { background: #8b5cf6; }
.c-red { background: #ef4444; } .c-green { background: #16a34a; } .c-pink { background: #ec4899; } .c-gray { background: #8896a6; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 8px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; color: var(--text); }
.card:hover { box-shadow: 0 8px 22px rgba(20,60,120,.12); transform: translateY(-2px); text-decoration: none; }
.card strong { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card small { color: var(--muted); font-size: 12px; }

/* buttons */
.btn { display: inline-block; background: var(--blue); color: #fff; border: 0; padding: 11px 22px; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; text-align: center; font-family: inherit; }
.btn:hover { background: var(--blue-d); text-decoration: none; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-xl { padding: 18px 54px; font-size: 22px; border-radius: 12px; box-shadow: 0 8px 20px rgba(29,139,248,.35); }
.btn-block { display: block; width: 100%; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { background: #eef3f9; color: var(--text); }
.btn.disabled { background: #9db9d6; pointer-events: none; box-shadow: none; }

/* file page */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.filebox { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.filebox.center { text-align: center; padding: 50px 28px; }
.filebox h1 { margin: 0; font-size: 26px; line-height: 1.25; word-break: break-word; }
.filehead { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; }
.filehead p { margin: 4px 0 0; font-size: 14px; word-break: break-all; }
.dlzone { text-align: center; background: #f1f7ff; border: 1px dashed #b9d8fb; border-radius: 12px; padding: 30px 16px; margin: 22px 0; }
.dlzone p { margin: 14px 0 0; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0 0 8px; }
.meta div { background: var(--bg); border-radius: 8px; padding: 10px 14px; }
.meta dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.meta dd { margin: 2px 0 0; font-weight: 700; }
.desc { white-space: normal; word-break: break-word; }

.searchhead { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.searchhead h1 { margin: 0; font-size: 26px; }
.sorts { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.sorts span { color: var(--muted); }
.sorts a.on { font-weight: 800; color: var(--text); }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pg { background: var(--white); border: 1px solid var(--line); padding: 7px 13px; border-radius: 7px; color: var(--text); font-weight: 600; font-size: 14px; }
.pg.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.pg:hover { text-decoration: none; border-color: var(--blue); }

.ad { margin: 14px auto; text-align: center; overflow: hidden; }
.col-side .ad { margin-top: 0; }

.footer { background: #0e1b2b; color: #9fb0c3; padding: 30px 0; text-align: center; font-size: 14px; margin-top: 20px; }
.hero + .footer { margin-top: 0; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.footer a { color: #cfe3fb; }

@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
  .nav { display: none; }
  .topbar-in { justify-content: space-between; }
  .hero h1 { font-size: 32px; }
  .rdl { display: none; }
  .btn-xl { padding: 16px 28px; font-size: 19px; }
  .filehead { flex-direction: column; text-align: center; }
  .hsearch input { width: 140px; }
}
