@font-face {
  font-family: "DingTalk Sans";
  src: url("assets/DingTalk-Sans.ttf") format("truetype");
  font-display: swap;
}

:root { --link: #409eff; --text: #303133; --muted: #606266; --line: #dcdfe6; --soft: #f5f7fa; --button: #444444; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #848484; border-bottom: 1px dotted currentColor; }
img { display: block; max-width: 100%; }
h1, h2 { font-family: "DingTalk Sans", Verdana, sans-serif; font-style: italic; letter-spacing: 2px; text-align: center; }

.title-section { width: min(960px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 28px; text-align: center; }
.title-section h1 { margin: 0 auto 30px; color: #000; font-size: 46px; line-height: 1.18; }
.title-section h1 > span { display: block; }
.title-section h1 small { display: block; max-width: 940px; margin: 4px auto 0; font: inherit; font-size: 34px; }
.authors, .affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; line-height: 1.5; }
.authors { font-size: 18px; }
.authors sup, .affiliations sup { margin-left: 2px; color: #606266; font-size: .67em; }
.affiliations { margin-top: 10px; font-size: 17px; }
.author-note { margin: 18px 0 16px; font-size: 14px; }
.resource-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.resource-buttons a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 0; border-radius: 999px; background: var(--button); box-shadow: 1px 1px 2px #d8d8d8; color: #fff; font-size: 16px; line-height: 1; }
.resource-buttons a:hover { border: 0; background: #5c5c5c; color: #fff; }
.button-icon { font-size: 14px; opacity: .9; }
.cover-figure { width: min(720px, 100%); margin: 0 auto; }
.cover-figure img { width: 100%; height: auto; }

.paper-section { position: relative; margin: 0 auto; padding: 31px 20px 38px; }
.paper-section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1380px, calc(100vw - 56px)); height: 1px; transform: translateX(-50%); background: var(--line); }
.paper-section.narrow { width: min(760px, 100%); }
.paper-section.wide { width: min(980px, 100%); }
.paper-section h2 { margin: 0 0 24px; color: #000; font-size: 31px; line-height: 1.25; }
.paper-section p { margin: 0 0 12px; font-size: 16px; line-height: 1.72; }
.paper-section p:last-child { margin-bottom: 0; }
.content-figure { margin: 0; }
.content-figure img { width: 100%; height: auto; }
.content-figure figcaption, .section-caption { margin-top: 18px; color: #4a4a4a; font-size: 15px; line-height: 1.6; }

.finding-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 20px; }
.finding-grid article { padding: 20px 18px; border: 1px solid #e4e7ed; border-radius: 8px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .08); text-align: center; }
.finding-grid strong { display: block; color: var(--link); font-size: 36px; line-height: 1; }
.finding-grid strong small { font-size: 16px; }
.finding-grid span { display: block; margin: 11px 0 7px; font-weight: 700; }
.finding-grid article p { color: var(--muted); font-size: 13px; line-height: 1.5; }

.resource-panel { color: #4a4a4a; }
.resource-panel > p { text-align: center; }
.checkpoint-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.checkpoint-list a { padding: 8px 14px; border: 1px solid #dcdfe6; border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.checkpoint-list a:hover { border-color: var(--link); }
.text-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 12px; font-weight: 600; }

.bibtex-card { display: block; width: 100%; margin: 0; padding: 18px 20px 14px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); color: inherit; text-align: left; cursor: pointer; }
.bibtex-card:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.copy-hint { display: block; margin-bottom: 10px; color: #909399; font: 14px Arial, sans-serif; text-align: center; }
.bibtex-card pre { overflow-x: auto; margin: 0; padding: 10px; border-radius: 5px; background: var(--soft); color: #000; font: 15px/1.45 Consolas, "Courier New", monospace; white-space: pre; }

footer { padding: 20px; background: #ebebeb; text-align: center; }
footer p { margin: 0; font-size: 14px; line-height: 1.65; }
.back-to-top { position: fixed; right: 40px; bottom: 80px; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #ebeef5; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .12); color: var(--link); font-size: 22px; }
.back-to-top:hover { border-bottom: 1px solid #ebeef5; color: #848484; }

@media (max-width: 760px) {
  .title-section { padding-top: 38px; }
  .title-section h1 { font-size: 35px; }
  .title-section h1 small { margin-top: 8px; font-size: 24px; }
  .authors { gap: 6px 13px; font-size: 16px; }
  .affiliations { gap: 5px 12px; font-size: 15px; }
  .paper-section h2 { font-size: 27px; }
  .finding-grid { grid-template-columns: repeat(2, 1fr); }
  .back-to-top { right: 18px; bottom: 24px; }
}

@media (max-width: 480px) {
  .title-section { width: calc(100% - 28px); }
  .title-section h1 { font-size: 30px; letter-spacing: 1px; }
  .title-section h1 small { font-size: 20px; }
  .resource-buttons a { font-size: 14px; }
  .paper-section { padding-inline: 16px; }
  .paper-section::before { width: calc(100vw - 28px); }
  .paper-section p { font-size: 15px; }
  .finding-grid { grid-template-columns: 1fr; }
  .bibtex-card { padding-inline: 10px; }
  .bibtex-card pre { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
