/* ============================================================
   CoinInsight WordPress Theme — Main Styles
   ============================================================ */

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-ink: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-primary: #10b981;
  --color-primary-dark: #059669;
  --color-up: #22c55e;
  --color-down: #ef4444;
  --color-btc: #f7931a;
  --color-eth: #627eea;
  --color-bnb: #f0b90b;
  --color-sol: #14f195;
  --color-xrp: #23292f;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.08);
  --container: 1320px;
  --header-h: 68px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

/* Utilities */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.up { color: var(--color-up); }
.down { color: var(--color-down); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: #f3f4f6; }
.btn-dark {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}
.btn-dark:hover { background: #000; border-color: #000; }
.btn-white {
  background: #fff;
  color: var(--color-primary-dark);
}
.btn-white:hover { background: #f0fdf4; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: #ecfdf5; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-muted);
  transition: color 0.15s ease;
}
.link-more:hover { color: var(--color-primary); }
.link-more svg { transition: transform 0.15s ease; }
.link-more:hover svg { transform: translateX(2px); }

.section { padding: 48px 0; }

.panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.panel-header h3 { font-size: 18px; font-weight: 700; }

.news-panel .panel-header { flex-wrap: nowrap; }
.news-panel .panel-header h3 { font-size: 16px; white-space: nowrap; flex-shrink: 0; }
.news-panel .tab-nav { gap: 6px; }
.news-panel .tab-nav a { padding: 4px 10px; font-size: 12px; }

.tab-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-muted);
  white-space: nowrap;
  transition: all 0.15s ease;
}
.tab-nav a:hover { color: var(--color-ink); background: #f3f4f6; }
.tab-nav a.active { background: var(--color-ink); color: #fff; }
.tab-nav.small { gap: 3px; }
.tab-nav.small a { padding: 2px 7px; font-size: 11px; }

.coin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.coin-badge.btc { background: linear-gradient(135deg, #ffb347, #f7931a 55%, #d97706); }
.coin-badge.eth { background: linear-gradient(135deg, #8ba0f0, #627eea 55%, #4a5fd0); }
.coin-badge.bnb { background: linear-gradient(135deg, #ffd75e, #f0b90b 55%, #d69e06); color: #4a3a00; }
.coin-badge.sol { background: linear-gradient(135deg, #3f3f46, #18181b 60%, #000); color: #fff; }
.coin-badge.xrp { background: linear-gradient(135deg, #3d454d, #23292f 60%, #0f1215); color: #fff; }
.coin-badge.usdt { background: linear-gradient(135deg, #4fd1a5, #26a17b 60%, #1a7a5c); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,0.6);
}
.header-top { height: var(--header-h); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
  flex-shrink: 0;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-logo { color: var(--color-primary); }
.brand-text { font-size: 20px; font-weight: 800; letter-spacing: 0; }
.brand-tagline {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 3px;
  white-space: nowrap;
}

.primary-nav {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.primary-nav::-webkit-scrollbar { display: none; }
.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px;
  min-width: max-content;
}
.nav-list a {
  display: block;
  position: relative;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: all 0.15s ease;
}
.nav-list a:hover {
  color: var(--color-primary);
  background: transparent;
}
.nav-list .current-menu-item a,
.nav-list .current_page_item a {
  color: var(--color-primary);
  background: transparent;
  font-weight: 600;
}
.nav-list .current-menu-item a::after,
.nav-list .current_page_item a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search input {
  width: 220px;
  height: 42px;
  padding: 0 64px 0 44px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--color-ink);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.header-search input::placeholder { color: #9ca3af; }
.header-search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 2px 14px rgba(16, 185, 129, 0.14);
}
.header-search .search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: #9ca3af;
  pointer-events: none;
}
.header-search button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, background 0.18s ease;
}
.header-search input:focus ~ button,
.header-search button:focus {
  opacity: 1;
  pointer-events: auto;
}
.header-search button:hover { background: var(--color-primary-dark); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--color-muted);
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  padding: 6px;
}
.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.mobile-menu-toggle span:nth-child(1) { width: 22px; }
.mobile-menu-toggle span:nth-child(2) { width: 16px; }
.mobile-menu-toggle span:nth-child(3) { width: 22px; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

.mobile-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}
.mobile-menu.is-open { display: block; }
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-list a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: var(--radius-md);
}
.mobile-nav-list a:hover { background: #f3f4f6; }
.mobile-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.mobile-actions .btn { flex: 1; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #022c22 0%, #064e3b 45%, #0f172a 100%);
  color: #fff;
  padding: 72px 0 88px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.earth-orbit {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 680px;
  height: 680px;
}
.earth {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(16,185,129,0.35), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(59,130,246,0.25), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(6,78,59,0.9), rgba(2,44,34,1));
  box-shadow: inset -40px -40px 80px rgba(0,0,0,0.5), 0 0 80px rgba(16,185,129,0.15);
}
.earth::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255,255,255,0.04) 20px),
    repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255,255,255,0.04) 20px);
  mask-image: radial-gradient(circle at 35% 35%, #000 0%, transparent 70%);
}
.earth-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.12), transparent 70%);
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,0.5), transparent);
  background-size: 300px 300px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}
.hero-title span {
  display: block;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-title small {
  display: block;
  margin-top: 14px;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}
.hero-subtitle {
  margin-top: 24px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

.hero-search {
  position: relative;
  margin-top: 28px;
  max-width: 560px;
}
.hero-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
}
.hero-search input {
  width: 100%;
  height: 54px;
  padding: 0 120px 0 48px;
  border-radius: 999px;
  border: none;
  background: #fff;
  font-size: 15px;
  color: var(--color-ink);
  box-shadow: var(--shadow-md);
}
.hero-search input::placeholder { color: #9ca3af; }
.hero-search input:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-submit:hover { background: var(--color-primary-dark); }

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
}
.hot-tags-label { color: rgba(255,255,255,0.6); }
.hot-tags a {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
  transition: all 0.15s ease;
}
.hot-tags a:hover { background: rgba(255,255,255,0.2); }

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(12px);
}
.hero-card-header {
  position: relative;
  margin-bottom: 18px;
}
.hero-card-header h2 { font-size: 18px; font-weight: 700; }
.hero-card-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.hero-card-header .link-more {
  position: absolute;
  right: 0;
  top: 0;
  color: rgba(255,255,255,0.7);
}
.hero-card-header .link-more:hover { color: #fff; }

.exchange-list { display: flex; flex-direction: column; gap: 10px; }
.exchange-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
}
.exchange-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}
.exchange-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.exchange-info { flex: 1; min-width: 0; }
.exchange-info strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exchange-info span { font-size: 12px; color: rgba(255,255,255,0.55); white-space: nowrap; }
.exchange-tag {
  position: absolute;
  right: 12px;
  top: -6px;
  background: var(--color-up);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.exchange-item .btn-sm { position: relative; z-index: 2; }

/* Ticker */
.ticker-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  position: relative;
}
.ticker-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ticker-list {
  display: flex;
  gap: 16px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.ticker-list::-webkit-scrollbar { display: none; }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 13px;
  padding: 8px 0;
}
.ticker-item .coin-badge {
  width: 26px;
  height: 26px;
  font-size: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ticker-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.25;
}
.ticker-pair { display: flex; align-items: baseline; gap: 4px; }
.ticker-pair strong { font-size: 13px; font-weight: 700; color: var(--color-ink); }
.ticker-pair small { font-size: 11px; color: var(--color-muted); }
.ticker-values { display: flex; align-items: baseline; gap: 5px; }
.ticker-price { font-size: 13px; font-weight: 700; }
.ticker-change { font-size: 12px; font-weight: 600; color: var(--color-up); }
.ticker-item.down .ticker-change { color: var(--color-down); }
.ticker-spark {
  display: inline-block;
  width: 56px;
  height: 20px;
  color: var(--color-up);
  flex-shrink: 0;
}
.ticker-item.down .ticker-spark { color: var(--color-down); }
.ticker-more {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--color-muted);
}
.ticker-more:hover { color: var(--color-primary); }

