:root {
  --bg: #edf5fb;
  --card: #ffffff;
  --ink: #10233f;
  --muted: #64748b;
  --line: #d6e5f4;
  --blue: #0b63c7;
  --blue-dark: #063f86;
  --green: #139172;
  --shadow: 0 18px 42px rgba(25, 72, 120, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(11, 99, 199, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(19, 145, 114, 0.12), transparent 30%),
    var(--bg);
}

button,
select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

button {
  min-width: 88px;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--blue-dark);
}

button.primary {
  min-width: 128px;
  background: var(--green);
}

select {
  width: min(420px, 100%);
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.deck-shell {
  width: min(1500px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
}

.deck-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
}

.viewer,
.controls {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.viewer {
  padding: 14px;
}

.slide-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dfeaf6;
}

.slide-stage img {
  width: 100%;
  max-height: calc(100vh - 235px);
  object-fit: contain;
  display: block;
}

.controls {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(320px, 460px) 72px;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
}

.current-meta {
  min-width: 0;
}

.current-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.current-meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.button-row {
  display: flex;
  gap: 8px;
}

.progress {
  min-width: 0;
}

.progressTop {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  margin-bottom: 6px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.overall {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce9f6;
}

.overall span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.pageIndicator {
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .deck-header,
  .controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pageIndicator {
    text-align: left;
  }

  .slide-stage img {
    max-height: none;
  }
}
