/* Web3加密指南 - 对标 rayskyinvest 的文章排版规范 v1.0 */
.single-post .entry-content { max-width: 760px; margin-left: auto; margin-right: auto; }
.single-post .entry-content h2 {
  color: #1B3A6B; font-size: 24px; font-weight: 800;
  padding-bottom: 12px; margin-top: 48px; margin-bottom: 20px;
  border-bottom: 1px solid #e8edf3; position: relative;
}
.single-post .entry-content h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 80px; height: 3px; background: #1565C0; border-radius: 2px;
}
.single-post .entry-content h3 { color: #1B3A6B; font-size: 19px; font-weight: 700; margin-top: 32px; }
.single-post .entry-content p, .single-post .entry-content li { font-size: 16.5px; line-height: 1.85; color: #333; }
.single-post .entry-content a { color: #1565C0; }
.single-post .entry-content a:hover { text-decoration: underline; }
.single-post .entry-content img { border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.single-post .entry-content table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; margin: 24px 0;
}
.single-post .entry-content thead th {
  background: #1B3A6B; color: #fff; padding: 13px 16px;
  text-align: left; font-size: 15px; font-weight: 700;
}
.single-post .entry-content tbody td { padding: 12px 16px; border-top: 1px solid #eef1f5; font-size: 15px; }
.single-post .entry-content tbody tr:nth-child(even) td { background: #f8fafc; }
.single-post .entry-content ul { list-style: none; padding-left: 0; }
.single-post .entry-content ul li { padding-left: 1.4em; position: relative; margin-bottom: 8px; }
.single-post .entry-content ul li::before { content: "■"; color: #1565C0; font-size: 12px; position: absolute; left: 0; top: 4px; }
.single-post .entry-content ol li { margin-bottom: 10px; }
.single-post .entry-content ol li::marker { font-weight: 700; color: #1B3A6B; }
/* 提示框 / 警告框 */
.w3n-tip { background: #F5F7FA; border-radius: 10px; padding: 20px 24px; margin: 28px 0; }
.w3n-warn { background: #FFF8E1; border-radius: 10px; padding: 20px 24px; margin: 28px 0; border-left: 4px solid #ffb300; }
.w3n-tip p, .w3n-warn p { margin: 0; font-size: 15.5px; }
.w3n-tip strong, .w3n-warn strong { color: #1B3A6B; }
/* 黑色 CTA 大按钮（对标 raysky） */
a.w3n-cta-btn {
  display: block; background: #111; color: #fff !important; text-align: center;
  padding: 18px 24px; border-radius: 12px; font-size: 18px; font-weight: 800;
  text-decoration: none !important; margin: 32px 0 8px;
}
a.w3n-cta-btn:hover { background: #000; color: #fff !important; text-decoration: none !important; }
.w3n-cta-note { text-align: center; font-size: 13px; color: #888; margin: 0 0 28px; }
/* 福利汇总卡片 */
.w3n-benefit-card { background: #f0f7ff; border: 2px solid #1565C0; border-radius: 12px; padding: 24px; margin: 32px 0; text-align: center; }
.w3n-benefit-card p { margin: 0 0 12px; }
.w3n-code { background: #ffeb3b; padding: 2px 10px; border-radius: 4px; font-weight: 800; font-family: Consolas, monospace; letter-spacing: 1px; }
/* 邀请码代码高亮 */
code.w3n-code { background: #e8f0fe; color: #1565C0; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
/* 文末披露框 */
.w3n-disclosure { background: #F5F7FA; border-radius: 10px; padding: 20px 24px; margin: 48px 0 0; font-size: 14px; color: #666; line-height: 1.8; }
/* 作者框 */
.w3n-authorbox { background: #eef3fa; border-radius: 12px; padding: 24px; margin: 28px 0 0; display: flex; gap: 16px; align-items: center; }
.w3n-authorbox .w3n-avatar { width: 64px; height: 64px; border-radius: 50%; background: #1B3A6B; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; flex-shrink: 0; }
.w3n-authorbox .w3n-aname { font-size: 17px; font-weight: 800; color: #1B3A6B; margin-bottom: 4px; }
.w3n-authorbox .w3n-abio { font-size: 14px; color: #555; margin: 0; }
/* 图注 */
.w3n-cap { display: block; text-align: center; font-size: 13px; color: #1565C0; margin-top: 8px; }
/* 红色小徽章 */
.w3n-badge { display: inline-block; background: #e53935; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; vertical-align: middle; }

/* ===== W3N: 文章顶部 meta 行 ===== */
.w3n-article-meta{display:flex;align-items:center;gap:10px;color:#8a94a6;font-size:13.5px;margin:2px 0 18px;letter-spacing:.02em;}
.w3n-meta-dot{opacity:.45;}
html{scroll-behavior:smooth;}
.entry-content h2{scroll-margin-top:96px;}

/* ===== W3N: 右侧 sticky 目录 ===== */
.w3n-sticky-toc{display:none;}
@media (min-width:1360px){
  .w3n-sticky-toc{display:block;position:fixed;top:104px;right:max(20px,calc((100vw - 760px)/2 - 290px));width:248px;background:#fff;border:1px solid #e8edf3;border-radius:14px;box-shadow:0 10px 34px rgba(15,35,95,.09);padding:16px 14px 12px;z-index:60;max-height:calc(100vh - 220px);overflow:auto;}
  .w3n-sticky-toc-title{font-size:13px;font-weight:800;color:#0f235f;letter-spacing:.14em;margin:0 4px 10px;}
  .w3n-sticky-toc-list{list-style:none;margin:0;padding:0;}
  .w3n-sticky-toc-list li{margin:0;}
  .w3n-sticky-toc-list a{display:flex;gap:10px;align-items:baseline;padding:7px 8px;border-radius:8px;color:#3c4454;font-size:13px;line-height:1.45;text-decoration:none;border-left:2px solid transparent;}
  .w3n-sticky-toc-list a .n{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;color:#9aa6bb;font-weight:700;flex:none;}
  .w3n-sticky-toc-list a:hover{background:#f2f6fc;}
  .w3n-sticky-toc-list a.active{background:#eaf1fd;border-left-color:#1565c0;color:#0f235f;font-weight:700;}
  .w3n-sticky-toc-list a.active .n{color:#1565c0;}
  body.has-sticky-toc #ez-toc-container{display:none;}
}

/* ===== W3N: 首页 ===== */
.w3n-hero{background:linear-gradient(135deg,#0a1830 0%,#14305e 100%) !important;}
.w3n-hero .wp-block-cover__background{display:none;}
.w3n-cat-card{background:#fff;border:1px solid #e8edf3;border-radius:14px;padding:26px !important;box-shadow:0 4px 18px rgba(15,35,95,.06);transition:box-shadow .2s;}
.w3n-cat-card:hover{box-shadow:0 10px 30px rgba(15,35,95,.12);}
.w3n-featured{border:1px solid #e8edf3 !important;box-shadow:0 8px 30px rgba(15,35,95,.08);}

/* ===== W3N: 首页最新文章卡片网格 ===== */
.w3n-latest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:4px;}
.w3n-latest-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e8edf3;border-radius:14px;padding:24px;text-decoration:none !important;transition:box-shadow .2s,transform .2s;}
.w3n-latest-card:hover{box-shadow:0 10px 30px rgba(15,35,95,.12);transform:translateY(-2px);}
.w3n-latest-cat{align-self:flex-start;font-size:12px;font-weight:700;color:#1565c0;background:#eaf1fd;border-radius:6px;padding:3px 10px;margin-bottom:12px;}
.w3n-latest-title{font-size:17px;font-weight:800;color:#0f235f;line-height:1.55;margin-bottom:10px;}
.w3n-latest-excerpt{font-size:14px;color:#5b6577;line-height:1.7;margin-bottom:14px;flex:1;}
.w3n-latest-date{font-size:12.5px;color:#9aa6bb;}
@media(max-width:900px){.w3n-latest-grid{grid-template-columns:1fr;}}

/* ===== W3N: 文章配图统一视觉 ===== */
.single-post .entry-content img{border-radius:12px;box-shadow:0 8px 28px rgba(15,35,95,.12);border:1px solid #e8edf3;}
.w3n-imgcap{text-align:center;color:#8a94a6;font-size:13.5px;margin:10px 0 28px;letter-spacing:.02em;}

/* ===== W3N: 精致版首页 hero 卡片 ===== */
.w3n-hero-card{background:linear-gradient(135deg,#f2f5fb 0%,#e9eff8 100%) !important;border:1px solid #dfe7f3;border-radius:20px;padding:44px 40px 40px !important;text-align:center;max-width:860px;margin-left:auto;margin-right:auto;}
.w3n-hero-badge{display:inline-block;background:#fff;border:1px solid #d4e0f2;color:#1565c0;font-size:13px;font-weight:700;border-radius:999px;padding:6px 18px;margin:0 0 18px !important;letter-spacing:.03em;}
.w3n-hero-card .wp-block-buttons{margin-top:24px;}
/* 去掉旧的全屏 hero 样式影响 */
.w3n-hero{display:none !important;}

/* ===== W3N: Zakra Member Read 设计语言 ===== */
body{background:#faf7f0 !important;color:#1c1a17;}
.tg-site{background:#faf7f0;}
/* 标题衬线 */
h1,h2,h3,.entry-title{font-family:Georgia,"Times New Roman","Songti SC","SimSun",serif !important;letter-spacing:-.01em;}
/* 主色：橙 */
a{color:#d95d1e;}
a:hover{color:#b34a14;}
.wp-block-button__link.has-primary-background-color,.wp-block-button__link{background:#1c1a17 !important;color:#fff !important;border-radius:999px !important;padding:14px 34px !important;font-weight:700;}
/* Member Read 风格 hero */
.w3n-mr-hero{text-align:center;padding:72px 24px 56px;max-width:900px;margin:0 auto;}
.w3n-mr-badge{display:inline-block;background:#fff;border:1px solid #e8e0d2;color:#d95d1e;font-size:12.5px;font-weight:700;letter-spacing:.14em;border-radius:999px;padding:8px 20px;margin-bottom:28px;}
.w3n-mr-hero h1{font-size:56px !important;line-height:1.18;font-weight:700;color:#1c1a17;margin:0 0 24px !important;}
.w3n-mr-hero h1 em{font-style:italic;color:#e8622c;}
.w3n-mr-hero p{font-size:18px;color:#6b655c;max-width:640px;margin:0 auto 32px;}
.w3n-mr-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}
.w3n-mr-btns .btn-dark{background:#1c1a17;color:#fff;border-radius:999px;padding:14px 34px;font-weight:700;text-decoration:none;display:inline-block;}
.w3n-mr-btns .btn-line{border:1.5px solid #1c1a17;color:#1c1a17;border-radius:999px;padding:13px 32px;font-weight:700;text-decoration:none;display:inline-block;background:transparent;}
.w3n-mr-btns a:hover{opacity:.85;}
/* 文章卡片 */
.w3n-mr-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;max-width:1140px;margin:0 auto;padding:0 24px;}
.w3n-mr-card{background:#fff;border:1px solid #ece5d5;border-radius:14px;padding:28px;transition:transform .2s;}
.w3n-mr-card:hover{transform:translateY(-3px);}
.w3n-mr-card .cat{font-size:12px;font-weight:700;letter-spacing:.1em;color:#d95d1e;text-transform:uppercase;}
.w3n-mr-card h3{font-size:21px;margin:12px 0 10px;line-height:1.4;}
.w3n-mr-card h3 a{color:#1c1a17;text-decoration:none;}
.w3n-mr-card p{font-size:14.5px;color:#6b655c;margin:0;}
@media(max-width:768px){.w3n-mr-hero h1{font-size:36px !important;}.w3n-mr-grid{grid-template-columns:1fr;}}

/* ===== W3N: 相关阅读样式 ===== */
.w3n-related{max-width:760px;margin:48px auto 0;padding:32px 0 0;border-top:1px solid #ece5d5;}
.w3n-related h3{font-size:22px;margin:0 0 20px;color:#1c1a17;}
.w3n-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.w3n-related-card{background:#fff;border:1px solid #ece5d5;border-radius:12px;overflow:hidden;text-decoration:none;display:block;transition:transform .2s;}
.w3n-related-card:hover{transform:translateY(-2px);}
.w3n-related-card img{width:100%;height:120px;object-fit:cover;display:block;}
.w3n-related-card span{display:block;padding:14px 16px;font-size:14.5px;font-weight:700;color:#1c1a17;line-height:1.5;}
@media(max-width:768px){.w3n-related-grid{grid-template-columns:1fr;}}

/* ===== W3N: 文章头图缩小 ===== */
.single .post-thumbnail img,
.single .entry-thumbnail img,
.single-post .post-thumbnail img {
  max-height: 420px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto;
  display: block;
}
.single .post-thumbnail,
.single .entry-thumbnail {
  text-align: center;
  margin-bottom: 28px;
}

/* ===== W3N: 语言切换器样式 ===== */
.w3n-lang-switcher{position:absolute;top:12px;right:20px;z-index:100;}
.w3n-lang-switcher ul{list-style:none;margin:0;padding:0;display:flex;gap:8px;}
.w3n-lang-switcher li a{font-size:13px;color:#8a8378;text-decoration:none;padding:4px 10px;border-radius:20px;border:1px solid #e5ddcb;}
.w3n-lang-switcher li.current-lang a{background:#1c1a17;color:#fff;border-color:#1c1a17;}
.w3n-lang-switcher li a:hover{border-color:#1c1a17;color:#1c1a17;}

/* ===== W3N: 首页板块 ===== */
.w3n-sec{max-width:1200px;margin:56px auto 0;padding:0 24px;}
.w3n-sec-title{font-size:28px;font-weight:800;color:#1c1a17;margin:0 0 8px;}
.w3n-sec-desc{font-size:15px;color:#8a8378;margin:0 0 28px;}
.w3n-sec .w3n-mr-grid{margin-top:0;}
