/* 成都脱宅团 — 统一视觉 */
:root {
  --ink: #13261f;
  --ink-soft: #3d5248;
  --paper: #f3f6f4;
  --paper-2: #e8eee9;
  --forest: #0f3d36;
  --forest-deep: #0a2924;
  --accent: #e07a2f;
  --accent-hover: #c9651f;
  --line: rgba(19, 38, 31, 0.12);
  --white: #ffffff;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(10, 41, 36, 0.18);
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --space: clamp(1rem, 2.5vw, 1.75rem);
  --section-y: clamp(3.5rem, 8vw, 5.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: var(--forest-deep);
  color: rgba(255,255,255,.78);
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
}
.topbar a:hover { color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 61, 54, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: .04em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.nav a {
  color: rgba(255,255,255,.82);
  padding: .55rem .85rem;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .06em;
  transition: .2s ease;
}
.nav a:hover,
.nav a.is-active {
  color: #fff;
  background: rgba(224, 122, 47, .22);
}
.nav a.is-active { color: var(--accent); }
.nav-cta {
  margin-left: .4rem;
  background: var(--accent) !important;
  color: #fff !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: .35rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--forest-deep) center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,41,36,.35) 0%, rgba(10,41,36,.72) 55%, rgba(10,41,36,.92) 100%),
    linear-gradient(90deg, rgba(10,41,36,.55), transparent 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(3rem, 8vw, 4.5rem);
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  font-size: 12px;
  letter-spacing: .12em;
  margin-bottom: 1.1rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: .02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  margin: 0 0 1.6rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,.86);
  max-width: 36em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 46px;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  transition: .2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: #fff;
}

/* Sections */
.section {
  padding: var(--section-y) 0;
}
.section-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 40rem;
}
.eyebrow {
  margin: 0 0 .5rem;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.25;
  font-weight: 400;
  color: var(--forest);
}
.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.page-hero {
  background: var(--forest);
  color: #fff;
  padding: clamp(3rem, 8vw, 4.5rem) 0;
}
.page-hero h1 {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
}
.page-hero p {
  margin: 0;
  max-width: 36em;
  color: rgba(255,255,255,.82);
}

/* Feature / activity strips */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature {
  padding: 1.35rem 1.25rem;
  border-top: 3px solid var(--accent);
  background: var(--white);
}
.feature h3 {
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest);
  font-weight: 400;
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.activity-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1rem;
  background: var(--white);
  border: 1px solid transparent;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  transition: transform .2s ease, border-color .2s ease;
}
.activity-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
  min-width: 2rem;
}
.activity-item h3 {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  color: var(--forest);
}
.activity-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Games */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.game-tile {
  display: block;
  background: var(--white);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.game-tile img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  background: var(--paper-2);
}
.game-tile .meta {
  padding: .85rem .9rem 1rem;
}
.game-tile h3 {
  margin: 0 0 .3rem;
  font-size: 15px;
  color: var(--forest);
  line-height: 1.35;
}
.game-tile p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.games-status {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 1rem;
  text-align: center;
}
.games-sentinel {
  height: 1px;
  width: 100%;
  margin-top: .5rem;
}

