:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    Arial, sans-serif;
  --bg-blue: #edf5ff;
  --ink: #172033;
  --muted: #66748a;
  --line: rgba(23, 32, 51, 0.09);
  --pink: #ffc2cd;
  --pink-strong: #f56f8e;
  --yellow: #ffd66b;
  --blue: #4e8ff7;
  --green: #53b485;
  --teal: #58c7c2;
  --surface: rgba(255, 255, 255, 0.86);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f8fbff;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(160deg, #fff3d0 0%, rgba(255, 194, 205, 0.5) 27%, rgba(237, 245, 255, 0.95) 56%, #f8fbff 100%);
  color: var(--ink);
}

body.is-preview-open,
body.is-dialog-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

#app img {
  cursor: zoom-in;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 251, 255, 0.96) 240px),
    #f8fbff;
  box-shadow: 0 18px 52px rgba(40, 74, 116, 0.16);
}

.hero {
  position: relative;
  padding: max(24px, env(safe-area-inset-top)) 18px 28px;
  background:
    linear-gradient(135deg, rgba(255, 214, 107, 0.92), rgba(255, 194, 205, 0.74) 48%, rgba(88, 199, 194, 0.76)),
    #fff7fa;
  overflow: hidden;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(23, 32, 51, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(23, 32, 51, 0.76);
  border-radius: 6px;
  background: var(--white);
  box-shadow: inset 0 -5px 0 var(--yellow);
}

.hero h1 {
  margin: 14px 0 6px;
  font-size: 32px;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero p {
  max-width: 20em;
  margin: 0;
  color: rgba(23, 32, 51, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.page-view {
  padding: 14px 12px;
}

.state-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
}

.state-line {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.state-line.is-error {
  color: #c0374c;
}

.missing-tenant {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(192, 55, 76, 0.16);
  border-radius: 8px;
  background: rgba(255, 237, 242, 0.88);
  color: #c0374c;
  padding: 0 12px;
}

.back-link {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #172033;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.content-block {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(35, 67, 105, 0.08);
  backdrop-filter: blur(12px);
}

.content-block.is-hot {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 248, 251, 0.8));
}

.content-block.is-zones {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 249, 255, 0.82));
}

.content-block.is-rules {
  background: #ffffff;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 14px 8px;
  border-bottom: 0;
  background: transparent;
}

.block-title h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
}

.title-dot {
  width: 8px;
  height: 22px;
  border-radius: 8px;
  background: var(--pink-strong);
}

.title-dot.is-blue {
  background: var(--blue);
}

.title-dot.is-yellow {
  background: var(--yellow);
}

.article-grid,
.category-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.hot-carousel-host {
  padding-bottom: 6px;
}

.hot-carousel {
  width: 100%;
}

.hot-carousel-track {
  position: relative;
  height: 326px;
  margin: 2px 14px 6px;
  overflow: visible;
}

.hot-carousel-slide {
  position: relative;
  position: absolute;
  inset: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #172033;
  box-shadow: 0 16px 32px rgba(23, 32, 51, 0.16);
  transition:
    opacity 240ms ease,
    transform 260ms ease,
    width 260ms ease,
    height 260ms ease;
}

.hot-carousel-slide[data-state="active"] {
  z-index: 4;
  right: 0;
  left: 0;
  width: 72%;
  height: 232px;
  min-height: 232px;
  opacity: 1;
  margin: 0 auto;
  transform: translate3d(0, 0, 0);
}

.hot-carousel-slide[data-state="right"] {
  z-index: 3;
  right: 0;
  left: auto;
  width: 48%;
  height: 158px;
  min-height: 158px;
  opacity: 0.82;
  transform: translate3d(0, 126px, 0) scale(0.92) rotate(2deg);
}

.hot-carousel-slide[data-state="left"] {
  z-index: 2;
  right: auto;
  left: 0;
  width: 48%;
  height: 158px;
  min-height: 158px;
  opacity: 0.82;
  transform: translate3d(0, 126px, 0) scale(0.92) rotate(-2deg);
}

