:root {
  --gold: #d2ba98;
  --gold-dark: #9e805c;
  --gold-line: #c5aa82;
  --gold-deep: #b99b70;
  --gold-soft: #f7efe4;
  --blue: #d2ba98;
  --blue-dark: #9e805c;
  --blue-soft: #f7efe4;
  --text: #222833;
  --muted: #697386;
  --line: #edf1f8;
  --card: #ffffff;
  --bg: #f4f7fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #eee8df;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 8px 20px;
  background: #fff;
}

.hero-carousel,
.ad-carousel {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
}

.hero-carousel {
  margin-right: -8px;
  margin-left: -8px;
}

.slide-track,
.ad-track {
  display: flex;
  transition: transform .38s ease;
}

.hero-slide {
  flex: 0 0 100%;
}

.image-slide,
.image-ad {
  flex: 0 0 100%;
  background: #f7efe4;
}

.slide-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.image-slide img,
.image-ad img {
  display: block;
  width: 100%;
  height: auto;
}

.ad-board {
  display: grid;
  min-height: 128px;
  align-content: center;
  gap: 7px;
  padding: 8px 10px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 0;
  color: #fff;
  background: var(--gold);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .65);
  text-align: center;
}

.ad-title {
  color: #fff562;
  font-size: clamp(21px, 7vw, 29px);
  font-weight: 900;
  line-height: 1.1;
}

.ad-title span {
  color: #fffb00;
}

.ad-subtitle {
  color: #fff;
  font-size: clamp(19px, 6vw, 25px);
  font-weight: 800;
}

.ad-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.ad-lines b {
  display: grid;
  min-height: 30px;
  place-items: center;
  padding: 4px 5px;
  border-radius: 4px;
  color: #e81616;
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
}

.ad-board.alt {
  background: var(--gold-deep);
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(40, 40, 40, .5);
}

.carousel-dots button.active {
  background: #fff36d;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: #f5f7fb;
  box-shadow: 0 1px 4px rgba(20, 40, 80, .06);
}

.notice-icon {
  color: var(--gold-dark);
  font-size: 18px;
  font-weight: 900;
}

.notice-bar p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #3f4552;
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notice-bar b {
  color: var(--gold-dark);
  font-size: 17px;
}

.live-section {
  margin-top: 8px;
  padding: 0 0 10px;
  border-bottom: 6px solid #f4f4f4;
  background: #fff;
}

.market-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.market-switch article {
  position: relative;
  min-height: 62px;
  padding: 11px 6px 8px;
  border-radius: 7px;
  background: #f2f3f6;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

.market-switch article:active {
  transform: scale(.98);
}

.market-switch article.active {
  color: #fff;
  background: var(--gold);
}

.market-switch h2,
.market-switch p {
  margin: 0;
}

.market-switch h2 {
  font-size: clamp(19px, 5.6vw, 24px);
  line-height: 1.1;
}

.market-switch p {
  margin-top: 6px;
  font-size: 13px;
}

.result-card {
  margin-top: 14px;
  padding: 10px 8px 12px;
  border: 1px solid #eadfce;
  border-radius: 9px;
  background: linear-gradient(180deg, #fffdf8, #fff);
  box-shadow: 0 3px 12px rgba(80, 60, 36, .08);
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.source-badge {
  display: inline-flex;
  height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 99px;
  color: #fff;
  background: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
}

.result-head h2 {
  margin: 0;
  margin-top: 5px;
  color: var(--gold-dark);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 800;
}

.result-head h2 b {
  color: #1f2937;
  font-weight: 900;
}

.result-head a {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 99px;
  color: var(--gold-dark);
  background: var(--gold-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.number-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  margin-top: 13px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.number-row::-webkit-scrollbar {
  display: none;
}

.number-row div {
  flex: 0 0 38px;
  text-align: center;
}

.number-row span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #5e6168;
  background: #fff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: inset 0 0 0 7px currentColor, 0 2px 5px rgba(0, 0, 0, .12);
}

.number-row span.red {
  color: #f03b3b;
}

.number-row span.green {
  color: #16b66b;
}

.number-row span.blue {
  color: #3d72e9;
}

.number-row small {
  display: block;
  margin-top: 6px;
  color: #555b66;
  font-size: 13px;
  white-space: nowrap;
}

.number-row small b {
  color: #16b66b;
}

.number-row strong {
  flex: 0 0 12px;
  padding-top: 8px;
  color: #8e8e8e;
  font-size: 22px;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e4d5bf;
  color: #8a7a66;
  font-size: 12px;
}

.countdown {
  margin: 9px 0 0;
  color: #707783;
  font-size: 15px;
  text-align: center;
}

.countdown b {
  color: #1e2430;
  font-weight: 500;
}

.feed-section {
  margin-top: 0;
  padding: 6px 0 10px;
  border-top: 6px solid #f4f4f4;
  border-bottom: 6px solid #f4f4f4;
  background: #fff;
}

.material-board {
  border: 1px solid #e4e4e4;
  background: #fff;
}

.material-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--gold-line);
  background: #fff;
}

.material-tabs button {
  height: 42px;
  border: 0;
  border-right: 1px solid var(--gold-line);
  color: var(--gold-dark);
  background: #fffaf0;
  font-size: 18px;
  font-weight: 900;
}

.material-tabs button:last-child {
  border-right: 0;
}

.material-tabs button.active {
  color: #fff;
  background: var(--gold);
}

.material-banner {
  display: grid;
  min-height: 44px;
  place-items: center;
  margin: 6px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 6px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, .16)),
    var(--gold);
  box-shadow:
    0 0 0 1px var(--gold-line),
    inset 0 1px 0 rgba(255, 255, 255, .42);
  font-size: 14px;
  font-weight: 800;
}

