/* ============================
   Paper Homepage (EffiEval-style)
   Author: generated template
   ============================ */

:root{
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #5b6cff;
  --primary-2: #6d5efc;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

*{ box-sizing: border-box; }
html, body{
  padding: 0;
  margin: 0;
}
body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
               "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

.container{
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
}

.hero .container{
  width: min(1400px, calc(100% - 48px));
}

.hero{
  background:
    radial-gradient(1200px 500px at 50% 0%, rgba(91,108,255,0.12), rgba(109,94,252,0.06) 45%, rgba(246,247,251,1) 75%),
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 65%);
  padding: 72px 0 28px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.hero-inner{
  text-align: center;
}

.hero h1{
  margin: 0 auto 14px;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero .authors{
  margin: 0 auto 6px;
  color: var(--muted);
  font-size: 16px;
}

.hero .affiliations{
  margin: 0 auto 22px;
  color: rgba(107,114,128,0.9);
  font-size: 14px;
}

.badges{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 12px 18px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px rgba(91,108,255,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover{
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(91,108,255,0.22);
}
.btn .icon{
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.main{
  padding: 24px 0 72px;
}

.section{
  margin-top: 44px;
}

.section-title{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-title::after{
  content: "";
  height: 1px;
  background: rgba(229,231,235,0.95);
  flex: 1;
  margin-left: 14px;
}

.callout{
  background: var(--panel);
  border-radius: 14px;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}

.callout ul{
  margin: 0;
  padding-left: 18px;
}
.callout li{
  margin: 10px 0;
  color: rgba(17,24,39,0.92);
}
.callout strong{
  color: var(--text);
}

.content h2{
  margin: 40px 0 12px;
  font-size: 26px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(229,231,235,0.95);
  padding-bottom: 10px;
}

.content h3{
  margin: 26px 0 10px;
  font-size: 16px;
}

.content p{
  margin: 10px 0;
  color: rgba(17,24,39,0.92);
}

.figure{
  margin: 18px 0 26px;
  background: var(--panel);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.figure img{
  display: block;
  width: 100%;
  height: auto;
}

.figure figcaption{
  padding: 12px 14px;
  color: rgba(107,114,128,0.95);
  font-size: 14px;
  border-top: 1px solid rgba(229,231,235,0.9);
}

.kv{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 860px){
  .kv{
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

pre{
  margin: 0;
  padding: 14px 16px;
  background: #0b1020;
  color: #e5e7eb;
  overflow: auto;
  font-size: 13px;
  line-height: 1.55;
}

.code-card{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow);
  background: #0b1020;
}

.code-toolbar{
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-toolbar .label{
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 650;
}

.copy-btn{
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 650;
  font-size: 12px;
}
.copy-btn:hover{ background: rgba(255,255,255,0.10); }
.copy-btn:active{ transform: translateY(1px); }

.footer{
  margin-top: 56px;
  padding: 22px 0 40px;
  border-top: 1px solid rgba(229,231,235,0.9);
  color: rgba(107,114,128,0.95);
  font-size: 13px;
  text-align: center;
}

.small-note{
  font-size: 13px;
  color: rgba(107,114,128,0.95);
}
