:root {
  --accent: #3b82f6;
  --accent-deep: #2563eb;
  --text: #1e293b;
  --muted: #64748b;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(15, 23, 42, 0.08);
  --green: #10b981;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #bfdbfe 0%, #dbeafe 28%, #e0f2fe 52%, #ecfdf5 78%, #d1fae5 100%);
}

button {
  font-family: inherit;
}

/* ---------------------------------------------------------------- scene */

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.scene-hills {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 46vh;
  min-height: 240px;
  display: block;
}

.scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
}

.bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(7px);
}

.bokeh.b1 {
  width: 230px;
  height: 230px;
  top: -70px;
  left: 7%;
  background: radial-gradient(#fbcfe8, rgba(251, 207, 232, 0) 70%);
  opacity: 0.7;
}

.bokeh.b2 {
  width: 150px;
  height: 150px;
  top: 10%;
  right: 10%;
  background: radial-gradient(#fef08a, rgba(254, 240, 138, 0) 70%);
  opacity: 0.65;
}

.bokeh.b3 {
  width: 90px;
  height: 90px;
  top: 26%;
  left: 28%;
  background: radial-gradient(#bfdbfe, rgba(191, 219, 254, 0) 70%);
  opacity: 0.6;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 22px;
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-marmot {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.18));
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #0f172a;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.lang-switch button {
  border: 0;
  width: 34px;
  height: 26px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-switch button.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
}

/* ---------------------------------------------------------------- hero */

main {
  position: relative;
  z-index: 2;
  width: min(960px, 94vw);
  margin: 110px auto 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero {
  text-align: center;
  padding: 10px 0 4px;
}

.hero h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 12px;
  color: #0f172a;
}

.hero-sub {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--muted);
  margin: 0;
}

/* ---------------------------------------------------------------- tools grid */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.tool-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}

.tool-card:not(.soon):hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.tool-card.soon {
  opacity: 0.62;
  cursor: default;
}

.tool-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.tool-body {
  min-width: 0;
  flex: 1;
}

.tool-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.tool-name {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-tag {
  flex: none;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-deep);
  font-weight: 600;
}

.tool-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.55;
}

.tool-foot {
  font-size: 13px;
  font-weight: 700;
}

.go {
  color: var(--accent);
}

.soon-badge {
  color: var(--muted);
}

/* ---------------------------------------------------------------- misc */

footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  text-align: center;
  padding: 16px 20px 24px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.7;
}

footer > div + div {
  margin-top: 2px;
}

.beian {
  color: #475569;
  text-decoration: none;
  transition: color 0.15s;
}

.beian:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.beian-sep {
  margin: 0 2px;
}

@media (max-width: 560px) {
  main {
    margin-top: 90px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
}
