﻿*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0c10;
  --card: rgba(14, 18, 26, 0.88);
  --border: rgba(255,255,255,0.06);
  --accent: #6ee7b7;
  --accent-glow: rgba(110,231,183,0.35);
  --cursor: #fb923c;
  --cursor-glow: rgba(251, 146, 60, 0.45);
  --text: #b0b8c8;
  --text-dim: #4b5568;
  --white: #f1f3f8;
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --section-pad: clamp(72px, 12vh, 120px);
  --content-w: min(860px, 88vw);
  --content-wide: min(1060px, 92vw);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── custom cursor ── */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  body a, body button, body .skill, body .award-card, body .project-card { cursor: none; }

  #cursor-dot,
  #cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
  }

  #cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--cursor);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cursor-glow);
  }

  #cursor-ring {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(251, 146, 60, 0.55);
    border-radius: 50%;
    transition: width 0.25s, height 0.25s, border-color 0.25s, opacity 0.25s;
  }

  body.cursor-hover #cursor-ring {
    width: 48px;
    height: 48px;
    border-color: var(--cursor);
    opacity: 0.9;
  }
}

/* ── nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 12, 16, 0.92);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(110,231,183,0.06);
}

/* ── layout ── */
.page {
  position: relative;
  z-index: 1;
}

section {
  padding: var(--section-pad) 0;
}

.section-inner {
  width: var(--content-wide);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 36px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-label svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  opacity: 0.7;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

/* ── hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
}

.hero-card {
  position: relative;
  width: var(--content-w);
  background: rgba(12, 16, 24, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 56px) clamp(28px, 5vw, 48px);
  backdrop-filter: blur(48px) saturate(1.8);
  -webkit-backdrop-filter: blur(48px) saturate(1.8);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(32px);
  animation: cardIn 0.85s cubic-bezier(0.22,1,0.36,1) 0.15s forwards;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.04) 100%
  );
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.avatar-wrap { flex-shrink: 0; }

.avatar {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a0c10;
  box-shadow: 0 0 28px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.avatar::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.hero-info { flex: 1; min-width: 0; }

.name {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.bio {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.65;
  min-height: 1.6em;
}

.bio .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.85s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.skill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text);
  padding: 5px 13px;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  cursor: default;
}

.skill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(110,231,183,0.07);
  box-shadow: 0 0 14px rgba(110,231,183,0.12);
  transform: translateY(-1px);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: 24px;
}

.links {
  display: flex;
  gap: 12px;
}

.link {
  flex: 0 1 auto;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110,231,183,0.09), rgba(56,189,248,0.07));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link:hover {
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(110,231,183,0.14);
}

.link:hover::before { opacity: 1; }
.link svg { width: 16px; height: 16px; position: relative; z-index: 1; }
.link span  { position: relative; z-index: 1; }

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  animation: fadeUp 0.6s ease 1.2s both;
}

.scroll-hint svg {
  width: 18px;
  height: 18px;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── about layout ── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

.taiwan-map-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 40px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.taiwan-map-inner {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 280px;
}

#taiwan-map-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.taiwan-map-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.taiwan-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.taiwan-marker-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  position: relative;
  z-index: 2;
}

.taiwan-marker-birth .taiwan-marker-dot {
  background: #fb923c;
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.9);
}

.taiwan-marker-home .taiwan-marker-dot {
  background: #e879f9;
  box-shadow: 0 0 18px rgba(232, 121, 249, 0.9);
}

.taiwan-marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.55;
  animation: mapPulse 2.2s ease-out infinite;
}

.taiwan-marker-birth .taiwan-marker-pulse { border-color: #fb923c; }
.taiwan-marker-home .taiwan-marker-pulse { border-color: #e879f9; }

@keyframes mapPulse {
  0% { transform: scale(0.55); opacity: 0.65; }
  100% { transform: scale(1.7); opacity: 0; }
}

.taiwan-marker-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(10, 12, 16, 0.92);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.taiwan-marker-birth .taiwan-marker-label {
  border-color: rgba(251, 146, 60, 0.6);
  color: #fdba74;
}

.taiwan-marker-home .taiwan-marker-label {
  border-color: rgba(232, 121, 249, 0.6);
  color: #f0abfc;
}

/* ── personal details ── */
.details-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 40px);
  backdrop-filter: blur(20px);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.details-grid .detail-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
}

.detail-icon svg { width: 16px; height: 16px; }

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 0.92rem;
  color: var(--white);
  font-weight: 500;
}

.interests-block {
  padding: 20px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.interests-block .detail-label { margin-bottom: 12px; }

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

.interest-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #0a0c10;
  background: var(--white);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.interest-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,255,255,0.12);
}

/* ── experience timeline ── */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--border));
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.timeline-role {
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 8px;
  opacity: 0.8;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── awards ── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.award-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 18px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
  position: relative;
}

.award-card:hover {
  border-color: rgba(110, 231, 183, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.award-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.award-card-org {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.award-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.award-card-snippet {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
}

.award-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.award-card-date {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-dim);
}

.award-card-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  color: #0a0c10;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(16px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  border-color: rgba(110, 231, 183, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.project-card-icon {
  margin-bottom: 14px;
}

.project-card-icon img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.project-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.project-card-snippet {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}

.project-card-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  margin-top: 16px;
}

.preview-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #0a0c10;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

.preview-date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.preview-org {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent);
  margin-bottom: 4px;
}

/* ── projects / skills grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(16px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  border-color: rgba(110,231,183,0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.info-card-icon {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.info-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.info-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.info-card-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--accent);
  background: rgba(110,231,183,0.08);
  border: 1px solid rgba(110,231,183,0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ── contact ── */
.contact-section {
  padding-bottom: 60px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
  backdrop-filter: blur(20px);
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.65;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-links .link {
  flex: 0 1 auto;
  min-width: 160px;
}

/* ── footer ── */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  border-top: 1px solid var(--border);
}

/* ── scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── preview tooltip ── */
.preview {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  width: 280px;
  background: rgba(16, 20, 30, 0.95);
  border: 1px solid rgba(110,231,183,0.15);
  border-radius: 16px;
  padding: 18px 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
  visibility: hidden;
}

.preview.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.preview-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.preview-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.preview-desc {
  font-size: 0.76rem;
  color: var(--text);
  line-height: 1.55;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.preview-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--accent);
  background: rgba(110,231,183,0.08);
  border: 1px solid rgba(110,231,183,0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

.preview-img {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(110,231,183,0.06), rgba(56,189,248,0.06));
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.preview-img-placeholder {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
}

.preview-site-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.preview-favicon {
  width: 20px; height: 20px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-favicon svg { width: 12px; height: 12px; color: var(--accent); }

.preview-url {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
}

@media (hover: none) {
  .preview { display: none !important; }
}

/* ── responsive ── */
@media (max-width: 900px) {
  .awards-grid { grid-template-columns: 1fr; }
}

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

  .taiwan-map-inner {
    min-height: 240px;
  }

  .nav-links {
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a {
    padding: 5px 9px;
    font-size: 0.6rem;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-top { flex-direction: column; align-items: center; text-align: center; }
  .links { flex-direction: column; }
  .details-grid { grid-template-columns: 1fr; }
  .details-grid .detail-item { border-bottom: 1px solid var(--border); }
  .details-grid .detail-item:last-child { border-bottom: none; }
  .timeline { padding-left: 24px; }
}
