/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: 'Inter', sans-serif;
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-2: #555;
  --border: #e0e0e0;
  --surface: #f7f7f7;
  --accent: #2563eb;
  --accent-bg: #eff6ff;
  --radius: 8px;
  --shadow: 0 1px 4px rgba(0,0,0,.07);
  --tag-conf: #1d4ed8;
  --tag-conf-bg: #dbeafe;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Layout ===== */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

section { margin-bottom: 52px; }

/* ===== Header ===== */
.page-header {
  text-align: center;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  color: var(--tag-conf);
  background: var(--tag-conf-bg);
  margin-bottom: 20px;
}

.page-title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.authors {
  font-size: .95rem;
  color: var(--text-2);
  margin-bottom: 6px;
  line-height: 1.8;
}
.authors .me { color: var(--text); font-weight: 500; }
.authors sup { font-size: .7em; }

.affiliations {
  font-size: .82rem;
  color: var(--text-2);
  margin-bottom: 24px;
}

.link-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: all .18s;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
  text-decoration: none;
}

/* ===== Sections ===== */
.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

p { margin-bottom: 14px; color: var(--text-2); }
p:last-child { margin-bottom: 0; }

/* ===== Abstract ===== */
.abstract-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1px solid var(--border);
}
.abstract-box p { margin-bottom: 0; font-size: .95rem; }

/* ===== Highlights ===== */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
}
.highlight-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}
.highlight-label {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* ===== Figures ===== */
.fig-wrap {
  margin: 20px 0;
  text-align: center;
}
.fig-wrap img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.fig-placeholder {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: .85rem;
  font-style: italic;
}
.fig-caption {
  font-size: .82rem;
  color: var(--text-2);
  margin-top: 10px;
  line-height: 1.5;
  text-align: left;
}

/* ===== Method steps ===== */
.steps { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.step-body { font-size: .93rem; color: var(--text-2); }
.step-body strong { color: var(--text); }

/* ===== BibTeX ===== */
.bibtex {
  background: #1e1e2e;
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
}
.bibtex pre {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: .8rem;
  color: #cdd6f4;
  line-height: 1.6;
  white-space: pre;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 60px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-2);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .page-title { font-size: 1.4rem; }
  .highlights { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
