/* =========================
   Global Reset & Base
   ========================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* =========================
   Background + Stars + Meteor
   ========================= */

/* 主背景渐变 */
body {
  background: radial-gradient(circle at 20% 15%, #ffffff 0%, #f3f5ff 40%, #e3ebff 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               system-ui, -system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* 柔光星斑 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 0, rgba(255,255,255,0) 60px),
    radial-gradient(circle, rgba(255,255,255,0.6) 0, rgba(255,255,255,0) 45px),
    radial-gradient(circle, rgba(255,255,255,0.7) 0, rgba(255,255,255,0) 50px);
  background-repeat: no-repeat;
  background-position:
    12% 18%,
    80% 12%,
    88% 76%;
  opacity: 0.45;
  z-index: 0;
}

/* ===== 流星运动层 ===== */
.meteor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* 每条流星线条（可多条） */
.line {
  position: fixed;
  width: 220px;
  height: 3px;
  border-radius: 3px;
  background-image: linear-gradient(to right, var(--color), #ffffff80, transparent);
  top: var(--top);
  left: var(--left);
  transform: rotate(-45deg);
  pointer-events: none;
  opacity: 0;
  animation: shoot 2.4s linear infinite;
  animation-delay: var(--delay);
  z-index: 0; /* 卡片 z-index:1，流星在背景层 */
}

@keyframes shoot {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-45deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-420px, 420px) rotate(-45deg);
  }
}

/* =========================
   Layout Containers
   ========================= */

.main-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 30px auto 60px auto;
}

/* 卡片容器 */
.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1; /* 保证浮在流星之上 */
}

/* =========================
   Typography Elements
   ========================= */

name {
  font-size: 30px;
  font-weight: 700;
}

heading {
  font-size: 22px;
  font-weight: 650;
}

subheading {
  font-size: 18px;
  font-weight: 600;
}

papertitle {
  font-size: 17px;
  font-weight: 600;
}

p1 {
  display: block;
  margin: 6px 0;
}

/* 高亮文本 */
.highlight {
  background: #fff5a8;
  padding: 0 2px;
  border-radius: 3px;
}

/* =========================
   Links
   ========================= */

a {
  color: #1769ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   Pills (兴趣标签)
   ========================= */

.pill-row {
  text-align: center;
  margin-top: 8px;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  margin: 3px 4px;
  border-radius: 999px;
  font-size: 12px;
  background: #f3f4ff;
  border: 1px solid #d7dcff;
  white-space: nowrap;
}

/* =========================
   Lists for News / Honors
   ========================= */

.news-list,
.honor-list,
.service-list {
  font-size: 16px;
  line-height: 1.7;
  margin: 10px 0 0 0;
  padding-left: 0;
  list-style: none;
}

.news-list li::before {
  content: "🟣";
  margin-right: 6px;
}

.honor-list li::before {
  content: "🏅";
  margin-right: 6px;
}

.service-list li::before {
  content: "📝";
  margin-right: 6px;
}

.news-time {
  font-size: 12px;
  opacity: 0.7;
  margin-left: 4px;
}

/* Badge 标签：Oral / Accepted / Under Review / Poster / Spotlight / Highlight */
.tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-left: 4px;
}

/* ===== 已有 ===== */
.tag-oral {
  background: #fff4f0;
  border-color: #ffb39b;
}

.tag-under-review {
  background: #fff8e1;
  border-color: #ffe08a;
}

.tag-accepted {
  background: #e6ffed;
  border-color: #a5e7b8;
}

/* ===== 新增 ===== */

/* Poster（中性灰蓝） */
.tag-poster {
  background: #f2f4f7;
  border-color: #cfd8e3;
}

/* Spotlight（偏紫，强调但不如 oral 强） */
.tag-spotlight {
  background: #f5f0ff;
  border-color: #cbb3ff;
}

/* Highlight（偏蓝，次强强调） */
.tag-highlight {
  background: #eef6ff;
  border-color: #b3d4ff;
}

.conf-line {
  font-size: 14px;
  opacity: 0.85;
}

/* =========================
   Education / Experience
   ========================= */

.edu-inst {
  font-weight: 600;
}

.edu-time {
  opacity: 0.85;
}

.exp-role {
  font-weight: 600;
}

.exp-loc,
.exp-time {
  opacity: 0.9;
  font-size: 14px;
}

/* =========================
   Images
   ========================= */

.paper-thumb {
  width: 100%;
  border-radius: 12px;
}

.profile-photo {
  width: 100%;
  max-width: 210px;
  border-radius: 50%;
  border: 3px solid #f0f0f0;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 720px) {
  .main-wrapper {
    margin-top: 16px;
    padding: 0 10px;
  }

  .card {
    border-radius: 12px;
  }

  .header-table,
  .header-table tr,
  .header-table td {
    display: block;
    width: 100% !important;
  }

  .profile-photo {
    max-width: 160px;
    margin: 10px auto 0 auto;
  }
}
