:root {
  color-scheme: light;
  --pink: #d94f86;
  --pink-dark: #a82f65;
  --teal: #007f7a;
  --ink: #26171e;
  --line: #ead8e0;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #f6f3f4;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background: #fff;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: grid;
  place-items: center;
  min-height: 94px;
  padding: 15px 12px 12px;
  color: #fff;
  background: var(--pink);
}

.brand h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand a {
  margin-top: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.day-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: #fff;
  background: var(--pink-dark);
  font-size: 14px;
}

.district-nav {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.district-nav::-webkit-scrollbar {
  display: none;
}

.district-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.district-tab[aria-selected="true"] {
  color: #fff;
  background: #507d78;
}

main {
  width: min(100%, 980px);
  min-height: calc(100vh - 220px);
  margin: 0 auto;
  padding: 10px 8px 86px;
}

.message {
  padding: 80px 16px;
  color: #705d66;
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.photo-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7c4cc;
  border-radius: 6px;
  background: #f3eff1;
  cursor: pointer;
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.photo-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 42px;
  padding: 6px 8px;
  color: #fff;
  background: rgba(36, 17, 27, 0.82);
}

.maid-name {
  min-width: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.store-code {
  flex: 0 0 auto;
  color: #ffd4e4;
  font-size: 12px;
  font-weight: 700;
}

.pager {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 68px;
  padding: 8px 16px max(8px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -5px 16px rgba(70, 30, 47, 0.08);
}

.icon-button {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #d8c8cf;
  border-radius: 50%;
  color: var(--pink-dark);
  background: #fff;
  font-size: 36px;
  line-height: 38px;
}

.icon-button:disabled {
  color: #c9bec3;
  background: #f3f0f1;
}

#page-indicator {
  min-width: 64px;
  color: #6f5d65;
  font-weight: 700;
  text-align: center;
}

.viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 48px 0 70px;
  border: 0;
  background: #111;
}

.viewer::backdrop {
  background: #111;
}

.viewer img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.viewer-close {
  position: absolute;
  z-index: 2;
  top: max(10px, env(safe-area-inset-top));
  right: 12px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 30px;
}

.viewer-caption {
  position: absolute;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  color: #fff;
}

.viewer-caption span {
  color: #ffb8d2;
}

@media (max-width: 680px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 330px) {
  .brand h1 {
    font-size: 24px;
  }

  .district-tab {
    padding: 0 12px;
  }
}
