:root {
  --ink: #201d27;
  --muted: #6f6977;
  --green: #0c3a30;
  --green-soft: #eaf2ee;
  --warning: #ce5d6d;
  --warning-soft: #fff0f2;
  --gold: #e9b942;
  --paper: #fff;
  --canvas: #f5f1e8;
  --line: rgba(32, 29, 39, 0.1);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(233, 185, 66, 0.13), transparent 28rem),
    var(--canvas);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.notice-topbar {
  display: flex;
  width: min(1120px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.notice-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.notice-brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.notice-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.notice-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(233, 185, 66, 0.14);
}

.notice-main {
  padding: 8px 24px 56px;
}

.notice-card {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 40px;
  border: 1px solid rgba(32, 29, 39, 0.07);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(46, 38, 27, 0.09);
}

.js .notice-card {
  opacity: 0;
  transform: translateY(16px);
}

.js.is-ready .notice-card {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.notice-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.notice-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  border-radius: 18px;
  background: var(--warning);
  box-shadow: 0 10px 24px rgba(206, 93, 109, 0.22);
}

.notice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.notice-meta b {
  padding: 4px 10px;
  color: var(--warning);
  border-radius: 999px;
  background: var(--warning-soft);
}

.notice-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.notice-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  margin: 30px 0 0;
  object-fit: cover;
  object-position: center 52%;
  border-radius: 22px;
  background: var(--green);
}

.notice-entity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: center;
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid rgba(206, 93, 109, 0.18);
  border-radius: 18px;
  background: var(--warning-soft);
}

.notice-entity span {
  grid-column: 1;
  color: var(--warning);
  font-size: 13px;
  font-weight: 800;
}

.notice-entity strong {
  grid-column: 1;
  color: #b54657;
  font-size: clamp(20px, 2.7vw, 28px);
  line-height: 1.35;
}

.notice-entity button {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 40px;
  padding: 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  border: 1px solid rgba(12, 58, 48, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.notice-copy {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.notice-copy p {
  margin: 0;
  color: #383440;
  font-size: 17px;
  line-height: 1.8;
}

.notice-reminder {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  color: #463b1c;
  font-size: 14px;
  line-height: 1.65;
  border-radius: 16px;
  background: #fff8df;
}

.notice-reminder b {
  color: #8c6711;
}

.notice-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.notice-actions p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.notice-actions button {
  flex: 0 0 auto;
  min-width: 138px;
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(12, 58, 48, 0.2);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.notice-actions button:hover,
.notice-actions button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(12, 58, 48, 0.26);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 10;
  padding: 11px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 12px 30px rgba(12, 58, 48, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .notice-topbar {
    width: calc(100% - 32px);
    min-height: 62px;
  }

  .notice-brand {
    font-size: 16px;
  }

  .notice-brand img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .notice-status {
    font-size: 13px;
  }

  .notice-main {
    padding: 4px 12px calc(24px + env(safe-area-inset-bottom));
  }

  .notice-card {
    padding: 20px;
    border-radius: 22px;
    box-shadow: 0 14px 38px rgba(46, 38, 27, 0.08);
  }

  .notice-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
  }

  .notice-mark {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 14px;
  }

  .notice-meta {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .notice-heading h1 {
    font-size: clamp(27px, 8vw, 34px);
    letter-spacing: -0.045em;
  }

  .notice-cover {
    aspect-ratio: 2 / 1;
    margin-top: 22px;
    border-radius: 16px;
  }

  .notice-entity {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 15px;
  }

  .notice-entity strong {
    font-size: 19px;
  }

  .notice-entity button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    min-height: 36px;
    margin-top: 6px;
    padding: 0 13px;
  }

  .notice-copy {
    gap: 12px;
    margin-top: 18px;
  }

  .notice-copy p {
    font-size: 15px;
    line-height: 1.75;
  }

  .notice-reminder {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 18px;
    padding: 14px;
  }

  .notice-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
  }

  .notice-actions button {
    width: 100%;
  }

  .toast {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
