:root {
  --wood-178: #dfc295;
  --panel: rgba(236, 210, 168, 0.9);
  --line: rgba(122, 87, 51, 0.3);
  --text: #000000;
  --laser: #ff9a52;
  --print: #8fa8d1;
  --pcb: #8fbf7a;
  --software: #c791d9;
  --web: #79bfc3;
  --game: #d9977c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  color: var(--text);
  background:
  radial-gradient(circle at 16% 18%, rgba(255, 246, 231, 0.45), transparent 35%),
  radial-gradient(circle at 85% 75%, rgba(187, 140, 88, 0.2), transparent 42%),
  linear-gradient(135deg, #e4c99f, var(--wood-178) 50%, #c9a06f 100%);
  min-height: 100vh;
}

.menu-bar {
  width: 100%;
  border-bottom: 1px solid rgba(122, 87, 51, 0.25);
  background: rgba(223, 194, 149, 0.9);
}

.logo {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 3vw, 2.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.menu-inner {
  width: min(1320px, 96vw);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  color: #000000;
  border: 1px solid rgba(122, 87, 51, 0.28);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 1.2rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  line-height: 1;
  background: rgba(248, 230, 198, 0.88);
}

.main-nav a.active {
  background: rgba(255, 245, 220, 0.95);
}

.wrap {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 24px 0 42px;
}

.sub {
  margin: 0 0 22px;
  line-height: 1.7;
  max-width: 52ch;
  font-size: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  text-decoration: none;
  color: #000000;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 22px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.tag {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  width: fit-content;
}

.laser .tag {
  background: rgba(255, 154, 82, 0.3);
}

.print .tag {
  background: rgba(143, 168, 209, 0.3);
}

.pcb .tag {
  background: rgba(143, 191, 122, 0.3);
}

.software .tag {
  background: rgba(199, 145, 217, 0.3);
}

.web .tag {
  background: rgba(121, 191, 195, 0.3);
}

.game .tag {
  background: rgba(217, 151, 124, 0.3);
}

.card h2 {
  margin: 12px 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 0.95;
}

.card p {
  margin: 0;
  line-height: 1.66;
  font-size: 0.97rem;
}

.go {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .menu-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .main-nav a {
    font-size: 1.05rem;
  }

}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }

}

