@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

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

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-y: auto;
  background: #1a1410;
  color: #5a4e44;
  display: flex;
  flex-direction: column;
}

/* ===== BACKGROUND OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(90deg,
      rgba(255,253,248,0) 0%,
      rgba(255,253,248,0.55) 18%,
      rgba(255,253,248,0.85) 50%,
      rgba(255,253,248,0.55) 82%,
      rgba(255,253,248,0) 100%),
    url('../back/back1.png') center center / cover no-repeat;
  z-index: 0;
}

.page-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  width: 100%;
  margin: auto;
  padding: 14px 36px 10px;
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  margin-bottom: 8px;
  position: relative;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 44px;
}

/* HEAT TRANSFER — pinned to page top-left corner */
.header-left {
  position: fixed;
  top: 16px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  padding: 5px 12px 5px 8px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo-icon {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 5px rgba(230, 126, 34, 0.6)) drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.logo-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #3d3229;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(255,253,248,0.7);
}

.header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

/* Login — pinned to page top-right corner */
.header-right {
  position: fixed;
  top: 16px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  z-index: 5;
}

/* 页面切换进入动画（注意：含 position:fixed 子元素的容器只用 opacity，
   不用 transform，否则会破坏 fixed 定位的包含块） */
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.page-wrapper {
  animation: pageEnter 0.6s ease both;
}
.page-wrapper .section,
.page-wrapper .footer-note {
  animation: fadeUp 0.6s ease both;
}
.page-wrapper .section:nth-of-type(1) { animation-delay: 0.10s; }
.page-wrapper .section:nth-of-type(2) { animation-delay: 0.22s; }
.page-wrapper .section:nth-of-type(3) { animation-delay: 0.34s; }
.page-wrapper .footer-note { animation-delay: 0.46s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-about {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 16px;
  border: 1px solid rgba(61,50,41,0.2);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  font-size: 14px;
  color: #5a4e44;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-about:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(61,50,41,0.4);
}

.btn-about svg { width: 14px; height: 14px; }

.main-title {
  font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif;
  font-size: 26px;
  font-weight: 700;
  color: #2c1f14;
  background: linear-gradient(90deg, #0a0a12 0%, #1e3a8a 15%, #2b4fd6 38%, #5b3fd6 62%, #7c3aed 82%, #0a0a12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
  line-height: 1.2;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 6px rgba(255,253,248,0.5));
}

.sub-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  color: #3d3229;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
  padding-top: 2px;
  text-shadow: 0 1px 6px rgba(255,253,248,0.8);
}

.intro-text {
  font-size: 14px;
  color: #2e261d;
  font-weight: 500;
  line-height: 1.5;
  max-width: 620px;
  margin: 6px auto 0;
  text-shadow: 0 1px 8px rgba(255,253,248,0.8);
}

/* ===== SECTION ===== */
.section { margin-bottom: 8px; }

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 3px;
  text-shadow: 0 1px 6px rgba(255,253,248,0.7);
}

.section-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 6px;
}