/* Calendar */
.calendar-layout {
  display: block;
}
.calendar {
  background: var(--white);
  padding: 1.5rem 1.35rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.calendar-wide {
  width: 100%;
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}
.cal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 1.85rem);
  color: var(--forest);
  font-weight: 400;
}
.cal-head button,
.cal-nav button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  cursor: pointer;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .55rem;
  text-align: left;
}
.cal-dow {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: .45rem .3rem;
  text-align: center;
}
.cal-day {
  min-height: 118px;
  border-radius: 12px;
  padding: .5rem .4rem .55rem;
  font-size: 15px;
  background: var(--paper);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  border: 1px solid transparent;
}
.cal-num {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.2;
  text-align: right;
  padding-right: .15rem;
}
.cal-day.is-muted { opacity: .35; }
.cal-day.has-event {
  background: rgba(15, 61, 54, .06);
  border-color: rgba(15, 61, 54, .12);
}
.cal-day.has-dated {
  background: rgba(224, 122, 47, .1);
  border-color: rgba(224, 122, 47, .35);
}
.cal-day.is-today {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
}
.cal-events {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}
.cal-slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cal-ev {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  padding: .28rem .35rem;
  border-radius: 6px;
  background: rgba(15, 61, 54, .1);
  color: var(--forest);
  overflow: hidden;
  transition: background .15s ease, color .15s ease;
}
.cal-ev-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
}
/* 主题备注：在色块外的空白处，与活动名区分 */
.cal-ev-theme {
  margin: 0 .15rem;
  padding: 0 .15rem;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-soft);
  background: transparent;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.cal-ev:hover {
  background: var(--forest);
  color: #fff;
}
.cal-ev.is-dated {
  background: rgba(224, 122, 47, .18);
  color: var(--accent-hover);
}
.cal-ev.is-dated:hover {
  background: var(--accent);
  color: #fff;
}
.cal-ev.is-past,
.cal-slot.is-past .cal-ev {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}
.cal-slot.is-past .cal-ev-theme {
  color: #b0b5bd;
}
.cal-day.is-past-day.has-dated {
  background: #f3f4f6;
  border-color: #e5e7eb;
}
.cal-ev-more {
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
}
.cal-ev-more.is-past {
  color: #c0c4cc;
  pointer-events: none;
}
.cal-dot { display: none; }
.event-panel { display: none; }
.event-row {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.event-row:last-child { border-bottom: 0; }
.event-row strong {
  display: block;
  color: var(--forest);
  margin-bottom: .2rem;
}
.event-row span {
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .cal-day { min-height: 96px; padding: .35rem .25rem; }
  .cal-num { font-size: 13px; }
  .cal-dow { font-size: 12px; }
  .cal-ev { font-size: 12px; padding: .2rem .25rem; }
  .cal-ev-theme { font-size: 11px; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: center;
}
.about-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--forest);
  font-weight: 400;
}
.about-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat {
  padding-top: .75rem;
  border-top: 2px solid var(--accent);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--forest);
  font-weight: 400;
}
.stat span {
  font-size: 13px;
  color: var(--ink-soft);
}
.about-visual {
  min-height: 360px;
  background: center/cover no-repeat;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Form */
.form-shell {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}
.form-aside {
  background: var(--forest);
  color: #fff;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
}
.form-aside h2 {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
}
.form-aside p {
  margin: 0 0 1rem;
  color: rgba(255,255,255,.82);
  font-size: 14px;
}
.form-aside ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}
.form-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  margin-bottom: .4rem;
  font-size: 14px;
  color: var(--forest);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem .9rem;
  background: var(--paper);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-hint {
  margin-top: .4rem;
  font-size: 12px;
  color: var(--accent-hover);
  display: none;
}
.field-hint.is-on { display: block; }
.form-msg {
  margin-top: .75rem;
  font-size: 14px;
  color: var(--ink-soft);
}
.form-msg.is-error { color: #b42318; }
.form-msg.is-ok { color: #0f7a4c; }

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.site-footer h3 {
  margin: 0 0 .75rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}
.site-footer a:hover { color: var(--accent); }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1rem;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  justify-content: space-between;
}

/* Activity detail */
.activity-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .7fr);
  gap: 1.75rem;
  align-items: start;
}
.activity-article {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.activity-article h2 {
  margin: 1.75rem 0 .75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: var(--forest);
}
.activity-article h3 {
  margin: 1.25rem 0 .6rem;
  font-size: 1.05rem;
  color: var(--forest);
}
.activity-article p { margin: 0 0 .85rem; color: var(--ink-soft); }
.activity-lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.55;
  color: var(--forest);
  margin-bottom: 1.25rem;
}
.activity-punch {
  color: var(--ink) !important;
  font-size: 1.05rem;
}
.activity-list-plain,
.activity-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
.activity-list-plain li,
.activity-steps li { margin-bottom: .45rem; }
.booth-table-wrap {
  overflow-x: auto;
  margin: .75rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.booth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.booth-table th,
.booth-table td {
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.booth-table th {
  background: var(--paper-2);
  color: var(--forest);
  font-weight: 600;
}
.booth-table tr:last-child td { border-bottom: 0; }
.activity-cta {
  position: sticky;
  top: 88px;
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}
.activity-cta h2 {
  margin: 0 0 .65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
}
.activity-cta p {
  margin: 0 0 1rem;
  color: rgba(255,255,255,.82);
  font-size: 14px;
}
.activity-cta ul {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}
.activity-cta .btn { width: 100%; justify-content: center; }
.activity-item a.activity-item-link {
  display: contents;
  color: inherit;
}
.activity-item:hover {
  border-color: rgba(224, 122, 47, .45);
  transform: translateY(-2px);
}
.activity-item h3 a {
  color: inherit;
}
.activity-item h3 a:hover { color: var(--accent); }
.event-link {
  color: var(--accent);
  font-size: 13px;
}
.event-link:hover { text-decoration: underline; }
.date-hint {
  margin: 0 0 1rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  background: #fff4ec;
  color: var(--accent-hover);
  font-size: 13px;
  display: none;
}
.date-hint.is-on { display: block; }
.activity-closing {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.65;
  color: var(--forest);
}
.activity-closing p { margin: 0 0 .5rem; color: inherit; }

@media (max-width: 960px) {
  .feature-grid,
  .activity-list,
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-layout,
  .about-grid,
  .form-shell,
  .activity-detail,
  .footer-grid { grid-template-columns: 1fr; }
  .activity-cta { position: static; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--forest-deep);
    padding: .75rem;
    gap: .25rem;
  }
  .nav.is-open { display: flex; }
  .nav-cta { margin-left: 0; }
  .games-grid,
  .feature-grid,
  .activity-list { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}
