:root {
  --blue: #2478f0;
  --blue-deep: #0753b4;
  --text: #142033;
  --muted: #6d788c;
  --line: rgba(38, 108, 196, 0.12);
  --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, #dff2ff 0%, #edf7ff 42%, #f8fbff 100%);
  color: var(--text);
}

body {
  padding-bottom: env(safe-area-inset-bottom);
}

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

button,
a {
  font: inherit;
}

button {
  border: 0;
}

.service-app {
  width: 100%;
  min-height: 100vh;
  padding: 0 18px 24px;
}

.service-header {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 0 14px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(36, 120, 240, 0.12);
}

.service-header h1,
.service-header p {
  margin: 0;
}

.service-header h1 {
  font-size: 22px;
  line-height: 1.25;
}

.service-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.service-card,
.schedule-section {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(20, 53, 92, 0.12);
}

.service-card {
  padding: 18px;
}

.service-card__head {
  display: grid;
  gap: 8px;
}

.service-card__head span {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 10px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.service-card__head strong {
  font-size: 22px;
  line-height: 1.25;
}

.service-card p {
  margin: 12px 0 0;
  color: #53647c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.72;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.info-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.info-list strong,
.info-list a {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.info-list a {
  color: var(--blue);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #e8faf6;
  color: #13776f;
  font-size: 12px;
  font-weight: 900;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.action-button--light {
  background: #edf5ff;
  color: var(--blue);
}

.schedule-section {
  margin-top: 16px;
  padding: 16px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2,
.section-head p {
  margin: 0;
}

.section-head h2 {
  font-size: 20px;
  line-height: 1.25;
}

.section-head p,
.section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section-head p {
  margin-top: 5px;
}

.schedule-preview {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.schedule-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #101827;
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer header {
  z-index: 2;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  color: #fff;
  background: rgba(16, 24, 39, 0.92);
}

.image-viewer header span {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
}

.image-viewer header button {
  min-height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.viewer-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.viewer-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  flex: 0 0 auto;
  transform-origin: center center;
  will-change: transform;
}

@media (min-width: 680px) {
  body {
    background: #dfeaf7;
  }

  .service-app {
    width: 430px;
    margin: 0 auto;
    background:
      radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 28%),
      linear-gradient(180deg, #dff2ff 0%, #edf7ff 42%, #f8fbff 100%);
    box-shadow: 0 0 0 1px rgba(20, 53, 92, 0.08), 0 20px 60px rgba(20, 53, 92, 0.2);
  }
}
