/* 国密时代公链演示版 - UI改版 */
/* 基于 Tailwind 风格的设计系统 */

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

:root {
  /* Primary Colors - Sky Blue */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;
  
  /* Gray Scale */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Accent Colors */
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;
  
  /* Semantic Colors */
  --bg-canvas: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --bg-surface: #ffffff;
  --bg-hover: #f3f4f6;
  --bg-elevated: #ffffff;
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Fonts */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==================== Navbar ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  border-radius: var(--radius-md);
}

.brand-icon img {
  border-radius: var(--radius-sm);
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.2;
}

.brand-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
  color: var(--primary-600);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-link svg {
  flex-shrink: 0;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  margin-left: auto;
  flex-shrink: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all 0.2s;
}

/* ==================== Main Content ==================== */
.main-content {
  flex: 1;
  padding: 32px 24px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  padding: 48px 0 40px;
  text-align: center;
}

.hero-glow {
  display: none;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: var(--primary-600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary-500);
  color: #fff;
}

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

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ==================== Stats Grid ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stats-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Stats Grid 3 - Centered Layout */
.stats-grid-3 .stat-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.stats-grid-3 .stat-icon {
  width: 56px;
  height: 56px;
}

.stats-grid-3 .stat-value {
  font-size: 28px;
}

.stats-grid-3 .stat-label {
  font-size: 14px;
}

/* ==================== Section Header ==================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.link {
  color: var(--primary-600);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.link:hover {
  color: var(--primary-700);
}

/* ==================== Recent Section ==================== */
.recent-section {
  margin-top: 32px;
}

/* ==================== Block List ==================== */
.block-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.block-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.block-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  box-shadow: var(--shadow-md);
}

.block-height {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-600);
  min-width: 60px;
}

.block-hash {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  flex: 0 1 320px;
  min-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.block-txs {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: auto;
}

.block-time {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==================== Empty State ==================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.empty-state p {
  font-size: 14px;
}

.empty-state svg {
  opacity: 0.3;
}

/* ==================== Page Header ==================== */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ==================== About Page ==================== */
.about-section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.about-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  padding-top: 6px;
}

.about-card-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

/* Feature Cards */
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--primary-300);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.feature-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* Module Grid */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}

.module-item {
  background: linear-gradient(135deg, var(--primary-50), var(--accent-purple-50));
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.module-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.module-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 6px;
}

.module-desc {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

/* Step List */
.step-list {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  padding: 14px 0 14px 48px;
  border-bottom: 1px dashed var(--border);
}

.step-list li:last-child {
  border-bottom: none;
}

.step-list li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.step-list {
  counter-reset: step;
}

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

.step-list span {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Warning Section */
.warning-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1));
  border-radius: var(--radius-lg);
  padding: 24px;
  border-left: 4px solid var(--accent-orange);
}

.warning-box h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.warning-icon {
  color: var(--accent-orange);
  font-size: 20px;
}

.warning-list {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.warning-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.warning-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-red);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
}

/* ==================== Tech Page ==================== */
/* 核心技术特点列表 */
.tech-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.tech-feature-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.tech-feature-item:hover {
  border-color: var(--primary-300);
  transform: translateY(-1px);
}

.tech-feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.tech-feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 核心技术指标 */
.tech-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.tech-metric-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.tech-metric-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.tech-metric-value {
  font-size: 28px;
  font-weight: 800;
  color: #0ea5e9;
  line-height: 1.2;
}

.tech-metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

/* 分层技术架构 */
.tech-arch-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-arch-layer {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.tech-arch-label {
  min-width: 80px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  text-align: center;
  line-height: 1.3;
}

.tech-arch-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  align-items: center;
}

.tech-arch-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* 八大核心模块 */
.tech-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tech-module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.tech-module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tech-module-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--module-color);
  border-radius: 4px 0 0 4px;
}

.tech-module-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.tech-module-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.tech-module-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-module-card li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.tech-module-card li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--module-color);
  font-weight: 700;
}

/* 工程质量保障 */
.tech-quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.tech-quality-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.tech-quality-icon {
  font-size: 20px;
}

.tech-quality-item span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* 多语言 SDK 生态 */
.tech-sdk-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tech-sdk-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.tech-sdk-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tech-sdk-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

/* 运维与监控 */
.tech-ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.tech-ops-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.tech-ops-icon {
  font-size: 18px;
}

.tech-ops-item span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* 典型应用场景 */
.tech-scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.tech-scene-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.tech-scene-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.tech-scene-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.tech-scene-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tech-scene-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== Wallet Grid ==================== */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.wallet-card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.wallet-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.wallet-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.wallet-card-icon.bg-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

