@font-face {
  font-family: "fontello";
  src:
    url("./assets/fontello/fontello.woff2") format("woff2"),
    url("./assets/fontello/fontello.woff") format("woff"),
    url("./assets/fontello/fontello.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: normal;
}

:root {
  --page-blue: #374cfc;
  --panel-blue: rgba(0, 0, 0, 0.14);
  --footer-blue: #2c40c7;
  --text: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

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

.site-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 768px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page-blue);
}

.hero {
  position: relative;
  background: #151db3;
}

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

.lang-switch {
  position: absolute;
  z-index: 2;
  top: clamp(20px, 2.7vw, 25px);
  right: clamp(15px, 2.8vw, 25px);
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  color: #fff;
  font-size: clamp(12px, 1.8vw, 14px);
  line-height: 1;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 7px;
  background: rgba(0, 30, 120, 0.22);
}

.lang-switch a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.85);
}

.lang-switch .active {
  background: rgba(255, 255, 255, 0.9);
  color: #2d3a87;
}

.content {
  flex: 1 0 auto;
}

.countdown-card {
  margin: clamp(12px, 2.6vw, 22px) clamp(12px, 2.6vw, 20px) 0;
  padding: clamp(12px, 2.4vw, 20px) 8px clamp(8px, 1.5vw, 12px);
  background: var(--panel-blue);
  text-align: center;
}

.countdown-title {
  margin: 0;
  opacity: 0.68;
  font-size: clamp(16px, 3vw, 28px);
  line-height: 1.1;
}

.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(2px, 0.5vw, 5px);
  margin-top: clamp(3px, 0.8vw, 7px);
  white-space: nowrap;
}

.countdown strong {
  font-size: clamp(42px, 6.5vw, 62px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.05;
}

.countdown .label {
  margin-right: clamp(2px, 0.7vw, 8px);
  font-size: clamp(12px, 1.7vw, 18px);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.6vw, 20px);
  padding: clamp(13px, 2.6vw, 22px) clamp(12px, 2.6vw, 20px) 0;
}

.menu-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  height: clamp(115px, 25vw, 190px);
  background: var(--panel-blue);
  color: #fff;
  text-align: center;
  transition: background 160ms ease, transform 160ms ease;
}

.menu-card:hover,
.menu-card:focus-visible {
  background: rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.iconfont {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(48px, 10vw, 82px);
  height: clamp(72px, 15vw, 118px);
  padding-top: clamp(18px, 4.2vw, 40px);
  font-family: "fontello";
  font-size: clamp(44px, 8vw, 72px);
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  speak: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.menu-icon-image {
  display: block;
  width: clamp(48px, 10vw, 82px);
  height: clamp(72px, 15vw, 118px);
  padding-top: clamp(18px, 4.2vw, 40px);
  object-fit: contain;
}

.menu-card span {
  display: block;
  width: 100%;
  padding: 0 4px;
  font-size: clamp(17px, 3.5vw, 28px);
  font-weight: 400;
  line-height: 1.22;
}

.icon-pencil-squared::before { content: "\e839"; }
.icon-edit-3::before { content: "\e8ef"; }
.icon-upload-cloud-2::before { content: "\e8bd"; }
.icon-building-filled::before { content: "\e875"; }
.icon-richeng::before { content: "\e8fb"; }
.icon-fax::before { content: "\e85f"; }
.icon-user-2::before { content: "\e8c8"; }
.icon-k1::before { content: "\e94c"; }
.icon-k20::before { content: "\e964"; }

.site-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 16px 0 20px;
  background: var(--footer-blue);
  text-align: center;
  font-size: 16px;
  line-height: 1.9;
}

.site-footer a {
  display: block;
}

.site-footer .support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.support img {
  width: 20px;
  height: auto;
}

.detail-shell {
  background: #f4f7ff;
  color: #172033;
}

.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 56px;
  border-bottom: 1px solid rgba(26, 47, 124, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.back-link {
  position: absolute;
  left: 16px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #263776;
  font-size: 32px;
  line-height: 1;
}

.detail-lang {
  top: 14px;
  border-color: rgba(45, 58, 135, 0.45);
  color: #263776;
}

.detail-lang a {
  background: #fff;
}

.detail-lang a + a {
  border-left-color: rgba(45, 58, 135, 0.35);
}

.detail-lang .active {
  background: #2f4ee8;
  color: #fff;
}

.detail-page {
  flex: 1 0 auto;
  padding: 24px 18px 34px;
}

.detail-header {
  padding: 8px 0 18px;
}

.detail-kicker {
  margin: 0 0 8px;
  color: #3159df;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.detail-header h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.15;
}

.detail-header p:last-child {
  margin: 10px 0 0;
  color: #687085;
  font-size: 15px;
  line-height: 1.7;
}

.detail-content {
  display: grid;
  gap: 16px;
}

.content-text-block,
.content-rich-block {
  margin: 0;
  padding: 16px;
  border: 1px solid #dce2ee;
  border-radius: 8px;
  background: #fff;
  color: #263046;
  font-size: 16px;
  line-height: 1.8;
}

.content-rich-block p {
  margin: 0 0 10px;
}

.content-rich-block p:last-child {
  margin-bottom: 0;
}

.content-rich-block img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.content-image-block {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce2ee;
  border-radius: 8px;
  background: #fff;
}

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

.content-image-block figcaption {
  padding: 10px 12px;
  color: #687085;
  font-size: 13px;
  line-height: 1.5;
}

.navigation-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #cbd6ff;
  border-radius: 8px;
  background: #fff;
}

.navigation-panel h2,
.navigation-panel h3 {
  margin: 0;
  color: #172033;
  letter-spacing: 0;
}

.navigation-panel h2 {
  font-size: 22px;
}

.navigation-panel h3 {
  margin-top: 16px;
  font-size: 15px;
}

.navigation-address {
  margin: 10px 0 14px;
  color: #485166;
  font-size: 15px;
  line-height: 1.7;
}

.locate-button,
.navigation-copy,
.navigation-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #3159df;
  border-radius: 6px;
  background: #3159df;
  color: #fff;
  font-size: 14px;
}

