:root{
  --pink:#ef5f91;--pink-dark:#c24a72;--pink-soft:#fff0f5;--pink-pale:#fff8fa;
  --ink:#2e2830;--muted:#7f747a;--line:#eadde2;--green:#118b63;--red:#c5365e;--white:#fff;
  --shadow:0 18px 55px rgba(102,52,73,.09);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:#fff0f5;color:#946274;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
button,input{font:inherit}
button{cursor:pointer}
[hidden],.hidden,.hide{display:none!important}

.topbar{height:auto;border:0;background:transparent;position:static;padding:14px 0 0}
.topbar-inner{
  width:min(450px,calc(100% - 28px));min-height:150px;margin:auto;padding:24px 22px;
  background:#fff;border:3px solid #ffb4c9;border-radius:24px;
  box-shadow:0 12px 28px rgba(207,86,123,.12);position:relative;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.topbar-inner:before,.topbar-inner:after{content:"";position:absolute;width:25px;height:25px;background:#ffbfd0;z-index:0}
.topbar-inner:before{left:-3px;top:-3px;border-radius:0 0 16px 0}
.topbar-inner:after{right:-3px;bottom:-3px;border-radius:16px 0 0}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--ink);position:relative;z-index:1;min-width:0}
.brand img{width:75px;height:75px;border-radius:50%;padding:3px;background:#fff;object-fit:cover;box-shadow:0 7px 16px rgba(217,98,135,.18)}
.brand strong{font-size:23px;color:#f36b93;line-height:1.2}
.site-tabs{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #f3d7e1;border-radius:23px;background:#fff7fa;position:relative;z-index:1}
.site-tabs a{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:104px;height:34px;padding:0 14px;border-radius:18px;color:#9a7b86;text-decoration:none;font-size:12px;font-weight:750;white-space:nowrap}
.site-tabs a.active{background:var(--pink);color:#fff;box-shadow:0 5px 12px rgba(239,95,145,.2)}

.page{width:min(450px,calc(100% - 28px));margin:0 auto;padding:14px 0 34px}
.intro{
  margin:0 0 14px;padding:16px 22px;background:#fff;border:3px solid #ffb4c9;border-radius:24px;
  box-shadow:0 12px 28px rgba(207,86,123,.12);
}
.intro h1{margin:0 0 8px;font-size:22px;color:#986171}
.intro p{margin:0;color:#a87988;font-size:13px;line-height:1.6}
.privacy{margin-top:12px;display:flex;align-items:flex-start;gap:8px;color:#a87988;font-size:12px;line-height:1.55}
.privacy i{color:#f16d93;font-size:16px;margin-top:1px}

.tool{
  background:#fff;border:3px solid #ffb4c9;border-radius:24px;
  box-shadow:0 12px 28px rgba(207,86,123,.12);overflow:hidden;
}
.tool-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid #ffd3de}
.tool-head h2{margin:0;font-size:17px;color:#986171}
.secure-badge{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border-radius:16px;background:#fff0f5;color:#f16d93;font-size:11px;font-weight:750}
.tool-body{padding:18px 22px 22px}

.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:2px solid #ffb4c9;border-radius:25px;background:#fff;margin-bottom:16px}
.mode-switch button{height:39px;border:0;border-radius:21px;background:transparent;color:#986171;font-size:12px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.mode-switch button.active{background:#fa7198;color:#fff;box-shadow:0 3px 9px rgba(250,113,152,.22)}

.tab-panel{display:none}
.tab-panel.active{display:block}
.panel-copy{margin-bottom:10px}
.panel-copy strong{color:#986171;font-size:15px}

.upload-zone{
  width:100%;min-height:150px;border:2px dashed #ffd0dc;border-radius:24px;background:#fff7fa;
  display:grid;place-items:center;text-align:center;padding:22px;color:var(--ink);
}
.upload-zone:hover{border-color:#ff8fb0;background:#fff0f5}
.upload-copy{display:flex;flex-direction:column;align-items:center;gap:4px}
.upload-copy i{color:#f16d93;font-size:42px;margin-bottom:6px}
.upload-copy strong{color:#986171;font-size:14px}
.upload-copy small{color:#a87988;font-size:12px;line-height:1.5;max-width:300px}

.certificate-file-list{display:none;margin-top:12px;padding:12px 14px;border:1px solid #ffd3de;border-radius:14px;background:#fff8fb;color:#986171;font-size:12px;line-height:1.6}
.certificate-file-list.show{display:block}
.password-row{margin-top:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.password-row input{width:100%;height:47px;border:2px solid #ffb4c9;border-radius:24px;padding:0 16px;outline:none;background:#fff;color:var(--ink)}
.password-row input:focus{border-color:var(--pink);box-shadow:0 0 0 3px rgba(239,95,145,.1)}
.primary{height:47px;border:0;border-radius:24px;background:#fa7198;color:#fff;padding:0 18px;font-size:14px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 5px 0 #e9c3cc;white-space:nowrap}
.primary:hover{background:#e85f89}
.primary:disabled,.primary.loading{opacity:.65;cursor:not-allowed}

.ipa-result-lines{display:none;grid-gap:8px;margin-top:14px}
.ipa-result-lines.show{display:grid}
.ipa-result-lines>div{border:2px solid #ffd0dc;border-radius:14px;background:#fff7fa;color:#986171;padding:12px 14px;font-size:13px;line-height:1.55}

.result-panel{margin-top:18px;border-top:1px solid #ffd3de;padding-top:18px}
.result-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.result-head h3{margin:0;color:#986171;font-size:16px}
.recheck{height:38px;border:2px solid #ffb4c9;background:#fff5f8;color:#d85a7e;border-radius:22px;padding:0 13px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:5px}
.result-error{margin:0 0 12px;padding:12px 14px;border-radius:14px;background:#fff1f5;color:#c5365e;font-size:13px;line-height:1.55}
.certificate-result{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;align-items:start}
.result-icon{width:64px;height:64px;border-radius:50%;background:#fff0f5;color:#f16d93;display:grid;place-items:center;font-size:30px}
.result-summary{display:flex;align-items:baseline;gap:10px;padding-bottom:12px;border-bottom:1px solid #ffd3de}
.result-summary>span:first-child{color:#a27582;font-size:13px}
.certStatusSpan{font-size:20px;font-weight:800;color:var(--green)}
.certStatusSpan.bad{color:var(--red)}
.certStatusSpan.good{color:var(--green)}
.result-details{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin-top:15px}
.check-item{margin:0;padding:10px 0;border-bottom:1px solid #ffe2e9;font-size:13px;display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px}
.item-title{color:#a27582}
.item-result{color:#986171;overflow-wrap:anywhere}

.detail-sections{display:grid;gap:14px;margin-top:16px}
.detail-section{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}
.detail-section-title{display:flex;align-items:center;gap:7px;padding:12px 14px;background:#fff7fa;border-bottom:1px solid var(--line);font-size:13px;font-weight:800;color:var(--pink-dark)}
.detail-section-title i{color:var(--pink)}
.detail-grid{display:grid;gap:0}
.detail-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;padding:11px 14px;border-bottom:1px solid #f5edf0;font-size:12px;line-height:1.55}
.detail-row:last-child{border-bottom:0}
.detail-label{color:#a27582}
.detail-value{color:#986171;overflow-wrap:anywhere}
.detail-value.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}
.list-value{display:flex;flex-wrap:wrap;gap:6px}
.list-value em{font-style:normal;padding:2px 7px;border-radius:4px;background:#fff0f5;color:#a45b75}

.match-summary{padding:12px 14px;border-bottom:1px solid #f5edf0}
.match-summary strong{display:block;font-size:14px;margin-bottom:4px}
.match-summary span{color:#a87988;font-size:12px}
.match-summary.good strong{color:var(--green)}
.match-summary.bad strong{color:var(--red)}
.match-checks{display:grid;gap:0;padding:0 14px}
.match-check{display:grid;grid-template-columns:24px 130px minmax(0,1fr);align-items:start;gap:8px;padding:10px 0;border-bottom:1px solid #f5edf0;font-size:12px;line-height:1.55}
.match-check:last-child{border-bottom:0}
.match-check i{font-size:17px}
.match-check.good i{color:var(--green)}
.match-check.bad i{color:var(--red)}
.match-check span{min-width:0;overflow-wrap:anywhere}

.loading-card{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:16px;padding:18px;color:#a27582;font-size:13px}
.loading-card i{font-size:22px;color:var(--pink)}
.security-note{margin-top:14px;padding:12px 14px;border:2px solid #ffd0dc;border-radius:14px;background:#fff7fa;color:#a27582;font-size:12px;line-height:1.55;display:flex;gap:8px;align-items:flex-start}
.security-note i{color:#f16d93;font-size:16px}
.footer{text-align:center;color:#bc92a0;font-size:12px;padding:18px 12px 28px}

@media(max-width:700px){
  .topbar{padding-top:10px}
  .topbar-inner,.page{width:calc(100% - 18px)}
  .topbar-inner{min-height:154px;padding:22px 18px 58px;align-items:flex-start}
  .brand img{width:68px;height:68px}
  .brand strong{font-size:21px}
  .site-tabs{position:absolute;left:17px;right:17px;bottom:14px}
  .site-tabs a{flex:1;min-width:0;height:34px;padding:0 8px;font-size:11px}
  .intro{padding:16px 18px}
  .tool-body,.tool-head{padding-left:17px;padding-right:17px}
  .password-row{grid-template-columns:1fr}
  .primary{width:100%}
  .result-details,.certificate-result{grid-template-columns:1fr}
  .result-icon{margin:0 auto}
  .check-item,.detail-row{grid-template-columns:minmax(108px,38%) minmax(0,1fr);gap:10px}
  .match-check{grid-template-columns:22px 105px minmax(0,1fr)}
  .certificate-upload-main,.ipa-zone{min-height:90px;padding:12px}
  .upload-copy i{font-size:28px}
}
@media(min-width:701px){
  .topbar{padding:24px 0 0}
  .topbar-inner{width:min(960px,calc(100% - 64px));min-height:112px;padding:20px 30px;border-radius:28px}
  .brand strong{font-size:25px}
  .site-tabs{gap:6px;padding:5px;border:2px solid #ffc4d5;border-radius:27px}
  .site-tabs a{min-width:136px;height:42px;padding:0 18px;border-radius:22px;font-size:13px}
  .page{width:min(960px,calc(100% - 64px));padding:28px 0 56px}
  .intro,.tool{border-radius:28px}
}
