/* ===== 設計 token：明亮清爽 ===== */
:root {
  --blue-900: #0b3b8c;
  --blue-700: #1456c4;
  --blue-500: #2a7de1;
  --blue-300: #7db4f0;
  --blue-50:  #eef5ff;
  --sky:      #e9f3ff;
  --ink:      #1a2230;
  --ink-soft: #50607a;
  --line:     #e3eaf3;
  --white:    #ffffff;
  --bg:       #f7faff;
  --accent:   #16c2a3;
  --radius:   18px;
  --shadow:   0 10px 30px rgba(20, 86, 196, 0.08);
  --shadow-sm:0 4px 14px rgba(20, 86, 196, 0.07);
  --maxw:     1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  /* 藍色系・醫療科技感底色（非純白） */
  background:
    radial-gradient(1200px 620px at 100% -6%, #dfeafa, transparent 60%),
    radial-gradient(900px 520px at -8% 4%, #e2f1fa, transparent 55%),
    linear-gradient(180deg, #e9f1fd 0%, #f3f8ff 55%, #eef5ff 100%);
  background-attachment: fixed;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-700); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); }

/* ===== 導覽列 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: var(--shadow-sm); letter-spacing: .5px;
}
.brand__logo { height: 74px; width: auto; display: block; }
.has-logo .brand__mark, .has-logo .brand__text { display: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1.02rem; }
.brand__text small { color: var(--ink-soft); font-size: .76rem; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 8px 14px; border-radius: 10px; color: var(--ink-soft);
  font-weight: 500; transition: .2s;
}
.nav__links a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav__links a.active { color: var(--blue-700); background: var(--blue-50); }
.nav__cta {
  background: var(--blue-700) !important; color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.nav__cta:hover { background: var(--blue-900) !important; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px; transition: .3s;
}

/* ===== Hero（柔和粉彩 aurora 漸層・參考風格圖） ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 10% 0%, #e7ddfb, transparent 62%),
    radial-gradient(920px 540px at 92% 8%, #d2e6fc, transparent 62%),
    radial-gradient(760px 620px at 62% 108%, #d6f0ec, transparent 60%),
    linear-gradient(180deg, #eef3ff 0%, #f7faff 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 96px 24px 86px; }
.hero__eyebrow {
  display: inline-block; color: var(--blue-700); font-weight: 700;
  background: var(--blue-50); padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; letter-spacing: .5px;
}
.hero__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin: 22px 0 18px; }
.hero__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 660px; }
.hero__lead strong { color: var(--blue-700); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 40px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; transition: .2s; cursor: pointer; border: 2px solid transparent;
}
.btn--primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--blue-900); transform: translateY(-2px); }
.btn--ghost { color: var(--blue-700); border-color: var(--blue-300); background: #fff; }
.btn--ghost:hover { background: var(--blue-50); }
.hero__stats { list-style: none; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.9rem; color: var(--blue-700); font-weight: 900; }
.hero__stats span { color: var(--ink-soft); font-size: .92rem; }

/* ===== Section 通用 ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px; }
.section--alt {
  max-width: none; background: var(--blue-50);
  border-block: 1px solid var(--line);
}
.section--alt > * { max-width: var(--maxw); margin-inline: auto; }
.section__head { text-align: center; margin-bottom: 48px; }
.kicker {
  display: inline-block; color: var(--blue-700); font-weight: 700;
  letter-spacing: 2px; font-size: .82rem; text-transform: uppercase;
}
.section__head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 900; margin-top: 10px; }
.section__sub { color: var(--ink-soft); margin-top: 10px; }

/* ===== 關於中心 ===== */
.about__lead { font-size: 1.18rem; max-width: 820px; margin: 0 auto 44px; text-align: center; color: var(--ink-soft); }
.about__lead strong { color: var(--blue-700); }
.about__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { color: var(--blue-700); margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--ink-soft); }

