:root {
  --nthu-purple: #5f2c83;
  --nthu-purple-dark: #35134f;
  --nthu-gold: #d4a84f;
  --ink: #18202a;
  --muted: #617080;
  --paper: #ffffff;
  --soft: #f5f3f7;
  --line: #e4dfea;
  --max: 1180px;
  --radius: 20px;
  --shadow: 0 20px 55px rgba(43, 21, 58, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.7;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--nthu-purple); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 40; color: #fff; background: rgba(39, 13, 57, .94); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 46px; max-width: 300px; object-fit: contain; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.brand-name { display: grid; line-height: 1.15; font-size: .82rem; }
.brand-name strong { font-size: 1rem; letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 10px 11px; border-radius: 10px; color: rgba(255,255,255,.82); font-size: .91rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
.menu-toggle { display: none; width: 44px; height: 44px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; font-size: 1.3rem; }

.hero { position: relative; overflow: hidden; min-height: 660px; display: grid; align-items: center; color: #fff; background: radial-gradient(circle at 78% 26%, rgba(212,168,79,.35), transparent 22%), radial-gradient(circle at 69% 75%, rgba(126,74,157,.85), transparent 30%), linear-gradient(125deg, #250c36 5%, #522171 54%, #28103a 100%); }
.hero::after { content: ""; position: absolute; width: 520px; aspect-ratio: 1; right: -80px; top: 90px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; padding-block: 100px; }
.eyebrow { margin: 0 0 16px; color: var(--nthu-gold); font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.18; }
h1 { max-width: 820px; margin: 0; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2.7rem, 6vw, 5.8rem); font-weight: 500; letter-spacing: -.04em; }
.hero-lead { max-width: 710px; margin: 26px 0 34px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; text-decoration: none; transition: .2s ease; }
.button.primary { color: var(--nthu-purple-dark); background: #fff; }
.button.secondary { color: #fff; border-color: rgba(255,255,255,.5); }
.button:hover { transform: translateY(-2px); }
.hero-card { padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(255,255,255,.09); backdrop-filter: blur(16px); }
.hero-card span { display: block; color: var(--nthu-gold); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-card strong { display: block; margin: 6px 0 18px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.signal { height: 92px; margin-top: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120'%3E%3Cpath d='M0 62h100l14-8 12 9 13-2 10-38 14 77 15-68 14 31h45l11-8 12 7 13-2 10-30 14 60 15-51 14 23h167' fill='none' stroke='%23d4a84f' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat; }

.section { padding-block: 96px; }
.section.soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head h2, .page-hero h1 { margin: 0 0 14px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2.1rem, 4vw, 3.8rem); font-weight: 500; letter-spacing: -.025em; }
.section-head p, .page-hero p { margin: 0; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(37,12,54,.04); }
.card .number { color: var(--nthu-gold); font-family: Georgia, serif; font-size: 2.1rem; }
.card h3 { margin: 10px 0; font-size: 1.18rem; }
.card p { margin: 0; color: var(--muted); }
.text-link { display: inline-block; margin-top: 18px; color: var(--nthu-purple); font-weight: 800; text-decoration: none; }
.home-research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.home-topic { min-height: 260px; display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.home-topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.home-topic.featured { grid-column: span 2; min-height: 300px; align-items: end; color: #fff; border: 0; background: radial-gradient(circle at 82% 20%, rgba(212,168,79,.3), transparent 22%), linear-gradient(125deg, var(--nthu-purple-dark), var(--nthu-purple)); }
.home-topic.wide { grid-column: span 2; }
.home-topic .number { color: var(--nthu-gold); font-family: Georgia, serif; font-size: 2rem; }
.home-topic h3 { margin: 3px 0 10px; font-family: Georgia, "Noto Serif TC", serif; font-size: 1.55rem; font-weight: 500; }
.home-topic p { margin: 0; color: var(--muted); }
.home-topic.featured p { max-width: 690px; color: rgba(255,255,255,.75); }
.home-topic.featured h3 { font-size: clamp(2rem, 3vw, 3rem); }
.home-topic.featured .text-link { color: #fff; }
.topic-label { color: var(--nthu-purple) !important; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.home-topic.featured .topic-label { color: var(--nthu-gold) !important; }

.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.news-item time { color: var(--nthu-purple); font-weight: 800; }
.news-item p { margin: 0; }

.page-hero { position: relative; overflow: hidden; padding: 88px 0 64px; color: #fff; background: radial-gradient(circle at 82% 24%, rgba(212,168,79,.22), transparent 22%), linear-gradient(120deg, var(--nthu-purple-dark), var(--nthu-purple)); }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -100px; top: -150px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 760px; color: rgba(255,255,255,.78); }
.page-pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.page-pill-list span { padding: 7px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: rgba(255,255,255,.85); font-size: .76rem; }
.page-summary-strip { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: -26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.page-summary-strip > div { min-height: 104px; padding: 20px 24px; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; border-right: 1px solid var(--line); }
.page-summary-strip > div:last-child { border-right: 0; }
.page-summary-strip strong, .page-summary-strip span { display: block; }
.page-summary-strip strong { color: var(--nthu-purple); font-family: Georgia, serif; font-size: 1.45rem; }
.page-summary-strip span { color: var(--muted); font-size: .84rem; }
.quick-nav-wrap { position: relative; z-index: 4; margin-top: -24px; }
.quick-nav { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 12px 34px rgba(37,12,54,.1); }
.quick-nav a { padding: 9px 16px; border-radius: 999px; color: var(--nthu-purple); font-size: .82rem; font-weight: 800; text-decoration: none; }
.quick-nav a:hover { color: #fff; background: var(--nthu-purple); }
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 54px; }
.portrait-placeholder { min-height: 390px; display: grid; place-items: center; color: rgba(255,255,255,.9); border-radius: var(--radius); background: linear-gradient(145deg, #3a1652, #7b4599); font-family: Georgia, serif; font-size: 5rem; box-shadow: var(--shadow); }
.profile-photo { display: block; width: min(100%, 260px); height: auto; margin-inline: auto; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow); }
.profile-summary h2 { margin: 0; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2rem, 3.5vw, 3.1rem); font-weight: 500; }
.name-zh { color: var(--nthu-purple); font-family: "Noto Serif TC", serif; font-size: .72em; white-space: nowrap; }
.professor-title { margin: 8px 0 2px; color: var(--nthu-purple); font-size: 1.12rem; font-weight: 800; }
.professor-contact li { display: grid; grid-template-columns: 100px 1fr; gap: 14px; }
.professor-contact strong { min-width: 0; }
.professor-contact a { color: var(--nthu-purple); font-weight: 750; }
.professor-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.section-head.compact { margin-bottom: 24px; }
.section-head.compact h2 { font-size: clamp(2rem, 3vw, 3rem); }
.career-list, .experience-list { margin: 0; padding: 0; list-style: none; }
.career-list li { display: grid; grid-template-columns: 106px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.career-list time { color: var(--nthu-purple); font-size: .9rem; font-weight: 800; }
.career-list strong, .career-list span, .experience-list strong, .experience-list span { display: block; }
.career-list span, .experience-list span { margin-top: 3px; color: var(--muted); font-size: .92rem; }
.experience-list li { padding: 13px 0; border-top: 1px solid var(--line); }
.research-profile { max-width: 980px; }
.research-intro { max-width: 880px; color: var(--muted); font-size: 1.08rem; }
.research-profile h3 { margin-top: 34px; }
.research-projects { padding-left: 24px; }
.research-projects > li { margin-bottom: 12px; }
.research-projects ul { margin-top: 10px; color: var(--muted); }
.professor-invitation { margin-top: 38px; padding: 24px 28px; border-left: 4px solid var(--nthu-gold); background: var(--soft); font-family: Georgia, "Noto Serif TC", serif; font-size: 1.2rem; }
.professor-hero h1 span { color: rgba(255,255,255,.62); font-family: "Noto Serif TC", "Microsoft JhengHei", serif; font-size: .58em; white-space: nowrap; }
.professor-intro { padding-top: 76px; }
.profile-portrait { padding: 16px 16px 28px; align-self: start; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: #fff; box-shadow: var(--shadow); }
.profile-portrait .profile-photo { width: 100%; box-shadow: none; }
.profile-summary h2 { margin-bottom: 18px; letter-spacing: -.025em; }
.profile-lead { max-width: 760px; color: var(--muted); font-size: 1.04rem; }
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.contact-panel > div { padding: 17px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-panel > div:nth-child(3) { grid-column: span 2; }
.contact-panel span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-panel strong { font-size: .91rem; }
.contact-panel a { color: var(--nthu-purple); }
.background-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.background-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.background-card h2 { margin: 0 0 20px; font-family: Georgia, "Noto Serif TC", serif; font-size: 2rem; font-weight: 500; }
.research-interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.research-interest-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.research-interest-grid article > span { color: var(--nthu-gold); font-family: Georgia, serif; font-size: 1.5rem; }
.research-interest-grid h3 { margin: 8px 0; }
.research-interest-grid p { margin: 0; color: var(--muted); font-size: .93rem; }
.professor-cta { margin-top: 34px; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; border-radius: var(--radius); background: linear-gradient(110deg, var(--nthu-purple-dark), var(--nthu-purple)); }
.professor-cta p { margin: 0; font-family: Georgia, serif; font-size: 1.25rem; }
.research-hero { overflow: hidden; position: relative; }
.research-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -90px; top: -140px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.03), 0 0 0 140px rgba(255,255,255,.02); }
.research-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; }
.research-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.research-tags span { padding: 8px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: rgba(255,255,255,.84); font-size: .78rem; }
.research-overview { padding-bottom: 74px; }
.research-intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.research-overview-copy { color: var(--muted); font-size: 1.04rem; }
.research-overview-copy p:first-child { margin-top: 0; }
.capability-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 42px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-strip > div { min-height: 160px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-strip strong, .capability-strip span, .capability-strip small { display: block; }
.capability-strip strong { color: var(--nthu-gold); font-family: Georgia, serif; font-size: 1.45rem; }
.capability-strip span { margin: 10px 0 4px; font-weight: 850; }
.capability-strip small { color: var(--muted); line-height: 1.45; }
.flagship-section { padding-bottom: 40px; }
.research-program-head { display: grid; grid-template-columns: 190px 1fr; gap: 48px; align-items: start; margin-bottom: 48px; padding: 0 0 30px; border-bottom: 1px solid var(--line); }
.research-program-head .eyebrow { margin-top: 7px; }
.research-program-intro { max-width: 760px; margin: 0; color: var(--ink); font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(1.12rem, 1.8vw, 1.5rem); line-height: 1.5; letter-spacing: -.01em; }
.research-feature { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; gap: 26px; margin: 0 0 32px; padding: 18px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 14px 40px rgba(37,12,54,.055); }
.research-feature.reverse .research-feature-content { order: 2; }
.research-feature.reverse .research-visual { order: 1; }
.research-feature-content { position: relative; padding: 36px 34px; }
.research-feature-content h2 { max-width: 560px; margin: 0 0 15px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2rem, 3.3vw, 3rem); font-weight: 500; letter-spacing: -.025em; }
.research-feature-content > p:not(.eyebrow) { color: var(--muted); }
.feature-number { position: absolute; right: 25px; top: 23px; color: #eee9f1; font-family: Georgia, serif; font-size: 3.8rem; line-height: 1; }
.feature-points { margin: 22px 0 0; padding: 0; list-style: none; }
.feature-points li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--line); font-size: .91rem; }
.feature-points li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--nthu-gold); }
.research-visual { min-height: 440px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 19px; color: #fff; background: radial-gradient(circle at 70% 25%, rgba(212,168,79,.28), transparent 25%), linear-gradient(145deg, #311045, #6d3190); }
.research-visual::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 36px 36px; }
.visual-core { z-index: 2; width: 128px; height: 128px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(255,255,255,.13); text-align: center; font-family: Georgia, serif; font-size: 1.35rem; }
.twin-visual .node { position: absolute; z-index: 2; padding: 8px 13px; border-radius: 999px; color: var(--nthu-purple-dark); background: #fff; font-size: .76rem; font-weight: 800; box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.twin-visual .n1 { top: 16%; left: 12%; }.twin-visual .n2 { top: 18%; right: 13%; }.twin-visual .n3 { bottom: 17%; left: 10%; }.twin-visual .n4 { right: 12%; bottom: 16%; }
.material-visual { gap: 12px; padding: 32px; }
.material-step { z-index: 1; width: 108px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; background: rgba(255,255,255,.1); }
.material-step b { font-family: Georgia, serif; font-size: 1.8rem; }.material-step span { color: rgba(255,255,255,.72); font-size: .72rem; }.material-visual i { z-index: 1; color: var(--nthu-gold); font-size: 1.5rem; font-style: normal; }
.neuro-visual { padding: 42px; align-content: center; flex-direction: column; gap: 22px; }
.neuro-visual > * { z-index: 1; }.neuro-visual span { color: rgba(255,255,255,.7); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }.neuro-visual strong { font-family: Georgia, serif; font-size: 1.7rem; }
.neural-wave, .ecg-line { width: 90%; height: 54px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 80'%3E%3Cpath d='M0 43l20-5 16 11 20-30 18 48 18-25 18 3 20-5 18 8 18-12 18 7 18-4 20 3 18-4 18 5 20-2 18 2 20-2 20 3 18-5 18 4 20-2 20 2h128' fill='none' stroke='%23d4a84f' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.neural-wave.clean { filter: brightness(1.5); transform: scaleY(.65); }
.ecg-visual { padding: 32px; flex-direction: column; gap: 40px; }.ecg-visual > * { z-index: 1; }.ecg-line { width: 95%; height: 90px; }.ecg-flow { display: flex; align-items: center; gap: 8px; }.ecg-flow span { padding: 8px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 9px; background: rgba(255,255,255,.1); font-size: .72rem; }.ecg-flow i { color: var(--nthu-gold); font-style: normal; }
.agent-visual .agent-center { z-index: 2; width: 120px; height: 120px; display: grid; place-items: center; border-radius: 50%; color: var(--nthu-purple-dark); background: #fff; text-align: center; font-family: Georgia, serif; font-size: 1.3rem; }
.agent-visual > span { position: absolute; z-index: 2; width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(255,255,255,.1); font-size: .75rem; font-weight: 800; }.agent-visual > span:nth-of-type(1) { top: 13%; left: 18%; }.agent-visual > span:nth-of-type(2) { top: 15%; right: 18%; }.agent-visual > span:nth-of-type(3) { bottom: 14%; left: 17%; }.agent-visual > span:nth-of-type(4) { right: 17%; bottom: 14%; }
.clinical-visual { padding: 42px; flex-direction: column; gap: 28px; }
.clinical-visual > * { z-index: 1; }
.clinical-source { display: flex; gap: 16px; }
.clinical-source span { width: 78px; height: 78px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; background: rgba(255,255,255,.1); font-family: Georgia, serif; }
.clinical-visual > strong { color: var(--nthu-gold); font-family: Georgia, serif; font-size: 1.35rem; }
.clinical-result { padding: 18px 30px; border-radius: 999px; color: var(--nthu-purple-dark); background: #fff; text-align: center; font-weight: 850; line-height: 1.3; }
.research-domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.research-domain-grid article { padding: 28px; border-top: 3px solid var(--nthu-purple); border-radius: 0 0 16px 16px; background: var(--soft); }
.research-domain-grid h3 { margin-top: 0; }.research-domain-grid p { margin-bottom: 0; color: var(--muted); }
.research-collaboration { margin-top: 58px; padding: 38px 42px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; border-radius: 24px; background: linear-gradient(110deg, var(--nthu-purple-dark), var(--nthu-purple)); }
.research-collaboration h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }.research-collaboration p { max-width: 700px; margin: 0; color: rgba(255,255,255,.74); }.research-collaboration .eyebrow { color: var(--nthu-gold); }
.meta { color: var(--muted); }
.detail-list { padding: 0; list-style: none; }
.detail-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-list strong { display: inline-block; min-width: 110px; color: var(--nthu-purple); }

.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person { min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.people-grid[data-members-list="masters"] .person { min-height: 125px; padding: 15px 20px; display: flex; flex-direction: column; justify-content: center; }
.people-grid[data-members-list="masters"] .person h3 { margin-bottom: 2px; }
.person h3 { margin: 0 0 5px; }
.person .role { color: var(--nthu-purple); font-size: .83rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.person p { color: var(--muted); font-size: .94rem; }
.data-status { grid-column: 1 / -1; margin: 0; padding: 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.data-status.error { color: #8b2430; background: #fff5f6; border-color: #e7b8be; }
.alumni-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; padding: 0; list-style: none; }
.alumni-list li { min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.alumni-list small { display: block; color: var(--muted); }

.publication-list { counter-reset: publication; padding: 0; list-style: none; }
.publication-list li { position: relative; margin-bottom: 0; padding: 22px 20px 22px 74px; border-bottom: 1px solid var(--line); transition: background .18s ease; }
.publication-list li:hover { background: var(--soft); }
.publication-list li::before { counter-increment: publication; content: counter(publication, decimal-leading-zero); position: absolute; left: 10px; top: 23px; color: var(--nthu-purple); font-family: Georgia, serif; font-weight: 700; }
.publication-list em { color: var(--muted); }
.patent-card { padding: 30px; border: 1px solid var(--line); border-left: 5px solid var(--nthu-gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--soft); }
.patent-card span { color: var(--nthu-purple); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.patent-card p { margin-bottom: 0; }

.course { display: grid; grid-template-columns: 210px 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding .18s ease, background .18s ease; }
.course:hover { padding-inline: 20px; background: var(--soft); }
.course-code { color: var(--nthu-purple); font-weight: 800; }
.course h3 { margin: 0 0 8px; }
.course p { margin: 8px 0 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; }
.contact-grid > * { min-width: 0; }
.contact-card { min-width: 0; padding: 34px; overflow-wrap: anywhere; color: #fff; border-radius: var(--radius); background: var(--nthu-purple-dark); }
.contact-card a { color: #fff; }
.phone-line { white-space: nowrap; }
.contact-card hr { margin: 25px 0; border: 0; border-top: 1px solid rgba(255,255,255,.18); }
.map-embed { width: 100%; min-width: 0; min-height: 430px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #e9e4ec; box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; max-width: 100%; height: 100%; min-height: 430px; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 230px; gap: 16px; }
.gallery figure { position: relative; overflow: hidden; margin: 0; border-radius: 16px; background: var(--soft); }
.gallery figure:nth-child(1), .gallery figure:nth-child(6) { grid-column: span 8; }
.gallery figure:nth-child(2), .gallery figure:nth-child(5) { grid-column: span 4; }
.gallery figure:nth-child(3), .gallery figure:nth-child(4) { grid-column: span 6; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 32px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); font-size: .9rem; }

.site-footer { padding: 54px 0 26px; color: rgba(255,255,255,.72); background: #1d0a2a; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; }
.site-footer h2 { margin-top: 0; color: #fff; font-family: Georgia, serif; font-weight: 500; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: inherit; }
.copyright { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 76px 0 auto; padding: 14px 20px 22px; flex-direction: column; align-items: stretch; background: #2b103e; }
  .site-nav.open { display: flex; }
  .hero-grid, .profile, .contact-grid { grid-template-columns: 1fr; }
  .professor-columns { grid-template-columns: 1fr; gap: 56px; }
  .profile-portrait { width: min(100%, 330px); margin-inline: auto; }
  .background-grid { grid-template-columns: 1fr; }
  .research-interest-grid { grid-template-columns: repeat(2, 1fr); }
  .research-hero-grid, .research-intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .research-tags { justify-content: flex-start; }
  .capability-strip { grid-template-columns: repeat(2, 1fr); }
  .research-feature { grid-template-columns: 1fr; }
  .research-feature.reverse .research-feature-content, .research-feature.reverse .research-visual { order: initial; }
  .research-visual { min-height: 360px; }
  .research-domain-grid { grid-template-columns: 1fr; }
  .research-program-head { grid-template-columns: 1fr; gap: 8px; }
  .hero-card { max-width: 560px; }
  .grid-3, .people-grid { grid-template-columns: repeat(2, 1fr); }
  .alumni-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-research-grid { grid-template-columns: 1fr; }
  .home-topic.featured { grid-column: auto; }
  .home-topic.wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-name span { display: none; }
  .brand-logo { width: min(56vw, 220px); height: auto; max-height: 42px; }
  .hero { min-height: auto; }
  .hero-grid { padding-block: 70px; gap: 40px; }
  .section { padding-block: 68px; }
  .grid-3, .people-grid, .footer-grid { grid-template-columns: 1fr; }
  .page-summary-strip { grid-template-columns: 1fr; margin-top: 14px; }
  .page-summary-strip > div { min-height: 88px; border-right: 0; border-bottom: 1px solid var(--line); }
  .page-summary-strip > div:last-child { border-bottom: 0; }
  .quick-nav-wrap { margin-top: 16px; }
  .quick-nav { display: flex; border-radius: 16px; }
  .quick-nav a { flex: 1 1 auto; text-align: center; }
  .home-topic, .home-topic.featured { min-height: auto; grid-template-columns: 45px 1fr; padding: 24px 20px; }
  .news-item, .course { grid-template-columns: 1fr; gap: 4px; }
  .contact-card { padding: 26px 20px; }
  .phone-line { white-space: normal; }
  .map-embed, .map-embed iframe { min-height: 360px; }
  .alumni-list { grid-template-columns: 1fr; }
  .portrait-placeholder { min-height: 300px; }
  .profile-photo { width: min(82vw, 260px); }
  .professor-contact li, .career-list li { grid-template-columns: 1fr; gap: 3px; }
  .profile-portrait .profile-photo { width: 100%; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-panel > div:nth-child(3) { grid-column: auto; }
  .background-card { padding: 26px 20px; }
  .research-interest-grid { grid-template-columns: 1fr; }
  .professor-cta { align-items: stretch; flex-direction: column; }
  .capability-strip { grid-template-columns: 1fr; }
  .research-feature { padding: 9px; }
  .research-feature-content { padding: 28px 20px; }
  .research-visual { min-height: 320px; }
  .feature-number { font-size: 3rem; }
  .material-visual { gap: 6px; padding: 20px; }
  .material-step { width: 82px; }.material-step b { font-size: 1.35rem; }
  .ecg-flow { gap: 4px; }.ecg-flow span { padding: 6px; font-size: .62rem; }
  .research-collaboration { padding: 30px 24px; align-items: stretch; flex-direction: column; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery figure:nth-child(n) { grid-column: auto; }
}
