/* Tokenim 官网 - 紧凑版 */
:root {
  --bg-primary: #0f1419;
  --bg-secondary: #1a2230;
  --bg-card: #1e2a38;
  --text-primary: #e8edf4;
  --text-secondary: #8b9aad;
  --accent: #ff6b4a;
  --accent-dim: rgba(255, 107, 74, 0.2);
  --accent-glow: rgba(255, 107, 74, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Noto Sans SC', 'Outfit', sans-serif;
  --section-padding: 2rem 0.75rem;
  --content-max: min(1280px, 98%);
  --side-gap: 0.75rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1320px;
  width: 98%;
  margin: 0 auto;
  padding: 0 var(--side-gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s, transform 0.2s;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.btn-download {
  padding: 0.5rem 1.2rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6rem 1.25rem 2.5rem;
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.6) 0%, rgba(15, 20, 25, 0.88) 100%);
}

.hero-inner {
  max-width: 600px;
  margin: 0 var(--side-gap);
}

.hero-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-primary {
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

/* Section icon */
.section-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.4rem;
}

h2 .section-icon {
  filter: invert(55%) sepia(90%) saturate(1200%) hue-rotate(350deg) brightness(1.05);
}

.inline-icon {
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: middle;
  margin-right: 0.35rem;
  opacity: 0.85;
}

/* App Showcase */
.app-showcase {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.showcase-inner {
  max-width: 1320px;
  width: 98%;
  margin: 0 auto;
  padding: 0 var(--side-gap);
}

.app-showcase h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.app-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.app-carousel::-webkit-scrollbar {
  height: 6px;
}

.app-carousel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.carousel-img {
  flex: 0 0 auto;
  width: 42%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  scroll-snap-align: start;
  transition: transform 0.25s, box-shadow 0.25s;
}

.carousel-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Sections */
section {
  padding: var(--section-padding);
}

section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Currencies */
.currencies {
  max-width: 1320px;
  width: 98%;
  margin: 0 auto;
  padding: 0 var(--side-gap);
}

.chain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.chain-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: default;
  border: 1px solid transparent;
}

.chain-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-dim);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.chain-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.chain-note {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.chain-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
}

/* Products */
.products {
  max-width: 1320px;
  width: 98%;
  margin: 0 auto;
  padding: 0 var(--side-gap);
  background: var(--bg-secondary);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.product-layout:last-of-type {
  margin-bottom: 0;
}

.product-layout-reverse {
  direction: rtl;
}

.product-layout-reverse > * {
  direction: ltr;
}

.product-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-content h3 + h3 {
  margin-top: 1.5rem;
}

.product-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.product-img {
  width: 70%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s;
}

.product-img:hover {
  transform: scale(1.03);
}

.product-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Security */
.security {
  max-width: 1320px;
  width: 98%;
  margin: 0 auto;
  padding: 0 var(--side-gap);
}

.security-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.security-list {
  list-style: none;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: padding-left 0.2s;
}

.security-list li:hover {
  padding-left: 4px;
}

.security-list li:last-child {
  border-bottom: none;
}

.security-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-icon img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.security-list strong {
  color: var(--text-primary);
  margin-right: 0.2rem;
}

.security-img {
  width: 75%;
  max-width: 340px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s;
}

.security-img:hover {
  transform: scale(1.02);
}

.security-visual {
  display: flex;
  justify-content: center;
}

/* Security Extra */
.security-extra {
  background: var(--bg-secondary);
}

.security-extra-inner {
  max-width: 1320px;
  width: 98%;
  margin: 0 auto;
  padding: 0 var(--side-gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.extra-img {
  width: 75%;
  max-width: 380px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s;
}

.extra-img:hover {
  transform: scale(1.02);
}

.extra-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.extra-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Benefits */
.benefits {
  max-width: 1320px;
  width: 98%;
  margin: 0 auto;
  padding: 0 var(--side-gap);
}

.benefit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit-block {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.benefit-block:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.benefit-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.benefit-block p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.benefit-detail {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* Brand Intro */
.brand-intro {
  background: var(--bg-secondary);
}

.brand-inner {
  max-width: 1320px;
  width: 98%;
  margin: 0 auto;
  padding: 0 var(--side-gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.brand-img {
  width: 60%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s;
}

.brand-img:hover {
  transform: scale(1.02);
}

.brand-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 0.75rem;
}

/* Guide */
.guide {
  max-width: 1320px;
  width: 98%;
  margin: 0 auto;
  padding: 0 var(--side-gap);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.step {
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  transition: transform 0.25s, box-shadow 0.25s;
}

.step:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.step-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.guide-visual {
  display: flex;
  justify-content: center;
}

.guide-img {
  width: 65%;
  max-width: 420px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s;
}

.guide-img:hover {
  transform: scale(1.02);
}

/* FAQ */
.faq {
  max-width: 1320px;
  width: 98%;
  margin: 0 auto;
  padding: 0 var(--side-gap);
  background: var(--bg-secondary);
}

.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.faq-glossary {
  position: sticky;
  top: 100px;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.faq-glossary h3 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.faq-glossary dl {
  margin: 0;
}

.faq-glossary dt {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.75rem;
}

.faq-glossary dt:first-child {
  margin-top: 0;
}

.faq-glossary dd {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0.2rem 0 0 0;
  line-height: 1.4;
}

.faq-list {
  margin-top: 1.25rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.faq-item:hover {
  background: rgba(255,255,255,0.02);
}

.faq-q {
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.faq-item.active .faq-q::after {
  transform: rotate(45deg);
}

.faq-q:hover {
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-a {
  max-height: 600px;
}

.faq-a p {
  padding: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Download */
.download {
  text-align: center;
}

.download-inner {
  max-width: 1320px;
  width: 98%;
  margin: 0 auto;
  padding: 0 var(--side-gap);
}

.download-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.download-btn .btn-icon {
  width: 18px;
  height: 18px;
  opacity: 0.95;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
  background: #ff7a5c;
}

/* Footer */
.site-footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1320px;
  width: 98%;
  margin: 0 auto;
  padding: 0 var(--side-gap);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.footer-brand p {
  flex-basis: 100%;
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Ripple effect */
@keyframes ripple {
  to {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

/* Lazy load */
img[loading="lazy"] {
  background: var(--bg-card);
}

/* Responsive */
@media (max-width: 1024px) {
  .product-layout,
  .product-layout-reverse,
  .security-inner,
  .security-extra-inner,
  .brand-inner {
    grid-template-columns: 1fr;
  }

  .faq-wrap {
    grid-template-columns: 1fr;
  }

  .faq-glossary {
    position: static;
  }

  .product-layout-reverse {
    direction: ltr;
  }

  .product-img,
  .security-img,
  .extra-img,
  .brand-img {
    width: 85%;
    max-width: none;
  }

  .benefit-row,
  .guide-steps {
    grid-template-columns: 1fr;
  }

  .carousel-img {
    width: 70%;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 1.75rem 0.75rem;
  }

  .main-nav {
    display: none;
  }

  .logo-img {
    width: 26px;
    height: 26px;
  }

  .hero-overlay {
    padding: 5rem 0.75rem 2rem;
  }

  .carousel-img {
    width: 80%;
    max-width: 200px;
  }
}
