/* 上岛计划 CodeLand 官网 · 样式（手机优先；平面，无渐变、无阴影） */
@font-face { font-family: "CL Heavy"; src: url("../fonts/SourceHanSansSC-Heavy.subset.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "CL Inter"; src: url("../fonts/Inter-Bold.subset.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F1EFEA; --ink: #141414; --coral: #F25A38; --teal: #0B6E69;
  --line: 3px solid var(--ink);
  --gutter: 20px; --maxw: 1240px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --heavy: "CL Heavy", var(--sans);
  --num: "CL Inter", "CL Heavy", var(--sans);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 12px; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-family: var(--num); font-weight: 700; }
.teal { color: var(--teal); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ── 顶栏 ── */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.logo { display: block; color: var(--ink); line-height: 0; text-decoration: none; }
.logo svg { height: 22px; width: auto; }
.nav { display: none; gap: 22px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--teal); }
.actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; align-items: center; gap: 5px; font-family: var(--num); font-weight: 700; font-size: 14px; }
.lang a { text-decoration: none; color: #8a867e; padding: 6px 1px; }
.lang a[aria-current] { color: var(--ink); }
.lang a:hover { color: var(--teal); }
.lang span { color: #c9c5bc; }

/* ── 按钮 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--coral); color: var(--ink); text-decoration: none; font-family: var(--heavy); font-weight: 900; border: var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 15px; }
.btn-lg { width: 100%; height: 60px; font-size: 22px; }
.btn:active { transform: translate(2px, 2px); }

/* ── 首屏 ── */
/* 首屏正好一屏：高度 = 可视高度 − 顶栏（--topbar 由 JS 量出），内容垂直居中；屏幕太矮时允许超出，不压缩内容 */
:root { --topbar: 57px; }
.hero { display: flex; align-items: center; min-height: calc(100vh - var(--topbar)); min-height: calc(100svh - var(--topbar)); min-height: calc(var(--vh-px, 100svh) - var(--topbar)); padding: 14px 0 18px; }
.hero > .wrap { width: 100%; }
.kicker { font-family: var(--heavy); font-weight: 900; font-size: clamp(18px, 5.2vw, 22px); line-height: 1.35; margin: 10px 0 0; }
.kicker em { font-style: normal; color: var(--coral); }
.hero h1 { margin: 0; color: var(--ink); }
.hero h1 svg { width: 100%; max-width: 540px; height: auto; }
.brandline { margin: 8px 0 0; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--teal); letter-spacing: .5px; }
.hero .sub { font-weight: 700; font-size: 16px; line-height: 1.5; margin: 6px 0 0; }
.hero-art { display: flex; justify-content: center; align-items: flex-end; margin: 12px 0 0; }
.hero-art .island { height: clamp(140px, calc(100svh - 480px), 240px); width: auto; flex: none; }
.daodao { position: absolute; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.hero-art .daodao { position: static; order: -1; flex: none; width: 60px; margin: 0 -10px 4px 0; }   /* 站在岛的西南岸边 */
.infobar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; border-top: var(--line); border-bottom: var(--line); padding: 8px 0; margin: 12px 0 14px; font-weight: 700; font-size: 15px; }
.infobar span + span::before { content: "·"; margin: 0 8px; color: var(--teal); }
.deadline { margin: 10px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
.deadline .count { color: var(--teal); font-weight: 700; }
.deadline .count b { font-family: var(--num); font-size: 16px; }

/* ── 区块 ── */
.section { padding: 48px 0; border-top: var(--line); }
.tag { font-family: var(--num); font-weight: 700; color: var(--teal); font-size: 13px; letter-spacing: 1px; }
.section h2 { font-family: var(--heavy); font-weight: 900; font-size: 28px; line-height: 1.32; margin: 6px 0 18px; }
.section h3 { font-family: var(--heavy); font-weight: 900; font-size: 19px; line-height: 1.4; margin: 0 0 6px; }
.lead { font-size: 17px; }
.note { font-size: 14px; color: #555; }

/* 四个数字 */
.stats { display: grid; grid-template-columns: 1fr 1fr; border: var(--line); margin: 0 0 22px; }
.stat { padding: 14px 14px 16px; border-right: var(--line); border-bottom: var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat .big { font-family: var(--num); font-weight: 700; font-size: 40px; line-height: 1.05; }
.stat .big small { font-family: var(--heavy); font-size: 18px; margin-left: 2px; }
.stat .what { font-family: var(--heavy); font-weight: 900; font-size: 16px; margin-top: 4px; }
.stat .detail { font-size: 13px; color: #555; line-height: 1.55; margin-top: 4px; }

/* 宣传片：整块封面可点；正中一个珊瑚橙圆形播放按钮（平面，无阴影无渐变） */
.video-title { margin-top: 28px !important; }
.video { position: relative; margin-top: 10px; border: var(--line); background: var(--ink); aspect-ratio: 16 / 9; }
.video img, .video video { width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.video button { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
.video .play { --d: 72px; position: absolute; left: 50%; top: 50%; width: calc(var(--d) + 28px); height: calc(var(--d) + 28px); margin: calc((var(--d) + 28px) / -2) 0 0 calc((var(--d) + 28px) / -2);
  border-radius: 50%; background: transparent; display: flex; align-items: center; justify-content: center; }   /* 深色封面中央已留空，不需要垫底 */
.video .disc { width: var(--d); height: var(--d); border-radius: 50%; background: var(--coral); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; animation: breathe 2.8s ease-in-out infinite; }
.video .disc i { width: 0; height: 0; margin-left: calc(var(--d) * .08); border-left: calc(var(--d) * .3) solid var(--ink); border-top: calc(var(--d) * .19) solid transparent; border-bottom: calc(var(--d) * .19) solid transparent; }
.video button:hover .disc, .video button:focus-visible .disc { animation: none; transform: scale(1.1); }
.video .vcap { position: absolute; left: 50%; top: calc(50% + 36px + 8px); transform: translateX(-50%); color: var(--paper); font-weight: 700; font-size: 12px; line-height: 1.4; white-space: nowrap; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .video .disc { animation: none; } }

/* 理由列表 */
.reasons { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; }
.reasons li { counter-increment: r; padding: 16px 0 14px 52px; position: relative; border-bottom: 1px solid #c9c5bc; }
.reasons li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--num); font-weight: 700; font-size: 24px; color: var(--coral); }
.reasons p { margin: 0; }

/* 日程：按天折叠的纵向时间线 */
.day { border: var(--line); margin-bottom: 12px; background: var(--paper); }
.day summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-family: var(--heavy); font-weight: 900; font-size: 19px; }
.day summary::-webkit-details-marker { display: none; }
.day summary::after { content: "+"; font-family: var(--num); font-size: 24px; line-height: 1; }
.day[open] summary { border-bottom: var(--line); }
.day[open] summary::after { content: "–"; }
.day summary .num { margin-right: 8px; }
.timeline { list-style: none; margin: 0; padding: 14px; }
.timeline li { position: relative; padding: 0 0 14px 24px; border-left: 3px solid var(--ink); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; background: var(--paper); border: 3px solid var(--ink); }
.timeline li.key::before { background: var(--coral); }
.timeline .t { font-family: var(--num); font-weight: 700; font-size: 15px; display: block; }
.timeline .e { display: block; }

/* 评审 */
.score { display: grid; gap: 10px; margin: 6px 0 22px; }
.score .row { display: grid; grid-template-columns: 6.5em 1fr 3em; align-items: center; gap: 10px; font-weight: 700; }
.score .bar { height: 18px; border: 2px solid var(--ink); }
.score .bar i { display: block; height: 100%; background: var(--teal); }
.score .row.main .bar i { background: var(--coral); }
.score .pct { font-family: var(--num); text-align: right; }
.prizes { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--line); margin: 10px 0 8px; }
.prize { padding: 12px 6px; border-right: var(--line); text-align: center; }
.prize:last-child { border-right: 0; }
.prize .n { font-family: var(--heavy); font-weight: 900; font-size: 17px; }
.prize .amt { font-family: var(--num); font-weight: 700; font-size: 19px; line-height: 1.3; white-space: nowrap; }
.prize .cnt { font-size: 13px; color: #555; }
.deliver { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; padding: 0; list-style: none; }
.deliver li { border: 2px solid var(--ink); padding: 2px 10px; font-weight: 700; font-size: 15px; }

/* 次元岛 */
.isle { background: var(--teal); color: var(--paper); }
.isle .tag { color: var(--paper); }
.cards { display: grid; gap: 12px; margin-top: 18px; }
.card { border: 3px solid var(--paper); padding: 14px 16px; }
.card p { margin: 0; font-size: 15px; }

/* 谁可以报名 */
.checks { list-style: none; margin: 0 0 22px; padding: 0; }
.checks li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid #c9c5bc; }
.checks li::before { content: ""; position: absolute; left: 0; top: 16px; width: 14px; height: 14px; background: var(--teal); }
.steps { list-style: none; margin: 8px 0 20px; padding: 0; }
.steps li { display: grid; grid-template-columns: 6.2em 1fr; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed #9a968d; }
.steps .d { font-family: var(--num); font-weight: 700; font-size: 17px; }
.steps li.go .d { color: var(--coral); }
.box { border: var(--line); padding: 14px 16px; margin-top: 8px; }

/* FAQ */
.faq details { border-bottom: 1px solid #c9c5bc; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 32px 14px 0; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-family: var(--num); font-size: 24px; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 14px; margin: 0; }

/* 合作伙伴墙 */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.logos a, .logos div { border: 2px solid var(--ink); aspect-ratio: 5 / 3; display: flex; align-items: center; justify-content: center; padding: 14px; }
.logos img { max-height: 100%; width: auto; }
.empty { border: 2px dashed #9a968d; padding: 18px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.empty p { margin: 0; font-weight: 700; font-size: 17px; }

/* 岛岛背着光标走过（区块之间，进入视口时走一次） */
.walker { position: relative; height: 64px; overflow: hidden; border-top: var(--line); }
.walker .daodao { width: 76px; bottom: 4px; left: 12px; }
.walker.go .daodao { animation: walk 3.4s cubic-bezier(.45, 0, .55, 1) forwards; }
@keyframes walk { to { left: calc(100% - 96px); } }

/* 页脚 */
.footer { background: var(--ink); color: var(--paper); padding: 40px 0 34px; }
.footer .logo { color: var(--paper); }
.footer .logo svg { height: 30px; }
.footer dl { display: grid; grid-template-columns: 4.5em 1fr; gap: 6px 10px; margin: 22px 0; font-size: 15px; }
.footer dt { color: #9a968d; }
.footer dd { margin: 0; }
.footer .brand-intro { margin: -8px 0 22px; font-size: 14px; line-height: 1.7; color: #c9c5bc; max-width: 36em; }
.footer .brand-intro strong { display: inline-block; margin-bottom: 2px; color: var(--paper); font-weight: 700; }
.qr { width: 120px; height: 120px; border: 2px dashed #9a968d; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: #9a968d; line-height: 1.5; }
.qr img { width: 100%; height: 100%; }
.footer .bottom { margin-top: 24px; font-size: 13px; color: #9a968d; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer a { color: var(--paper); }

/* 子页 */
.page-hero { padding: 30px 0 24px; }
.page-hero h1 { font-family: var(--heavy); font-weight: 900; font-size: 30px; line-height: 1.25; margin: 8px 0 12px; }
.tiers { display: grid; gap: 12px; margin: 10px 0 18px; }
.tier { border: var(--line); padding: 16px; }
.tier.main { background: var(--coral); }
.reveal { border: var(--line); padding: 14px 16px; margin-top: 12px; font-weight: 700; }
.agegrid { display: grid; gap: 12px; margin: 10px 0 18px; }
.age { border: var(--line); }
.age h3 { background: var(--ink); color: var(--paper); padding: 10px 14px; margin: 0; }
.age dl { margin: 0; padding: 4px 14px 10px; display: grid; grid-template-columns: 6.5em 1fr; gap: 0 10px; }
.age dt, .age dd { margin: 0; padding: 8px 0; border-bottom: 1px solid #c9c5bc; }
.age dt { color: #555; }
.age dd { font-weight: 700; }
.age dl > :nth-last-child(-n+2) { border-bottom: 0; }
.soon { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding-top: 40px; padding-bottom: 40px; }
.soon h1 { font-family: var(--heavy); font-weight: 900; font-size: 32px; line-height: 1.3; }

@media (prefers-reduced-motion: reduce) { .walker .daodao { animation: none !important; left: 20px; } html { scroll-behavior: auto; } }

@media (min-width: 768px) {
  :root { --gutter: 40px; }
  .nav { display: flex; }
  .logo svg { height: 26px; }
  .hero { padding: 32px 0; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "text art" "cta art"; gap: 0 56px; align-items: center; }
  .hero-text { grid-area: text; align-self: end; } .hero-art { grid-area: art; margin: 0; } .hero-cta { grid-area: cta; align-self: start; }
  .hero-art .island { height: auto; width: calc(100% - 96px); max-height: calc(100svh - var(--topbar) - 80px); object-fit: contain; }
  .hero-art .daodao { width: 104px; margin: 0 -8px 4px 0; }
  .hero h1 svg { max-width: 660px; }
  .kicker { font-size: clamp(22px, 2vw, 34px); white-space: nowrap; margin-top: 14px; }
  .brandline { font-size: clamp(14px, 1.1vw, 17px); margin-top: 12px; }
  .hero .sub { font-size: clamp(17px, 1.35vw, 22px); margin-top: 8px; }
  .btn-lg { width: auto; padding: 0 46px; }
  .section { padding: 72px 0; }
  .section h2 { font-size: 40px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:nth-child(2n) { border-right: var(--line); border-bottom: 0; }
  .stat:last-child { border-right: 0; }
  .stat .big { font-size: 56px; }
  .video .play { --d: 96px; }
  .prize { padding: 22px 10px; }
  .prize .n { font-size: 22px; }
  .prize .amt { font-size: 36px; }
  .video .vcap { top: calc(50% + 48px + 14px); font-size: 16px; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
  .reasons { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .logos { grid-template-columns: repeat(5, 1fr); }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .agegrid { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 52px; }
  .footer .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
}

/* 英文版：英文词长，放宽固定宽度的标签列，首屏小标题允许换行 */
html[lang="en"] .footer dl { grid-template-columns: 8.5em 1fr; }
html[lang="en"] .age dl { grid-template-columns: 9em 1fr; }
html[lang="en"] .score .row { grid-template-columns: 8.5em 1fr 3em; }
html[lang="en"] .hero h1 svg { max-width: 600px; }
html[lang="en"] .infobar .venue { order: 3; flex-basis: 100%; }   /* 英文场馆名太长：单独一行放在最后，不带分隔点 */
html[lang="en"] .infobar .venue::before { content: none; }
@media (max-width: 767px) {
  html[lang="en"] .kicker { font-size: clamp(18px, 4.8vw, 22px); }
  html[lang="en"] .hero-art .island { height: clamp(104px, calc(100svh - 590px), 240px); }   /* 英文字多两行，岛相应缩小，保证按钮在一屏内 */
}
@media (min-width: 768px) {
  html[lang="en"] .kicker { white-space: normal; }
  html[lang="en"] .nav { gap: 18px; }
}

.video-len { margin: 4px 0 0; font-family: var(--num); font-size: 12px; color: #8a867e; }
