
/* ACEMIC global shell - header. Scoped to .ac-shell so Fashion theme styles cannot leak. */
.ac-shell{--ac-green:#6cc21e;--ac-green-d:#529b12;--ac-ink:#15181d;--ac-grey:#6b7280;--ac-line:#e6e9ed;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;box-sizing:border-box}
.ac-shell *,.ac-shell *:before,.ac-shell *:after{box-sizing:border-box}
.ac-shell a{color:inherit;text-decoration:none}
.ac-shell button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.ac-container{max-width:1280px;margin:0 auto;padding:0 24px;width:100%}

/* announcement */
.ac-announce{height:38px;background:#fff;border-bottom:1px solid var(--ac-line);display:flex;align-items:center;justify-content:center;gap:18px;font-size:12px;color:#3b414b;letter-spacing:.2px}
.ac-announce-arrow{width:26px;height:26px;display:flex;align-items:center;justify-content:center;color:#9aa2ad;border-radius:4px}
.ac-announce-arrow:hover{background:#f2f4f6;color:var(--ac-ink)}
.ac-announce-viewport{position:relative;min-width:min(560px,70vw);height:38px;overflow:hidden}
/* 单帧硬切换：交叉淡入会让两行公告短暂叠字，观感很差 */
.ac-announce-item{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;opacity:0;visibility:hidden;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-announce-item.on{opacity:1;visibility:visible;pointer-events:auto}
.ac-announce-item b{color:var(--ac-green-d);font-weight:700}
.ac-announce-item a{color:var(--ac-green-d);font-weight:600;text-decoration:underline;text-underline-offset:2px}

/* head row */
.ac-head{background:#fff;border-bottom:1px solid var(--ac-line);position:relative;z-index:60}
.ac-head-row{height:84px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}
.ac-search{display:flex;align-items:center;gap:8px;width:220px;height:36px;border:1px solid #dfe3e8;border-radius:4px;padding:0 12px;background:#fff;transition:border-color .2s,box-shadow .2s}
.ac-search:focus-within{border-color:var(--ac-green);box-shadow:0 0 0 3px rgba(108,194,30,.12)}
.ac-search svg{width:15px;height:15px;flex:none;stroke:#8b939d;fill:none;stroke-width:2}
.ac-search input{border:0;outline:0;width:100%;font-size:12px;color:var(--ac-ink);background:transparent}
.ac-search input::placeholder{color:#9aa2ad}
.ac-logo{display:flex;align-items:center;justify-content:center}
.ac-logo img{height:42px;width:auto;max-width:190px;object-fit:contain;display:block}
.ac-head-tools{display:flex;align-items:center;justify-content:flex-end;gap:20px;font-size:12px;color:#4b5563}
.ac-dd{position:relative;display:flex;align-items:center;gap:4px;font-size:12px;color:#4b5563;white-space:nowrap}
.ac-dd>svg,.ac-dd .chev{width:10px;height:10px;stroke:#6b7280;fill:none;stroke-width:2}
.ac-dd-menu{position:absolute;top:calc(100% + 12px);left:0;min-width:172px;background:#fff;border:1px solid var(--ac-line);border-radius:8px;box-shadow:0 12px 32px rgba(16,24,40,.14);padding:6px;display:none;z-index:120;max-height:280px;overflow:auto}
.ac-dd.open .ac-dd-menu{display:block}
.ac-dd-menu button{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:5px;font-size:12px;color:#374151}
.ac-dd-menu button:hover{background:#f3f7ee;color:var(--ac-green-d)}
.ac-dd-menu button.on{color:var(--ac-green-d);font-weight:700}
.ac-icon{position:relative;display:flex;align-items:center;justify-content:center;width:24px;height:24px;color:#1f2937}
.ac-icon svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7}
.ac-cart-count{position:absolute;top:-5px;right:-8px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--ac-green);color:#fff;font-size:10px;line-height:16px;text-align:center;font-weight:700}
.ac-burger{display:none;width:28px;height:28px;align-items:center;justify-content:center}
.ac-burger svg{width:22px;height:22px;stroke:#1f2937;fill:none;stroke-width:2}

/* nav */
.ac-nav-row{display:flex;align-items:center;justify-content:center;gap:38px;height:46px;font-size:13px;font-weight:500;color:#2d333c}
.ac-nav-row>a,.ac-nav-item>a{display:inline-flex;align-items:center;gap:5px;height:46px;position:relative;white-space:nowrap}
.ac-nav-row>a:after,.ac-nav-item>a:after{content:"";position:absolute;left:0;right:0;bottom:8px;height:2px;background:var(--ac-green);transform:scaleX(0);transition:transform .2s}
.ac-nav-row>a:hover,.ac-nav-item>a:hover,.ac-nav-row>a.active,.ac-nav-item>a.active{color:var(--ac-green-d)}
.ac-nav-row>a:hover:after,.ac-nav-item>a:hover:after,.ac-nav-row>a.active:after{transform:scaleX(1)}
.ac-nav-item{position:relative}
.ac-nav-item .chev{width:9px;height:9px;stroke:currentColor;fill:none;stroke-width:2;transition:transform .2s}
.ac-nav-item.open .chev{transform:rotate(180deg)}
.ac-nav-item .ac-sub{position:absolute;top:46px;left:-18px;min-width:230px;background:#fff;border:1px solid var(--ac-line);border-radius:0 0 8px 8px;box-shadow:0 16px 36px rgba(16,24,40,.14);padding:8px;display:none;z-index:110}
.ac-nav-item.open .ac-sub,.ac-nav-item:hover .ac-sub{display:block}
.ac-nav-item .ac-sub a{display:block;padding:9px 12px;border-radius:5px;font-size:12.5px;color:#374151;white-space:nowrap}
.ac-nav-item .ac-sub a:hover{background:#f3f7ee;color:var(--ac-green-d)}

/* 3-level mega menu */
.ac-mega{position:absolute;top:46px;left:50%;transform:translateX(-50%);width:min(1000px,calc(100vw - 48px));background:#fff;border:1px solid var(--ac-line);border-radius:0 0 10px 10px;box-shadow:0 22px 48px rgba(16,24,40,.18);display:none;z-index:115;overflow:hidden}
.ac-nav-item.open .ac-mega,.ac-nav-item:hover .ac-mega{display:block}
.ac-mega-inner{display:grid;grid-template-columns:290px 1fr;min-height:330px}
.ac-mega-left{background:#fafbfc;border-right:1px solid var(--ac-line);padding:14px 0}
.ac-mega-head{padding:6px 20px 12px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#9aa2ad;font-weight:700}
.ac-mega-l2{list-style:none;margin:0;padding:0}
.ac-mega-l2 li{margin:0}
.ac-mega-l2 a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 20px;font-size:12.5px;color:#374151;border-left:3px solid transparent}
.ac-mega-l2 a:hover,.ac-mega-l2 li.on>a{background:#fff;color:var(--ac-green-d);border-left-color:var(--ac-green);font-weight:600}
.ac-mega-l2 a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ac-mega-l2 a i{font-style:normal;color:#b6bdc6}
.ac-mega-right{padding:22px 26px}
.ac-mega-panel{display:none}
.ac-mega-panel.on{display:block;animation:acFade .2s ease}
@keyframes acFade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.ac-mega-panel h4{margin:0 0 4px;font-size:17px;color:var(--ac-ink)}
.ac-mega-panel .ac-meta{font-size:12px;color:#9aa2ad;margin-bottom:16px}
.ac-mega-l3{display:grid;grid-template-columns:1fr 1fr;gap:2px 26px}
.ac-mega-l3 a{display:flex;align-items:center;gap:8px;padding:7px 0;font-size:12.5px;color:#4b5563;border-bottom:1px dashed #eef0f3;line-height:1.35}
.ac-mega-l3 a:hover{color:var(--ac-green-d)}
.ac-mega-l3 a:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--ac-green);flex:none}
.ac-mega-all{display:inline-flex;align-items:center;gap:6px;margin-top:18px;padding:9px 16px;background:var(--ac-green);color:#fff!important;border-radius:4px;font-size:12px;font-weight:700}
.ac-mega-all:hover{background:var(--ac-green-d)}

@media(max-width:1024px){
  .ac-head-row{grid-template-columns:auto 1fr auto;height:70px}
  .ac-search{width:170px}
  .ac-nav-row{gap:20px;overflow-x:auto;justify-content:flex-start;scrollbar-width:none}
  .ac-nav-row::-webkit-scrollbar{display:none}
  .ac-mega-inner{grid-template-columns:230px 1fr}
}
@media(max-width:760px){
  .ac-container{padding:0 16px}
  .ac-announce{font-size:11px;gap:6px}
  .ac-announce-viewport{min-width:0;width:72vw}
  .ac-head-row{grid-template-columns:1fr auto;height:62px;gap:10px}
  .ac-search{display:none}
  .ac-logo{justify-content:flex-start}
  .ac-logo img{height:34px}
  .ac-head-tools{gap:12px}
  .ac-dd{display:none}
  .ac-burger{display:flex}
  .ac-nav-row{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--ac-line);height:auto;max-height:70vh;overflow:auto;flex-direction:column;align-items:stretch;gap:0;padding:8px 16px 16px;box-shadow:0 18px 30px rgba(16,24,40,.14)}
  .ac-shell.nav-open .ac-nav-row{display:flex}
  .ac-nav-row>a,.ac-nav-item>a{height:44px;justify-content:space-between}
  .ac-nav-item .ac-sub,.ac-mega{position:static;transform:none;width:100%;box-shadow:none;border:0;border-top:1px solid var(--ac-line);display:none}
  .ac-nav-item.open .ac-sub{display:block}
  .ac-nav-item.open .ac-mega{display:block}
  .ac-mega-inner{grid-template-columns:1fr;min-height:0}
  .ac-mega-left{background:#fff;border-right:0;border-bottom:1px solid var(--ac-line);padding:6px 0}
  .ac-mega-right{padding:14px}
  .ac-mega-l3{grid-template-columns:1fr}
}
