/* 教练档案 - 移动端优先，风格与主站一致 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #F5F6FA;
    color: #1E293B;
    line-height: 1.6;
}
.wrap { max-width: 560px; margin: 0 auto; min-height: 100vh; background: #F5F6FA; }

/* 顶部 */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff; padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 2px 10px rgba(99,102,241,.25);
}
.topbar .back { display: flex; align-items: center; gap: 4px; font-size: 14px; cursor: pointer; opacity: .9; }
.topbar h1 { font-size: 17px; font-weight: 600; }
.topbar .sub { font-size: 11px; opacity: .85; margin-top: 1px; }
.top-right { display: flex; align-items: center; gap: 8px; }
.home-link {
    text-decoration: none; font-size: 18px; padding: 4px 6px;
    border-radius: 10px; transition: background .15s;
}
.home-link:hover { background: rgba(124,58,237,.08); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: none; border-radius: 18px; padding: 7px 14px;
    font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none;
    transition: all .2s;
}
.btn:active { transform: scale(.96); }
.btn-light { background: rgba(255,255,255,.2); color: #fff; }
.btn-primary { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; }
.btn-ghost { background: #EEF2FF; color: #4F46E5; }
.btn-danger { background: #FEE2E2; color: #DC2626; }
.btn-block { width: 100%; padding: 12px; border-radius: 12px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.mini-avatar {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(255,255,255,.6); background: #fff;
}

/* 标签页 */
.tabs { display: flex; background: #fff; padding: 0 14px; position: sticky; top: 57px; z-index: 40;
    box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.tab {
    flex: 1; text-align: center; padding: 13px 6px; font-size: 14px; color: #64748B;
    cursor: pointer; border-bottom: 2.5px solid transparent; white-space: nowrap;
}
.tab.active { color: #4F46E5; font-weight: 600; border-bottom-color: #6366F1; }
.tab .badge {
    display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px;
    background: #EF4444; color: #fff; border-radius: 9px; font-size: 11px; line-height: 18px;
}

.content { padding: 16px 14px 90px; }

/* 搜索 */
.search-box {
    display: flex; align-items: center; gap: 8px; background: #fff;
    border-radius: 22px; padding: 10px 16px; margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.search-box input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; }

/* 教练卡片 */
.coach-card {
    display: flex; gap: 14px; background: #fff; border-radius: 16px; padding: 16px;
    margin-bottom: 12px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: all .2s;
}
.coach-card:active { transform: scale(.985); }
.avatar-lg {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    background: linear-gradient(135deg, #E0E7FF, #EDE9FE);
}
.avatar-fallback {
    width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 600; color: #6366F1;
    background: linear-gradient(135deg, #E0E7FF, #EDE9FE);
}
.coach-info { flex: 1; min-width: 0; }
.coach-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.coach-city { font-size: 12px; color: #94A3B8; font-weight: 400; }
.coach-meta { font-size: 12px; color: #64748B; margin: 3px 0 8px; }
.stage-tag {
    font-size: 11px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    padding: 2px 10px; border-radius: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    font-size: 11px; padding: 2px 9px; border-radius: 10px;
    background: #EEF2FF; color: #4F46E5; white-space: nowrap;
}
.chip.green { background: #ECFDF5; color: #059669; }
.chip.amber { background: #FEF3C7; color: #B45309; }
.chip.gray { background: #F1F5F9; color: #64748B; }

.empty { text-align: center; padding: 60px 20px; color: #94A3B8; font-size: 14px; }
.empty .icon { font-size: 44px; margin-bottom: 12px; }

/* 详情 */
.detail-head { background: #fff; border-radius: 18px; padding: 24px 18px; text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05); margin-bottom: 14px; position: relative; }
.detail-head .avatar-fallback, .detail-head .avatar-lg {
    width: 84px; height: 84px; margin: 0 auto 12px; font-size: 32px;
}
.detail-name { font-size: 20px; font-weight: 700; }
.detail-tagline { font-size: 14px; color: #6366F1; margin-top: 6px; }
.detail-meta { font-size: 12px; color: #94A3B8; margin-top: 6px; }
.detail-section { background: #fff; border-radius: 16px; padding: 16px 18px; margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.detail-section h3 { font-size: 14px; color: #334155; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.detail-section p { font-size: 14px; color: #475569; white-space: pre-wrap; word-break: break-word; }
.cert-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-row .chip { font-size: 12px; padding: 4px 12px; }
.contact-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
    max-width: 560px; margin: 0 auto; padding: 12px 16px;
    background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.07);
    display: flex; gap: 10px;
}

/* 弹窗 */
.modal-mask {
    position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 100;
    display: none; align-items: flex-end; justify-content: center;
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff; width: 100%; max-width: 560px;
    border-radius: 20px 20px 0 0; max-height: 90vh; overflow-y: auto;
    animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-pad { padding: 22px 20px 28px; }
.modal-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.modal-sub { font-size: 12px; color: #94A3B8; text-align: center; margin-bottom: 18px; }
.modal-close { position: absolute; top: 14px; right: 18px; font-size: 22px; color: #94A3B8;
    background: none; border: none; cursor: pointer; line-height: 1; }

.auth-tabs { display: flex; background: #F1F5F9; border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.auth-tab { flex: 1; text-align: center; padding: 9px; border-radius: 9px; font-size: 14px;
    color: #64748B; cursor: pointer; }
.auth-tab.active { background: #fff; color: #4F46E5; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 500; }
.field label .hint { color: #94A3B8; font-weight: 400; font-size: 11px; }
.field input[type=text], .field input[type=password], .field input[type=number], .field textarea {
    width: 100%; border: 1px solid #E2E8F0; border-radius: 12px; padding: 11px 14px;
    font-size: 14px; outline: none; background: #F8FAFC; font-family: inherit;
}
.field input:focus, .field textarea:focus { border-color: #818CF8; background: #fff; }
.field textarea { resize: vertical; min-height: 84px; }

.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-select .opt {
    font-size: 13px; padding: 6px 13px; border-radius: 16px; cursor: pointer;
    background: #F1F5F9; color: #475569; border: 1.5px solid transparent; user-select: none;
}
.chip-select .opt.on { background: #EEF2FF; color: #4F46E5; border-color: #818CF8; font-weight: 500; }

/* 头像上传 */
.avatar-edit { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.avatar-edit .avatar-lg, .avatar-edit .avatar-fallback { width: 78px; height: 78px; font-size: 30px; cursor: pointer; }
.avatar-edit .tip { font-size: 12px; color: #6366F1; }

/* 状态提示 */
.status-banner { border-radius: 12px; padding: 11px 14px; font-size: 13px; margin-bottom: 14px; }
.status-banner.pending { background: #FEF3C7; color: #92400E; }
.status-banner.rejected { background: #FEE2E2; color: #991B1B; }
.status-banner.approved { background: #ECFDF5; color: #065F46; }

/* 审核卡片 */
.review-card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.review-card .coach-name { margin-bottom: 6px; }
.review-actions { display: flex; gap: 10px; margin-top: 14px; }
.review-actions .btn { flex: 1; }
.review-meta { font-size: 12px; color: #94A3B8; margin-bottom: 8px; }

/* Toast */
.toast {
    position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
    background: rgba(30,41,59,.92); color: #fff; font-size: 13px; padding: 10px 20px;
    border-radius: 22px; z-index: 200; opacity: 0; pointer-events: none; transition: all .25s;
    max-width: 84%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 入驻引导 */
.join-hero {
    background: linear-gradient(135deg, #EEF2FF, #F5F3FF); border-radius: 18px;
    padding: 20px 18px; margin-bottom: 14px; text-align: center;
}
.join-hero h2 { font-size: 16px; color: #312E81; margin-bottom: 6px; }
.join-hero p { font-size: 12.5px; color: #5B5590; margin-bottom: 14px; }
.back-home { position: absolute; left: 14px; top: 14px; font-size: 12px;
    color: rgba(255,255,255,.9); text-decoration: none; }
