* {
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --secondary: #0f172a;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.7;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--secondary);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

nav a.active,
nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

.hero {
  padding: 112px 0 88px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
    linear-gradient(135deg, #eff6ff 0%, #ffffff 46%, #eef2ff 100%);
}

.hero-content {
  max-width: 920px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  line-height: 1.06;
}

.lead {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.highlight {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.highlight strong {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
}

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

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 16px 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.topic-grid,
.audience-grid {
  display: grid;
  gap: 24px;
}

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

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

.topic-card,
.audience-card,
.article-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.topic-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.12);
}

.topic-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(37,99,235,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 22px;
}

.article-list {
  display: grid;
  gap: 22px;
}

.article-card,
.audience-card {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover,
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.topic-card h3,
.article-card h3,
.audience-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.topic-card p,
.article-card p,
.audience-card p {
  margin: 0;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.modal.show {
  display: flex;
}

.modal-box {
  position: relative;
  width: min(620px, 100%);
  background: #ffffff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.25);
  animation: modalFade 0.25s ease;
}

.modal-box h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--secondary);
}

.modal-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close:hover {
  background: #dbeafe;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
}

.cta-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.cta-box .section-label {
  color: #bfdbfe;
}

.cta-box h2 {
  margin: 16px 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.cta-box p {
  margin: 0;
  color: rgba(255,255,255,0.82);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #ffffff;
  color: var(--primary);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.24);
  color: #ffffff;
}

.footer {
  padding: 28px 0;
  background: #020617;
  color: rgba(255,255,255,0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-to-top {
  color: #bfdbfe;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .hero-highlights,
  .topic-grid,
  .audience-grid,
  .cta-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  nav.open {
    display: flex;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-highlights,
  .topic-grid,
  .audience-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
