/* =========================================================
   陕煤集团第二届职工健身运动会 · 报名端样式
   在 app.css 基础上补充赛事专用组件
   ========================================================= */

/* 站名较长：允许换行完整显示，不截断 */
.logo > span:last-child {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.3;
    word-break: break-word;
}

/* ------------------------- 赛事头图 ------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 22px 20px;
    margin-bottom: 16px;
    color: #fff;
    background:
        radial-gradient(420px 200px at 88% -10%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(135deg, #1f4d3d 0%, #2f6b52 52%, #b3843c 140%);
    box-shadow: 0 14px 32px rgba(31, 77, 61, .22);
}

.hero::after {
    content: '';
    position: absolute;
    right: -46px;
    bottom: -60px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 22px solid rgba(255, 255, 255, .07);
    /* 纯装饰层，不能拦截按钮点击 */
    pointer-events: none;
}

.hero-kicker {
    font-size: 12px;
    letter-spacing: 3px;
    opacity: .82;
    margin-bottom: 8px;
}

.hero-title {
    font-size: clamp(15px, 5.6vw, 21px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .3px;
    white-space: nowrap;   /* 「陕煤集团第二届职工健身运动会」固定一行 */
}

/* 第二行：蒲洁能化公司预报名入口 */
.hero-sub {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: .92;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 12px;
    font-size: 12.5px;
    opacity: .92;
}

.hero-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: 13px;
}

.hero-foot .btn {
    background: rgba(255, 255, 255, .94);
    border-color: transparent;
    color: #1f4d3d;
    font-weight: 600;
}

/* ------------------------- 数据条 ------------------------- */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.stat-cell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-cell strong {
    display: block;
    font-size: 20px;
    color: #1f4d3d;
    line-height: 1.3;
}

.stat-cell span {
    font-size: 12px;
    color: var(--text-light);
}

/* ------------------------- 赛程列表 ------------------------- */
.event-list { display: flex; flex-direction: column; gap: 10px; }

.event-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
    transition: border-color .18s, transform .18s;
}

.event-item:hover {
    border-color: rgba(31, 77, 61, .30);
    transform: translateY(-1px);
}

.event-seq {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #1f4d3d;
    background: rgba(47, 107, 82, .10);
}

.event-main { flex: 1; min-width: 0; }

.event-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--text-light);
}

.event-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: #c3c9d2;
    font-size: 18px;
}

/* ------------------------- 小项 ------------------------- */
.sub-list { display: flex; flex-direction: column; gap: 10px; }

.sub-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.sub-item.is-blocked { background: #fbfbfc; }

.sub-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.sub-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.sub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.pill {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    line-height: 18px;
    background: #f2f4f7;
    color: #6b7482;
}

.pill-green { background: rgba(47, 107, 82, .10); color: #2f6b52; }
.pill-gold { background: rgba(179, 132, 60, .12); color: #96682a; }
.pill-red { background: #fdf2f2; color: #c53737; }

.sub-meta {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--text-light);
}

.sub-note {
    margin-top: 8px;
    padding: 7px 10px;
    border-radius: 9px;
    background: #f8f9fb;
    border: 1px solid var(--border);
    font-size: 12px;
    color: #6b7482;
    line-height: 1.6;
}

.sub-note.warn {
    background: #fffaf2;
    border-color: #f6e3c8;
    color: #9a6a24;
}

.sub-action { margin-top: 12px; }

.sub-action .btn { width: 100%; }

.sub-action .btn[disabled] { background: #f4f5f7; color: #a7aeba; }

/* ------------------------- 详情卡 ------------------------- */
.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}

.info-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #2b3440;
}

.info-card p {
    font-size: 13.5px;
    color: #5f6875;
    line-height: 1.8;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 10px;
    font-size: 15px;
    font-weight: 600;
}

.section-title small { color: var(--text-light); font-weight: 400; font-size: 12px; }

/* ------------------------- 确认页 ------------------------- */
.confirm-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.confirm-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

.confirm-row:last-child { border-bottom: 0; }
.confirm-row .k { color: var(--text-light); flex: 0 0 84px; }
.confirm-row .v { flex: 1; text-align: right; color: var(--text); font-weight: 500; word-break: break-all; }

.checkline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 4px;
    font-size: 13px;
    color: #5f6875;
    line-height: 1.7;
}

.checkline input { width: 16px; height: 16px; margin-top: 3px; flex: 0 0 auto; }

/* ------------------------- 二维码页 ------------------------- */
.qr-card {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.qr-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: none;
    margin: 6px auto 14px;
    display: block;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 8px;
    object-fit: contain;
}

.qr-url {
    display: block;
    margin: 0 auto 14px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #f6f7f9;
    border: 1px dashed var(--border);
    color: #2f6b52;
    font-size: 13px;
    word-break: break-all;
}

/* ------------------------- 报名记录 ------------------------- */
.reg-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.reg-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.reg-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

/* ------------------------- 移动端 ------------------------- */
@media (max-width: 480px) {
    .hero { padding: 18px 16px; border-radius: 16px; }
    .stat-cell strong { font-size: 18px; }
    .event-item { padding: 12px; }
    .sub-item { padding: 12px; }

    /* 头图底栏：文案较长时按钮换行，避免挤压 */
    .hero-foot { flex-wrap: wrap; row-gap: 10px; }
    .hero-foot .btn { margin-left: auto; }

    .stat-row { gap: 8px; }
    .stat-cell { padding: 10px 6px; }
    .stat-cell span { font-size: 11.5px; }

    .event-meta { font-size: 12px; gap: 4px 10px; }

    /* 确认信息行：窄屏缩短标签宽度，内容右对齐不换行错位 */
    .confirm-row { font-size: 13.5px; gap: 8px; }
    .confirm-row .k { flex: 0 0 72px; }

    /* 快捷入口与联系电话做成更大的点按区域 */
    .quick-links { gap: 8px; }
    .quick-links a {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 8px 14px;
        font-size: 13px;
    }
    .contact-line {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
    }

    .qr-card { padding: 16px 14px; }
    .qr-img { max-width: 78vw; }
    .card { padding: 16px 14px; }

    /* 窄屏顶栏：站名换行完整显示，不再按 40vw 截断 */
    .logo > span:last-child { max-width: none; }
}
/* ===== v2.0 新增：快捷入口 & 联系名单 ===== */
.quick-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;}
.quick-links a{font-size:12.5px;color:#1f6f4f;background:#eef7f1;border-radius:999px;padding:6px 12px;text-decoration:none;}
.quick-links a:active{opacity:.7;}

.contact-list{display:flex;flex-direction:column;gap:10px;}
.contact-item{border:1px solid #eef1f5;border-radius:12px;padding:12px 14px;background:#fcfdfe;}
.contact-name{font-size:15px;font-weight:600;color:#22303f;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.contact-lines{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:6px;}
.contact-line{font-size:13px;color:#5f6875;text-decoration:none;}
