/* ============================================================
   百度网盘搜索 · 原创「云端文件台」设计语言
   白底工作台布局：侧栏分类 + 检索面板 + 榜单卡片
   ============================================================ */
:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --ink: #141a2a;
  --ink-2: #59627e;
  --ink-3: #a0a8c0;
  --blue: #2450f2;
  --blue-2: #4f7dff;
  --cyan: #12b6ff;
  --line: #e8ecf5;
  --hover: #f2f6ff;
  --shadow: 0 1px 2px rgba(20, 40, 120, .04), 0 10px 30px rgba(20, 40, 120, .07);
  --grad: linear-gradient(92deg, var(--blue) 8%, var(--cyan) 95%);
  --r: 16px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei",
          system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; min-height: 100vh; }
a { text-decoration: none; color: inherit; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 60px;
  display: flex; align-items: center; gap: 14px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(36, 80, 242, .32);
}
.logo-mark svg { width: 19px; height: 19px; stroke: #fff; }
.logo-name { font-size: 17.5px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.logo-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar .spacer { flex: 1; }
.top-search-mini {
  display: none; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); border-radius: 999px;
  padding: 7px 16px; font-size: 13px; color: var(--ink-3); width: min(320px, 46vw);
}
.top-search-mini svg { width: 14px; height: 14px; stroke: var(--ink-3); flex: none; }
.top-links { display: flex; align-items: center; gap: 4px; font-size: 13.5px; }
.top-links a { color: var(--ink-2); padding: 7px 13px; border-radius: 9px; transition: .18s; }
.top-links a:hover { color: var(--blue); background: var(--hover); }
.top-links a.cta { color: #fff; background: var(--grad); font-weight: 600; box-shadow: 0 4px 12px rgba(36, 80, 242, .3); }
.top-links a.cta:hover { filter: brightness(1.07); background: var(--grad); }

/* ---------- 工作台布局 ---------- */
.desk {
  max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px;
  display: grid; grid-template-columns: 216px 1fr; gap: 24px; align-items: start;
}

/* 侧栏 */
.side { position: sticky; top: 84px; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 10px; }
.side-title { font-size: 12px; color: var(--ink-3); letter-spacing: 3px; padding: 6px 14px 10px; }
.side a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; border-radius: 11px; font-size: 14.5px; color: var(--ink-2);
  transition: .16s; position: relative;
}
.side a svg { width: 17px; height: 17px; flex: none; stroke: var(--ink-3); transition: .16s; }
.side a:hover { background: var(--hover); color: var(--blue); }
.side a:hover svg { stroke: var(--blue); }
.side a:hover::after {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px;
  border-radius: 3px; background: var(--grad);
}
.side-badge { margin-left: auto; font-size: 11px; color: var(--ink-3); background: var(--bg); border-radius: 999px; padding: 1px 8px; }

/* 主区 */
.main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* 检索面板 */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 42px clamp(22px, 4vw, 52px) 36px;
  position: relative; overflow: hidden;
}
.panel::before {         /* 面板顶部的云光 */
  content: ""; position: absolute; inset: -40% -20% auto 45%; height: 240px;
  background: radial-gradient(closest-side, rgba(18, 182, 255, .12), transparent);
  pointer-events: none;
}
.panel h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: 1px; }
.panel h1 b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.panel .sub { color: var(--ink-2); font-size: 14.5px; margin: 8px 0 26px; }
.panel .sub span { color: var(--blue); font-weight: 600; }

.searchbar {
  display: flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: #fbfcff; padding: 6px 6px 6px 18px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.searchbar:focus-within { border-color: var(--blue-2); background: #fff; box-shadow: 0 0 0 4px rgba(79, 125, 255, .12); }
.searchbar svg.ic { width: 19px; height: 19px; stroke: var(--ink-3); flex: none; }
.searchbar input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font-size: 16px; color: var(--ink); padding: 12px 12px; font-family: var(--font);
}
.searchbar input::placeholder { color: var(--ink-3); }
.btn-go {
  flex: none; border: 0; cursor: pointer; border-radius: 10px; padding: 12px 32px;
  font-size: 15.5px; font-weight: 700; letter-spacing: 3px; color: #fff; font-family: var(--font);
  background: var(--grad); box-shadow: 0 6px 16px rgba(36, 80, 242, .32);
  transition: .18s;
}
.btn-go:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-go:active { transform: scale(.98); }

