@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+TC:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #090b12;
  --panel: #111521;
  --panel-hover: #171e2d;
  --line: rgba(255,255,255,.09);
  --text: #f4f6fb;
  --muted: #8b93a5;
  --accent: #8b7cff;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -20%, rgba(104,91,255,.17), transparent 48%),
    var(--bg);
  font-family: 'DM Sans','Noto Sans TC',sans-serif;
}
.page {
  width: min(920px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.5px;
}
.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, #9b8cff, #5b4be0);
  box-shadow: 0 5px 22px rgba(112,94,255,.25);
  font-size: 18px;
  font-weight: 800;
}
.header-mark { color: #7770b9; font-size: 23px; }
.hub {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  align-content: center;
  gap: 18px;
  padding: 64px 0;
}
.tool-card {
  min-height: 190px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(20,26,40,.96), rgba(14,18,29,.96));
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
a.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,124,255,.55);
  background: var(--panel-hover);
}
.tool-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  font-size: 27px;
  font-weight: 700;
}
.anime {
  color: #fff;
  background: linear-gradient(145deg, #ff8aaf, #a56bff);
}
.add {
  color: #a0a8ba;
  border: 1px dashed rgba(255,255,255,.2);
  background: rgba(255,255,255,.025);
}
.tool-name { font-size: 17px; font-weight: 600; }
.tool-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #9299aa;
  font-size: 20px;
}
.coming { opacity: .55; }
footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: #646c7d;
  text-align: center;
  font-size: 12px;
  letter-spacing: .4px;
}
@media (max-width: 520px) {
  .page { width: min(100% - 32px, 420px); }
  .header { height: 76px; }
  .hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 36px 0;
  }
  .tool-card { min-height: 158px; padding: 18px; border-radius: 16px; gap: 14px; }
  .tool-icon { width: 50px; height: 50px; border-radius: 14px; }
  .tool-name { font-size: 15px; }
}
