* {
  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;
}

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

.magazine-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.74rem;
  padding: 0.7rem 0.86rem 0;
  display: flex;
  justify-content: space-between;
  color: rgba(239, 220, 203, 0.62);
}

.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;
}

.rack-section {
  padding-top: 0.05rem;
  padding-left: 0.2rem;
}

.rack-section > p {
  margin: 0;
  font-size: 0.28rem;
  line-height: 0.38rem;
  font-weight: 900;
  background: linear-gradient(270deg, #ffcd9f 0%, #fff5e9fc 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.rack-section h1 {
  margin: 0.18rem 0 0;
  font-size: 0.42rem;
  line-height: 0.56rem;
  font-weight: 900;
  background: linear-gradient(270deg, #ffcd9f 0%, #fff5e9fc 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.rack-tip {
  margin-top: 0.08rem;
  font-size: 0.24rem;
  line-height: 0.34rem;
  color: #bca492;
}

.magazine-carousel {
  width: 7.28rem;
  margin-top: 0.27rem;
  margin-left: -0.02rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.magazine-carousel::-webkit-scrollbar {
  display: none;
}

.magazine-track {
  display: flex;
  gap: 0.28rem;
  width: max-content;
  padding-right: 3.03rem;
  perspective: 8rem;
}

.magazine-card {
  position: relative;
  width: 4.47rem;
  height: 5.95rem;
  flex: none;
  overflow: hidden;
  border-radius: 0.2rem;
  scroll-snap-align: start;
  background: #130d09;
  transform-origin: center;
  transition: transform 260ms ease, opacity 260ms ease, filter 260ms ease;
}

.magazine-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 0.015rem;
  border-radius: inherit;
  background: linear-gradient(180deg, #957967 0%, #95836726 100%);
  pointer-events: none;
  z-index: 3;
  -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;
}

.magazine-card img {
  height: 100%;
  object-fit: cover;
}

.magazine-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 1.84rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 76%, rgba(0, 0, 0, 0.94) 100%);
  pointer-events: none;
}

.magazine-copy {
  position: absolute;
  left: 0.34rem;
  right: 0.28rem;
  bottom: 0.36rem;
  z-index: 2;
  display: block;
  pointer-events: none;
}

.magazine-copy h2 {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.31rem;
  line-height: 0.44rem;
  font-weight: 900;
  color: #fff6ec;
}

.magazine-copy p {
  margin: 0.11rem 0 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.23rem;
  line-height: 0.3rem;
  color: rgba(255, 255, 255, 0.92);
}

.magazine-card.is-side {
  opacity: 0.9;
  filter: brightness(0.9);
  transform: scale(0.82) rotateY(-8deg) translateX(-0.04rem);
}

.magazine-card.is-side.is-before {
  transform: scale(0.82) rotateY(8deg) translateX(0.04rem);
}

.other-section {
  padding-top: 0.56rem;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.17rem;
  padding-left: 0.09rem;
}

.section-title h2 {
  margin: 0;
  font-size: 0.4rem;
  line-height: 0.54rem;
  font-weight: 900;
  background: linear-gradient(270deg, #ffcd9f 0%, #fff5e9fc 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.section-title span {
  font-size: 0.22rem;
  line-height: 0.3rem;
  font-weight: 800;
  letter-spacing: 0.09rem;
  background: linear-gradient(270deg, #ffcd9f 0%, #fff5e9fc 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.publication-list {
  display: grid;
  gap: 0.33rem;
  margin-top: 0.34rem;
}

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

.publication-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;
}

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

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

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

.publication-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);
}

.publication-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;
  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);
  transform: translateX(-50%);
}

.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: #ffb078;
  font-weight: 900;
}

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

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