/* ===== 核心業務 ===== */
.biz { display: grid; gap: 30px; }
.biz__block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; box-shadow: var(--shadow-sm);
}
.biz__title {
  font-size: 1.5rem; color: var(--blue-900); margin-bottom: 14px;
  padding-left: 16px; border-left: 5px solid var(--blue-500);
}
.biz__tag {
  display: inline-block; background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; padding: 6px 16px; border-radius: 999px; font-weight: 700; margin-bottom: 14px;
}
.pillset { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.pill { background: var(--blue-50); border-radius: 14px; padding: 22px; border: 1px solid var(--line); }
.pill h4 { color: var(--blue-700); margin-bottom: 8px; }
.pill p { color: var(--ink-soft); font-size: .96rem; }
.axes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.axis { display: flex; gap: 14px; background: var(--sky); border-radius: 14px; padding: 18px; }
.axis span {
  font-weight: 900; color: #fff; background: var(--blue-500);
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none;
}
.axis h4 { color: var(--blue-900); margin-bottom: 4px; }
.axis p { color: var(--ink-soft); font-size: .92rem; }
.biz__figure { margin-top: 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }

/* ===== 成果 ===== */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.result {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.result h3 {
  color: var(--blue-700); margin-bottom: 16px; font-size: 1.25rem;
  display: flex; align-items: center; gap: 10px;
}
.result h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 900;
}
.checklist strong { color: var(--ink); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.gallery figure {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.gallery img { width: 100%; height: auto; }
.gallery figcaption { padding: 14px 18px; color: var(--ink-soft); font-size: .92rem; text-align: center; }

/* ===== 團隊 ===== */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.team__card h3 {
  color: var(--blue-900); font-size: 1.3rem; margin-bottom: 10px;
  padding-bottom: 10px; border-bottom: 2px solid var(--blue-50);
}
.team__card > p { color: var(--ink-soft); }
.roles { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.roles li {
  background: var(--blue-50); border-radius: 12px; padding: 14px 16px;
  color: var(--ink-soft); font-size: .94rem;
}
.roles strong { color: var(--blue-700); display: block; margin-bottom: 2px; }
.member { display: block; margin-top: 8px; color: var(--blue-900); font-weight: 700; font-size: .9rem; }
.member.pending { color: var(--ink-soft); font-weight: 400; }
.lead-name { display: inline-block; margin-top: 10px; color: var(--blue-700); font-weight: 700; }
.team__note { text-align: center; color: var(--ink-soft); margin-top: 26px; font-size: .92rem; }

/* ===== 團隊：組織區塊＋頭像圓圈 ===== */
.org {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 24px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.org__head h3 { color: var(--blue-900); font-size: 1.3rem; padding-left: 14px; border-left: 5px solid var(--blue-500); }
.org__head p { color: var(--ink-soft); margin: 12px 0 22px; }
.subgroup { margin-top: 22px; }
.subgroup__title { color: var(--blue-700); font-size: 1.02rem; margin-bottom: 16px; }
.subgroup__title::before { content: "▍"; color: var(--blue-500); margin-right: 4px; }
.people { display: flex; flex-wrap: wrap; gap: 24px; }
.person { width: 116px; text-align: center; }
.person__avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; overflow: hidden;
  display: grid; place-items: center; color: var(--blue-700); font-weight: 700; font-size: 1.5rem;
  background: none; border: 0; box-shadow: none;
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-weight: 700; color: var(--blue-900); font-size: .98rem; line-height: 1.4; }
.person__role { color: var(--ink-soft); font-size: .82rem; margin-top: 2px; }
.person--pending .person__avatar {
  background: var(--blue-50); color: var(--blue-300); border: 3px dashed var(--blue-300); font-size: 1rem;
}
.person--lead .person__avatar { width: 104px; height: 104px; font-size: 1.7rem; }
.person--lead { width: 128px; }

/* ===== 聯絡 ===== */
.contact {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  max-width: none; color: #fff; text-align: center;
}
.contact__inner { max-width: 760px; margin: 0 auto; }
.contact h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.contact p { color: #d9e7ff; margin: 14px 0 30px; }
.contact__items { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.contact__item {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px; padding: 18px 26px; color: #fff; display: flex;
  flex-direction: column; gap: 4px; transition: .2s; min-width: 220px;
}
.contact__item:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }
.contact__item span { color: #bcd6ff; font-size: .82rem; }
.contact__item strong { font-size: 1.05rem; }

/* ===== 分頁頁首橫幅 pagehead（柔和粉彩漸層） ===== */
.pagehead {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 380px at 8% 0%, #e7ddfb, transparent 62%),
    radial-gradient(820px 420px at 94% 6%, #d2e6fc, transparent 62%),
    linear-gradient(180deg, #eef3ff 0%, #f7faff 100%);
  border-bottom: 1px solid var(--line);
}
.pagehead__inner {
  position: relative; z-index: 1; max-width: var(--maxw);
  margin: 0 auto; padding: 64px 24px 52px;
}
.pagehead h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; margin: 14px 0 12px; }
.pagehead p { color: var(--ink-soft); max-width: 720px; font-size: 1.08rem; }
.breadcrumb { font-size: .9rem; color: var(--ink-soft); margin-bottom: 6px; }
.breadcrumb a { color: var(--blue-700); }

/* ===== 首頁導覽卡片 hub ===== */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hubcard {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); transition: .25s; color: var(--ink);
}
.hubcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-300); }
.hubcard__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; color: #fff; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
}
.hubcard h3 { color: var(--blue-900); font-size: 1.2rem; }
.hubcard p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.hubcard__go { color: var(--blue-700); font-weight: 700; font-size: .92rem; margin-top: 6px; }

/* ===== 最新消息 news ===== */
.news { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.news__item {
  display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-sm); transition: .2s;
}
.news__item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news__date { color: var(--blue-700); font-weight: 700; font-size: .95rem; }
.news__tag {
  display: inline-block; margin-top: 8px; font-size: .76rem; font-weight: 700;
  color: var(--blue-700); background: var(--blue-50); padding: 3px 10px; border-radius: 999px;
}
.news__body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.news__body p { color: var(--ink-soft); font-size: .98rem; }
.news__body a { color: var(--blue-700); font-weight: 600; }

/* ===== 中心宗旨（about 上半） ===== */
.purpose { max-width: 880px; margin: 0 auto 46px; }
.purpose h2 { color: var(--blue-900); font-size: 1.5rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.purpose h2::before { content: ""; width: 8px; height: 26px; border-radius: 3px; background: linear-gradient(var(--blue-500), var(--blue-700)); }
.purpose p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 14px; }

/* ===== 手風琴 accordion ===== */
.acc-title { text-align: center; margin-bottom: 26px; }
.acc-title h2 { color: var(--blue-900); font-size: clamp(1.4rem, 3vw, 1.9rem); }
.acc-title p { color: var(--ink-soft); margin-top: 8px; }
.accordion { display: grid; gap: 14px; max-width: 940px; margin: 0 auto; }
.acc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.acc.open { box-shadow: var(--shadow); border-color: var(--blue-300); }
.acc__head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: inherit;
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.acc__head h3 { color: var(--blue-900); font-size: 1.15rem; }
.acc__sub { display: block; color: var(--ink-soft); font-size: .92rem; font-weight: 400; margin-top: 4px; }
.acc__icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700); font-weight: 900; font-size: 1.2rem; transition: .28s;
}
.acc.open .acc__icon { transform: rotate(45deg); background: var(--blue-700); color: #fff; }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .38s ease; }
.acc.open .acc__body { max-height: 1600px; }
.acc__inner { padding: 2px 26px 26px; color: var(--ink-soft); }
.acc__inner p { margin-bottom: 10px; }
.acc__inner figure { margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.logo-slot {
  margin: 4px 0 16px; padding: 18px; border: 1px dashed var(--blue-300); border-radius: 12px;
  background: var(--blue-50); color: var(--blue-700); font-weight: 600; text-align: center; font-size: .92rem;
}

/* ===== 頁籤 tabs ===== */
.tabnav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 28px; }
.tabnav button {
  font-family: inherit; cursor: pointer; border: 1px solid var(--line); background: #fff;
  color: var(--ink-soft); padding: 9px 18px; border-radius: 999px; font-weight: 600; transition: .2s;
}
.tabnav button:hover { border-color: var(--blue-300); color: var(--blue-700); }
.tabnav button.active { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.tabpanel { display: none; }
.tabpanel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== 客製：標題放大 ===== */
.vision-title { color: var(--blue-900); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; }
.pagehead__big { font-size: clamp(2.3rem, 6vw, 3.4rem); }

/* ===== 核心業務：研究論文清單 ===== */
.pill__en { color: var(--ink-soft); font-size: .96rem; }
.paperlist { margin-top: 12px; }
.paperlist__grp { color: var(--blue-700); font-weight: 700; margin: 14px 0 6px; }
.paperlist ul { list-style: none; display: grid; gap: 8px; margin: 0; }
.paperlist li { position: relative; padding-left: 16px; }
.paperlist li::before { content: "›"; position: absolute; left: 0; color: var(--blue-500); font-weight: 900; }
.paperlist a { color: var(--ink); font-size: .92rem; line-height: 1.5; transition: .2s; }
.paperlist a:hover { color: var(--blue-700); text-decoration: underline; }

/* ===== 核心業務：醫點家 logo ===== */
.medassist-logo { border: 0 !important; max-width: 220px; margin: 0 auto 18px; }
.medassist-logo img { margin: 0 auto; }

/* ===== 單張圖庫（其他成果） ===== */
.gallery--single { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
/* 其他成果：左大（小南阿長）右小（專利），上緣對齊 */
.gallery--other { grid-template-columns: 2fr 1fr; align-items: start; }
@media (max-width: 760px) { .gallery--other { grid-template-columns: 1fr; } }
/* ===== 得獎榮譽：左時間軸 ＋ 右圖片跑馬燈 ===== */
.awards2 { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 32px; align-items: start; }
/* 左：年代時間軸（含向下箭頭） */
.award-time { position: relative; padding-left: 34px; padding-top: 4px; }
.award-time::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 8px; width: 3px; background: var(--blue-300); }
.award-yr { position: relative; margin-bottom: 22px; }
.award-yr__mark { position: relative; color: var(--blue-900); font-size: 1.4rem; margin-bottom: 8px; }
.award-yr__mark::before {
  content: ""; position: absolute; left: -35px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--blue-700);
}
.award-link {
  position: relative; display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px;
  padding: 10px 14px 10px 34px; margin: 6px 0; cursor: pointer; transition: .2s; color: var(--ink-soft); line-height: 1.7;
}
.award-link:hover { background: var(--blue-50); }
.award-link.active { background: var(--blue-50); }
.award-link--static { cursor: default; }
.award-link--static:hover { background: none; }
.award-link__title { color: var(--ink); font-weight: 700; }
.award-link__title::before { content: "▸"; position: absolute; left: 15px; color: var(--blue-500); font-size: .9em; }
.award-link__nowrap { white-space: nowrap; }
.award-link strong { color: var(--blue-700); }
.award-link a { color: var(--blue-700); font-weight: 400; }
/* 右：跑馬燈 */
.carousel {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 52px 16px;
}
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform .5s ease; }
.carousel__slide {
  flex: 0 0 100%; min-height: 440px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.carousel__slide img { max-height: 400px; max-width: 100%; width: auto; object-fit: contain; border-radius: 10px; }
.carousel__slide figcaption { color: var(--blue-900); font-weight: 700; text-align: center; font-size: 1.02rem; }
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--blue-700); font-size: 1.5rem; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow-sm); display: grid; place-items: center; z-index: 2; transition: .2s;
}
.carousel__nav:hover { background: var(--blue-50); border-color: var(--blue-300); }
.carousel__prev { left: 10px; } .carousel__next { right: 10px; }
.carousel__dots { display: flex; gap: 7px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.carousel__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-300); border: 0; padding: 0; cursor: pointer; transition: .2s; }
.carousel__dot.active { background: var(--blue-700); width: 24px; border-radius: 5px; }
@media (max-width: 860px) {
  .awards2 { grid-template-columns: 1fr; gap: 24px; }
  .carousel__slide { min-height: 320px; }
  .carousel__slide img { max-height: 300px; }
}

