/* Neon（第三套主题）：参考京东风格（白底+红色点缀+规整栅格） */
:root{
  --neo-bg: #f4f4f4;
  --neo-surface: #ffffff;
  --neo-text: #111827;
  --neo-muted: rgba(17,24,39,.65);
  --neo-border: rgba(17,24,39,.12);
  --neo-shadow: 0 8px 24px rgba(0,0,0,.06);
  --neo-radius: 12px;
  --neo-red: #e1251b;
  --neo-red-2: #c81623;
}

body.theme-neon{
  background: var(--neo-bg);
  color: var(--neo-text);
}
.theme-neon a{ color: inherit; }

.neo-container{
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

/* Topbar */
.neo-topbar{
  background: #f6f6f6;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.neo-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 0;
  font-size: 13px;
  color: rgba(17,24,39,.65);
}
.neo-topbar .sep{ margin: 0 8px; opacity:.55; }
.neo-topbar a:hover{ color: var(--neo-text); }

/* Masthead */
.neo-masthead{
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.neo-masthead-inner{
  display:flex;
  align-items:flex-start;
  gap: 18px;
  padding: 14px 0;
}
.neo-logo{ display:flex; align-items:flex-start; padding-top: 2px; }
.neo-logo img{ height: 56px; width:auto; display:block; }
.neo-search-col{ flex: 1; min-width: 520px; }
.neo-search-wrap{ width: 100%; }
.neo-search-col{ padding-top: 6px; }
.neo-search{
  display:flex;
  align-items:center;
  gap: 10px;
  border: 2px solid var(--neo-red);
  background: #fff;
  border-radius: 2px;
  padding: 6px 6px 6px 10px;
  box-shadow: none;
}
.neo-search .search-ipt{
  border: none !important;
  background: transparent !important;
  outline: none;
  height: 30px;
  line-height: 30px;
}
.neo-search .search-btn{
  border: 0;
  border-radius: 2px;
  padding: 0 22px;
  height: 32px;
  line-height: 32px;
  background: var(--neo-red);
  color: #fff;
  font-weight: 700;
}
/* common.css 中 .wst-search .search-btn 为 position:absolute，未覆盖时与 flex 冲突，导致按钮上移错位 */
.neo-search.wst-search{
  margin-left: 0;
  margin-top: 0;
  height: auto;
}
.neo-search.wst-search .search-btn{
  position: static;
  top: auto;
  right: auto;
  float: none;
  width: auto;
  min-width: 76px;
}
.neo-search.wst-search .search-ipt{
  float: none;
  width: auto !important;
  flex: 1 1 200px;
  min-width: 0;
  padding-left: 12px !important;
  height: 32px;
  line-height: 32px;
}
.neo-search.wst-search .j-search-box{
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.neo-search.wst-search .j-search-type{
  position: relative;
  left: auto;
  top: auto;
  float: none;
  width: 78px;
  height: 32px;
  line-height: 32px;
  box-sizing: border-box;
  border-right: 1px solid rgba(0,0,0,.08);
}
.neo-search.wst-search .j-type-list{
  top: 100%;
  margin-top: 4px;
}
.neo-hotwords{
  display:flex;
  gap: 14px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: rgba(17,24,39,.60);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.neo-hotwords a{ color: rgba(17,24,39,.60); }
.neo-hotwords a:hover{ color: var(--neo-red); }

.neo-hotwords a:first-child{ color: var(--neo-red); }

.neo-mast-actions{ display:flex; align-items:center; }
.neo-mast-actions{ padding-top: 6px; }

@media (max-width: 980px){
  .neo-search-col{ min-width: 0; }
  .neo-hotwords{ display:none; }
}
.neo-cart-link{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
}
.neo-cart-link:hover{ border-color: var(--neo-red); color: var(--neo-red); }

/* Subnav */
.neo-subnav{
  border-top: 1px solid rgba(0,0,0,.06);
  background: #fff;
}
.neo-subnav-row{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 10px 0;
  font-size: 14px;
}
.neo-subnav-primary a{
  display:inline-flex;
  align-items:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 2px;
  color: rgba(17,24,39,.78);
}
.neo-subnav-primary a.is-active,
.neo-subnav-primary a:hover{
  background: rgba(225,37,27,.08);
  color: var(--neo-red);
}
.neo-subnav-sep{ flex: 1; }
.neo-subnav-mall a{ margin-left: 10px; color: rgba(15,23,42,.65); }
.neo-subnav-mall a:hover{ color: var(--neo-text); }

/* Footer */
.neo-footer{
  margin-top: 28px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
}
.neo-footer-inner{
  display:flex;
  gap: 24px;
  padding: 22px 0;
  align-items:flex-start;
  justify-content:space-between;
}
.neo-footer-brand{
  display:flex;
  gap: 12px;
  align-items:center;
}
.neo-footer-logo{ height: 42px; width: auto; display:block; }
.neo-footer-name{ font-weight: 700; }
.neo-footer-sub{ color: rgba(15,23,42,.62); font-size: 13px; margin-top:2px; }
.neo-footer-links-row a{ margin-left: 12px; color: rgba(17,24,39,.70); }
.neo-footer-links-row a:hover{ color: var(--neo-text); }
.neo-footer-copy{ margin-top: 8px; color: rgba(17,24,39,.60); font-size: 12px; line-height: 1.7; }

/* Buttons / inputs（尽量只覆盖组件，不“全站乱改”） */
.theme-neon .wst-sec-but,
.theme-neon .wst-login-but,
.theme-neon .wst-regist-but,
.theme-neon button,
.theme-neon input[type="submit"]{
  border-radius: 999px;
}
.theme-neon input[type="text"],
.theme-neon input[type="password"],
.theme-neon textarea{
  border-radius: 2px;
}

/* 右侧快捷条：Neon 首页 __STYLE__ 为 neon，须单独引用 default 的 right_cart 资源；此处做主题微调 */
.theme-neon .j-global-toolbar .toolbar-wrap{
  z-index: 10050;
  filter: drop-shadow(-4px 0 12px rgba(0,0,0,.12));
}
.theme-neon .j-global-toolbar .toolbar{
  border-right-color: var(--neo-red);
}
.theme-neon .j-global-toolbar .toolbar-tab{
  transition: background-color .15s ease, filter .15s ease;
}
.theme-neon .j-global-toolbar .toolbar-tab:hover,
.theme-neon .j-global-toolbar .toolbar-tab.tbar-tab-selected{
  background-color: #1f2937;
}
