/* ============================================================
   CoinRaahi — India fintech visual style
   深色渐变 Hero · 高饱和色块 · 藏红花橙/孔雀绿点缀 · 大圆角 · emoji 图标
   ============================================================ */

:root {
  --blue:        #1F3A5F;   /* 深靛蓝 */
  --blue-dark:   #0F1F33;   /* 近黑蓝 */
  --blue-soft:   #EAF0F7;   /* 浅蓝底 */
  --saffron:     #E88A1A;   /* 藏红花橙 */
  --saffron-dark:#C9740E;
  --saffron-soft:#FDF3E5;
  --peacock:     #138A72;   /* 孔雀绿 */
  --peacock-soft:#E7F4F0;
  --ivory:       #FAF7F0;
  --card:        #FFFFFF;
  --ink:         #20242A;
  --muted:       #667085;
  --border:      #E7E1D7;

  --grad-hero:   linear-gradient(135deg, #0B1830 0%, #1F3A5F 52%, #2C5F8A 100%);
  --grad-saffron:linear-gradient(135deg, #F5A623 0%, #E88A1A 55%, #D97706 100%);
  --grad-peacock:linear-gradient(135deg, #17A98A 0%, #138A72 100%);

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(31, 58, 95, 0.06);
  --shadow-md: 0 10px 26px rgba(31, 58, 95, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--saffron-dark); }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 按钮（渐变） ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .18s ease;
}
.btn-primary {
  background: var(--grad-saffron);
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 138, 26, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(232, 138, 26, 0.42);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

/* ============ 顶部导航 ============ */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
  position: relative;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.logo .coin { color: var(--blue); }
.logo .raahi { color: var(--saffron); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--blue); background: var(--blue-soft); }
.nav-links > li > a.active { color: var(--blue); }

/* 下拉 */
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  list-style: none;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
}
.dropdown-menu a:hover { background: var(--blue-soft); color: var(--blue); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--blue);
  border-radius: 2px; display: block;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero（深色渐变 + 装饰 + 波浪） ============ */
.hero {
  background: var(--grad-hero);
  color: #fff;
  padding: 76px 0 128px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.5;
}
.hero::after {
  content: '';
  position: absolute;
  right: -150px; top: -150px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 138, 26, 0.38), transparent 64%);
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(232, 138, 26, 0.22);
  border: 1px solid rgba(232, 138, 26, 0.5);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 46px);
  max-width: 760px;
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--saffron); }
.hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 16.5px;
  max-width: 640px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* 关键数字条 */
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats .stat-num {
  font-size: 30px; font-weight: 800;
  color: var(--saffron);
  line-height: 1;
}
.hero-stats .stat-label {
  font-size: 13px; color: rgba(255, 255, 255, 0.66);
  margin-top: 6px;
}
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  width: 100%; height: 72px;
  display: block;
  z-index: 2;
}

/* ============ 区块（彩色块交替） ============ */
.section { padding: 60px 0; }
.section-tint-blue   { background: var(--blue-soft); }
.section-tint-orange { background: var(--saffron-soft); }
.section-tint-green  { background: var(--peacock-soft); }
.section-alt { background: var(--card); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h1,
.section-head h2 { font-size: clamp(23px, 3vw, 30px); }
.section-head .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--saffron-dark);
  background: var(--saffron-soft);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); margin-top: 6px; max-width: 540px; }

/* 卡片网格 + emoji 图标 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-saffron);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--blue); }
.card p { font-size: 14px; color: var(--muted); }

.card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 5px 14px rgba(31, 58, 95, 0.18);
}
.card-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon.blue   { background: var(--grad-hero); }
.card-icon.orange { background: var(--grad-saffron); }
.card-icon.green  { background: var(--grad-peacock); }

/* 交易所真实 logo */
.card-logo {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 7px;
  margin-bottom: 14px;
}
.card-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}

/* 标签 */
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--saffron-soft);
  color: var(--saffron-dark);
}
.tag-green { background: var(--peacock-soft); color: var(--peacock); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }

