/* ============================================
   Portal News Style - Chinese Binance Template
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-dark: #0f172a;
  --color-dark-lighter: #1e293b;
  --color-red: #ef4444;
  --color-red-dark: #dc2626;
  --color-red-light: #fef2f2;
  --color-white: #ffffff;
  --color-bg: #f8fafc;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  --container-width: 1200px;
  --sidebar-width: 320px;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-red);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER ACTIONS
   ============================================ */
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.header-download-btn {
  display: inline-block;
  background: transparent;
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid var(--color-text-muted);
  transition: all 0.2s;
}

.header-download-btn:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

/* ============================================
   HEADER MAIN (Dark Area)
   ============================================ */
.header-main {
  background: var(--color-dark);
  padding: 18px 0;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.header-logo:hover {
  color: var(--color-white);
}

.logo-text {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 1px;
}

.logo-tagline {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* search decoration removed */

.header-register-btn {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  padding: 10px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.header-register-btn:hover {
  background: var(--color-red-dark);
  color: var(--color-white);
}

/* ============================================
   NAVIGATION BAR (White)
   ============================================ */
.header-nav {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-red);
  box-shadow: var(--shadow);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  transition: color 0.2s, background 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 0.25s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-red);
  background: var(--color-red-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ============================================
   HERO SECTION (Homepage Featured)
   ============================================ */
.hero-section {
  background: var(--color-dark);
  padding: 40px 0;
}

.hero-card {
  max-width: 800px;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
}

.hero-title a {
  color: var(--color-white);
}

.hero-title a:hover {
  color: var(--color-red);
}

.hero-excerpt {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.site-main {
  min-height: 60vh;
}

.home-content {
  padding: 30px 0 50px;
}

/* Two-column Layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 30px;
  padding-top: 30px;
  padding-bottom: 50px;
}

.post-main {
  min-width: 0;
}

.post-sidebar {
  min-width: 0;
}

/* Single-column Page Layout */
.page-layout {
  padding: 30px 0 50px;
}

.page-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-red);
  margin-bottom: 24px;
}

/* ============================================
   ARTICLE CARDS (Portal Style)
   ============================================ */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-card {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
  padding-left: 16px;
  border-left: 3px solid transparent;
  transition: border-left-color 0.2s;
}

.article-card:hover {
  border-left-color: var(--color-red);
}

.article-card-date {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
}

.article-card-date time {
  display: block;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: var(--radius);
  line-height: 1.2;
}

.article-card-body {
  flex: 1;
  min-width: 0;
}

.article-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-card-title a {
  color: var(--color-text);
}

.article-card-title a:hover {
  color: var(--color-red);
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Tag Badge */
.tag-badge {
  display: inline-block;
  font-size: 12px;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  padding: 2px 8px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.tag-badge:hover {
  background: var(--color-red);
  color: var(--color-white);
}

/* ============================================
   POST ARTICLE (Single Post)
   ============================================ */
.post-article {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-header {
  margin-bottom: 24px;
}

.post-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}

.post-date {
  color: var(--color-text-muted);
}

.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.post-divider {
  height: 3px;
  background: var(--color-red);
  margin-top: 16px;
  border-radius: 2px;
}

/* Post Content Typography */
.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

.post-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.post-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.post-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.post-content p {
  margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: 6px;
}

.post-content blockquote {
  border-left: 4px solid var(--color-red);
  background: var(--color-red-light);
  padding: 16px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

.post-content code {
  background: var(--color-border-light);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}

.post-content pre {
  background: var(--color-dark);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 20px 0;
}

.post-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.post-content a {
  color: var(--color-red);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--color-red-dark);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.post-content th,
.post-content td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
}

.post-content th {
  background: var(--color-border-light);
  font-weight: 600;
}

.post-content img {
  border-radius: var(--radius);
  margin: 16px 0;
}

/* ============================================
   PAGE ARTICLE (Static Page)
   ============================================ */
.page-article {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.page-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

.page-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); }
.page-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; }
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin: 16px 0; padding-left: 24px; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 6px; }
.page-content blockquote { border-left: 4px solid var(--color-red); background: var(--color-red-light); padding: 16px 20px; margin: 20px 0; }
.page-content a { color: var(--color-red); text-decoration: underline; }
.page-content a:hover { color: var(--color-red-dark); }

/* ============================================
   TAG PAGE
   ============================================ */
.tag-page-header {
  margin-bottom: 24px;
}

.tag-page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

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

/* Tags Grid (Index) */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.tag-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--color-white);
  border: 2px solid var(--color-red);
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.tag-card:hover {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.tag-card-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tag-card-count {
  font-size: 13px;
  opacity: 0.7;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  margin: 30px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-dark);
  padding: 24px 30px;
  gap: 20px;
}

