:root {
  --blue: #6f8fd8;
  --purple: #9a84d6;
  --ink: #39435f;
  --muted: #7a8198;
  --line: #dbe1f1;
  --bg: #edf1fb;
  --white: #ffffff;
  --soft-shadow: 12px 12px 28px rgba(166, 176, 203, 0.58), -12px -12px 28px rgba(255, 255, 255, 0.86);
  --soft-shadow-small: 7px 7px 16px rgba(166, 176, 203, 0.5), -7px -7px 16px rgba(255, 255, 255, 0.82);
  --inset-shadow: inset 7px 7px 15px rgba(166, 176, 203, 0.45), inset -7px -7px 15px rgba(255, 255, 255, 0.82);
  --pressed-shadow: inset 5px 5px 12px rgba(166, 176, 203, 0.5), inset -5px -5px 12px rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(154, 132, 214, 0.2), transparent 36rem),
    radial-gradient(circle at bottom right, rgba(111, 143, 216, 0.16), transparent 34rem),
    var(--bg);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.7;
}

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

.hero {
  min-height: 92vh;
  padding: 24px clamp(20px, 5vw, 72px) 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  color: var(--blue);
  font-size: 22px;
  font-weight: 800;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg);
  box-shadow: var(--soft-shadow-small);
}

.hero-content {
  max-width: 900px;
  margin: 110px auto 0;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.85);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.primary-btn,
.ghost-btn,
.install-btn {
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.primary-btn,
.install-btn {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(111, 143, 216, 0.9), rgba(154, 132, 214, 0.9));
  box-shadow: var(--soft-shadow-small);
}

.ghost-btn {
  color: var(--blue);
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--soft-shadow-small);
}

.primary-btn:hover,
.ghost-btn:hover,
.install-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:active,
.ghost-btn:active,
.install-btn:active {
  transform: translateY(0);
  box-shadow: var(--pressed-shadow);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 82px clamp(20px, 5vw, 40px);
}

.intro-section,
.details-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 42px;
  align-items: start;
}

.intro-section p,
.soft-panel p {
  color: var(--muted);
  font-size: 18px;
}

.cards-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 20px;
}

.highlight-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 14px;
}

.highlight-item {
  padding: 24px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(238, 242, 251, 0.95), rgba(229, 234, 247, 0.95));
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.highlight-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--purple);
  font-size: 34px;
  line-height: 1.2;
}

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

.info-card,
.soft-panel,
.skill-list,
.resume-list,
.contact-section,
.timeline-card,
.tag-cloud {
  background: linear-gradient(145deg, rgba(244, 247, 255, 0.96), rgba(230, 235, 248, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.info-card {
  padding: 28px;
}

.card-number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--purple);
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 8px;
  box-shadow: var(--inset-shadow);
}

.info-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.soft-panel {
  padding: 36px;
}

.skill-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  box-shadow: var(--inset-shadow);
}

.skill-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.skill-item:last-child {
  border-bottom: 0;
}

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

.skill-item strong {
  text-align: right;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-card {
  padding: 24px 28px;
}

.timeline-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--purple);
  font-weight: 800;
}

.timeline-card h3 {
  font-size: 22px;
}

.timeline-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.education-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px;
}

.tag-cloud span {
  padding: 9px 12px;
  color: #6579bc;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  font-weight: 700;
  box-shadow: var(--soft-shadow-small);
}

.resume-list {
  margin: 0;
  padding: 10px 24px;
}

.resume-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
}

.resume-list div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 30px;
  max-width: 1120px;
  margin: 0 auto 80px;
  padding: 42px clamp(24px, 5vw, 46px);
}

.mail-card {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 28px;
  color: var(--ink);
  background: var(--bg);
  border-radius: 8px;
  box-shadow: var(--inset-shadow);
}

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

.mail-card strong {
  color: var(--purple);
  font-size: 22px;
  overflow-wrap: anywhere;
}

.install-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-bottom: 56px;
  }

  .nav,
  .intro-section,
  .split-section,
  .details-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .nav {
    display: grid;
  }

  .hero-content {
    margin-top: 70px;
  }

  .hero-text {
    font-size: 18px;
  }

  .cards-section {
    grid-template-columns: 1fr;
  }

  .highlight-section,
  .education-section {
    grid-template-columns: 1fr;
  }

  .skill-item,
  .resume-list div {
    display: grid;
  }

  .skill-item strong {
    text-align: left;
  }
}
