:root {
  --bg: rgb(232, 236, 239);
  --paper: rgb(251, 250, 247);
  --ink: rgb(29, 38, 48);
  --muted: rgb(91, 102, 114);
  --red: rgb(168, 50, 42);
  --line: rgb(201, 208, 214);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* 票券造型:左側紅色票頭 + 虛線撕線 */
.notice {
  display: flex;
  width: 100%;
  max-width: 760px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(29, 38, 48, .12);
  overflow: hidden;
}

.stub {
  flex: 0 0 92px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2px dashed rgba(255, 255, 255, .6);
}

.stub span {
  writing-mode: vertical-rl;
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: 22px;
  letter-spacing: .5em;
  padding: 24px 0;
}

.body {
  flex: 1;
  padding: 44px 48px;
}

.logo {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 0 32px;
}

h1 {
  margin: 0 0 24px;
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.4;
}

p { margin: 0 0 16px; }

.greeting { font-weight: 700; }

.channels {
  list-style: none;
  margin: 20px 0 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.channels li {
  position: relative;
  padding-left: 22px;
}

.channels li + li { margin-top: 6px; }

.channels li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 10px;
  height: 2px;
  background: var(--red);
}

.channels strong { font-weight: 700; }

a {
  color: var(--red);
  text-underline-offset: 3px;
  word-break: break-all;
}

a:hover { color: rgb(124, 33, 27); }

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.thanks {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 560px) {
  body { padding: 16px; align-items: flex-start; }

  .notice { flex-direction: column; }

  .stub {
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 2px dashed rgba(255, 255, 255, .6);
  }

  .stub span {
    writing-mode: horizontal-tb;
    font-size: 18px;
    letter-spacing: .3em;
    padding: 14px 0;
  }

  .body { padding: 28px 24px; }
}