.cta-banner-text {
  flex: 1;
}

.cta-banner-title {
  display: block;
  font-size: 18px;
  color: var(--color-white);
  margin-bottom: 4px;
}

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

.cta-banner-btn {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.cta-banner-btn:hover {
  background: var(--color-red-dark);
  color: var(--color-white);
}

.cta-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.cta-banner-btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
}
.cta-banner-btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: var(--color-white);
}

/* Download CTA Box */
.download-cta-box {
  background: var(--color-border-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}
.download-cta-box strong { display: block; margin-bottom: 8px; font-size: 16px; }
.download-cta-box p { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 12px; }
.download-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Override outline btn for light background context */
.download-cta-actions .cta-banner-btn-outline {
  border-color: var(--color-red);
  color: var(--color-red);
}
.download-cta-actions .cta-banner-btn-outline:hover {
  background: var(--color-red);
  color: var(--color-white);
}

/* Footer CTA Area */
.footer-cta-area { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.footer-cta-btn {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}
.footer-cta-btn:hover { background: var(--color-red-dark); color: var(--color-white); }
.footer-cta-btn-outline {
  background: transparent;
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-muted);
}
.footer-cta-btn-outline:hover {
  border-color: var(--color-red);
  color: var(--color-red);
  background: transparent;
}
.footer-affiliate { font-size: 12px; color: #64748b; margin-top: 8px; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 20px;
}

/* Sidebar CTA Card */
.sidebar-cta-card {
  border: 2px solid var(--color-red);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sidebar-cta-header {
  background: var(--color-red);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 18px;
  text-align: center;
}

.sidebar-cta-body {
  background: var(--color-white);
  padding: 20px 18px;
  text-align: center;
}

.sidebar-cta-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.sidebar-cta-btn {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  width: 100%;
  text-align: center;
}

.sidebar-cta-btn:hover {
  background: var(--color-red-dark);
  color: var(--color-white);
}

/* Sidebar Section */
.sidebar-section {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar-section-title {
  font-size: 15px;
  font-weight: 700;
  padding: 14px 18px;
  background: var(--color-dark);
  color: var(--color-white);
  border-bottom: 2px solid var(--color-red);
}

/* Sidebar Post List (Numbered) */
.sidebar-post-list {
  padding: 12px 18px;
  counter-reset: none;
}

.sidebar-post-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.sidebar-post-item:last-child {
  border-bottom: none;
}

.sidebar-post-rank {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  margin-top: 2px;
}

.sidebar-post-item:nth-child(n+4) .sidebar-post-rank {
  background: var(--color-text-muted);
}

.sidebar-post-link {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-post-link:hover {
  color: var(--color-red);
}

/* Sidebar Tag Cloud */
.sidebar-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
}

.sidebar-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: 2px;
  transition: all 0.2s;
}

.sidebar-tag:hover {
  color: var(--color-red);
  border-color: var(--color-red);
  background: var(--color-red-light);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '>';
  padding: 0 8px;
  color: var(--color-text-muted);
}

.breadcrumb-item a {
  color: var(--color-text-secondary);
}

.breadcrumb-item a:hover {
  color: var(--color-red);
}

.breadcrumb-item.active span {
  color: var(--color-text);
}

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--color-border);
}

.related-posts-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-red);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.related-post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-red);
  border-radius: var(--radius);
  padding: 18px;
  transition: box-shadow 0.2s;
}

.related-post-card:hover {
  box-shadow: var(--shadow-md);
}

.related-post-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-post-card-title a {
  color: var(--color-text);
}

.related-post-card-title a:hover {
  color: var(--color-red);
}

.related-post-card-excerpt {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-card-date {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-top: 50px;
}

.footer-main {
  background: var(--color-dark);
  padding: 40px 0;
}

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

.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-red);
}

.footer-description {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-red);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--color-text-muted);
  border: 1px solid #334155;
  padding: 3px 8px;
  border-radius: 2px;
  transition: all 0.2s;
}

