/* ==========================================================================
   Academic Portal Stylesheet
   华南理工大学化学与化工学院 · 广东省绿色化学产品技术重点实验室
   精细化工团队（高分子与胶体材料实验室）官方门户设计
   ========================================================================== */

:root {
  --primary-navy: #0A2540;
  --primary-blue: #0052CC;
  --hover-blue: #0747A6;
  --light-blue-bg: #F0F5FF;
  --accent-cyan: #00B4D8;
  --accent-gold: #D97706;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  --border-card: rgba(226, 232, 240, 0.8);
  --success-green: #10B981;
  --danger-red: #EF4444;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--hover-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Part / View Architecture (Separate Views, no infinite single scroll)
   ========================================================================== */
.view-page {
  display: none;
  opacity: 0;
  min-height: 70vh;
  transition: opacity 0.25s ease;
}

.view-page.active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo,
.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 30px;
  background-color: #CBD5E1;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}

.brand-college {
  font-size: 11.5px;
  color: #64748B;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand-team {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: 0.4px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  padding: 10px 14px;
  position: relative;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-blue);
  background: #F1F5F9;
}

.nav-link.active {
  color: var(--primary-blue);
  font-weight: 700;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch-group {
  display: flex;
  align-items: center;
  background: #F1F5F9;
  border-radius: 20px;
  padding: 2px 4px;
  border: 1px solid var(--border-light);
}

.lang-btn {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--primary-blue);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.contact-quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: #475569;
  transition: var(--transition);
}

.contact-quick-link:hover {
  background: var(--light-blue-bg);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--primary-navy);
  cursor: pointer;
}

/* ==========================================================================
   Hero Banner Carousel (Home View)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 580px;
  background: #020914;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 7s ease-out;
}

.hero-slide.active .slide-bg {
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(2, 9, 20, 0.88) 0%, rgba(2, 9, 20, 0.65) 45%, rgba(2, 9, 20, 0.25) 100%);
}

.slide-content-wrapper {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}

.slide-text-box {
  max-width: 680px;
  color: #FFFFFF;
}

.slide-number-tag {
  display: inline-block;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 6px;
  font-family: "Segoe UI", Roboto, sans-serif;
  letter-spacing: -1px;
}

.slide-category {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #60A5FA;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.slide-title-zh {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.slide-title-en {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.92);
}

.slide-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 28px;
  max-width: 580px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  font-size: 14.5px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  cursor: pointer;
}

.btn-hero:hover {
  background: #FFFFFF;
  color: var(--primary-navy);
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.hero-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: #FFFFFF;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-pagination {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 20;
}

.page-node {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-node::after {
  content: "";
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  display: inline-block;
  transition: var(--transition);
}

.page-node:last-child::after {
  display: none;
}

.page-node.active {
  color: #FFFFFF;
}

.page-node.active::after {
  background: #3B82F6;
  width: 32px;
}

/* ==========================================================================
   Section Headers & Common Layout
   ========================================================================== */
.section-padding {
  padding: 60px 0;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
}

.section-bar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 700;
  color: var(--primary-navy);
}

.section-bar-title::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
  padding-left: 40px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-all-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Latest Progress Timeline / Synchronized Direction Panels
   ========================================================================== */
#home-progress-section {
  scroll-margin-top: 84px;
}

.progress-tabs-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.progress-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  outline: none;
  position: relative;
}

.progress-tab:hover {
  border-color: var(--primary-blue);
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.progress-tab.active {
  background: #EFF6FF;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 1.5px var(--primary-blue), var(--shadow-sm);
}

.progress-tab .tab-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-blue);
  font-family: "Segoe UI", Roboto, sans-serif;
  background: rgba(0, 82, 204, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: var(--transition);
}

.progress-tab.active .tab-num {
  background: var(--primary-blue);
  color: #FFFFFF;
}

.progress-tab .tab-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  transition: var(--transition);
}

.progress-tab.active .tab-label {
  color: var(--primary-navy);
}

.progress-panels {
  position: relative;
  min-height: 380px;
}

.progress-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.progress-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.progress-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-blue);
}

.progress-list {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.progress-item {
  display: grid;
  grid-template-columns: 80px 1px 1fr auto;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-light);
  gap: 24px;
  transition: var(--transition);
}

