:root {
  --blue: #008cff;
  --blue-dark: #0074d9;
  --red: #ff3b30;
  --text: #1a1a1a;
  --sub: #8a8f99;
  --line: #eef1f5;
  --bg: #f4f6f9;
  --card: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #d8dee8;
  color: var(--text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

.phone {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  position: relative;
  padding-bottom: 62px;
  overflow-x: hidden;
}

.download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 10px;
  background: linear-gradient(90deg, #1c3148 0%, #243b55 55%, #1a2d42 100%);
  flex-shrink: 0;
}
.download-bar .brand {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  margin-top: 1px;
}
.logo svg, .logo img { width: 100%; height: 100%; }
.brand-text { min-width: 0; flex: 1; }
.brand-text h1 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}
.brand-text p {
  color: rgba(255,255,255,.72);
  font-size: 10px;
  margin-top: 2px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}
.dl-btn {
  flex-shrink: 0;
  align-self: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tabs {
  display: flex;
  gap: 18px;
  padding: 0 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  height: 42px;
  line-height: 42px;
  font-size: 15px;
  color: #333;
  position: relative;
  cursor: pointer;
}
.tab.active {
  color: var(--blue);
  font-weight: 700;
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 2px;
  background: var(--blue);
}

.news-wrap {
  padding: 10px 12px 4px;
  display: flex;
  flex-direction: column;
}
.news-viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}
.news-track {
  display: flex;
  width: 100%;
  will-change: transform;
}
.news-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 2px;
  background: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.news-card .news-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-card .news-text h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .news-text p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .news-text .time {
  margin-top: 8px;
  font-size: 11px;
  color: #b0b6bf;
}
.news-card .news-thumb {
  flex-shrink: 0;
  width: 118px;
  height: 82px;
  border-radius: 8px;
  overflow: hidden;
  background: #e9edf3;
}
.news-card .news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px 0 6px;
  flex-shrink: 0;
}
.dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9d3df;
}
.dots i.on { background: var(--blue); width: 12px; border-radius: 3px; }

.match-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px 4px;
  scrollbar-width: none;
}
.match-row::-webkit-scrollbar { display: none; }
.match-card {
  flex: 0 0 168px;
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 10px 10px 8px;
  box-shadow: 0 2px 8px rgba(20,40,80,.04);
}
.team-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.team-line img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f5f8;
  flex-shrink: 0;
}
.team-line .name {
  flex: 1;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-line .score {
  font-size: 13px;
  font-weight: 700;
  color: #222;
}
.match-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  min-height: 20px;
}
.match-foot .league {
  font-size: 11px;
  color: var(--sub);
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
}
.live-tag img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.when {
  font-size: 11px;
  color: var(--sub);
  text-align: right;
  line-height: 1.2;
}
.book {
  width: 44px;
  height: 22px;
  border-radius: 11px;
  background: #e8f4ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}
.more-btn {
  display: block;
  text-align: center;
  color: var(--blue);
  font-size: 13px;
  padding: 10px 0 6px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 8px;
  font-size: 15px;
  font-weight: 700;
}
.section-head .dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--blue);
  display: grid;
  place-items: center;
}
.section-head .dot svg { width: 10px; height: 10px; }

.live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
  padding: 0 12px 16px;
}
.live-card .cover {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9.4;
  background: #e9edf3;
}
.live-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live-now {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 14px;
  border-radius: 3px;
  background: #ff2d2d;
  display: grid;
  place-items: center;
}
.live-now span {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: #fff;
  clip-path: polygon(0 20%, 0 80%, 100% 50%);
}
.live-card .title {
  font-size: 12px;
  line-height: 1.35;
  margin-top: 6px;
  height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.live-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.live-meta .avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
}
.live-meta .anchor {
  flex: 1;
  font-size: 11px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-meta .hot {
  font-size: 11px;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 2px;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: #fff;
  border-top: 1px solid #eceff3;
  display: flex;
  z-index: 20;
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: #8b919a;
}
.tabbar a.active { color: var(--blue); }
.tabbar svg { width: 22px; height: 22px; }

.empty {
  text-align: center;
  color: var(--sub);
  font-size: 13px;
  padding: 24px 0;
}

.guide-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.guide-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.guide-sheet {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 398px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.guide-sheet h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.guide-sheet p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}
.guide-arrow {
  position: absolute;
  top: -8px;
  right: 18px;
  font-size: 28px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.guide-ok,
.guide-cancel {
  display: block;
  width: 100%;
  height: 42px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 42px;
}
.guide-ok {
  background: var(--blue);
  color: #fff;
}
.guide-cancel {
  margin-top: 8px;
  background: #f2f4f7;
  color: #333;
}

.page-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.page-head .back {
  color: #333;
  font-size: 15px;
}
.page-head h1 {
  font-size: 16px;
  font-weight: 700;
}
.article {
  padding: 16px 16px 32px;
  background: #fff;
  min-height: calc(100vh - 120px);
}
.article h2 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.article .meta {
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 14px;
}
.article .cover {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #e9edf3;
}
.article .cover img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}
.article .body {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
}
.article .body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
}
.article .source-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--blue);
}

.dl-page {
  padding: 24px 20px 40px;
  text-align: center;
  background: #fff;
  min-height: calc(100vh - 70px);
}
.dl-logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 12px auto 14px;
  overflow: hidden;
  background: var(--blue);
}
.dl-logo img { width: 100%; height: 100%; object-fit: cover; }
.dl-page h2 { font-size: 22px; margin-bottom: 6px; }
.dl-page .lead { font-size: 13px; color: var(--sub); line-height: 1.5; margin-bottom: 24px; }
.dl-btn-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.dl-btn-lg.ghost {
  background: #eef6ff;
  color: var(--blue);
}
.dl-tip { font-size: 12px; color: #8a8f99; margin-top: 8px; line-height: 1.5; }
