/* ============================================================
   cf-binance.com  --  Minimal / Medium-like Theme
   Primary: #10B981 (emerald green)
   Text: #111827 / Secondary: #6B7280
   Background: #FFFFFF
   ============================================================ */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: #10B981; text-decoration: underline; text-underline-offset: 2px; transition: color .15s; }
a:hover { color: #059669; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Wrapper (single column, centered) ===== */
.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid #E5E7EB;
}
.header-inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 24px;
}
.site-logo {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.site-logo:hover { color: #111827; }
.main-nav {
  display: flex;
  gap: 20px;
  flex: 1;
}
.main-nav a {
  color: #6B7280;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .15s;
}
.main-nav a:hover { color: #111827; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: #10B981;
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.btn:hover { background: #059669; color: #fff; }
.btn-sm {
  display: inline-block;
  background: #10B981;
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.btn-sm:hover { background: #059669; color: #fff; }
.btn-outline-sm {
  display: inline-block;
  background: transparent;
  color: #10B981;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #10B981;
  transition: all .15s;
  white-space: nowrap;
}
.btn-outline-sm:hover { background: #ECFDF5; color: #059669; }
.btn-ghost {
  background: transparent;
  color: #10B981;
  border: 1.5px solid #10B981;
}
.btn-ghost:hover { background: #ECFDF5; color: #059669; }

/* ===== Hero (index page) ===== */
.hero-minimal {
  text-align: center;
  padding: 72px 0 56px;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 48px;
}
.hero-minimal h1 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-minimal .subtitle {
  color: #6B7280;
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.hero-note { font-size: 0.8rem; color: #9CA3AF; margin-top: 16px; }

/* ===== Header Actions ===== */
.header-actions { display: flex; gap: 8px; align-items: center; }

/* ===== Language Switcher ===== */
.lang-nav{display:flex;align-items:center;margin-right:6px}
.lang-nav a{font-size:.75rem;padding:2px 5px;color:var(--text-muted,#999);text-decoration:none;transition:color .2s}
.lang-nav a:hover{color:var(--text,#333)}
.lang-nav a.lang-nav__cur{color:var(--primary,#f0b90b);font-weight:700}
.lang-nav__sep{font-size:.6rem;color:var(--border,#ccc);margin:0 1px;user-select:none}

/* ===== Section Title ===== */
.section { margin-bottom: 48px; }
.section-title {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* ===== Article List (line-separated, not cards) ===== */
.article-list {
  display: flex;
  flex-direction: column;
}
.article-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #F3F4F6;
  text-decoration: none;
  color: inherit;
  transition: background .1s;
}
.article-item:first-child { border-top: 1px solid #F3F4F6; }
.article-item:hover { background: #F9FAFB; }
.article-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.article-title {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}
.article-item:hover .article-title { color: #10B981; }
.article-excerpt {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-item time {
  font-size: 0.8rem;
  color: #9CA3AF;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.8rem;
  color: #9CA3AF;
  padding: 24px 0 8px;
}
.breadcrumb a {
  color: #6B7280;
  text-decoration: none;
}
.breadcrumb a:hover { color: #10B981; }
.breadcrumb .sep { margin: 0 6px; color: #D1D5DB; }
.breadcrumb .current { color: #111827; }

/* ===== Post Detail ===== */
.post-detail {
  padding-bottom: 48px;
}
.post-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid #F3F4F6;
  margin-bottom: 32px;
}
.post-header h1 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #9CA3AF;
}
.meta-tags {
  display: inline-flex;
  gap: 6px;
}
.tag-pill {
  display: inline-block;
  background: #ECFDF5;
  color: #059669;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background .15s;
}
.tag-pill:hover { background: #D1FAE5; color: #059669; }

/* ===== Post Body (article content) ===== */
.post-body {
  font-size: 1.05rem;
  line-height: 1.9;
}
.post-body h2 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.post-body h3 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 36px 0 12px;
}
.post-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 8px;
}
.post-body p {
  margin-bottom: 20px;
}
.post-body ul, .post-body ol {
  margin: 12px 0 20px 20px;
  list-style: disc;
}
.post-body ol { list-style: decimal; }
.post-body li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.post-body blockquote {
  border-left: 3px solid #10B981;
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  color: #6B7280;
  font-style: italic;
}
.post-body pre {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.post-body code {
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.875em;
}
.post-body pre code {
  background: none;
  padding: 0;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.post-body th, .post-body td {
  border: 1px solid #E5E7EB;
  padding: 10px 14px;
  text-align: left;
}
.post-body th {
  background: #F9FAFB;
  font-weight: 600;
}
.post-body strong { color: #111827; }
.post-body img {
  border-radius: 6px;
  margin: 24px 0;
}
.post-body hr {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 40px 0;
}

/* ===== Inline CTA ===== */
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ECFDF5;
  padding: 16px 24px;
  border-radius: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.cta-text {
  font-size: 0.9rem;
  color: #065F46;
  line-height: 1.5;
}
.cta-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Download CTA ===== */
.download-cta {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}
.download-cta strong { display: block; margin-bottom: 10px; font-size: 0.9rem; }
.download-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Related Posts ===== */
.related-posts {
  border-top: 1px solid #E5E7EB;
  padding-top: 40px;
  margin-top: 8px;
}
.related-posts h2 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.related-list {
  display: flex;
  flex-direction: column;
}
.related-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
}
.related-list li:first-child { border-top: 1px solid #F3F4F6; }
.related-list a {
  color: #111827;
  text-decoration: none;
  font-size: 0.95rem;
}
.related-list a:hover { color: #10B981; }
.related-list time {
  font-size: 0.8rem;
  color: #9CA3AF;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== Page Body (static pages) ===== */
.page-body {
  padding: 40px 0 56px;
  line-height: 1.85;
}
.page-body h1 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.page-body h2 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 1.35rem;
  margin: 36px 0 12px;
}
.page-body h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}
.page-body p { margin-bottom: 16px; }
.page-body ul, .page-body ol { margin: 8px 0 16px 20px; list-style: disc; }
.page-body ol { list-style: decimal; }
.page-body li { margin-bottom: 6px; }

/* ===== Tag Pages ===== */
h1 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.tag-desc {
  color: #6B7280;
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.tag-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 48px;
}
.tag-pill-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  color: #111827;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all .15s;
}
.tag-pill-lg:hover {
  background: #ECFDF5;
  border-color: #10B981;
  color: #059669;
}
.tag-pill-lg .tag-count {
  font-size: 0.75rem;
  background: #E5E7EB;
  color: #6B7280;
  padding: 1px 8px;
  border-radius: 12px;
}
.tag-pill-lg:hover .tag-count {
  background: #D1FAE5;
  color: #059669;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #E5E7EB;
  margin-top: 64px;
  padding: 24px 0 20px;
  font-size: 0.8rem;
  color: #9CA3AF;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.footer-left span { color: #9CA3AF; }
.footer-right {
  display: flex;
  gap: 16px;
}
.footer-right a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color .15s;
}
.footer-right a:hover { color: #10B981; }
.risk-text {
  font-size: 0.75rem;
  color: #9CA3AF;
  line-height: 1.6;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}
.footer-affiliate { font-size: 0.72rem; color: #D1D5DB; margin-top: 4px; }
.footer-cta { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #F3F4F6; }

/* ===== 404 Page ===== */
.error-page {
  text-align: center;
  padding: 100px 20px;
}
.error-page h1 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 5rem;
  color: #10B981;
  margin-bottom: 16px;
  line-height: 1;
}
.error-page p {
  color: #6B7280;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .wrapper { padding: 0 16px; }

  .header-inner { gap: 12px; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 0.8rem; }

  .hero-minimal { padding: 48px 0 40px; }
  .hero-minimal h1 { font-size: 1.65rem; }
  .hero-minimal .subtitle { font-size: 1rem; }

  .article-item {
    flex-direction: column;
    gap: 4px;
  }
  .article-excerpt { white-space: normal; }

  .post-header h1 { font-size: 1.5rem; }
  .post-body { font-size: 1rem; }

  .inline-cta {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .error-page h1 { font-size: 3.5rem; }
}

@media (max-width: 380px) {
  .main-nav { display: none; }
  .btn-sm { font-size: 0.75rem; padding: 4px 12px; }
}
/* Reading nav (TOC) */
.reading-nav{border:1px solid #e5e7eb;border-radius:6px;padding:16px 20px;margin:16px 0 20px;background:#fafafa}
.reading-nav-toggle{cursor:pointer;font-weight:600;font-size:.95rem;color:#374151;list-style:none}
.reading-nav-toggle::-webkit-details-marker{display:none}
.reading-nav-toggle::before{content:"▸ ";font-size:.85rem}
details[open]>.reading-nav-toggle::before{content:"▾ "}
.reading-nav-list{margin:10px 0 0;padding-left:18px;list-style:disc}
.reading-nav-list li{margin:5px 0}
.reading-nav-list a{color:#10b981;text-decoration:none;font-size:.9rem}
.reading-nav-list a:hover{text-decoration:underline}
/* Writer info */
.writer-info{display:flex;align-items:center;gap:12px;padding:16px 0;margin:24px 0;border-top:1px solid #e5e7eb}
.writer-avatar{width:40px;height:40px;border-radius:50%;background:#10b981;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;flex-shrink:0}
.writer-detail{display:flex;flex-direction:column;gap:2px}
.writer-name{font-weight:600;font-size:.9rem;color:#111827}
.writer-bio{font-size:.8rem;color:#6b7280}
/* Reading info */
.reading-info,.updated-info{font-size:.8rem;color:#9ca3af;margin-left:10px}
/* App download box */
.app-download-box{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:16px 20px;margin:24px 0}
.app-download-box strong{display:block;margin-bottom:10px}
.app-download-btns{display:flex;gap:10px;flex-wrap:wrap}