/* Featured Section */
.section-featured { padding-top: 32px; }
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
.featured-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.featured-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.featured-media { position: relative; height: 240px; overflow: hidden; }
.featured-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #bae6fd 0%, #e0f2fe 60%, #f1f5f9 100%);
}
.featured-scene { width: 100%; height: 100%; }
.btc-coin { animation: float 5s ease-in-out infinite; transform-origin: 200px 112px; }
.featured-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.featured-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: background 0.2s ease, width 0.2s ease;
}
.featured-dots span.active { background: #fff; width: 18px; border-radius: 999px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.featured-body { padding: 20px; }
.featured-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}
.featured-title a { transition: color 0.15s ease; }
.featured-title a:hover { color: var(--color-primary); }
.featured-desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.featured-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
}

.news-panel,
.widget-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  display: flex;
  gap: 12px;
  align-items: center;
}
.news-thumb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15,23,42,0.10);
}
.news-thumb svg { width: 100%; height: 100%; }
.news-body { flex: 1; min-width: 0; }
.news-body h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-body h4 a:hover { color: var(--color-primary); }
.news-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #9ca3af;
}

.right-widgets { display: flex; flex-direction: column; gap: 24px; }
.right-widgets .sectors-card { flex: 1; }
.sentiment-body { text-align: center; }
.gauge { position: relative; max-width: 220px; margin: 0 auto; }
.gauge svg { width: 100%; height: auto; }
.gauge-label {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-up);
}
.sentiment-legend {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--color-muted);
}
.sentiment-legend li { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot.red { background: #ef4444; }
.dot.orange { background: #f97316; }
.dot.yellow { background: #facc15; }
.dot.lime { background: #84cc16; }
.dot.green { background: #22c55e; }

.sectors-list { display: flex; flex-direction: column; gap: 12px; }
.sectors-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 3px 0;
}
.sectors-list .sector-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--sc);
  flex-shrink: 0;
}
.sectors-list .rank {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--color-muted);
  background: #f3f4f6;
  flex-shrink: 0;
}
.sectors-list .name { flex: 1; }
.sectors-list .change { font-weight: 700; }

/* Category Nav */
.category-nav { padding: 24px 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.category-list {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.category-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}
.category-list a:hover { background: #f9fafb; transform: translateY(-2px); }
.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--cat);
}
.category-list strong {
  font-size: 14px;
  color: var(--color-ink);
  white-space: nowrap;
}
.category-list span {
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
}

/* Markets Section */
.section-markets { padding-top: 24px; }
.markets-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.4fr;
  gap: 24px;
  align-items: start;
}
.market-table-wrap { overflow-x: auto; border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.market-table { min-width: 640px; }
.market-table th,
.market-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}
.market-table th { color: var(--color-muted); font-weight: 500; background: #f9fafb; }
.market-table tr:last-child td { border-bottom: none; }
.market-table td { vertical-align: middle; }
.market-table td:first-child { color: var(--color-muted); }
.market-table small {
  display: inline-block;
  margin-left: 6px;
  color: var(--color-muted);
  font-size: 12px;
}
.mini-spark {
  display: inline-block;
  width: 80px;
  height: 24px;
  color: var(--color-up);
}

.market-side { display: flex; flex-direction: column; gap: 24px; }
.contract-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.contract-stat {
  background: #f9fafb;
  border-radius: var(--radius-md);
  padding: 14px;
}
.contract-stat .label {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.contract-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contract-stat .sub {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}
.contract-chart {
  background: #f9fafb;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.bar-group {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 120px;
}
.bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  min-height: 8px;
}
.bar.red { background: var(--color-down); }
.bar.green { background: var(--color-up); }
.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: #9ca3af;
}
.contract-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 16px;
}
.contract-legend i { margin-right: 4px; }
.whale-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 14px;
}
.whale-link span { font-size: 12px; color: var(--color-muted); font-weight: 400; }