.footer-tag:hover {
  color: var(--color-red);
  border-color: var(--color-red);
}

.footer-risk-warning {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
  padding: 12px;
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid var(--color-red);
  border-radius: var(--radius);
}

/* Footer Bottom */
.footer-bottom {
  background: #0a1021;
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-disclaimer {
  font-size: 12px;
  color: #64748b;
}

/* ============================================
   404 ERROR PAGE
   ============================================ */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-code {
  font-size: 100px;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.error-message {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

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

.error-btn {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}

.error-btn:hover {
  background: var(--color-red-dark);
  color: var(--color-white);
}

.error-btn-outline {
  background: transparent;
  border: 2px solid var(--color-red);
  color: var(--color-red);
}

.error-btn-outline:hover {
  background: var(--color-red);
  color: var(--color-white);
}

/* ============================================
   RESPONSIVE: 768px Breakpoint
   ============================================ */
@media (max-width: 768px) {
  /* Header */
  .header-main-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-search-decoration {
    display: none;
  }

  .logo-text {
    font-size: 22px;
  }

  .header-register-btn {
    padding: 8px 18px;
    font-size: 14px;
  }

  .nav-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  /* Layout */
  .post-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .post-sidebar {
    order: 2;
  }

  .sidebar {
    position: static;
  }

  /* Hero */
  .hero-section {
    padding: 24px 0;
  }

  .hero-title {
    font-size: 24px;
  }

  /* Post */
  .post-article {
    padding: 20px;
  }

  .post-title {
    font-size: 22px;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Article Cards */
  .article-card {
    flex-direction: column;
    gap: 10px;
    padding-left: 12px;
  }

  .article-card-date {
    width: auto;
    text-align: left;
  }

  .article-card-date time {
    display: inline-block;
    padding: 3px 10px;
  }

  .article-card-title {
    font-size: 16px;
  }

  /* Related Posts */
  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  /* CTA Banner */
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .cta-banner-btn {
    width: 100%;
    text-align: center;
  }

  /* Tags Grid */
  .tags-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  /* Error page */
  .error-code {
    font-size: 72px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   UTILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* Reporter byline */
.reporter-byline{display:flex;align-items:center;gap:10px;padding:12px 16px;margin:0 0 16px;background:#fef2f2;border-left:3px solid #ef4444;border-radius:0 6px 6px 0}
.reporter-avatar{width:36px;height:36px;border-radius:50%;background:#ef4444;color:#fff;display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:700;flex-shrink:0}
.reporter-info{display:flex;flex-direction:column;gap:2px}
.reporter-name{font-size:.9rem;color:#1f2937}
.reporter-role{font-size:.75rem;color:#6b7280}
/* Post meta extras */
.post-readtime{font-size:.8rem;color:#9ca3af;margin-left:10px}
.post-update-notice{font-size:.8rem;color:#ef4444;margin:6px 0 0;font-style:italic}
/* Sidebar TOC */
.sidebar-toc{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e5e7eb}
.sidebar-toc-list{list-style:none;padding:0;margin:8px 0 0}
.sidebar-toc-list li{padding:4px 0;border-bottom:1px dotted #f3f4f6}
.sidebar-toc-list a{font-size:.85rem;color:#374151;text-decoration:none}
.sidebar-toc-list a:hover{color:#ef4444}
/* Sidebar app download */
.sidebar-app{background:#fff7ed;border-radius:6px;padding:14px}
.sidebar-app-text{font-size:.8rem;color:#374151;margin:0 0 10px}
.sidebar-cta-btn-app{display:block;text-align:center;padding:8px;background:#ef4444;color:#fff;border-radius:4px;text-decoration:none;font-size:.85rem;font-weight:600}
.sidebar-app-note{font-size:.7rem;color:#9ca3af;margin:6px 0 0}
/* Language Switcher */
.i18n-switch{display:flex;gap:6px;margin-right:8px;align-items:center}
.i18n-switch a{font-size:.7rem;padding:2px 7px;border-radius:3px;color:var(--text-muted,#999);text-decoration:none;white-space:nowrap;transition:all .2s}
.i18n-switch a:hover{color:var(--text,#333)}
.i18n-switch .i18n-switch__on{color:var(--primary,#f0b90b);font-weight:600;border-bottom:1px solid var(--primary,#f0b90b)}