.progress-item:last-child {
  border-bottom: none;
}

.progress-item:hover {
  background: #F8FAFC;
}

.progress-year {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-blue);
  font-family: "Segoe UI", Roboto, sans-serif;
}

.progress-divider {
  height: 38px;
  background: #CBD5E1;
}

.progress-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-paper-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.progress-journal {
  font-size: 13.5px;
  color: #475569;
}

.progress-journal em {
  font-style: italic;
  font-weight: 500;
}

.progress-doi-col {
  text-align: right;
}

.doi-label {
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
  display: block;
}

.doi-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
  word-break: break-all;
}

.doi-link:hover {
  text-decoration: underline;
}


/* ==========================================================================
   PI Profile Section (Using official Baidu Baike portrait)
   ========================================================================== */
.pi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.pi-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pi-portrait-wrap {
  width: 210px;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #FFFFFF;
  margin-bottom: 16px;
  background: #E2E8F0;
}

.pi-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pi-external-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-academic-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-baike {
  background: #EFF6FF;
  color: var(--primary-blue);
  border: 1px solid #BFDBFE;
}

.btn-baike:hover {
  background: var(--primary-blue);
  color: #FFFFFF;
}

.btn-scholar {
  background: #F8FAFC;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.btn-scholar:hover {
  background: #334155;
  color: #FFFFFF;
}

.pi-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.pi-academic-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.pi-duties-badge {
  display: inline-block;
  background: #F1F5F9;
  color: #475569;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  line-height: 1.5;
}

.pi-bio-p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 14px;
  text-align: justify;
}

.pi-contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.pi-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
}

.pi-contact-item i {
  color: var(--primary-blue);
  margin-top: 3px;
}

/* ==========================================================================
   Publications View Components
   ========================================================================== */
.pub-category-box {
  margin-bottom: 36px;
}

.pub-category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.patent-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.patent-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.patent-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.patent-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.patent-info span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Team Members (Factual & Objective, Slogans Removed)
   ========================================================================== */

.team-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.team-photo-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.team-photo-card:hover {
  box-shadow: var(--shadow-md);
}

.team-photo-img-wrap {
  position: relative;
  height: 380px;
  width: 100%;
  overflow: hidden;
  background: #E2E8F0;
}

.team-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Factual & Calm photo caption overlay */
.team-photo-badge-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0) 0%, rgba(10, 37, 64, 0.85) 40%, rgba(10, 37, 64, 0.95) 100%);
  padding: 20px;
  color: #FFFFFF;
}

.badge-title-text {
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.badge-sub-text {
  font-size: 13px;
  color: #CBD5E1;
  line-height: 1.5;
}

/* ==========================================================================
   Laboratory Regulations
   ========================================================================== */
.regulations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.regulation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 18px;
  transition: var(--transition);
}

.regulation-card:hover {
  border-color: #93C5FD;
  box-shadow: var(--shadow-md);
}

.reg-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light-blue-bg);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.reg-content-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.reg-content-box p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

/* ==========================================================================
   Laboratory Safety Exam Section & Auth Input Card
   ========================================================================== */
/* Exam Login Gate Card */
.exam-login-section {
  padding: 10px 0 30px 0;
}

.exam-login-card {
  max-width: 580px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 36px 32px 36px;
  box-shadow: var(--shadow-md);
}

.exam-login-header {
  text-align: center;
  margin-bottom: 24px;
}

.exam-login-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #EBF3FF;
  color: var(--primary-blue);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border: 1px solid #C7DFFE;
}

.exam-login-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.exam-login-desc {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
}

.exam-login-action {
  margin-top: 20px;
}

.btn-login-submit {
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}

.btn-login-submit:hover {
  box-shadow: 0 6px 16px rgba(0, 82, 204, 0.3);
}

.exam-login-tips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12.5px;
  color: #64748B;
  text-align: center;
}

/* Active Examinee Bar */
.exam-examinee-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 24px;
}

.examinee-info-text {
  font-size: 14.5px;
  color: #1E3A8A;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bar-divider {
  color: #93C5FD;
}

