/* PC O2O header layout — Meituan/Ele.me style; scoped to .header-o2o */
.header.header-o2o {
  width: 100%;
  min-width: 1210px;
  height: auto;
  padding: 12px 0 0;
  background: #fff;
  margin: 0 auto;
  box-sizing: border-box;
}
.header.header-o2o .header-o2o-inner {
  position: relative;
  width: 1210px;
  margin: 0 auto;
}
.header.header-o2o .header-o2o-row1 {
  display: flex;
  align-items: center;
  height: 56px;
  position: relative;
  z-index: 100;
}
.header.header-o2o .header-o2o-row2 {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 0 4px;
  margin-left: 0;
  position: relative;
  z-index: 50;
}

/* Logo: icon + brand text */
.header.header-o2o .logo-info {
  width: auto;
  max-width: 260px;
  height: 56px;
  line-height: 56px;
  float: none;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-right: 16px;
}
.header.header-o2o .logo-info a.logo {
  display: flex;
  align-items: center;
  width: auto;
  height: 48px;
  float: none;
  overflow: visible;
  text-decoration: none;
}
.header.header-o2o .logo-info a.logo img {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: cover;
  border-radius: 10px;
  vertical-align: middle;
}
.header.header-o2o .logo-info a.logo .logo-brand {
  display: inline-block;
  margin-left: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #ff6600;
  line-height: 1.2;
  letter-spacing: 1px;
  white-space: nowrap;
}
.header.header-o2o .logo-info a.logo-right {
  display: none; /* keep content but hide ad to match compact O2O look; still in DOM */
}

/* Category button next to logo */
.header.header-o2o .header-o2o-cat {
  position: relative;
  width: auto;
  height: 40px;
  float: none;
  flex: 0 0 auto;
  margin-right: 14px;
  z-index: 200;
}
.header.header-o2o .header-o2o-cat .menu-event {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff !important;
  background: #ff6600;
  text-indent: 0;
  text-decoration: none;
  width: auto;
  min-width: 110px;
  height: 40px;
  line-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  top: auto;
  left: auto;
  z-index: 201;
  box-sizing: border-box;
}
.header.header-o2o .header-o2o-cat .menu-event i {
  /* restyle as white dropdown caret */
  background: none !important;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
  display: inline-block;
  position: static;
  top: auto;
  left: auto;
  margin: 0;
}
.header.header-o2o .header-o2o-cat .menu-event {
  /* put caret after text via flex order — text first */
}
/* moved to end */

/* Search: wide, orange border, orange button */
.header.header-o2o .search,
.header.header-o2o .header-o2o-search {
  width: auto;
  flex: 1 1 auto;
  float: none;
  margin-left: 0;
  position: relative;
  z-index: 99;
  max-width: 620px;
}
.header.header-o2o .search .search-form {
  position: relative;
  top: 0;
}
.header.header-o2o .search .search-form .search-info {
  background: #fff;
  height: 40px;
  position: relative;
  border: 2px solid #ff6600;
  border-radius: 6px;
  overflow: hidden;
  border-width: 2px;
  box-sizing: border-box;
}
/* hide type selector chrome for cleaner O2O look (content still in DOM) */
.header.header-o2o .search .search-form .search-info .search-type-box {
  display: none;
}
.header.header-o2o .search .search-form .search-info .search-box {
  height: 36px;
  position: absolute;
  left: 0;
  top: 0;
  right: 88px;
  width: auto;
}
.header.header-o2o .search .search-form .search-info .search-box-input {
  color: #999;
  margin: 0;
  width: 100%;
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  outline: 0;
  border: 0;
  border-left: 0;
  box-sizing: border-box;
}
.header.header-o2o .search .search-form .search-info .search-box .search-box-con {
  height: 36px;
  line-height: 36px;
}
.header.header-o2o .search .search-form .search-info .button {
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 36px;
  line-height: 36px;
  border: 0;
  font-size: 16px;
  letter-spacing: 4px;
  cursor: pointer;
  color: #fff;
  overflow: hidden;
  padding: 0;
  border-radius: 0 4px 4px 0;
  background: #ff6600;
}
.header.header-o2o .search .hot-query {
  display: none; /* hot words move visual clutter; keep empty ul in DOM */
}
.header.header-o2o .search-results {
  left: 0;
  top: 42px;
  width: 100%;
  max-width: 620px;
}

