@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Work+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  --black: #000000;
  --white: #ffffff;
  --cyan: #00d9ff;
  --yellow: #ffe500;
  --pink: #ff006e;
  --pink-strong: #f82966;
  --blue-soft: #e6f8ff;
  --yellow-soft: #fff7d6;
  --pink-soft: #ffe6f0;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --layout-side-pad: clamp(18px, 4vw, 56px);
  --content-max-width: 1600px;
  --content-side-pad: max(var(--layout-side-pad), calc((100vw - var(--content-max-width)) / 2));
  --top-nav-height: 86px;
  --outer-border: 4px solid var(--black);
  --small-border: 2px solid var(--black);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #fffdf0 0%, #ffffff 52%, #eefaff 100%);
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--slate-900);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.top-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 18px var(--content-side-pad) 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--small-border);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--yellow);
}

.logo-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.logo-text {
  color: var(--slate-900);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 900;
  line-height: 1;
}

.brand-subtitle,
.notice-kicker {
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: var(--small-border);
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  padding: 9px 16px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-yellow {
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--yellow);
}

.btn-ghost {
  box-shadow: none;
}

.notice-page-main {
  width: 100%;
  padding: calc(var(--top-nav-height) + 34px) var(--content-side-pad) 72px;
}

.notice-screen {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.notice-screen.is-hidden {
  display: none;
}

.notice-page-head,
.notice-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 20px;
}

.notice-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.notice-page-title h1,
.notice-detail-card h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
}

.notice-page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: var(--small-border);
  background: var(--yellow);
}

.notice-page-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.notice-count-badge {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--small-border);
  background: var(--pink-strong);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  padding: 0 5px;
}

.notice-text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  color: rgba(15, 23, 42, 0.58);
  font-size: 14px;
  font-weight: 900;
  transition: color 160ms ease;
}

.notice-text-action:not(:disabled):hover {
  color: var(--black);
}

.notice-text-action:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.notice-filter-tabs {
  display: flex;
  width: fit-content;
  gap: 2px;
  margin: 18px 0 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--white);
  padding: 4px;
}

.notice-filter-tab {
  min-height: 30px;
  padding: 5px 13px;
  color: rgba(15, 23, 42, 0.55);
  font-size: 14px;
  font-weight: 900;
}

.notice-filter-tab.is-active {
  background: var(--black);
  color: var(--white);
}

.notice-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 8px;
  color: rgba(15, 23, 42, 0.55);
  font-size: 14px;
  font-weight: 800;
}

.notice-select-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  color: rgba(15, 23, 42, 0.55);
  font-size: 14px;
  font-weight: 900;
}

.notice-select-box {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  line-height: 1;
}

.notice-select-control[aria-pressed="true"] .notice-select-box,
.notice-row-check.is-selected {
  border-color: var(--yellow);
  background: var(--yellow);
}

.notice-select-control[aria-pressed="true"] .notice-select-box::before {
  content: "✓";
  font-weight: 900;
}

.notice-bulk-action {
  min-height: 34px;
  border: var(--small-border);
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  padding: 6px 12px;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.notice-bulk-action:not(:disabled):hover {
  background: var(--black);
  color: var(--white);
}

.notice-bulk-action:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notice-list-item {
  display: grid;
  grid-template-columns: 18px 8px minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: start;
  width: 100%;
  margin: 0 -12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  color: var(--slate-900);
  padding: 16px 12px;
  text-align: left;
  transition: background-color 160ms ease;
}

.notice-list-item:hover {
  background: rgba(0, 0, 0, 0.025);
}

.notice-list-item.is-unread {
  background: rgba(255, 229, 0, 0.18);
}

.notice-row-check {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.24);
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.notice-row-check:focus-visible,
.notice-row-content:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.notice-row-dot {
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: transparent;
}

.notice-list-item.is-unread .notice-row-dot {
  background: var(--yellow);
}

.notice-row-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.notice-row-content {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.notice-row-titleline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.notice-category {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 7px;
  white-space: nowrap;
}

.notice-row-title {
  min-width: 0;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-list-item:not(.is-unread) .notice-row-title {
  color: rgba(15, 23, 42, 0.68);
}

.notice-row-summary {
  margin: 0;
  overflow: hidden;
  color: rgba(15, 23, 42, 0.46);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-row-time {
  color: rgba(15, 23, 42, 0.34);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.notice-row-arrow {
  color: rgba(15, 23, 42, 0.24);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.notice-empty {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(15, 23, 42, 0.36);
  font-size: 14px;
  font-weight: 800;
  padding: 56px 0;
  text-align: center;
}

.notice-empty:empty {
  display: none;
}

.notice-detail-card {
  padding-top: 34px;
}

.notice-detail-category {
  margin-bottom: 16px;
}

.notice-detail-card h1 {
  color: var(--black);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

.notice-detail-summary {
  margin: 10px 0 0;
  color: rgba(15, 23, 42, 0.58);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.notice-detail-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(15, 23, 42, 0.38);
  font-size: 13px;
  font-weight: 800;
  padding-bottom: 24px;
}

.notice-detail-content {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  color: rgba(15, 23, 42, 0.72);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.85;
  white-space: pre-wrap;
}

.notice-code-panel {
  margin-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 24px;
}

.notice-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.notice-code-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.notice-pill {
  flex: 0 0 auto;
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.invite-code-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.invite-code-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(15, 23, 42, 0.48);
  font-size: 14px;
  font-weight: 800;
}

.invite-code-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: var(--small-border);
  background: var(--yellow-soft);
  color: var(--black);
  padding: 9px 10px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.invite-code-item:not(:disabled):hover {
  box-shadow: 4px 4px 0 var(--cyan);
  transform: translate(-1px, -1px);
}

.invite-code-item:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  text-decoration: line-through;
}

.invite-code-value {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 900;
}

.invite-status {
  flex: 0 0 auto;
  border: 1px solid var(--black);
  background: var(--white);
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 900;
}

.notice-back-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  min-height: 40px;
  border: var(--small-border);
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  padding: 8px 16px;
  transition: background-color 160ms ease, color 160ms ease;
}

.notice-back-footer:hover {
  background: var(--black);
  color: var(--white);
}

@media (max-width: 640px) {
  :root {
    --top-nav-height: 122px;
  }

  .top-nav-inner,
  .notice-page-head,
  .notice-detail-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 0;
  }

  .notice-filter-tabs {
    width: 100%;
  }

  .notice-filter-tab {
    flex: 1 1 0;
  }

  .notice-list-item {
    grid-template-columns: 18px 8px minmax(0, 1fr) 16px;
  }

  .notice-row-time {
    grid-column: 3 / 4;
  }

  .notice-select-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .invite-code-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