.wallet-card-icon.bg-secondary {
  background: linear-gradient(135deg, var(--gray-500), var(--gray-600));
}

.wallet-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.wallet-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ==================== Key Lookup ==================== */
.key-lookup-card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.key-lookup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.key-lookup-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--bg-hover);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: var(--gray-200);
  color: var(--text-primary);
}

/* ==================== Gen Result ==================== */
.gen-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gen-field {
  position: relative;
  margin-bottom: 16px;
}

.copy-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: none;
  background: var(--bg-hover);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

.gen-result-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  font-size: 14px;
  color: #92400e;
  margin-top: 16px;
}

/* ==================== Wallet Section ==================== */
.wallet-section {
  margin-top: 32px;
}

.wallet-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.wallet-section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ==================== Balance Info ==================== */
.balance-info {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-hover);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.balance-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-emerald);
  font-family: 'JetBrains Mono', monospace;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 10px;
}

.status-active {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.status-frozen {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--accent-rose);
}

.fee-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
}

.fee-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.fee-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-rose);
  font-family: 'JetBrains Mono', monospace;
}

.fee-unit {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==================== Amount Hint ==================== */
.amount-hint {
  margin-top: 8px;
  font-size: 13px;
}

.hint-error {
  color: var(--accent-rose);
}

.hint-success {
  color: var(--accent-emerald);
}

/* ==================== Wallet Actions ==================== */
.wallet-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* ==================== Wallet List ==================== */
.wallet-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

/* ==================== Transfer Card ==================== */
.transfer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: all 0.15s;
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary-400);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5L6 8L9 5' stroke='%236b7280' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.input-wrapper {
  position: relative;
}

.input-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
}

/* ==================== Gen Result ==================== */
.gen-result {
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

.gen-result-card {
  background: var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gen-result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--primary-500));
}

.gen-result-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 24px;
}

.gen-field {
  margin-bottom: 20px;
}

.gen-field:last-child {
  margin-bottom: 0;
}

.gen-field-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gen-field-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  word-break: break-all;
  padding: 12px 16px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.5;
}

.gen-field-value .val-text {
  flex: 1;
  user-select: all;
}

.gen-field-value .copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.15s;
  border-radius: var(--radius-sm);
}

.gen-field-value .copy-btn:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

/* ==================== Key Lookup ==================== */
.key-lookup {
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

.key-lookup-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* ==================== Derived Address ==================== */
.derived-addr {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--primary-600);
  word-break: break-all;
  padding: 12px 16px;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-200);
  line-height: 1.5;
}

/* ==================== TX Flow ==================== */
.tx-flow {
  margin-top: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.tx-flow h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.flow-step.active {
  border-color: var(--primary-400);
  background: var(--primary-50);
}

.flow-step.done {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.05);
}

.flow-step-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
}

.flow-step.active .flow-step-icon {
  border-color: var(--primary-500);
  color: var(--primary-600);
  background: var(--primary-100);
}

.flow-step.done .flow-step-icon {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
}

.flow-step-text {
  flex: 1;
}

.flow-step-text strong {
  color: var(--text-primary);
  font-size: 14px;
}

.flow-step-text span {
  color: var(--text-secondary);
  font-size: 13px;
}

.flow-step-check {
  color: var(--accent-emerald);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.flow-step.done .flow-step-check {
  opacity: 1;
}

/* ==================== Explorer Tabs ==================== */
.explorer-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tab {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}

.tab:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.tab.active {
  background: var(--primary-500);
  color: #fff;
  border-color: var(--primary-500);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ==================== Data Table ==================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--bg-hover);
}

.data-table .mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

.data-table .hash-link {
  color: var(--primary-600);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
}

.data-table .hash-link:hover {
  text-decoration: underline;
}

.data-table .addr {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.data-table .amount {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-amber);
}

/* ==================== Search ==================== */
.search-bar {
  margin-bottom: 24px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}

.search-input-wrap:focus-within {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.search-input-wrap svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  padding: 8px 20px;
  font-size: 14px;
  flex-shrink: 0;
}

.search-result {
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

.search-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-purple));
}

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

.search-card-title .icon-addr {
  color: var(--primary-500);
}

.search-card-title .icon-tx {
  color: var(--accent-amber);
}

.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-muted);
  font-size: 14px;
}

.search-block-txs {
  margin-top: 16px;
}

