/* Shangan unified search and account/local history. */
.gs-form{position:relative;display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #f3bac3;border-radius:14px;padding:6px;box-shadow:0 5px 18px rgba(230,0,18,.06)}
.gs-form:focus-within{border-color:#e60012;box-shadow:0 0 0 3px #fff0f2}
.gs-form input{width:100%;min-width:0;flex:1;height:38px;padding:0 8px;border:0!important;background:transparent!important;outline:none!important;box-shadow:none!important;font-size:14px;color:#2b2f35}
.gs-form input::placeholder{color:#88919e}
.gs-form>button{flex:none;width:44px;height:38px;padding:0;border:0;border-radius:10px;background:#e60012;color:#fff;display:grid;place-items:center;cursor:pointer}
.gs-form>button .ui-icon{font-size:20px}
.gs-form>button:hover{background:#c80012}
.header-search.gs-form{width:310px;flex-shrink:1}
.header-search.gs-form input{font-size:12px}
.gs-history{position:absolute;top:calc(100% + 9px);left:0;right:0;z-index:150;padding:16px;background:#fff;border:1px solid #f0e2e5;border-radius:14px;box-shadow:0 15px 34px rgba(42,29,33,.14)}
.gs-history[hidden]{display:none!important}
.gs-history-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.gs-history-head b{font-size:14px;color:#343941}
.gs-history-head button{border:0;background:transparent;color:#c82034;font-size:12px;cursor:pointer;padding:4px}
.gs-history-list{display:flex;gap:8px;flex-wrap:wrap;max-height:220px;overflow:auto}
.gs-history-chip{display:inline-flex;max-width:100%;align-items:center;border:1px solid #edeff3;border-radius:8px;background:#f8f9fb;overflow:hidden}
.gs-history-chip button{border:0;background:transparent;cursor:pointer;color:#535d69}
.gs-history-term{padding:8px 4px 8px 10px;font-size:12px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gs-history-remove{font-size:18px;line-height:1;padding:6px 8px;color:#939ba7!important}
.gs-history-chip button:hover{color:#e60012!important}
.gs-history-note{margin:11px 0 0;color:#88919e;font-size:11px;line-height:1.6}
.gs-home-entry{position:relative;margin-bottom:14px;padding:14px;border:1px solid #f4dce1;border-radius:16px;background:linear-gradient(120deg,#fff,#fff6f7)}
.gs-home-entry>div{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:10px}
.gs-home-entry strong{font-size:15px;color:#343941}
.gs-home-entry small{font-size:11px;color:#929aa6}
.gs-home-entry input{font-size:12px;padding-left:7px}
.gs-page{max-width:1180px;margin:0 auto;padding:24px 0 50px}
.gs-hero{padding:28px 30px;border:1px solid #f4dce1;border-radius:18px;background:linear-gradient(110deg,#fff 45%,#fff3f5);margin-bottom:22px}
.gs-hero .gs-kicker{color:#e60012;font-size:12px;font-weight:800;letter-spacing:.08em}
.gs-hero h1,.gs-hero h2{font-size:28px;margin:8px 0;color:#2b2f35}
.gs-hero>p{color:#7d8794;font-size:13px;margin:0 0 18px;line-height:1.8}
.gs-main-search{max-width:680px}
.gs-section{margin-top:24px}
.gs-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.gs-section-head h2{margin:0;font-size:18px;color:#343941}
.gs-section-head span,.gs-section-head a{font-size:12px;color:#7d8794}
.gs-section-head a{color:#c82034;text-decoration:none}
.gs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gs-result{display:block;padding:20px;border:1px solid #e6eaf0;border-radius:14px;background:#fff;min-width:0;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.gs-result:hover{border-color:#efb0ba;box-shadow:0 6px 20px rgba(230,0,18,.06)}
.gs-result h3{font-size:16px;color:#343941;margin:9px 0 7px;line-height:1.6;overflow-wrap:anywhere}
.gs-result .gs-tags{display:flex;gap:7px;flex-wrap:wrap;font-size:11px;color:#2367b8}
.gs-tags span{padding:3px 7px;border-radius:5px;background:#eff6ff}
.gs-result p{margin:5px 0;color:#778291;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.gs-result dl{display:flex;gap:20px;margin:13px 0 0;padding-top:12px;border-top:1px solid #f0f2f5}
.gs-result dl div{display:flex;gap:6px;font-size:12px;line-height:1.6;flex-wrap:wrap}
.gs-result dt{color:#929aa6}.gs-result dd{margin:0;color:#4f5a68}
.gs-result dl div:first-child dd{color:#e60012;font-weight:700}
.gs-empty{padding:35px 18px;border:1px dashed #e4e8ee;border-radius:14px;text-align:center;background:#fff;color:#7d8794;line-height:1.8;font-size:13px}
.gs-empty strong{display:block;color:#343941;font-size:16px;margin-bottom:7px}
.gs-pagination{display:flex;gap:7px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:22px}
.gs-pagination a{display:grid;place-items:center;min-width:36px;height:36px;padding:0 9px;border:1px solid #e4e8ee;border-radius:8px;background:#fff;color:#647181;text-decoration:none;font-size:13px}
.gs-pagination a.active{background:#e60012;border-color:#e60012;color:#fff}
.gs-pagination span{color:#929aa6;font-size:12px}
@media(max-width:1100px){.header-search.gs-form{width:270px}.gs-page{padding-left:20px;padding-right:20px}}
.mobile .gs-page{padding:0 8px 32px}
.mobile .gs-hero{padding:20px 14px;margin-bottom:16px;border-radius:15px}
.mobile .gs-hero h2{font-size:23px}.mobile .gs-hero>p{font-size:12px}
.mobile .gs-main-search input{font-size:12px}
.mobile .gs-grid{grid-template-columns:1fr;gap:10px}
.mobile .gs-result{padding:15px 14px}
.mobile .gs-result h3{font-size:15px}.mobile .gs-result dl{gap:12px}
.mobile .gs-section{margin-top:20px}.mobile .gs-section-head h2{font-size:16px}
.mobile .gs-history{padding:13px;z-index:200}
@media(max-width:360px){.gs-home-entry{padding:11px}.gs-home-entry input,.mobile .gs-main-search input{font-size:11px;padding-left:4px}.gs-form>button{width:36px}.gs-history-term{max-width:180px}}

/* Compact desktop header: one outline, flush search action. */
body.pc .header-search.gs-form{height:38px;min-height:38px;padding:0;gap:0;border:1px solid #f0cbd1;border-radius:10px;background:#fffafb;box-shadow:none;align-items:stretch}
body.pc .header-search.gs-form input{height:36px;line-height:36px;padding:0 11px;font-size:12px;border-radius:9px 0 0 9px}
body.pc .header-search.gs-form>button{width:42px;height:36px;min-height:0;margin:0;border:0;border-radius:0 9px 9px 0;box-shadow:none;background:#e60012}
body.pc .header-search.gs-form>button .ui-icon{font-size:18px}
body.pc .header-search.gs-form>button:hover{background:#c80012}
body.pc .header-search.gs-form:focus-within{border-color:#e60012;background:#fff;box-shadow:0 0 0 2px rgba(230,0,18,.06)}
body.pc .header-search.gs-form>button:focus-visible{outline:2px solid #9e0010;outline-offset:-3px}

/* Desktop header history: wider panel and full, wrapping search phrases. */
body.pc .header-search .gs-history{left:auto;right:0;width:min(560px,calc(100vw - 32px));box-sizing:border-box;padding:20px;border-radius:16px}
body.pc .header-search .gs-history-list{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-start;gap:9px;max-height:300px;overflow:auto}
body.pc .header-search .gs-history-chip{display:flex;width:max-content;max-width:100%;align-items:flex-start;box-sizing:border-box}
body.pc .header-search .gs-history-term{flex:1;min-width:0;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;text-align:left;font-size:13px;line-height:1.6;padding:9px 6px 9px 12px}
body.pc .header-search .gs-history-remove{flex:none;padding:10px 10px;line-height:20px}

/* Reset the legacy header button width inside history records. */
body.pc .header-search .gs-history button{width:auto;height:auto;min-height:0;background:transparent;color:#535d69;border-radius:0}
body.pc .header-search .gs-history .gs-history-term{flex:1 1 auto;width:auto;max-width:none;word-break:normal;white-space:normal;line-height:1.6}
body.pc .header-search .gs-history .gs-history-remove{flex:0 0 34px;width:34px}
body.pc .header-search .gs-history-head button{color:#c82034}
