:root {
  --primary-color: #ff69b4;
  --secondary-color: #ffe6f0;
  --text-color: #333;
  --link-color: #4a4a4a;
  --link-hover-color: #ff69b4;
  --gradient-start: #ffecd2;
  --gradient-end: #fcb69f;
  --main-font: 'ZCOOL KuaiLe', cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--main-font);
  color: var(--text-color);
  line-height: 1.6;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  min-height: 100vh;
}

.page-wrapper {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.profile-card {
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
  position: relative;
  height: 180px;
}

.header-bg {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.profile-image {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: #ffffff;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 60px 1.5rem 1.5rem;
  background: transparent;
  position: relative;
}

.card-body::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: calc(100% - 50px);
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.profile-header {
  text-align: center;
  margin-bottom: 0.8rem;
}

.profile-name {
  font-family: var(--main-font);
  font-size: 1.8rem;
  color: #000000;
  margin-bottom: 0.5rem;
}

.profile-motto {
  font-family: var(--main-font);
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0.3rem;
  font-weight: 500;
  opacity: 0.9;
}

.section-title {
  font-family: var(--main-font);
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 1.2rem 0 0.8rem;
  padding: 0.4rem 1.5rem;
  background: rgba(255, 105, 180, 0.1);
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: 20px;
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.links-container {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  padding: 0.5rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--link-color);
  transition: all 0.3s ease;
}

.social-link.animate {
  animation: fadeInUp 0.8s ease forwards;
}

.social-link.animate-out {
  animation: fadeOutDown 0.8s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

.social-link:hover .icon-wrapper {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 105, 180, 0.2);
}

.icon-wrapper {
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.icon {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
}

.social-link span {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
  color: var(--text-color);
}

.icon-x {
  background-image: url('images/x.png');
}

.icon-instagram {
  background-image: url('images/ins.png');
}

.icon-mengdian {
  background-image: url('images/盒岛.png');
}

.icon-dian {
  background-image: url('images/背景.png');
}

.icon-weibo {
  background-image: url('images/微博.png');
}

.icon-bilibili {
  background-image: url('images/B站.png');
}

.icon-douyin {
  background-image: url('images/抖音.png');
}

/* 移除所有伪元素 */
.icon-x::after,
.icon-instagram::after,
.icon-instagram::before,
.icon-mengdian::after,
.icon-dian::after,
.icon-weibo::after,
.icon-bilibili::after,
.icon-douyin::after {
  content: none;
}

.icon-instagram .flash-dot {
  display: none;
}

/* 作品购入平台的特殊样式 */
.purchase-platform {
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.purchase-platform .social-link {
  flex: 1;
  max-width: 150px;
}

.purchase-platform .icon-wrapper {
  width: 300px;
  height: 160px;
}

.purchase-platform .icon-dian {
  border-radius: 10px;
}

/* Support平台的特殊样式 */
.support-platform {
  gap: 3rem;
}

.support-platform .social-link {
  flex: 1;
  max-width: 90px;
}

.support-platform .icon-wrapper {
  width: 65px;
  height: 65px;
}

.purchase-platform .social-link span {
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.support-platform .social-link span {
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

/* 分享按钮 */
.share-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 100;
}

.share-button:hover {
  transform: scale(1.1);
  background: white;
}

.icon-share {
  width: 25px;
  height: 25px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z"/></svg>') center/contain no-repeat;
}

.share-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.share-modal-content {
  position: relative;
  background: white;
  margin: 15% auto;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-button {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}

.share-options {
  margin-top: 15px;
}

.share-link {
  margin-bottom: 15px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
}

.share-link button {
  margin-top: 8px;
  padding: 8px 16px;
  background: #ff69b4;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.share-link button:hover {
  background: #ff1493;
}

.share-qr {
  text-align: center;
}

.share-qr img {
  max-width: 180px;
  margin-top: 8px;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .card-header {
    height: 150px;
  }

  .profile-image {
    width: 90px;
    height: 90px;
    bottom: -42px;
  }

  .card-body {
    padding: 55px 1rem 1rem;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .social-link .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .purchase-platform .icon-wrapper {
    width: 280px;
    height: 160px;
  }

  .social-link span {
    font-size: 0.85rem;
  }

  .purchase-platform .social-link span {
    font-size: 0.85rem;
  }

  .warning-card {
    font-size: 0.85rem;
    padding: 0.7rem 1.2rem;
  }

  .warning-title {
    font-size: 0.9rem;
  }

  .warning-content p {
    font-size: 0.8rem;
  }

  .share-button {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .warning-card {
    font-size: 0.85rem;
    padding: 0.7rem 1.2rem;
  }
}

/* 底部警告框 */
.warning-card {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  border: 1px solid #ffc107;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.warning-title {
  font-family: var(--main-font);
  font-size: 1rem;
  color: #d63031;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.warning-content p {
  font-family: var(--main-font);
  font-size: 0.9rem;
  color: #856404;
  margin: 0.3rem 0;
  font-weight: 500;
}

/* 警示框淡入淡出动画 */
.warning-card.animate {
  animation: fadeInUp 0.8s ease forwards;
}

.warning-card.animate-out {
  animation: fadeOutDown 0.8s ease forwards;
}