/* ============================================================
   龚俊杰 · 个人主页
   字体与简历保持一致：标题楷体 / 正文宋体 / 西文与数字 Times New Roman
   ============================================================ */

:root {
  --font-kai: "KaiTi", "楷体", "Kaiti SC", "STKaiti", "BiauKai", serif;
  --font-song: "SimSun", "宋体", "Songti SC", "STSong", "NSimSun", serif;
  --font-num: "Times New Roman", "SimSun", "宋体", "Songti SC", serif;
  --font-ui: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;

  --c-brand: #1f5fa9;
  --c-brand-light: #2f7cc4;
  --c-link: #0070c0;
  --c-text: #333333;
  --c-text-2: #666666;
  --c-text-3: #8a8f96;
  --c-line: #e6e8eb;
  --c-line-soft: #f0f1f3;
  --c-bg: #f2f3f5;
  --c-card: #ffffff;
  --c-chip-bg: #edf3fb;
  --c-chip-border: #d3e2f4;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-song);
  font-size: 15px;
  line-height: 1.8;
}

a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; }

/* ------------------------------ 顶部横幅 ------------------------------ */

.banner {
  position: relative;
  height: 132px;
  background:
    radial-gradient(1200px 220px at 88% -40%, rgba(255,255,255,.20), rgba(255,255,255,0) 60%),
    linear-gradient(118deg, #14416f 0%, #1d5a97 42%, #2c73b6 78%, #3d8ac9 100%);
  overflow: hidden;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 1px, rgba(255,255,255,0) 1px 16px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 1px, rgba(255,255,255,0) 1px 22px);
  pointer-events: none;
}

.banner-inner {
  position: relative;
  z-index: 2;
  height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 34px 26px;
}

.banner-title {
  font-family: var(--font-ui);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.banner-sub {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .82);
  text-align: right;
  line-height: 1.7;
}

/* ------------------------------ 个人信息卡 ------------------------------ */

.card {
  background: var(--c-card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
  border-radius: 2px;
  margin-bottom: 22px;
  overflow: hidden;
}

.profile {
  display: flex;
  gap: 28px;
  padding: 28px 34px 26px;
}

.photo-box { flex: 0 0 auto; }

.photo {
  width: 118px;
  height: 164px;
  object-fit: cover;
  display: block;
  background: #eef0f2;
  border: 1px solid #e2e4e7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}

.profile-main { flex: 1 1 auto; min-width: 0; }

.name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 8px;
}

.name {
  font-family: var(--font-kai);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #14375e;
  letter-spacing: 2px;
}

.name-en {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--c-text-3);
  letter-spacing: .5px;
}

.chip {
  display: inline-block;
  padding: 2px 9px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 20px;
  color: #3a6fb0;
  background: var(--c-chip-bg);
  border: 1px solid var(--c-chip-border);
  border-radius: 2px;
}

.status {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--c-brand);
  letter-spacing: 1px;
  white-space: nowrap;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  font-size: 14px;
  color: #4a4f56;
  margin-bottom: 14px;
}
.meta-line span { white-space: nowrap; }
.meta-line .sep { color: #d0d3d7; }
.meta-line .label { color: var(--c-text-3); }

.rule {
  height: 1px;
  background: var(--c-line);
  margin: 0 0 16px;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 30px;
}

.contact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: #454a51;
  line-height: 1.6;
}

.contact svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  fill: none;
  stroke: var(--c-brand-light);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact .k { color: var(--c-text-3); margin-right: 6px; white-space: nowrap; }
.contact .v { word-break: break-all; }

.discipline {
  margin-top: 14px;
  font-size: 13.5px;
  color: #454a51;
}
.discipline .k { color: var(--c-text-3); margin-right: 6px; }

/* ------------------------------ 标签导航 ------------------------------ */

.tabs-bar {
  background: #f7f8fa;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  flex: 0 0 auto;
  padding: 13px 24px;
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: #464b52;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .15s;
  white-space: nowrap;
}
.tab:hover { color: var(--c-brand); }
.tab.active { color: var(--c-brand); font-weight: 700; }
.tab.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 3px;
  background: var(--c-brand);
}

/* ------------------------------ 内容区 ------------------------------ */

.panel { padding: 26px 34px 40px; }
.panel[hidden] { display: none; }

.sec-title {
  font-family: var(--font-kai);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-link);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line-soft);
  letter-spacing: 1px;
}

.sub-title {
  font-family: var(--font-kai);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--c-link);
  margin: 24px 0 6px;
  letter-spacing: .5px;
}
.sub-title:first-child { margin-top: 0; }

