/* DC-SAE project page — dark theme adapted from the DAGroup-PKU PhysisForcing page. */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
  font-weight: 300 700;
  src: url('../fonts/roboto.woff2') format('woff2');
}
@font-face { font-family: 'Caveat'; src: url('../fonts/Caveat-Medium.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Alegreya'; src: url('../fonts/Alegreya-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  --bg: #06070a;
  --text: #ffffff;
  --text-soft: #e8eaf0;
  --muted: #aab2c0;
  --muted-2: #8a96b3;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.14);
  --accent: #6692f1;
  --accent-strong: #2f6df6;
  --accent-light: #6cb6ff;
  --good: #52e0a3;
  --line: #2a2f3d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Roboto', -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
}

a { color: var(--accent-light); }
a:hover { color: #9cc9ff; }

img { max-width: 100%; }

/* faint fixed backdrop of generated samples (plays the role of PhysisForcing's background video) */
#backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../images/12pic.jpg') center / cover no-repeat;
  opacity: 0.16;
  filter: brightness(0.5) blur(1px);
}

.wrap {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}

section.block { margin-top: 90px; }

/* ===================== intro ===================== */
#intro {
  padding: 56px 0 20px;
  text-align: center;
}

.title-art {
  font-family: 'Caveat', cursive;
  font-size: 5rem;
  line-height: 1.1;
  margin: 10px 0 6px;
  font-weight: 500;
  background: linear-gradient(90deg, #dc2626, #ffffff, #6692f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding: 0 0.1em;                    /* keep the script glyph tails from being clipped */
}

.subtitle-line {
  font-size: 1.7rem;
  font-weight: 400;
  color: #cfd6e4;
  margin: 4px auto 30px;
  max-width: 1000px;
}

.authors {
  font-size: 20px;
  font-weight: 500;
  margin: 0 auto 18px;
  max-width: 1000px;
}
.author-block { display: inline-block; margin: 2px 10px; }
.author-block a { color: #fff; text-decoration: none; transition: color .3s ease; }
.author-block a:hover { color: var(--accent); }
.author-block sup { font-size: .65em; margin-left: 1px; }

.affiliations {
  font-family: 'Times New Roman', serif;
  font-size: 22px;
  margin: 0 auto 34px;
}
.affiliations p { margin: 0; }
.affiliations .notes { font-size: 17px; color: #cfd6e4; margin-top: 6px; font-family: 'Roboto', sans-serif; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #ccc;
  color: #000;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color .4s;
}
.button:hover { background-color: #fff; color: #000; }
.button.disabled { opacity: .55; cursor: default; }
.button.disabled:hover { background-color: #ccc; }
.button .emoji { font-size: 18px; line-height: 1; }

/* ===================== video ===================== */
.video-title {
  font-family: 'Alegreya', serif;
  font-size: 1.6em;
  text-align: center;
  margin: 56px 0 22px;
}
.video-frame {
  width: min(90vw, 1000px);
  margin: 0 auto;
  border: 4px solid #ffffff44;
  border-radius: 2vmin;
  padding: 8px;
  background: #1c1c1c;
  box-shadow: 0 0 10px rgba(255, 255, 255, .1);
}
.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.5vmin;
  background: #000;
}

/* ===================== section headings ===================== */
.section-head { font-size: 2rem; font-weight: 700; margin: 0 0 14px; text-align: left; }
.section-sub { color: var(--muted); max-width: 1000px; margin: 0 0 28px; line-height: 1.65; font-size: 1.05rem; }
.section-sub b { color: #fff; }

.abstract p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-soft);
  text-align: justify;
  margin: 0 0 1.1rem;
}
.hl { color: var(--accent-light); font-weight: 700; }

/* ===================== figures ===================== */
.figure-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 0 24px rgba(255, 255, 255, .06);
}
.figure-card img { display: block; width: 100%; height: auto; }
.figure-card.dark { background: transparent; padding: 0; box-shadow: none; }
.figure-card.dark img { border-radius: 12px; border: 1px solid var(--card-border); }
figcaption, .caption {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
  margin-top: 12px;
  text-align: center;
}

/* ===================== highlight cards ===================== */
.hl-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.hl-card {
  flex: 1 1 230px;
  max-width: 290px;
  display: block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 20px 26px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .45);
  border-color: rgba(102, 146, 241, .6);
  color: inherit;
}
.hl-view { font-size: .78rem; color: #7b87a3; text-align: right; }
.hl-name { font-size: 1.3rem; font-weight: 700; margin: 2px 0 16px; line-height: 1.2; }
.hl-name span { display: block; font-weight: 500; color: #9aa6c0; font-size: .82rem; margin-top: 3px; }
.hl-label { font-size: .74rem; letter-spacing: .12em; color: var(--muted-2); font-weight: 600; text-transform: uppercase; }
.hl-perf { font-size: 2.6rem; font-weight: 800; color: var(--accent-light); margin: 6px 0 14px; line-height: 1; }
.hl-divider { height: 1px; background: rgba(255, 255, 255, .12); margin: 0 8px 14px; }
.hl-badge {
  display: inline-block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 0;
  border-radius: 10px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--good);
  background: rgba(82, 224, 163, .13);
  border: 1px solid rgba(82, 224, 163, .32);
}

.why-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.why-card {
  flex: 1 1 300px;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px 28px;
  backdrop-filter: blur(6px);
  transition: transform .18s ease, box-shadow .18s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0, 0, 0, .45); }
.why-card .icon { font-size: 1.8rem; color: var(--accent); margin-bottom: 12px; }
.why-card h4 { font-size: 1.35rem; font-weight: 700; margin: 0 0 12px; }
.why-card p { font-size: 1.04rem; line-height: 1.7; color: #b6bdca; margin: 0; }
.k { font-weight: 700; color: var(--accent-light); }

/* ===================== two-column blocks ===================== */
.cols { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; align-items: stretch; }
.col-card {
  flex: 1 1 380px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px 28px;
}
.col-card h4 { font-size: 1.3rem; margin: 0 0 12px; }
.col-card h4 .icon { color: var(--accent); margin-right: 8px; }
.col-card p { color: #b6bdca; line-height: 1.7; margin: 0 0 12px; font-size: 1.02rem; }
.col-card p:last-child { margin-bottom: 0; }
.col-card b { color: #fff; }

/* ===================== bar charts ===================== */
.bar-cards { display: flex; flex-wrap: wrap; gap: 22px; }
.bar-card {
  flex: 1 1 360px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 18px 22px 20px;
}
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.bar-head .t { font-size: 1.05rem; font-weight: 700; }
.bar-head .big { font-size: 1.5rem; font-weight: 800; color: var(--accent-light); white-space: nowrap; }
.bar-sub { color: var(--muted-2); font-size: .85rem; margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 70px 1fr 64px; align-items: center; gap: 12px; margin: 8px 0; }
.bar-label { font-size: .92rem; color: #cfd6e4; }
.bar-label.ours { color: var(--accent-light); font-weight: 700; }
.bar-track { height: 22px; background: rgba(255, 255, 255, .07); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; width: calc(var(--value) / var(--scale) * 100%); border-radius: 6px; }
.bar-fill.ours { background: linear-gradient(90deg, var(--accent-strong), var(--accent-light)); box-shadow: 0 0 14px rgba(47, 109, 246, .45); }
.bar-fill.base { background: #4a5566; }
.bar-value { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }

/* ===================== tables ===================== */
.table-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 10px 20px 18px;
  margin-top: 22px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.tbl-title { font-size: 1.1rem; font-weight: 700; margin: 10px 0 12px; }
.tbl-title small { display: block; font-weight: 400; color: var(--muted-2); font-size: .85rem; margin-top: 3px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.res-table { width: 100%; border-collapse: collapse; font-size: 15px; white-space: nowrap; }
.res-table th, .res-table td { text-align: center; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.res-table th:first-child, .res-table td:first-child, .res-table .l { text-align: left; }
.res-table thead th { font-weight: 700; border-bottom: 2px solid #666; background: rgba(255, 255, 255, .05); }
.res-table td small { color: var(--muted); font-weight: 400; }
.res-table .ours { background-color: rgba(47, 109, 246, .22); font-weight: 700; }
.res-table .ours td small { color: #cfe0ff; }
.res-table .group td { color: var(--muted-2); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; border-top: 2px solid #4a5566; text-align: left; }
.res-table .best { color: var(--good); }
.table-note { color: var(--muted); font-size: .92rem; text-align: center; margin-top: 12px; }

/* ===================== bibtex / footer ===================== */
.bibtex-section { background-color: #111; padding: 40px 20px; margin-top: 90px; text-align: center; color: #ccc; }
.bibtex-head { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 18px; }
.bibtex-head h3 { font-size: 24px; font-weight: 400; margin: 0; color: #ccc; }
.copy-btn {
  background: #222; color: #ddd; border: 1px solid #444b5c; border-radius: 8px;
  padding: 6px 12px; font-size: 14px; cursor: pointer; transition: background .25s;
}
.copy-btn:hover { background: #2a2f3d; }
.bibtex-code {
  display: inline-block;
  max-width: 820px;
  width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  border-radius: 10px;
  background-color: #222;
  color: #ddd;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  text-align: left;
}

footer { text-align: center; color: #7b87a3; font-size: .9rem; padding: 28px 20px 40px; }
footer a { color: #9aa6c0; }

/* ===================== responsive ===================== */
@media (max-width: 768px) {
  .title-art { font-size: 3.6rem; }
  .subtitle-line { font-size: 1.25rem; }
  .authors { font-size: 17px; }
  .affiliations { font-size: 18px; }
  section.block { margin-top: 64px; }
  .section-head { font-size: 1.6rem; }
  .hl-perf { font-size: 2.1rem; }
  .bar-row { grid-template-columns: 60px 1fr 56px; gap: 8px; }
  .abstract p { text-align: left; }          /* justified text leaves big word gaps on phones */
  .video-title { font-size: 1.3em; }
}
