/* 历史订单 / 记录 — 星問 UI */
html.cs-history-html {
  margin: 0;
  padding: 0;
  max-width: none !important;
  width: 100% !important;
  min-height: 100%;
  font-size: 100px;
  background: #f2efe6;
}

body.cs-history-page {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  min-height: 100vh;
  box-sizing: border-box;
  background: #f2efe6 !important;
  color: #3e3a39;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(1.28rem + env(safe-area-inset-bottom, 0px)) !important;
}

.cs-history-shell {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
}

/* 顶部栏 */
.cs-history-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.96rem;
  padding: 0 0.28rem;
  box-sizing: border-box;
  background: #cdc3cc;
}

.cs-history-head__back {
  position: absolute;
  left: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.04rem;
  font-size: 0.26rem;
  color: #5a5550;
  text-decoration: none;
  line-height: 1;
  padding: 0.12rem 0.1rem;
  -webkit-tap-highlight-color: transparent;
}

.cs-history-head__back-icon {
  width: 0.16rem;
  height: 0.16rem;
  border-left: 1.5px solid #5a5550;
  border-bottom: 1.5px solid #5a5550;
  transform: rotate(45deg);
  margin-right: 0.02rem;
}

.cs-history-head__title {
  font-size: 0.32rem;
  font-weight: 500;
  color: #3e3a39;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Tab */
.cs-history-tabs {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: 0.88rem;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #faf8f4;
  border-bottom: 1px solid #ebe6df;
  box-sizing: border-box;
}

.cs-history-tabs li {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.cs-history-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 0.28rem;
  color: #8a8580;
  text-decoration: none;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.cs-history-tabs a.on {
  color: #c393b6;
  font-weight: 500;
}

.cs-history-tabs a.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.72rem;
  height: 0.05rem;
  margin-left: -0.36rem;
  background: #c393b6;
  border-radius: 2px;
}

/* 列表 */
.cs-history-list {
  padding: 0.28rem 0.28rem 0.2rem;
  box-sizing: border-box;
}

.cs-history-card {
  margin: 0 0 0.24rem;
  padding: 0;
  background: #fff;
  border: 1px solid #ebe6df;
  border-radius: 0.2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.cs-history-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.2rem;
  padding: 0.32rem 0.28rem 0.28rem;
  box-sizing: border-box;
}

.cs-history-card__info {
  flex: 1 1 auto;
  min-width: 0;
}

.cs-history-card__name {
  margin: 0 0 0.16rem;
  font-size: 0.32rem;
  font-weight: 600;
  color: #3e3a39;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-history-card__meta {
  margin: 0 0 0.08rem;
  font-size: 0.24rem;
  color: #9a9690;
  line-height: 1.45;
  word-break: break-all;
}

.cs-history-card__icon {
  flex: 0 0 0.72rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 0.14rem;
  background: #e8e0e9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.04rem;
}

.cs-history-card__icon svg {
  width: 0.36rem;
  height: 0.36rem;
  display: block;
}

.cs-history-card__action {
  padding: 0.24rem 0.28rem 0.32rem;
  border-top: 1px solid #ebe6df;
  box-sizing: border-box;
  text-align: center;
}

.cs-history-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 0.8rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #4a433d;
  color: #fff !important;
  font-size: 0.3rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  font-family: inherit;
}

.cs-history-btn:active {
  opacity: 0.88;
}

.cs-history-empty {
  padding: 1.2rem 0.4rem;
  text-align: center;
  font-size: 0.28rem;
  color: #9a9690;
}

/* 查询订单 */
.cs-history-search {
  padding: 0.36rem 0.28rem 0.2rem;
  box-sizing: border-box;
}

.cs-history-search__form {
  display: flex;
  align-items: center;
  gap: 0.16rem;
}

.cs-history-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 0.72rem;
  padding: 0 0.24rem;
  border: 1px solid #d8d2ca;
  border-radius: 0.12rem;
  background: #fff;
  font-size: 0.26rem;
  color: #3e3a39;
  box-sizing: border-box;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.cs-history-search__input::placeholder {
  color: #b0aaa4;
}

.cs-history-search__submit {
  flex: 0 0 auto;
  min-width: 1.4rem;
  height: 0.72rem;
  padding: 0 0.36rem;
  border: none;
  border-radius: 0.12rem;
  background: #4a433d;
  color: #fff;
  font-size: 0.28rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
}

.cs-history-tip {
  margin: 0.28rem 0 0;
  padding: 0;
  font-size: 0.24rem;
  color: #6b6662;
  line-height: 1.55;
}

.cs-history-help {
  margin: 0.36rem 0 0;
}

.cs-history-help__title {
  margin: 0;
  padding: 0.28rem 0.28rem;
  font-size: 0.28rem;
  font-weight: 500;
  color: #3e3a39;
  text-align: center;
  border-top: 1px solid #e6e0d8;
  border-bottom: 1px solid #e6e0d8;
  background: transparent;
}

.cs-history-help__body {
  padding: 0.24rem 0.28rem 0.4rem;
  box-sizing: border-box;
}

.cs-history-help__body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.08rem;
}

/* 底部胶囊导航 */
body.cs-history-page .listFloat {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: 100%;
  height: auto;
  float: none;
  padding: 0 0.34rem calc(0.1rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: transparent;
  pointer-events: none;
}

body.cs-history-page .listFloat .menu {
  pointer-events: auto;
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  float: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 5.8rem;
  height: 0.92rem;
  margin: 0 auto;
  padding: 0.06rem 0.28rem;
  border: none;
  border-radius: 999px;
  background: #f6f5f1 !important;
  box-shadow:
    0 2px 4px rgba(80, 70, 90, 0.04),
    0 10px 28px rgba(80, 70, 90, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  box-sizing: border-box;
  overflow: visible;
}

body.cs-history-page .listFloat .menu a {
  width: auto !important;
  float: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.04rem;
  font-size: 0.15rem;
  font-weight: 400;
  color: #8f8c86;
  text-decoration: none;
  line-height: 1.1;
  background: transparent !important;
  text-align: center;
}

body.cs-history-page .listFloat .menu a img,
body.cs-history-page .listFloat .menu a .index-tab__icon img {
  display: block !important;
  width: 0.34rem !important;
  height: 0.34rem !important;
  object-fit: contain;
  opacity: 0.9;
}

body.cs-history-page .listFloat .menu a .index-tab__icon {
  width: 0.46rem;
  height: 0.46rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(120, 115, 108, 0.35);
  border-radius: 50%;
  box-sizing: border-box;
}

body.cs-history-page .listFloat .menu a.current {
  color: #3e3a39;
}

body.cs-history-page .listFloat .menu a.current .index-tab__icon {
  border-color: rgba(80, 70, 60, 0.55);
}

body.cs-history-page .listFloat .menu a.current .index-tab__icon img {
  opacity: 1;
}