.btn-switch-user {
  background: #FFFFFF;
  border: 1px solid #93C5FD;
  color: #1D4ED8;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-switch-user:hover {
  background: #DBEAFE;
}

.exam-auth-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.exam-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exam-input-group label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-navy);
}

.exam-input-group label span.required-star {
  color: #EF4444;
  margin-left: 3px;
}

.exam-input-field {
  height: 42px;
  padding: 8px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-main);
  background: #F8FAFC;
  transition: var(--transition);
}

.exam-input-field:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

.exam-banner-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--primary-blue);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.exam-banner-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.exam-banner-card p {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
}

.exam-progress-bar-wrap {
  margin-top: 16px;
  background: #E2E8F0;
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
  position: relative;
}

.exam-progress-fill {
  background: linear-gradient(90deg, #3B82F6, #10B981);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.exam-progress-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-top: 6px;
  display: block;
  text-align: right;
}

.exam-questions-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.exam-question-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.exam-question-card.card-correct {
  border-color: #A7F3D0;
  background: #F0FDF4;
}

.exam-question-card.card-wrong {
  border-color: #FECACA;
  background: #FEF2F2;
}

.question-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.question-badge {
  background: var(--primary-navy);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.question-type-tag {
  background: #F1F5F9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.question-points {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-blue);
}

.verdict-tag {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.verdict-pass {
  background: #DCFCE7;
  color: #166534;
}

.verdict-fail {
  background: #FEE2E2;
  color: #991B1B;
}

.question-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 16px;
  line-height: 1.5;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.option-item:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.option-item.selected {
  background: #EFF6FF;
  border-color: var(--primary-blue);
}

.option-item.option-real-correct {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
  font-weight: 600;
}

.option-item.option-user-wrong {
  background: #FEF2F2 !important;
  border-color: #EF4444 !important;
  text-decoration: line-through;
}

.option-item input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--primary-blue);
}

.opt-indicator {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  min-width: 18px;
}

.opt-text {
  font-size: 14.5px;
  color: #1E293B;
  line-height: 1.5;
}

.feedback-box {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
}

.feedback-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.feedback-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  margin-bottom: 8px;
}

.citation-text {
  margin-bottom: 6px;
  font-size: 13.5px;
}

.explanation-text {
  font-size: 13.5px;
}

.exam-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-blue);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--hover-blue);
}

.btn-secondary {
  background: #64748B;
  color: #FFFFFF;
}

.btn-secondary:hover {
  background: #475569;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: #334155;
}

.btn-outline:hover {
  background: #F1F5F9;
}

/* ==========================================================================
   Exam Result & Certificate Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 64, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-dialog {
  background: #FFFFFF;
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-content-scroll {
  padding: 32px;
  overflow-y: auto;
}

.exam-result-summary {
  text-align: center;
}

.result-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.result-icon-badge.pass {
  background: #DCFCE7;
  color: #10B981;
}

.result-icon-badge.fail {
  background: #FEE2E2;
  color: #EF4444;
}

.exam-result-summary h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.result-lead {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 24px;
}

.score-display {
  font-size: 16px;
  color: #1E293B;
  margin-bottom: 12px;
}

.score-display strong {
  font-size: 28px;
  color: #EF4444;
}

/* Certificate Preview Card */
.cert-preview-card {
  position: relative;
  background: #FFFDF9;
  border: 4px double #C5A880;
  border-radius: 8px;
  padding: 28px 32px;
  margin: 20px 0 28px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 44px;
  font-weight: 900;
  color: rgba(197, 168, 128, 0.12);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #E5D5C5;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.cert-title {
  font-size: 16px;
  font-weight: 800;
  color: #78350F;
  letter-spacing: 0.5px;
}

.cert-no {
  font-size: 12px;
  font-weight: 700;
  color: #92400E;
  font-family: monospace;
}

.cert-body {
  font-size: 13.5px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 20px;
}

.cert-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px dashed #D1B89D;
  padding-top: 16px;
}

.cert-stamp {
  width: 90px;
  height: 90px;
  border: 2px solid #DC2626;
  border-radius: 50%;
  color: #DC2626;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-15deg);
  line-height: 1.3;
  padding: 4px;
}