.group-title {
  font-family: var(--font-kai);
  font-size: 14.5px;
  color: #2b4a6b;
  margin: 14px 0 4px;
}

.para {
  margin: 0 0 8px;
  text-indent: 2em;
  line-height: 2.05;
  color: #333;
  text-align: justify;
}

.note {
  color: #555;
  line-height: 2;
  margin: 0 0 10px;
  text-indent: 2em;
  text-align: justify;
}

/* 教育 / 工作经历 */
.timeline { display: flex; flex-direction: column; }

.tl-row {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed var(--c-line);
}
.tl-row:last-child { border-bottom: 0; }

.tl-period {
  font-family: var(--font-num);
  font-size: 14px;
  color: #6c727a;
  letter-spacing: .2px;
}

.tl-main { font-size: 15px; color: #2c2f33; }
.tl-main .org { font-weight: 700; }
.tl-main .muted { color: var(--c-text-2); }
.tl-main .tag-sup { color: var(--c-text-3); font-size: 13.5px; }

.tl-side {
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--c-brand);
  background: #f2f7fd;
  border: 1px solid #dde9f7;
  border-radius: 2px;
  padding: 1px 9px;
  white-space: nowrap;
}

/* 列表样式（项目、荣誉、成果） */
.list { margin: 6px 0 0; padding: 0; list-style: none; }

.list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 9px;
  line-height: 1.95;
  color: #333;
  text-align: justify;
}
.list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .82em;
  width: 4px;
  height: 4px;
  background: #9fb6cd;
  border-radius: 50%;
}

.role-host { color: var(--c-brand); font-weight: 700; }

/* 论文 / 专利：文献著录用 Times New Roman，序号悬挂缩进 */
.bib { counter-reset: bib; margin: 6px 0 0; padding: 0; list-style: none; }

.bib li {
  counter-increment: bib;
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-family: var(--font-num);
  font-size: 14px;
  line-height: 1.85;
  color: #2f3236;
  text-align: justify;
}
.bib li::before {
  content: "[" counter(bib) "]";
  position: absolute;
  left: 0;
  top: 0;
  color: #8fa6bd;
  font-size: 13px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px 18px;
  margin: 6px 0 4px;
  padding: 0;
  list-style: none;
}

.direction-grid li {
  position: relative;
  padding: 9px 14px 9px 34px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 2px;
  font-size: 14px;
  color: #2f3236;
  line-height: 1.6;
}
.direction-grid li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border: 2px solid var(--c-brand-light);
  border-radius: 50%;
}

.contact-line {
  margin-top: 18px;
  padding: 14px 16px;
  background: #f7fafd;
  border-left: 3px solid var(--c-brand-light);
  font-size: 14px;
  color: #3c4147;
  line-height: 1.9;
}

.empty { color: var(--c-text-3); font-size: 14px; }

/* ------------------------------ 页脚 ------------------------------ */

.footer {
  padding: 22px 34px 34px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: #8b9198;
  line-height: 2;
}
.footer a { color: #8b9198; }
.footer a:hover { color: var(--c-brand); }

.edit-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: #fff;
  background: var(--c-brand);
  border-radius: 24px;
  box-shadow: 0 4px 14px rgba(31, 95, 169, .32);
}
.edit-fab:hover { background: #1a4f8f; text-decoration: none; }

/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 860px) {
  .banner { height: 104px; }
  .banner-inner { height: 104px; padding: 0 18px 18px; }
  .banner-title { font-size: 20px; letter-spacing: 2px; }
  .banner-sub { display: none; }

  .profile { flex-direction: column; gap: 16px; padding: 22px 18px 20px; }
  .photo { width: 96px; height: 134px; }
  .name { font-size: 25px; }
  .status { margin-left: 0; }
  .contacts { grid-template-columns: 1fr; gap: 8px; }
  .tab { padding: 12px 16px; font-size: 14px; }

  .tabs-bar { position: relative; }
  .tabs-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 100%;
    background: linear-gradient(90deg, rgba(247,248,250,0), #f7f8fa 82%);
    pointer-events: none;
  }

  .meta-line { gap: 2px 10px; }
  .meta-line .sep { display: none; }
  .panel { padding: 20px 18px 30px; }
  .tl-row { grid-template-columns: 1fr; gap: 2px; }
  .tl-side { justify-self: start; }
  .footer { padding: 18px; }
}

@media print {
  body { background: #fff; }
  .tabs-bar, .edit-fab, .banner::after { display: none; }
  .card { box-shadow: none; }
  .panel[hidden] { display: block !important; }
}
