/* ============================================================
 * 公网比赛落地页样式（/e/{id}）
 * 1:1 复刻参考页 www/legacy/bm/index.html 的视觉体系。
 * 该页为独立落地页（不加载 theme.css），故全局选择器安全。
 * ============================================================ */

:root {
    /* 主色：海报深蓝 */
    --ink-900: #08306b;
    --ink-800: #0b428f;
    --ink-700: #0f56b3;
    --ink-600: #2874c9;

    /* 表面：白卡片 + 浅中性底（内容区不用蓝色背景） */
    --paper: #f3f5f8;
    --surface: #ffffff;
    --surface-2: #eef2f7;

    /* 金色：海报标题大字 */
    --gold: #f4a623;
    --gold-bright: #f9d34a;
    --gold-soft: #fce9a0;

    /* 辅助蓝：统一替代原绿色，使内容区只余蓝+金两族，协调 */
    --jade: #2a6fb8;
    --jade-soft: #7fb0e0;

    /* 文字 */
    --text: #1a2332;
    --text-soft: #5a6a7d;
    --text-on-dark: #ffffff;

    /* 线条 / 阴影 */
    --line: #d9e3ef;
    --line-strong: #c2d0e3;
    --shadow-sm: 0 4px 14px rgba(8, 48, 107, .10);
    --shadow: 0 14px 36px rgba(8, 48, 107, .16);

    --radius: 14px;
    --radius-lg: 20px;
    --maxw: 1080px;

    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
    --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-700) 100%);
    color: var(--text-on-dark);
    padding: 64px 0 86px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-soft) 30%, var(--gold-soft) 70%, transparent);
    opacity: .8;
}
/* 头部剪影背景（乡村 + 无人机），克制叠在渐变上 */
.hero .wrap { position: relative; z-index: 2; }
.hero-sil {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 50%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-sil svg { width: 100%; height: 100%; display: block; }
.hero .eyebrow {
    display: inline-block;
    font-size: .82rem;
    letter-spacing: .42em;
    color: var(--gold-bright);
    text-transform: uppercase;
    padding: 6px 16px 6px 18px;
    border: 1px solid rgba(249, 211, 74, .45);
    border-radius: 999px;
    margin-bottom: 26px;
}
.emblem {
    width: 92px; height: 92px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .06);
    border: 2px solid var(--gold-soft);
    box-shadow: 0 0 0 6px rgba(249, 211, 74, .12);
}
.emblem img { width: 58px; height: 58px; object-fit: contain; }
.emblem i { font-size: 44px; color: var(--gold-bright); }
.hero h1 {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: clamp(1.7rem, 4.4vw, 2.7rem);
    line-height: 1.32;
    color: #fff;
    letter-spacing: .01em;
    max-width: 18em;
    margin: 0 auto 18px;
}
.hero .gold-rule {
    width: 64px; height: 2px;
    background: var(--gold-soft);
    margin: 0 auto 22px;
    position: relative;
}
.hero .gold-rule::before,
.hero .gold-rule::after {
    content: ""; position: absolute; top: -2px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold-soft);
}
.hero .gold-rule::before { left: -10px; }
.hero .gold-rule::after { right: -10px; }
.hero .subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    color: var(--gold-bright);
    letter-spacing: .12em;
    font-weight: 500;
}
.hero .subtitle-en {
    margin-top: 8px;
    font-size: .78rem;
    letter-spacing: .26em;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
}

/* ============ 倒计时 ============ */
.countdown {
    margin-top: -38px;
    position: relative;
    z-index: 3;
}
.countdown-inner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}
.countdown .cd-label {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--ink-700);
    font-size: 1rem;
    display: flex; align-items: center; gap: 8px;
}
.countdown .cd-label i { color: var(--gold); }
.cd-units { display: flex; gap: 12px; }
.cd-unit {
    min-width: 62px;
    text-align: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 8px;
}
.cd-unit .num {
    display: block;
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--ink-700);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd-unit .txt {
    display: block;
    margin-top: 6px;
    font-size: .72rem;
    color: var(--text-soft);
    letter-spacing: .1em;
}

