:root {
  --bg:#F5F5F7; --card:#fff; --text:#1D1D1F; --muted:#86868B; --border:#E5E5EA;
  --primary:#007AFF; --primary-hover:#0066D6; --green:#34C759; --red:#FF3B30;
  --orange:#E8723A; --purple:#5856D6; --soft:#F0F0F5; --shadow:0 2px 12px rgba(0,0,0,.06);
  --shadow-hover:0 8px 30px rgba(0,0,0,.10);
}
*{box-sizing:border-box} html{background:var(--bg)} body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Helvetica Neue",Arial,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit} button{border:0;cursor:pointer} button:disabled{cursor:not-allowed}.hidden{display:none!important}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-bottom:1px solid rgba(229,229,234,.8)}
.header-inner{max-width:1200px;height:56px;margin:auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:650;letter-spacing:-.01em}.brand-mark{width:32px;height:32px;border-radius:9px;background:var(--primary);display:grid;place-items:center}.brand-mark svg{width:17px;height:17px;fill:#fff;stroke:#fff;stroke-width:1.2}
.role-switch{display:inline-flex;background:#E5E5EA;border-radius:9px;padding:2px}.role-btn{display:flex;align-items:center;gap:6px;padding:7px 14px;border-radius:7px;background:transparent;color:var(--muted);font-size:13px;font-weight:600;transition:.2s}.role-btn:hover{color:#424245}.role-btn.active{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.icon{display:inline-grid;place-items:center;line-height:0}.icon svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.app-shell{max-width:1200px;margin:0 auto;padding:24px}.page{min-height:calc(100vh - 56px)}.card{background:#fff;border-radius:20px;box-shadow:var(--shadow)}.card.hover{transition:.25s}.card.hover:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover)}
.profile-card{padding:24px;margin-bottom:20px}.profile-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.profile-main{display:flex;align-items:center;gap:16px;min-width:0}.avatar{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:rgba(0,122,255,.10);color:var(--primary);flex:0 0 auto}.avatar .icon{font-size:28px}.profile-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.profile-name{font-size:20px;font-weight:650}.profile-skills{color:var(--muted);font-size:14px;margin-top:4px}.profile-actions{display:flex;align-items:center;gap:8px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:12px;padding:10px 16px;font-size:14px;font-weight:600;transition:.16s;background:var(--soft);color:var(--text)}.btn:active{transform:scale(.97)}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-outline{background:#fff;border:1px solid var(--border)}.btn-outline:hover{background:var(--bg)}.btn-icon{width:38px;height:38px;padding:0;background:transparent;color:var(--muted)}.btn-icon:hover{background:var(--soft)}.btn-danger{color:var(--red)}.btn-small{padding:8px 13px;font-size:13px}.btn-wide{width:100%;padding:13px}.btn-ghost{background:transparent;color:var(--muted)}
.stats-row{display:flex;gap:40px;margin-top:20px;padding-top:20px;border-top:1px solid var(--border);flex-wrap:wrap}.stat-number{font-size:32px;font-weight:750;letter-spacing:-.03em;line-height:1}.stat-label{font-size:13px;color:var(--muted);margin-top:5px}
.segment-wrap{display:flex;justify-content:center;margin:22px 0 24px}.segmented{display:inline-flex;background:#E5E5EA;border-radius:12px;padding:4px}.seg-btn{display:flex;align-items:center;gap:6px;padding:9px 18px;border-radius:9px;background:transparent;color:var(--muted);font-size:14px;font-weight:600;transition:.2s}.seg-btn.active{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.grid-3{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.sidebar{display:flex;flex-direction:column;gap:16px}.stack{display:flex;flex-direction:column;gap:12px}.search-wrap{position:relative;margin-bottom:2px}.search-wrap>.icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:16px}.search{width:100%;border:0;border-bottom:1.5px solid #C7C7CC;background:transparent;padding:11px 12px 11px 38px;font-size:15px;outline:none;color:var(--text)}.search:focus{border-color:var(--primary)}.search::placeholder{color:var(--muted)}
.section-title{font-size:15px;font-weight:650;margin:0}.subtle{color:var(--muted)}.muted{color:var(--muted);font-size:13px}.recommend-card{padding:20px}.recommend-head{display:flex;align-items:center;gap:8px;margin-bottom:14px}.recommend-head .icon{color:var(--primary)}.recommend-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:16px;background:var(--bg);margin-top:9px}.recommend-row:hover{background:#EAEAEF}.recommend-title-line{display:flex;align-items:center;gap:8px;min-width:0}.recommend-title{font-size:14px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.match{font-size:11px;font-weight:700;color:var(--green);white-space:nowrap}.recommend-reason{font-size:12px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recommend-refresh{margin-left:auto;color:var(--primary);font-size:12px;background:transparent;padding:4px 6px}
.activity-card{padding:20px;border-radius:16px}.activity-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.activity-content{min-width:0;flex:1}.activity-title{font-size:17px;font-weight:650;margin:0 0 7px}.activity-desc{font-size:14px;color:var(--muted);line-height:1.5;margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.meta{display:flex;align-items:center;gap:9px 12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.meta-item{display:inline-flex;align-items:center;gap:4px}.tag{display:inline-flex;align-items:center;padding:4px 9px;border-radius:8px;background:var(--soft);color:var(--muted);font-size:12px;font-weight:550}.status{display:inline-flex;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:700}.status-open{background:#EAF8EE;color:var(--green)}.status-closed{background:#FFEAEA;color:var(--red)}
.info-card{padding:20px}.info-list{margin-top:10px}.info-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--border);font-size:14px}.info-row:first-child{border-top:0}.info-row .label{color:var(--muted)}.level{display:inline-flex;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:700}.bronze{background:#FFF0DF;color:#9A5B16}.silver{background:#F2F2F5;color:#666}.gold{background:#FFF8D8;color:#9C7800}.diamond{background:#E8F2FF;color:#0066D6}
mini-grid{}.mini-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:12px}.mini{background:var(--bg);border-radius:16px;padding:15px;text-align:center}.mini-number{font-size:24px;font-weight:750;color:var(--primary)}.mini:nth-child(2) .mini-number{color:var(--green)}.mini-label{font-size:12px;color:var(--muted);margin-top:4px}
.empty{text-align:center;padding:46px 16px;color:var(--muted)}.empty .icon{font-size:38px;opacity:.45;margin-bottom:10px}.growth-title{font-size:18px;font-weight:650;margin:2px 0}.growth-row{padding:16px}.growth-item{display:flex;gap:12px}.growth-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--primary);flex:0 0 auto}.growth-body{flex:1;min-width:0}.growth-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.growth-name{font-size:14px;font-weight:650}.points{color:var(--green);font-size:12px;font-weight:700}.growth-content{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.5}.growth-date{font-size:11px;color:var(--muted);margin-top:7px}
.portrait-hero{padding:30px;border-radius:24px;color:#fff;background:linear-gradient(135deg,var(--primary),var(--purple))}.portrait-header{display:flex;align-items:center;gap:14px}.portrait-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.2)}.portrait-name{font-size:20px;font-weight:750}.portrait-sub{font-size:14px;color:rgba(255,255,255,.72);margin-top:4px}.portrait-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:24px}.portrait-stat{background:rgba(255,255,255,.15);border-radius:16px;padding:16px;text-align:center}.portrait-stat-num{font-size:30px;font-weight:750}.portrait-stat-label{font-size:12px;color:rgba(255,255,255,.72);margin-top:5px}.footprint{display:flex;gap:10px;align-items:center;padding:9px 0}.dot{width:8px;height:8px;border-radius:50%;background:var(--primary);flex:0 0 auto}.footprint-date{margin-left:auto;color:var(--muted);font-size:12px}.tags{display:flex;gap:8px;flex-wrap:wrap}.tag-blue{background:rgba(0,122,255,.1);color:var(--primary);font-weight:650}
.register-page{min-height:calc(100vh - 104px);display:flex;align-items:center;justify-content:center;padding:18px}.register-card{width:min(100%,440px);padding:36px}.register-head{display:flex;align-items:center;gap:12px;margin-bottom:28px}.register-icon{width:42px;height:42px;border-radius:12px;background:var(--primary);color:white;display:grid;place-items:center}.register-title{font-size:20px;font-weight:750}.register-sub{font-size:14px;color:var(--muted);margin-top:3px}.form-grid{display:grid;gap:15px}.field label{display:block;font-size:14px;font-weight:650;margin-bottom:7px}.input,.textarea{width:100%;border:0;background:var(--bg);border-radius:12px;padding:12px 14px;font-size:15px;color:var(--text);outline:none;transition:.15s}.input:focus,.textarea:focus{background:#fff;box-shadow:0 0 0 2px var(--primary)}.textarea{resize:vertical;min-height:88px}.form-note{font-size:12px;color:var(--muted)}
.worker-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.stat-card{padding:20px;border-radius:16px}.stat-card-label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:14px}.stat-card-number{font-size:30px;font-weight:750;margin-top:9px}.worker-tabs{display:flex;align-items:center;gap:8px;margin-bottom:18px;flex-wrap:wrap}.worker-tab{display:flex;align-items:center;gap:7px;padding:10px 18px;border-radius:12px;background:#fff;color:var(--muted);font-size:14px;font-weight:650;box-shadow:0 1px 8px rgba(0,0,0,.05)}.worker-tab.active{background:var(--primary);color:#fff}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:16px}.toolbar .search-wrap{flex:1}.volunteer-row{padding:18px 20px;border-radius:16px}.volunteer-line{display:flex;align-items:center;gap:13px}.small-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(0,122,255,.10);color:var(--primary)}.volunteer-info{min-width:0;flex:1}.volunteer-name{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:650}.volunteer-desc{font-size:13px;color:var(--muted);margin-top:4px}.volunteer-metrics{display:flex;gap:28px;text-align:center}.metric-num{font-size:17px;font-weight:700}.metric-label{font-size:11px;color:var(--muted);margin-top:2px}.activity-admin-actions{display:flex;gap:7px;flex:0 0 auto}.square-btn{width:34px;height:34px;border-radius:9px;background:var(--soft);display:grid;place-items:center;color:var(--muted)}.square-btn:hover{background:#E5E5EA}.square-btn.delete{color:var(--red)}.square-btn.delete:hover{background:#FFEAEA}.admin-act-title{display:flex;align-items:center;gap:8px}
.stats-panel{padding:24px}.stat-line{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--border)}.stat-line:last-child{border-bottom:0}.stat-line span:first-child{color:var(--muted);font-size:14px}.stat-line strong{font-size:19px}.level-row{margin-top:14px}.level-line{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.bar{height:8px;border-radius:999px;background:var(--soft);overflow:hidden}.bar>i{display:block;height:100%;border-radius:999px}.bar-bronze{background:#CD7F32}.bar-silver{background:#AEAEB2}.bar-gold{background:#FFD60A}.bar-diamond{background:var(--primary)}
.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.30);display:flex;align-items:center;justify-content:center;padding:16px}.modal{width:min(100%,430px);max-height:90vh;overflow:auto;background:#fff;border-radius:24px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.18)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.modal-title{font-size:18px;font-weight:700}.modal-close{width:32px;height:32px;border-radius:9px;background:var(--soft);display:grid;place-items:center;color:var(--muted)}.modal-actions{display:flex;gap:12px;margin-top:20px}.modal-actions .btn{flex:1}.toast{position:fixed;left:50%;bottom:26px;z-index:200;transform:translate(-50%,20px);background:#1D1D1F;color:#fff;padding:10px 16px;border-radius:12px;font-size:14px;opacity:0;pointer-events:none;transition:.22s;box-shadow:0 6px 30px rgba(0,0,0,.18)}.toast.show{opacity:1;transform:translate(-50%,0)}
.demo-note{margin-top:24px;text-align:center;color:#A0A0A5;font-size:11px}.demo-reset{background:transparent;color:#A0A0A5;text-decoration:underline;padding:3px 6px}
@media(max-width:900px){.grid-3,.grid-2{grid-template-columns:1fr}.worker-stats{grid-template-columns:repeat(2,1fr)}.volunteer-metrics{gap:18px}.app-shell{padding:18px}.portrait-stats{gap:9px}}
@media(max-width:640px){.header-inner{padding:0 14px}.brand span{display:none}.role-btn{padding:7px 10px}.app-shell{padding:14px}.profile-row,.activity-row{align-items:flex-start}.profile-actions .btn-outline{font-size:0;width:38px;height:38px;padding:0}.profile-actions .btn-outline .icon{font-size:16px}.stats-row{gap:22px}.seg-btn{padding:8px 11px;font-size:13px}.activity-row{flex-direction:column}.activity-row>.btn{width:100%;margin:4px 0 0}.portrait-hero{padding:22px}.portrait-stats{grid-template-columns:1fr}.worker-stats{grid-template-columns:1fr 1fr}.toolbar{flex-direction:column;align-items:stretch}.volunteer-line{align-items:flex-start}.volunteer-metrics{display:none}.profile-main{align-items:flex-start}.profile-card{padding:18px}.register-card{padding:24px}.modal{border-radius:20px}}
