@font-face {
  font-family: 'AnswerFont';
  src: url('answer.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bsc-gold: #F0B90B;
  --bsc-gold-2: #F8D33A;
  --bsc-dark: #0B0E11;
  --bsc-dark-2: #12161C;
  --bsc-gradient: linear-gradient(135deg, #F0B90B, #F8D33A);
}

/* BSC风格动画效果 */
.solana-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.22) 0%, rgba(248, 211, 58, 0.12) 40%, rgba(240, 185, 11, 0) 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(20px);
  opacity: 0.7;
}

.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(3px);
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) translateX(10px) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-40px) translateX(20px) scale(1);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-20px) translateX(10px) scale(0.9);
    opacity: 0.4;
  }
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
}

.ripple {
  position: fixed;
  border-radius: 50%;
  background: var(--bsc-gradient);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ripple-effect 1s linear;
  z-index: 9999;
}

@keyframes ripple-effect {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0.5;
  }
  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: "微软雅黑", Arial, sans-serif;
  background: var(--bsc-dark);
  color: #fff;
  min-height: 100vh;
  background-image: radial-gradient(circle at 10% 20%, rgba(240, 185, 11, 0.08) 0%, rgba(248, 211, 58, 0.04) 90%);
}

header {
  display: flex;
  align-items: center;
  padding: 24px;
  background: rgba(11, 14, 17, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240, 185, 11, 0.25);
  position: relative;
  z-index: 10;
}

.logo {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(240, 185, 11, 0.5);
}

.site-title {
  font-size: 20px;
  font-weight: bold;
  background: var(--bsc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 5px rgba(240, 185, 11, 0.25);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  position: relative;
  z-index: 5;
}

/* Hero section */
.hero-section {
  text-align: center;
  margin-bottom: 40px;
}

.solana-subtitle {
  font-size: 18px;
  color: #aaa;
  margin-top: 10px;
  text-shadow: 0 0 5px rgba(240, 185, 11, 0.2);
}

.highlight {
  background: var(--bsc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.main-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  background: var(--bsc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(240, 185, 11, 0.35);
  position: relative;
}

.main-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: var(--bsc-gradient);
  border-radius: 2px;
}

.book-container {
  margin: 30px 0 10px 0;
  position: relative;
}

.book-container::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 10px;
  background: rgba(240, 185, 11, 0.8);
  filter: blur(20px);
  opacity: 0.6;
  border-radius: 50%;
}

.solana-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: rgba(11, 14, 17, 0.8);
  border: 1px solid rgba(240, 185, 11, 0.5);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: #fff;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(240, 185, 11, 0.25);
  transform: rotate(-5deg);
}

.solana-badge-text {
  font-weight: bold;
  color: #fff;
}

