:root{
  /* Put your accent color here */
  --accent: #1155cc;

  --bg: #fbfcfd;
  --card: #ffffff;
  --text: #111;
  --muted: #555;
  --border: rgba(0,0,0,.12);
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav{
  max-width: 950px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.brand{
  font-weight: 750;
  text-decoration: none;
  color: var(--text);
  margin-right: 10px;
}
.nav a{
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 10px;
}
.nav a.active{
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, white);
}

.wrap{
  max-width: 950px;
  margin: 0 auto;
  padding: 26px 18px 60px;
}

.hero{
  padding: 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 12%, white),
    white);
}
h1{ margin: 0 0 6px; font-size: 1.9rem; }
.sub{ color: var(--muted); }

/* Yuan-style list */
ol.papers{
  list-style: none;
  padding-left: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 14px;
  justify-items: center;
}

/* Paper box: centered + longer (+10% over previous 990px -> 1089px) */
li.paperitem{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;

  width: min(1089px, 100%);
  padding: 10px 16px;
}

.paper-title{ font-weight: 750; }
.paper-authors{ margin-top: 3px; color: var(--muted); }
.paper-venue{ margin-top: 3px; color: var(--muted); }

.paper-links{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
  margin-bottom: 7px;
}

.pill{
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-size: .92rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}
.pill:hover{ background: var(--accent); color: white; }

.pill.disabled{
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

.abstract{
  margin-top: 7px;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.is-hidden{ display: none; }