.material-banner a {
  color: #fff;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.material-banner a:hover {
  color: #fff500;
}

.material-banner b {
  color: #fff500;
  font-size: 23px;
  line-height: 1;
  white-space: nowrap;
}

.material-list p,
.material-ad {
  margin: 0;
  border-top: 1px solid #e4e4e4;
}

.material-post {
  margin: 0;
  border-top: 1px solid #e4e4e4;
  background: #fff;
}

.material-post h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 11px 8px 8px;
  color: #273142;
  font-size: 18px;
  line-height: 1.3;
}

.material-post h3 span {
  display: inline-grid;
  min-width: 48px;
  height: 25px;
  place-items: center;
  border-radius: 99px;
  color: #fff;
  background: var(--gold-dark);
  font-size: 13px;
  white-space: nowrap;
}

.material-post .material-post-body {
  padding: 0 8px 13px;
  color: #f50000;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.75;
  white-space: normal;
}

.material-post .material-post-body p {
  margin: 0 0 9px;
}

.material-post .material-post-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  border-radius: 8px;
}

.material-post .material-post-body a {
  color: #a77b43;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.material-list p {
  padding: 12px 5px;
  color: #303743;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
}

.material-list p b {
  color: #303743;
  font-weight: 900;
}

.material-list strong {
  color: #f50000;
  font-size: 21px;
  font-weight: 900;
}

.material-list strong.nums {
  font-size: 16px;
  letter-spacing: .2px;
}

.material-list mark {
  padding: 0 2px;
  color: #f50000;
  background: #ffff00;
}

.material-ad {
  padding: 13px 7px;
  color: #0b40ff;
  background: #ffff00;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
}

.material-ad b {
  color: #f50000;
  font-size: 22px;
}

.ad-carousel {
  margin-top: 10px;
  border-radius: 8px;
}

.ad-slide {
  flex: 0 0 100%;
  min-height: 86px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(90deg, #b69a75, #d8c3a5);
}

.ad-slide.image-ad {
  min-height: 0;
  padding: 0;
  background: #f7efe4;
}

.ad-slide.orange {
  background: linear-gradient(90deg, #b99b70, #e1cfb5);
}

.ad-slide.cyan {
  background: linear-gradient(90deg, #9e805c, #d2ba98);
}

.ad-slide span,
.ad-slide strong,
.ad-slide small {
  display: block;
}

.ad-slide span {
  font-size: 13px;
  opacity: .86;
}

.ad-slide strong {
  margin-top: 7px;
  font-size: 23px;
}

.ad-slide small {
  margin-top: 4px;
  font-size: 13px;
  opacity: .84;
}
