.sx-checkin-wrap{max-width:880px;margin:24px auto;padding:22px;background:#fff;border:1px solid #eee;border-radius:24px;box-sizing:border-box;font-family:inherit;color:#202338}.sx-hero{padding:28px;border-radius:20px;background:linear-gradient(135deg,#fff9e8,#f3f5cc);margin-bottom:18px}.sx-hero h2{font-size:30px;margin:0 0 8px}.sx-hero p{margin:0;color:#62656f}.sx-user-row{display:flex;align-items:center;gap:10px;margin:16px 4px}.sx-avatar{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#a85a22;color:#fff;font-weight:700;overflow:hidden}.sx-avatar-img{display:block;width:38px;height:38px;border-radius:50%;object-fit:cover}.sx-avatar-image{background:#f2f2f2}.sx-my-rank{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0 10px;padding:16px 20px;border:1px solid #eadfca;border-radius:16px;background:#fffaf1}.sx-my-rank span{color:#666;font-weight:700}.sx-my-rank strong{font-size:24px;color:#a85a22}.sx-stats strong em{font-size:15px;font-style:normal;margin-left:4px;color:#777;font-weight:600}.sx-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.sx-stats>div{padding:18px;text-align:center;border:1px solid #ececec;border-radius:16px}.sx-stats strong{display:block;font-size:30px}.sx-stats span{color:#666}.sx-status-text{font-size:22px!important}.sx-status-text.is-checked{color:#2d8a3d}.sx-status-text.is-unchecked{color:#a66a2f}.sx-task-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border:1px solid #eadfca;border-radius:18px;background:#fffaf1}.sx-task-card.is-done{background:#eef9ee;border-color:#cde7cd}.sx-task-copy h3{margin:0 0 6px;font-size:22px}.sx-task-copy p{margin:0 0 8px;color:#666}.sx-task-copy small{color:#a65b24}.sx-button{border:0;border-radius:14px;padding:13px 26px;background:#d66620;color:#fff;font-size:16px;font-weight:700;cursor:pointer;white-space:nowrap}.sx-button:disabled{background:#2da13c;cursor:default}.sx-ranking-card,.sx-login-card{margin-top:20px;padding:22px;border:1px solid #ececec;border-radius:18px}.sx-ranking-card h3,.sx-login-card h3{margin-top:0;font-size:24px}.sx-ranking{list-style:none;margin:0;padding:0}.sx-ranking li{display:flex;align-items:center;gap:12px;padding:14px 4px;border-bottom:1px solid #eee}.sx-ranking li:last-child{border-bottom:0}.sx-rank{font-weight:700;width:24px}.sx-rank-avatar{display:inline-flex;width:36px;height:36px;border-radius:50%;overflow:hidden;flex:0 0 36px;background:#f2f2f2}.sx-rank-avatar-img{display:block;width:36px;height:36px;border-radius:50%;object-fit:cover}.sx-rank-name{font-weight:700;flex:1}.sx-rank-points{color:#666}.sx-empty{margin:0;color:#777}.sx-login-card input[type=text],.sx-login-card input[type=password]{width:100%;max-width:420px;padding:10px}.sx-login-card input[type=submit]{padding:9px 18px}.sx-login-card label{display:block}@media(max-width:700px){.sx-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.sx-checkin-wrap{padding:14px;border-radius:16px}.sx-hero{padding:20px}.sx-task-card{align-items:flex-start;flex-direction:column}.sx-button{width:100%}.sx-rank-points{font-size:13px}}

.sx-login-form p{margin:0 0 14px}.sx-login-form label{display:block;margin-bottom:6px;font-weight:600}.sx-login-form input[type=text],.sx-login-form input[type=password]{width:100%;max-width:none;box-sizing:border-box;padding:12px 14px;border:1px solid #d9d9d9;border-radius:10px}.sx-login-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:0!important}.sx-login-actions .sx-remember-label{display:flex;align-items:center;gap:7px;margin:0;font-weight:400}.sx-login-error{margin:0 0 16px;padding:12px 14px;border-left:4px solid #c62828;background:#fff3f3;color:#8a1f1f;border-radius:6px}@media(max-width:520px){.sx-login-actions{align-items:stretch;flex-direction:column}.sx-login-actions .sx-button{width:100%}}

/* v1.4.8 双排行榜与后台管理 */
.sx-my-rank{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:transparent;border:0;padding:0}.sx-my-rank>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border:1px solid #eadfca;border-radius:16px;background:#fffaf1}.sx-my-rank>div span{color:#666;font-weight:700}.sx-my-rank>div strong{font-size:22px;color:#a85a22}.sx-ranking-tabs{display:flex;gap:10px;margin:0 0 10px}.sx-ranking-tab{flex:1;border:1px solid #dfd7c7;border-radius:12px;padding:11px 14px;background:#fff;color:#555;font-weight:700;cursor:pointer}.sx-ranking-tab.is-active{background:#8d6b36;color:#fff;border-color:#8d6b36}.sx-ranking-note{margin:0 0 8px;color:#777;font-size:14px}.sx-ranking-panel{display:none}.sx-ranking-panel.is-active{display:block}.sx-rank-points{display:flex;flex-direction:column;align-items:flex-end;line-height:1.35}.sx-rank-points b{font-weight:700;color:#4e633c}.sx-rank-points small{font-size:12px;color:#777}@media(max-width:600px){.sx-my-rank{grid-template-columns:1fr}.sx-ranking-tabs{flex-direction:column}.sx-ranking-tab{width:100%}.sx-ranking li{align-items:flex-start}.sx-rank-points{max-width:145px;text-align:right}}


/* v1.4.9 手机端排行榜姓名显示优化 */
.sx-rank-name{min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal;overflow-wrap:normal}
@media(max-width:600px){
  .sx-ranking-card{padding:18px 14px}
  .sx-ranking li{display:grid;grid-template-columns:28px 42px minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:4px;padding:15px 0}
  .sx-rank{width:auto;text-align:center}
  .sx-rank-avatar{width:42px;height:42px;flex-basis:42px}
  .sx-rank-avatar-img{width:42px;height:42px}
  .sx-rank-name{display:block;width:100%;font-size:16px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sx-rank-points{min-width:92px;max-width:118px;text-align:right;align-items:flex-end}
  .sx-rank-points b{white-space:nowrap}
  .sx-rank-points small{display:block;white-space:normal;line-height:1.35}
}
@media(max-width:390px){
  .sx-ranking li{grid-template-columns:24px 38px minmax(0,1fr) auto;column-gap:8px}
  .sx-rank-avatar,.sx-rank-avatar-img{width:38px;height:38px}
  .sx-rank-points{min-width:84px;max-width:102px;font-size:12px}
  .sx-rank-name{font-size:15px}
}


/* v1.5.1 手机端姓名完整显示：姓名独占一行，数据移到姓名下方 */
@media(max-width:600px){
  .sx-ranking li{
    display:grid;
    grid-template-columns:28px 44px minmax(0,1fr);
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:10px;
    row-gap:3px;
    padding:15px 0;
  }
  .sx-rank{grid-column:1;grid-row:1 / span 2;width:auto;text-align:center;align-self:center}
  .sx-rank-avatar{grid-column:2;grid-row:1 / span 2;width:44px;height:44px;flex-basis:44px;align-self:center}
  .sx-rank-avatar-img{width:44px;height:44px}
  .sx-rank-name{
    grid-column:3;
    grid-row:1;
    display:block;
    width:auto;
    max-width:100%;
    min-width:0;
    white-space:nowrap;
    overflow:visible;
    text-overflow:clip;
    font-size:16px;
    line-height:1.35;
  }
  .sx-rank-points{
    grid-column:3;
    grid-row:2;
    min-width:0;
    max-width:none;
    width:100%;
    align-items:flex-start;
    text-align:left;
    font-size:13px;
    line-height:1.35;
  }
  .sx-rank-points b,.sx-rank-points small{white-space:normal}
}
@media(max-width:390px){
  .sx-ranking li{grid-template-columns:24px 40px minmax(0,1fr);column-gap:8px}
  .sx-rank-avatar,.sx-rank-avatar-img{width:40px;height:40px}
  .sx-rank-name{font-size:15px}
  .sx-rank-points{font-size:12px}
}


/* v1.5.2 登录页面简洁美化与注册入口 */
.sx-checkin-wrap.is-guest{max-width:760px;padding:18px}
.sx-checkin-wrap.is-guest .sx-hero{padding:18px 22px;margin-bottom:14px;border-radius:16px}
.sx-checkin-wrap.is-guest .sx-hero h2{font-size:24px;margin-bottom:5px}
.sx-checkin-wrap.is-guest .sx-hero p{font-size:14px}
.sx-checkin-wrap.is-guest .sx-login-card{max-width:560px;margin:0 auto;padding:24px 26px;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(32,35,56,.06)}
.sx-login-heading{text-align:center;margin-bottom:20px}
.sx-login-heading h3{margin:0 0 6px!important;font-size:24px!important}
.sx-login-heading p{margin:0;color:#777;font-size:14px}
.sx-login-form p{margin-bottom:16px}
.sx-login-form input[type=text],.sx-login-form input[type=password]{padding:13px 14px;border:1px solid #dcdcdc;border-radius:12px;background:#fff;transition:border-color .2s,box-shadow .2s}
.sx-login-form input[type=text]:focus,.sx-login-form input[type=password]:focus{outline:0;border-color:#a85a22;box-shadow:0 0 0 3px rgba(168,90,34,.12)}
.sx-login-actions{margin-top:4px}
.sx-login-actions .sx-button{min-width:110px;border-radius:12px}
.sx-login-links{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid #eee;font-size:14px}
.sx-login-links a{text-decoration:none;font-weight:700}
.sx-register-link{color:#a85a22}
.sx-forgot-link{color:#777}
.sx-login-links a:hover{text-decoration:underline}
@media(max-width:600px){
  .sx-checkin-wrap.is-guest{padding:12px}
  .sx-checkin-wrap.is-guest .sx-hero{padding:15px 16px;margin-bottom:12px}
  .sx-checkin-wrap.is-guest .sx-hero h2{font-size:21px}
  .sx-checkin-wrap.is-guest .sx-login-card{padding:20px 16px}
  .sx-login-heading h3{font-size:22px!important}
  .sx-login-links{flex-direction:column;align-items:center;gap:10px}
}


/* v1.5.5 平板端：沿用手机端布局，避免四列数据卡片在窄屏平板中挤压 */
@media (min-width:601px) and (max-width:1024px){
  .sx-checkin-wrap{max-width:680px;padding:14px;border-radius:16px}
  .sx-hero{padding:20px}
  .sx-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .sx-task-card{align-items:flex-start;flex-direction:column}
  .sx-button{width:100%}
  .sx-my-rank{grid-template-columns:1fr}
  .sx-ranking-tabs{flex-direction:column}
  .sx-ranking-tab{width:100%}
  .sx-ranking-card{padding:18px 14px}
  .sx-ranking li{
    display:grid;
    grid-template-columns:28px 44px minmax(0,1fr);
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:10px;
    row-gap:3px;
    padding:15px 0;
  }
  .sx-rank{grid-column:1;grid-row:1 / span 2;width:auto;text-align:center;align-self:center}
  .sx-rank-avatar{grid-column:2;grid-row:1 / span 2;width:44px;height:44px;flex-basis:44px;align-self:center}
  .sx-rank-avatar-img{width:44px;height:44px}
  .sx-rank-name{
    grid-column:3;
    grid-row:1;
    display:block;
    width:auto;
    max-width:100%;
    min-width:0;
    white-space:nowrap;
    overflow:visible;
    text-overflow:clip;
    font-size:16px;
    line-height:1.35;
  }
  .sx-rank-points{
    grid-column:3;
    grid-row:2;
    min-width:0;
    max-width:none;
    width:100%;
    align-items:flex-start;
    text-align:left;
    font-size:13px;
    line-height:1.35;
  }
  .sx-rank-points b,.sx-rank-points small{white-space:normal}
}


/* v1.5.6 响应式修复：按“打卡模块自身宽度”而不是整台设备屏幕宽度判断。
   这样平板横屏、文章侧栏、小窗口中都会自动使用手机端布局。 */
.sx-checkin-wrap{container-type:inline-size;container-name:sxcheckin}
@container sxcheckin (max-width:700px){
  .sx-checkin-wrap{padding:14px;border-radius:16px}
  .sx-hero{padding:20px}
  .sx-hero h2{font-size:26px;line-height:1.2}
  .sx-my-rank{grid-template-columns:1fr}
  .sx-my-rank>div{padding:14px 16px}
  .sx-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .sx-stats>div{padding:14px 10px;min-width:0}
  .sx-stats strong{font-size:28px;line-height:1.2}
  .sx-stats span{display:block;margin-top:6px;line-height:1.35;word-break:keep-all}
  .sx-status-text{font-size:20px!important}
  .sx-task-card{align-items:flex-start;flex-direction:column}
  .sx-button{width:100%}
  .sx-ranking-tabs{flex-direction:column}
  .sx-ranking-tab{width:100%}
  .sx-ranking-card{padding:18px 14px}
  .sx-ranking li{
    display:grid;
    grid-template-columns:28px 44px minmax(0,1fr);
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:10px;
    row-gap:3px;
    padding:15px 0;
  }
  .sx-rank{grid-column:1;grid-row:1 / span 2;width:auto;text-align:center;align-self:center}
  .sx-rank-avatar{grid-column:2;grid-row:1 / span 2;width:44px;height:44px;flex-basis:44px;align-self:center}
  .sx-rank-avatar-img{width:44px;height:44px}
  .sx-rank-name{grid-column:3;grid-row:1;display:block;width:auto;max-width:100%;min-width:0;white-space:nowrap;overflow:visible;text-overflow:clip;font-size:16px;line-height:1.35}
  .sx-rank-points{grid-column:3;grid-row:2;min-width:0;max-width:none;width:100%;align-items:flex-start;text-align:left;font-size:13px;line-height:1.35}
  .sx-rank-points b,.sx-rank-points small{white-space:normal}
}
@container sxcheckin (max-width:430px){
  .sx-checkin-wrap{padding:10px}
  .sx-hero{padding:16px}
  .sx-hero h2{font-size:23px}
  .sx-user-row{margin:12px 2px}
  .sx-my-rank>div{padding:12px 14px}
  .sx-my-rank>div strong{font-size:20px}
  .sx-stats{gap:8px}
  .sx-stats>div{padding:12px 8px}
  .sx-stats strong{font-size:26px}
  .sx-stats span{font-size:13px}
  .sx-ranking li{grid-template-columns:24px 40px minmax(0,1fr);column-gap:8px}
  .sx-rank-avatar,.sx-rank-avatar-img{width:40px;height:40px}
  .sx-rank-name{font-size:15px}
  .sx-rank-points{font-size:12px}
}
