* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: #1A1B1E; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: #1A1B1E; color: #f4f4f5;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.5; min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* 头部 */
.header { background: #000; position: sticky; top: 0; z-index: 100; }
.header-top { display: flex; align-items: center; height: 50px; padding: 0 12px; }
.header-top .logo { width: 90px; height: auto; }
.header-top .login {
  margin-left: auto; height: 30px; padding: 0 14px; border-radius: 15px;
  background: transparent; color: #fff; border: 1px solid #444e51; font-size: 13px;
}
.header .nav { display: flex; gap: 18px; padding: 0 12px 10px; overflow-x: auto; }
.header .nav::-webkit-scrollbar { display: none; }
.header .nav a {
  color: #c0c0c0; font-size: 14px; line-height: 22px;
  white-space: nowrap; position: relative; padding-bottom: 4px;
}
.header .nav a.active { color: #fff; }
.header .nav a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 16px; height: 2px; background: #fc7203; border-radius: 1px;
  transform: translateX(-50%);
}

/* Hero */
.hero { padding: 40px 16px; text-align: center; background: linear-gradient(180deg, #000 0%, #1A1B1E 100%); }
.hero h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.3; }
.hero h1 span { color: #fc7203; }
.hero p { font-size: 13px; color: #b0b1b3; margin-bottom: 24px; }
.hero .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 20px; border-radius: 21px;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
}
.btn-primary { background: #fc7203; color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1px solid #444e51; }
.btn svg { width: 18px; height: 18px; }

/* 版块 */
.section-block { padding: 20px 0; }
.block-head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; margin-bottom: 12px; }
.block-head h2 {
  font-size: 18px; font-weight: 600; color: #f1f1f1;
  padding-left: 8px; border-left: 3px solid #fc7203; line-height: 20px;
}
.block-head a { font-size: 13px; color: #c0c0c0; }

/* 卡片 */
.card-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; padding: 0 12px; }
.card { display: block; }
.card-cover {
  position: relative; width: 100%; aspect-ratio: 157/272;
  border-radius: 4px; overflow: hidden; background: #232430;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-title {
  margin-top: 4px; font-size: 12px; color: #f1f1f1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 16px;
}
.card-heat { font-size: 11px; color: #999; margin-top: 2px; }

/* 下载区 */
.download { padding: 30px 12px; background: #111; margin-top: 30px; }
.download .qr { text-align: center; margin-bottom: 20px; }
.download .qr img { width: 120px; height: 120px; margin: 0 auto; border-radius: 10px; background: #fff; padding: 6px; }
.download .qr p { margin-top: 8px; font-size: 12px; color: #b0b1b3; }
.download h2 { font-size: 20px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 8px; }
.download .desc { font-size: 13px; color: #b0b1b3; text-align: center; margin-bottom: 18px; }
.download .btns { display: flex; flex-direction: column; gap: 10px; }
.download .btn { width: 100%; height: 46px; }

/* 内容页 */
.page { padding: 16px 12px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #b0b1b3; margin-bottom: 16px; }
.breadcrumb a { color: #fff; }
.page-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.content-card { background: #27282d; border: 1px solid #35363c; border-radius: 8px; padding: 16px; }
.rich { color: #b0b1b3; font-size: 14px; line-height: 1.7; word-break: break-word; }
.rich h2 { color: #fff; font-size: 16px; font-weight: 700; margin: 18px 0 10px; }
.rich h2:first-child { margin-top: 0; }
.rich h3 { color: #fff; font-size: 15px; font-weight: 700; margin: 16px 0 8px; }
.rich p { margin: 8px 0; }
.rich ul { padding-left: 18px; margin: 8px 0; }
.rich li { margin: 5px 0; }
.rich strong { color: #f1f1f1; }

/* 底部 */
.footer { background: #000; padding: 30px 12px 20px; text-align: center; margin-top: 30px; }
.footer .logo { width: 90px; height: auto; margin: 0 auto 14px; }
.footer .slogan { font-size: 14px; font-weight: 700; color: #f1f1f1; margin-bottom: 16px; }
.footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin-bottom: 16px; }
.footer .links a { font-size: 13px; color: #fff; }
.footer .copyright { font-size: 12px; color: #999; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.footer .copyright a { color: #999; }

/* 分类筛选 */
.filter { padding: 12px; background: #1A1B1E; border: 1px solid rgba(82,82,82,.5); border-radius: 8px; margin: 12px; }
.filter-row + .filter-row { margin-top: 14px; }
.filter-label { font-size: 13px; color: #f1f1f1; margin-bottom: 8px; }
.filter-items { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 13px; font-size: 13px; background: #27282D; color: #c0c0c0;
}
.chip.active { background: #fc7203; color: #fff; }

/* 心愿榜 */
.wish-hero { padding: 24px 12px 12px; display: flex; gap: 12px; align-items: flex-start; }
.wish-hero .hero-img { width: 60px; height: 60px; flex-shrink: 0; }
.wish-hero h1 { font-size: 18px; font-weight: 700; color: #5ca8ff; line-height: 1.3; margin-bottom: 8px; }
.wish-hero p { font-size: 13px; color: #fff; line-height: 1.4; }
.wish-form { margin: 20px 12px; padding: 16px; background: rgba(26,27,30,.5); border: 1px solid rgba(82,82,82,.5); border-radius: 10px; }
.wish-form input, .wish-form textarea {
  width: 100%; color: #fff; background: #27282d;
  border: 1px solid #35363c; border-radius: 6px;
  font-size: 14px; padding: 12px; outline: none; font-family: inherit;
}
.wish-form input { height: 44px; }
.wish-form textarea { margin-top: 10px; height: 90px; resize: none; }
.wish-form button {
  margin-top: 14px; width: 100%; height: 44px;
  border-radius: 8px; background: #fc7203; color: #fff;
  font-size: 15px; border: none; cursor: pointer;
}
.wish-form button:disabled { opacity: .6; }
.chip-row { display: flex; gap: 8px; padding: 0 12px; margin-top: 16px; }
.chip-row .chip { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.chip-row .chip.active { background: #fc7203; color: #fff; }
.wish-list { margin-top: 20px; padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.wish-item {
  display: flex; align-items: center; min-height: 72px;
  border-radius: 10px; background: #27282c; padding: 12px;
}
.wish-item .rank { width: 40px; flex-shrink: 0; text-align: center; font-size: 22px; font-weight: 700; color: #7a9199; }
.wish-item .rank.top1 { color: #ec9027; }
.wish-item .rank.top2 { color: #ffa156; }
.wish-item .rank.top3 { color: #5ca8ff; }
.wish-item .body { flex: 1; min-width: 0; padding: 0 8px; }
.wish-item .title {
  font-size: 14px; font-weight: 700; color: #f4f4f5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wish-item .desc {
  margin-top: 4px; font-size: 12px; color: #b5b7bf;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wish-item .vote { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wish-item .vote button {
  padding: 5px 10px; border-radius: 5px; background: #ffa156;
  color: #0d0e10; font-size: 13px; font-weight: 600; border: none; cursor: pointer;
}
.wish-item .vote .num { font-size: 13px; font-weight: 700; color: #f4f4f5; }

/* 分页 */
.pagination {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 8px; margin: 24px 12px 0;
  font-size: 13px; color: #b0b1b3;
}
.pagination .pages { display: flex; gap: 6px; }
.pagination .pages a, .pagination .pages span {
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 6px;
  border-radius: 4px; background: #232429; color: #fff; font-size: 13px;
}
.pagination .pages .current { background: #fc7203; }
.pagination .pages .disabled { opacity: .4; }