* {
  box-sizing: border-box;
}

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

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

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

button,
input {
  border: 0;
  outline: 0;
  font: inherit;
}

button {
  padding: 0;
}

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

.news-page {
  position: relative;
  width: 7.5rem;
  min-height: 20.64rem;
  overflow: hidden;
  background: #0d0906 url("./assets/nybg.jpg") top center / 7.5rem auto no-repeat;
}

.content {
  padding: 0.44rem 0.22rem 1.81rem;
}



.tabs {
  height: 1.78rem;
  padding: 0.7rem 0.86rem 0;
  display: flex;
  justify-content: space-between;
  color: rgba(239, 220, 203, 0.67);
}

.tabs a {
  position: relative;
  width: 1.8rem;
  text-align: center;
  font-size: 0.34rem;
  line-height: 0.48rem;
  font-weight: 500;
}

.tabs .active {
  background: linear-gradient(270deg, #ffcd9f 0%, #fff5e9fc 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
}

.tab-hover {
  position: absolute;
  left: 50%;
  bottom: 0.38rem;
  z-index: 2;
  width: 2.2rem;
  height: 0.08rem;
  object-fit: fill;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 0.08rem rgba(255, 176, 120, 0.9));
  pointer-events: none;
}

.editor-card,
.article-card {
  position: relative;
  border-radius: 0.21rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(66, 45, 34, 0.92), rgba(24, 18, 13, 0.98));
}

.editor-card::before,
.article-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;
}

.editor-card::before {
  z-index: 2;
}

.editor-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 8.8rem;
  height: 8.8rem;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(255, 176, 120, 0.08) 48deg,
      rgba(255, 214, 157, 0.2) 84deg,
      rgba(117, 66, 39, 0.08) 128deg,
      transparent 190deg,
      rgba(255, 176, 120, 0.14) 258deg,
      transparent 360deg
    );
  filter: blur(0.34rem);
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  animation: editor-card-spin 12s linear infinite;
  pointer-events: none;
}

@keyframes editor-card-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.05);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
  }
}

.editor-card {
  height: 4.8rem;
  padding: 0.51rem 0.48rem 0;
  background:
    radial-gradient(circle at 1.1rem 4.3rem, rgba(120, 65, 39, 0.56), transparent 1.6rem),
    linear-gradient(112deg, rgba(73, 49, 37, 0.98) 0, rgba(36, 26, 20, 0.95) 53%, rgba(8, 7, 5, 0.98) 100%);
}

.editor-card > * {
  position: relative;
  z-index: 1;
}

.editor-card span {
  display: block;
  font-size: 0.27rem;
  line-height: 0.36rem;
  font-weight: 800;
  background: linear-gradient(270deg, #ffcd9f 0%, #fff5e9fc 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.editor-card h2 {
  margin: 0.22rem 0 0;
  font-size: 0.46rem;
  line-height: 0.6rem;
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(270deg, #ffcd9f 0%, #fff5e9fc 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.editor-card p {
  width: 5.65rem;
  margin: 0.22rem 0 0;
  font-size: 0.29rem;
  line-height: 0.42rem;
  font-weight: 500;
  color: rgba(238, 221, 204, 0.69);
}

.editor-card button {
  width: 1.84rem;
  height: 0.61rem;
  margin-top: 0.16rem;
  background: url("./assets/btn1.png") center / contain no-repeat;
}

.article-list {
  display: grid;
  gap: 0.33rem;
  margin-top: 0.52rem;
}

.article-card {
  height: 3.29rem;
  padding: 0.27rem 0.22rem;
  display: grid;
  grid-template-columns: 2.05rem 1fr;
  column-gap: 0.51rem;
  background: linear-gradient(180deg, rgba(59, 42, 32, 0.96), rgba(32, 24, 18, 0.98));
}

.article-card img {
  width: 2.05rem;
  height: 2.7rem;
  object-fit: cover;
  border-radius: 0.13rem;
}

.article-card time {
  display: block;
  margin-top: 0.02rem;
  font-size: 0.2rem;
  line-height: 0.3rem;
  color: rgba(220, 203, 185, 0.56);
}

.article-card h3 {
  margin: 0.2rem 0 0;
  width: 3.7rem;
  font-size: 0.31rem;
  line-height: 0.43rem;
  font-weight: 900;
  color: #ffd0a2;
}

.article-card p {
  width: 3.72rem;
  height: 0.66rem;
  overflow: hidden;
  margin: 0.17rem 0 0;
  font-size: 0.25rem;
  line-height: 0.34rem;
  color: rgba(230, 214, 197, 0.7);
}

.article-card a {
  display: flex;
  width: 1.07rem;
  height: 0.38rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
  border: 0.015rem solid #dfb07b;
  border-radius: 0.21rem;
  background: linear-gradient(180deg, #83502d, #5d371f);
  color: #ffe8ca;
  font-size: 0.22rem;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: 7.5rem;
  transform: translateX(-50%);
  height: 1.46rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding-top: 0.12rem;
  background: linear-gradient(90deg, #38291e80 0%, #1c150c80 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tabbar a {
  height: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  color: rgba(232, 213, 194, 0.72);
  font-size: 0.24rem;
  font-weight: 700;
}

.tabbar .active {
  color: #ffad72;
  font-weight: 900;
}

.tabbar img {
  width: 0.52rem;
  height: 0.52rem;
  object-fit: contain;
  display: block;
}

.tabbar .active img {
  filter: brightness(0) saturate(100%) invert(79%) sepia(52%) saturate(947%) hue-rotate(318deg) brightness(101%) contrast(101%);
}
