/* 现代浅色 NFT 平台风格 */
:root{
  /* 浅色主题配色 */
  --bg-primary: #F8F9FD;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --accent: #6366F1;
  --accent-hover: #4F46E5;
  --accent-2: #8B5CF6;
  --accent-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 60px rgba(99, 102, 241, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 24px;
}

.digital-clock {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.2);
  letter-spacing: 0.5px;
  min-width: 240px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
  white-space: nowrap;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.brand-text:hover {
  transform: translateY(-2px);
}

.logo {
  margin: 0;
  font-weight: 800;
  color: var(--text-primary);
  font-size: 28px;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slogan {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  position: relative;
}

.nav a:hover {
  color: var(--accent);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(99, 102, 241, 0.03) 100%);
}

.hero h2 {
  font-size: 56px;
  margin: 0 0 20px;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  text-align: center;
}

.tagline {
  color: var(--text-secondary);
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: center;
  display: block;
  white-space: nowrap;
  padding: 0 20px;
}

.hero p {
  margin: 0 0 20px;
}

.cta {
  display: inline-block;
  background: var(--accent-gradient);
  color: #fff;
  padding: 16px 40px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.section {
  background: var(--bg-card);
  margin-top: 32px;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.section h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 700;
}

.section p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.section ul {
  list-style: none;
  padding: 0;
}

.section ul li {
  color: var(--text-secondary);
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  font-size: 16px;
}

.section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 18px;
}

.site-footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 80px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

/* view counter */
.counter-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.view-counter {
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* auth controls */
.auth-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-link {
  background: none;
  border: 0;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
}

.btn-link:hover {
  color: var(--accent);
  background: var(--bg-primary);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: 0;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-xl);
  min-width: 400px;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: var(--bg-primary);
  border: 0;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.auth-forms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.2s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-actions {
  text-align: right;
  margin-top: 20px;
}

/* Featured NFT Cards */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.nft-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.nft-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.nft-card-image {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.nft-card-content {
  padding: 20px;
}

.nft-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.nft-card-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.stat-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

/* small screens */
@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }
  
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero h2 {
    font-size: 36px;
  }
  
  .tagline {
    font-size: 16px;
  }
  
  .nav {
    display: none;
  }
  
  .digital-clock {
    font-size: 11px;
    min-width: auto;
    padding: 6px 10px;
    letter-spacing: 0.3px;
  }
  
  .section {
    padding: 32px 24px;
  }
  
  .nft-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    min-width: 90%;
    margin: 20px;
  }
}

/* utility */
.muted {
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}