/* 主题色变量，供分隔线渐变与圆点复用 */
.section-blue   { --line-color: #1d4ed8; }
.section-green  { --line-color: #047857; }
.section-orange { --line-color: #b45309; }

/* 左右渐变横线：外端细而淡，向中间渐粗渐清晰 */
.section-line::before,
.section-line::after {
  content: '';
  flex: 1;
  max-width: 180px;
  height: 6px;
}

.section-line::before {
  background: linear-gradient(90deg, transparent, var(--line-color, #b8a58e));
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.section-line::after {
  background: linear-gradient(90deg, var(--line-color, #b8a58e), transparent);
  clip-path: polygon(100% 50%, 0 0, 0 100%);
}

/* 圆点：替代原有的箭头符号 */
.section-line .sec-arrow {
  font-size: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

/* Section theme colors */
.section-blue  .section-title,
.section-blue  .section-line .sec-arrow { color: #1d4ed8; }
.section-green .section-title,
.section-green .section-line .sec-arrow { color: #047857; }
.section-orange .section-title,
.section-orange .section-line .sec-arrow { color: #b45309; }

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== CARD ===== */
.scientist-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.4),
    0 4px 20px rgba(0,0,0,0.06),
    0 1px 4px rgba(0,0,0,0.04),
    0 0 38px 4px var(--card-glow, rgba(22, 93, 255, 0.12)),
    inset 0 1px 0 rgba(255,255,255,0.8);
  display: flex;
  align-items: stretch;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  min-height: 120px;
}

.scientist-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.5),
    0 8px 30px rgba(0,0,0,0.1),
    0 2px 8px rgba(0,0,0,0.06),
    0 0 64px 10px var(--card-glow, rgba(22, 93, 255, 0.28)),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Card theme variants */
.card-blue .card-icon-wrap { color: #3b82f6; }
.card-blue .tagline { background: rgba(59,130,246,0.1); color: #2563eb; }
.card-blue .card-label { color: #2563eb; }
.card-blue .question-bg { background: rgba(59,130,246,0.07); border-color: rgba(59,130,246,0.15); }
.card-blue .arrow-blue { color: #3b82f6; }
.card-blue .icon-circle { background: rgba(59,130,246,0.1); }
.card-blue { --card-glow: rgba(59, 130, 246, 0.42); }

.card-green .card-icon-wrap { color: #10b981; }
.card-green .tagline { background: rgba(16,185,129,0.1); color: #059669; }
.card-green .card-label { color: #059669; }
.card-green .question-bg { background: rgba(16,185,129,0.07); border-color: rgba(16,185,129,0.15); }
.card-green .arrow-blue { color: #10b981; }
.card-green .icon-circle { background: rgba(16,185,129,0.1); }
.card-green { --card-glow: rgba(16, 185, 129, 0.42); }

.card-orange .card-icon-wrap { color: #f59e0b; }
.card-orange .tagline { background: rgba(245,158,11,0.1); color: #d97706; }
.card-orange .card-label { color: #d97706; }
.card-orange .question-bg { background: rgba(245,158,11,0.07); border-color: rgba(245,158,11,0.15); }
.card-orange .arrow-blue { color: #f59e0b; }
.card-orange .icon-circle { background: rgba(245,158,11,0.1); }
.card-orange { --card-glow: rgba(245, 158, 11, 0.45); }

.card-left {
  position: relative;
  width: 130px;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.card-icon-wrap {
  display: none;
}

.icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle svg { width: 16px; height: 16px; }

.portrait {
  width: 110px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-right {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.name-cn {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 700;
  color: #2c1f14;
  letter-spacing: 2px;
}

.name-en {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-style: italic;
  color: #8a7d72;
}

.card-blue .name-en { color: #2563eb; }
.card-green .name-en { color: #059669; }
.card-orange .name-en { color: #d97706; }

.tagline {
  display: inline-block;
  font-size: 12.5px;
  padding: 2px 9px;
  border-radius: 8px;
  margin-bottom: 6px;
  width: fit-content;
  font-weight: 500;
}

.expertise-section { margin-bottom: 6px; }

.card-label {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.expertise-text {
  font-size: 13px;
  color: #5a4e44;
  line-height: 1.45;
}

.question-section { margin-top: 6px; }

.question-bg {
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.question-text {
  font-size: 13px;
  color: #3d3229;
  line-height: 1.45;
}

.card-arrow {
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.scientist-card:hover .card-arrow { transform: translateX(3px); }

/* ===== FOOTER ===== */
.footer-note {
  text-align: center;
  margin-top: 6px;
}

.footer-note p {
  font-size: 14px;
  color: #3d3229;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-title { font-size: 24px; }
  .page-wrapper { padding: 12px 20px 16px; }
  .card-row { grid-template-columns: 1fr; gap: 10px; }
  .scientist-card { flex-direction: row; min-height: 140px; }
  .card-left { width: 110px; min-width: 110px; }
  .portrait { width: 90px; height: 120px; }
  .header-top { flex-direction: column; gap: 6px; justify-content: center; min-height: unset; }
  .header-center { position: static; transform: none; }
}

@media (max-width: 600px) {
  .page-wrapper { padding: 12px 10px 24px; }
  .main-title { font-size: 20px; letter-spacing: 2px; margin-bottom: 6px; }
  .sub-title { font-size: 11px; }
  .header-top { flex-direction: column; gap: 4px; justify-content: center; min-height: unset; }
  .header-center { position: static; transform: none; }
  .scientist-card { flex-direction: column; min-height: auto; }
  .card-left { width: 100%; min-width: unset; padding: 12px 12px 6px; }
  .portrait { width: 90px; height: 120px; }
  .card-right { padding: 4px 12px 12px; }
  .card-icon-wrap { top: 6px; left: 6px; }
}
