/* 贵港甄选溯源 校服防走失注册页样式 —— 与演示端 fangzoushizhuce.html <style> 原样一致 */
:root {
      --primary:#1e40af;
      --success:#22c55e;
      --success-dark:#16a34a;
      --gray-50:#f8fafc;
      --gray-100:#f1f5f9;
      --gray-200:#e2e8f0;
      --gray-300:#cbd5e1;
      --gray-400:#94a3b8;
      --gray-500:#64748b;
      --gray-600:#475569;
      --gray-700:#334155;
      --gray-800:#1e293b;
      --red:#ee0a24;
    }
    * { margin:0; padding:0; box-sizing:border-box; }
    html,body { height:100%; }
    body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif; background:var(--gray-50); color:var(--gray-800); }
    .page { max-width:420px; margin:0 auto; min-height:100%; background:#fff; position:relative; padding-bottom:88px; }
    .header { position:sticky; top:0; z-index:10; background:#fff; display:flex; align-items:center; justify-content:center; padding:12px 16px; border-bottom:1px solid var(--gray-200); }
    .header-close { position:absolute; left:16px; width:28px; height:28px; display:flex; align-items:center; justify-content:center; color:var(--gray-800); text-decoration:none; }
    .header-title { text-align:center; }
    .header-title h1 { font-size:17px; font-weight:600; }
    .section { background:#fff; margin-top:12px; padding:0 16px; }
    .section-title { font-size:16px; font-weight:600; padding:16px 0 12px; color:var(--gray-800); }
    .form-row { display:flex; align-items:center; min-height:52px; border-bottom:1px solid var(--gray-200); }
    .form-row:last-child { border-bottom:none; }
    .form-label { width:80px; font-size:14px; color:var(--gray-800); flex-shrink:0; }
    .form-label .required { color:var(--red); margin-right:2px; }
    .form-input { flex:1; border:none; outline:none; font-size:14px; color:var(--gray-800); background:transparent; text-align:right; }
    .form-input::placeholder { color:var(--gray-400); }
    .form-select { flex:1; border:none; outline:none; font-size:14px; color:var(--gray-800); background:transparent; text-align:right; appearance:none; -webkit-appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right center; padding-right:18px; }
    .form-select:invalid, .form-select option[value=""] { color:var(--gray-400); }
    .radio-group { flex:1; display:flex; justify-content:flex-end; gap:20px; }
    .radio-item { display:flex; align-items:center; gap:6px; font-size:14px; color:var(--gray-800); cursor:pointer; }
    .radio-item input { width:18px; height:18px; accent-color:var(--success); cursor:pointer; }
    .photo-row { align-items:center; }
    .photo-placeholder { width:48px; height:48px; border-radius:50%; background:var(--gray-200); display:flex; align-items:center; justify-content:center; overflow:hidden; margin-left:auto; position:relative; }
    .photo-placeholder img { width:100%; height:100%; object-fit:cover; display:none; }
    .photo-placeholder .icon { color:var(--gray-400); font-size:24px; }
    .photo-placeholder input { position:absolute; inset:0; opacity:0; cursor:pointer; }
    .textarea-row { flex-direction:column; align-items:stretch; padding:12px 0; border-bottom:none; }
    .textarea-row .form-label { margin-bottom:8px; }
    textarea { width:100%; border:1px solid var(--gray-200); border-radius:8px; padding:10px 12px; font-size:14px; line-height:1.5; resize:none; outline:none; font-family:inherit; min-height:80px; }
    .expand-row { display:flex; align-items:center; justify-content:center; padding:14px 0; color:var(--gray-500); font-size:13px; cursor:pointer; }
    .expand-row svg { margin-left:4px; transition:transform .2s; }
    .expand-row.open svg { transform:rotate(180deg); }
    .emergency-fields { display:none; padding-bottom:8px; }
    .emergency-fields.show { display:block; }
    .guardian-note { font-size:12px; color:var(--gray-500); line-height:1.6; padding:10px 0 16px; }
    .bind-btn { padding:5px 10px; border:1px solid var(--success); color:var(--success); border-radius:4px; font-size:12px; background:#fff; margin-left:8px; cursor:pointer; }
    .footer { position:fixed; left:50%; transform:translateX(-50%); bottom:0; width:100%; max-width:420px; background:#fff; padding:12px 16px 24px; box-shadow:0 -2px 8px rgba(0,0,0,0.04); }
    .submit-btn { width:100%; height:46px; border:none; border-radius:6px; background:var(--success); color:#fff; font-size:16px; font-weight:500; display:flex; align-items:center; justify-content:center; gap:6px; cursor:pointer; }
    .submit-btn:active { background:var(--success-dark); }
    .toast { position:fixed; left:50%; top:50%; transform:translate(-50%,-50%) scale(0.95); background:rgba(0,0,0,0.75); color:#fff; padding:12px 20px; border-radius:8px; font-size:14px; opacity:0; pointer-events:none; transition:all .2s; z-index:200; }
    .toast.show { opacity:1; transform:translate(-50%,-50%) scale(1); }

    /* 绑定手机号弹窗 */
    .modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.55); z-index:150; display:none; align-items:center; justify-content:center; padding:24px; }
    .modal-overlay.show { display:flex; }
    .modal-box { background:#fff; border-radius:12px; width:100%; max-width:320px; overflow:hidden; animation:modalIn .2s ease; }
    @keyframes modalIn { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }
    .modal-header { padding:18px 0; text-align:center; font-size:16px; font-weight:600; color:var(--gray-800); }
    .modal-body { padding:0 20px 20px; }
    .modal-row { display:flex; align-items:center; min-height:52px; border-bottom:1px solid var(--gray-200); gap:8px; }
    .modal-row .modal-label { width:60px; font-size:14px; color:var(--gray-800); flex-shrink:0; }
    .modal-row .modal-input { flex:1; border:none; outline:none; font-size:14px; color:var(--gray-800); background:transparent; min-width:0; }
    .modal-row .modal-input::placeholder { color:var(--gray-400); }
    .code-btn { color:#3b82f6; font-size:14px; white-space:nowrap; cursor:pointer; background:none; border:none; padding:0; flex-shrink:0; }
    .code-btn:disabled { color:var(--gray-400); cursor:not-allowed; }
    .modal-footer { display:flex; gap:12px; padding:0 20px 20px; }
    .modal-footer button { flex:1; height:42px; border-radius:6px; font-size:15px; cursor:pointer; border:none; }
    .modal-cancel { background:#fff; border:1px solid var(--gray-300); color:var(--gray-700); }
    .modal-save { background:#3b82f6; color:#fff; }

    /* 底部滑动选择器 */
    .picker-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.45); z-index:160; display:none; }
    .picker-overlay.show { display:block; }
    .picker-panel { position:fixed; left:0; right:0; bottom:0; max-width:420px; margin:0 auto; background:#fff; border-radius:12px 12px 0 0; z-index:161; transform:translateY(100%); transition:transform .25s ease; }
    .picker-overlay.show ~ .picker-panel, .picker-panel.show { transform:translateY(0); }
    .picker-header { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--gray-200); }
    .picker-header button { font-size:15px; background:none; border:none; cursor:pointer; }
    .picker-cancel { color:var(--gray-600); }
    .picker-confirm { color:#3b82f6; font-weight:500; }
    .picker-columns-wrap { display:flex; height:220px; position:relative; padding:0 16px; }
    .picker-column { flex:1; height:100%; overflow:hidden; position:relative; text-align:center; }
    .picker-column-items { transition:transform .2s ease-out; }
    .picker-item { height:44px; line-height:44px; font-size:16px; color:var(--gray-500); }
    .picker-item.active { color:var(--gray-800); font-weight:600; font-size:18px; }
    .picker-mask { position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,0) 35%,rgba(255,255,255,0) 65%,#fff 100%); }
    .picker-highlight { position:absolute; left:16px; right:16px; top:50%; height:44px; transform:translateY(-50%); border-top:1px solid var(--gray-200); border-bottom:1px solid var(--gray-200); pointer-events:none; }
