* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #0f0906;
  color: #f8f3e9;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  display: flex;
  justify-content: center;
}

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

button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
}

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

.phone-page {
  position: relative;
  width: 7.5rem;
  min-height: 25.1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 4.1rem 2.65rem, rgba(198, 120, 64, 0.32), transparent 1.75rem),
    radial-gradient(circle at 7.15rem 12.1rem, rgba(176, 101, 58, 0.46), transparent 2.25rem),
    linear-gradient(180deg, #3b2318 0, #24160f 2.2rem, #110b08 11.2rem, #130c08 100%);
}

.hero-section {
  height: 5.51rem;
  padding: 0.46rem 0.2rem 0;
}

.brand-row {
  height: 1.28rem;
  padding: 0 0.19rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.brand-row h2 {
  margin: 0 0 0.02rem;
  font-size: 0.43rem;
  line-height: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.01rem;
}

.brand-row p {
  margin: 0;
  font-size: 0.23rem;
  line-height: 0.28rem;
  font-weight: 800;
  letter-spacing: 0.09rem;
  color: rgba(255, 255, 255, 0.82);
}

.search-btn {
  width: 0.43rem;
  height: 0.43rem;
  margin-top: 0.22rem;
  margin-right: 0.2rem;
  background: url("./assets/search.svg") center / 0.43rem 0.43rem no-repeat;
}

.hero-banner {
  height: 3.46rem;
  object-fit: cover;
  border-radius: 0.28rem;
  box-shadow: 0 0.18rem 0.35rem rgba(0, 0, 0, 0.22);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.18rem;
}

.title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.title-wrap h3 {
  margin: 0;
  font-size: 0.4rem;
  line-height: 0.5rem;
  font-weight: 900;
  color: #fffaf0;
}

.title-wrap span {
  font-size: 0.2rem;
  line-height: 0.28rem;
  font-weight: 800;
  letter-spacing: 0.09rem;
  color: rgba(255, 255, 255, 0.86);
}

.section-head a {
  margin-top: 0.03rem;
  font-size: 0.2rem;
  color: rgba(255, 247, 235, 0.84);
  white-space: nowrap;
}

.section-head a::after {
  content: "";
  display: inline-block;
  margin-left: 0.08rem;
  width: 0;
  height: 0;
  border-top: 0.075rem solid transparent;
  border-bottom: 0.075rem solid transparent;
  border-left: 0.095rem solid currentColor;
}

.panel {
  position: relative;
  margin: 0 0.2rem;
  padding: 0.36rem 0.08rem 0.35rem;
  border-radius: 0.23rem;
  background: url("./assets/baokan-bg.jpg") center / cover no-repeat;
}

.panel::before,
.post-card::before,
.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 0.015rem;
  border-radius: inherit;
  background: linear-gradient(180deg, #957967 0%, #95836726 100%);
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.information {
  height: 5.6rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
  margin-top: 0.31rem;
  padding: 0 0.18rem;
}

.news-card img {
  height: 2.91rem;
  object-fit: cover;
  border-radius: 0.19rem;
}

.news-card h4 {
  margin: 0.17rem 0 0;
  height: 0.62rem;
  overflow: hidden;
  font-size: 0.22rem;
  line-height: 0.31rem;
  font-weight: 500;
  color: #eadfd0;
}

.news-card time {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.18rem;
  color: rgba(235, 220, 203, 0.5);
}

.square-section {
  padding-top: 0.64rem;
}

.square-section .section-head,
.encyclopedia-section .section-head,
.ranking-section .section-head {
  padding: 0 0.4rem;
}

.square-scroll {
  display: flex;
  gap: 0.18rem;
  margin-top: 0.29rem;
  padding-left: 0.2rem;
  overflow: visible;
  width: max-content;
}

.post-card {
  position: relative;
  width: 2.56rem;
  height: 3.63rem;
  overflow: hidden;
  border-radius: 0.18rem;
  background: linear-gradient(180deg, rgba(61, 42, 33, 0.92), rgba(44, 32, 26, 0.98));
}

.post-card img {
  height: 2.05rem;
  object-fit: cover;
}

.post-card h4 {
  margin: 0.17rem 0.14rem 0;
  height: 0.68rem;
  overflow: hidden;
  font-size: 0.21rem;
  line-height: 0.32rem;
  font-weight: 500;
  color: #e9ded0;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.14rem;
  margin: 0.25rem 0.16rem 0;
  font-size: 0.17rem;
  color: rgba(236, 220, 204, 0.5);
}

.author b {
  width: 0.3rem;
  height: 0.3rem;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, #bdc5cf 0 0.04rem, transparent 0.045rem),
    radial-gradient(circle at 50% 42%, #4a352b 0 0.1rem, transparent 0.105rem),
    linear-gradient(135deg, #182650, #b7906a);
}

.encyclopedia-section {
  padding-top: 0.87rem;
}

.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.21rem;
  margin-top: 0.29rem;
  padding: 0 0.2rem;
}

.brand-card {
  position: relative;
  height: 2.88rem;
  padding: 0.29rem 0.34rem 0;
  overflow: hidden;
  border-radius: 0.18rem;
  background: linear-gradient(180deg, rgba(70, 50, 37, 0.98), rgba(46, 34, 28, 0.98));
}

.brand-card .ghost-number {
  position: absolute;
  right: 0.14rem;
  top: 0.13rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  line-height: 0.9rem;
  color: rgba(96, 77, 63, 0.24);
}

.brand-card .rating {
  position: absolute;
  right: 0.29rem;
  top: 0.31rem;
  font-size: 0.18rem;
  color: #d2b38b;
}

.brand-card img {
  position: relative;
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 0.12rem;
  object-fit: cover;
}

.brand-card h4 {
  position: relative;
  margin: 0.24rem 0 0;
  font-size: 0.23rem;
  line-height: 0.28rem;
  font-weight: 500;
  color: #f1e5d3;
}

.brand-card p {
  position: relative;
  margin: 0.03rem 0 0;
  overflow: hidden;
  font-size: 0.17rem;
  line-height: 0.24rem;
  color: rgba(232, 217, 199, 0.66);
}

.brand-card p:last-child {
  height: 0.48rem;
  margin-top: 0.13rem;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.08rem;
  height: 0.52rem;
}

.pager span,
.pager i {
  display: block;
  height: 0.09rem;
  border-radius: 0.06rem;
}

.pager span {
  width: 0.35rem;
  background: #b4773c;
}

.pager i {
  width: 0.09rem;
  background: rgba(255, 238, 219, 0.9);
}

.ranking-section {
  padding-top: 0.34rem;
  padding-bottom: 0.55rem;
}

.ranking-img {
  width: 7.1rem;
  height: 2.18rem;
  margin: 0.29rem auto 0;
  object-fit: cover;
  border-radius: 0.18rem;
}