.hotline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 13px; }
.hotline .lbl { color: var(--ink-3); flex: none; }
.hotline a {
  color: var(--ink-2); padding: 4px 13px; border-radius: 999px;
  background: var(--bg); transition: .16s;
}
.hotline a:hover { color: var(--blue); background: var(--hover); }
.hotline a.up { color: #e04a2f; }
.hotline a.up::after { content: "↑"; font-size: 11px; margin-left: 3px; color: #ff6a45; font-weight: 700; }

/* 榜单卡片 */
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.board {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 20px 20px 12px; min-width: 0;
  display: flex; flex-direction: column;
}
.board-h { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.board-h i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800; flex: none; }
.board-h span { font-size: 15.5px; font-weight: 700; }
.board-h small { margin-left: auto; color: var(--ink-3); font-size: 11.5px; }
.board ol { list-style: none; }
.board li { border-bottom: 1px dashed var(--line); }
.board li:last-child { border-bottom: 0; }
.board li a {
  display: flex; align-items: center; gap: 11px; padding: 10.5px 4px;
  font-size: 13.5px; color: var(--ink-2); transition: .15s; border-radius: 8px;
}
.board li a:hover { color: var(--blue); }
.board li a:hover .t { transform: translateX(3px); }
.board .no { width: 18px; text-align: center; font-size: 13px; font-weight: 800; font-style: italic; color: var(--ink-3); flex: none; }
.board li:nth-child(1) .no { color: #ff4d2e; }
.board li:nth-child(2) .no { color: #ff8a1e; }
.board li:nth-child(3) .no { color: #ffc32e; }
.board .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: transform .15s; }
.board .tag { flex: none; font-size: 10.5px; color: var(--ink-3); background: var(--bg); border-radius: 6px; padding: 1px 7px; }

/* 网盘覆盖条 */
.cover {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 18px 24px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; font-size: 13px;
}
.cover .lbl { color: var(--ink-3); letter-spacing: 2px; margin-right: 6px; }
.cover a, .cover .cov-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px;
  color: var(--ink-2); font-size: 13px; transition: .16s;
}
.cover a b, .cover .cov-chip b { width: 8px; height: 8px; border-radius: 50%; }
.cover a:hover { border-color: var(--blue-2); color: var(--blue); background: var(--hover); transform: translateY(-2px); }

/* 步骤条 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 22px;
}
.step i {
  font-style: normal; display: inline-flex; width: 34px; height: 34px; border-radius: 11px;
  background: var(--hover); color: var(--blue); font-weight: 800; align-items: center; justify-content: center;
  margin-bottom: 12px; font-size: 15px;
}
.step h3 { font-size: 15px; margin-bottom: 5px; }
.step p { font-size: 13px; color: var(--ink-2); }

/* 页脚 */
.foot { max-width: 1180px; margin: 0 auto; padding: 26px 20px 40px; text-align: center; color: var(--ink-3); font-size: 12.5px; line-height: 2; }
.foot a { color: var(--ink-2); margin: 0 8px; }
.foot a:hover { color: var(--blue); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .boards { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 860px) {
  html, body { overflow-x: hidden; }
  .desk { grid-template-columns: 1fr; gap: 18px; }
  .side { position: static; }
  .side-card { display: flex; gap: 8px; overflow-x: auto; padding: 10px; scrollbar-width: none; }
  .side-card::-webkit-scrollbar { display: none; }
  .side-title { display: none; }
  .side a { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
  .side a:hover::after { display: none; }
  .side .side-badge { display: none; }
  .topbar { position: static; width: 100%; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar-in { display: block; width: 100%; height: auto; min-height: 56px; padding: 10px 14px; }
  .topbar-in::after { content: ""; display: table; clear: both; }
  .topbar .spacer, .top-search-mini { display: none; }
  .logo { float: left; display: inline-flex; align-items: center; min-height: 36px; }
  .logo-name { font-size: 16px; }
  .top-links { float: right; display: inline-flex; align-items: center; min-height: 36px; }
  .top-links a:not(.cta) { display: none; }
  .top-links a.cta { white-space: nowrap; padding: 7px 13px; }
}
/* 手机档：窄窗口 或 触屏设备（夸克等浏览器布局宽度虚高也能命中） */
@media (max-width: 620px), (hover: none) and (pointer: coarse) {
  .boards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .board { padding: 14px 12px 6px; border-radius: 12px; }
  .board-h { gap: 6px; }
  .board-h i { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
  .board-h span { font-size: 13.5px; white-space: nowrap; }
  .board-h small { font-size: 10.5px; }
  .board li a { padding: 9px 2px; gap: 7px; font-size: 12.5px; }
  .board .no { width: 13px; font-size: 12px; }
  .board .tag { font-size: 10px; padding: 0 5px; }
  .steps { grid-template-columns: 1fr; }
  .desk { padding: 16px 12px 40px; gap: 14px; }
  .panel { padding: 24px 16px 22px; border-radius: var(--r); }
  .panel h1 { font-size: 22px; letter-spacing: 0; }
  .panel .sub { font-size: 13px; margin: 6px 0 18px; }
  .hotline { gap: 6px; margin-top: 14px; font-size: 12px; }
  .hotline a { padding: 3px 11px; }
  .board { padding: 16px 14px 8px; }
  .cover { padding: 14px 16px; }
  .step { padding: 18px; }
  .btn-go { padding: 12px 20px; letter-spacing: 1px; }
  .searchbar { padding-left: 12px; }
  .foot { padding: 22px 16px calc(28px + env(safe-area-inset-bottom)); }
}
