:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --ink: #1e2528;
  --muted: #607078;
  --line: #d4dddf;
  --panel: #f8fbfb;
  --panel-strong: #ffffff;
  --accent: #146c5f;
  --accent-2: #9b4d2e;
  --accent-3: #365b9c;
  --shadow: 0 18px 48px rgba(30, 37, 40, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 108, 95, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(54, 91, 156, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(212, 221, 223, 0.85);
  background: rgba(244, 247, 246, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.intro-actions,
.filter-bar,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  font-size: 1.06rem;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #f8fbfb;
  font-size: 1rem;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--ink);
}

main {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 7vw, 84px);
  min-height: calc(100vh - 70px);
  align-items: center;
  padding: clamp(48px, 8vw, 92px) 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  white-space: nowrap;
}

.name-highlight {
  display: inline-block;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.08em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.12;
}

.intro-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-note {
  max-width: 720px;
  margin-bottom: 0;
  border-left: 3px solid var(--accent-2);
  padding-left: 12px;
  color: #52626a;
  font-size: 0.95rem;
}

.intro-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 750;
}

.button.primary {
  background: var(--ink);
  color: #f8fbfb;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
}

.hero-preview {
  position: relative;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), #e7f0f1 54%, #f1d8cf);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-preview::before {
  position: absolute;
  inset: 22px;
  z-index: -1;
  border: 1px solid rgba(30, 37, 40, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(30, 37, 40, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(30, 37, 40, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
}

.preview-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(30, 37, 40, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(30, 37, 40, 0.13);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.preview-card:hover {
  box-shadow: 0 24px 54px rgba(30, 37, 40, 0.18);
  transform: translateY(-4px);
}

.preview-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card-game {
  top: 42px;
  left: 42px;
  width: min(360px, calc(100% - 84px));
  height: 235px;
}

.preview-card-game img {
  object-fit: contain;
  background: #07143a;
}

.preview-card-tool {
  right: 34px;
  bottom: 72px;
  width: min(320px, calc(100% - 100px));
  height: 196px;
}

.preview-card-quant {
  left: 42px;
  bottom: 36px;
  width: min(250px, calc(100% - 116px));
  height: 140px;
}

.preview-card-quant img {
  background: #101d24;
}

.preview-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  border: 1px solid rgba(30, 37, 40, 0.13);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-block {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.filter-bar {
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #f8fbfb;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 8px 26px rgba(30, 37, 40, 0.07);
}

.project-visual {
  min-height: 150px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent),
    var(--card-bg);
}

.project-visual.has-image {
  position: relative;
  min-height: 320px;
  background: #07143a;
}

.project-visual img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center center;
}

.project-visual.image-missing img {
  display: none;
}

.project-visual.image-missing::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(248, 251, 251, 0.72);
  content: "预览图待添加";
  font-weight: 750;
}

.project-card:nth-child(1) {
  --card-bg: repeating-linear-gradient(
    135deg,
    #203139 0 18px,
    #2d6b63 18px 36px,
    #d2e4e3 36px 54px
  );
}

.project-card:nth-child(2) {
  --card-bg: linear-gradient(135deg, #18252a, #365b9c 55%, #dce7ec);
}

.project-card:nth-child(3) {
  --card-bg: linear-gradient(135deg, #101d24, #146c5f 56%, #e3ecea);
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  border: 1px solid rgba(30, 37, 40, 0.12);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.project-card p {
  color: var(--muted);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.project-links a {
  color: var(--accent);
  font-weight: 800;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-preview {
    min-height: 520px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar,
  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

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

  .project-card {
    min-height: 0;
  }

  .hero-preview {
    min-height: auto;
    padding: 18px;
  }

  .hero-preview::before {
    inset: 12px;
  }

  .preview-card {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .preview-card-game,
  .preview-card-tool,
  .preview-card-quant {
    height: 210px;
  }

  .preview-card-tool,
  .preview-card-quant {
    margin-top: 14px;
  }
}
