/* One search field, one news entry, one personal menu. */
/* Keep the navigation control and brand lockup in one compact, aligned group. */
.header .brand{display:flex;align-items:center;gap:0}
.header .brand-line{flex:none;width:1px;height:16px;margin:0 10px;background:#dedede}
.header .brand-sub{font-family:"Alimama ShuHeiTi","Alibaba PuHuiTi 3.0","PingFang SC","Microsoft YaHei",sans-serif;font-size:18px;line-height:26px;height:26px;display:inline-flex;align-items:center;font-weight:700;letter-spacing:.3px;color:#161616;transform:translateY(-1px)}
.header .header-inner{display:grid;grid-template-columns:32px auto minmax(0,1fr) auto;gap:14px;max-width:none;padding:0 28px}
.header .header-search{display:flex;align-items:center;justify-self:center;gap:11px;width:min(440px,100%);height:38px;min-width:0;max-width:none;margin:0;padding:0 15px;border:0;border-radius:999px;background:#f3f4f3;box-shadow:none;color:#737773;text-align:left;font-size:13px;transition:background .16s ease}
.header .header-search:hover{background:#ebeeeb;border:0;box-shadow:none}
.header .header-search>svg{order:0;display:block;flex:none;width:18px;height:18px;box-sizing:border-box;padding:0;border:0;color:#606760;stroke-width:1.8}
.header .header-search>span{display:block;flex:1;min-width:0;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header .header-search kbd{display:block;flex:none;border:0;padding:0;background:none;box-shadow:none;border-radius:0;color:#969c96;font:11px var(--font-brand);white-space:nowrap}
.header .header-search:focus-visible,.header-profile>summary:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.header .header-actions{display:flex;align-items:center;gap:18px}
.header .announcement-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 6px;border:0;border-radius:8px;background:none;color:#424942;font-size:12px;font-weight:500;white-space:nowrap}
.header .announcement-trigger:hover{background:#f1f3f1;color:#161b16}
.header .announcement-trigger[hidden]{display:none}
.header .announcement-trigger>span{background:none;border-radius:0}
.header .header-product-link{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 8px;border-radius:8px;color:#424942;font-size:12px;font-weight:500;line-height:1;white-space:nowrap;transition:background .16s ease,color .16s ease}
.header .header-product-link:hover{background:#f1f3f1;color:#161b16}
.header .header-product-link>svg{display:block;flex:none;width:14px;height:14px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.header .header-news-icon{position:relative;display:block;flex:none;width:18px;height:20px}
.header .header-news-icon svg{display:block;width:18px;height:20px;stroke-width:1.7}
.header .header-news-icon i{position:absolute;right:-2px;top:0;width:5px;height:5px;background:var(--brand);border-radius:50%;box-shadow:0 0 0 2px #fff}
.header .header-news-label{display:block;width:auto;height:auto}
.header-profile{position:relative}
.header .profile-button{display:grid;place-items:center;list-style:none;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#1c201d;color:#fff;font-size:12px;line-height:1;font-weight:550;cursor:pointer;user-select:none;transition:background .16s ease}
.header .profile-button::-webkit-details-marker{display:none}
.header .profile-button::marker{content:''}
.header .profile-button:hover,.header-profile[open]>.profile-button{background:#3b453e}
.profile-popover{position:absolute;z-index:50;top:calc(100% + 14px);right:0;display:grid;gap:3px;width:196px;max-width:calc(100vw - 32px);padding:8px;border-radius:12px;background:#fff;box-shadow:0 8px 28px #17231914,0 0 0 1px #1723190b}
.header-profile:not([open])>.profile-popover{display:none}
.profile-popover a,.profile-popover .profile-auth-action{display:flex;align-items:center;gap:11px;min-height:40px;padding:0 12px;border-radius:7px;font-size:13px;font-weight:500;color:#303630;white-space:nowrap}
.profile-popover a:hover,.profile-popover .profile-auth-action:hover{background:#f1f4f1}
.profile-popover a:focus-visible,.profile-popover .profile-auth-action:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.profile-popover a svg,.profile-popover .profile-auth-action svg{width:17px;height:17px;color:#687168;stroke-width:1.7;flex:none}
.profile-menu-divider{height:1px;background:#eff1ef;margin:5px 10px}
@media(max-width:1000px){
  .header .header-inner{gap:14px;padding:0 21px}
  .header .header-actions{gap:12px}
  .header .header-search{width:min(380px,100%)}
}
@media(max-width:760px){
  .header .brand-sub{font-size:16px;margin-left:10px}
  .header .header-inner{grid-template-columns:28px auto minmax(0,1fr) auto;gap:10px;padding:0 20px}
  .header .header-search{height:36px;padding:0 12px;gap:8px}
  .header .header-search>span{font-size:12px}
  .header .header-search kbd{display:none}
  .header .header-actions{gap:12px}
  .header .profile-button{width:32px;height:32px}
}
@media(max-width:600px){
  .header .header-inner{gap:8px;padding:0 16px}
  .header .header-search,.header .header-search:hover{justify-self:end;justify-content:center;width:32px;height:34px;padding:0;background:none}
  .header .header-search>span,.header .header-search kbd{display:none}
  .header .header-search>svg{width:19px;height:19px}
  .header .announcement-trigger{width:32px;height:34px;padding:0}
  .header .header-product-link{height:34px;padding:0 6px;font-size:11px}
  .header .header-product-link>svg{width:13px;height:13px}
  .header .header-news-label{display:none}
  .header .header-actions{gap:10px}
  .profile-popover{top:calc(100% + 12px)}
}
@media(max-width:360px){
  .header .brand-sub{font-size:14px;margin-left:8px}
  .header .header-inner{gap:8px;padding:0 14px}
  .header .header-actions{gap:8px}
  .header .brand{gap:0}
}

.profile-identity{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px 12px;margin-bottom:3px;border-bottom:1px solid #eff1ef}
.profile-identity strong{font-size:13px;font-weight:600;color:#242c25}
.profile-identity>span{font-size:10px;line-height:1.5;padding:2px 6px;background:#f0f3f0;color:#7b847b;border-radius:4px}
.profile-popover .profile-auth-action{width:100%;text-align:left;color:#6b504e}
.profile-popover .profile-auth-action svg{color:inherit}
.header-profile[data-session="guest"] .profile-auth-action{color:#168044}
.header .profile-button>svg{width:17px;height:17px;stroke-width:1.7}
.profile-auth-action:disabled{opacity:.5;cursor:default}
.login-dialog{position:fixed;inset:0;margin:auto;width:min(380px,calc(100vw - 40px));padding:38px 30px 28px;border:0;border-radius:20px;background:#fff;color:#1b211c;box-shadow:0 20px 70px #0003;text-align:center}
.login-dialog::backdrop{background:#1119}
.login-close{position:absolute;right:14px;top:14px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:#7b837c}
.login-close:hover{background:#f0f2f0;color:#161b16}.login-close svg{width:16px;height:16px}
.login-brand{display:block;width:40px;height:44px;object-fit:contain;margin:4px auto 20px}
.login-dialog h2{font-size:24px;font-weight:650;line-height:1.4;letter-spacing:-.3px;margin:0 0 26px}
.login-authorize{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;border-radius:999px;background:#181e19;color:#fff;font-size:13px;font-weight:550}
.login-authorize:hover{background:#2c3b2f}.login-authorize img{width:19px;height:21px;object-fit:contain}
.login-dialog p{font-size:11px;line-height:1.6;color:#8b928c;margin:17px 0 0}