/* ============ 区块通用 ============ */
.section { padding: 52px 0 0; }
.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}
.section-head .idx {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: .95rem;
    color: #fff;
    background: var(--jade);
    width: 34px; height: 34px;
    border-radius: 9px;
    display: grid; place-items: center;
    flex-shrink: 0;
}
.section-head h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--ink-800);
    letter-spacing: .02em;
}
.section-head .en {
    margin-left: auto;
    font-size: .72rem;
    letter-spacing: .22em;
    color: var(--text-soft);
    text-transform: uppercase;
}

/* ============ 信息统计 ============ */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.stat::before {
    content: "";
    position: absolute; top: 0; left: 22px;
    width: 26px; height: 3px;
    background: var(--jade);
    border-radius: 0 0 3px 3px;
}
.stat:hover {
    border-color: var(--gold-soft);
    box-shadow: var(--shadow);
}
.stat .ic {
    font-size: 1.5rem;
    color: var(--jade);
    margin-bottom: 10px;
}
.stat .k {
    font-size: .9rem;
    color: var(--text-soft);
    letter-spacing: .04em;
}
.stat .v {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.18rem;
    color: var(--ink-800);
    margin-top: 2px;
    line-height: 1.4;
}
.stat .v .hi { color: var(--gold); }
.stat .note {
    margin-top: 6px;
    font-size: .76rem;
    color: var(--text-soft);
}

/* ============ 竞赛项目 ============ */
.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.project {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 26px 24px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--jade);
    transition: transform .25s ease, box-shadow .25s ease;
}
.project:hover { box-shadow: var(--shadow); }
.project h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.22rem;
    color: var(--ink-800);
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.project h3 i { color: var(--jade); font-size: 1.4rem; }
.project .desc {
    color: var(--text-soft);
    font-size: .9rem;
    margin-bottom: 14px;
}
.project .scale {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(15, 86, 179, .10);
    color: var(--jade);
    font-size: .82rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.project ul { list-style: none; }
.project ul li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: .9rem;
    color: var(--text);
    border-top: 1px dashed var(--line);
}
.project ul li:first-child { border-top: none; }
.project ul li::before {
    content: "";
    position: absolute; left: 4px; top: 14px;
    width: 7px; height: 7px;
    border-radius: 2px;
    background: var(--ink-600);
    transform: rotate(45deg);
}

/* ============ 奖励 ============ */
.awards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.award {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 16px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.award:hover { box-shadow: var(--shadow); }
.award .medal {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: #fff;
    font-size: 1.5rem;
}
.award .medal.gold { background: radial-gradient(circle at 35% 30%, #e9c878, #b8893a); }
.award .medal.silver { background: radial-gradient(circle at 35% 30%, #e2e6ea, #a9b0b8); }
.award .medal.bronze { background: radial-gradient(circle at 35% 30%, #d49a6a, #9c6a3c); }
.award .rank {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink-800);
}
.award .prize {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--gold);
    margin: 4px 0 2px;
}
.award .cnt { font-size: .78rem; color: var(--text-soft); }

/* 证书颁发：与奖金一致的卡片 */
.award.cert .prize { font-size: 1.12rem; line-height: 1.55; }

/* ============ 时间线 ============ */
.timeline {
    position: relative;
    padding-left: 26px;
    max-width: 680px;
}
.timeline::before {
    content: "";
    position: absolute; left: 7px; top: 6px; bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--gold-soft), var(--jade));
}
.tl-item {
    position: relative;
    padding: 0 0 22px 14px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: "";
    position: absolute; left: -26px; top: 5px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 4px var(--paper);
}
.tl-item .date {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--ink-700);
    font-size: 1rem;
}
.tl-item .desc { color: var(--text-soft); font-size: .92rem; }

/* ============ 参赛条件 ============ */
.conds {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}
.conds ul { list-style: none; }
.conds li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: .95rem;
    color: var(--text);
    border-top: 1px solid var(--line);
}
.conds li:first-child { border-top: none; }
.conds li i {
    position: absolute; left: 0; top: 9px;
    color: var(--jade); font-size: 1.05rem;
}
.conds .warn {
    margin-top: 14px;
    font-size: .82rem;
    color: var(--text-soft);
    background: rgba(15, 86, 179, .08);
    border-radius: 8px;
    padding: 10px 14px;
}
.conds .warn i { color: var(--jade); margin-right: 6px; position: static; }

/* ============ 报名咨询 ============ */
.contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.contact {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--jade);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.contact:hover { box-shadow: var(--shadow); }
.contact h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink-800);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
}
.contact h4 i { color: var(--jade); }
.contact p {
    font-size: .88rem;
    color: var(--text);
    margin: 5px 0;
    display: flex; align-items: center; gap: 8px;
}
.contact p i {
    color: var(--jade);
    width: 16px; text-align: center;
    flex-shrink: 0;
}
.contact-note {
    margin-top: 18px;
    font-size: .84rem;
    color: var(--text-soft);
}
.contact-note i { color: var(--jade); margin-right: 6px; }

