:root {
  --bg: #102821;
  --bg-2: #16362c;
  --paper: #eef5f1;
  --muted: rgba(238, 245, 241, 0.7);
  --accent: #e0a24a;
  --line: rgba(238, 245, 241, 0.16);
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--paper);
  font-family: var(--font-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 15% 10%, #245544 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 90% 85%, rgba(224, 162, 74, 0.18) 0%, transparent 55%),
    linear-gradient(160deg, #102821 0%, #0d201a 100%);
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 640px);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 12vh 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero {
  animation: in 0.7s ease both;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 12vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.tools {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: in 0.7s ease 0.12s both;
}

.tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.25rem 1.2rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: rgba(22, 54, 44, 0.55);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.tool:hover,
.tool:focus-visible {
  border-color: rgba(224, 162, 74, 0.65);
  background: rgba(224, 162, 74, 0.1);
  transform: translateY(-2px);
  outline: none;
}

.tool-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tool-tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.tool-go {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.tool-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.tool-desc {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.footer {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(238, 245, 241, 0.35);
  animation: in 0.7s ease 0.22s both;
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .page {
    width: min(100% - 1.5rem, 640px);
    padding-top: 8vh;
    gap: 2rem;
  }

  .tool-name {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .tools,
  .footer,
  .tool {
    animation: none !important;
    transition: none !important;
  }
}
