:root {
  --bg: #ffffff;
  --fg: #0e1116;
  --muted: #5b6777;
  --primary: #155eef;
  --primary-600: #0d49cc;
  --surface: #f4f6fb;
  --border: #e6e8ee;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --button: #0b5cff;
  --button-hover: #0a53e4;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: ui-sans-serif, -apple-system, system-ui, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--fg); background: var(--bg); line-height: 1.6; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Apple-like top nav refinement */
.site-header { height: 44px; display: flex; align-items: center; background: rgba(255,255,255,0.88); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 44px; padding: 0; }
.brand, .nav-center, .actions { display: flex; align-items: center; }
.nav-center { flex: 1; justify-content: center; }
.actions { gap: 12px; }
.site-title { font-size: 15px; font-weight: 700; line-height: 1; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.site-nav a { font-size: 13px; font-weight: 500; color: #1d1d1f; padding: 6px 10px; border-radius: 8px; position: relative; text-decoration: none; }
.site-nav a:hover { background: rgba(0,0,0,0.06); }
.site-nav a.active { background: transparent; color: #000; }
.site-nav a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -6px; height: 2px; background: #000; border-radius: 2px; }
.lang-switch a { font-size: 13px; opacity: .9; text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 56px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; }
.footer-inner ul { display: flex; list-style: none; gap: 12px; margin: 0; padding: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-visual { position: absolute; right: 0; bottom: -40px; width: 52%; max-width: 640px; pointer-events: none; opacity: .9; }

/* Sections */
section .section-title { font-size: 22px; margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.list { display: grid; gap: 14px; }

/* Cards */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 6px 0 0; }

/* Meta and tags */
.meta { color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: 12px; }

/* Buttons */
.btn { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; padding: 10px 16px; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow); }
.btn:hover { background: var(--primary-600); }
.btn.secondary { background: #111827; }

/* Utilities */
.skip-link { position: absolute; left: -10000px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.kpi:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12); border-color: rgba(21, 94, 239, 0.3); }
.kpi-num { font-size: 24px; font-weight: 800; line-height: 1.1; }
.kpi-label { color: var(--muted); font-size: 12px; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 20px; }
.link { color: #0d49cc; text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

.news-card { display: grid; grid-template-columns: 2fr 3fr; gap: 12px; align-items: start; }
.news-card .cover { aspect-ratio: 16 / 9; }
.date-badge { width: 64px; height: 64px; border: 1px solid var(--border); border-radius: 12px; display: grid; place-items: center; background: var(--surface); }
.date-badge .day { font-size: 18px; font-weight: 800; line-height: 1; }
.date-badge .mon { font-size: 12px; color: var(--muted); text-transform: uppercase; }

.announce { background: #0b5cff; color: #fff; }
.announce .announce-link { color: #fff; display: block; padding: 10px 0; text-align: center; text-decoration: none; font-weight: 700; }
.announce .announce-link:hover { text-decoration: underline; }

.audience .aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.aud-card { display: block; text-align: center; border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: var(--bg); text-decoration: none; color: var(--fg); box-shadow: var(--shadow); font-weight: 700; }
.aud-card:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(15,23,42,0.08); }

.badge-card { position: relative; padding-top: 12px; }
.badges { position: absolute; top: -10px; right: 12px; display: flex; gap: 6px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }

.team-mosaic .mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.mosaic-item { display: grid; justify-items: center; align-content: start; text-decoration: none; color: var(--fg); gap: 4px; padding: 10px 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.mosaic-item:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); }
.mosaic-item .avatar-img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.mosaic-item:hover .avatar-img { transform: scale(1.04); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12); }
.mosaic-item .name { font-size: 13px; margin-top: 2px; color: var(--fg); font-weight: 600; text-align: center; }
.mosaic-item .role { font-size: 11px; color: var(--muted); text-align: center; }

.admissions-cta .cta { border: 1px solid var(--border); border-radius: 16px; padding: 16px; background: linear-gradient(180deg, #f7f9ff 0%, rgba(247,249,255,0.6) 100%); box-shadow: var(--shadow); text-align: center; }
.admissions-cta .cta h3 { margin: 0 0 6px; font-size: 22px; }
.admissions-cta .cta p { margin: 0 0 12px; color: var(--muted); }
.admissions-cta .cta-actions { display: flex; gap: 10px; justify-content: center; }

/* Ensure horizontal scroll feels natural and always overflows on small sets */
.hscroll { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0 2px 6px; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.hcard { scroll-snap-align: start; flex: 0 0 clamp(360px, 48vw, 520px); max-width: 520px; }

/* Clip images inside card and avoid radius/border overflow */
.card { overflow: hidden; }
.card .cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: none; border-radius: 0; margin: 0 0 10px 0; }

.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.news-list .date { color: var(--muted); font-size: 13px; }
.news-list a { text-decoration: none; color: var(--fg); }
.news-list a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .news-list li { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .audience .aud-grid { grid-template-columns: 1fr; }
  .team-mosaic .mosaic { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
} 

.hscroll-wrap { position: relative; }
.hscroll-wrap.one { padding: 4px 0 20px; }
.hscroll-wrap.one::before,
.hscroll-wrap.one::after { content: ""; position: absolute; top: 24px; bottom: 24px; width: 48px; pointer-events: none; z-index: 0; }
.hscroll { position: relative; z-index: 1; }
.hscroll-wrap.one::before { left: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(255,255,255,0) 100%); }
.hscroll-wrap.one::after { right: 0; background: linear-gradient(270deg, var(--bg) 0%, rgba(255,255,255,0) 100%); }

.hscroll.one { gap: 16px; }
.hcard { flex: 0 0 100%; max-width: 820px; margin: 0 auto; }
.scroll-hint { text-align: center; color: var(--muted); font-size: 12px; margin-top: 6px; } 

/* Horizontal scroll polish: hide scrollbar, smooth scroll, centered snap */
.hscroll { scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.hscroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.hscroll.one { scroll-snap-type: x mandatory; }
.hcard { scroll-snap-align: center; } 

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; position: relative; z-index: 2; }
.dot { width: 6px; height: 6px; background: var(--border); border-radius: 999px; border: none; padding: 0; cursor: pointer; }
.dot[disabled] { opacity: .45; cursor: default; }
.dot:hover { background: #b8c1d9; }
.dot.active { background: #0b5cff; width: 24px; height: 8px; border-radius: 999px; } 

.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.person-card { display: grid; justify-items: center; text-decoration: none; color: var(--fg); border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--bg); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.person-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,23,42,0.08); }
.avatar-img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--surface); border: 1px solid var(--border); }
.person-card h3 { margin: 8px 0 4px; font-size: 16px; }
.person-card .intro { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.person-hero { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.avatar-lg { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--surface); border: 1px solid var(--border); }
.person-hero .info h1 { margin: 0 0 6px; }
.person-hero .links a { text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.person-hero .links a:hover { background: #eef2ff33; }

@media (max-width: 900px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .person-hero { grid-template-columns: 1fr; }
} 

.features { display: grid; gap: 28px; }
.feature-section { background: var(--bg); }
.feature-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: center; padding: 12px 0; }
.feature-section.alt .feature-inner { grid-template-columns: 1fr 1.2fr; }
.feature-section .media img { width: 100%; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); display: block; }
.feature-section .content h2 { margin: 0 0 8px; font-size: 28px; }
.lead { color: var(--fg); font-size: 16px; }
.metrics { display: flex; gap: 10px; margin-top: 10px; }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.metric .k { color: var(--muted); margin-right: 6px; }
.feature-section.alt .media { order: 2; }
.feature-section.alt .content { order: 1; }

@media (max-width: 900px) {
  .feature-inner { grid-template-columns: 1fr; }
  .feature-section.alt .media { order: initial; }
  .feature-section.alt .content { order: initial; }
} 

.pub-filters { display: flex; gap: 12px; align-items: end; margin: 8px 0 12px; }
.pub-filters label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.pub-filters select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); }

.year { margin: 18px 0 8px; font-size: 22px; }
.pubs { display: grid; gap: 10px; }
.pub-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.pub-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); }
.pub-card .venue { display: inline-block; background: var(--surface); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pub-card .title { margin: 0 0 4px; font-size: 18px; }
.pub-card .authors { font-size: 14px; color: var(--muted); }
.pub-card .actions { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-size: 12px; background: var(--surface); }
.chip:hover { background: #eef2ff; } 

/* Global link aesthetics */
a { color: inherit; text-decoration: none; transition: color .15s ease, background-color .15s ease, box-shadow .15s ease; }
a:hover { color: inherit; box-shadow: inset 0 -6px 0 rgba(15,23,42,0.06); }
a:visited { color: inherit; } 

/* Final link reset override */
a, .site-title, .site-nav a, .site-header a, .site-footer a, footer a, header a, .card h3 a, .section-head a, .link {
  color: inherit !important;
  text-decoration: none !important;
}
a:hover, a:focus, a:active,
.site-title:hover, .site-nav a:hover, .site-header a:hover, .site-footer a:hover,
.card h3 a:hover, .section-head a:hover, .link:hover {
  color: inherit !important;
  text-decoration: none !important;
  background: transparent !important;
  box-shadow: none !important;
} 

/* Apple-inspired theme overrides */
:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --border: #d2d2d7;
  --surface: #f5f5f7;
  --shadow: 0 0 0 rgba(0,0,0,0);
}

body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--fg); background: var(--bg); letter-spacing: 0; }

