* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: cover;
  background-position: center;
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
}

/* 固定背景层，解决移动端抖动问题 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* 动态视口高度，兼容移动端地址栏 */
  background: inherit;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* 星星背景动画 */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 230px 80px, #fff, transparent),
    radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent);
  background-size: 350px 200px;
  animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

.avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: float 3s ease-in-out infinite;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

h1 {
  color: #fff;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 10px;
}

.subtitle {
  color: #fff;
  font-size: 0.95rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* 求三连提示 */
.sanlian-tip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.sanlian-tip span {
  color: #ffb6c1;
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  padding-bottom: 5px;
  border-bottom: 2px solid #ffb6c1;
}

.sanlian-tip img {
  position: absolute;
  right: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
}

main {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.link-btn .link-icon-img,
.link-btn .link-name {
  transform: translateX(-25px);
}

.link-btn .link-icon-img {
  position: relative;
  z-index: 1;
}

.link-btn .link-name {
  position: relative;
  z-index: 1;
  color: #4da6ff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.link-btn:hover::before {
  left: 100%;
}

.link-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.35);
}

.link-btn:active {
  transform: translateY(0) scale(0.98);
}

.link-icon-img {
  width: 50px;
  height: 50px;
}

.link-icon {
  font-size: 1.4rem;
}

.link-name {
  font-weight: 600;
}

.click-count {
  font-size: 0.75rem;
  color: #999;
  margin-left: auto;
}

footer {
  text-align: center;
  margin-top: 40px;
  color: #b8f0b8;
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-36px);
}

.footer-content span {
  color: #b8f0b8;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.footer-content img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

/* 免责声明（页面内嵌） */
.disclaimer {
  margin-top: 30px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(50,50,80,0.3) 100%);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.disclaimer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffb3b3;
  font-weight: bold;
  margin-bottom: 15px;
  transform: translateX(-36px);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.disclaimer-header img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.disclaimer ul {
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  line-height: 1.8;
  padding-left: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.disclaimer li {
  margin-bottom: 8px;
}

/* 加载动画 */
.loading {
  text-align: center;
  color: #fff;
  padding: 40px;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 樱花飘落效果 */
.sakura {
  position: fixed;
  top: -10px;
  pointer-events: none;
  animation: fall linear forwards;
  z-index: 0;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(720deg);
  }
}

/* 点击特效 */
.click-effect {
  position: fixed;
  pointer-events: none;
  width: 50px;
  height: 50px;
  z-index: 9999;
  animation: clickPop 0.8s ease-out forwards;
  transform: translate(-50%, -50%);
}

@keyframes clickPop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -100%) scale(1);
  }
}


/* 未开通链接样式 */
.link-disabled {
  background: rgba(150, 150, 150, 0.3) !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.link-disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  background: rgba(150, 150, 150, 0.3) !important;
}

.link-disabled .link-icon-img {
  filter: grayscale(100%);
}