/* Right-side utility / ad */
.header.header-o2o .header-right {
  float: none;
  flex: 0 0 auto;
  height: 48px;
  width: auto;
  max-width: 160px;
  margin-left: 16px;
  display: flex;
  align-items: center;
}
.header.header-o2o .header-right a {
  width: auto;
  height: 40px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}
.header.header-o2o .header-right a img {
  max-width: 140px;
  max-height: 40px;
  width: auto;
  height: auto;
}

/* Nav row under search — align under search column */
.header.header-o2o .header-o2o-row2 .all-category {
  line-height: 36px;
  text-align: left;
  padding: 0;
  height: 36px;
  width: 100%;
  position: relative;
  margin-left: 0;
  overflow: hidden;
  float: none;
}
.header.header-o2o .header-o2o-row2 .all-category ul {
  display: block;
  width: 100%;
  height: 36px;
  padding-left: 340px; /* logo(~200)+cat(~130)+gaps so links sit under search */
  box-sizing: border-box;
}
.header.header-o2o .header-o2o-row2 .all-category li {
  text-decoration: none;
  z-index: 10;
  position: relative;
  float: left;
}
.header.header-o2o .header-o2o-row2 .all-category li.fr {
  float: left; /* keep all left-flow under search for O2O look */
}
.header.header-o2o .header-o2o-row2 .all-category li a {
  color: #333;
  height: 36px;
  line-height: 36px;
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  padding: 0 14px;
  font-weight: 400;
}
.header.header-o2o .header-o2o-row2 .all-category li a:hover,
.header.header-o2o .header-o2o-row2 .all-category li a.current {
  color: #ff6600 !important;
}
.header.header-o2o .header-o2o-row2 .all-category .wrap-line {
  display: none; /* underline animation less Meituan-like under compact nav */
}

/* homepage layer rules replaced below */
.category-box.category-box-o2o-inner { background: transparent !important; }

.header.header-o2o .header-o2o-row1::after,
.header.header-o2o .header-o2o-row2::after { content:""; display:block; clear:both; }
.header.header-o2o:after { content:""; display:block; clear:both; height:0; }

/* ---- Category dropdown under O2O header button ---- */
.header.header-o2o,
.header.header-o2o .header-o2o-inner,
.header.header-o2o .header-o2o-row1,
.header.header-o2o .header-o2o-cat {
  overflow: visible !important;
}
.header.header-o2o .header-o2o-inner {
  z-index: 300;
}
.header.header-o2o .header-o2o-cat {
  position: relative;
  z-index: 9998;
}
/* Panel sits directly under the orange button */
.header.header-o2o .header-o2o-cat > .expand-menu.category-layer,
.header.header-o2o .header-o2o-cat > .expand-menu {
  display: none;
  left: 0 !important;
  right: auto !important;
  top: 100% !important;          /* under button, not +40px */
  margin-top: 4px;
  position: absolute !important; /* override common.css relative+top:40px */
  z-index: 9999 !important;
  width: 210px;
  min-height: 0 !important;
  height: auto !important;
  border-top: none;
}
.header.header-o2o .header-o2o-cat > .expand-menu .list {
  position: relative;
}
.header.header-o2o .header-o2o-cat > .expand-menu .list .categorys {
  z-index: 10000;
}
/* hide leftover always-on home float completely */
.category-box.category-box-o2o {
  height: 0 !important;
  min-height: 0 !important;
  overflow: visible;
  background: transparent !important;
  border: none !important;
}
.category-box.category-box-o2o > .w1210 > .category-layer {
  display: none !important;
}


/* Top promo ad: short 16:1 banner - no forced tall height */
.top-active { width: 100%; min-width: 1210px; overflow: hidden; }
.top-active .top-active-wrap { width: 100% !important; max-width: 1920px; margin: 0 auto; overflow: hidden; }
.top-active .top-active-wrap img { display: block; width: 100% !important; height: auto !important; max-height: 160px; object-fit: contain; object-position: center; }
