

:root {
  --blue: #3b82f6;
  --blue2: #2563eb;
  --line: #e3eefb;
  --text: #1f2a44;
  --sub: #5c6b8a;
  --muted: #9aa7bd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #f1f7ff 0%, #edf9fc 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a, .brand, .back-link, .tool, .glink { cursor: pointer; }
ul { list-style: none; }
img { max-width: 100%; }
button { font-family: inherit; }


.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e9f1fb;
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
.brand span { font-size: 17px; font-weight: 700; letter-spacing: 2px; }
.back-link {
  padding: 7px 18px;
  border: 1px solid #dbe7f7;
  border-radius: 999px;
  font-size: 13px;
  color: var(--blue);
  background: #fff;
  transition: all 0.2s;
}
.back-link:hover { border-color: var(--blue); background: #f0f6ff; }


.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }


.page-head {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(51, 122, 255, 0.06);
}
.page-head .hd-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf2ff;
  color: var(--blue);
}
.page-head h2 { font-size: 20px; font-weight: 700; }
.page-head p { font-size: 13px; color: var(--sub); margin-top: 4px; }


.tip {
  background: #eef6ff;
  border: 1px solid #d8e9ff;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  color: #3d6ea8;
  margin-bottom: 16px;
}
.tip.warn { background: #fef3f3; border-color: #fbdcdc; color: #a34d4d; }


.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(51, 122, 255, 0.06);
}


