:root {
  --bg: #fff;
  --text: #D81159;
  --muted: #23569D;
  --line: #A1C2E0;
  --line-strong: #3071B7;
  --blue-accent: #23569D;
  --rose-accent: #e1537d;
  --tag-shadow: 0 28px 60px rgba(31, 53, 86, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 24px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", sans-serif;
}

.notice-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
}

.notice-stage {
  position: relative;
  width: 0;
  height: 92px;
  margin-bottom: -6px;
  pointer-events: none;
}

.wall-pin {
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(120deg, #23569D, #7AA6D2);
  box-shadow: 0 6px 12px rgba(31, 53, 86, 0.08);
  z-index: 10;
}

.wall-pin::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.hanger {
  position: absolute;
  top: 18px;
  left: 0;
  width: 178px;
  height: 1px;
  background: var(--line);
  transform-origin: 0 50%;
}

.hanger-left {
  transform: rotate(146deg);
}

.hanger-right {
  transform: rotate(34deg);
}

.notice {
  position: relative;
  width: min(580px, calc(100vw - 32px));
  padding: 44px 36px 38px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px 22px 28px 28px;
  box-shadow: var(--tag-shadow);
}

.kicker,
.subtitle,
.message,
.support,
.status-time {
  margin: 0;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.maintenance-illustration {
  position: relative;
  width: min(228px, 66%);
  height: 170px;
  margin: 18px auto 26px;
}

.browser-window {
  position: absolute;
  inset: 18px 18px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfeff;
  box-shadow: 0 18px 34px rgba(31, 53, 86, 0.1);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  background: #f8fbfe;
}

.browser-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(97, 116, 141, 0.35);
}

.browser-dot:first-child {
  background: rgba(225, 83, 125, 0.55);
}

.browser-dot:nth-child(2) {
  background: rgba(35, 86, 157, 0.35);
}

.browser-body {
  position: relative;
  padding: 18px 16px 16px;
}

.browser-chip {
  width: 52px;
  height: 10px;
  border-radius: 999px;
  background: rgba(35, 86, 157, 0.12);
}

.browser-line {
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e9f0f7;
}

.browser-line.short {
  width: 60%;
}

.repair-icon {
  position: absolute;
  inset: 0;
}

.gear {
  position: absolute;
  left: 34px;
  bottom: 26px;
  width: 28px;
  height: 28px;
  border: 6px solid var(--blue-accent);
  border-radius: 50%;
  background: var(--bg);
  animation: gear-spin 11s linear infinite;
}

.gear::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      transparent 0 12deg,
      var(--blue-accent) 12deg 24deg,
      transparent 24deg 48deg,
      var(--blue-accent) 48deg 60deg,
      transparent 60deg 84deg,
      var(--blue-accent) 84deg 96deg,
      transparent 96deg 120deg,
      var(--blue-accent) 120deg 132deg,
      transparent 132deg 156deg,
      var(--blue-accent) 156deg 168deg,
      transparent 168deg 192deg,
      var(--blue-accent) 192deg 204deg,
      transparent 204deg 228deg,
      var(--blue-accent) 228deg 240deg,
      transparent 240deg 264deg,
      var(--blue-accent) 264deg 276deg,
      transparent 276deg 300deg,
      var(--blue-accent) 300deg 312deg,
      transparent 312deg 336deg,
      var(--blue-accent) 336deg 348deg,
      transparent 348deg 360deg
    );
  -webkit-mask: radial-gradient(circle, transparent 0 55%, #000 56%);
  mask: radial-gradient(circle, transparent 0 55%, #000 56%);
}

h1 {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", serif;
font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.subtitle {
  margin-top: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.message {
  margin-top: 2px;
  font-size: 0.96rem;
  line-height: 1.8;
}

.status-time {
  margin-top: 44px;
  font-size: 0.8rem;
  color: var(--muted);
}

@keyframes gear-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  body {
    padding: 20px 16px;
  }

  .notice-wrap {
    min-height: calc(100vh - 40px);
    min-height: calc(100dvh - 40px);
  }

  .notice-stage {
    height: 76px;
    margin-bottom: -4px;
  }

  .hanger {
    width: 132px;
  }

  .hanger-left {
    transform: rotate(144deg);
  }

  .hanger-right {
    transform: rotate(36deg);
  }

  .notice {
    width: min(100%, 460px);
    padding: 34px 22px 30px;
    border-radius: 18px 18px 22px 22px;
  }

  .notice::before {
    left: 74px;
  }

  .notice::after {
    right: 74px;
  }

  .maintenance-illustration {
    width: min(200px, 68%);
    height: 150px;
    margin-bottom: 22px;
  }

  .gear {
    left: 26px;
    bottom: 16px;
    width: 32px;
    height: 32px;
    border-width: 5px;
  }

  .wrench {
    top: 24px;
    right: 40px;
    width: 46px;
    height: 100px;
  }

  .wrench-head {
    width: 38px;
    height: 38px;
    border-width: 7px;
  }

  .wrench-head::before {
    top: 8px;
    right: -8px;
    width: 21px;
    height: 21px;
  }

  .wrench-handle {
    top: 26px;
    left: 18px;
    height: 62px;
    width: 12px;
  }

  .wrench-tail {
    left: 13px;
    width: 22px;
    height: 22px;
    border-width: 5px;
  }

  .message {
    font-size: 0.92rem;
  }

  .support {
    font-size: 0.82rem;
  }

  .refresh-button {
    width: 100%;
  }
}

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