/* ============================================
   TOPONE.WORLD - 全球世界之最百科 全局样式
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #165DFF;
  --primary-dark: #0E42D2;
  --primary-light: #E8F0FF;
  --highlight: #FF7D00;
  --highlight-light: #FFF3E0;
  --bg: #FFFFFF;
  --bg-secondary: #F5F7FA;
  --bg-tertiary: #EBF0F5;
  --text-primary: #1D2129;
  --text-secondary: #4E5969;
  --text-tertiary: #86909C;
  --border: #E5E6EB;
  --border-light: #F2F3F5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --nav-height: 64px;
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- 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: var(--font-cn);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

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

ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cn);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
}
.nav-logo:hover { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-search {
  margin-left: auto;
  position: relative;
}
.nav-search input {
  width: 220px;
  height: 38px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.875rem;
  font-family: var(--font-cn);
  color: var(--text-primary);
  background: var(--bg-secondary);
  outline: none;
  transition: all 0.2s;
}
.nav-search input:focus {
  border-color: var(--primary);
  background: var(--bg);
  width: 280px;
  box-shadow: 0 0 0 3px rgba(22,93,255,0.1);
}
.nav-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 0.9rem;
  pointer-events: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   Hero / Slogan
   ============================================ */
.hero {
  margin-top: var(--nav-height);
  padding: 60px 0 48px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-light) 100%);
  border-bottom: 1px solid var(--border-light);
}
.hero-slogan {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero-slogan .brand {
  color: var(--primary);
  font-family: var(--font-en);
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Section Common
   ============================================ */
.section {
  padding: 48px 0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.section-more {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-more:hover { color: var(--primary); }

/* ============================================
   Category Cards
   ============================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}
.category-card .card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.category-card .card-icon.geo { background: #E8F7E8; }
.category-card .card-icon.arch { background: #E8F0FF; }
.category-card .card-icon.biz { background: #FFF3E0; }
.category-card .card-icon.fun { background: #F3E8FF; }

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.category-card p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 0;
}

/* ============================================
   Article Cards
   ============================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.article-card .card-thumb {
  width: 100%;
  height: 180px;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}
.article-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.article-card:hover .card-thumb img {
  transform: scale(1.05);
}
.article-card .card-thumb .card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.article-card .card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card .card-category {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.article-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}
.article-card .card-meta {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================
   Data Table (核心 - 排行榜表格)
   ============================================ */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 20px 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table thead {
  background: var(--bg-secondary);
}
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:hover {
  background: var(--primary-light);
}
.data-table .rank-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
}
.data-table .rank-num.top1 { background: #FFD700; color: #fff; }
.data-table .rank-num.top2 { background: #C0C0C0; color: #fff; }
.data-table .rank-num.top3 { background: #CD7F32; color: #fff; }

/* ============================================
   Detail Page
   ============================================ */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  margin-top: var(--nav-height);
  padding: 32px 0 60px;
}

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

.detail-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-breadcrumb a { color: var(--text-tertiary); }
.detail-breadcrumb a:hover { color: var(--primary); }

.detail-header {
  margin-bottom: 32px;
}
.detail-header h1 {
  font-size: 1.85rem;
  margin-bottom: 12px;
  line-height: 1.4;
}
.detail-header .detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.detail-header .detail-meta .tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Detail Sections */
.detail-section {
  margin-bottom: 36px;
}
.detail-section h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.detail-section p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* Key Data List */
.key-data-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.key-data-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.key-data-item .label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.key-data-item .value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-en);
}

/* Fun Facts */
.fun-facts {
  background: var(--highlight-light);
  border-left: 4px solid var(--highlight);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 20px 0;
}
.fun-facts h3 {
  color: var(--highlight);
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.fun-facts ul {
  list-style: none;
  padding: 0;
}
.fun-facts li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}
.fun-facts li::before {
  content: "💡";
  position: absolute;
  left: 0;
  top: 6px;
}

/* Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.image-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* Related Articles */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.related-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.related-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  color: inherit;
}
.related-item .thumb {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  background: var(--bg-secondary);
  flex-shrink: 0;
  overflow: hidden;
}
.related-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-item .info h4 {
  font-size: 0.85rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar */
.detail-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  align-self: start;
}

.sidebar-widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

/* Ad Placeholder */
.ad-placeholder {
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0;
  margin-bottom: 20px;
  min-height: 0;
  line-height: 0;
  overflow: hidden;
}

/* Card Thumb Placeholder */
.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.card-thumb-placeholder .thumb-icon {
  font-size: 2.8rem;
  line-height: 1;
}
.card-thumb-placeholder .thumb-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   Category Page
   ============================================ */
.category-header {
  margin-top: var(--nav-height);
  padding: 40px 0 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.category-header h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.category-header p {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.category-filter {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.category-filter .filter-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-cn);
}
.category-filter .filter-btn:hover,
.category-filter .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .footer-logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 14px;
  }
  .nav-toggle { display: flex; }

  .nav-search input {
    width: 160px;
  }
  .nav-search input:focus {
    width: 200px;
  }

  .hero {
    padding: 36px 0 32px;
  }
  .hero-slogan {
    font-size: 1.5rem;
  }
  .hero-desc {
    font-size: 0.9rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-card {
    padding: 20px 16px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 32px 0;
  }

  .detail-header h1 {
    font-size: 1.4rem;
  }

  .key-data-list {
    grid-template-columns: 1fr 1fr;
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .category-card .card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .key-data-list {
    grid-template-columns: 1fr;
  }
  .nav-search { display: none; }
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-highlight { color: var(--highlight); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Table of Contents */
.toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}
.toc h4 {
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.toc ol {
  list-style: decimal;
  padding-left: 20px;
}
.toc li {
  padding: 3px 0;
  font-size: 0.85rem;
}
.toc a {
  color: var(--text-secondary);
}
.toc a:hover { color: var(--primary); }

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Loading Skeleton for Cards
   ============================================ */
.skeleton-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.skeleton-card .skeleton-thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
.skeleton-card .skeleton-body {
  padding: 18px;
}
.skeleton-card .skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}
.skeleton-card .skeleton-line:last-child { margin-bottom: 0; }
.skeleton-card .skeleton-line.w60 { width: 60%; }
.skeleton-card .skeleton-line.w80 { width: 80%; }
.skeleton-card .skeleton-line.w40 { width: 40%; }

/* ============================================
   Share Bar
   ============================================ */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 4px;
}
.share-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-secondary);
}
.share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
#shareFacebook { font-weight: 700; font-family: var(--font-en); color: #1877F2; }
#shareFacebook:hover { background: #E7F0FE; border-color: #1877F2; }
#shareLinkedIn { font-weight: 700; font-family: var(--font-en); color: #0A66C2; }
#shareLinkedIn:hover { background: #E0EDFF; border-color: #0A66C2; }

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .navbar, .footer, .back-to-top, .share-bar,
  .ad-placeholder, .detail-sidebar, .nav-toggle,
  .nav-search, .toc { display: none !important; }

  .detail-layout {
    grid-template-columns: 1fr !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
    line-height: 1.6;
  }

  .detail-header h1 {
    font-size: 18pt;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
  }

  .detail-section {
    page-break-inside: avoid;
    margin-bottom: 20px;
  }

  .detail-section h2 {
    font-size: 14pt;
    color: #000;
    border-bottom: 1px solid #ccc;
  }

  .data-table {
    border: 1px solid #ccc;
  }
  .data-table th {
    background: #eee !important;
    color: #000;
  }
  .data-table .rank-num.top1 { background: #ddd !important; }
  .data-table .rank-num.top2 { background: #ccc !important; }
  .data-table .rank-num.top3 { background: #bbb !important; }

  .key-data-item {
    border: 1px solid #ccc;
    background: #f9f9f9;
  }
  .key-data-item .value {
    color: #000;
  }

  .fun-facts {
    background: #f5f5f5 !important;
    border-left: 3px solid #666 !important;
  }

  .article-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero {
    padding: 20px 0;
    background: none;
    border-bottom: 1px solid #ccc;
  }
}
