/* ================================================================
   MIG-05 · 报名四步向导（源端 apply.vue scoped 高保真）
   步骤圆环 + 玻璃卡片 + 双栏布局 + 侧栏面板
   全嵌套于 .ui-v2 下
   ================================================================ */

/* ---------- 页头 ---------- */
.ui-v2 .apply-page-header { text-align: center; padding: 2.5rem 1rem 2rem; }
.ui-v2 .apply-page-header h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: #ffffff; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.ui-v2 .apply-page-header .intro { font-size: 0.9375rem; color: #a1a1aa; max-width: 720px; margin: 0 auto; line-height: 1.7; }

/* ---------- 步骤导航条（圆环 + 连接线） ---------- */
.ui-v2 .apply-stepper-bar { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 3rem; }
.ui-v2 .stepper-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; position: relative; }
.ui-v2 .stepper-index { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 700; border: 2px solid rgba(255, 255, 255, 0.2); color: #64748b; background: rgba(14, 15, 22, 0.9); transition: all 250ms ease; }
.ui-v2 .stepper-item.active .stepper-index { border-color: #00f0ff; color: #00f0ff; box-shadow: 0 0 16px rgba(0, 240, 255, 0.25); }
.ui-v2 .stepper-item.done .stepper-index { border-color: rgba(70, 200, 208, 0.8); color: #46c8d0; background: rgba(70, 200, 208, 0.1); }
.ui-v2 .stepper-name { font-size: 0.8125rem; font-weight: 500; color: #64748b; text-align: center; transition: color 250ms ease; }
.ui-v2 .stepper-item.active .stepper-name { color: #00f0ff; }
.ui-v2 .stepper-item.done .stepper-name { color: #a1a1aa; }
.ui-v2 .stepper-connector { position: absolute; top: 20px; left: 50%; width: 100%; height: 2px; background: rgba(255, 255, 255, 0.1); z-index: -1; transition: background 300ms ease; }
.ui-v2 .stepper-item.active .stepper-connector,
.ui-v2 .stepper-item.done .stepper-connector { background: linear-gradient(90deg, #00f0ff, transparent); }

/* ---------- 双栏布局 ---------- */
.ui-v2 .apply-main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 1024px) { .ui-v2 .apply-main-grid { grid-template-columns: 1fr; } }

/* ---------- 表单面板切换 ---------- */
.ui-v2 .wizard-panel { display: none; }
.ui-v2 .wizard-panel.active { display: block; }

/* ---------- 表单卡片（玻璃效果） ---------- */
.ui-v2 .form-glass-card { background: rgba(14, 15, 22, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1.5px solid rgba(126, 232, 250, 0.35); border-radius: 1.5rem; padding: 2rem; }
.ui-v2 .form-glass-card .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.ui-v2 .form-glass-card .card-title { font-size: 1.125rem; font-weight: 600; color: #ffffff; }
.ui-v2 .form-glass-card .card-sub { font-size: 0.8125rem; color: #a1a1aa; margin-top: 0.375rem; line-height: 1.6; }

/* ---------- 通用字段 ---------- */
.ui-v2 .field { display: flex; flex-direction: column; gap: 0.375rem; }
.ui-v2 .field-label { display: block; font-size: 0.875rem; font-weight: 500; color: #d1d5db; margin-bottom: 0.125rem; }
.ui-v2 .field-label .req { color: #ef4444; }
.ui-v2 .field-hint-note { font-size: 0.75rem; color: #71717a; line-height: 1.5; margin: 0; }

/* ---------- 表单输入框 ---------- */
.ui-v2 .form-input-pill { width: 100%; height: 48px; padding: 0 1rem; font-size: 0.9375rem; color: #ffffff; background: rgba(8, 9, 14, 0.85); border: 1.5px solid rgba(255, 255, 255, 0.15); border-radius: 0.75rem; outline: none; transition: border-color 200ms, box-shadow 200ms; box-sizing: border-box; }
.ui-v2 .form-input-pill::placeholder { color: #52525b; }
.ui-v2 .form-input-pill:focus { border-color: rgba(126, 232, 250, 0.7); box-shadow: 0 0 0 3px rgba(126, 232, 250, 0.12); }
.ui-v2 .field.invalid .form-input-pill { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); animation: shakeX 0.4s ease; }
@keyframes shakeX { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.ui-v2 .form-input-pill[disabled] { opacity: 0.55; cursor: not-allowed; }

.ui-v2 .field-error-msg { color: #ef4444; font-size: 0.75rem; margin-top: 0.25rem; }

/* select 适配 */
.ui-v2 select.form-input-pill { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23a1a1aa' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.25rem; cursor: pointer; }

/* textarea 适配 */
.ui-v2 textarea.form-input-pill { min-height: 100px; padding-top: 0.75rem; resize: vertical; height: auto; line-height: 1.5; }
.ui-v2 textarea.form-input-pill::placeholder { color: #52525b; }

/* ---------- 参赛类型卡片 ---------- */
.ui-v2 .type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (max-width: 640px) { .ui-v2 .type-cards { grid-template-columns: 1fr; } }
.ui-v2 .type-card { padding: 1rem; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0.875rem; background: rgba(8, 9, 14, 0.5); cursor: pointer; text-align: left; color: #a1a1aa; transition: all 200ms ease; font-size: 0.875rem; }
.ui-v2 .type-card:hover { border-color: rgba(126, 232, 250, 0.3); }
.ui-v2 .type-card[aria-pressed="true"] { border-color: rgba(126, 232, 250, 0.75); background: linear-gradient(160deg, rgba(70, 200, 208, 0.12), rgba(140, 50, 160, 0.08)); color: #ffffff; }
.ui-v2 .type-card[aria-pressed="true"] .type-card-title { color: #7ee8fa; font-weight: 600; }
.ui-v2 .type-card-title { font-size: 0.9375rem; font-weight: 500; margin-bottom: 0.25rem; color: inherit; }
.ui-v2 .type-card-desc { font-size: 0.75rem; color: #71717a; line-height: 1.5; }

/* ---------- 双列表单 ---------- */
.ui-v2 .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .ui-v2 .form-grid-2 { grid-template-columns: 1fr; } }

/* ---------- 成员行 ---------- */
.ui-v2 .member-row { display: grid; grid-template-columns: 1fr 1fr 1fr 36px; gap: 0.5rem; align-items: center; }
.ui-v2 .member-row .input { height: 44px; padding: 0 0.75rem; font-size: 0.875rem; color: #ffffff; background: rgba(8, 9, 14, 0.85); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0.75rem; outline: none; box-sizing: border-box; }
.ui-v2 .member-row .input:focus { border-color: rgba(126, 232, 250, 0.7); box-shadow: 0 0 0 3px rgba(126, 232, 250, 0.12); }
.ui-v2 .icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 0.5rem; background: transparent; color: #94a3b8; cursor: pointer; font-size: 1rem; transition: all 150ms; }
.ui-v2 .icon-btn:hover { color: #f87171; border-color: rgba(248, 113, 113, 0.4); }

/* ---------- 上传区 ---------- */
.ui-v2 .upload-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 2rem; border: 2px dashed rgba(70, 200, 208, 0.25); border-radius: 1.25rem; background: rgba(8, 9, 14, 0.4); cursor: pointer; transition: all 200ms ease; text-align: center; }
.ui-v2 .upload-dropzone:hover,
.ui-v2 .upload-dropzone.dragover { border-color: rgba(70, 200, 208, 0.7); background: rgba(70, 200, 208, 0.06); }
.ui-v2 .upload-icon { font-size: 1.5rem; color: #7ee8fa; }
.ui-v2 .upload-text { font-size: 0.9375rem; color: #e4e4e7; }
.ui-v2 .upload-hint { font-size: 0.8125rem; color: #71717a; line-height: 1.5; }

/* ---------- 文件信息芯片 ---------- */
.ui-v2 .file-chip { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 1rem; background: rgba(14, 15, 22, 0.6); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0.75rem; }
.ui-v2 .file-chip-name { font-size: 0.875rem; color: #e4e4e7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2 .file-chip-meta { font-size: 0.75rem; color: #71717a; margin-top: 0.125rem; }

/* ---------- 进度条 ---------- */
.ui-v2 .progress-bar { height: 6px; background: linear-gradient(90deg, #46c8d0, #e084d3); border-radius: 3px; transition: width 150ms linear; }
.ui-v2 .progress { background: rgba(255, 255, 255, 0.06); border-radius: 3px; height: 6px; }

/* ---------- 侧栏面板 ---------- */
.ui-v2 .side-info-panel { background: rgba(14, 15, 22, 0.88); border: 1px solid rgba(126, 232, 250, 0.25); border-radius: 1.25rem; padding: 1.25rem 1.5rem; }
.ui-v2 .side-info-panel + .side-info-panel { margin-top: 1rem; }
.ui-v2 .panel-title { font-size: 0.9375rem; font-weight: 600; color: #ffffff; margin: 0 0 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.ui-v2 .status-row { display: flex; justify-content: space-between; align-items: center; padding: 0.625rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.8125rem; }
.ui-v2 .status-row:last-child { border-bottom: 0; }
.ui-v2 .status-label { color: #71717a; }
.ui-v2 .status-value { color: #e4e4e7; max-width: 160px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2 .reminder-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ui-v2 .reminder-list li { font-size: 0.8125rem; color: #a1a1aa; line-height: 1.6; padding-left: 1rem; position: relative; }
.ui-v2 .reminder-list li::before { content: "·"; position: absolute; left: 0; color: #7ee8fa; font-weight: 700; }

/* ---------- 底部操作栏 ---------- */
.ui-v2 .wizard-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(126, 232, 250, 0.25); }
.ui-v2 .btn-wizard-prev,
.ui-v2 .btn-wizard-next { height: 48px; padding: 0 1.5rem; font-size: 0.9375rem; font-weight: 500; border-radius: 9999px; cursor: pointer; transition: all 200ms ease; }
.ui-v2 .btn-wizard-prev { color: #e4e4e7; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); }
.ui-v2 .btn-wizard-prev:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.ui-v2 .btn-wizard-prev:disabled { opacity: 0.35; cursor: not-allowed; }
.ui-v2 .btn-wizard-next { color: #ffffff; background: linear-gradient(90deg, rgba(80, 200, 210, 0.85), rgba(160, 110, 210, 0.85)); border: 1.5px solid rgba(126, 232, 250, 0.6); box-shadow: 0 4px 16px rgba(160, 110, 210, 0.3); }
.ui-v2 .btn-wizard-next:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(160, 110, 210, 0.45); }
.ui-v2 .btn-wizard-next:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ui-v2 .btn-save-draft { height: 48px; padding: 0 1.25rem; font-size: 0.875rem; font-weight: 400; color: #a1a1aa; background: transparent; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 9999px; cursor: pointer; transition: all 200ms ease; }
.ui-v2 .btn-save-draft:hover { color: #ffffff; border-color: rgba(255, 255, 255, 0.35); }

/* ---------- 条款列表 ---------- */
.ui-v2 .terms-list { padding: 1rem 1.25rem; background: rgba(8, 9, 14, 0.5); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 1rem; max-height: 280px; overflow-y: auto; margin-bottom: 1.5rem; }
.ui-v2 .terms-list li { padding: 0.4rem 0; font-size: 0.875rem; color: #a1a1aa; line-height: 1.7; padding-left: 1rem; position: relative; list-style: none; }
.ui-v2 .terms-list li::before { content: "·"; position: absolute; left: 0; color: #7ee8fa; font-weight: 700; }

/* ---------- 同意勾选框 ---------- */
.ui-v2 .agree-check-row { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; margin-bottom: 1.5rem; }
.ui-v2 .circle-check { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); display: grid; place-items: center; transition: all 200ms; }
.ui-v2 .circle-check.checked { background: #46c8d0; border-color: #46c8d0; box-shadow: 0 0 10px rgba(70, 200, 208, 0.6); }
.ui-v2 .circle-check.checked::after { content: "✓"; color: #000000; font-size: 0.75rem; font-weight: 700; }
.ui-v2 .agree-text { font-size: 0.875rem; color: #d1d5db; line-height: 1.6; }
.ui-v2 .agree-text a { color: #a5b4fc; text-decoration: none; }
.ui-v2 .agree-text a:hover { color: #c4b5fd; }

/* ---------- 复核展示 ---------- */
.ui-v2 #reviewSummary .stat-label { font-size: 0.875rem; font-weight: 600; color: #ffffff; margin-bottom: 0.75rem; }
.ui-v2 #reviewSummary .kv-list { display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1rem; overflow: hidden; }
.ui-v2 #reviewSummary .kv { display: grid; grid-template-columns: 120px 1fr; padding: 0.65rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.875rem; }
.ui-v2 #reviewSummary .kv:last-child { border-bottom: 0; }
.ui-v2 #reviewSummary .kv-k { color: #71717a; }
.ui-v2 #reviewSummary .kv-v { color: #e4e4e7; }

/* 复核区标签 */
.ui-v2 #reviewSummary .tag { display: inline-flex; align-items: center; padding: 0.2rem 0.625rem; font-size: 0.75rem; font-weight: 500; border-radius: 9999px; }
.ui-v2 #reviewSummary .tag-iris { background: rgba(70, 200, 208, 0.15); color: #7ee8fa; }
.ui-v2 #reviewSummary .tag-plain { background: rgba(255, 255, 255, 0.06); color: #a1a1aa; }

/* ---------- 验证区 ---------- */
.ui-v2 .email-verify-box { padding: 1.5rem; border: 1px solid rgba(70, 200, 208, 0.25); border-radius: 1rem; background: linear-gradient(160deg, rgba(70, 200, 208, 0.06), transparent); }

/* 验证码行（复用登录页样式） */
.ui-v2 .code-input-row { display: flex; gap: 0.875rem; align-items: center; }
.ui-v2 .code-input { flex: 1; font-family: inherit; font-size: 0.9375rem; letter-spacing: normal; text-align: left; }
.ui-v2 .btn-get-code { height: 48px; padding: 0 1.25rem; background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 255, 255, 0.2); border-radius: 0.875rem; font-size: 0.875rem; font-weight: 500; color: #ffffff; cursor: pointer; white-space: nowrap; transition: all 200ms; }
.ui-v2 .btn-get-code:hover:not(:disabled) { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.35); }
.ui-v2 .btn-get-code:disabled { opacity: 0.5; cursor: not-allowed; }

/* 提交按钮 */
.ui-v2 .btn-login-submit { width: 100%; height: 56px; background: linear-gradient(135deg, rgba(80, 200, 210, 0.85) 0%, rgba(160, 110, 210, 0.85) 100%); border: 1.5px solid rgba(126, 232, 250, 0.6); border-radius: 9999px; font-size: 1.125rem; font-weight: 700; color: #ffffff; cursor: pointer; margin-top: 0.5rem; box-shadow: 0 8px 24px rgba(80, 200, 210, 0.35); transition: all 250ms; }
.ui-v2 .btn-login-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(126, 232, 250, 0.5); }
.ui-v2 .btn-login-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- 警示横幅 ---------- */
.ui-v2 .warning-banner { padding: 1rem 1.25rem; border-radius: 0.875rem; background: rgba(45, 35, 15, 0.45); border: 1px solid rgba(235, 185, 60, 0.4); color: #fbbf24; font-size: 0.875rem; line-height: 1.6; margin: 1.5rem 0; }
.ui-v2 .warning-banner strong { color: #fbbf24; }

/* ---------- 成功状态 ---------- */
.ui-v2 .success-header { text-align: center; padding: 2rem 0 1.5rem; }
.ui-v2 .success-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.75rem; border-radius: 9999px; background: rgba(16, 185, 129, 0.18); color: #10b981; font-size: 0.8125rem; font-weight: 500; margin-bottom: 0.75rem; }
.ui-v2 .success-code { font-family: ui-monospace, monospace; font-size: 1.25rem; color: #ffffff; font-weight: 600; }

/* ---------- 通知/完成条 ---------- */
.ui-v2 .notice { display: flex; gap: 0.625rem; padding: 0.875rem 1rem; background: rgba(70, 200, 208, 0.06); border: 1px solid rgba(70, 200, 208, 0.15); border-radius: 0.75rem; font-size: 0.875rem; color: #a1a1aa; line-height: 1.6; }
.ui-v2 .notice-ok { background: rgba(16, 185, 129, 0.06); border-color: rgba(16, 185, 129, 0.2); }
.ui-v2 .notice-warn { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.2); }
.ui-v2 .notice-mark { flex-shrink: 0; width: 1.25rem; text-align: center; font-weight: 700; color: #46c8d0; }
.ui-v2 .notice-ok .notice-mark { color: #10b981; }
.ui-v2 .notice-warn .notice-mark { color: #f59e0b; }
.ui-v2 .notice-body { min-width: 0; }
.ui-v2 .notice a { color: #7ee8fa; text-decoration: none; }
.ui-v2 .notice a:hover { color: #a5f3ff; }

/* ---------- 通用标签/辅助类 ---------- */
.ui-v2 .tag { display: inline-flex; align-items: center; padding: 0.2rem 0.625rem; font-size: 0.75rem; font-weight: 500; border-radius: 9999px; }
.ui-v2 .tag-plain { background: rgba(255, 255, 255, 0.06); color: #a1a1aa; }
.ui-v2 .tag-amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.ui-v2 .tag-lumen { background: rgba(70, 200, 208, 0.15); color: #46c8d0; }
.ui-v2 .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ui-v2 .mono { font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace; }
.ui-v2 .hidden { display: none !important; }
.ui-v2 .mb-3 { margin-bottom: 0.75rem; }
.ui-v2 .mb-4 { margin-bottom: 1rem; }
.ui-v2 .mb-5 { margin-bottom: 1.5rem; }
.ui-v2 .mt-2 { margin-top: 0.5rem; }
.ui-v2 .mt-3 { margin-top: 0.75rem; }
.ui-v2 .mt-4 { margin-top: 1rem; }
.ui-v2 .mt-5 { margin-top: 1.5rem; }
.ui-v2 .dim { opacity: 0.6; }
.ui-v2 .tiny { font-size: 0.8125rem; }
.ui-v2 .col { display: flex; flex-direction: column; }
.ui-v2 .row { display: flex; }
.ui-v2 .row-wrap { flex-wrap: wrap; gap: 0.625rem; }
.ui-v2 .row-between { display: flex; align-items: center; justify-content: space-between; }
.ui-v2 .hr { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 1rem 0; }

/* ---------- 分隔线 ---------- */
.ui-v2 .kv-list .kv { display: flex; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.8125rem; }
.ui-v2 .kv-list .kv:last-child { border-bottom: 0; }
.ui-v2 .kv-list .kv-k { color: #71717a; width: 76px; flex-shrink: 0; }
.ui-v2 .kv-list .kv-v { color: #e4e4e7; min-width: 0; }

/* ---------- 面板 ---------- */
.ui-v2 .panel { background: rgba(14, 15, 22, 0.5); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0.75rem; padding: 0.75rem 1rem; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .ui-v2 .stepper-item { font-size: 0.75rem; }
  .ui-v2 .stepper-index { width: 32px; height: 32px; font-size: 0.75rem; }
  .ui-v2 .stepper-name { font-size: 0.6875rem; }
  .ui-v2 .form-glass-card { padding: 1.25rem; }
}