/* ============ 报名按钮 ============ */
.cta {
    text-align: center;
    padding: 46px 0 10px;
}
.btn-register {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink-900);
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
    padding: 16px 46px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .2s ease, filter .2s ease;
}
.btn-register:hover { filter: brightness(1.05); }
.btn-register:focus-visible { outline: 3px solid var(--jade-soft); outline-offset: 3px; }
.btn-register i { color: var(--ink-900); font-size: 1.2rem; }

/* ============ 组织单位 ============ */
.orgs { display: grid; gap: 12px; }
.org {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 14px 22px;
    box-shadow: var(--shadow-sm);
}
.org.undertake { border-left-color: var(--jade); }
.org.cooperate { border-left-color: var(--ink-600); }
.org.tech { border-left-color: var(--gold-soft); }
.org .lab {
    flex-shrink: 0;
    width: 132px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink-700);
    display: flex; align-items: center; gap: 10px;
}
.org .lab i {
    width: 20px; text-align: center;
    color: var(--gold);
}
.org.undertake .lab i { color: var(--jade); }
.org .units {
    display: flex; flex-wrap: wrap; gap: 8px 10px; flex: 1;
}
.org .units span {
    font-size: .85rem;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 12px;
}

/* ============ 页脚 ============ */
.footer {
    margin-top: 56px;
    background: var(--paper);
    color: var(--text-soft);
    text-align: center;
    padding: 30px 20px;
    font-size: .84rem;
    line-height: 1.9;
    border-top: 1px solid var(--line);
}
.footer strong { color: var(--ink-700); font-weight: 700; }
.footer-admin { margin-top: 10px; }
.footer-admin-link {
    display: inline-block;
    color: var(--text-soft);
    font-size: .8rem;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 14px;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.footer-admin-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(244, 166, 35, .08);
}

/* ============ 比赛二维码（扫码直达本页） ============ */
.qr-card {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px 28px;
    text-align: center;
}
.qr-card img { border: 1px solid var(--line); border-radius: 12px; }
.qr-card .qr-url { margin-top: 12px; font-size: 13px; color: var(--text-soft); word-break: break-all; }
.qr-card .qr-tip { margin-top: 6px; font-size: 12px; color: var(--text-soft); }

/* ============ 滚动渐入 ============ */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 880px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .awards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hero { padding: 48px 0 76px; }
    .projects { grid-template-columns: 1fr; }
    .contacts { grid-template-columns: 1fr; }
    .org { flex-direction: column; align-items: flex-start; gap: 10px; }
    .org .lab { width: auto; }
    .section-head .en { display: none; }
    .countdown-inner { gap: 14px; padding: 16px; }
    .cd-unit { min-width: 54px; }
}
@media (max-width: 400px) {
    .stats { grid-template-columns: 1fr; }
    .awards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
