:root {
  --bg: #f4efe7;
  --panel: rgba(255, 252, 247, 0.76);
  --panel-strong: #fff9ef;
  --text: #1e1a16;
  --muted: #5f5a55;
  --line: rgba(30, 26, 22, 0.12);
  --accent: #c84d2f;
  --accent-deep: #7b2413;
  --teal: #0e6c74;
  --shadow: 0 24px 70px rgba(95, 69, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(200, 77, 47, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 108, 116, 0.18), transparent 26%),
    linear-gradient(180deg, #f7f1e9 0%, #efe6da 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar,
.panel,
.countdown-card {
  backdrop-filter: blur(16px);
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 249, 239, 0.7);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
.nav,
h1,
h2,
h3,
.button {
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy small,
.hero-text,
.feature p,
.speaker-card p,
.timeline-body p,
.register-copy p,
.intro-strip p {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.hero {
  margin-bottom: 24px;
}

.hero-copy,
.countdown-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 0;
  background: transparent;
}

.hero-single {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-heading {
  position: absolute;
  top: 36px;
  left: 36px;
  right: 36px;

  z-index: 2;
}

.hero-content {
  position: absolute;
  left: 36px;
  bottom: 36px;
  
  z-index: 2;
  text-align: justify;
  padding: 20px 22px;
  border: 1px solid rgba(30, 26, 22, 0.1);
  border-radius: 24px;
  background: rgba(255, 249, 239, 0.34);
  backdrop-filter: blur(10px);
  color: #1e1a16;
}
  .hero-content {
    position: static;
    padding: 0 20px 12px;
    text-align: left;
	  width: min(100%, 560px);
  }


.eyebrow,
.label,
.timeline-date,
.quick-facts li {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.label {
  margin: 0 0 14px;
  color: var(--teal);
  font: 500 12px "Space Grotesk", sans-serif;
}

h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
}

.hero-title-main,
.hero-title-sub {
  display: block;
  color: rgba(30, 26, 22, 0.92);
  font-family: "Kalam", "Comic Sans MS", "Marker Felt", "Bradley Hand", "Segoe Print", cursive;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-title-main {
  font-size: 1em;
}

.hero-title-sub {
  margin-top: 10px;
  margin-left: 0;
  font-size: 0.76em;
}

.hero-title-sub::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 2px;
  margin: 0 0.35em 0.2em 0;
  background: currentColor;
  vertical-align: middle;
}

.hero-text {
  max-width: 56ch;
  margin: 0;
  color: #1e1a16;
  font-size: 18px;
  font-family: "Kalam", "Noto Sans SC", sans-serif;
  font-weight: 700;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-meta-span, .hero-meta span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1e1a16;
  font-size: 14px;
  font-family: "Kalam", "Space Grotesk", sans-serif;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.hero-actions-corner {
  position: absolute;
  right: 36px;
  bottom: 36px;
  z-index: 2;
  padding: 0 20px 20px;
}

.button {
  display: inline-flex;
  /* 补上 */
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 249, 239, 0.78);
}

.countdown-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.countdown-overlay {
  position: absolute;
  right: 36px;
  top: 36px;
  width: min(100%, 120px);
  text-align: right;
  z-index: 2;
}

.countdown-card>p {
  margin: 0 0 6px;
  font: 500 14px "Space Grotesk", sans-serif;
  color: rgba(30, 26, 22, 0.72);
}

.countdown {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.countdown div {
  padding: 0;
}

.countdown strong {
  display: block;
  font: 700 40px "Space Grotesk", sans-serif;
  line-height: 0.95;
}

.countdown span {
  color: rgba(30, 26, 22, 0.72);
  font-size: 13px;
}

.panel {
  margin-bottom: 24px;
  padding: 30px;
}

.page-hero {
  padding: 40px 34px;
}

.page-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.98;
}

.page-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.home-intro h2,
.home-organizers h2,
.home-speakers h2,
.home-poster h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.home-intro {
  display: block !important;
}

.home-intro article,
.home-organizers article,
.home-speakers article,
.home-poster article {
  display: block;
  width: 100%;
  max-width: 100%;
}

.home-intro p,
.home-poster p {
  max-width: 100%;
  text-align: justify;
  text-justify: inter-word;
}

.home-organizers h2,
.home-speakers h2,
.home-poster h2 {
  margin-bottom: 24px;
}

.home-poster p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.home-organizer-list,
.home-speaker-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-organizer-list,
.home-speaker-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}

.home-organizer-list li,
.home-speaker-list li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.home-organizer-list strong,
.home-speaker-list strong {
  font: 700 18px "Space Grotesk", sans-serif;
}

.home-organizer-list span,
.home-speaker-list span {
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  margin-top: 8px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 249, 239, 0.72);
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.feature-grid,
.speakers-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature,
.speaker-card,
.register-form,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.4);
}

.feature,
.speaker-card {
  padding: 22px;
}

.speakers-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.speaker-card span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--teal);
  font: 700 14px "Space Grotesk", sans-serif;
}