.search-block-tx {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.search-block-tx:last-child {
  margin-bottom: 0;
}

.search-row-value.fee {
  color: var(--error);
}

.search-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.search-row:last-child {
  border-bottom: none;
}

.search-row-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.search-row-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  text-align: right;
  word-break: break-all;
}

.search-row-value.highlight {
  color: var(--accent-amber);
  font-weight: 600;
}

.search-not-found {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.search-tx-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.search-tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  flex-wrap: wrap;
}

.search-tx-id {
  color: var(--primary-600);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 120px;
}

.search-tx-addr {
  color: var(--text-secondary);
  word-break: break-all;
  flex: 1;
  min-width: 100px;
}

.search-tx-addr.search-addr-hl {
  color: var(--primary-600);
  font-weight: 600;
}

.search-tx-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-tx-amount {
  color: var(--accent-amber);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-tx-block {
  color: var(--primary-600);
  cursor: pointer;
  flex-shrink: 0;
  font-weight: 500;
}

.search-tx-block:hover {
  text-decoration: underline;
}

/* ==================== Pagination ==================== */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.15s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.page-btn.active {
  background: var(--primary-500);
  color: #fff;
  border-color: var(--primary-500);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-ellipsis {
  color: var(--text-muted);
  padding: 0 4px;
}

.page-info {
  color: var(--text-muted);
  font-size: 14px;
  margin-left: 8px;
}

/* ==================== Modal ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

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

.modal {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

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

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(80vh - 70px);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.detail-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  text-align: right;
  word-break: break-all;
}

.detail-tx {
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.detail-tx:last-child {
  margin-bottom: 0;
}

.detail-tx-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  gap: 12px;
}

.detail-tx-item .label {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.detail-tx-item .value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-all;
}

/* ==================== Install Page ==================== */
.install-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  box-shadow: var(--shadow-sm);
}

.install-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.step-badge {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-500);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.install-step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.install-hint {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.install-result {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

.install-loading {
  color: var(--text-secondary);
  font-size: 14px;
}

.install-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.install-error {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
}

.install-success-icon,
.install-error-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

/* ==================== Toast ==================== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease;
  max-width: 320px;
}

.toast.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.toast.error {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
}

.toast.info {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-600);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==================== Footer ==================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

.footer-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-section li {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s;
}

.footer-section li:hover {
  color: var(--primary-600);
}

.footer-section li a {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
}

.footer-section li a:hover {
  color: var(--primary-600);
}

/* 页脚刷新文字 */
.footer-refresh-text {
  cursor: pointer;
  transition: color 0.2s;
}

.footer-refresh-text.on {
  color: #10b981; /* 绿色 */
}

.footer-refresh-text.on:hover {
  color: #059669;
}

.footer-refresh-text.off {
  color: #94a3b8; /* 灰色 */
}

.footer-refresh-text.off:hover {
  color: #64748b;
}

.footer-link-disabled {
  cursor: not-allowed;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-link-disabled:hover {
  color: #64748b;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==================== About Summary Page ==================== */
/* 帮助卡片 */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.help-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all 0.3s ease;
}

.help-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-200);
}

.help-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.help-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.help-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 技术卡片 */
.tech-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-200);
}

.tech-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tech-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.05));
}

.tech-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.tech-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.tech-summary {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.03));
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-xl);
}

.tech-summary h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.tech-summary p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 8px;
  }
  
  .nav-link {
    padding: 12px 16px;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu-btn.open span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.open span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .stats-grid,
  .stats-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .hero {
    padding: 32px 0 24px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .main-content {
    padding: 24px 16px;
  }
  
  .transfer-card,
  .install-card {
    padding: 24px;
  }
  
  .block-item {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .block-hash {
    order: 3;
    width: 100%;
    flex: none;
  }
  
  .data-table th,
  .data-table td {
    padding: 12px 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 320px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .wallet-actions {
    flex-direction: column;
  }
  
  .wallet-actions .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== Reward Page ==================== */
.reward-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
}

.reward-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.reward-icon {
  flex-shrink: 0;
}

.reward-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.reward-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.reward-status {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-hover);
  border-radius: var(--radius-lg);
}

.reward-status.claimed {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.reward-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.reward-status.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.reward-result {
  margin-top: 24px;
  padding: 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
}

.reward-result h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.reward-result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reward-result-item:last-child {
  border-bottom: none;
}

.reward-result-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.reward-result-value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.reward-result-value.tx-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--primary-400);
}

.security-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.security-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.security-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 8px;
}

.security-content ul {
  margin: 0;
  padding-left: 20px;
}

.security-content li {
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
  margin-bottom: 4px;
}

.security-content li:last-child {
  margin-bottom: 0;
}