@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;800&family=Inter:wght@400;500;600;700&display=swap");

/* ===================================================
   VStock Unified Dark Theme — Sub-pages
   Matches landing.css homepage design language
   =================================================== */

:root {
  --bg-base: #050505;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-elevated: rgba(255, 255, 255, 0.06);
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent-gold: rgba(245, 158, 11, 0.7);
  --accent-blue: rgba(59, 130, 246, 0.7);
  --accent-green: rgba(16, 185, 129, 0.7);
  --accent-red: rgba(239, 68, 68, 0.7);
  --font-display: "Inter", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.25);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text-primary);
  font-family: var(--font-body);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: rgba(245, 158, 11, 1);
}

/* ===== Page Shell ===== */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ===== Page Header / Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(245, 158, 11, 0.12) 30%,
    rgba(245, 158, 11, 0.06) 50%,
    rgba(245, 158, 11, 0.12) 70%,
    transparent
  );
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 640px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===== Navigation (shared with landing) ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  background: rgba(8, 8, 10, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(245, 158, 11, 0.15) 30%,
    rgba(245, 158, 11, 0.08) 50%,
    rgba(245, 158, 11, 0.15) 70%,
    transparent
  );
}

.nav-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 60%, rgba(245, 158, 11, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: rgba(245, 158, 11, 0.6);
  transition: width 0.25s ease, left 0.25s ease;
  border-radius: 1px;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

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

/* ===== Content Area ===== */
.content {
  margin-top: 0;
  display: grid;
  gap: 16px;
}

/* ===== Cards ===== */
.card {
  padding: 28px 32px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: border-color var(--transition-smooth);
}

.card:hover {
  border-color: var(--border-strong);
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.card p,
.card li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.card ol,
.card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.card li {
  margin-top: 6px;
}

.card li::marker {
  color: var(--text-tertiary);
}

.card a {
  text-decoration: underline;
  text-decoration-color: rgba(245, 158, 11, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-smooth), color var(--transition-smooth);
}

.card a:hover {
  text-decoration-color: rgba(245, 158, 11, 0.8);
}

/* English section variant */
.card.english {
  border-color: rgba(59, 130, 246, 0.12);
  background: rgba(59, 130, 246, 0.03);
}

.card.english h2 {
  color: rgba(147, 197, 253, 0.9);
  font-size: 1.1rem;
}

.card.english p,
.card.english li {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

/* ===== Flow Path ===== */
.flow-path {
  margin: 14px 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

.flow-path strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== Tags ===== */
.dual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid;
}

.tag.brand {
  color: rgba(245, 158, 11, 0.9);
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.06);
}

.tag.safe {
  color: rgba(16, 185, 129, 0.9);
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.06);
}

.tag.risk {
  color: rgba(239, 68, 68, 0.9);
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.06);
}

/* ===== Button Styles ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  position: relative;
  color: #fff;
  border: 1.5px solid transparent;
  background-image: 
    linear-gradient(#0a0a0c, #0a0a0c), 
    linear-gradient(90deg, #3b82f6, #8b5cf6, #d946ef, #f43f5e, #f59e0b, #3b82f6);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 200% 100%;
  animation: border-flow 3s linear infinite;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

@keyframes border-flow {
  0% { background-position: 0% 0%, 0% 0%; }
  100% { background-position: 0% 0%, 200% 0%; }
}

@keyframes glow-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.btn-outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

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

.footer-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  filter: grayscale(1);
}

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

.footer-links-group a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links-group a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 4px 0;
}

.footer-bottom a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeUp 0.5s ease both;
}

.card.delay-1 { animation-delay: 0.05s; }
.card.delay-2 { animation-delay: 0.10s; }
.card.delay-3 { animation-delay: 0.15s; }
.card.delay-4 { animation-delay: 0.20s; }
.card.delay-5 { animation-delay: 0.25s; }
.card.delay-6 { animation-delay: 0.30s; }
.card.delay-7 { animation-delay: 0.35s; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .page-shell {
    padding: 0 16px 48px;
  }

  .hero {
    padding: 100px 0 32px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .card {
    padding: 20px;
    border-radius: 12px;
  }

  .card h2 {
    font-size: 1.05rem;
  }

  .nav-links {
    display: none;
  }

  .site-nav {
    padding: 0 16px;
  }

  .flow-path {
    font-size: 0.8rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }
}

/* QR Code Download Modal */
.qr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qr-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.qr-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
}

.qr-modal-overlay.is-open .qr-modal-card {
  transform: scale(1) translateY(0);
}

.qr-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  padding: 4px;
}

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

.qr-modal-header {
  margin-bottom: 28px;
}

.qr-modal-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.qr-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-primary);
}

.qr-modal-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.qr-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qr-code-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  display: inline-block;
}

.qr-code-img {
  width: 200px;
  height: 200px;
  display: block;
  image-rendering: pixelated;
}

.qr-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .qr-modal-card {
    padding: 32px 24px;
  }
  .qr-code-img {
    width: 180px;
    height: 180px;
  }
}
