/* 账号、验证码与个人中心布局；小屏保持表单和按钮完整可操作。 */
.account-header-link{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;color:inherit;text-decoration:none}.account-header-link svg{width:18px;height:18px}#account-entry{display:flex;align-items:center;gap:12px}.account-shell{max-width:520px;margin:auto}.account-intro{color:var(--muted);line-height:1.8}.account-form{display:grid;gap:18px;margin-top:24px}.account-form input{box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:6px;background:#fff;font:inherit}.account-form .form-field{display:grid;gap:8px}.account-form small{color:var(--muted);font-size:12px}.captcha-row{display:flex;gap:12px;align-items:center}.captcha-row>input{flex:1;width:0;min-width:90px}.captcha-refresh{display:flex;flex-direction:column;align-items:center;flex:none;border:0;background:transparent;cursor:pointer;color:var(--muted);gap:3px}.captcha-refresh img{display:block;border:1px solid var(--line);border-radius:4px}.account-switch{text-align:center;margin-top:22px}.account-switch a,.account-section-heading a{color:var(--accent)}.account-profile{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px;background:#fff8f0;border:1px solid #ffe5c6;border-radius:8px}.account-profile h3{margin:0;overflow-wrap:anywhere}.account-profile p{margin:8px 0 0;color:var(--muted);font-size:13px}.account-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.account-stats a{display:grid;gap:6px;justify-items:center;padding:20px 8px;border:1px solid var(--line);border-radius:7px;text-decoration:none;color:inherit}.account-stats strong{font-size:25px;color:var(--accent)}.account-stats span{font-size:13px;color:var(--muted)}.account-actions{display:flex;flex-wrap:wrap;gap:12px}.account-recent{margin-top:28px}.account-section-heading{display:flex;justify-content:space-between;align-items:center}.account-recent .order-card{margin-top:12px}
@media(max-width:600px){.account-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.account-profile{padding:16px;align-items:flex-start}.account-profile .button{white-space:nowrap}.account-actions{display:grid}.captcha-row{gap:8px}.captcha-refresh img{width:144px;height:50px}#account-entry{gap:8px}.account-header-link{font-size:12px}}

/* 账号操作始终在页头；用户名按可用宽度省略，完整内容保留在标题提示中。 */
.account-header-username{min-width:0;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;color:var(--ink)}
.account-header-logout{flex:none;border:0;background:none;padding:5px 0;font:inherit;font-size:13px;line-height:1.5;color:#586572;white-space:nowrap;cursor:pointer}
.account-header-logout:hover,.account-header-logout:focus-visible{color:var(--accent)}
.account-header-logout:disabled{opacity:.55;cursor:wait}
/* 手机依次排品牌、右对齐账号操作、搜索；不压缩点击区域或遮挡长用户名。 */
@media(max-width:600px){
  html{scroll-padding-top:194px}
  .site-header .header-inner{height:auto;min-height:142px;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 0}
  .site-header .header-actions{order:1;flex:0 0 100%;width:100%;min-width:0;margin:0;justify-content:flex-end}
  .site-header .header-search{order:2;position:static;flex:0 0 100%;width:100%;max-width:none}
  .header-actions #account-entry{flex:1;min-width:0;justify-content:flex-end}
  .account-header-username{font-size:12px;max-width:120px}
  .account-header-link{flex:none}
  .account-header-link svg{display:none}
  .account-header-logout{font-size:12px}
}