.topics-list { display: flex; flex-direction: column; gap: 10px; }
.topic {
  display: block;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #f9fafb;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.topic:hover { transform: translateY(-2px); }
.topic::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.topic-green::before { background: var(--color-up); }
.topic-orange::before { background: #f97316; }
.topic-blue::before { background: #3b82f6; }
.topic-purple::before { background: #8b5cf6; }
.topic-yellow::before { background: #eab308; }
.topic-text {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Exchange Recommendations */
.section-exchanges { padding-top: 24px; }
.exchange-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.exchange-rec {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.exchange-rec:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.exchange-rec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.exchange-rec-head .exchange-icon { width: 44px; height: 44px; font-size: 18px; }
.exchange-rec-head strong { display: block; font-size: 15px; }
.exchange-rec-head span { font-size: 12px; color: var(--color-muted); }
.exchange-rec-score {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  margin-bottom: 14px;
}
.exchange-rec-score .score { font-weight: 700; color: var(--color-ink); }
.exchange-rec .btn-sm { width: 100%; }
.exchange-rec .exchange-tag {
  top: 16px;
  right: 16px;
}

/* Learn Section */
.section-learn { padding-top: 24px; }
.learn-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.learn-column {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.strategy-list { display: flex; flex-direction: column; gap: 14px; }
.strategy-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.strategy-list li:last-child { padding-bottom: 0; border-bottom: none; }
.strategy-thumb { width: 80px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.strategy-thumb svg { width: 100%; height: 100%; }
.strategy-body { flex: 1; min-width: 0; }
.strategy-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.strategy-body h4 a:hover { color: var(--color-primary); }
.strategy-body p { font-size: 13px; color: var(--color-muted); }
.strategy-reads { font-size: 12px; color: #9ca3af; white-space: nowrap; }

.academy-list { display: flex; flex-direction: column; gap: 16px; }
.academy-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.academy-list .rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #f3f4f6;
  color: var(--color-muted);
  flex-shrink: 0;
}
.academy-list .rank-gold { background: #fef3c7; color: #b45309; }
.academy-list .rank-silver { background: #e5e7eb; color: #4b5563; }
.academy-list .rank-bronze { background: #ffedd5; color: #9a3412; }
.academy-body { flex: 1; min-width: 0; }
.academy-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.academy-body h4 a:hover { color: var(--color-primary); }
.academy-body p { font-size: 13px; color: var(--color-muted); }
.academy-reads { font-size: 12px; color: #9ca3af; white-space: nowrap; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  color: #fff;
  padding: 48px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-left { display: flex; align-items: center; gap: 16px; }
.cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.cta-copy h2 { font-size: 22px; font-weight: 700; }
.cta-copy p { font-size: 14px; color: rgba(255,255,255,0.7); }
.cta-stats {
  display: flex;
  gap: 40px;
}
.cta-stat { text-align: center; }
.cta-stat strong { display: block; font-size: 26px; font-weight: 800; }
.cta-stat span { font-size: 13px; color: rgba(255,255,255,0.65); }

/* Footer */
.site-footer { background: #0f172a; color: rgba(255,255,255,0.75); padding-top: 40px; }
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand-text { font-size: 22px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 8px; }
.footer-links .footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  max-width: 400px;
}
.footer-menu a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s ease;
}
.footer-menu a:hover { color: #fff; }
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a {
  color: rgba(255,255,255,0.6);
  transition: color 0.15s ease;
}
.footer-social a:hover { color: #fff; }
.footer-social .lang-switch { color: rgba(255,255,255,0.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .right-widgets { grid-column: 1 / -1; flex-direction: row; }
  .sentiment-card, .sectors-card { flex: 1; }
  .markets-grid { grid-template-columns: 1fr; }
  .market-side { display: grid; grid-template-columns: 1fr 1fr; }
  .exchange-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1440px) {
  .header-search input { width: 180px; }
  .nav-list a { padding: 8px 9px; font-size: 14px; }
  .nav-list .current-menu-item a::after,
  .nav-list .current_page_item a::after { left: 9px; right: 9px; }
}
@media (max-width: 1280px) {
  .header-search input { width: 150px; }
}

@media (max-width: 1200px) {
  .primary-nav, .header-actions .lang-switch, .header-search { display: none; }
  .mobile-menu-toggle { display: flex; }
  .header-actions .btn-dark { display: none; }
  .earth-orbit { width: 500px; height: 500px; right: -20%; opacity: 0.7; }
  .category-list { grid-template-columns: repeat(4, 1fr); }
  .learn-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-wrap: wrap; }
  .cta-stats { gap: 24px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header-actions .btn-primary { padding: 7px 14px; font-size: 13px; }
  .hero { padding: 48px 0 64px; }
  .hero-card { max-width: 100%; }
  .hero-search input { padding-right: 110px; height: 50px; }
  .ticker-bar .container { flex-wrap: wrap; }
  .ticker-more { margin-left: auto; }
  .featured-grid { grid-template-columns: 1fr; }
  .right-widgets { flex-direction: column; }
  .category-list { grid-template-columns: repeat(2, 1fr); }
  .category-list span { display: none; }
  .market-side { grid-template-columns: 1fr; }
  .exchange-grid { grid-template-columns: 1fr; }
  .cta-left { width: 100%; }
  .cta-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
  }
  .cta-stat { text-align: left; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .brand-tagline { display: none; }
  .brand-text { font-size: 18px; }
  .hero-title span { font-size: 28px; }
  .hero-title small { font-size: 16px; }
  .hot-tags a { padding: 4px 10px; font-size: 12px; }
  .exchange-item { flex-wrap: wrap; }
  .exchange-item .btn-sm { margin-left: auto; }
  .news-body h4 { white-space: normal; }
  .tab-nav { flex-wrap: wrap; }
  .panel-header { flex-wrap: wrap; }
  .tab-nav.small { margin-left: 0; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
