@charset "UTF-8";

:root {
  --sh-red: #c82f23;
  --sh-red-soft: #fbe9e7;
  --sh-green: #67c23a;
  --sh-green-dark: #56ad2d;
  --sh-blue: #0c9cf5;
  --sh-ink: #303133;
  --sh-text: #606266;
  --sh-muted: #909399;
  --sh-line: #ebeef5;
  --sh-bg: #fafafa;
  --sh-card: #ffffff;
  --sh-radius: 12px;
  --sh-shadow: 0 6px 22px rgba(48, 49, 51, 0.07);
}

html {
  min-height: 100%;
  height: auto !important;
  overflow-x: hidden;
  overflow-y: auto !important;
  background: var(--sh-bg) !important;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  height: auto !important;
  margin: 0 auto !important;
  position: relative !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  color: var(--sh-ink) !important;
  background: var(--sh-bg) !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  -webkit-font-smoothing: antialiased;
}

body,
body * {
  box-sizing: border-box;
}

a {
  color: var(--sh-red);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

.page {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100%;
  min-height: 100vh;
  overflow: visible !important;
  background: transparent !important;
  background-image: none !important;
}

.content {
  position: relative !important;
  height: auto !important;
  min-height: calc(100vh - 118px);
  padding: 14px 14px calc(96px + env(safe-area-inset-bottom)) !important;
  margin: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Compact order pages: start directly below the header and remove legacy spacer tags. */
body.page-orders .content {
  inset: auto !important;
  min-height: calc(100vh - 48px);
  padding: 6px 14px calc(88px + env(safe-area-inset-bottom)) !important;
}

body.page-orders .buttons-tab {
  margin-bottom: 6px;
}

body.page-orders .tabs > br {
  display: none;
}

body.page-orders .tabs h4 {
  margin: 5px 0 7px;
}

body.page-orders .tabs hr {
  margin: 5px 0 9px !important;
}

/* White mobile header, matching the reference app shell. */
.bar-nav,
.navigation {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  display: flex !important;
  width: 100%;
  height: 48px !important;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 14px !important;
  overflow: visible !important;
  color: var(--sh-ink) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sh-line) !important;
  box-shadow: 0 3px 12px rgba(48, 49, 51, 0.04) !important;
  backdrop-filter: blur(14px);
}

.bar-nav::before,
.navigation::before {
  display: none !important;
}

body.red-top-nav .bar-nav {
  color: #fff !important;
  background: #c82f23 !important;
  border-bottom-color: #ad251b !important;
  box-shadow: 0 3px 12px rgba(145, 30, 22, 0.18) !important;
}

body.red-top-nav .bar-nav > a,
body.red-top-nav .bar-nav .logo a,
body.red-top-nav .bar-nav .pull-right {
  color: #fff !important;
}

body.red-top-nav .bar-nav .logo a {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.red-top-nav .bar-nav .logo a:active {
  background: transparent !important;
}

.bar-nav > a,
.bar-nav .logo a,
.navigation h1,
.navigation a {
  color: var(--sh-ink) !important;
}

.bar-nav > a {
  position: static !important;
  display: block !important;
  width: auto !important;
  flex: 1;
  padding: 0 48px !important;
  overflow: hidden;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 48px !important;
  text-align: center !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-nav .logo,
.bar-nav .pull-right {
  position: absolute !important;
  top: 0;
  z-index: 1002;
  width: 48px;
  height: 48px;
  line-height: 48px !important;
}

.bar-nav .logo {
  left: 0;
  width: auto;
  padding-left: 10px;
}

.bar-nav .pull-right {
  right: 0;
}

.bar-nav .logo a,
.bar-nav .pull-right {
  color: var(--sh-ink) !important;
}

.bar-nav .logo a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #1f2329 !important;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 32px !important;
  white-space: nowrap;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.bar-nav .logo a:active,
.navigation .left a:active {
  background: transparent;
  box-shadow: none;
}

.bar-nav .logo a::after {
  content: none;
}

.bar-nav .logo a .icon {
  color: inherit !important;
  font-size: 18px;
  line-height: 1;
}

.navigation {
  position: relative !important;
}

.navigation .left,
.navigation .right {
  position: absolute;
  top: 0;
  height: 48px;
  line-height: 48px;
}

.navigation .left {
  left: 12px;
}

.navigation .left a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #1f2329 !important;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 32px;
  white-space: nowrap;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.navigation .left a::after {
  content: none;
}

.navigation .left .bt-icon--back {
  color: inherit !important;
  width: 16px;
  height: 16px;
}

.navigation .right {
  right: 14px;
}

.navigation .center {
  width: 100%;
  padding: 0 64px;
}

.navigation h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 48px;
}

.navigation .right a {
  color: var(--sh-red) !important;
  font-size: 13px;
}

/* White reference-style tab bar. */
.foot-bar {
  position: fixed !important;
  right: auto !important;
  bottom: 0 !important;
  left: 50% !important;
  z-index: 1200;
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  height: calc(58px + env(safe-area-inset-bottom)) !important;
  padding: 0 0 env(safe-area-inset-bottom) !important;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid var(--sh-line);
  box-shadow: 0 -4px 18px rgba(48, 49, 51, 0.06);
  backdrop-filter: blur(14px);
}

.foot-bar::before,
.foot-bar:before {
  display: none !important;
}

.foot-bar .foot-menu {
  display: flex !important;
  height: 100%;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 6px 0 5px !important;
  text-align: center;
}

.foot-bar .foot-menu a {
  display: flex !important;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--sh-muted) !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
}

.foot-bar .foot-menu .iconfont {
  display: block;
  margin: 0 !important;
  color: inherit !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

.foot-bar .foot-menu img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.foot-bar .foot-menu span {
  display: block;
  margin: 0 !important;
  font-size: 10px !important;
}

body.page-index .foot-menu:nth-child(1) a,
body.page-myteam .foot-menu:nth-child(2) a,
body.page-myhome .foot-menu:nth-child(3) a {
  color: var(--sh-ink) !important;
  font-weight: 600 !important;
}

/* Rounded white cards and list groups. */
.card,
.list-block ul,
.bt-card,
.main_now_tab,
.weui-cells,
.weui-panel,
.card-header,
.list-container {
  border: 0 !important;
  border-radius: var(--sh-radius) !important;
  background: var(--sh-card) !important;
  box-shadow: var(--sh-shadow) !important;
}

.card,
.list-block,
.bt-card,
.weui-panel {
  margin: 12px 0 !important;
}

.list-block ul {
  overflow: hidden;
}

.list-block li {
  border-bottom: 1px solid #f2f3f5;
}

.list-block li:last-child {
  border-bottom: 0;
}

.item-content,
.weui-cell {
  min-height: 52px;
  padding: 12px 16px !important;
  border: 0 !important;
  background: transparent !important;
}

.item-title.label,
.weui-label {
  width: auto !important;
  min-width: 82px;
  margin-right: 12px;
  color: var(--sh-text) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

.item-input,
.item-input .item-input-wrap,
.weui-cell__bd {
  min-width: 0;
  flex: 1;
}

.item-inner {
  min-height: 40px;
  padding-right: 0 !important;
}

.item-inner::after {
  display: none !important;
}

.item-media {
  color: var(--sh-red);
}

.item-media .iconfont {
  color: var(--sh-red);
  font-size: 19px;
}

.item-title,
.item-text,
.weui-cell__bd,
.weui-input,
.weui-select,
.weui-textarea {
  color: var(--sh-ink) !important;
  font-size: 14px !important;
}

.item-after,
.item-subtitle {
  color: var(--sh-muted) !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
textarea,
select,
.weui-input,
.weui-select,
.weui-textarea {
  min-height: 40px;
  padding: 8px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  outline: none !important;
  color: var(--sh-ink) !important;
  background: #f7f8fa !important;
  font-size: 14px !important;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

textarea,
.weui-textarea {
  min-height: 96px;
}

input:focus,
textarea:focus,
select:focus,
.weui-input:focus,
.weui-select:focus,
.weui-textarea:focus {
  border-color: rgba(200, 47, 35, 0.38) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(200, 47, 35, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: #b8bdc5 !important;
}

/* Buttons: reference green primary with a high-contrast blue secondary. */
.button,
button,
.weui-btn {
  min-height: 44px;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  box-shadow: none;
}

.button-success,
.button-fill.button-success,
.weui-btn_primary,
.weui-btn.button-success {
  color: #fff !important;
  background: var(--sh-green) !important;
  box-shadow: 0 7px 18px rgba(103, 194, 58, 0.22) !important;
}

.button-success:active,
.button-fill.button-success:active,
.weui-btn_primary:active {
  background: var(--sh-green-dark) !important;
}

.button-dark,
.button-fill.button-dark {
  color: var(--sh-text) !important;
  background: #f1f2f5 !important;
}

.button-blue,
.login-link a {
  color: var(--sh-blue) !important;
  background: transparent !important;
}

.button-fill.button-warning,
.weui-btn_warn {
  color: #fff !important;
  background: var(--sh-red) !important;
}

/* Home page, matching the notice + banner + icon-grid composition. */
body.page-index .content::before {
  content: "欢迎来到快开店 · 完成资料即可开始使用";
  display: block;
  margin: 0 0 12px;
  padding: 9px 14px;
  overflow: hidden;
  color: var(--sh-red);
  border-radius: 999px;
  background: #edf9ea;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swiper-container {
  margin: 12px 14px 0 !important;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--sh-shadow);
}

#app-7 {
  height: 172px !important;
  overflow: hidden;
  border-radius: 10px;
}

.swiper-slide img,
#app-7 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main_menu_bg {
  width: 20% !important;
  margin: 0 !important;
  padding: 14px 0 12px !important;
  background: transparent !important;
}

.main_menu_bg img {
  width: 44px !important;
  height: 44px;
  object-fit: contain;
}

.main_menu_bg span {
  margin-top: 7px !important;
  color: var(--sh-ink);
  font-size: 12px !important;
  font-weight: 500;
}

.main_now_tab {
  width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.main_now_tab .now_title {
  position: relative;
  height: auto !important;
  margin: 0 !important;
  padding: 15px 16px 11px 24px !important;
  color: var(--sh-ink) !important;
  border: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  background: #fff !important;
}

.main_now_tab .now_title::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 13px;
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: var(--sh-red);
}

.main_now_tab .now_title soan {
  color: var(--sh-muted) !important;
  font-size: 12px !important;
  font-weight: 400;
}

.list-container {
  box-shadow: none !important;
  border-radius: 0 0 var(--sh-radius) var(--sh-radius) !important;
}

.list-container .item-content {
  min-height: 48px;
  padding: 12px 16px !important;
}

.list-container .item-title {
  color: var(--sh-text) !important;
  line-height: 1.5;
}

.card-header {
  margin: 0 0 12px !important;
  padding: 15px 16px !important;
  color: var(--sh-ink) !important;
  font-weight: 600;
}

.buttons-tab {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 4px;
  overflow-x: auto;
  border-radius: 999px;
  background: #eceff2;
}

.buttons-tab .button {
  min-height: 36px;
  flex: 1;
  padding: 6px 12px !important;
  color: var(--sh-text) !important;
  background: transparent !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  white-space: nowrap;
  box-shadow: none !important;
}

.buttons-tab .button.active,
.buttons-tab .button.button-success,
.buttons-tab .tab-link.active {
  color: var(--sh-red) !important;
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(48, 49, 51, 0.08) !important;
}

/* Login and registration pages. */
body.auth-page {
  background: #fff !important;
}

body.auth-page .page {
  min-height: 100vh;
  background: #fff !important;
}

body.auth-page .content {
  min-height: calc(100vh - 48px);
  padding: 0 20px 36px !important;
}

body.auth-page #form1 > .content > div[style*="height:40%"] {
  display: none !important;
}

body.auth-page .list-block {
  margin: 18px 0 !important;
  padding: 2px 16px;
  border-radius: var(--sh-radius);
  background: #fff;
  box-shadow: 0 6px 24px rgba(48, 49, 51, 0.08);
}

body.auth-page .list-block ul {
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.auth-page .item-content {
  padding: 14px 0 !important;
  border-bottom: 1px solid #f0f1f3;
}

body.auth-page .item-title.label {
  min-width: 58px;
  color: var(--sh-text) !important;
  font-size: 15px !important;
}

body.auth-page input:not([type="hidden"]) {
  min-height: 44px;
  background: #fff !important;
}

body.auth-page .content-block {
  padding: 0 !important;
}

body.auth-page .button-success {
  width: 100%;
  min-height: 46px;
  margin-top: 24px;
  background: var(--sh-green) !important;
}

body.auth-page .login-link {
  padding-top: 14px;
}

body.auth-page .login-link a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  color: #fff !important;
  border-radius: 999px;
  background: var(--sh-blue) !important;
  font-size: 14px;
  font-weight: 600;
}

body.auth-login .content::before {
  content: "欢迎回来";
  display: block;
  margin: 64px 4px 0;
  color: var(--sh-ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

body.auth-login #form1::before {
  content: "欢迎使用快开店";
  display: block;
  margin: 6px 4px 24px;
  color: var(--sh-muted);
  font-size: 16px;
  line-height: 1.5;
}

body.auth-page .bar-nav + .content,
body.auth-page .content {
  padding-top: 0 !important;
}

/* WeUI pages share the same white-card visual language. */
.weui-cells {
  margin: 0 0 14px !important;
  overflow: hidden;
}

.weui-cell::before,
.weui-cells::before,
.weui-cells::after {
  display: none !important;
}

.weui-select {
  height: 40px;
}

.weui-btn {
  width: 100%;
  margin: 12px 0 0 !important;
  border-radius: 999px !important;
}

.weui-btn:after {
  display: none !important;
}

.bt-card {
  overflow: hidden;
}

.block {
  padding: 14px !important;
}

/* Data tables, notices, and article text. */
.card table {
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--sh-radius);
}

.card th {
  color: var(--sh-text);
  background: #f7f8fa;
  font-weight: 600;
}

.card th,
.card td {
  padding: 11px 8px;
  border-color: #f0f1f3 !important;
}

.list-bottom,
.pages {
  margin: 12px 0 0 !important;
  color: var(--sh-muted);
}

.content h1,
.content h2,
.content h3,
.content h4 {
  color: var(--sh-ink) !important;
  font-weight: 600;
}

.content hr {
  margin: 12px 0 !important;
  border-color: var(--sh-line) !important;
}

.content p,
.content li {
  line-height: 1.75;
}

.panel-overlay {
  background: rgba(0, 0, 0, 0.36) !important;
}

.pull-to-refresh-layer,
.infinite-scroll-preloader {
  color: var(--sh-muted);
}

@media (min-width: 700px) {
  body {
    box-shadow: 0 0 50px rgba(48, 49, 51, 0.08);
  }
}

@media (max-width: 360px) {
  .content {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .item-content,
  .weui-cell {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}
