/* ======================================================
   GLOBAL SETTINGS
====================================================== */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* 给正文一个左右留白（像论文官网） */
section, h2, p, pre {
  margin-left: 40px;
  margin-right: 40px;
}

/* ======================================================
   HERO SECTION
====================================================== */
.hero {
  position: relative;
  height: 360px;

  /* 背景图 + 半透明遮罩 */
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("../images/background.jpg");

  background-size: cover;
  background-position: center;
  color: white;
}

/* ======================================================
   NAVIGATION BAR
====================================================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
}

/* 顶部菜单 */
.menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
}

.menu a:hover {
  text-decoration: underline;
}

/* ======================================================
   HERO CENTER TEXT
====================================================== */
.hero-text {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-text h1 {
  font-size: 46px;
  margin: 0;
}

.hero-text p {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.9;
}

/* ======================================================
   SECTION LEAD TEXT
====================================================== */
.section-lead {
  color: #555;
  margin-bottom: 40px;
}

/* ======================================================
   ANNOTATION DEMO ROWS (alternating left/right)
====================================================== */
.anno-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 56px 40px;
}

.anno-row.reverse {
  direction: rtl;
}

.anno-row.reverse > * {
  direction: ltr;
}

/* Video side */
.anno-media video {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: #111;
}

/* Caption demo: video + quote bubble below */
.caption-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.caption-bubble {
  background: #f0f4ff;
  border-left: 3px solid #6366f1;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
  color: #333;
  font-style: italic;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 72px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c7d2fe #f0f4ff;
}
.caption-bubble p {
  margin: 0;
}

/* Text side */
.anno-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anno-text h3 {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
}

.anno-text p {
  margin: 0;
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}

/* Colored labels */
.anno-label {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
}

.label-bbox     { background: #dbeafe; color: #1d4ed8; }
.label-pose     { background: #dcfce7; color: #15803d; }
.label-shuttle  { background: #ffedd5; color: #c2410c; }
.label-caption  { background: #ede9fe; color: #6d28d9; }
.label-shottype { background: #fce7f3; color: #9d174d; }

/* Shot type tags */
.shottype-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.shottype-tags span {
  background: #fdf2f8;
  color: #9d174d;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 15px;
  font-weight: 500;
}

/* Full-match timeline block */
.timeline-block {
  margin: 40px 40px 48px;
}
.timeline-block h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 8px;
}
.timeline-block > p {
  font-size: 15px;
  color: #444;
  margin: 0 0 20px;
  line-height: 1.7;
}
.timeline-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  border: 1px solid #e5e5e5;
}
.timeline-legend {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.tl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #444;
}
.tl-item::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--c);
}

/* Timeline snapshots */
.tl-snapshots {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}
.tl-snap {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  background: #fff;
}
.tl-snap img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 220px;
}
.tl-snap-label {
  display: inline-block;
  background: var(--sc);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 4px;
  margin: 10px 12px 4px;
  letter-spacing: 0.04em;
}
.tl-snap p {
  font-size: 13px;
  color: #555;
  margin: 0 12px 12px;
  line-height: 1.5;
}

/* Combined demo — full width */
.anno-combined {
  margin: 60px 40px 20px;
  padding: 36px 40px;
  background: #f8f8f8;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  text-align: center;
}

.anno-combined h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.anno-combined p {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px;
}

.anno-combined video {
  width: 70%;
  border-radius: 8px;
  background: #111;
}

/* ======================================================
   TOURNAMENT CARDS
====================================================== */
.tourn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.tourn-card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--accent);
}

.tourn-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
  padding: 3px 10px;
  border-radius: 4px;
  margin: 16px 16px 0;
  width: fit-content;
}

.tourn-sponsor {
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px 0;
}

.tourn-card h3 {
  font-size: 18px;
  margin: 4px 16px 8px;
}

.tourn-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 16px 14px;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}

.tourn-sample {
  padding: 12px 16px 14px;
}

.tourn-sample video {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.tourn-sample p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #555;
}

video {
  width: 100%;
  border-radius: 6px;
}

/* ======================================================
   STATS TABLE
====================================================== */
table {
  border-collapse: collapse;
  margin: 20px 40px;
  font-size: 15px;
}

th, td {
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 8px 24px;
  text-align: center;
}

th {
  font-weight: bold;
  background: #f5f5f5;
}

td:first-child {
  text-align: left;
}

tr.avg-row td {
  border-top: 2px solid #333;
  font-weight: bold;
}

/* ======================================================
   RESOURCES
====================================================== */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 20px;
  margin: 24px 0;
}

.resource-card {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 28px 24px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-card-download {
  background: #f5f3ff;
  border-color: #c4b5fd;
}

.resource-icon {
  font-size: 28px;
}

.resource-card h3 {
  margin: 0;
  font-size: 17px;
}

.resource-card p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.resource-tag {
  display: inline-block;
  font-size: 12px;
  color: #888;
  background: #ebebeb;
  border-radius: 4px;
  padding: 2px 10px;
  width: fit-content;
}

.btn-request {
  display: inline-block;
  background: #6d28d9;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 22px;
  border-radius: 6px;
  text-align: center;
  transition: background 0.2s;
  width: fit-content;
}

.btn-request:hover {
  background: #5b21b6;
}

.resource-note {
  font-size: 12px !important;
  color: #888 !important;
  font-style: italic;
  margin: 0;
}

/* ======================================================
   FOOTER
====================================================== */
footer {
  margin-top: 60px;
  padding: 20px 40px;
  border-top: 1px solid #ddd;
  font-size: 13px;
  color: #666;
}

/* ======================================================
   MISC
====================================================== */
hr {
  margin: 40px 0;
}