.navigation-copy {
  margin-top: 14px;
  background: #fff;
  color: #3159df;
}

.distance-result {
  min-height: 22px;
  margin: 12px 0 0;
  color: #2445b8;
  font-size: 15px;
  line-height: 1.6;
}

.navigation-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.detail-footer {
  color: #fff;
}

.registration-panel {
  margin-top: 18px;
}

.registration-card,
.registration-success-card {
  padding: 18px;
  border: 1px solid #cbd6ff;
  border-radius: 8px;
  background: #fff;
}

.registration-header h2,
.registration-success-card h2 {
  margin: 0;
  color: #172033;
  font-size: 24px;
  line-height: 1.2;
}

.registration-header p,
.registration-hint {
  margin: 8px 0 0;
  color: #687085;
  font-size: 13px;
  line-height: 1.6;
}

.registration-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5eaf5;
}

.registration-section h3 {
  margin: 0 0 12px;
  color: #172033;
  font-size: 16px;
}

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

.registration-field {
  display: grid;
  gap: 6px;
  color: #5b6478;
  font-size: 13px;
}

.registration-field input,
.registration-field select,
.registration-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #dce2ee;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font: inherit;
}

.registration-field textarea {
  min-height: 92px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid #dce2ee;
  border-radius: 6px;
  background: #fbfcff;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
}

.attendee-type-grid,
.pay-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.attendee-type-card,
.pay-channel-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #dce2ee;
  border-radius: 8px;
  background: #fbfcff;
  color: #172033;
}

.attendee-type-card input,
.pay-channel-card input {
  width: 18px;
  height: 18px;
}

.attendee-type-card span {
  color: #3159df;
  font-weight: 700;
}

.attendee-type-card small {
  color: #687085;
  line-height: 1.5;
}

.secondary-action,
.registration-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 16px;
  border: 1px solid #3159df;
  border-radius: 6px;
  background: #3159df;
  color: #fff;
  font-size: 14px;
}

.secondary-action {
  background: #fff;
  color: #3159df;
}

.registration-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #eef3ff;
  color: #172033;
}

.registration-total strong {
  color: #3159df;
  font-size: 22px;
}

.form-error {
  margin: 12px 0 0;
  color: #b42318;
  font-size: 14px;
  line-height: 1.6;
}

.registration-success-card dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 18px 0;
  color: #172033;
}

.registration-success-card dt {
  color: #687085;
}

.registration-success-card dd {
  margin: 0;
}

.qrcode-mock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  margin-top: 12px;
  border: 10px solid #172033;
  background:
    linear-gradient(90deg, #172033 12px, transparent 12px) 0 0 / 28px 28px,
    linear-gradient(#172033 12px, transparent 12px) 0 0 / 28px 28px,
    #fff;
  color: #3159df;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  word-break: break-all;
}

@media (max-width: 430px) {
  .site-shell {
    max-width: none;
  }

  .site-footer {
    padding-bottom: 14px;
    font-size: 14px;
  }

  .site-footer .support {
    font-size: 12px;
  }

  .detail-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .navigation-actions {
    grid-template-columns: 1fr;
  }

  .registration-grid,
  .attendee-type-grid,
  .pay-channel-grid,
  .registration-success-card dl {
    grid-template-columns: 1fr;
  }
}
