:root {
  color-scheme: light;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: #182754;
  background: #f8faff;
  --ink: #100878;
  --edge: #dce5f3;
  --focus: #3b8bef;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; margin: 0; }

body {
  background: radial-gradient(ellipse at 50% -18%, #eaf2ff 0, #f8faff 53%, #fff 100%);
}

button { font: inherit; }

.workspace {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}

.page-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 1740px);
  margin: 0 auto;
  padding: 20px 56px 0;
}

.page-brand {
  flex: 0 0 150px;
  line-height: 0;
}

.page-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.page-tabs {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: #f3f6fc;
}

.page-tabs::-webkit-scrollbar { display: none; }

.page-tab {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  min-height: 36px;
  padding: 0 5px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64779c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
}

.page-tab[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 5px #142d6314;
}

.page-tab:focus-visible,
.page-step:focus-visible,
.page-canvas:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.page-nav-controls {
  display: flex;
  flex: none;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: #f3f6fc;
}

.page-step {
  display: grid;
  width: 34px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64779c;
  cursor: pointer;
}

.page-step:disabled { color: #aeb9cd; cursor: default; }
.page-step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.page-external-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: none;
  width: max-content;
  align-items: stretch;
  gap: 7px;
}

.google-slides-link,
.contact-link {
  --link-surface: linear-gradient(135deg, #263d60, #111f36 62%, #0c172b);
  --link-edge: linear-gradient(140deg, #8ba5c9a6, #405577 45%, #243754);
  --link-glow: #1d355631;
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 10px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--link-surface) padding-box, var(--link-edge) border-box;
  color: #f8fbff;
  box-shadow: inset 0 1px 0 #ffffff12, 0 3px 6px #132d4c0d, 0 7px 18px var(--link-glow);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.google-slides-link::before,
.contact-link::before {
  position: absolute;
  z-index: -1;
  inset: -30% auto -30% -75%;
  width: 65%;
  background: linear-gradient(90deg, transparent, #ffffff1f, transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-20deg);
  transition: left .5s ease;
}

.contact-link {
  --link-surface: linear-gradient(125deg, #1599e2, #0873c2 50%, #075b9f);
  --link-edge: linear-gradient(135deg, #82deff, #35aef8 42%, #0871bf);
  --link-glow: #168fda36;
}

.nav-link-icon {
  display: grid;
  flex: none;
  width: 22px;
  height: 22px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ffffff1f;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 #ffffff12;
}

.google-slides-link .nav-link-icon {
  border-color: #f5cc723d;
  background: linear-gradient(145deg, #f6d18824, #e6ac3710);
  color: #ffda8a;
}

.nav-link-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-link img {
  display: block;
  flex: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.google-slides-link:hover,
.contact-link:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 #ffffff21, 0 5px 10px #132d4c10, 0 10px 24px var(--link-glow);
  transform: translateY(-2px);
}

.google-slides-link:hover::before,
.contact-link:hover::before { left: 125%; }
.google-slides-link:active,
.contact-link:active {
  transform: translateY(0) scale(.98);
}

.google-slides-link:focus-visible,
.contact-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.page-stage {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  width: min(100%, 1980px);
  min-height: 0;
  margin: 0 auto;
  padding: 22px 56px 36px;
}

.page-canvas {
  flex: none;
  width: min(100%, 1840px, 149svh);
  aspect-ratio: 16 / 9;
  border: 1px solid #cbd8ef85;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 12px 36px #657bc00d, inset 0 1px #fff;
}

.page-canvas[hidden] { display: none; }

.page-toolbar {
  display: flex;
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  visibility: hidden;
  align-items: center;
  gap: 8px;
}

.language-switcher { position: relative; }
.language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-width: 98px;
  height: 37px;
  padding: 0 11px;
  border: 1px solid #d4e0f3;
  border-radius: 10px;
  background: linear-gradient(160deg, #fff, #f0f4fd);
  color: #34578d;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px #29467508;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.language-trigger:hover, .language-trigger[aria-expanded="true"] { border-color: #b9c9e8; background: #f2f5ff; }
.language-trigger svg, .language-menu svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.language-globe { width: 16px; height: 16px; color: #8294b2; }
.language-chevron { width: 12px; height: 12px; color: #8294b2; transition: transform .15s ease; }
.language-trigger[aria-expanded="true"] .language-chevron { transform: rotate(180deg); }
.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  min-width: 142px;
  padding: 6px;
  border: 1px solid #e1e7f3;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 28px #243e701a, 0 2px 6px #243e7008;
}
.language-menu[hidden] { display: none; }
.language-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #526684;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.language-menu button + button { margin-top: 3px; }
.language-menu button[aria-checked="true"] { background: linear-gradient(110deg, #edf5ff, #f4f0ff); color: #335b9b; }
.language-menu button:hover { background: #f3f6fc; }
.language-menu button svg { width: 15px; height: 15px; visibility: hidden; color: #6379be; }
.language-menu button[aria-checked="true"] svg { visibility: visible; }
.language-trigger:focus-visible, .language-menu button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
html[lang^="zh"] { font-family: "Microsoft YaHei", "PingFang TC", "PingFang SC", "Segoe UI", sans-serif; }

.present-button {
  display: inline-flex;
  height: 37px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #d4e0f3;
  border-radius: 10px;
  background: linear-gradient(160deg, #fff, #edf3fd);
  color: #34578d;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px #29467508;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.present-button:hover { border-color: #a9c3e8; background: #edf4ff; }
.present-button:disabled { opacity: .6; cursor: wait; }
.present-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.present-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.presentation-message {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: min(360px, 90vw);
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: #fff;
  color: #405674;
  box-shadow: 0 5px 20px #29467518;
  font-size: 12px;
  line-height: 1.5;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Fullscreen only contains the stage, so navigation and tools stay out of the slide. */
body.is-presenting { overflow: hidden; }
#page-stage:fullscreen {
  display: flex;
  width: 100vw;
  max-width: none;
  height: 100vh;
  min-height: 0;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0d1424;
}
#page-stage:fullscreen::backdrop { background: #0d1424; }
#page-stage:fullscreen > .page-canvas {
  width: var(--presentation-width);
  height: var(--presentation-height);
  transform: scale(var(--presentation-scale, 1));
  transform-origin: center;
  box-shadow: none;
  outline: none;
}
#page-stage:fullscreen { cursor: pointer; }

@media (max-width: 1200px) {
  .page-navigation { padding-inline: 28px; }
  .page-brand { flex-basis: 132px; }
  .page-stage { padding-inline: 28px; }
}

@media (max-width: 700px) {
  .page-navigation {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    grid-template-areas:
      "brand tabs controls"
      "links links links";
    gap: 7px;
    padding: 16px 20px 0;
  }
  .page-brand { grid-area: brand; width: 112px; flex-basis: auto; }
  .page-tabs { grid-area: tabs; }
  .page-nav-controls { grid-area: controls; }
  .page-external-links { grid-area: links; max-width: 100%; justify-self: end; }
  .google-slides-link,
  .contact-link {
    gap: 5px;
    justify-content: center;
    min-height: 42px;
    padding: 0 9px;
    border-radius: 11px;
    font-size: 11px;
  }
  .nav-link-icon { width: 20px; height: 20px; border-radius: 6px; }
  .nav-link-icon svg { width: 14px; height: 14px; }
  .page-tabs { gap: 3px; }
  .page-tab { flex-basis: 36px; min-height: 34px; font-size: 11px; }
  .page-nav-controls { gap: 1px; }
  .page-step { width: 30px; height: 34px; }
  .page-stage { padding: 16px 20px 24px; }
  .page-canvas { width: min(100%, 1840px, 133svh); }
}

@media (max-width: 420px) {
  .page-navigation { padding-inline: 12px; }
  .page-navigation { grid-template-columns: 92px minmax(0, 1fr) auto; }
  .page-brand { width: 92px; }
  .page-stage { padding-inline: 12px; }
  .page-tab { flex-basis: 34px; }
}

@media (max-height: 700px) and (min-width: 701px) {
  .page-canvas { width: min(100%, 1840px, 140svh); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
  body { background: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .page-navigation, .page-toolbar { display: none; }
  .page-stage { padding: 0; }
  .page-canvas { border-color: #dce5f3; box-shadow: none; }
}