/* ===== 醫點家底部白底圖 ===== */
.fig--white { background: #fff; padding: 16px; }
.fig--white img { width: 100%; height: auto; }

/* ===== 核心業務：六大核心業務卡 ===== */
.biz-intro { max-width: 940px; margin: 0 auto 36px; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.95; }
.bizlist { display: grid; gap: 18px; max-width: 960px; margin: 0 auto; }
.bizcard {
  display: flex; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm); transition: .2s;
}
.bizcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--blue-300); }
.bizcard__no {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
}
.bizcard__body h3 { color: var(--blue-900); font-size: 1.16rem; margin-bottom: 8px; }
.bizcard__body p { color: var(--ink-soft); line-height: 1.9; }

/* ===== 醫點家分頁（成果亮點）白底卡片＋標題 ===== */
.medassist-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 34px 36px;
}
.medassist-lead { text-align: center; color: var(--blue-700); font-weight: 700; font-size: 1.12rem; margin-bottom: 16px; }
.medassist-intro { max-width: 860px; margin: 0 auto 24px; color: var(--ink-soft); text-align: center; line-height: 1.9; }

/* ===== 醫點家五大主軸小卡 ===== */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 18px 0 6px; }
.pillar { background: var(--blue-50); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; }
.pillar__no {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff;
  font-weight: 900; font-size: .9rem; margin-bottom: 10px;
}
.pillar h4 { color: var(--blue-900); margin-bottom: 6px; }
.pillar p { color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }

