/* 仅隐藏 Trace 浮层界面，不关闭 SHOW_PAGE_TRACE */
#think_page_trace_open,
#think_page_trace {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

:root {
  --syh-wine: #4b0008;
  --syh-wine-deep: #2a0005;
  --syh-wine-soft: #6a1220;
  --syh-gold: #d4af69;
  --syh-gold-bright: #f0d9a0;
  --syh-gold-deep: #9a7438;
  --syh-ivory: #f7f1e5;
  --syh-muted: rgba(247, 241, 229, 0.62);
  --syh-line: rgba(212, 175, 105, 0.28);
  --syh-card: rgba(75, 0, 8, 0.55);
  --syh-radius: 16px;
  --syh-tab-h: 60px;
  --syh-gold-grad: linear-gradient(135deg, #f3e2b6 0%, #d4af69 42%, #a67c3a 100%);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--syh-ivory);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(212, 175, 105, 0.18), transparent 58%),
    radial-gradient(700px 500px at 100% 30%, rgba(106, 18, 32, 0.55), transparent 50%),
    linear-gradient(180deg, #3a0007 0%, var(--syh-wine) 28%, var(--syh-wine-deep) 100%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.syh-page {
  min-height: 100vh;
  padding-bottom: calc(var(--syh-tab-h) + 22px);
  overflow-x: hidden;
}

/* ===== Brand header ===== */
.syh-brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 16px 6px;
}
.syh-brand__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 10px;
}
.syh-brand__mark {
  width: 56px;
  height: 56px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  flex-shrink: 0;
  background: #4b0008;
}
.syh-brand__title {
  flex: 1;
  min-width: 0;
  text-align: right;
}
.syh-brand__title--left {
  text-align: left;
}
.syh-brand__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: var(--syh-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.syh-brand__slogan {
  margin-top: 4px;
  font-size: 11px;
  color: var(--syh-muted);
  letter-spacing: 0.08em;
}
.syh-brand__back {
  font-size: 14px;
  color: var(--syh-gold);
  letter-spacing: 0.08em;
}

/* ===== Banner ===== */
.syh-banner {
  margin: 10px 16px 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #5c0a16, #2a0005);
  border: 1px solid var(--syh-line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.syh-banner .swiper,
.syh-banner .swiper-wrapper,
.syh-banner .swiper-slide { height: 100%; }
.syh-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.syh-banner__empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--syh-gold-bright);
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 175, 105, 0.18), transparent 55%),
    linear-gradient(160deg, #6a1220, #2a0005);
}
.syh-banner__empty strong {
  font-size: 18px;
  letter-spacing: 0.28em;
  background: var(--syh-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.syh-banner .swiper-pagination-bullet {
  background: rgba(247, 241, 229, 0.35);
  opacity: 1;
}
.syh-banner .swiper-pagination-bullet-active {
  background: var(--syh-gold);
}

/* ===== Section ===== */
.syh-section {
  margin: 22px 16px 0;
}
.syh-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.syh-section__title {
  position: relative;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--syh-gold-bright);
  padding-left: 12px;
}
.syh-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  border-radius: 2px;
  background: var(--syh-gold-grad);
}
.syh-section__more {
  font-size: 12px;
  color: var(--syh-muted);
  letter-spacing: 0.08em;
}

/* ===== Nav ===== */
.syh-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
  padding: 18px 12px 16px;
  margin: 16px 16px 0;
  background:
    linear-gradient(180deg, rgba(106, 18, 32, 0.55), rgba(42, 0, 5, 0.72));
  border: 1px solid var(--syh-line);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(240, 217, 160, 0.12);
}
.syh-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.syh-nav__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(212, 175, 105, 0.22), rgba(75, 0, 8, 0.6));
  border: 1px solid rgba(212, 175, 105, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.syh-nav__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.syh-nav__name {
  font-size: 12px;
  color: var(--syh-ivory);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.syh-nav__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--syh-muted);
  font-size: 13px;
  padding: 8px 0;
}

/* ===== Goods ===== */
.syh-goods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.syh-goods__card {
  background: linear-gradient(180deg, rgba(90, 16, 28, 0.75), rgba(42, 0, 5, 0.85));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--syh-line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.syh-goods__cover {
  aspect-ratio: 1 / 1;
  background: #2a0005;
}
.syh-goods__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.syh-goods__body {
  padding: 10px 10px 12px;
}
.syh-goods__name {
  font-size: 13px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--syh-ivory);
}
.syh-goods__price {
  margin-top: 8px;
  font-weight: 700;
  font-size: 16px;
  background: var(--syh-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.syh-goods__price span {
  font-size: 11px;
  margin-right: 1px;
}

/* ===== Store ===== */
.syh-store {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.syh-store__card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(120deg, rgba(90, 16, 28, 0.8), rgba(42, 0, 5, 0.88));
  border: 1px solid var(--syh-line);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.syh-store__cover {
  width: 78px;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #2a0005;
  border: 1px solid rgba(212, 175, 105, 0.25);
}
.syh-store__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.syh-store__meta { min-width: 0; flex: 1; }
.syh-store__name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--syh-gold-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.syh-store__addr,
.syh-store__hours {
  font-size: 12px;
  color: var(--syh-muted);
  line-height: 1.45;
}
.syh-store__badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--syh-wine-deep);
  background: var(--syh-gold-grad);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* ===== Article ===== */
.syh-article {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.syh-article__card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(120deg, rgba(90, 16, 28, 0.8), rgba(42, 0, 5, 0.88));
  border: 1px solid var(--syh-line);
  border-radius: 16px;
}
.syh-article__thumb {
  width: 86px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6a1220, #2a0005);
  border: 1px solid rgba(212, 175, 105, 0.2);
}
.syh-article__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.syh-article__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--syh-ivory);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.syh-article__date {
  font-size: 11px;
  color: var(--syh-muted);
}

.syh-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--syh-muted);
  font-size: 13px;
  background: rgba(42, 0, 5, 0.45);
  border-radius: 14px;
  border: 1px dashed var(--syh-line);
}