.cert-sign {
  font-size: 13px;
  font-weight: 600;
  color: #1F2937;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

/* ==========================================================================
   Footer & Contact Info
   ========================================================================== */
.site-footer {
  background: #06152B;
  color: #94A3B8;
  padding: 50px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand-title {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-dept-name {
  font-size: 13px;
  color: #CBD5E1;
  margin-bottom: 12px;
}

.footer-addr-info {
  font-size: 13px;
  line-height: 1.7;
  color: #94A3B8;
}

.footer-col-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: #94A3B8;
  font-size: 13.5px;
  cursor: pointer;
}

.footer-links-list a:hover {
  color: #FFFFFF;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: #64748B;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .pi-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pi-avatar-col {
    margin: 0 auto;
  }
  .pi-contact-list {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 768px) {
  /* Header & Mobile Nav */
  .header-inner {
    height: 60px;
  }
  .brand-wrapper {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }
  .brand-logo,
  .brand-logo-img {
    height: 30px;
    width: auto;
    flex-shrink: 0;
  }
  .brand-divider {
    width: 1px;
    height: 24px;
    background-color: #CBD5E1;
    margin: 0 2px;
    flex-shrink: 0;
  }
  .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .brand-college {
    font-size: 10.5px;
    font-weight: 500;
    color: #64748B;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }
  .brand-team {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: 0.3px;
    white-space: nowrap;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .contact-quick-link {
    display: none;
  }
  .lang-switch-group {
    padding: 2px;
    gap: 2px;
  }
  .lang-btn {
    padding: 3px 6px;
    font-size: 11px;
    min-width: 24px;
  }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #F1F5F9;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 17px;
    color: var(--primary-navy);
    cursor: pointer;
  }
  .mobile-nav-toggle.active {
    background: var(--primary-blue);
    color: #FFFFFF;
    border-color: var(--primary-blue);
  }
  .primary-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 14px 18px;
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 12px 28px -6px rgba(10, 37, 64, 0.18);
    display: none;
    z-index: 1001;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    gap: 4px;
  }
  .primary-nav.nav-open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    font-size: 15.5px;
    padding: 13px 16px;
    border-radius: 8px;
    border-bottom: 1px solid #F1F5F9;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .nav-link.active {
    background: #EFF6FF;
    color: var(--primary-blue);
    font-weight: 700;
  }
  .nav-link.active::after {
    display: none;
  }

  /* General Typography & Sections */
  .section-padding {
    padding: 36px 0;
  }
  .container {
    padding: 0 16px;
  }
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }
  .section-bar-title {
    font-size: 20px;
  }
  .section-subtitle {
    font-size: 12.5px;
  }
  .section-header-row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Hero Banner Carousel */
  .hero-section {
    height: auto;
    min-height: 460px;
    padding: 34px 0 52px;
  }
  .hero-nav-arrow {
    display: none !important;
  }
  .slide-content-wrapper {
    padding: 0 16px;
  }
  .slide-text-box {
    max-width: 100%;
  }
  .slide-number-tag {
    font-size: 24px;
    margin-bottom: 2px;
  }
  .slide-category {
    font-size: 10.5px;
    letter-spacing: 1px;
    margin-bottom: 4px;
  }
  .slide-title-zh {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  .slide-title-en {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
  }
  .slide-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
  }
  .btn-hero {
    padding: 9px 18px;
    font-size: 13.5px;
  }
  .hero-pagination {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
  }
  .page-node {
    font-size: 11px;
    padding: 2px 4px;
  }


  /* Progress & Publications List */
  .progress-tabs-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  .progress-tab {
    padding: 10px 12px;
    gap: 8px;
  }
  .progress-tab .tab-num {
    font-size: 13px;
    padding: 2px 6px;
  }
  .progress-tab .tab-label {
    font-size: 12px;
    line-height: 1.3;
  }
  .progress-panels {
    min-height: auto;
  }
  .progress-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    margin-bottom: 10px;
  }
  .progress-year {
    display: inline-block;
    background: #E0F2FE;
    color: #0284C7;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    width: fit-content;
  }
  .progress-divider {
    display: none;
  }
  .progress-paper-title {
    font-size: 14.5px;
    line-height: 1.45;
  }
  .progress-journal {
    font-size: 12.5px;
    color: #64748B;
  }
  .progress-doi-col {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding-top: 6px;
    border-top: 1px dashed #E2E8F0;
  }
  .doi-link {
    font-size: 12px;
    word-break: break-all;
  }

  /* PI Profile */
  .pi-card {
    padding: 20px 16px;
    gap: 18px;
  }
  .pi-avatar-wrap {
    width: 160px;
    height: 210px;
    margin: 0 auto 14px;
  }
  .pi-name {
    font-size: 21px;
    text-align: center;
  }
  .pi-academic-title {
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
  }
  .pi-duties-badge {
    font-size: 11.5px;
    line-height: 1.55;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
  }
  .pi-bio-p {
    font-size: 13.5px;
    line-height: 1.65;
    text-align: justify;
  }
  .pi-actions-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .btn-baike, .btn-scholar {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 12px;
    font-size: 13px;
  }
  .pi-contact-list {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
  }
  .pi-contact-item {
    font-size: 13px;
    word-break: break-word;
  }

  .team-photos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .team-photo-img-wrap {
    height: 230px;
  }
  .team-photo-badge-overlay {
    padding: 14px;
  }
  .badge-title-text {
    font-size: 14.5px;
  }
  .badge-sub-text {
    font-size: 12px;
  }

  /* Safety Exam System */
  .exam-login-card {
    padding: 22px 14px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }
  .exam-login-title {
    font-size: 17px;
  }
  .exam-login-desc {
    font-size: 12.5px;
    line-height: 1.55;
  }
  .exam-input-field {
    font-size: 16px;
    padding: 11px 12px;
  }
  .btn-login-submit {
    width: 100%;
    font-size: 14.5px;
    padding: 11px;
    justify-content: center;
  }
  .student-logged-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }
  .logged-info-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .btn-logout {
    width: 100%;
    justify-content: center;
  }
  .exam-progress-tracker {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 14px;
  }
  .progress-bar-track {
    width: 100%;
  }
  .exam-question-card {
    padding: 14px 12px;
    margin-bottom: 14px;
    border-radius: 8px;
  }
  .question-header {
    font-size: 14px;
    line-height: 1.45;
  }
  .exam-options-list {
    gap: 8px;
  }
  .exam-option-label {
    padding: 9px 10px;
    font-size: 13px;
    gap: 8px;
    min-height: 42px;
  }
  .exam-sticky-bottom {
    padding: 10px 14px;
  }
  .exam-bottom-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .exam-bottom-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 11px;
    font-size: 14.5px;
  }

  /* Certificate Modal */
  .modal-backdrop {
    padding: 10px;
  }
  .modal-dialog {
    max-height: 94vh;
    border-radius: 10px;
  }
  .modal-content-scroll {
    padding: 18px 12px;
  }
  .exam-result-summary h3 {
    font-size: 18px;
  }
  .result-lead {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .cert-preview-card {
    padding: 14px 10px;
    margin: 12px 0 16px;
    border-width: 2px;
  }
  .cert-watermark {
    font-size: 24px;
  }
  .cert-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 8px;
    margin-bottom: 12px;
  }
  .cert-title {
    font-size: 13.5px;
  }
  .cert-no {
    font-size: 11px;
  }
  .cert-body {
    font-size: 12px;
    line-height: 1.65;
    margin-bottom: 14px;
  }
  .cert-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding-top: 12px;
  }
  .cert-stamp {
    margin: 0 auto;
    width: 72px;
    height: 72px;
    font-size: 9.5px;
  }
  .modal-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .site-footer {
    padding: 32px 0 18px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer-brand-title {
    font-size: 15px;
  }
  .footer-bottom-bar {
    font-size: 11.5px;
    padding-top: 16px;
  }
}

@media (max-width: 480px) {
  .brand-logo,
  .brand-logo-img {
    height: 28px;
  }
  .brand-college {
    font-size: 10px;
  }
  .brand-team {
    font-size: 12.5px;
  }
  .slide-title-zh {
    font-size: 19px;
  }
  .slide-title-en {
    font-size: 11.5px;
  }
  .team-photo-img-wrap {
    height: 200px;
  }
  .stat-number {
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  .brand-college {
    display: none;
  }
}