.solana-text {
  background: var(--bsc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.bonk-text {
  background: var(--bsc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.book-img {
  width: 260px;
  cursor: pointer;
  transition: transform 0.3s;
  border-radius: 0;
  box-shadow: none;
}

.book-img:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: none;
}

.tip {
  color: #aaa;
  font-size: 18px;
  margin-top: 40px;
  text-shadow: 0 0 5px rgba(240, 185, 11, 0.2);
}

/* Solana特性展示 */
.solana-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 60px 0 40px 0;
  width: 100%;
  max-width: 900px;
}

.feature {
  background: rgba(11, 14, 17, 0.5);
  border-radius: 16px;
  border: 1px solid rgba(240, 185, 11, 0.2);
  padding: 24px;
  width: 220px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(240, 185, 11, 0.25);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 15px;
  background: var(--bsc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

.feature-desc {
  font-size: 14px;
  color: #aaa;
  line-height: 1.4;
}

#answer-view {
  width: 100vw;
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.answer-big {
  font-size: 64px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  font-family: 'AnswerFont', '微软雅黑', Arial, sans-serif;
  letter-spacing: 4px;
}

.retry {
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.retry:hover {
  color: var(--solana-green);
}

.answer-container {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: rgba(11, 14, 17, 0.5);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(240, 185, 11, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(240, 185, 11, 0.2);
  position: relative;
  overflow: hidden;
}

.answer-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(240, 185, 11, 0) 0%,
    rgba(240, 185, 11, 0.12) 50%,
    rgba(248, 211, 58, 0) 100%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite linear;
  z-index: -1;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.answer-container.show {
  display: flex;
  opacity: 1;
}

.answer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.quote-marks {
  font-size: 48px;
  font-weight: bold;
  background: var(--bsc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 10px;
}

.answer {
  font-size: 72px;
  font-family: 'AnswerFont', '微软雅黑', Arial, sans-serif;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0 20px;
  text-shadow: 0 0 10px rgba(240, 185, 11, 0.45);
}

.retry-btn {
  background: transparent;
  border: 1px solid rgba(240, 185, 11, 0.5);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 10px 20px;
  transition: all 0.3s ease;
  border-radius: 24px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.retry-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bsc-gradient);
  z-index: -1;
  opacity: 0;
  transition: all 0.3s;
}

.retry-btn:hover::before {
  opacity: 1;
}

.retry-btn:hover {
  box-shadow: 0 0 15px rgba(240, 185, 11, 0.5);
  transform: translateY(-2px);
}

.book-container.hide {
  display: none;
}

.tip.hide {
  display: none;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.header-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.header-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bsc-gradient);
  z-index: -1;
  transition: all 0.3s;
}

.twitter-btn {
  color: #fff;
  border: 1px solid rgba(240, 185, 11, 0.5);
}

.twitter-btn::before {
  opacity: 0.9;
}

.twitter-btn:hover::before {
  opacity: 1;
}

.twitter-btn:hover {
  box-shadow: 0 0 15px rgba(240, 185, 11, 0.5);
  transform: translateY(-2px);
}

.buy-btn {
  color: #fff;
  border: 1px solid rgba(240, 185, 11, 0.5);
}

.buy-btn::before {
  opacity: 0.9;
  background: var(--bsc-gradient);
}

.buy-btn:hover::before {
  opacity: 1;
}

.buy-btn:hover {
  box-shadow: 0 0 15px rgba(240, 185, 11, 0.5);
  transform: translateY(-2px);
}

.copy-area {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
  background: rgba(11, 14, 17, 0.5);
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid rgba(240, 185, 11, 0.2);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.copy-area::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-25deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

#ca-text {
  font-size: 16px;
  color: #ddd;
  padding: 4px 12px;
  border-radius: 8px;
  user-select: all;
  font-family: monospace;
  letter-spacing: 1px;
}

.copy-btn {
  font-size: 15px;
  padding: 6px 16px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(240, 185, 11, 0.5);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.copy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bsc-gradient);
  z-index: -1;
  opacity: 0;
  transition: all 0.3s;
}

.copy-btn:hover::before {
  opacity: 1;
}

.copy-btn:hover {
  box-shadow: 0 0 15px rgba(240, 185, 11, 0.4);
}

.en-answer {
  display: block;
  font-size: 56px;
  color: #fff;
  font-family: 'AnswerFont', Arial, sans-serif;
  text-shadow: 0 0 8px rgba(240, 185, 11, 0.45);
  font-weight: bold;
  padding: 10px 0;
  letter-spacing: 1px;
}

/* Footer样式 */
footer {
  margin-top: 60px;
  padding: 30px 0;
  background: rgba(11, 14, 17, 0.8);
  border-top: 1px solid rgba(240, 185, 11, 0.25);
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.solana-powered {
  display: flex;
  align-items: center;
  gap: 5px;
}

.solana-text {
  color: #aaa;
  font-size: 14px;
}

.solana-brand {
  font-size: 18px;
  font-weight: bold;
  background: var(--bsc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bonk-brand {
  font-size: 18px;
  font-weight: bold;
  background: var(--bsc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .header-actions {
    gap: 8px;
  }
  
  .header-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .main-title {
    font-size: 24px;
    text-align: center;
    padding: 0 20px;
  }
  
  .solana-subtitle {
    padding: 0 20px;
    font-size: 16px;
  }
  
  .solana-features {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
  }
  
  .feature {
    width: 100%;
    max-width: 280px;
  }
  
  .answer {
    font-size: 56px;
  }
  
  .en-answer {
    font-size: 24px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-links {
    gap: 15px;
  }
}