.hot-carousel-slide[data-state="back"] {
  z-index: 1;
  width: 44%;
  height: 142px;
  min-height: 142px;
  opacity: 0;
  transform: translate3d(28%, 132px, 0) scale(0.82);
  pointer-events: none;
}

.hot-slide-media {
  height: 100%;
  background: #eef3f8;
}

.hot-slide-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-slide-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 14px 14px;
  background: linear-gradient(180deg, rgba(23, 32, 51, 0), rgba(23, 32, 51, 0.82));
  color: #fff;
}

.hot-slide-copy span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 214, 107, 0.92);
  color: #4b3500;
  font-size: 11px;
  font-weight: 800;
  padding: 0 8px;
}

.hot-slide-copy h3 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hot-carousel-slide:not([data-state="active"]) .hot-slide-copy {
  display: none;
}

.hot-slide-copy p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.5;
}

.hot-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 14px 0 12px;
  position: relative;
  z-index: 6;
}

.hot-carousel-dot {
  width: 22px;
  height: 6px;
  border-radius: 8px;
  border: 0;
  background: rgba(23, 32, 51, 0.16);
  padding: 0;
  cursor: pointer;
}

.hot-carousel-dot.is-active {
  background: var(--pink-strong);
}

.zone-capsules {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px 12px;
  scrollbar-width: none;
}

.zone-capsules.is-overflowing {
  scrollbar-color: rgba(78, 143, 247, 0.34) rgba(78, 143, 247, 0.08);
  scrollbar-width: thin;
}

.zone-capsules::-webkit-scrollbar {
  display: none;
  height: 0;
}

.zone-capsules.is-overflowing::-webkit-scrollbar {
  display: block;
  height: 6px;
}

.zone-capsules::-webkit-scrollbar-track {
  border-radius: 8px;
  background: rgba(78, 143, 247, 0.08);
  margin: 0 12px;
}

.zone-capsules::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(78, 143, 247, 0.34);
}

.zone-capsules::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 143, 247, 0.48);
}

.article-card,
.zone-card,
.zone-capsule,
.empty-state,
.rules-article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-card.is-compact {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 104px;
}

.article-card.is-list {
  display: block;
}

.article-thumb {
  min-height: 104px;
  background: #f5f7fb;
}

.article-card.is-list .article-thumb {
  min-height: 160px;
}

.article-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card.is-list .article-thumb img {
  height: auto;
  object-fit: contain;
}

.image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 104px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.article-card-body {
  min-width: 0;
  padding: 12px;
}

.article-card-body h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
}

.article-card-body p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.zone-capsule {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 112px;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-color: rgba(78, 143, 247, 0.14);
  background: linear-gradient(135deg, rgba(78, 143, 247, 0.11), rgba(255, 255, 255, 0.96));
  box-shadow: 0 8px 18px rgba(35, 67, 105, 0.06);
}

.zone-capsule:nth-child(3n + 2) {
  border-color: rgba(245, 111, 142, 0.16);
  background: linear-gradient(135deg, rgba(245, 111, 142, 0.11), rgba(255, 255, 255, 0.96));
}

.zone-capsule:nth-child(3n) {
  border-color: rgba(88, 199, 194, 0.2);
  background: linear-gradient(135deg, rgba(88, 199, 194, 0.12), rgba(255, 255, 255, 0.96));
}

