* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ff00ff;
  color: white;
  font-family: SimSun, Arial, sans-serif;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 6px ridge #ffff00;
}

.logo {
  font-size: 30px;
  color: #ffff00;
  text-shadow: 3px 3px red;
}

.nav a {
  color: white;
  margin-left: 20px;
  font-weight: bold;
  text-decoration: underline;
}

/* MARQUEE */
.marquee {
  background: yellow;
  color: red;
  font-weight: bold;
  padding: 8px;
}

/* MAIN LAYOUT */
.profile-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
}

/* PHOTO PANEL */
.photo-panel {
  position: relative;
  border: 5px dotted yellow;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-panel input {
  display: none;
}

.photo-wrapper {
  position: relative;
  width: 80%;
  height: 420px;
}

.slide-photo {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 6px solid yellow;
  opacity: 0;
  transition: 0.3s;
}

/* 显示对应图片 */
#img1:checked ~ .photo-wrapper .photo1 {
  opacity: 1;
}
#img2:checked ~ .photo-wrapper .photo2 {
  opacity: 1;
}
#img3:checked ~ .photo-wrapper .photo3 {
  opacity: 1;
}

/* 箭头 */
.controls label {
  display: none;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: yellow;
  color: red;
  font-size: 30px;
  padding: 8px;
  border: 4px outset white;
  cursor: pointer;
}

.left {
  left: 10px;
}
.right {
  right: 10px;
}

/* 控制显示哪组箭头 */
#img1:checked ~ .controls .img1 {
  display: block;
}
#img2:checked ~ .controls .img2 {
  display: block;
}
#img3:checked ~ .controls .img3 {
  display: block;
}

/* VIP */
.vip-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: yellow;
  padding: 6px 10px;
  font-weight: bold;
}

/* INFO PANEL */
.info-panel {
  border: 5px dotted yellow;
  padding: 20px;
}

.info-panel h1 {
  color: yellow;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.about-text {
  margin-top: 20px;
  color: yellow;
  text-shadow: 0 0 10px yellow;
}

/* BUTTONS */
.profile-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

.profile-buttons button {
  flex: 1;
  padding: 12px;
  font-size: 18px;
  border: 4px outset white;
}

.message-btn {
  background: lime;
}

.hate-btn {
  background: gray;
}
@media (max-width: 850px) {
  body {
    overflow-x: hidden;
  }

  .header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav a {
    margin-left: 0;
    font-size: 16px;
  }

  .marquee {
    font-size: 16px;
  }

  .profile-container {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    margin: 18px auto;
    padding: 14px;
    gap: 20px;
  }

  .photo-panel {
    min-height: auto;
    padding: 18px 10px 52px;
  }

  .profile-photo,
  .photo-wrapper {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .profile-photo,
  .slide-photo {
    height: auto;
    max-height: 420px;
    object-fit: contain;
  }

  .photo-wrapper {
    height: 420px;
  }

  .info-panel {
    padding: 18px;
  }

  .info-panel h1 {
    font-size: 34px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 18px;
  }

  .info-row span {
    text-align: left;
  }

  .info-row strong {
    line-height: 1.45;
  }

  .about-text {
    font-size: 20px;
    line-height: 1.4;
  }

  .profile-buttons {
    flex-direction: column;
  }

  .profile-buttons button {
    font-size: 20px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .photo-wrapper {
    height: 320px;
  }

  .info-panel h1 {
    font-size: 30px;
  }

  .about-text {
    font-size: 18px;
  }

  .arrow,
  .arrow-btn {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
}