/* ===== Search / cats ===== */
.syh-search {
  margin: 8px 16px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(42, 0, 5, 0.65);
  border: 1px solid var(--syh-line);
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
}
.syh-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--syh-ivory);
}
.syh-search input::placeholder { color: var(--syh-muted); }
.syh-search button {
  border: 0;
  background: var(--syh-gold-grad);
  color: var(--syh-wine-deep);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.syh-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px 0;
  -webkit-overflow-scrolling: touch;
}
.syh-cats::-webkit-scrollbar { display: none; }
.syh-cats__item {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(42, 0, 5, 0.55);
  border: 1px solid var(--syh-line);
  font-size: 12px;
  color: var(--syh-muted);
}
.syh-cats__item.is-on {
  background: var(--syh-gold-grad);
  border-color: transparent;
  color: var(--syh-wine-deep);
  font-weight: 700;
}

/* ===== Mine ===== */
.syh-mine-hero {
  margin: 8px 16px 0;
  padding: 22px 18px;
  border-radius: 22px;
  background:
    radial-gradient(420px 180px at 80% 0%, rgba(212, 175, 105, 0.22), transparent 60%),
    linear-gradient(145deg, #6a1220, #2a0005 70%);
  border: 1px solid var(--syh-line);
  color: var(--syh-ivory);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}
.syh-mine-hero__name {
  font-size: 22px;
  letter-spacing: 0.1em;
  background: var(--syh-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.syh-mine-hero__sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--syh-muted);
}
.syh-mine-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.syh-mine-stats div {
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 175, 105, 0.18);
  border-radius: 12px;
  padding: 10px 6px;
}
.syh-mine-stats strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--syh-gold-bright);
}
.syh-mine-stats span {
  font-size: 11px;
  color: var(--syh-muted);
}
.syh-btn-gold {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--syh-gold-grad);
  color: var(--syh-wine-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.syh-menu {
  margin: 16px;
  background: linear-gradient(180deg, rgba(90, 16, 28, 0.78), rgba(42, 0, 5, 0.9));
  border: 1px solid var(--syh-line);
  border-radius: 18px;
  overflow: hidden;
}
.syh-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(212, 175, 105, 0.12);
  font-size: 14px;
  color: var(--syh-ivory);
}
.syh-menu a:last-child { border-bottom: 0; }
.syh-menu em {
  color: var(--syh-gold);
  font-style: normal;
  font-size: 12px;
}

/* ===== Article detail ===== */
.syh-article-detail {
  margin: 12px 16px 0;
  padding: 18px 16px;
  background: linear-gradient(180deg, rgba(90, 16, 28, 0.78), rgba(42, 0, 5, 0.9));
  border-radius: 18px;
  border: 1px solid var(--syh-line);
}
.syh-article-detail h1 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--syh-gold-bright);
}
.syh-article-detail .meta {
  font-size: 12px;
  color: var(--syh-muted);
  margin-bottom: 16px;
}
.syh-article-detail .content {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(247, 241, 229, 0.9);
}
.syh-article-detail .content img {
  margin: 10px 0;
  border-radius: 10px;
}

/* ===== Tabbar ===== */
.syh-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--syh-tab-h) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(180deg, rgba(58, 0, 7, 0.96), rgba(26, 0, 4, 0.98));
  border-top: 1px solid var(--syh-line);
  backdrop-filter: blur(12px);
  z-index: 9998;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.35);
}
.syh-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(247, 241, 229, 0.55);
  letter-spacing: 0.12em;
}
.syh-tabbar a.is-on {
  color: var(--syh-gold-bright);
  font-weight: 700;
}
.syh-tabbar__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
}
.syh-tabbar a.is-on .syh-tabbar__icon {
  background: var(--syh-gold-grad);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(212, 175, 105, 0.45);
}
.syh-tabbar__label { letter-spacing: 0.14em; }

@media (min-width: 768px) {
  .syh-page {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px rgba(212, 175, 105, 0.2);
  }
  .syh-tabbar {
    left: 50%;
    right: auto;
    width: 480px;
    transform: translateX(-50%);
  }
}
