:root {
  --red: #ff3b30;
  --red-dark: #e6352b;
  --text: #1a1a1a;
  --text-secondary: #8a8a8a;
  --text-muted: #b0b0b0;
  --bg: #f6f6f6;
  --card: #ffffff;
  --line: #efefef;
  --header-bg: linear-gradient(180deg, #fff8e8 0%, #fffdf7 55%, #ffffff 100%);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  max-width: 428px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

.page--white {
  background: #fff;
}

.watermark {
  position: relative;
}

.watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 80px,
      #999 80px,
      #999 81px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 120px,
      #999 120px,
      #999 121px
    );
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0f0f0;
}

.topbar__title {
  text-align: center;
  flex: 1;
}

.topbar__title h1 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.topbar__title p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.topbar__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 18px;
}

.profile-hero {
  background: var(--header-bg);
  padding: 18px 16px 14px;
  position: relative;
  overflow: hidden;
}

.profile-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: 20px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(255, 190, 120, 0.25);
  pointer-events: none;
}

.profile-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.profile-meta {
  flex: 1;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
}

.follow-btn {
  padding: 6px 14px;
  border-radius: 18px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  font-size: 13px;
  white-space: nowrap;
  transition: 0.2s;
}

.follow-btn.followed {
  border-color: #ddd;
  background: #fff;
  color: #666;
}

.follow-btn:not(.followed) {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.profile-bio {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px 8px;
  background: #fff;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
}

.action-btn__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
}

.action-btn__icon--red {
  background: #ff5a4f;
}

.action-btn__icon--green {
  background: #07c160;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 36px;
  background: #fff;
  border-bottom: 1px solid #f2f2f2;
  padding-top: 8px;
}

.tab {
  position: relative;
  padding: 10px 4px 12px;
  font-size: 16px;
  color: #666;
}

.tab.active {
  color: var(--text);
  font-weight: 700;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
}

.list-toolbar__count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
}

.toggle {
  display: inline-flex;
  background: #f2f2f2;
  border-radius: 18px;
  padding: 2px;
}

.toggle__btn {
  min-width: 52px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: #888;
}

.toggle__btn.active {
  background: var(--red);
  color: #fff;
}

.article-list {
  padding: 0 12px 100px;
}

.article-card {
  margin-top: 12px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-card__meta {
  padding: 10px 14px 0;
  font-size: 12px;
  color: #aaa;
}

.article-card__body {
  margin: 8px 12px 0;
  padding: 14px;
  border-radius: 10px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-card__text {
  flex: 1;
  min-width: 0;
}

.article-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.article-card__match {
  margin-top: 6px;
  font-size: 13px;
  color: #888;
}

.article-card__arrow {
  color: #ccc;
  font-size: 18px;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 12px;
}

.tag-pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff0ee;
  color: var(--red);
  font-size: 12px;
}

.price {
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
}

.warn-page {
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.warn-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
}

.warn-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2f7cf6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.warn-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.warn-url {
  font-size: 14px;
  color: #333;
  word-break: break-all;
  line-height: 1.5;
  margin-bottom: 12px;
}

.warn-tip {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}

.warn-actions {
  width: 100%;
  padding: 0 24px 40px;
}

.warn-btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background: #f2f2f2;
  color: #333;
  font-size: 16px;
}

.warn-link {
  display: block;
  margin-top: 28px;
  text-align: center;
  color: #576b95;
  font-size: 15px;
}

.article-page {
  padding-bottom: calc(120px + var(--safe-bottom));
}

.article-head {
  padding: 16px;
  background: #fff;
}

.article-head h2 {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
}

.article-head time {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #aaa;
}

.lock-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7f7f7;
  font-size: 14px;
  color: #666;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  background: #fff;
  border-top: 8px solid var(--bg);
}

.section-head h3 {
  font-size: 15px;
  font-weight: 700;
}

.section-head a {
  font-size: 13px;
  color: #576b95;
}

.article-content {
  background: #fff;
  padding: 0 16px 16px;
}

.promo-banner,
.tickets-collage {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 14px;
}

.highlight-box {
  padding: 12px;
  border-radius: 8px;
  background: #fff9c4;
  color: #d32f2f;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  margin-bottom: 14px;
}

.article-text {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 12px;
}

.match-card {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  margin: 14px 0;
}

.match-card__head {
  padding: 10px 12px;
  background: #fafafa;
  font-size: 12px;
  color: #888;
  text-align: center;
}

.match-card__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 12px 10px;
}

.team {
  text-align: center;
  min-width: 72px;
}

.team__flag {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0f0f0;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.team__name {
  font-size: 15px;
  font-weight: 700;
}

.match-card__vs {
  font-size: 14px;
  color: #999;
  font-weight: 700;
}

.match-card__info {
  padding: 0 12px 14px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin: 10px 0 16px;
}

.odds-table th,
.odds-table td {
  border: 1px solid #eee;
  padding: 8px 4px;
  text-align: center;
}

.odds-table th {
  background: #fafafa;
  color: #888;
  font-weight: 500;
}

.chart-box {
  height: 120px;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 16px;
  background: #fff;
}

.chart-box svg {
  width: 100%;
  height: 100%;
}

.float-contact {
  position: fixed;
  right: 12px;
  bottom: calc(130px + var(--safe-bottom));
  z-index: 30;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.35);
}

.tip-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(68px + var(--safe-bottom));
  z-index: 25;
  width: calc(100% - 24px);
  max-width: 404px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #fff8e1;
  color: #8a6d3b;
  font-size: 11px;
  line-height: 1.4;
}

.tip-bar.hidden {
  display: none;
}

.tip-bar__close {
  margin-left: auto;
  color: #999;
  font-size: 16px;
}

.pay-footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 40;
  width: 100%;
  max-width: 428px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.pay-footer__price {
  color: var(--red);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.pay-footer__sub {
  margin-top: 4px;
  font-size: 11px;
  color: #aaa;
}

.pay-footer__btn {
  min-width: 140px;
  height: 44px;
  border-radius: 22px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal__box {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.modal__box h4 {
  font-size: 17px;
  margin-bottom: 10px;
}

.modal__box p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.modal__btn {
  margin-top: 16px;
  width: 100%;
  height: 42px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
}

.empty-state {
  padding: 40px 16px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.card-rich,
.rich-content,
.rich-body {
  line-height: 1.8;
  font-size: 15px;
  color: #333;
  word-break: break-word;
}

.card-rich {
  margin: 0 12px 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.card-rich.hidden {
  display: none;
}

.rich-content img,
.card-rich img,
.rich-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
}

.rich-content video,
.card-rich video,
.rich-body video {
  max-width: 100%;
  border-radius: 8px;
  margin: 10px 0;
  background: #000;
}

.rich-content .highlight-box,
.rich-body .highlight-box {
  padding: 12px;
  border-radius: 8px;
  background: #fff9c4;
  color: #d32f2f;
  font-weight: 600;
  margin: 10px 0;
}

.rich-content h1,
.rich-body h1 {
  font-size: 22px;
  margin: 12px 0 8px;
}

.rich-content h2,
.rich-body h2 {
  font-size: 19px;
  margin: 12px 0 8px;
}

.rich-content h3,
.rich-body h3 {
  font-size: 17px;
  margin: 10px 0 6px;
}

.rich-content blockquote,
.rich-body blockquote {
  border-left: 3px solid #ff3b30;
  padding-left: 12px;
  color: #666;
  margin: 10px 0;
}
