/* ===== 十五电脑调试 · 全站样式（壁纸 + 深色磨砂玻璃 + 图标卡片） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --glass: rgba(10,16,30,.18);
  --glass-strong: rgba(20,30,52,.38);
  --glass-border: rgba(255,255,255,.14);
  --text: #eef2fa;
  --muted: #b6c1d6;
  --muted-2: #93a0b8;
  --brand: #3b82f6;
  --brand-2: #6366f1;
  --green: #4ade80;
  --green-bg: rgba(74,222,128,.16);
  --amber: #fbbf24;
  --amber-bg: rgba(251,191,36,.16);
  --violet: #c4b5fd;
  --violet-bg: rgba(167,139,250,.18);
  --blue: #7dd3fc;
  --blue-bg: rgba(56,189,248,.16);
  --red: #fca5a5;
  --red-bg: rgba(248,113,113,.16);
}
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text); line-height: 1.65;
  background: #0d1424 url("assets/bg.png") center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,12,24,.02), rgba(8,12,24,.16));
}
a { color: inherit; text-decoration: none; }
img { -webkit-user-drag: none; }

/* ===== 左侧导航（深色磨砂 · 自动隐藏） ===== */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 232px; z-index: 100;
  background: rgba(8,12,22,.32); backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-right: 1px solid rgba(255,255,255,.10);
  color: #b9c3d6; padding: 56px 14px 22px;
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(-100%); transition: transform .25s ease;
  box-shadow: 6px 0 30px rgba(0,0,0,.25);
}
.sidebar.show { transform: translateX(0); }
#navpin {
  position: fixed; left: 6px; top: 8px; z-index: 200; cursor: pointer;
  padding: 3px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: #dbe4f5;
  background: rgba(10,16,30,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16); transition: .15s;
}
#navpin:hover { border-color: rgba(96,165,250,.55); color: #fff; }
#navpin.on { background: linear-gradient(90deg, rgba(59,130,246,.55), rgba(99,102,241,.35)); color: #fff; border-color: rgba(96,165,250,.6); }
body.navshown .main { margin-left: 232px; }
.side-group { font-size: 11px; letter-spacing: 2px; color: #6b7a92; padding: 14px 10px 6px; }
.side-group:first-child { padding-top: 4px; }
.side-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; margin-bottom: 2px; transition: .15s;
}
.side-item:hover { background: rgba(255,255,255,.10); color: #fff; }
.side-item.active {
  background: linear-gradient(90deg, rgba(59,130,246,.45), rgba(99,102,241,.25));
  color: #fff; border-left: 3px solid #60a5fa; padding-left: 9px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(59,130,246,.30);
}
.side-item .i { font-size: 15px; width: 20px; text-align: center; }
.side-item .soon { margin-left: auto; font-size: 10.5px; color: #93a1b8; border: 1px solid rgba(255,255,255,.22); padding: 1px 7px; border-radius: 999px; }

/* ===== 主内容（全宽自适应 1K/2K/4K，随导航栏让位/回缩） ===== */
.main { margin-left: 0; padding: 40px 44px 50px; max-width: none; transition: margin-left .25s ease; }
body.navshown .main { margin-left: 232px; }
@media (min-width: 2000px) { .main { padding: 44px 64px 60px; } .tools { gap: 20px; } }
.page-head h1 {
  font-size: 28px; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.6), 0 0 2px rgba(0,0,0,.35);
  margin-bottom: 6px;
}
.page-head .sub { color: rgba(255,255,255,.88); font-size: 14.5px; margin-bottom: 18px; text-shadow: 0 1px 8px rgba(0,0,0,.55); }

/* 页内搜索 */
.searchbar { margin-bottom: 20px; }
.searchbar input {
  width: 100%; max-width: 460px; padding: 12px 20px; font-size: 14px; color: var(--text);
  border-radius: 14px; outline: none; border: 1px solid var(--glass-border);
  background: var(--glass); backdrop-filter: blur(4px) saturate(140%);
  -webkit-backdrop-filter: blur(4px) saturate(140%);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.searchbar input::placeholder { color: var(--muted-2); }
.searchbar input:focus { border-color: rgba(96,165,250,.5); }

/* 提示条（磨砂） */
.notice {
  background: var(--glass); backdrop-filter: blur(4px) saturate(140%);
  -webkit-backdrop-filter: blur(4px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 12px 18px; font-size: 13.5px; color: var(--muted);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  margin-bottom: 24px;
}
.notice.warn { background: rgba(80,60,20,.22); border-color: rgba(251,191,36,.30); color: #fbd88a; }

/* 分组标题 */
.sec-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  margin: 30px 0 14px;
}
.sec-title::before { content: ""; width: 4px; height: 18px; border-radius: 3px; background: linear-gradient(180deg,#60a5fa,#818cf8); box-shadow: 0 2px 8px rgba(96,165,250,.6); flex-shrink: 0; }
.sec-title small { font-weight: 400; font-size: 12.5px; color: rgba(255,255,255,.72); text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* ===== 工具卡片网格（深色磨砂 + 原版图标） ===== */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.tool {
  display: flex; flex-direction: column; gap: 9px;
  background: rgba(10,16,30,.18); backdrop-filter: blur(4px) saturate(140%);
  -webkit-backdrop-filter: blur(4px) saturate(140%);
  border: 1px solid rgba(255,255,255,.10); border-radius: 18px; padding: 16px 16px 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: transform .18s, background .18s, box-shadow .18s, border-color .18s;
}
.tool:hover {
  transform: translateY(-4px); background: rgba(16,24,42,.34);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.t-top { display: flex; align-items: center; gap: 12px; }
.tool-ic {
  width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0; position: relative; overflow: hidden;
  background: rgba(255,255,255,.94); box-shadow: 0 4px 12px rgba(0,0,0,.28);
}
.tool-ic img { width: 100%; height: 100%; object-fit: contain; padding: 7px; box-sizing: border-box; image-rendering: -webkit-optimize-contrast; }
.tool-ic span { display: none; width: 100%; height: 100%; place-items: center; font-size: 24px; }
.tool-ic.noimg img { display: none; }
.tool-ic.noimg span { display: grid; }
.t-name { min-width: 0; }
.t-name b { display: block; font-size: 15.5px; line-height: 1.35; color: #f4f7ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-name .dm { font-style: normal; font-size: 11.5px; color: var(--muted-2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pillrow { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 11px; padding: 2.5px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.p-oss { background: var(--green-bg); color: var(--green); }
.p-free { background: var(--blue-bg); color: var(--blue); }
.p-paid { background: var(--amber-bg); color: var(--amber); }
.p-member { background: var(--violet-bg); color: var(--violet); }
.p-warn { background: var(--red-bg); color: var(--red); }
.tool p { font-size: 12.5px; color: var(--muted); line-height: 1.6; flex: 1; margin: 0; }

/* ===== 首页 ===== */
.hero {
  text-align: center;
  background: var(--glass); backdrop-filter: blur(4px) saturate(140%);
  -webkit-backdrop-filter: blur(4px) saturate(140%);
  border: 1px solid var(--glass-border); border-radius: 22px;
  padding: 42px 36px 36px; margin-bottom: 30px; box-shadow: 0 14px 40px rgba(0,0,0,.32);
}
.hero h2 { font-size: 34px; letter-spacing: 6px; color: #fff; text-shadow: 0 3px 16px rgba(0,0,0,.6); margin-bottom: 6px; }
.hero-cards { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.promo {
  display: flex; align-items: center; gap: 13px; text-align: left;
  background: var(--glass); backdrop-filter: blur(4px) saturate(140%);
  -webkit-backdrop-filter: blur(4px) saturate(140%);
  border: 1px solid var(--glass-border); border-radius: 16px; padding: 13px 22px 13px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.26); transition: .18s;
}
.promo:hover { transform: translateY(-3px); background: var(--glass-strong); border-color: rgba(255,255,255,.28); }
.promo .tool-ic { width: 46px; height: 46px; }
.promo .pi b { display: block; font-size: 15.5px; color: #f4f7ff; }
.promo .pi i { font-style: normal; font-size: 12px; color: var(--muted-2); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--glass); backdrop-filter: blur(4px) saturate(140%);
  -webkit-backdrop-filter: blur(4px) saturate(140%);
  border: 1px solid var(--glass-border); border-radius: 16px;
  padding: 18px; display: flex; gap: 14px; align-items: flex-start;
  box-shadow: 0 10px 26px rgba(0,0,0,.26); transition: .18s;
}
.cat-card:hover { transform: translateY(-3px); background: var(--glass-strong); box-shadow: 0 16px 36px rgba(0,0,0,.40); }
.cat-card .ci { font-size: 26px; }
.cat-card b { font-size: 15.5px; display: block; color: #f4f7ff; }
.cat-card > span:last-child span { font-size: 12.5px; color: var(--muted); display: block; margin-top: 3px; }
.cat-card .soon-tag { font-size: 11px; color: var(--amber); background: var(--amber-bg); padding: 1px 8px; border-radius: 999px; margin-left: 8px; }

/* ===== 空状态 ===== */
.empty {
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1.5px dashed rgba(255,255,255,.25); border-radius: 20px;
  text-align: center; padding: 76px 24px; color: var(--muted); box-shadow: 0 10px 28px rgba(0,0,0,.24);
}
.empty .big { font-size: 52px; margin-bottom: 12px; }
.empty h3 { color: var(--text); font-size: 20px; margin-bottom: 8px; }
.empty p { font-size: 14px; max-width: 460px; margin: 0 auto; }

footer.site {
  margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.78); font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

@media (max-width: 940px) {
  .main { margin-left: 0 !important; padding: 24px 16px 40px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tools, .cat-grid { grid-template-columns: 1fr; }
}