/* Typography scale */
.hero h1, h1 { font-weight: 800; letter-spacing: -0.4px; line-height: 1.1; }
h1 { font-size: 44px; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.2px; }
h3 { font-size: 18px; font-weight: 700; }
.meta { color: var(--muted); }

/* Header/Footer borders and background */
.site-header { background: rgba(255,255,255,0.9); border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); }

/* Hero plain background */
.hero { padding: 64px 0 28px; background: transparent; }

/* Buttons minimal */
.btn { background: var(--button); color: #fff !important; border: none; border-radius: 12px; }
.btn.secondary { background: #2c2c2e; color: #fff !important; }
.btn:hover { background: var(--button-hover); }

/* Cards: no heavy shadow, subtle borders */
.card { box-shadow: none; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.card .cover { border: 1px solid var(--border); }

/* Chips and tags */
.chip, .tag { background: var(--surface); border: 1px solid var(--border); color: inherit; }
.chip:hover { background: #ebebf0; }

/* KPI tiles */
.kpi { box-shadow: none; border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.kpi:hover { box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12); border-color: rgba(21, 94, 239, 0.3); }

/* Audience cards */
.aud-card { box-shadow: none; border: 1px solid var(--border); }
.aud-card:hover { box-shadow: none; background: #f9f9fb; }

/* Features media figure */
.feature-section .media img { box-shadow: none; border: 1px solid var(--border); }

/* People */
.person-card { box-shadow: none; border: 1px solid var(--border); }
.person-card:hover { transform: none; background: #f9f9fb; }
.avatar-img, .avatar-lg { border: 1px solid var(--border); background: var(--surface); }

/* Nav links neutral already reset above */ 

.site-nav ul { position: relative; }
.nav-item { position: relative; }
.nav-item .dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-width: 160px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.nav-item .dropdown li { list-style: none; }
.nav-item .dropdown a { display: block; padding: 6px 10px; border-radius: 8px; }
.nav-item .dropdown a:hover { background: var(--surface); }
.nav-item.has-children:hover .dropdown { display: block; } 

.nav-item.has-children { position: relative; }
.nav-item.has-children .nav-caret { display: none; margin-left: 4px; background: transparent; border: 0; cursor: pointer; }
@media (max-width: 900px) {
  .nav-item.has-children .nav-caret { display: inline-flex; align-items: center; }
  .nav-item.has-children .dropdown { position: static; box-shadow: none; border: 0; padding: 6px 0 0; display: none; }
  .nav-item.has-children.open .dropdown { display: block; }
}
@media (min-width: 901px) {
  .nav-item.has-children:hover .dropdown,
  .nav-item.has-children:focus-within .dropdown { display: block; }
  .nav-item.has-children .dropdown { margin-top: 8px; }
}
/* Hover intent protection area */
.nav-item.has-children .dropdown::before { content:""; position:absolute; top:-8px; left:0; right:0; height:8px; } 

.hero.hero-large .container { padding-top: 24px; }
.hero.hero-large h1 { font-size: 60px; line-height: 1.06; }
@media (max-width: 900px){ .hero.hero-large h1 { font-size: 40px; } }
.hero-sub { margin: 8px 0 16px; font-size: 18px; color: var(--muted); }
.hero-cta { margin-top: 8px; }

.section-block { margin: 56px auto 64px; }
@media (max-width: 900px){ .section-block { margin: 32px auto 40px; } }

.vision-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 18px; align-items: center; }
.vision-fig img { width: 100%; border-radius: 16px; border: 1px solid var(--border); }
@media (max-width: 900px){ .vision-wrap { grid-template-columns: 1fr; } }

.news-list.visual { display: grid; gap: 12px; }
.news-list.visual li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--bg); }
.news-list.visual .thumb { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.news-list.visual .news-meta { display: flex; gap: 8px; align-items: center; }
.badge-type { display: inline-block; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--muted); background: var(--surface); }
.news-list.visual .title { display: block; grid-column: 2 / -1; } 

/* Publications: sticky/collapsible filters */
.pub-filters.sticky { position: sticky; top: 44px; background: var(--bg); z-index: 9; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pub-filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.pub-filters .filters-toggle { display: none; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; }
.pub-filters .filters-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.pub-filters label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.pub-filters input[type="search"], .pub-filters select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); }
@media (max-width: 900px){
  .pub-filters { align-items: stretch; }
  .pub-filters .filters-toggle { display: inline-block; }
  .pub-filters .filters-fields { display: none; width: 100%; padding-top: 8px; }
  .pub-filters.open .filters-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Publications badges and highlights */
.pub-badges { display: flex; gap: 6px; margin-bottom: 6px; }
.highlights { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
/* Distinct styles for CAS/CCF tags */
.tag-ccf { background: #fff3f3; border-color: #ffb3b3; color: #b00020; }
.tag-cas { background: #f0fff4; border-color: #9ae6b4; color: #0f7a3a; }
.tag-ccf.is-top { background: #ffe8e8; border-color: #ff8a8a; color: #a00000; font-weight: 800; }
.tag-cas.is-top { background: #e6ffef; border-color: #7bdcb5; color: #0a6330; font-weight: 800; }

/* Patents grid */
.patent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.patent-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.patent-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); }
.patent-card h3 { margin: 0 0 6px; font-size: 16px; }
.patent-meta { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.status { display: inline-block; font-size: 11px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); }
.status.granted { color: #3a3a3c; }
.status.pending { color: var(--muted); }
.patent-fields { font-size: 14px; color: var(--fg); }
.patent-fields .row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.patent-fields .label { color: var(--muted); }
@media (max-width: 900px){ .patent-grid { grid-template-columns: 1fr; } } 
