/* index.css — MiniCamp 欢迎页（站点首页 index.html）专用样式
 *
 * 页面定位：介绍 MiniCamp 是什么、有哪些内容、由谁举办，并提供「选择届次」入口
 * 与历届作品展示（作品数据来自 data/editions.json，见 data/README.md）。
 * 具体的赛程、规则、奖项与报名表单都在 2026info.html，本页不复述细节。
 *
 * 命名说明：本文件是站点首页的样式，所以随页面叫 index.css —— 与 2026info.css 并列。
 * 2026 赛事信息页（2026info.html）改名之前，这个文件名曾被那一页占用，注意别改错文件。
 *
 * 依赖：base.css（变量、按钮、站点头部、footer 等公共部分）。 */

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - 146px); max-height: 900px; overflow: hidden; color: white; background: var(--ink); }
.hero-content { position: relative; z-index: 2; padding-top: clamp(66px, 9vh, 108px); padding-bottom: 84px; }
.hero .eyebrow { margin-bottom: 30px; color: var(--yellow); font-size: 13px; font-weight: 800; }
.hero-wordmark { width: min(430px, 60vw); height: auto; display: block; margin-bottom: 26px; filter: brightness(0) invert(1); }
.hero h1 { max-width: 880px; margin-bottom: 22px; font-size: clamp(38px, 5.2vw, 76px); line-height: 1; font-weight: 900; letter-spacing: 0; }
.hero-tagline { margin-bottom: 26px; color: var(--yellow); font: 800 clamp(12px, 1.1vw, 15px) Consolas, monospace; letter-spacing: .08em; }
.hero-lead { max-width: 620px; margin-bottom: 36px; color: #d7d7d0; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 58px; }
.hero-meta div { display: flex; flex-direction: column; gap: 7px; }
.hero-meta span { color: #98988f; font-size: 12px; }
.hero-meta strong { font-size: 14px; font-weight: 700; }

/* Hero 装饰场景（与 2026 信息页同一套语言，换一套更偏「造物」的文案） */
.hero-scene { position: absolute; inset: 0 0 0 42%; overflow: hidden; opacity: .8; }
.scene-grid { position: absolute; inset: 0; background-image: linear-gradient(#ffffff10 1px, transparent 1px), linear-gradient(90deg, #ffffff10 1px, transparent 1px); background-size: 48px 48px; transform: perspective(600px) rotateY(-8deg) scale(1.1); }
.scene-label { position: absolute; padding: 7px 10px; border: 1px solid #ffffff55; font: 700 10px Consolas, monospace; }
.scene-label-one { top: 14%; right: 12%; }
.scene-label-two { bottom: 20%; right: 38%; }
.scene-window { position: absolute; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); box-shadow: 9px 9px 0 var(--coral); }
.window-code { top: 25%; right: 9%; width: 340px; padding: 18px 22px 24px; transform: rotate(2deg); animation: floatA 7s ease-in-out infinite; }
.window-bar { display: flex; gap: 5px; margin: -5px 0 22px; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.window-code p { margin: 9px 0; font: 700 13px Consolas, monospace; }
.window-code p span { display: inline-block; width: 25px; color: var(--coral); }
.window-team { right: 27%; bottom: 15%; width: 232px; padding: 22px; box-shadow: 9px 9px 0 var(--cyan); transform: rotate(-3deg); animation: floatB 8s ease-in-out infinite; }
.window-team > strong { font: 800 13px Consolas, monospace; }
.avatar-row { display: flex; margin: 24px 0 12px; }
.avatar-row i { width: 42px; height: 42px; margin-right: -7px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; background: var(--yellow); }
.avatar-row i:nth-child(2) { background: var(--cyan); }
.avatar-row i:nth-child(3) { background: var(--coral); }
.avatar-row i:nth-child(4) { background: white; }
.window-team small { color: var(--muted); font-weight: 700; }
.scene-cursor { position: absolute; padding: 5px 8px; color: var(--ink); background: var(--yellow); font: 800 9px Consolas, monospace; clip-path: polygon(0 0, 100% 18%, 75% 42%, 100% 73%, 81% 87%, 57% 55%, 28% 100%); width: 75px; height: 58px; }
.cursor-one { top: 19%; left: 34%; animation: cursorA 9s ease-in-out infinite; }
.cursor-two { top: 62%; right: 11%; background: var(--cyan); animation: cursorB 8s ease-in-out infinite; }
.cursor-three { bottom: 11%; left: 21%; background: var(--coral); animation: cursorC 10s ease-in-out infinite; }
@keyframes floatA { 50% { transform: rotate(-1deg) translateY(-12px); } }
@keyframes floatB { 50% { transform: rotate(1deg) translateY(10px); } }
@keyframes cursorA { 50% { transform: translate(80px, 45px); } }
@keyframes cursorB { 50% { transform: translate(-70px, -35px); } }
@keyframes cursorC { 50% { transform: translate(45px, -60px); } }

/* ---------- 事实条 ---------- */
.fact-band { color: white; background: var(--green); }
.fact-grid { min-height: 108px; display: grid; grid-template-columns: repeat(4, 1fr); }
.fact-grid div { padding: 24px 22px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border-left: 1px solid #ffffff44; }
.fact-grid div:last-child { border-right: 1px solid #ffffff44; }
.fact-grid strong { font: 800 22px Consolas, monospace; }
.fact-grid span { color: #e6f2ed; font-size: 12px; }

/* ---------- 是什么 ---------- */
.about-section { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 96px; }
.about-grid h2 { font-size: clamp(38px, 4.6vw, 66px); }
.about-copy { padding-top: 42px; }
.about-copy p { margin-bottom: 22px; color: #3f3f39; font-size: 16px; line-height: 1.85; }
.about-copy strong { color: var(--ink); }
.about-slogan { padding-top: 22px; border-top: 1px solid var(--line); color: var(--coral-strong) !important; font: 800 15px Consolas, monospace; }

/* ---------- 两天怎么过 ---------- */
.flow-section { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 58px; display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 70px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ---------- 有哪些内容 ---------- */
.content-section { background: var(--paper); }
.inside-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.inside-card { min-height: 300px; padding: 26px; display: flex; flex-direction: column; background: white; border: 1px solid var(--ink); border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease; }
.inside-card:hover { transform: translateY(-6px); box-shadow: 7px 7px 0 var(--ink); }
.inside-index { font: 800 10px Consolas, monospace; color: var(--coral); }
.inside-card h3 { margin: 34px 0 14px; font-size: 24px; line-height: 1.2; }
.inside-card p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.inside-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.inside-tags span { padding: 6px 9px; background: #f1f0ea; border: 1px solid #e6e6df; border-radius: 3px; font: 700 10px Consolas, monospace; }
.content-note { max-width: 640px; margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- 谁举办 ---------- */
.organizer-band { padding: 104px 0 92px; color: white; background: var(--green); overflow: hidden; }
.organizer-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 86px; align-items: stretch; }
.organizer-intro { display: flex; flex-direction: column; gap: 32px; }
.organizer-layout h2 { max-width: 520px; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; }
.organizer-note { max-width: 420px; padding-top: 18px; display: grid; grid-template-columns: 58px 1fr; gap: 14px; border-top: 1px solid #ffffff77; }
.organizer-note > span { font: 700 10px Consolas, monospace; letter-spacing: .04em; }
.organizer-note p { margin: 0; color: #d8eee6; font-size: 12px; line-height: 1.75; }
.organizer-note strong { color: white; }
.organizer-network { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.organizer-network-head, .organizer-network-foot { display: flex; justify-content: space-between; gap: 18px; color: #d8eee6; font: 700 10px Consolas, monospace; letter-spacing: .04em; }
.organizer-network-head { padding-bottom: 17px; border-bottom: 1px solid #ffffff77; }
.organizer-network-head span:last-child { color: var(--yellow); }
.organizer-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 22px; }
.organizer-card { min-height: 320px; padding: 17px; display: flex; flex-direction: column; color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease; }
.organizer-card:hover { transform: translateY(-7px); box-shadow: 7px 7px 0 var(--ink); }
.organizer-card-coral { background: var(--coral); }
.organizer-card-yellow { background: var(--yellow); }
.organizer-card-cyan { background: var(--cyan); }
.organizer-card-top { font: 700 9px Consolas, monospace; letter-spacing: .04em; }
.organizer-logo { min-height: 118px; margin: 24px 0; display: grid; place-items: center; }
.organizer-logo img { width: min(100%, 146px); max-height: 76px; object-fit: contain; }
.organizer-card-copy { margin-top: auto; padding-top: 15px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #11111155; }
.organizer-card-copy strong { font-size: 17px; line-height: 1.2; }
.organizer-card-copy small { color: #31312d; font-size: 11px; line-height: 1.6; }
.organizer-network-foot { padding-top: 17px; border-top: 1px solid #ffffff55; font-size: 9px; }

/* ---------- 选择届次 ---------- */
.editions-section { background: var(--paper); }
.editions-status { min-height: 20px; margin: -34px 0 26px; color: var(--muted); font-size: 12px; }
.editions-status.is-error { color: var(--error); }
.edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.edition-card { min-height: 430px; padding: 30px; display: flex; flex-direction: column; color: var(--ink); background: white; border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: 7px 7px 0 var(--ink); }
.edition-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.edition-card-year { font: 900 clamp(44px, 5vw, 66px)/1 Consolas, monospace; }
.edition-badge { padding: 6px 11px; border: 1px solid var(--ink); border-radius: 999px; font: 800 10px Consolas, monospace; white-space: nowrap; }
.edition-badge.is-open { color: white; background: var(--green); border-color: var(--green); }
.edition-badge.is-soon { color: #5b5b55; background: #ececE5; border-color: #c9c9c1; }
.edition-badge.is-archived { color: var(--ink); background: var(--yellow); border-color: var(--ink); }
.edition-card h3 { margin: 22px 0 12px; font-size: 27px; line-height: 1.15; }
.edition-card > p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.edition-card-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.edition-card-facts { margin: 0 0 24px; display: grid; gap: 8px; }
.edition-card-facts > div { display: flex; gap: 12px; font-size: 12px; }
.edition-card-facts dt { flex: 0 0 76px; color: var(--muted); }
.edition-card-facts dd { margin: 0; font-weight: 700; }
.edition-card-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.edition-card-unavailable { padding: 0; border: 0; background: transparent; color: var(--muted); font: 800 12px Consolas, monospace; }
.edition-card.is-soon { box-shadow: 4px 4px 0 var(--line); border-color: var(--line); background: #fbfbf7; }

/* ---------- 历届作品 ---------- */
.works-section { background: white; border-top: 1px solid var(--line); }
.works-toolbar { margin: -22px 0 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.works-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.works-filter button { padding: 10px 15px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px; font-weight: 800; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.works-filter button:hover { border-color: var(--ink); }
.works-filter button[aria-pressed="true"] { color: white; background: var(--ink); border-color: var(--ink); }
.works-count { margin: 0; color: var(--muted); font: 700 11px Consolas, monospace; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-card { padding: 22px; display: flex; flex-direction: column; background: white; border: 1px solid var(--ink); border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease; }
.work-card:hover { transform: translateY(-5px); box-shadow: 6px 6px 0 var(--ink); }
.work-cover { aspect-ratio: 16 / 9; margin-bottom: 18px; position: relative; display: grid; place-items: center; overflow: hidden; background: #f1f0ea; border: 1px solid var(--line); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; }
.work-cover-mark { color: #b9b9b1; font: 800 12px Consolas, monospace; }
.work-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.work-year { font: 800 10px Consolas, monospace; color: var(--coral); }
.work-title { margin: 14px 0 8px; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.work-tagline { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.work-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.work-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.work-meta span { padding: 6px 9px; background: #f1f0ea; border: 1px solid #e6e6df; border-radius: 3px; font: 700 10px Consolas, monospace; }
.work-award { padding: 6px 10px; color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); border-radius: 999px; font-size: 10px; font-weight: 800; }
.work-actions { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.work-actions a { color: var(--ink); font-size: 12px; font-weight: 800; border-bottom: 1px solid var(--ink); }
.work-actions .button { min-height: 42px; padding: 0 16px; font-size: 12px; }
.work-card.is-placeholder { border-style: dashed; border-color: var(--line); background: #fbfbf7; }
.work-card.is-placeholder:hover { transform: none; box-shadow: none; }
.work-card.is-placeholder .work-title { color: var(--muted); }
.work-placeholder-tag { padding: 5px 9px; color: #5b5b55; background: #ececE5; border: 1px solid #c9c9c1; border-radius: 999px; font: 800 10px Consolas, monospace; }
.works-hint { max-width: 720px; margin: 28px 0 0; padding: 22px 24px; color: var(--muted); background: #f2f2ed; border-radius: var(--radius); font-size: 13px; line-height: 1.75; }
.works-empty { grid-column: 1 / -1; padding: 42px 24px; color: var(--muted); background: #f7f7f2; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; font-size: 13px; line-height: 1.7; }

/* ---------- footer ----------
 * base.css 不含站尾样式：2026 信息页的站尾定义在 2026info.css 里，欢迎页不加载那个文件，
 * 所以这里按同一套视觉补一份（改站尾外观时两个文件都要看一眼）。 */
.site-footer { padding: 56px 0 24px; color: white; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 34px; }
.footer-grid span { color: #85857d; font-size: 11px; }
.footer-grid p { margin: 8px 0 0; font-size: 13px; }
.footer-brand-block { display: grid; grid-template-columns: 136px auto; align-items: center; justify-content: start; gap: 8px; }
.footer-brand-block p { grid-column: 1 / -1; }
.footer-wordmark { width: 136px; height: auto; display: block; filter: brightness(0) invert(1); }
.footer-bottom { margin-top: 50px; padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; color: #77776f; border-top: 1px solid #ffffff22; font-size: 11px; }
.footer-grid a { border-bottom: 1px solid #ffffff44; }
.footer-grid a:hover { color: var(--yellow); border-color: var(--yellow); }
.footer-grid > div > p + p { margin-top: 6px; }
.footer-soon { color: #6f6f68; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .about-grid { gap: 60px; }
  .inside-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero { min-height: 720px; max-height: none; }
  .hero-scene { inset: 0 0 0 24%; opacity: .4; }
  .scene-cursor { display: none; }
  .window-team { right: 4%; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact-grid div { border-bottom: 1px solid #ffffff44; }
  .fact-grid div:nth-child(2n) { border-right: 1px solid #ffffff44; }
  .about-grid, .section-heading, .organizer-layout, .edition-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-copy { padding-top: 0; }
  .organizer-intro { gap: 24px; }
  .editions-status { margin-top: -20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .inside-grid, .works-grid, .organizer-cards { grid-template-columns: 1fr; }
  .organizer-card { min-height: 260px; }
  .organizer-network-head, .organizer-network-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-heading { margin-bottom: 38px; }
}

@media (max-width: 620px) {
  .hero { min-height: 680px; }
  .hero-wordmark { width: min(300px, 74vw); margin-bottom: 20px; }
  .hero h1 { font-size: 33px; }
  .hero-tagline { font-size: 11px; letter-spacing: .04em; }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .hero-actions .button { width: 100%; }
  .hero-meta { margin-top: 44px; gap: 20px; flex-direction: column; }
  .hero-scene { inset: 0; opacity: .2; }
  .window-code { top: 16%; right: -160px; }
  .window-team { right: -60px; bottom: 10%; }
  .fact-grid div { padding: 18px 14px; }
  .fact-grid strong { font-size: 17px; }
  .fact-grid span { font-size: 11px; }
  .about-copy p { font-size: 15px; }
  .inside-card { min-height: 0; padding: 22px; }
  .edition-card { min-height: 0; padding: 22px; box-shadow: 5px 5px 0 var(--ink); }
  .work-card { padding: 18px; }
  .works-toolbar { margin-top: -10px; }
  .content-note, .works-hint { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .window-code, .window-team, .scene-cursor { animation: none; }
}