.speaker-card.accent {
  background: linear-gradient(135deg, rgba(200, 77, 47, 0.12), rgba(14, 108, 116, 0.1));
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 20px;
}

.timeline-date {
  color: var(--teal);
  font: 700 13px "Space Grotesk", sans-serif;
}

.timeline-body h3,
.feature h3,
.speaker-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.timeline-body p,
.feature p,
.speaker-card p {
  margin: 0;
  line-height: 1.7;
}

.register-section {
  justify-items: start;
}

.register-form {
  width: min(100%, 560px);
  padding: 0;
  display: grid;
  gap: 18px;
  border: 0;
  background: transparent;
}

.register-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.register-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 249, 239, 0.9);
  font: inherit;
}

/* Verification 验证码：输入框和图片同行 */
.register-form label[for="val"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.register-form label[for="val"] #Val {
  flex: 1 1 200px;
  width: auto;
  /* 覆盖 .register-form input 的 width:100% */
  min-width: 0;
  max-width: 60%;
}

.register-form label[for="val"] #changeImg {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;

}

.register-form label[for="val"] #canvas {
  display: block;
  height: 3em;
  width: 12em;
  border-radius: 14px;
  background: rgba(255, 249, 239, 0.9);
}


/* Register/Login 与 Forgot Password 并排 */
.register-form .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.register-form .button-row .button {
  flex: 1 1 160px;
  /* 桌面端两按钮均分，窄到一定程度再换行 */
  width: auto;
  /* 覆盖内联 style="width:40%" */
  min-width: 0;
}

.logistics-menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.logistics-menu-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  font: 700 13px "Space Grotesk", sans-serif;
}

.logistics-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.logistics-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

.logistics-card h2,
.logistics-card h3 {
  margin: 0;
}

.logistics-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hotel-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hotel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  overflow: hidden;
}

.hotel-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hotel-card h3 {
  margin: 2px 18px 0;
  font-size: 20px;
}

.hotel-card p {
  margin: 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.hotel-meta {
  color: var(--teal);
  font: 700 12px "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hotel-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: auto;
  padding: 0 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(30, 26, 22, 0.08);
}

.hotel-links a {
  color: #1f6fff;
  font: 700 20px "Space Grotesk", sans-serif;
  text-decoration: none;
  line-height: 1;
}

.hotels-panel {
  padding: 26px;
}

.logistics-card-wide {
  grid-column: span 2;
}

.logistics-card-accent {
  background:
    linear-gradient(135deg, rgba(200, 77, 47, 0.12), rgba(14, 108, 116, 0.08)),
    var(--panel);
}

.logistics-facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logistics-facts li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  font: 700 12px "Space Grotesk", sans-serif;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.archive-item {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.archive-item strong {
  font: 700 18px "Space Grotesk", sans-serif;
}

.archive-item span {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 980px) {

  .intro-strip,
  .feature-grid,
  .speakers-grid,
  .register-section,
  .footer-grid,
  .logistics-card-grid,
  .archive-list,
  .hotel-card-grid,
  .home-organizer-list,
  .home-speaker-list {
    grid-template-columns: 1fr;
  }

  .logistics-card-wide {
    grid-column: span 1;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-single {
    padding-top: 0;
    padding-bottom: 0;
  }



  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 10px;
  }

  .topbar {
    position: static;
    align-items: start;
    flex-direction: column;
  }

  .logistics-menu-links {
    flex-direction: column;
  }

  h1 {
    max-width: none;
    font-size: 48px;
  }

  .hero-single {
    padding-top: 0;
    padding-bottom: 0;
  }

  .countdown-overlay {
    position: static;
    width: auto;
    margin: 16px 20px 0;
    text-align: left;
  }



  .hero-heading {
    position: static;
    max-width: none;
    padding: 20px 20px 0;
  }

  .hero-actions-corner {
    position: static;
    padding: 0 20px 20px;
  }

  .panel,
  .countdown-card {
    border-radius: 26px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .countdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}