/* haiyangtu.com
   字体都在本站（public/fonts，构建时只裁出用到的字），不引用外部资源，国内网络也能很快打开。 */

@font-face { font-family: "HT Garamond"; src: url(/fonts/garamond-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HT Garamond"; src: url(/fonts/garamond-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "HT Garamond"; src: url(/fonts/garamond-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "HT Garamond"; src: url(/fonts/garamond-600.woff2) format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "HT Garamond"; src: url(/fonts/garamond-600i.woff2) format("woff2"); font-weight: 600 700; font-style: italic; font-display: swap; }
@font-face { font-family: "HT Song"; src: url(/fonts/notoserif-400.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "HT Song"; src: url(/fonts/notoserif-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --ink: #23262b;
  --muted: #5d6168;
  --faint: #8b8f95;
  --rule: #e2e0db;
  --paper: #f1f0ec;
  --sheet: #ffffff;
  --accent: #284b78;
  --accent-deep: #1b2b42;
  --serif: "HT Garamond", "EB Garamond", Garamond, "Times New Roman", "HT Song", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 18.5px/1.6 var(--serif);
  font-variant-numeric: oldstyle-nums proportional-nums;
  /* 很淡的纸面纹理，内联 SVG，不另外下载 */
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.43  0 0 0 0 0.4  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
.lang-zh body, body.lang-zh { font-size: 16.5px; line-height: 1.9; font-variant-numeric: lining-nums; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* 白色纸张 */
.sheet {
  max-width: 940px;
  margin: 72px auto;
  padding: 92px 92px 40px;
  background: var(--sheet);
  border: 1px solid #e6e4df;
  box-shadow: 0 1px 2px rgba(40, 35, 25, .03);
}

/* 名字与导航 */
.masthead { text-align: center; margin-bottom: 64px; }
.name {
  display: inline-block;
  color: var(--ink);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding-left: .26em;               /* 抵消末字母后的字距，让名字真正居中 */
  margin-bottom: 40px;
}
.lang-zh .name { font-weight: 600; font-size: 30px; letter-spacing: .6em; padding-left: .6em; }
.name:hover { text-decoration: none; }
nav { display: flex; align-items: center; justify-content: center; gap: 34px; }
nav::before, nav::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
nav a {
  font-size: 13.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); padding: 2px 0 4px; border-bottom: 1px solid transparent;
}
.lang-zh nav a { font-size: 15px; letter-spacing: .3em; }
nav a:hover { text-decoration: none; border-bottom-color: var(--rule); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
nav a.switch { letter-spacing: .12em; }
.lang-en nav a.switch { letter-spacing: .3em; font-size: 14.5px; }
.lang-zh nav a.switch { letter-spacing: .2em; font-size: 13.5px; }

/* 首页：照片 + 压在照片上的深色简介 */
.hero { display: grid; grid-template-columns: 340px 1fr; align-items: center; margin: 0 8px; }
.photo { grid-row: 1; grid-column: 1; aspect-ratio: 3 / 4; overflow: hidden; background: #e9e6df; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #ece9e2, #dedad1);
  outline: 1px solid rgba(255, 255, 255, .6); outline-offset: -14px;
}
.photo.empty span { font-size: 64px; font-weight: 500; letter-spacing: .12em; color: rgba(40, 60, 90, .22); }
.lang-zh .photo.empty span { font-weight: 600; letter-spacing: 0; }
.panel {
  grid-row: 1; grid-column: 2;
  margin-left: -64px; position: relative;
  background: var(--accent-deep); color: #f3f0e8;
  padding: 40px 44px 38px;
  font-size: 17.5px; line-height: 1.62;
}
.lang-zh .panel { font-size: 15.5px; line-height: 1.95; text-align: justify; }
.panel p { margin: 0; }
.panel p + p { margin-top: 1em; }

.contact { text-align: center; margin: 44px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.lang-zh .contact { font-size: 15px; }
.contact .addr { font-size: 15.5px; color: var(--faint); }
.lang-zh .contact .addr { font-size: 14px; }
.dot { margin: 0 .7em; color: var(--faint); }

/* 论文列表 */
.papers { margin: 64px 8px 0; }
main > .papers:first-child { margin-top: 0; }
h2 {
  font-size: 15px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  margin: 0 0 22px; color: var(--ink);
}
.lang-zh h2 { font-size: 16px; font-weight: 600; letter-spacing: .3em; }
.paper { margin: 0 0 26px; }
.paper p { margin: 0; }
.head { line-height: 1.5; }
.lang-zh .head { line-height: 1.7; }
.ptitle { font-weight: 600; color: var(--accent); }
.ptitle a { color: inherit; }
.with { color: var(--ink); }
.alt { color: var(--muted); font-size: .9em; line-height: 1.45; margin-top: 3px !important; }
.lang-en .alt { font-size: 16px; }
.paper ul { margin: 7px 0 0; padding-left: 1.55em; }
.paper li { margin: 3px 0; line-height: 1.5; font-size: .96em; }
.paper li::marker { color: var(--faint); font-size: .85em; }
.journal { font-weight: 600; }
.lang-en .journal { font-style: italic; }
.note { font-style: italic; color: var(--muted); }
.lang-zh .note { font-style: normal; }

li.abs { list-style: none; margin-left: -1.55em; }
details > summary {
  display: inline-block; cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); padding: 2px 0;
}
.lang-zh details > summary { font-size: 14px; letter-spacing: .2em; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 8px;
  border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .15s;
}
details[open] > summary::after { transform: translateY(0) rotate(-135deg); }
details > p {
  margin: 8px 0 4px !important; padding-left: 16px; border-left: 2px solid var(--rule);
  color: #3a3e44; text-align: justify; hyphens: auto;
}

/* 页脚 */
footer { margin-top: 84px; padding-top: 28px; border-top: 1px solid var(--rule); text-align: center; }
footer p { margin: 0; }
.school { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.lang-zh .school { font-size: 14px; letter-spacing: .3em; }
.updated { margin-top: 6px !important; font-size: 13.5px; color: var(--faint); font-style: italic; }
.lang-zh .updated { font-style: normal; font-size: 12.5px; }
.notfound { text-align: center; }

/* 窄屏 */
@media (max-width: 900px) {
  .sheet { margin: 0; border: 0; padding: 56px 28px 32px; min-height: 100vh; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .name { font-size: 24px; letter-spacing: .2em; padding-left: .2em; margin-bottom: 28px; }
  .lang-zh .name { font-size: 26px; }
  .masthead { margin-bottom: 40px; }
  nav { gap: 20px; }
  nav::before, nav::after { display: none; }
  nav a { font-size: 12.5px; letter-spacing: .14em; }
  .lang-zh nav a { font-size: 14px; letter-spacing: .15em; }
  .hero { display: block; margin: 0; }
  .photo { width: 74%; }
  .panel { margin: -56px 0 0 14%; padding: 26px 24px; font-size: 16px; }
  .lang-zh .panel { font-size: 14.5px; }
  .papers { margin: 48px 0 0; }
  .contact { font-size: 15.5px; }
  details > p { text-align: left; }
}
@media print {
  body { background: none; }
  .sheet { border: 0; margin: 0; padding: 0; }
  nav, details > summary { display: none; }
  details > p { display: block; }
}
