/* ==========================================================================
   Noverexa Shop — Vercel / Supabase Starter Design System
   Inspired by: vercel/nextjs-subscription-payments (Tailwind + Zinc + Black)
   ========================================================================== */

:root {
  --bg-black: #000000;
  --bg-zinc-950: #09090b;
  --bg-zinc-900: #18181b;
  --bg-zinc-800: #27272a;
  --bg-zinc-700: #3f3f46;
  
  --border-zinc-800: #27272a;
  --border-zinc-700: #3f3f46;
  --border-highlight: #52525b;

  --text-white: #ffffff;
  --text-zinc-100: #f4f4f5;
  --text-zinc-200: #e4e4e7;
  --text-zinc-400: #a1a1aa;
  --text-zinc-500: #71717a;

  --accent-blue: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
  background-color: var(--bg-black);
  color: var(--text-zinc-200);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 顶部吸顶导航栏 */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-zinc-800);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-white);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-badge {
  background: var(--bg-zinc-800);
  border: 1px solid var(--border-zinc-700);
  color: var(--text-zinc-400);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 9999px;
}

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

.nav-btn {
  background: transparent;
  border: 1px solid var(--border-zinc-800);
  color: var(--text-zinc-300);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover {
  background: var(--bg-zinc-900);
  border-color: var(--border-zinc-700);
  color: var(--text-white);
}

.nav-btn-highlight {
  background: var(--text-white);
  color: var(--bg-black);
  border-color: var(--text-white);
  font-weight: 600;
}

.nav-btn-highlight:hover {
  background: #e4e4e7;
  color: var(--bg-black);
}

/* 主内容容器 */
.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Hero 标题区 */
.hero-section {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--bg-zinc-900);
  border: 1px solid var(--border-zinc-800);
  font-size: 12px;
  color: var(--text-zinc-400);
  margin-bottom: 20px;
}

.hero-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-title span {
  background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-zinc-400);
  line-height: 1.6;
}

/* 核心自助兑换交互台 */
.redeem-card-hero {
  background: var(--bg-zinc-900);
  border: 1px solid var(--border-zinc-800);
  border-radius: 12px;
  padding: 28px;
  max-width: 680px;
  margin: 0 auto 64px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.redeem-card-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.redeem-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.redeem-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-white);
}

.redeem-form-grid {
  display: grid;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-zinc-300);
}

.form-input {
  background: var(--bg-black);
  border: 1px solid var(--border-zinc-800);
  color: var(--text-white);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--text-zinc-400);
}

.form-input::placeholder {
  color: var(--text-zinc-500);
}

.btn-primary {
  background: var(--text-white);
  color: var(--bg-black);
  border: 1px solid var(--text-white);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover:not(:disabled) {
  background: #e4e4e7;
  border-color: #e4e4e7;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Vercel Pricing 网格 */
.pricing-section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 36px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: var(--bg-zinc-900);
  border: 1px solid var(--border-zinc-800);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: var(--border-zinc-700);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 12px 30px rgba(0,0,0,0.4);
}

.card-tag {
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--text-white);
  color: var(--bg-black);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-zinc-400);
  min-height: 40px;
  margin-bottom: 20px;
}

.card-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.card-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-zinc-400);
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-zinc-800);
}

.card-features li {
  font-size: 13px;
  color: var(--text-zinc-300);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-features li svg {
  color: var(--text-zinc-400);
  flex-shrink: 0;
}

.btn-secondary {
  background: var(--bg-zinc-800);
  border: 1px solid var(--border-zinc-700);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-zinc-700);
  border-color: var(--border-highlight);
}

/* 状态框 */
.status-box {
  display: none;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 14px;
  text-align: left;
}

.status-box.show { display: block; }
.status-box.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.status-box.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* 模态框/抽屉 (Dialog) */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: var(--bg-zinc-900);
  border: 1px solid var(--border-zinc-800);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  padding: 24px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-zinc-800);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-zinc-400);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

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

/* 页脚 */
.footer-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--border-zinc-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-zinc-500);
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links a {
  color: var(--text-zinc-400);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ==========================================================================
   Tutorial Hub & Service Guides Styles (Vercel Dark Theme)
   ========================================================================== */

.tutorial-hub-header {
  text-align: center;
  margin: 36px auto 28px;
  max-width: 800px;
}

.tutorial-hub-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.tutorial-hub-header p {
  font-size: 15px;
  color: var(--text-zinc-400);
  line-height: 1.6;
}

.tutorial-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-zinc-800);
}

.tutorial-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tutorial-tab-btn {
  background: var(--bg-zinc-900);
  border: 1px solid var(--border-zinc-800);
  color: var(--text-zinc-400);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tutorial-tab-btn:hover {
  color: var(--text-white);
  border-color: var(--border-zinc-700);
}

.tutorial-tab-btn.active {
  background: var(--text-white);
  color: var(--bg-black);
  border-color: var(--text-white);
  font-weight: 600;
}

.tutorial-search-input {
  background: var(--bg-zinc-950);
  border: 1px solid var(--border-zinc-800);
  color: var(--text-white);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  outline: none;
  min-width: 240px;
  font-family: inherit;
}

.tutorial-search-input:focus {
  border-color: var(--border-highlight);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.tutorial-card {
  background: var(--bg-zinc-900);
  border: 1px solid var(--border-zinc-800);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.tutorial-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.tutorial-card-header {
  margin-bottom: 14px;
}

.tutorial-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}

.tutorial-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tutorial-desc {
  font-size: 13px;
  color: var(--text-zinc-400);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tutorial-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border-zinc-800);
  border-bottom: 1px solid var(--border-zinc-800);
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-zinc-300);
}

.tutorial-link-action {
  background: var(--bg-zinc-800);
  border: 1px solid var(--border-zinc-700);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
  display: block;
}

.tutorial-link-action:hover {
  background: var(--bg-zinc-700);
  border-color: var(--border-highlight);
}

.skip {
  position: absolute;
  top: -999px;
  left: -999px;
}
