* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f3f4f6;
  color: #333;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { border: 0; vertical-align: middle; max-width: 100%; }

:root {
  --accent: #ef7b62;
  --accent-dark: #e0674e;
  --card: #fff;
  --text: #333;
  --muted: #888;
  --line: #eee;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --radius: 10px;
  --wrap: 1200px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}
.brand-text .name {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}
.brand-text .slogan {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 4px;
}
.nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 18px;
  font-size: 15px;
  color: #444;
  transition: .15s;
}
.nav a:hover { color: var(--accent); }
.nav a.active {
  background: var(--accent);
  color: #fff;
}

.site-footer {
  margin-top: 40px;
  padding: 28px 0 36px;
  text-align: center;
  color: #999;
  font-size: 13px;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
}

.hero {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #2b1a4a;
  position: relative;
}
.hero-slide {
  display: none;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slide.active { display: block; }
.hero-slide .hero-mask {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, rgba(78,36,140,.72), rgba(239,123,98,.45));
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}
.hero-slide h2 {
  font-size: 42px;
  letter-spacing: 2px;
  text-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.hero-slide p {
  margin-top: 12px;
  font-size: 16px;
  opacity: .92;
}
.hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  text-align: center;
}
.hero-dots span {
  display: inline-block;
  width: 8px; height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.hero-dots span.on {
  width: 22px;
  border-radius: 8px;
  background: #fff;
}

.home-layout {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: flex-start;
}
.side-panel {
  width: 220px;
  flex-shrink: 0;
}
.main-panel { flex: 1; min-width: 0; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.card-title img { width: 18px; height: 18px; }
.card-title .more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.card-title .more:hover { color: var(--accent); }

.online-box {
  text-align: center;
  padding: 8px 0 4px;
}
.online-box .label {
  font-size: 13px;
  color: var(--muted);
}
.online-box .num {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.side-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
  background: #f8f8f8;
}
.side-links a:hover {
  background: #fff1ed;
  color: var(--accent);
}
.side-links img { width: 16px; height: 16px; }

.room-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.room-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: .15s;
  cursor: pointer;
}
.room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  border-color: #ffd4ca;
}
.room-cover {
  height: 110px;
  background: #eceff3 center/cover no-repeat;
  position: relative;
}
.room-cover .online {
  position: absolute;
  right: 8px; bottom: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}
.room-body { padding: 10px 12px 12px; }
.room-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-id {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.rank-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 0;
}
.rank-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.rank-tabs a {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: #666;
  background: #f3f3f3;
}
.rank-tabs a.on {
  background: var(--accent);
  color: #fff;
}
.rank-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  min-height: 150px;
  padding: 10px 0 6px;
}
.podium-item {
  width: 90px;
  text-align: center;
}
.podium-item .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: #f0f0f0 center/cover;
  border: 3px solid #ddd;
}
.podium-item.p1 .avatar { width: 68px; height: 68px; border-color: #f5c542; }
.podium-item.p2 .avatar { border-color: #c0c6d0; }
.podium-item.p3 .avatar { border-color: #d4a574; }
.podium-item .nick {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podium-item .score {
  margin-top: 4px;
  font-size: 12px;
  color: var(--accent);
}
.rank-list { margin-top: 8px; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}
.rank-row .no {
  width: 22px;
  text-align: center;
  font-weight: 700;
  color: #999;
}
.rank-row .no.top { color: var(--accent); }
.rank-row .nick { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .score { color: var(--accent); font-weight: 600; }
.empty-tip {
  text-align: center;
  color: #aaa;
  padding: 36px 12px;
  font-size: 14px;
}

.page-card {
  margin-top: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 48px 48px;
  min-height: 420px;
}
.page-card h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 28px;
}
.notice-body {
  max-width: 820px;
  margin: 0 auto;
  line-height: 2;
  font-size: 15px;
  color: #444;
  text-align: center;
}
.notice-body p { margin-bottom: 16px; }
.violation-lead {
  display: inline-block;
  background: #ffe566;
  padding: 4px 10px;
  font-weight: 700;
  margin-bottom: 16px;
}
.violation-alert {
  background: #c0392b;
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 12px 0 20px;
  text-align: left;
  line-height: 1.7;
}
.violation-body {
  text-align: left;
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.9;
  font-size: 14px;
  color: #444;
}
.violation-body h2 {
  font-size: 16px;
  margin: 20px 0 8px;
}

.download-hero {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(120deg, #c62828, #ef5350 55%, #ff8a65);
  color: #fff;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}
.download-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.download-copy h1 {
  font-size: 36px;
  margin-bottom: 16px;
}
.download-meta {
  font-size: 14px;
  opacity: .9;
  margin-bottom: 28px;
  line-height: 1.8;
}
.btn-download {
  display: inline-block;
  background: #fff;
  color: #c62828;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.btn-download:hover { background: #fff8f6; }
.download-art {
  width: 420px;
  max-width: 45%;
  opacity: .95;
}

.rank-page .section {
  margin-bottom: 20px;
}
.rank-page .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.rank-page .section-head h2 {
  font-size: 18px;
}
.rank-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rank-table th, .rank-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f2f2f2;
  text-align: left;
}
.rank-table th {
  background: #fafafa;
  color: #666;
  font-weight: 600;
}
.rank-table .c-accent { color: var(--accent); font-weight: 600; }
.rank-table .muted { color: #999; font-weight: 400; font-size: 12px; }
.city-now {
  background: linear-gradient(120deg, #fff7f4, #fff);
  border: 1px solid #ffe0d6;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.city-now-label {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
}
.city-now-name {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
}
.city-now-meta {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}
.city-now-meta strong { color: var(--accent); font-size: 16px; }
.room-star-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.room-star-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  background: #fff;
}
.room-star-card .cover {
  width: 96px; height: 72px;
  border-radius: 8px;
  background: #eee center/cover;
  flex-shrink: 0;
}
.room-star-card .tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 6px;
}
.tag-consume { background: #ef7b62; }
.tag-popular { background: #5c7cfa; }
.gift-star-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gift-star-item {
  background: #fafafa;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.gift-star-item .gname { font-weight: 700; margin-bottom: 6px; }
.gift-star-item .meta { font-size: 12px; color: #666; line-height: 1.7; }

.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-mask.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  width: 360px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.modal-box h3 { margin-bottom: 10px; font-size: 18px; }
.modal-box p { color: #666; font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.modal-box .actions { display: flex; gap: 10px; justify-content: center; }
.modal-box .btn {
  padding: 8px 20px;
  border-radius: 18px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
}
.modal-box .btn-primary { background: var(--accent); color: #fff; }
.modal-box .btn-ghost { background: #f0f0f0; color: #555; }

@media (max-width: 1100px) {
  .room-grid { grid-template-columns: repeat(3, 1fr); }
  .gift-star-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .home-layout { flex-direction: column; }
  .side-panel { width: 100%; }
  .rank-home, .rank-cols, .room-star-grid { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .download-inner { flex-direction: column; text-align: center; }
  .download-art { max-width: 80%; }
  .page-card { padding: 24px 18px 32px; }
  .nav a { padding: 6px 10px; font-size: 13px; }
}
