:root {
  --ink: #17202a;
  --muted: #647084;
  --line: #dde6ee;
  --paper: #fffdf8;
  --soft: #f5f8f2;
  --blue: #0d4f8b;
  --teal: #1b8a8f;
  --coral: #ff7448;
  --gold: #f4b23d;
  --green: #6aa84f;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 116, 72, 0.1), transparent 30rem),
    linear-gradient(180deg, #fffdf8 0%, #fbfcf8 100%);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(221, 230, 238, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 172px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #173563);
  border-radius: 10px;
  font-weight: 900;
  box-shadow: inset -10px -10px 0 rgba(255, 116, 72, 0.55);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.02rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 8px;
  font-weight: 800;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--blue);
  background: #edf5ff;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

main {
  min-height: 70vh;
}

.page {
  display: none;
  padding: 0 clamp(18px, 5vw, 72px) 72px;
}

.page.active {
  display: block;
}

.hero {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 74px) 0 clamp(30px, 6vw, 58px);
}

.hero-copy h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 4.45vw, 4.75rem);
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 630px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(13, 79, 139, 0.2);
}

.button.secondary {
  color: var(--blue);
  background: #e8f1fb;
}

.hero-feature {
  position: relative;
  margin: 0;
}

.hero-feature::before {
  position: absolute;
  inset: -24px auto auto -22px;
  width: 76%;
  height: 72%;
  content: "";
  background: var(--coral);
  border-radius: 28px;
  transform: rotate(-4deg);
}

.hero-feature img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(330px, 42vw, 510px);
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.feature-card {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  width: min(360px, calc(100% - 44px));
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(221, 230, 238, 0.8);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(23, 32, 42, 0.14);
  backdrop-filter: blur(10px);
}

.feature-card span,
.tag {
  display: inline-flex;
  width: max-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 900;
}

.feature-card strong,
.feature-card small {
  display: block;
}

.feature-card small {
  margin-top: 4px;
  color: var(--muted);
}

.stats-band {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto 64px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(23, 32, 42, 0.06);
}

.stats-band article {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stats-band article:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  color: var(--coral);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.section-grid,
.content-band > *,
.page-hero,
.three-columns,
.writers,
.toolbar,
.outcome-layout,
.resource-grid,
section > .section-heading,
section > .card-grid {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 64px;
  margin-bottom: 64px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.18;
}

.section-heading.with-action {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.notice-list {
  display: grid;
  gap: 12px;
}

.notice-list a {
  display: grid;
  grid-template-columns: 116px minmax(180px, 0.6fr) 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.notice-list a:hover strong,
.text-link:hover {
  color: var(--teal);
}

.notice-list time {
  color: var(--teal);
  font-weight: 900;
}

.notice-list span,
.card p,
.showcase p,
.stack-list p,
.resource-card p,
.three-columns p,
.large-outcome p,
.members p {
  color: var(--muted);
}

.content-band {
  margin: 72px calc(clamp(18px, 5vw, 72px) * -1);
  padding: 56px clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, var(--soft), #eef6f3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  display: block;
  overflow: hidden;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover,
.resource-card:hover,
.showcase:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 79, 139, 0.26);
  box-shadow: 0 18px 42px rgba(23, 32, 42, 0.12);
}

.card-visual {
  position: relative;
  overflow: hidden;
  background: #eaf2f7;
}

.card-visual::after {
  position: absolute;
  inset: auto 14px 14px auto;
  width: 46px;
  height: 46px;
  content: "";
  border-radius: 50%;
  opacity: 0.9;
}

.tone-blue .card-visual::after {
  background: var(--blue);
}

.tone-green .card-visual::after {
  background: var(--green);
}

.tone-coral .card-visual::after {
  background: var(--coral);
}

.tone-gold .card-visual::after {
  background: var(--gold);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 2.35;
  object-fit: cover;
  filter: saturate(0.94);
}

.card-body {
  padding: 18px;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-meta span {
  padding: 4px 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.showcase img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.showcase h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

.member-grid,
.writer-row,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.member-grid article,
.writer-row article,
.resource-card,
.three-columns article,
.stack-list article {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(23, 32, 42, 0.05);
}

.avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 16px;
  font-weight: 900;
}

.page-hero {
  padding: 62px 0 34px;
}

.page-hero.compact {
  min-height: 250px;
  display: grid;
  align-content: center;
}

.three-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.number {
  color: var(--coral);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
}

.writers {
  margin-bottom: 38px;
}

.writer-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.writer-row strong,
.writer-row span {
  display: block;
}

.writer-row span {
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button {
  min-height: 38px;
  padding: 7px 12px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.filters button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.search-box {
  display: grid;
  gap: 5px;
  min-width: 240px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rank-list strong:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--coral);
  border-radius: 50%;
}

.outcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.large-outcome {
  overflow: hidden;
  padding-bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(23, 32, 42, 0.07);
}

.large-outcome img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.large-outcome .tag,
.large-outcome h2,
.large-outcome p {
  margin-left: 24px;
  margin-right: 24px;
}

.large-outcome .tag {
  margin-top: 22px;
}

.stack-list {
  display: grid;
  gap: 14px;
}

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

.resource-card {
  display: block;
  min-height: 210px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.resource-card .resource-type {
  color: var(--teal);
  font-weight: 900;
  font-size: 0.84rem;
}

.resource-card h3 {
  margin: 8px 0;
}

.empty-state {
  padding: 20px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 64px);
  color: #fff;
  background: #17202a;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
  justify-content: flex-end;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  width: 54px;
  height: 54px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.to-top.visible {
  display: block;
}

@media (max-width: 1100px) {
  .site-header {
    gap: 14px;
  }

  .main-nav a {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 920px) {
  .hero,
  .section-grid,
  .outcome-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.25rem, 8vw, 3.8rem);
  }

  .hero-feature {
    max-width: 720px;
  }

  .hero-feature img {
    height: clamp(300px, 58vw, 430px);
  }

  .stats-band,
  .card-grid,
  .member-grid,
  .three-columns,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .notice-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    inset: 74px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .site-header.open .main-nav {
    display: flex;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.25rem);
  }

  .hero-feature::before {
    inset: -12px auto auto -8px;
    border-radius: 18px;
  }

  .hero-feature img {
    height: auto;
    aspect-ratio: 4 / 3;
    border-width: 6px;
  }

  .feature-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 20px);
    margin: -28px auto 0;
  }

  .stats-band,
  .card-grid,
  .member-grid,
  .three-columns,
  .writer-row,
  .resource-grid,
  .showcase {
    grid-template-columns: 1fr;
  }

  .stats-band article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-band article:last-child {
    border-bottom: 0;
  }

  .section-heading.with-action {
    align-items: start;
    flex-direction: column;
  }

  .rank-list a {
    grid-template-columns: 44px 1fr;
  }

  .rank-list .tag {
    grid-column: 2;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
