:root {
  --bg: #f0f4ff;
  --bg-secondary: #e6ecff;
  --bg-card: #ffffff;
  --bg-hover: #f7f9ff;
  --text: #1a1f36;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --primary: #0052FF;
  --primary-dark: #0042d6;
  --primary-light: #2970FF;
  --accent: #7b3fe4;
  --success: #00D395;
  --warning: #ffaa00;
  --danger: #ff4757;
  --border: #e0e6f7;
  --border-light: #eef2ff;
  --shadow: rgba(0, 82, 255, 0.15);
  --shadow-dark: rgba(0, 82, 255, 0.08);
  --gradient-base: linear-gradient(135deg, #0052FF 0%, #6B8CFF 50%, #D4E0FF 100%);
}

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

html, body { 
  height: 100%; 
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 25%, #d9e8ff 50%, #e6f0ff 75%, #f0f4ff 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -10%;
  width: 80%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(107, 140, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* 导航栏 */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0, 82, 255, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 24px;
  color: var(--primary);
}

.logo-image {
  height: 32px;
  width: 32px;
  object-fit: cover;
  border-radius: 50%;
}

.logo-icon {
  font-size: 32px;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.github-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 8px;
}

.github-link:hover {
  color: var(--primary);
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  line-height: 1;
}

.copy-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.1);
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.language-selector:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.connect-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0052FF 0%, #2970FF 100%);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.connect-btn:hover {
  background: linear-gradient(135deg, #0042d6 0%, #2970FF 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 82, 255, 0.4);
}

/* 主横幅区域 */
.hero-section {
  padding: 80px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -15%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, rgba(107, 140, 255, 0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #0052FF 0%, #2970FF 50%, #6B8CFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-right {
  animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.token-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.token-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0052FF 0%, #2970FF 50%, #6B8CFF 100%);
}

.token-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 82, 255, 0.2);
}

.token-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.token-logo {
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.token-info {
  flex: 1;
}

.token-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.token-symbol {
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
}

.protocol-badge {
  background: var(--primary);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.token-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.stat-row span:first-child {
  color: var(--text-secondary);
}

.address {
  color: var(--primary);
  font-family: 'Courier New', monospace;
}

.value {
  color: var(--text);
  font-weight: 600;
}

.value.highlight {
  color: var(--primary);
  font-weight: 700;
}

.progress-section {
  margin: 8px 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.progress-header span:first-child {
  color: var(--text-secondary);
}

.progress-percent {
  color: var(--primary);
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0052FF 0%, #2970FF 50%, #6B8CFF 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 82, 255, 0.3);
}

/* 主内容区域 */
.main-content {
  padding: 60px 0;
}

.trading-section {
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #0052FF 0%, #2970FF 50%, #6B8CFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.network-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}

.network-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

.trading-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px var(--shadow);
  position: relative;
  overflow: hidden;
}

.trading-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0052FF 0%, #2970FF 50%, #6B8CFF 100%);
}

.trading-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.token-display {
  display: flex;
  align-items: center;
  gap: 16px;
}

.token-icon {
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.token-icon img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.token-details .token-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.token-details .token-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.price-info {
  text-align: right;
}

.current-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.price-change {
  font-size: 14px;
  font-weight: 700;
}

.price-change.positive {
  color: var(--success);
}

/* Wallet Info Section */
.wallet-info-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.info-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

/* Mint Info Box */
.mint-info-box {
  background: var(--bg);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row span:first-child {
  color: var(--text-secondary);
}

.highlight-value {
  color: var(--primary);
  font-weight: 700;
}

.highlight-value.success {
  color: var(--success);
}

/* Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.action-btn {
  height: 56px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #0052FF 0%, #2970FF 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

.primary-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0042d6 0%, #1f5ce6 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 82, 255, 0.4);
}

.secondary-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.secondary-btn:hover:not(:disabled) {
  background: rgba(0, 82, 255, 0.05);
  border-color: var(--primary-light);
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.trading-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.info-item {
  text-align: center;
}

.info-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.info-value.success {
  color: var(--success);
}

/* Message Alert */
#message {
  display: none;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

#message.show {
  display: block;
}

#message.success {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

#message.error {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

#message.info {
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
}

/* Protocol Info Section */
.protocol-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-top: 40px;
}

.protocol-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.protocol-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.protocol-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 32px;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--bg);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    display: none;
  }
  
  .wallet-info-section,
  .protocol-features {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    grid-template-columns: 1fr;
  }
  
  .trading-info {
    grid-template-columns: 1fr;
  }
}

