:root {
  color-scheme: dark;
  --ink: #090909;
  --paper: #f2f0eb;
  --white: #f7f6f2;
  --muted: #b6b4af;
  --line: #353532;
  --header-height: 80px;
  --sans: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset, var(--header-height)) + 8px);
}
body { margin: 0; background: var(--ink); color: var(--white); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid #a9b7ff; outline-offset: 4px; }
.wrap { width: min(100% - 80px, 1120px); margin-inline: auto; }
.eyebrow {
  color: var(--muted);
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .15em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: #0c0c0c;
}
@supports (backdrop-filter: blur(12px)) {
  .site-header { background: #0c0c0cf2; backdrop-filter: blur(12px); }
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: var(--header-height);
  padding-block: 11px;
}
.brand { display: inline-flex; text-decoration: none; }
.brand b { font: 700 clamp(1.4rem, 2.1vw, 1.85rem)/1.12 Georgia, "Times New Roman", serif; white-space: nowrap; }
.page-nav { position: relative; isolation: isolate; display: flex; align-items: center; gap: 3px; }
.page-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}
.page-nav a:hover, .footer a:hover { color: white; }
.page-nav a[aria-current="location"] { color: var(--white); }
.page-nav:not(.has-indicator) a[aria-current="location"] { background: #2b2b2a; }
.page-nav.has-indicator::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: var(--indicator-width);
  transform: translateX(var(--indicator-left));
  border-radius: 6px;
  background: #2b2b2a;
  content: "";
  pointer-events: none;
  transition: transform 250ms cubic-bezier(.22, 1, .36, 1), width 250ms cubic-bezier(.22, 1, .36, 1);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(470px, 41vw, 590px);
  padding-block: 54px 70px;
  overflow: hidden;
  background: #040404;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #040404 18%, #040404d9 34%, #04040426 60%, transparent 81%),
    linear-gradient(0deg, #040404 0%, #04040400 25%, #04040400 89%, #040404 100%),
    url("assets/hero-globe.webp") right max(0px, calc((100% - 1320px) / 2)) center / min(61vw, 780px) auto no-repeat;
}
.hero h1 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 3.35vw, 3rem);
  line-height: 1.2;
  color: var(--white);
  font-weight: 750;
  letter-spacing: -.025em;
}
.hero-date { color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: clamp(12px, 3vw, 21px);
  border: 1px solid transparent;
  border-radius: 7px;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 800;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.submit-link { background: var(--paper); color: var(--ink); }
.submit-link:hover { background: white; }
.schedule-link { border-color: #696967; background: #0c0c0ce6; color: var(--white); }
.schedule-link:hover { background: #292928; }

.section { padding-block: clamp(50px, 8vw, 96px); border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.85rem, 4.1vw, 3.1rem); line-height: 1.18; font-weight: 750; letter-spacing: -.035em; }
.section-note { margin-top: 10px; color: var(--muted); }
.schedule { color-scheme: light; background: var(--paper); color: var(--ink); }
.schedule-note { margin-top: 11px; color: #575651; font-weight: 700; }
.schedule-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid #bcbab4; }
.schedule-list li {
  display: grid;
  grid-template-columns: .55fr 1.4fr 1fr;
  gap: 16px 28px;
  padding-block: 22px;
  border-bottom: 1px solid #bcbab4;
}
.schedule-list .day { font-size: clamp(1.15rem, 2.4vw, 1.65rem); font-weight: 900; }
.day span { display: block; color: #575651; font-size: .875rem; font-weight: 600; }
.schedule-list h3 { font-size: 1.26rem; font-weight: 900; }
.schedule-list p { margin-top: 3px; color: #575651; }
.schedule-location b { font-size: 1.105rem; font-variant-numeric: tabular-nums; }
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.track { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 9px; background: #141413; }
.track h3 { font-size: 1.3rem; font-weight: 900; }
.track p { margin-block: 9px 16px; color: var(--muted); }
.track ul { margin: 0; padding: 14px 0 0 1.2em; border-top: 1px solid var(--line); color: var(--muted); }

.partner-section { background: #111110; }
.featured-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.featured-logos h3, .partner-heading { margin-bottom: 12px; color: var(--muted); font-size: 1rem; font-weight: 700; }
.partner-heading { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.logo-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.logo-grid.sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.logo-grid.community { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.logo-card {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  background: #fafaf8;
  color: var(--ink);
  border: 1px solid #e0dfda;
  border-radius: 8px;
  height: clamp(74px, 9vw, 104px);
  padding: 14px clamp(10px, 2vw, 24px);
}
.logo-card img { width: auto; height: auto; max-height: 49px; object-fit: contain; }
.featured-logos .logo-card { height: clamp(84px, 11vw, 126px); }
.featured-logos .logo-card img { max-width: min(100%, 260px); max-height: 62px; }
.featured-logos img[src$="/adventure-x.png"] { width: min(100%, 205px); }
.sponsor-grid .logo-card { padding-inline: clamp(14px, 4vw, 24px); }
.sponsor-grid .logo-card img {
  width: min(100%, var(--mark-width, 142px));
  max-height: none;
}
.sponsor-grid .robotics { --mark-width: 192px; }
.sponsor-grid .robotics img { translate: clamp(-7px, -.5vw, -3px) 0; }
.sponsor-grid .opendev { --mark-width: 201px; }
.community .logo-card img { max-height: 45px; }
.community img[src$="/weyoung.png"] { max-height: 54px; }
.logo-card.aura { gap: 9px; font-weight: 800; }
.logo-card.aura img { width: 36px; border-radius: 8px; }

.submission-deadlines { display: flex; gap: 10px 28px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; color: var(--muted); list-style: none; }
.submission-deadlines time { margin-inline-start: .3em; color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding-block: 24px; font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer a { text-decoration: none; }

@media (max-width: 760px) {
  :root { --header-height: 102px; }
  .wrap { width: calc(100% - 36px); }
  .top { flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; }
  .brand { align-self: flex-start; }
  .page-nav { display: grid; grid-template-columns: repeat(4, 1fr); }
  .page-nav a { padding-inline: 6px; }
  .hero {
    align-items: start;
    min-height: calc(200px + min(86vw, 490px));
    padding-block: 34px 42px;
  }
  .hero::before {
    background:
      linear-gradient(180deg, #040404 21%, #040404ce 37%, #04040400 58%, #04040400 81%, #040404 99%),
      url("assets/hero-globe.webp") center bottom -36px / min(110vw, 590px) auto no-repeat;
  }
  .hero-actions { margin-top: 22px; }
  .tracks { grid-template-columns: 1fr; }
  .schedule-list li { grid-template-columns: minmax(0, .7fr) minmax(0, 2fr); }
  .schedule-location { grid-column: 2; }
  .logo-grid.community { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .logo-grid, .logo-grid.community { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-logos h3 { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-nav.has-indicator::before, .page-nav a, .hero-button { transition: none; }
}


/* 作品提交入口 */
.submit-cta{display:inline-flex;align-items:center;gap:10px;margin-top:24px;
  padding:16px 34px;border:2px solid #fff;border-radius:999px;
  color:#fff;text-decoration:none;font-weight:800;font-size:15px;letter-spacing:.02em;
  transition:transform .16s cubic-bezier(.2,.7,.3,1),box-shadow .16s,background .16s,color .16s}
.submit-cta:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 rgba(255,255,255,.28);background:#fff;color:#0a0a0a}
.submit-cta[aria-disabled="true"]{opacity:.45;pointer-events:none}
.submit-hint{margin-top:12px;font-size:12px;opacity:.5}


/* 终极指南（外链入口） */
.nav-guide{border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:6px 14px !important;
  transition:background .16s,color .16s,border-color .16s}
.nav-guide:hover{background:#fff;color:#0a0a0a !important;border-color:#fff}
.nav-guide span{font-size:11px;opacity:.7}
