@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;600;700&display=swap');

:root {
  --primary: #065f46;
  --secondary: #d97706;
  --accent: #b91c1c;
  --bg-dark: #0a1210;
  --bg-light: rgba(6, 95, 70, 0.1);
  --text-main: #f8fafc;
  --text-muted: rgba(248, 250, 252, 0.65);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif SC', serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

#main-header {
  transition: all 0.3s ease;
}

#main-header.scrolled {
  background: rgba(10, 18, 16, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(6, 95, 70, 0.3);
}

.nav-link {
  position: relative;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(6, 95, 70, 0.4);
}

.btn-ink::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-ink:hover::before {
  left: 100%;
}

.btn-ink:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(6, 95, 70, 0.6);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.mobile-nav {
  background: linear-gradient(180deg, #0f1f1b 0%, #0a1210 100%);
  border-left: 2px solid var(--primary);
}

.mobile-nav nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--text-main);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.mobile-nav nav a:hover,
.mobile-nav nav a.active {
  background: rgba(6, 95, 70, 0.2);
  color: var(--secondary);
}

.page-banner {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0f2e25 0%, var(--bg-dark) 70%);
  padding-top: 5rem;
}

.banner-ink {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(6, 95, 70, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(185, 28, 28, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(217, 119, 6, 0.1) 0%, transparent 50%);
  animation: inkSpread 8s ease-in-out infinite alternate;
}

@keyframes inkSpread {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.banner-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.banner-seal {
  display: inline-block;
  width: 52px;
  height: 52px;
  line-height: 48px;
  border: 3px solid var(--accent);
  color: var(--accent);
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.4rem;
  border-radius: 6px;
  transform: rotate(-8deg);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.3);
}

.banner-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--text-main);
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.banner-desc {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(217, 119, 6, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.section-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.seal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  font-size: 1.3rem;
  border-radius: 6px;
  transform: rotate(-6deg);
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 600px;
  margin: 1rem auto 0;
}

.section-articles {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1c18 100%);
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.token-card {
  display: flex;
  gap: 1.25rem;
  background: rgba(6, 95, 70, 0.08);
  border: 1px solid rgba(6, 95, 70, 0.25);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.token-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary);
  transform: scaleY(0);
  transition: transform 0.35s ease;
}

.token-card:hover {
  transform: translateX(8px);
  border-color: var(--secondary);
  box-shadow: 0 12px 30px rgba(6, 95, 70, 0.2);
}

.token-card:hover::before {
  transform: scaleY(1);
}

.token-shape {
  position: relative;
  width: 72px;
  height: 120px;
  background: linear-gradient(145deg, #92400e 0%, var(--secondary) 50%, #92400e 100%);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.token-hole {
  width: 16px;
  height: 16px;
  background: var(--bg-dark);
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.token-icon {
  color: white;
  font-size: 1.5rem;
}

.token-body {
  flex: 1;
}

.token-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.token-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.token-tag {
  padding: 0.15rem 0.5rem;
  background: rgba(185, 28, 28, 0.15);
  color: var(--accent);
  border-radius: 9999px;
  font-size: 0.75rem;
}

.token-body h3 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.token-card:hover .token-body h3 {
  color: var(--secondary);
}

.token-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.token-link {
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.token-link:hover {
  color: #fbbf24;
  transform: translateX(4px);
}

.download-cta {
  margin-top: 3rem;
  text-align: center;
}

.footer-ink {
  position: relative;
  background: linear-gradient(180deg, #0d1c18 0%, #050a09 100%);
  padding: 4rem 0 2rem;
  overflow: hidden;
}

.footer-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer-clouds span {
  position: absolute;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  filter: blur(30px);
  animation: footerCloud 15s linear infinite;
}

.footer-clouds span:nth-child(1) { width: 200px; height: 80px; top: 20%; left: 10%; }
.footer-clouds span:nth-child(2) { width: 180px; height: 70px; top: 50%; right: 15%; animation-delay: 5s; }
.footer-clouds span:nth-child(3) { width: 220px; height: 90px; bottom: 20%; left: 40%; animation-delay: 10s; }

@keyframes footerCloud {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(30px); }
}

.footer-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(135deg, #064e3b 0%, var(--bg-dark) 100%);
  clip-path: polygon(0% 100%, 0% 70%, 20% 50%, 40% 75%, 60% 45%, 80% 70%, 100% 55%, 100% 100%);
  opacity: 0.25;
}

.footer-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand img {
  width: 48px;
  height: auto;
}

.footer-brand span {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.6rem;
  color: var(--text-main);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-copy {
  color: rgba(248, 250, 252, 0.4);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .section {
    padding: 3.5rem 0;
  }

  .token-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .token-shape {
    width: 100%;
    height: 64px;
    flex-direction: row;
    gap: 0.75rem;
  }

  .token-hole {
    margin-bottom: 0;
  }

  .token-meta {
    justify-content: center;
  }
}

.section-contact {
  background: var(--bg-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.qr-card {
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
}

.qr-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
}

.qr-img {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  padding: 0.5rem;
  background: white;
  border: 2px solid var(--secondary);
}

.qr-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-card h3 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.qr-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.btn-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #92400e 0%, var(--secondary) 50%, #92400e 100%);
  color: white;
  border: 2px solid #fbbf24;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4), inset 0 2px 4px rgba(255,255,255,0.2);
}

.btn-token:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6), inset 0 2px 4px rgba(255,255,255,0.3);
  border-color: #fde68a;
}
