/* OKNC 国学趣味DApp Shared Styles */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255,255,255,0.02);
  --border-card: rgba(255,255,255,0.06);
  --accent-gold: #d4a853;
  --accent-gold-light: #e8b84b;
  --accent-green: #4caf50;
  --accent-red: #cc3333;
  --text-primary: #e8e8e8;
  --text-secondary: #999;
  --text-muted: #666;
  --danger: #f44336;
  --warning: #ff9800;
}

/* Decorative background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/gx/images/gx-cloud-pattern.svg') repeat;
  pointer-events: none;
  z-index: -1;
}

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

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }

/* Header */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-card);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo .subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}
.lang-toggle {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}
.lang-toggle:hover {
  background: var(--accent-gold);
  color: #000;
}

/* Hero Section with banner */
.hero-section {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}
.hero-banner {
  width: 100%;
  display: block;
  border-radius: 16px;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.hero-overlay h1 {
  font-size: 38px;
  color: #f0d878;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 0 40px rgba(212,168,83,0.3);
  margin-bottom: 8px;
}
.hero-overlay p {
  color: rgba(232,232,232,0.8);
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
  font-size: 16px;
  max-width: 500px;
}

/* Decorative section divider */
.section-divider {
  text-align: center;
  margin: 8px 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-divider img {
  height: 60px;
  max-width: 100%;
}

/* Decorative seal at footer */
.seal-container {
  text-align: center;
  margin-top: 32px;
}
.seal-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(204,51,51,0.65);
  border: 2px solid rgba(204,51,51,0.4);
  border-radius: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1;
  transform: rotate(0deg);
  box-shadow: 0 0 12px rgba(204,51,51,0.2);
}
.seal-container .seal-caption {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 2px;
}

/* Card with decorative top border */
.card-accent {
  border-top: 2px solid rgba(212,168,83,0.15);
  position: relative;
}
.card-accent::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* Crane icon decoration */
.crane-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  vertical-align: middle;
  opacity: 0.35;
  margin: 0 6px;
}

/* Frame corners for cards */
.card-framed {
  border: 1px solid var(--border-card);
  position: relative;
  padding: 28px;
}
.card-framed::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  background: url('/gx/images/gx-frame-corner.svg') top left no-repeat;
  background-size: 40px 40px;
  pointer-events: none;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s;
}
.card:hover {
  border-color: rgba(212, 168, 83, 0.3);
}
.card-gold {
  border-color: rgba(212, 168, 83, 0.3);
  background: rgba(212, 168, 83, 0.03);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #000;
}
.btn-gold:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}
.btn-outline:hover { background: rgba(212,168,83,0.1); }
.btn-green {
  background: var(--accent-green);
  color: #fff;
}
.btn-green:hover { opacity: 0.9; }
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Typography */
h1 { font-size: 32px; margin-bottom: 16px; }
h2 { font-size: 24px; margin-bottom: 14px; color: var(--accent-gold); }
h3 { font-size: 18px; margin-bottom: 10px; }
p { margin-bottom: 12px; color: var(--text-secondary); }
.gold-text { color: var(--accent-gold); }
.green-text { color: var(--accent-green); }
.text-center { text-align: center; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 14px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-gold);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { cursor: pointer; }
.form-select option { background: #111; }

/* Tags */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.tag-draft { background: rgba(255,152,0,0.15); color: var(--warning); }
.tag-published { background: rgba(76,175,80,0.15); color: var(--accent-green); }
.tag-premium { background: rgba(212,168,83,0.15); color: var(--accent-gold); }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-title { font-size: 20px; margin-bottom: 16px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: #000;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Alert Box */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-info { background: rgba(33,150,243,0.12); border: 1px solid rgba(33,150,243,0.3); color: #90caf9; }
.alert-warning { background: rgba(255,152,0,0.12); border: 1px solid rgba(255,152,0,0.3); color: #ffcc80; }
.alert-success { background: rgba(76,175,80,0.12); border: 1px solid rgba(76,175,80,0.3); color: #a5d6a7; }
.alert-danger { background: rgba(244,67,54,0.12); border: 1px solid rgba(244,67,54,0.3); color: #ef9a9a; }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-card);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-card);
  padding: 32px 0;
  margin-top: 60px;
  text-align: center;
}
.footer-text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}
.footer-text a { color: var(--accent-gold); text-decoration: none; }

/* Price Card */
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s;
}
.price-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}
.price-card.featured {
  border-color: var(--accent-gold);
  background: rgba(212,168,83,0.05);
}
.price-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 12px 0;
}
.price-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Content display */
.content-body {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
}
.content-body p { margin-bottom: 12px; }

/* Divination tools */
.divination-area {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Wallet display */
.wallet-address {
  font-family: monospace;
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
}
.wallet-balance {
  font-size: 18px;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .site-logo .subtitle { display: none; }
  .modal { padding: 20px; }
}

/* ========== Burn Notice ========== */
.burn-notice {
  background: rgba(244,67,54,0.08);
  border: 1px solid rgba(244,67,54,0.25);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--danger, #e74c3c);
  text-align: center;
}
.burn-notice .addr {
  font-family: monospace;
  background: rgba(0,0,0,0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--accent-gold, #d4a853);
}
.burn-notice strong {
  color: var(--accent-gold, #d4a853);
}
