/* 扫码签到台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 50% -10%, #2c4d8f 0%, #16264a 55%, #0e1a33 100%);
    color: #e8eefb;
    padding-bottom: 40px;
}
.scan-wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px; }

.scan-head { text-align: center; margin-bottom: 18px; }
.scan-head h1 { font-size: 22px; letter-spacing: 2px; color: #fff; }
.scan-head p { font-size: 12px; color: #8fa5d4; margin-top: 6px; }

.mode-tabs {
    display: flex; background: rgba(255, 255, 255, .08); border-radius: 12px;
    padding: 4px; margin-bottom: 22px; border: 1px solid rgba(255, 255, 255, .1);
}
.mode-tabs button {
    flex: 1; height: 42px; border: none; border-radius: 9px; background: transparent;
    color: #9db1dd; font-size: 15px; font-weight: 600; cursor: pointer; transition: .2s;
}
.mode-tabs button.on {
    background: linear-gradient(135deg, #1f6feb, #3d8bff); color: #fff;
    box-shadow: 0 4px 12px rgba(31, 111, 235, .4);
}

/* 扫描框 */
.scan-frame {
    position: relative; width: 250px; height: 250px; margin: 10px auto 18px;
    background: rgba(0, 0, 0, .25); border-radius: 14px; overflow: hidden;
}
.scan-frame .corner {
    position: absolute; width: 34px; height: 34px; border: 4px solid #4a9fff;
}
.scan-frame .c1 { top: 10px; left: 10px; border-right: none; border-bottom: none; border-radius: 10px 0 0 0; }
.scan-frame .c2 { top: 10px; right: 10px; border-left: none; border-bottom: none; border-radius: 0 10px 0 0; }
.scan-frame .c3 { bottom: 10px; left: 10px; border-right: none; border-top: none; border-radius: 0 0 0 10px; }
.scan-frame .c4 { bottom: 10px; right: 10px; border-left: none; border-top: none; border-radius: 0 0 10px 0; }
.scan-laser {
    position: absolute; left: 18px; right: 18px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, #4a9fff, transparent);
    box-shadow: 0 0 12px #4a9fff;
    animation: laser 2.2s ease-in-out infinite;
}
@keyframes laser {
    0%, 100% { top: 14px; }
    50% { top: calc(100% - 17px); }
}
.scan-hint { text-align: center; font-size: 13px; color: #8fa5d4; margin-bottom: 20px; }

/* 手动输入 */
.code-input-row { display: flex; gap: 10px; }
.code-input-row input {
    flex: 1; height: 50px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08); color: #fff; padding: 0 16px; font-size: 17px;
    letter-spacing: 2px; outline: none;
}
.code-input-row input::placeholder { color: #63769f; letter-spacing: 0; font-size: 14px; }
.code-input-row input:focus { border-color: #4a9fff; }
.code-input-row button {
    width: 110px; height: 50px; border: none; border-radius: 12px; font-size: 16px; font-weight: 600;
    background: linear-gradient(135deg, #1f6feb, #3d8bff); color: #fff; cursor: pointer;
    box-shadow: 0 6px 16px rgba(31, 111, 235, .35);
}

/* 面板卡片 */
.panel {
    background: rgba(255, 255, 255, .97); border-radius: 16px; color: #2b3a4d;
    padding: 20px 18px; margin-top: 18px;
    box-shadow: 0 14px 34px rgba(5, 15, 40, .45);
}
.panel h3 { font-size: 16px; margin-bottom: 14px; text-align: center; }
.panel .sub { font-size: 13px; color: #8a97a8; text-align: center; margin: -8px 0 14px; }

.athlete-line {
    text-align: center; font-size: 14px; color: #46586c; margin-bottom: 14px;
    background: #f2f6fd; border-radius: 10px; padding: 10px;
}
.athlete-line b { color: #1f6feb; }

.event-option, .member-option {
    display: flex; align-items: center; gap: 10px;
    border: 1px solid #dde4ec; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
    cursor: pointer; transition: .15s; background: #fff;
}
.event-option:hover, .member-option:hover { border-color: #7fb0f9; }
.event-option.on, .member-option.on { border-color: #2f7cf6; background: #eef5ff; }
.event-option .e-name { font-weight: 700; font-size: 15px; }
.event-option .e-meta { font-size: 12px; color: #8a97a8; margin-top: 3px; }
.member-option input { width: 18px; height: 18px; accent-color: #2f7cf6; }
.member-option .m-done { margin-left: auto; font-size: 12px; color: #9aa5b1; }
.member-option .m-done.yes { color: #22b07d; }

.btn-row { display: flex; gap: 10px; margin-top: 14px; }
.btn-row button {
    flex: 1; height: 46px; border-radius: 23px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-main { border: none; background: linear-gradient(135deg, #1f6feb, #3d8bff); color: #fff; }
.btn-ghost { border: 1px solid #dde4ec; background: #fff; color: #46586c; }

/* 结果态 */
.result-icon { text-align: center; margin-bottom: 12px; }
.result-icon .ok-ic, .result-icon .fail-ic {
    width: 64px; height: 64px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; font-size: 34px; color: #fff;
}
.result-icon .ok-ic { background: linear-gradient(135deg, #22b07d, #3ecf96); box-shadow: 0 8px 20px rgba(34, 176, 125, .4); }
.result-icon .fail-ic { background: linear-gradient(135deg, #f0506e, #ff7a90); box-shadow: 0 8px 20px rgba(240, 80, 110, .4); }
.result-title { text-align: center; font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.result-title.ok { color: #22b07d; }
.result-title.fail { color: #f0506e; }
.result-sub { text-align: center; font-size: 13px; color: #8a97a8; margin-bottom: 14px; }

.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.detail-table th, .detail-table td { padding: 9px 8px; border-bottom: 1px solid #f0f4f9; text-align: left; }
.detail-table th { background: #f7faff; color: #5a6b80; }
.detail-table td.t { color: #22b07d; }

.scan-links { text-align: center; margin-top: 26px; font-size: 12px; color: #63769f; }
.scan-links a { color: #8fa5d4; margin: 0 8px; }