.zone-capsule-index {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: rgba(23, 32, 51, 0.06);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.zone-capsule strong {
  max-width: 5.5em;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-capsule-arrow {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.rules-content {
  padding: 0 14px 14px;
}

.article-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.article-heading h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
}

.rules-panel {
  overflow: hidden;
}

.rules-heading {
  padding: 2px 0 10px;
}

.rules-heading h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.rules-panel .article-body {
  overflow: hidden;
  border-radius: 8px;
  background: #f7f9fc;
}

.detail-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.detail-tabs.is-overflowing {
  scrollbar-color: rgba(78, 143, 247, 0.34) rgba(78, 143, 247, 0.08);
  scrollbar-width: thin;
}

.detail-tabs::-webkit-scrollbar {
  display: none;
  height: 0;
}

.detail-tabs.is-overflowing::-webkit-scrollbar {
  display: block;
  height: 6px;
}

.detail-tabs::-webkit-scrollbar-track {
  border-radius: 8px;
  background: rgba(78, 143, 247, 0.08);
}

.detail-tabs::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(78, 143, 247, 0.34);
}

.detail-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 143, 247, 0.48);
}

.detail-tab {
  flex: 0 0 auto;
  min-height: 36px;
  max-width: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  white-space: nowrap;
  cursor: pointer;
}

.detail-tab.is-active {
  border-color: rgba(78, 143, 247, 0.36);
  background: #eef5ff;
  color: #2168d5;
  box-shadow: inset 0 -3px 0 var(--blue);
}

.detail-article-stage {
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.article-body {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.article-body p {
  margin: 0;
}

.article-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #f5f7fb;
}

.body-empty {
  padding: 16px 12px;
  color: var(--muted);
}

.empty-state {
  padding: 24px 16px;
  text-align: center;
}

.empty-state strong {
  display: block;
  font-size: 17px;
  line-height: 1.4;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.detail-nav {
  display: flex;
  align-items: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}

.card-skeleton {
  min-height: 96px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef3f8 0%, #f8fbff 42%, #eef3f8 78%);
  background-size: 240% 100%;
  animation: loading 1.3s ease-in-out infinite;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 12px max(20px, env(safe-area-inset-bottom));
  color: rgba(104, 117, 138, 0.86);
  font-size: 12px;
}

.support-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.support-link,
.footer-link-button {
  color: #2168d5;
  font-weight: 800;
}

.support-link {
  text-decoration: none;
}

.footer-link-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.report-float {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 243, 248, 0.92)),
    #ffffff;
  backdrop-filter: blur(14px);
  color: #c0374c;
  box-shadow: 0 14px 34px rgba(192, 55, 76, 0.18), 0 4px 12px rgba(23, 32, 51, 0.08);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 0 15px 0 10px;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.report-float-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #ffedf2;
  color: #c0374c;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(192, 55, 76, 0.12);
}

.report-float:hover {
  box-shadow: 0 18px 40px rgba(192, 55, 76, 0.22), 0 6px 14px rgba(23, 32, 51, 0.1);
  transform: translateY(-1px);
}

.report-float:active {
  transform: translateY(0);
}

.image-preview {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(64px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  background: rgba(15, 22, 35, 0.88);
  backdrop-filter: blur(16px);
}

.image-preview[hidden] {
  display: none !important;
}

.image-preview-image {
  display: block;
  max-width: min(92vw, 920px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  cursor: zoom-out;
}

.image-preview-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.disclaimer-dialog {
  position: fixed;
  z-index: 950;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 22, 35, 0.56);
  backdrop-filter: blur(12px);
}

.disclaimer-dialog[hidden] {
  display: none !important;
}

.disclaimer-panel {
  width: min(100%, 420px);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 22px 64px rgba(23, 32, 51, 0.24);
}

.disclaimer-panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.disclaimer-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.disclaimer-close {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@keyframes loading {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 26px;
  }

  .hot-carousel-slide {
    min-height: 232px;
  }

  .hot-carousel-slide[data-state="active"] {
    width: 80%;
  }

  .zone-capsule {
    min-width: 104px;
  }
}

@media (min-width: 760px) {
  body {
    padding: 28px 0;
  }

  .app-shell {
    min-height: calc(100vh - 56px);
    border-radius: 8px;
    overflow: hidden;
  }
}
