/* ==========================================================================
   ICF 2027 官网 — 预览版
   视觉语言取自 IC 官方站（www.iwbtc.cn）：近黑底 + 星空 + 像素风亮青/黄绿多色字。
   版式结构参考 FASF（iwfasf.com）：简述 + 节目/届次卡片 + 图标元数据。
   ========================================================================== */

:root {
  --bg: #0b0d12;
  --bg2: #11141c;
  --panel: #151924;
  --line: #232937;
  --txt: #dfe7f2;
  --dim: #8b97a8;
  --cyan: #35e6d0;
  --blue: #4f9bff;
  --yellow: #eaff6b;
  --lime: #a6f56b;
  --gold: #ffd95e;
  --pink: #ff8bc4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font: 16px/1.75 "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.wrap.narrow { width: min(760px, calc(100% - 48px)); }

/* ---------------------------------------------------------------- 加载失败 */
.loadFail {
  position: relative; z-index: 200; padding: 14px 20px; font-size: 14px;
  background: #3a1a1a; color: #ffd0d0; border-bottom: 1px solid #6a2a2a; text-align: center;
}
.loadFail b { color: #fff; }

/* ---------------------------------------------------------------- 报名未开 */
.closedBox {
  margin-bottom: 30px; padding: 18px 22px; font-size: 14.5px; line-height: 1.9;
  background: rgba(255,217,94,.06); border: 1px solid rgba(255,217,94,.22);
  border-radius: 6px; color: #d8c79a;
}
.closedBox[hidden] { display: none; }

/* ---------------------------------------------------------------- 顶栏 */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: rgba(11,13,18,0); transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(11,13,18,.92); border-bottom-color: var(--line); backdrop-filter: blur(10px); }
.navIn {
  width: min(1120px, calc(100% - 48px)); margin: 0 auto;
  height: 62px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: baseline; gap: 6px; color: #fff; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logoMark {
  font-family: Consolas, monospace; font-weight: 700; font-size: 19px; letter-spacing: 2px;
  color: var(--cyan); text-shadow: 0 0 14px rgba(53,230,208,.5);
}
.logoYear { font-family: Consolas, monospace; font-size: 13px; color: var(--dim); letter-spacing: 1px; }

.navLinks { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 14px; }
.navLinks a { color: var(--dim); }
.navLinks a:hover { color: #fff; text-decoration: none; }
.navLinks a.cta {
  color: #06110f; background: var(--cyan); padding: 7px 18px; border-radius: 4px;
  font-weight: 700; box-shadow: 0 0 18px rgba(53,230,208,.32);
}
.navLinks a.cta:hover { background: #5df0dd; text-decoration: none; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
        overflow: hidden; padding: 110px 24px 90px; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 45%, rgba(53,230,208,.09), transparent 70%);
}
.heroIn { position: relative; z-index: 2; text-align: center; max-width: 900px; }

.heroTag {
  display: inline-block; font-size: 13px; letter-spacing: 3px; color: var(--dim);
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 18px; margin-bottom: 34px;
  background: rgba(21,25,36,.6);
}

/* 像素风多色标题 */
.pixelTitle {
  font-family: "Trebuchet MS", "Microsoft YaHei", sans-serif;
  font-size: clamp(46px, 8.6vw, 104px);
  font-weight: 900; letter-spacing: -1px; line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.5));
}
.pixelTitle span { display: inline-block; }
.pixelTitle .w1 { color: #fff; }
.pixelTitle .w2 { color: var(--yellow); }
.pixelTitle .w3 { color: var(--blue); }
.pixelTitle .w4 { color: #fff; }
.pixelTitle .w5 { color: var(--cyan); text-shadow: 0 0 30px rgba(53,230,208,.55); }

.heroYear {
  font-family: Consolas, monospace; font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 14px; color: var(--dim); margin-bottom: 30px;
}

.heroSub { font-size: clamp(15px, 1.6vw, 18px); color: #b9c4d4; line-height: 1.9; margin: 0 auto 40px; max-width: 640px; }

.heroMeta { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; margin-bottom: 44px; }
.heroMeta .m { display: flex; flex-direction: column; gap: 5px; }
.heroMeta .mk { font-size: 12px; letter-spacing: 2px; color: var(--dim); }
.heroMeta .mv { font-family: Consolas, "Microsoft YaHei", monospace; font-size: 17px; color: #fff; }

.heroBtns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 32px; border-radius: 5px; font-size: 15px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: all .18s; white-space: nowrap;
  font-family: inherit;
}
.btn.primary { background: var(--cyan); color: #041210; box-shadow: 0 0 26px rgba(53,230,208,.3); }
.btn.primary:hover { background: #63f2e0; box-shadow: 0 0 36px rgba(53,230,208,.5); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--txt); border-color: #33405280; }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); text-decoration: none; }
.btn.big { padding: 15px 46px; font-size: 16px; }

.heroFoot { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; z-index: 2; }
.scrollHint { font-size: 12px; letter-spacing: 3px; color: #55606f; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0); opacity:.6 } 50%{ transform: translateY(6px); opacity:1 } }

/* ---------------------------------------------------------------- 区块 */
.sec { padding: 100px 0; border-top: 1px solid var(--line); scroll-margin-top: 62px; }
.sec.alt { background: var(--bg2); }
.secTitle {
  display: flex; align-items: center; gap: 14px;
  font-size: 27px; font-weight: 800; letter-spacing: 1px; margin-bottom: 14px;
}
.secTitle .bar { width: 4px; height: 26px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); border-radius: 2px; }
.secDesc { font-size: 15px; color: var(--dim); margin-bottom: 44px; }
.secDesc b { color: var(--txt); }

/* ---------------------------------------------------------------- 关于 */
.aboutGrid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.aboutText p { font-size: 15.5px; line-height: 2; color: #c3cedd; margin-bottom: 18px; }
.aboutText .lead { font-size: 19px; color: #fff; line-height: 1.9; margin-bottom: 22px; }
.aboutText b { color: var(--cyan); }
.noJargon {
  margin-top: 26px; padding: 16px 20px; font-size: 14px; color: #a8b4c4;
  background: rgba(53,230,208,.05); border-left: 3px solid var(--cyan); border-radius: 0 5px 5px 0;
}
.noJargon b { color: var(--yellow); }

.aboutCards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  padding: 24px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px;
  text-align: center;
}
.stat .sn { font-family: Consolas, monospace; font-size: 42px; font-weight: 700; color: var(--cyan); line-height: 1; }
.stat .sn span { font-size: 20px; color: var(--dim); }
.stat .sl { font-size: 13px; color: var(--dim); margin-top: 8px; }

.note {
  margin-top: 40px; padding: 20px 24px; font-size: 14.5px; line-height: 1.95; color: #b3bfd0;
  background: rgba(255,217,94,.05); border: 1px solid rgba(255,217,94,.18); border-radius: 6px;
}
.note b { color: var(--gold); }

/* ---------------------------------------------------------------- 节目表 */
.pgBoard { display: flex; flex-direction: column; gap: 34px; }
.pgGroupTitle {
  font-size: 13px; letter-spacing: 3px; color: var(--cyan);
  padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.pgGroupTitle::before { content: "◆ "; font-size: 11px; }
.pgRow {
  display: flex; align-items: flex-start; gap: 20px; padding: 16px 4px;
  border-bottom: 1px solid #1a1f29;
}
.pgRow:last-child { border-bottom: 0; }
.pgMain { flex: 1; min-width: 0; }
.pgName { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.pgNote {
  font-size: 11.5px; font-weight: 400; letter-spacing: .5px; vertical-align: 2px;
  padding: 2px 8px; border-radius: 3px; color: var(--gold);
  background: rgba(255,217,94,.1); border: 1px solid rgba(255,217,94,.22);
}
.pgDesc { font-size: 13.5px; line-height: 1.8; color: #8e9aab; }
.pgRight {
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
  flex: 0 0 auto; padding-top: 2px;
}
.pgCap { font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.pgStat { font-size: 12px; color: #6d7a8c; font-family: Consolas, monospace; white-space: nowrap; }

/* 选中的节目要填游戏名 */
.gameSlots { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.gameSlot { display: flex; flex-direction: column; gap: 8px; }
.gameSlot .lbl { color: var(--gold); }

/* ---------------------------------------------------------------- 表单 */
.form { display: flex; flex-direction: column; gap: 32px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.lbl { font-size: 15px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 9px; }
.lbl.sm { font-size: 13.5px; font-weight: 600; color: #b9c4d4; }
.req, .opt {
  font-size: 11px; font-weight: 400; padding: 2px 8px; border-radius: 3px; letter-spacing: 1px;
}
.req { background: rgba(53,230,208,.14); color: var(--cyan); }
.opt { background: #1d222d; color: var(--dim); }

input[type="text"], input[type="number"], textarea {
  width: 100%; padding: 13px 16px; font: inherit; font-size: 15px;
  background: #0d1017; color: var(--txt);
  border: 1px solid #2a3242; border-radius: 6px; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
input::placeholder, textarea::placeholder { color: #4d5766; }
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(53,230,208,.12); }
textarea { resize: vertical; line-height: 1.7; }

.hint { font-size: 12.5px; color: #6b7788; line-height: 1.75; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.chip {
  font: inherit; font-size: 13.5px; padding: 8px 15px; cursor: pointer;
  background: #0d1017; color: #9dabbd;
  border: 1px solid #2a3242; border-radius: 100px;
  transition: all .16s;
}
.chip:hover { border-color: #3d4a5e; color: #fff; }
.chip.on {
  background: rgba(53,230,208,.14); color: var(--cyan);
  border-color: var(--cyan); box-shadow: 0 0 12px rgba(53,230,208,.2);
}
.chip.on::before { content: "✓ "; }

.field.sub { margin-top: 22px; padding-top: 20px; border-top: 1px dashed #232937; }

/* duration */
.durRow { display: flex; align-items: center; gap: 12px; max-width: 240px; }
.durRow input { font-family: Consolas, monospace; font-size: 20px; text-align: center; padding: 14px; }
.durRow .unit { font-size: 15px; color: var(--dim); white-space: nowrap; }
.durTips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); }
.mini {
  font: inherit; font-size: 12.5px; padding: 5px 12px; cursor: pointer;
  background: #0d1017; color: #9dabbd; border: 1px solid #2a3242; border-radius: 4px;
}
.mini:hover { border-color: var(--cyan); color: var(--cyan); }

.submitRow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 6px; }
.subNote { font-size: 13.5px; color: var(--cyan); }
.subNote.err { color: #ff8080; }

.fine { font-size: 12.5px; color: #5c6878; line-height: 1.9; margin-top: -14px; }

input.invalid, textarea.invalid { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,.12); }

/* ---------------------------------------------------------------- 底部 */
.foot { padding: 60px 0 40px; border-top: 1px solid var(--line); background: #080a0e; }
.footGrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 42px; }
.footTitle { font-size: 13px; letter-spacing: 2px; color: var(--dim); margin-bottom: 12px; }
.footDesc { font-size: 13.5px; line-height: 2; color: #7b8798; }
.footDesc a { color: #7b8798; }
.footDesc a:hover { color: var(--cyan); }
.footBar {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid #171b24;
  font-size: 12px; color: #4d5766;
}

/* ---------------------------------------------------------------- 弹层 */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4,6,9,.86); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal[hidden] { display: none; }
.modalBox {
  width: min(620px, 100%); max-height: 84vh; overflow: auto;
  background: var(--panel); border: 1px solid #2a3242; border-radius: 10px; padding: 30px 32px;
}
.modalBox h3 { font-size: 21px; margin-bottom: 8px; color: var(--cyan); }
.modalSub { font-size: 13.5px; color: var(--dim); margin-bottom: 20px; line-height: 1.8; }
.modalBox pre {
  font-family: Consolas, monospace; font-size: 12.5px; line-height: 1.7;
  background: #0a0d13; color: #96e3d4; padding: 16px 18px; border-radius: 6px;
  border: 1px solid #1c222d; overflow: auto; max-height: 40vh; white-space: pre-wrap; word-break: break-all;
}
.modalBtns { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }

/* ---------------------------------------------------------------- 蜜罐 */
/* 真人看不到，机器人会填 —— 不占位、不可聚焦、读屏也跳过 */
.hp {
  position: absolute !important;
  left: -9999px !important; top: auto !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 860px) {  .aboutGrid { grid-template-columns: 1fr; gap: 36px; }
  .navLinks { gap: 16px; font-size: 13px; }
  .navLinks a:not(.cta) { display: none; }
  .heroMeta { gap: 26px; }
  .sec { padding: 72px 0; }
  .footGrid { grid-template-columns: 1fr; gap: 28px; }
  .pixelTitle { letter-spacing: -0.5px; }
  .aboutCards { grid-template-columns: 1fr 1fr; }
  .wrap, .wrap.narrow { width: calc(100% - 36px); }
}

/* ---------------------------------------------------------------- 禁用态 / 小屏补充 */
.btn:disabled {
  background: #232937; color: #5f6b7c; cursor: not-allowed; box-shadow: none;
}
.btn:disabled:hover { background: #232937; color: #5f6b7c; }

@media (max-width: 860px) {
  .pgRow { flex-direction: column; gap: 8px; }
  .pgRight { flex-direction: row; align-items: center; gap: 14px; }
  .pgName { font-size: 15px; }
}