/* ===== 團隊：置中與三欄分組 ===== */
.org__head--center { text-align: center; }
.org__head--center h3 { border-left: 0; padding-left: 0; }
.people--center { justify-content: center; }
.orgcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 6px; }
.orgcol + .orgcol { border-left: 1px solid var(--line); padding-left: 18px; }
.orgcol .subgroup__title { text-align: center; margin-bottom: 14px; }
.orgcol .subgroup__title::before { content: none; }
.orgcol .people { gap: 18px; justify-content: center; }
@media (max-width: 760px) {
  .orgcols { grid-template-columns: 1fr; }
  .orgcol + .orgcol { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}

/* ===== 研究成果圖片卡 ===== */
.studygrp { margin-bottom: 36px; }
.studygrp__title { color: var(--blue-900); font-size: 1.2rem; margin-bottom: 16px; padding-left: 14px; border-left: 5px solid var(--blue-500); }
.studygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.study {
  position: relative; min-height: 210px; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px; color: #fff; cursor: pointer; text-align: left;
  box-shadow: var(--shadow-sm); transition: .25s; border: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* 各卡片底圖以行內 style="background-image:url('assets/research/cards/xxx.jpg')" 指定，
   未提供底圖時沿用下列漸層作為後備 */
.study--a { background-color: #0b3b8c; background-image: linear-gradient(135deg, #1456c4, #0b3b8c); }
.study--b { background-color: #134a9e; background-image: linear-gradient(135deg, #2a7de1, #134a9e); }
.study--c { background-color: #0b3b8c; background-image: linear-gradient(135deg, #1a6fb0, #0b3b8c); }
.study--d { background-color: #0e5a7a; background-image: linear-gradient(135deg, #1f8a8a, #0e5a7a); }
.study--e { background-color: #243b8c; background-image: linear-gradient(135deg, #4257b5, #243b8c); }
/* 底圖加深：覆蓋半透明深色遮罩，確保白色標題清晰 */
.study::after { content: ""; position: absolute; inset: 0; background: rgba(8, 22, 55, .55); transition: .25s; }
.study:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.study:hover::after { background: rgba(8, 22, 55, .42); }
.study__text {
  position: relative; z-index: 1; font-weight: 800; font-size: 1.06rem; line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.study__more {
  position: relative; z-index: 1; align-self: flex-end; margin-top: 14px;
  font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}

/* ===== 發表與參展：事件卡＋照片跑馬燈 ===== */
.event {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.event h3 { color: var(--blue-900); font-size: 1.18rem; margin-bottom: 12px; }
.event p { color: var(--ink-soft); margin-bottom: 12px; }
.event a { color: var(--blue-700); font-weight: 600; }
.marquee { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 10px; scroll-snap-type: x mandatory; }
.marquee__item {
  flex: none; width: 250px; height: 150px; border-radius: 14px; scroll-snap-align: start;
  background: var(--blue-50); border: 1px dashed var(--blue-300);
  display: grid; place-items: center; color: var(--blue-700); font-size: .88rem; font-weight: 600;
}
.marquee__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }

/* ===== 徵才公告 ===== */
.joblist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 940px; margin: 0 auto; }
.job {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-sm); transition: .2s;
}
.job:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--blue-300); }
.job h3 { font-size: 1.08rem; color: var(--blue-900); }
.job__cat { display: block; color: var(--ink-soft); font-size: .85rem; font-weight: 400; margin-top: 3px; }
.job__apply {
  flex: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  background: var(--blue-700); color: #fff; transition: .2s;
}
.job__apply:hover { background: var(--blue-900); }
.job__soon { flex: none; color: var(--ink-soft); font-size: .85rem; font-weight: 600; }
.joblead { text-align: center; color: var(--ink-soft); max-width: 720px; margin: 0 auto 32px; }

/* ===== 研究論文彈窗 modal ===== */
.study__full { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(8, 20, 50, .55); }
.modal__box {
  position: relative; max-width: 880px; margin: 4vh auto; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 36px 40px;
}
.modal__close {
  position: absolute; top: 18px; right: 18px; border: 0; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%; background: var(--blue-50);
  color: var(--blue-700); font-size: 1.4rem; font-weight: 900; line-height: 1;
}
.modal__close:hover { background: var(--blue-700); color: #fff; }
.paper h3 { color: var(--blue-900); font-size: 1.3rem; line-height: 1.5; padding-right: 40px; }
.paper__cn { color: var(--ink-soft); font-weight: 600; margin-top: 6px; }
.paper__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.paper__chip { background: var(--blue-50); color: var(--blue-700); font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.paper__chip--award { background: #fff4d6; color: #9a6b00; }
.paper h4 { color: var(--blue-700); margin: 18px 0 6px; font-size: 1.02rem; }
.paper p { color: var(--ink-soft); margin-bottom: 10px; line-height: 1.8; }
.paper figure { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.paper figcaption { padding: 10px 14px; color: var(--ink-soft); font-size: .85rem; text-align: center; }

/* ===== 回首頁按鈕 ===== */
.pagefoot { text-align: center; padding: 12px 24px 64px; }
.btn--back {
  display: inline-block; padding: 12px 28px; border-radius: 999px; font-weight: 700;
  color: var(--blue-700); border: 2px solid var(--blue-300); background: #fff; transition: .2s;
}
.btn--back:hover { background: var(--blue-50); transform: translateY(-2px); }

/* ===== 聯絡我們（聯絡資訊區塊・與上方深藍 CTA、下方深色頁尾做明亮色彩區隔） ===== */
.contactinfo {
  background: linear-gradient(180deg, var(--sky), var(--blue-50));
  border-top: 1px solid var(--line);
  padding: 50px 24px;
}
.contactinfo__inner { max-width: var(--maxw); margin: 0 auto; }
.contactinfo h2 {
  color: var(--blue-900); font-size: 1.45rem; margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.contactinfo h2::before {
  content: ""; width: 8px; height: 24px; border-radius: 3px;
  background: linear-gradient(var(--blue-500), var(--blue-700));
}
.contactinfo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.contactinfo__line {
  display: flex; gap: 12px; color: var(--ink); font-size: 1rem; align-items: baseline;
}
.contactinfo__line span {
  flex: none; min-width: 64px; color: var(--blue-700); font-weight: 700; font-size: .9rem;
}
.contactinfo__line a { color: var(--blue-700); font-weight: 600; word-break: break-all; }
.contactinfo__line a:hover { text-decoration: underline; }
.contactinfo__col--en .contactinfo__line { color: var(--ink-soft); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #aab6c8; padding: 40px 24px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer__inner strong { color: #fff; }
.footer__inner p { font-size: .9rem; margin: 4px 0; }

/* ===== RWD ===== */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px;
    gap: 4px; transform: translateY(-130%); transition: transform .3s; box-shadow: var(--shadow);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { width: 100%; }
  .nav__toggle { display: block; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about__cards, .tabs, .team, .gallery, .pillset, .contactinfo__grid, .hub { grid-template-columns: 1fr; }
  .news__item { grid-template-columns: 1fr; gap: 6px; }
  .hero__stats { gap: 24px; }
}