/* ============ 对比表格 ============ */
.table-wrap {
  overflow-x: auto;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 620px;
}
table.compare caption {
  text-align: left;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
table.compare th {
  background: var(--grad-hero);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  white-space: nowrap;
}
table.compare td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--ink);
}
table.compare td:first-child { font-weight: 600; white-space: nowrap; }
table.compare tr:nth-child(even) td { background: var(--ivory); }
table.compare .ok { color: var(--peacock); font-weight: 600; }
table.compare .warn { color: var(--saffron-dark); font-weight: 600; }
.table-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ============ Compare Exchanges 维度块 ============ */
.compare-wrap {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}
.compare-title {
  font-size: 17px;
  margin-bottom: 18px;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px 24px;
  margin-bottom: 22px;
}
.compare-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ci-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.ci-desc {
  font-size: 13px;
  color: var(--muted);
}

/* ============ 静态内容页 ============ */
.page { max-width: 780px; margin: 0 auto; padding: 56px 24px 72px; }
.page h1 { font-size: 34px; margin-bottom: 12px; }
.page h2 { font-size: 20px; margin: 32px 0 12px; }
.page p { color: var(--muted); margin-bottom: 16px; }
.page ul { color: var(--muted); margin: 0 0 16px 22px; }
.page li { margin-bottom: 8px; }
.page .updated { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.page a { font-weight: 500; }

/* ============ 文章增强（指南/教程页） ============ */
.page h3 { font-size: 17px; margin: 26px 0 10px; }
.page ol { color: var(--muted); margin: 0 0 18px 22px; }
.page ol li { margin-bottom: 10px; }
.page .lede { font-size: 17.5px; color: var(--ink); line-height: 1.7; }
.page .lede strong, .page p strong { color: var(--ink); }

.summary-box { margin: 22px 0 30px; border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: var(--radius); background: var(--blue-soft); padding: 22px 24px; }
.summary-box h2 { font-size: 16px; margin: 0 0 12px; }
.summary-box ul { margin: 0; padding: 0; list-style: none; }
.summary-box li { display: flex; gap: 10px; margin-bottom: 9px; color: var(--ink); font-size: 14.5px; }
.summary-box li:last-child { margin-bottom: 0; }
.summary-box li::before { content: '→'; color: var(--saffron-dark); font-weight: 700; flex: 0 0 auto; }

.callout { margin: 22px 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; font-size: 14.5px; line-height: 1.6; }
.callout p { margin-bottom: 0; color: var(--ink); }
.callout-warn { background: var(--saffron-soft); border-left: 4px solid var(--saffron); }
.callout-warn strong { color: var(--saffron-dark); }
.callout-info { background: var(--peacock-soft); border-left: 4px solid var(--peacock); }
.callout-info strong { color: var(--peacock); }

.cta-box { margin: 36px 0 8px; border-radius: var(--radius-lg); background: var(--grad-hero); color: #fff; padding: 34px 32px; }
.cta-box h2 { color: #fff; font-size: 21px; margin-bottom: 10px; }
.cta-box p { color: rgba(255,255,255,0.84); margin-bottom: 22px; }
.cta-box .btn { color: #fff; }
.cta-disclosure { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 16px; line-height: 1.55; }
.cta-disclosure a { color: rgba(255,255,255,0.75); text-decoration: underline; }

.page .check-list { list-style: none; margin: 0 0 16px; }
.page .check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.page .check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--peacock); font-weight: 700; }
.page .cross-list { list-style: none; margin: 0 0 16px; }
.page .cross-list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.page .cross-list li::before { content: '×'; position: absolute; left: 0; color: var(--saffron-dark); font-weight: 700; }

/* ============ 页脚（链接库） ============ */
.site-footer {
  background: var(--grad-hero);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 24px;
  font-size: 14px;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--saffron); }
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.4fr 1fr 1.2fr 1.2fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-brand .logo { font-size: 19px; margin-bottom: 12px; }
.footer-brand p { max-width: 280px; font-size: 13.5px; }
.footer-brand .contact { margin-top: 14px; font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}
.footer-bottom .risk {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
  line-height: 1.6;
  max-width: 860px;
}
.footer-bottom .legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    box-shadow: var(--shadow-md);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links > li { border-bottom: 1px solid var(--border); }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links > li > a { padding: 14px 4px; font-size: 15px; }
  .has-dropdown > a::after { float: right; margin-top: 8px; }
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none;
    padding: 0 0 10px 14px;
    min-width: 0;
    display: block;
  }
  .dropdown-menu a { padding: 8px 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 44px 0; }
  .hero { padding: 48px 0 110px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 24px; }
}
