:root{color-scheme:light;--bg:#fff;--paper:#fff;--ink:#25262a;--muted:#626772;--line:#e7e8e9;--panel:#f5f5f6;--green:#16723c;--green-hover:#115c30;--product:#16a34a;--tint:#eef7f1;--warn:#8a581b;--warn-bg:#fff7e9;--warn-line:#ecd9b6;--danger:#c0392b;--radius:18px;font-family:"PingFang SC","Microsoft YaHei UI","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}
body{margin:0;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.65;-webkit-font-smoothing:antialiased}
h1,h2,h3,p,ul,ol,dl,dd{margin:0}
ul,ol{padding:0;list-style:none}
a{color:var(--green);text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button,a,summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button,summary{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--product);outline-offset:3px}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
[hidden]{display:none!important}
.edu-skip{position:fixed;top:-100px;left:16px;z-index:60;padding:10px 14px;background:var(--paper);border-radius:8px}
.edu-skip:focus{top:12px}

/* 顶栏：与官网导航一致 */
.edu-bar{position:sticky;top:0;z-index:50;width:100%;background:#fff;border-bottom:1px solid #f0f0f1}
.edu-bar__inner{display:flex;align-items:center;justify-content:space-between;gap:24px;width:calc(100% - 72px);max-width:1376px;height:80px;margin:auto}
.edu-brand{display:flex;align-items:center;gap:10px;flex-shrink:0;color:var(--ink);font-size:21px;font-weight:600;line-height:1.3}
.edu-brand img{width:33px;height:39px;object-fit:contain}
.edu-brand small{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:400;letter-spacing:0}
.edu-nav{display:flex;align-items:center;gap:29px;margin-left:auto}
.edu-nav a{position:relative;display:flex;align-items:center;min-height:48px;color:var(--ink);font-size:14px;font-weight:500;white-space:nowrap}
.edu-nav a[aria-current]:after{content:"";position:absolute;left:0;right:0;bottom:4px;height:2px;background:var(--product)}
.edu-account{display:flex;align-items:center;gap:10px;min-width:0;padding-left:24px;border-left:1px solid var(--line);color:var(--ink);font-size:14px;font-weight:500}
.edu-avatar{display:grid;place-items:center;width:34px;height:34px;overflow:hidden;border-radius:50%;background:var(--tint);color:var(--green);font-size:14px;font-weight:700}
.edu-avatar.has-photo{background:var(--panel)}
.edu-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.edu-account__name{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 主体：左侧说明与身份选择，右侧认证面板 */
.edu-main{width:calc(100% - 72px);max-width:1120px;margin:0 auto;padding:56px 0 72px;flex:1}
.edu-main:focus{outline:none}
.edu-layout{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:72px;align-items:start}
.edu-side{position:sticky;top:112px;min-width:0}
.edu-loading{display:flex;flex-direction:column;align-items:center;gap:14px;padding:120px 0;color:var(--muted)}
.edu-spinner{width:26px;height:26px;border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:edu-spin 800ms linear infinite}
@keyframes edu-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.edu-spinner{animation-duration:2.4s}}

.edu-hero{margin-bottom:28px}
.edu-eyebrow{margin-bottom:12px;color:var(--green);font-size:14px;font-weight:600}
.edu-hero h1,.edu-blocked h1{font-size:34px;line-height:1.3;letter-spacing:-.02em;font-weight:700}
.edu-lead{margin-top:14px;color:var(--muted);font-size:15px;line-height:1.85}
.edu-reward{display:inline-flex;align-items:center;gap:8px;margin-top:18px;padding:8px 16px 8px 14px;border-radius:999px;background:var(--tint);color:var(--green);font-size:14px;font-weight:500}
.edu-reward svg{width:17px;height:17px}
.edu-reward strong{font-size:17px;font-weight:700}

/* 身份选择 */
.edu-roles{display:grid;gap:10px;margin-bottom:28px}
.edu-role{display:flex;align-items:center;gap:14px;width:100%;min-height:72px;padding:14px 18px;border:1px solid var(--line);border-radius:16px;background:var(--paper);text-align:left;transition:border-color 160ms,background-color 160ms}
.edu-role:hover{background:var(--panel)}
.edu-role[aria-pressed="true"]{border-color:var(--green);box-shadow:0 0 0 1px var(--green);background:var(--paper)}
.edu-role__icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--panel);color:var(--ink)}
.edu-role[aria-pressed="true"] .edu-role__icon{background:var(--green);color:#fff}
.edu-role__icon svg{width:22px;height:22px}
.edu-role__text{flex:1;min-width:0}
.edu-role__text strong{display:block;font-size:16px;font-weight:650}
.edu-role__text small{display:block;color:var(--muted);font-size:13px}
.edu-pill{display:inline-flex;align-items:center;padding:2px 11px;border-radius:999px;background:var(--panel);color:var(--muted);font-size:12px;font-weight:500;white-space:nowrap}
.edu-pill[data-status="approved"]{background:var(--tint);color:var(--green)}
.edu-pill[data-status="pending"]{background:var(--warn-bg);color:var(--warn)}
.edu-pill[data-status="rejected"]{background:#fdeeec;color:var(--danger)}

/* 主面板 */
.edu-panel{min-width:0;padding:36px;border:1px solid var(--line);border-radius:24px;background:var(--paper)}
.edu-panel__title{margin-bottom:22px;font-size:22px;line-height:1.45;font-weight:700}
.edu-panel__title:focus{outline:none}
.edu-steps{display:flex;align-items:center;gap:14px;margin-bottom:30px;color:var(--muted);font-size:14px}
.edu-steps li{display:flex;align-items:center;gap:8px}
.edu-steps li:first-child:after{content:"";display:block;width:56px;height:1px;margin-left:6px;background:var(--line)}
.edu-steps span{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:50%;font-size:13px}
.edu-steps li[aria-current="step"]{color:var(--ink);font-weight:600}
.edu-steps li[aria-current="step"] span{border-color:var(--green);background:var(--green);color:#fff}
.edu-steps li.is-done span{border-color:var(--green);color:var(--green)}

.edu-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.edu-field{min-width:0}
.edu-field>label,.edu-label{display:block;margin-bottom:8px;font-size:14px;font-weight:600}
.edu-field b{color:var(--danger);font-weight:600}
.edu-field input{display:block;width:100%;min-height:48px;padding:10px 14px;border:1px solid #d5d7da;border-radius:12px;background:var(--paper);font-size:16px;line-height:1.5}
.edu-field input:focus{border-color:var(--green);box-shadow:0 0 0 3px var(--tint);outline:none}
.edu-field input[aria-invalid="true"]{border-color:var(--danger)}
.edu-field small{display:block;margin-top:7px;color:var(--muted);font-size:13px}
.edu-error{margin-top:6px;color:var(--danger);font-size:13px}
.edu-message{margin-top:16px;color:var(--warn);font-size:14px}
.edu-message:empty{display:none}
.edu-hint{margin-top:14px;color:var(--muted);font-size:13px}
.edu-step-fields{min-width:0;margin:0;padding:0;border:0}

/* 按钮：与官网一致的胶囊形 */
.edu-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 26px;border:1px solid #d5d7da;border-radius:999px;background:var(--paper);color:var(--ink);font-size:14px;font-weight:600;line-height:1.4;transition:background-color 160ms,border-color 160ms}
.edu-btn:hover:not(:disabled){background:var(--panel)}
.edu-btn--primary{border-color:var(--green);background:var(--green);color:#fff}
.edu-btn--primary:hover:not(:disabled){border-color:var(--green-hover);background:var(--green-hover)}
.edu-btn--small{min-height:36px;padding:6px 16px;font-size:13px;color:var(--green)}
.edu-btn svg{width:16px;height:16px}
.edu-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}
.edu-actions--end{justify-content:flex-end}
.edu-actions--center{justify-content:center;border-top:0;padding-top:0}

/* 提示块 */
.edu-callout{margin-bottom:24px;padding:14px 18px;border-radius:14px;background:var(--panel);font-size:14px}
.edu-callout strong{display:block;margin-bottom:2px}
.edu-callout p{color:var(--muted)}
.edu-callout--warn{background:var(--warn-bg)}
.edu-callout--warn strong{color:var(--warn)}

/* 上传 */
.edu-upload{padding:30px 24px 24px;border:1px dashed #c9ccd0;border-radius:16px;background:#fafafa;text-align:center}
.edu-upload__icon{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 14px;border-radius:50%;background:var(--tint);color:var(--green)}
.edu-upload__icon svg{width:24px;height:24px}
.edu-upload>strong{display:block;font-size:16px;font-weight:650}
.edu-upload>p{max-width:30em;margin:6px auto 18px;color:var(--muted);font-size:13px;line-height:1.8}
.edu-upload>small{display:block;margin:14px 0 4px;color:var(--muted);font-size:12px}
.edu-upload__privacy{display:block;color:#8a8f98;font-size:12px}
.edu-upload.has-files{padding:0;overflow:hidden;border-style:solid;border-color:var(--line);background:var(--paper);text-align:left}
.edu-upload.has-files>:not(.education-previews){display:none}
.education-previews:empty{display:none}
.proof-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.proof-toolbar>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.proof-toolbar strong{font-size:14px}
.proof-toolbar small{color:var(--muted);font-size:12px}
.proof-stage{position:relative;display:block;width:100%;padding:18px;border:0;background:var(--panel);cursor:zoom-in}
.proof-stage img{display:block;width:100%;height:320px;object-fit:contain}
.proof-stage>span{position:absolute;right:12px;bottom:10px;padding:3px 8px;border-radius:5px;background:#ffffffeb;color:var(--muted);font-size:11px}
.proof-filebar{display:flex;align-items:center;gap:16px;padding:12px 18px;border-top:1px solid var(--line)}
.proof-filebar>div{flex:1;min-width:0}
.proof-filebar>div>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.proof-filebar small{color:var(--muted);font-size:11px}
.proof-filebar button{min-height:36px;padding:4px 8px;border:0;background:none;color:var(--green);font-size:13px}
.proof-filebar .proof-delete{color:var(--danger)}
.proof-thumbnails{display:flex;gap:10px;padding:0 18px 16px}
.proof-thumbnails button{position:relative;width:72px;height:56px;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
.proof-thumbnails button[aria-pressed="true"]{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.proof-thumbnails img{display:block;width:100%;height:100%;object-fit:cover}
.proof-thumbnails span{position:absolute;left:4px;top:3px;padding:0 5px;border-radius:4px;background:#ffffffeb;font-size:11px}
.proof-lightbox{max-width:min(92vw,1100px);max-height:92vh;padding:0;border:0;background:transparent}
.proof-lightbox::backdrop{background:#000000d9}
.proof-lightbox img{display:block;max-width:100%;max-height:92vh;margin:auto}

.edu-consent{margin-top:22px}
.edu-check{display:flex;align-items:flex-start;gap:10px;font-size:14px;cursor:pointer}
.edu-check input{flex:none;width:18px;height:18px;margin:4px 0 0;accent-color:var(--green)}
.edu-consent.is-invalid .edu-check{color:var(--danger)}

/* 审核结果 */
.edu-result__head{display:flex;align-items:flex-start;gap:16px;margin-bottom:24px}
.edu-result__icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--tint);color:var(--green)}
.edu-result__icon svg{width:26px;height:26px}
.edu-result[data-status="pending"] .edu-result__icon{background:var(--warn-bg);color:var(--warn)}
.edu-result[data-status="rejected"] .edu-result__icon{background:#fdeeec;color:var(--danger)}
.edu-result__head h2{font-size:22px;line-height:1.4;font-weight:700}
.edu-result__head p{color:var(--muted)}
.edu-dl>div{display:flex;justify-content:space-between;gap:24px;padding:13px 0;border-bottom:1px solid var(--line)}
.edu-dl>div:last-child{border-bottom:0}
.edu-dl dt{color:var(--muted);font-size:14px}
.edu-dl dd{max-width:70%;text-align:right;overflow-wrap:anywhere}
.edu-history{margin-top:22px;font-size:14px}
.edu-history summary{min-height:40px;color:var(--muted)}
.edu-history article{display:flex;flex-wrap:wrap;gap:4px 14px;padding:10px 0;border-top:1px solid var(--line)}
.edu-history article span{color:var(--muted)}
.edu-history article p{flex:1 0 100%;color:var(--muted)}

/* 说明与页脚 */
.edu-notes h2{margin-bottom:10px;font-size:14px;font-weight:650}
.edu-notes li{position:relative;padding-left:16px;color:var(--muted);font-size:13px;line-height:1.9}
.edu-notes li:before{content:"";position:absolute;left:3px;top:.95em;width:4px;height:4px;border-radius:50%;background:#b4b8be}
.edu-blocked{max-width:460px;margin:72px auto;text-align:center}
.edu-blocked__icon{display:inline-grid;place-items:center;width:52px;height:52px;margin-bottom:18px;border-radius:50%;background:#fdeeec;color:var(--danger)}
.edu-blocked__icon svg{width:28px;height:28px}
.edu-blocked h1{font-size:26px}
.edu-blocked p{margin:10px 0 24px;color:var(--muted)}
.edu-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;width:calc(100% - 72px);max-width:1376px;margin:0 auto;padding:22px 0 30px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}

@media(max-width:960px){
  .edu-layout{grid-template-columns:1fr;gap:32px}
  .edu-side{position:static}
  .edu-nav{display:none}
  .edu-account{margin-left:auto}
}
@media(max-width:640px){
  .edu-bar__inner{width:calc(100% - 32px);height:68px}
  .edu-brand{font-size:19px}
  .edu-account{padding-left:0;border-left:0}
  .edu-account__name{max-width:96px}
  .edu-main{width:calc(100% - 32px);padding:32px 0 48px}
  .edu-hero h1{font-size:28px}
  .edu-panel{padding:24px 18px;border-radius:20px}
  .edu-fields{grid-template-columns:1fr}
  .edu-actions .edu-btn{flex:1}
  .edu-dl dd{max-width:62%}
  .proof-stage img{height:240px}
  .edu-footer{width:calc(100% - 32px)}
}

.edu-brand>span{position:relative;top:2px}