.form { display: flex; flex-direction: column; gap: 12px; }
.form label { font-size: 13px; font-weight: 600; color: #42537a; }
.ipt {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d9e6f8;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  background: #fbfdff;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ipt:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.ipt::placeholder { color: #a9b6cc; }
.sel {
  padding: 10px 14px;
  border: 1px solid #d9e6f8;
  border-radius: 12px;
  font-size: 13px;
  outline: none;
  background: #fff;
  color: var(--text);
}
.form .hint { font-size: 12px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
  transition: all 0.2s;
}
.btn:hover {
  background: var(--blue2);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}
.btn:disabled { background: #a8c3f0; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-block { display: flex; width: 100%; }

.cp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid #d9e6f8;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.cp-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}


.res-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 4px 14px rgba(51, 122, 255, 0.05);
}
.rc .ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf2ff;
  color: var(--blue);
}
.rc .body { flex: 1; min-width: 0; }
.rc .body .lb { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.rc .body .val {
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.rc .body .val .ph { color: #a9b6cc; }

.ic-blue { background: #eaf2ff; color: #3b82f6; }
.ic-cyan { background: #e4f8fb; color: #0891b2; }
.ic-teal { background: #e0f7f2; color: #0d9488; }
.ic-indigo { background: #ecebfe; color: #6366f1; }

.cover-img {
  max-width: 220px;
  max-height: 220px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #f8fbff;
}
.lyric-box {
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  white-space: pre-wrap;
  font-size: 13px;
  color: #42537a;
  line-height: 1.8;
}
audio { width: 100%; max-width: 380px; height: 36px; outline: none; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 12px;
  background: #eaf2ff;
  color: var(--blue);
  border-radius: 999px;
  font-size: 12px;
}


.loading { text-align: center; padding: 56px 0; color: #8b9bb5; font-size: 14px; }
.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #e2ecfb;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 48px 0; color: var(--muted); font-size: 14px; }
.error { text-align: center; padding: 48px 0; color: #dc2626; font-size: 14px; }

.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; }
.badge-free { background: #e0f7ef; color: #0f8a5f; }
.badge-wait { background: #fdf3e0; color: #b07c10; }
.badge-gray { background: #eef2f9; color: #5c6b8a; }


.hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(51, 122, 255, 0.05);
}
.hcard h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef3fa;
  margin-bottom: 4px;
}
.hcard h3 span { font-size: 12px; color: var(--muted); font-weight: 400; }
.hot-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #eef3fa; font-size: 13px; }
.hot-list li:last-child { border-bottom: none; }
.rank {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: #eef2f9;
  color: #5c6b8a;
  font-size: 12px;
  text-align: center;
  line-height: 22px;
}
.rank.r1 { background: #ef4444; color: #fff; }
.rank.r2 { background: #f97316; color: #fff; }
.rank.r3 { background: #f59e0b; color: #fff; }
.hot-title { flex: 1; color: #334155; cursor: pointer; line-height: 1.6; }
.hot-title:hover { color: var(--blue); }
.hot-err { color: #dc2626; font-size: 13px; }


.game-list { display: flex; flex-direction: column; gap: 14px; }
.gcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(51, 122, 255, 0.05);
}
.gcard h3 { font-size: 16px; }
.gcard h3 a:hover { color: var(--blue); }
.glink { display: inline; color: inherit; }
.glink:hover { color: var(--blue); }
.gmeta { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; font-size: 12px; color: var(--sub); }
.gdesc { font-size: 13px; color: #4b5a72; line-height: 1.7; margin-bottom: 12px; }
.gcover { max-width: 100%; max-height: 230px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }


.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d9e6f8;
  color: var(--blue);
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(51, 122, 255, 0.15);
  display: none;
  z-index: 50;
}
.back-top.show { display: block; }
.back-top:hover { background: var(--blue); color: #fff; border-color: var(--blue); }


.toast-wrap {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(90vw, 400px);
}
.toast {
  pointer-events: auto;
  background: #fff;
  border: 1px solid #dbe7f7;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 13px;
  color: #334155;
  box-shadow: 0 8px 24px rgba(51, 122, 255, 0.12);
  animation: t-in 0.2s ease;
  cursor: pointer;
  max-width: 100%;
}
.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast.hide { animation: t-out 0.2s ease forwards; }
@keyframes t-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes t-out { to { opacity: 0; transform: translateY(-6px); } }


.hero { text-align: center; padding: 40px 0 24px; }
.hero .logo-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(51, 122, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.hero .logo-wrap img { width: 100%; height: 100%; border-radius: 18px; object-fit: cover; }
.hero h1 { margin-top: 18px; font-size: 28px; font-weight: 800; letter-spacing: 4px; }
.hero p { margin-top: 8px; font-size: 14px; color: var(--sub); }

.search-box { max-width: 640px; margin: 26px auto 34px; position: relative; }
.search-box input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border: 1px solid #d9e6f8;
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  background: #fff;
  box-shadow: 0 4px 14px rgba(51, 122, 255, 0.08);
  transition: all 0.2s;
}
.search-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12); }
.search-box .s-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #8b9bb5; }

.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  transition: all 0.2s;
}
.tool:hover {
  border-color: #7fb0ff;
  box-shadow: 0 8px 24px rgba(51, 122, 255, 0.12);
  transform: translateY(-3px);
}
.tool .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.tool .name { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.tool .desc { display: block; font-size: 12px; color: #8b9bb5; line-height: 1.5; }
.tool.soon { cursor: default; background: #fafcff; }
.tool.soon:hover { border-color: var(--line); box-shadow: none; transform: none; }
.tool.soon .ico { background: #eef2f9; color: #a4b0c4; }
.no-result { text-align: center; padding: 30px 0; color: var(--muted); display: none; font-size: 14px; }

body.tool-off .wrap > *:not(.page-head):not(.tool-off-tip) { display: none; }
.tool-off-tip {
  padding: 70px 20px;
  text-align: center;
  font-size: 15px;
  color: #8b9bb5;
}

.site-footer { text-align: center; padding: 24px 20px 30px; font-size: 12px; color: var(--muted); }


@media (max-width: 980px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .hot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 20px 14px 48px; }
  .page-head { padding: 16px; }
  .card { padding: 18px 16px; }
  .hero h1 { font-size: 23px; }
  .tools-grid { gap: 10px; }
  .tool { padding: 14px; }
  .topbar-inner { padding: 10px 14px; }
  .rc { padding: 14px 16px; }
}
