/* ===== FontAwesome 静态网站 - 全局样式 (v3) ===== */

:root {
  --fa-primary: #228be6;
  --fa-primary-dark: #1864ab;
  --fa-accent: #7c3aed;
  --fa-gradient: linear-gradient(135deg, #228be6 0%, #7c3aed 100%);
  --fa-dark: #1a1a2e;
  --fa-darker: #0f0f1a;
  --fa-light: #f8f9fa;
  --fa-border: #e9ecef;
  --fa-text: #1a1a2e;
  --fa-text-secondary: #868e96;
  --fa-success: #20c997;
  --fa-warning: #f59f00;
  --fa-danger: #e03131;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  color: var(--fa-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 66px;
}
a { color: var(--fa-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--fa-primary-dark); }

/* ===== Navbar ===== */
.navbar-main {
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.98) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  min-height: 56px;
}
.navbar-main .navbar-brand {
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--fa-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0;
}
.navbar-main .navbar-brand i { -webkit-text-fill-color: initial; color: var(--fa-primary); }
.navbar-main .nav-link {
  font-weight: 500;
  color: #495057 !important;
  margin: 0 2px;
  padding: 6px 10px !important;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.82rem;
  white-space: nowrap;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--fa-primary) !important;
  background: rgba(34,139,230,0.08);
}

/* Right side resource links in navbar */
.navbar-res-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.navbar-res-links a {
  color: #868e96;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.navbar-res-links a:hover,
.navbar-res-links a.active { color: var(--fa-primary); background: rgba(34,139,230,0.08); }
.navbar-res-links a.active { font-weight: 600; }
.navbar-res-links a i { margin-right: 3px; font-size: 0.7rem; }
.navbar-res-links .divider {
  width: 1px; height: 20px; background: #dee2e6; margin: 0 6px;
}
.navbar-ver-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
}
.ver-prefix {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fa-primary);
  margin-right: 4px;
}
.navbar-ver-tabs .ver-tab {
  color: #868e96;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.navbar-ver-tabs .ver-tab:hover { color: var(--fa-primary); background: rgba(34,139,230,0.08); }
.navbar-ver-tabs .ver-tab.active {
  color: #fff;
  background: var(--fa-gradient);
}

/* ===== Hero ===== */
.hero-section {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--fa-darker) 0%, var(--fa-dark) 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(34,139,230,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(124,58,237,0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, 5%); }
}
.hero-section * { position: relative; z-index: 1; }
.hero-section .hero-icon { color: rgba(255,255,255,0.9); font-size: 3.5rem; }
.hero-section .hero-title { font-weight: 800; font-size: 2.8rem; line-height: 1.15; color: #fff; }
.hero-section .hero-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; line-height: 1.6; }
.hero-section .hero-desc { font-size: 0.95rem; color: rgba(255,255,255,0.55); max-width: 600px; margin: 12px auto 0; line-height: 1.7; }
.hero-section h1 .gradient-text {
  background: var(--fa-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-section .lead { font-size: 1.05rem; color: rgba(255,255,255,0.6); max-width: 540px; line-height: 1.7; }
.hero-badge {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  background: rgba(34,139,230,0.12); border: 1px solid rgba(34,139,230,0.2);
  color: #6ab4f7; font-size: 0.78rem; font-weight: 600; margin-bottom: 20px;
}
.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
.hero-stats .stat .num { font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-stats .stat .label { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ===== Stats Section (homepage) ===== */
.stats-section { padding: 50px 0; }
.stat-item { padding: 20px; }
.stat-number { font-size: 2.2rem; font-weight: 800; background: var(--fa-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.9rem; color: var(--fa-text-secondary); margin-top: 4px; }

/* ===== About Section (homepage) ===== */
.about-section { padding: 60px 0; }

/* ===== Hero actions ===== */
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ===== Version Card ===== */
.version-card { border-radius: 12px; transition: all 0.3s; border: 1px solid var(--fa-border); }
.version-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: transparent; }

/* ===== Page title/desc (通用，可内可外) ===== */
.page-title { font-weight: 800; font-size: 2rem; margin-bottom: 8px; }
.page-desc { font-size: 0.95rem; color: var(--fa-text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ===== Section ===== */
section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-weight: 800; font-size: 1.6rem; margin-bottom: 8px; color: var(--fa-text); }
.section-subtitle { color: var(--fa-text-secondary); font-size: 0.95rem; max-width: 560px; margin: 0 auto; line-height: 1.7; }
.section-dark { background: var(--fa-dark); }
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.5); }
.section-light { background: var(--fa-light); }
.section-white { background: #fff; }

/* ===== Breadcrumb ===== */
.breadcrumb-bar { padding: 12px 0; background: #f8f9fa; border-bottom: 1px solid #e9ecef; }
.breadcrumb { margin: 0; font-size: 0.8rem; }
.breadcrumb-item a { color: var(--fa-text-secondary); }
.breadcrumb-item.active { color: var(--fa-primary); }

/* ===== Cards ===== */
.card-default {
  border: 1px solid var(--fa-border); border-radius: 12px;
  transition: all 0.3s;
}
.card-default:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.card-feature {
  padding: 24px; border-radius: 14px; background: #fff;
  border: 1px solid var(--fa-border); transition: all 0.3s; height: 100%;
}
.card-feature:hover {
  transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: transparent;
}
.card-feature .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; margin-bottom: 14px;
}
.card-feature h5 { font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.card-feature p { color: var(--fa-text-secondary); font-size: 0.85rem; margin: 0; }

/* ===== Icon Grid ===== */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.icon-grid .icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px 10px; border-radius: 10px; background: #fff;
  border: 1px solid var(--fa-border); cursor: pointer; transition: all 0.2s;
  position: relative; overflow: hidden;
  min-height: 72px;
}
.icon-grid .icon-item i { font-size: 1.6rem; color: var(--fa-text); transition: all 0.25s; }
.icon-grid .icon-item:hover {
  border-color: var(--fa-primary); z-index: 2;
  box-shadow: 0 4px 16px rgba(34,139,230,0.15);
  transform: translateY(-3px);
}
.icon-grid .icon-item:hover i {
  transform: scale(1.25);
  color: var(--fa-primary);
}
.icon-grid .icon-item .icon-name {
  font-size: 0.6rem; color: #868e96;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.icon-grid .icon-item .icon-cls-tooltip {
  position: absolute; bottom: -24px; left: 0; right: 0;
  background: var(--fa-darker); color: #fff; font-size: 0.55rem;
  padding: 3px 6px; text-align: center; transition: all 0.25s;
  opacity: 0; pointer-events: none; font-family: 'SF Mono', monospace;
}
.icon-grid .icon-item:hover .icon-cls-tooltip {
  bottom: 0; opacity: 1;
}
.icon-grid .icon-item .copy-feedback {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,139,230,0.9); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  border-radius: 9px; z-index: 3;
}
.icon-grid .icon-item .copy-feedback.show { opacity: 1; }
.icon-count { font-size: 0.82rem; color: var(--fa-text-secondary); text-align: center; margin-top: 16px; }

/* ===== Version Tabs (sub-version) ===== */
.version-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 6px 12px;
  background: #f1f3f5; border-radius: 12px;
}
.breadcrumb-bar .version-tabs {
  margin: 0; padding: 2px 8px;
  background: transparent;
}
.version-tabs .v-tab {
  padding: 5px 14px; border-radius: 8px; border: none;
  background: transparent; color: #868e96; font-size: 0.82rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  font-family: var(--font-family);
}
.version-tabs .v-tab:hover { color: var(--fa-primary); background: rgba(34,139,230,0.08); }
.version-tabs .v-tab.active { background: #fff; color: var(--fa-text); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* ===== Category Tabs ===== */
.cat-tabs {
  display: flex; gap: 4px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 20px;
}
.cat-tabs .cat-tab {
  padding: 4px 14px; border-radius: 100px; border: 1px solid #dee2e6;
  background: #fff; color: #495057; font-size: 0.75rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: var(--font-family);
  text-decoration: none; display: inline-block;
}
.cat-tabs .cat-tab:hover { border-color: var(--fa-primary); color: var(--fa-primary); }
.cat-tabs .cat-tab.active { background: var(--fa-primary); color: #fff; border-color: var(--fa-primary); }

/* ===== Search & Filter ===== */
.icon-toolbar { max-width: 800px; margin: 0 auto 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 160px; }
.search-box input {
  width: 100%; padding: 10px 16px 10px 42px; border-radius: 10px;
  border: 2px solid var(--fa-border); font-size: 0.9rem;
  transition: all 0.3s; background: #fff; font-family: var(--font-family);
}
.search-box input:focus { outline: none; border-color: var(--fa-primary); box-shadow: 0 0 0 3px rgba(34,139,230,0.1); }
.search-box .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #adb5bd; font-size: 0.95rem;
}
.filter-btns {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
}
.btn-filter {
  padding: 4px 14px; border-radius: 100px; border: 1px solid #dee2e6;
  background: #fff; font-size: 0.78rem; font-weight: 500; color: #495057;
  cursor: pointer; transition: all 0.2s; font-family: var(--font-family);
}
.btn-filter:hover { border-color: var(--fa-primary); color: var(--fa-primary); }
.btn-filter.active { background: var(--fa-primary); color: #fff; border-color: var(--fa-primary); }

/* ===== Tutorial Steps ===== */
.tutorial-step {
  padding: 24px; border-radius: 12px; border: 1px solid var(--fa-border);
  margin-bottom: 14px; transition: all 0.2s; background: #fff;
}
.tutorial-step:hover { border-color: var(--fa-primary); }
.tutorial-step .step-num {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--fa-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.8rem; flex-shrink: 0;
}
.tutorial-step h5 { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.tutorial-step p { font-size: 0.85rem; color: var(--fa-text-secondary); margin: 0; }

/* ===== Code Block ===== */
.code-block {
  background: var(--fa-darker); border-radius: 8px;
  padding: 12px 16px; color: #e9ecef;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.8rem; overflow-x: auto; position: relative; line-height: 1.6;
}
.code-block .copy-btn {
  position: absolute; top: 4px; right: 4px;
  background: rgba(255,255,255,0.06); border: none;
  color: rgba(255,255,255,0.4); padding: 2px 8px; border-radius: 4px;
  font-size: 0.68rem; cursor: pointer; transition: all 0.2s;
  font-family: var(--font-family);
}
.code-block .copy-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ===== Tables ===== */
.table-compare { font-size: 0.88rem; }
.table-compare th { font-weight: 700; border-top: none; padding: 14px 10px; }
.table-compare td { padding: 10px; vertical-align: middle; }
.table-compare .check { color: var(--fa-success); }
.table-compare .cross { color: var(--fa-danger); }
.table-compare .partial { color: var(--fa-warning); }

/* ===== Toast ===== */
.toast-msg {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%) translateY(-20px); z-index: 99999;
  padding: 10px 24px; border-radius: 8px; background: var(--fa-darker); color: #fff;
  font-size: 0.82rem; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0; transition: all 0.3s; pointer-events: none; white-space: nowrap;
}
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Friend Links ===== */
.friend-links-section { background: var(--fa-light); }
.friend-link-item {
  display: inline-block; padding: 8px 20px; border-radius: 8px;
  background: #fff; color: var(--fa-text-secondary); font-size: 0.88rem;
  border: 1px solid var(--fa-border); transition: all 0.2s;
}
.friend-link-item:hover {
  color: var(--fa-primary); border-color: var(--fa-primary);
  background: #fff; transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34,139,230,0.1);
}
[data-theme="dark"] .friend-links-section { background: var(--fa-dark); }
[data-theme="dark"] .friend-link-item {
  background: var(--fa-darker); border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55);
}
[data-theme="dark"] .friend-link-item:hover {
  color: var(--fa-primary); border-color: var(--fa-primary);
  box-shadow: 0 4px 12px rgba(34,139,230,0.2);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--fa-darker); color: rgba(255,255,255,0.5);
  padding: 40px 0 20px;
}
.site-footer h5 { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 0.95rem; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 12px; font-size: 0.85rem; }
.site-footer a {
  color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; font-size: 0.82rem;
}
.site-footer a:hover { color: #fff; }
.site-footer .social-link {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.04); display: inline-flex;
  align-items: center; justify-content: center; transition: all 0.2s;
  color: rgba(255,255,255,0.45); font-size: 0.9rem;
}
.site-footer .social-link:hover { background: var(--fa-primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 16px; margin-top: 28px; font-size: 0.8rem; }

/* ===== Animations ===== */
.fade-in { opacity: 0; transform: translateY(16px); transition: all 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Tags ===== */
.tag-latest {
  background: rgba(32,201,151,0.12); color: #20c997;
  border: 1px solid rgba(32,201,151,0.25); font-size: 0.68rem;
  padding: 1px 8px; border-radius: 100px; font-weight: 600;
}
.tag-stable {
  background: rgba(34,139,230,0.12); color: #228be6;
  border: 1px solid rgba(34,139,230,0.25); font-size: 0.68rem;
  padding: 1px 8px; border-radius: 100px; font-weight: 600;
}
.tag-legacy {
  background: rgba(222,226,230,0.3); color: #868e96;
  border: 1px solid #dee2e6; font-size: 0.68rem;
  padding: 1px 8px; border-radius: 100px; font-weight: 600;
}

/* ===== Page header ===== */
.page-header {
  padding: 70px 0 40px;
  background: linear-gradient(135deg, var(--fa-dark), #16213e);
  color: #fff; text-align: center;
}
.page-header .page-title { color: #fff; }
.page-header .page-desc { color: rgba(255,255,255,0.55); }

/* ===== Compare cards ===== */
.compare-card {
  border-radius: 14px; border: 1px solid var(--fa-border);
  padding: 28px; text-align: center; height: 100%; transition: all 0.3s; background: #fff;
}
.compare-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.compare-card .big-number { font-size: 2.5rem; font-weight: 900; background: var(--fa-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.compare-card .label { font-size: 0.85rem; color: var(--fa-text-secondary); margin-top: 4px; }

/* ===== Version Cards ===== */
.card-version {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--fa-border); transition: all 0.3s; height: 100%;
}
.card-version:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.card-version .card-header-custom { padding: 20px; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.card-version .card-body-custom { padding: 20px; }
.version-feature { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; font-size: 0.88rem; }
.version-feature i { color: var(--fa-primary); margin-top: 4px; flex-shrink: 0; }

/* ===== Icon Preview Modal ===== */
.icon-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.55);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.icon-modal-card {
  background: #fff; border-radius: 16px;
  padding: 40px 32px 24px;
  min-width: 280px; max-width: 380px; width: 90%;
  text-align: center; position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { transform: scale(0.9) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.icon-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 1.6rem;
  color: #adb5bd; cursor: pointer; padding: 0; line-height: 1;
  transition: color 0.2s;
}
.icon-modal-close:hover { color: var(--fa-text); }
.icon-modal-icon { margin-bottom: 18px; }
.icon-modal-icon i { font-size: 4rem; color: var(--fa-primary); }
.icon-modal-name {
  font-size: 1rem; font-weight: 700; color: var(--fa-text);
  margin-bottom: 2px;
}
.icon-modal-cls {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 16px 0;
}
.icon-modal-cls code {
  background: #f1f3f5; padding: 7px 14px; border-radius: 8px;
  font-size: 0.82rem; color: var(--fa-text); font-family: 'SF Mono', monospace;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.icon-modal-copy-btn {
  padding: 7px 16px; border-radius: 8px; border: none;
  background: var(--fa-primary); color: #fff; font-size: 0.78rem;
  cursor: pointer; font-weight: 600; transition: all 0.2s;
  white-space: nowrap; font-family: var(--font-family);
}
.icon-modal-copy-btn:hover { background: var(--fa-primary-dark); transform: translateY(-1px); }
.icon-modal-footer { min-height: 28px; }
.icon-modal-feedback {
  font-size: 0.78rem; color: var(--fa-success); font-weight: 600;
  opacity: 0; transition: opacity 0.25s;
}
.icon-modal-feedback.show { opacity: 1; }

/* ===== ===== */
.text-gradient { background: var(--fa-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== Loading spinner ===== */
.loading-icons { text-align: center; padding: 40px 0; color: var(--fa-text-secondary); }

/* ===== Category group label ===== */
.category-label {
  font-size: 1rem; font-weight: 700; color: var(--fa-text);
  padding: 20px 0 8px; border-bottom: 2px solid var(--fa-primary);
  margin-bottom: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  body { padding-top: 56px; }
  .hero-section { padding: 80px 0 50px; }
  .hero-section h1 { font-size: 2rem; }
  .navbar-res-links a { font-size: 0.7rem; padding: 3px 5px; }
  .navbar-res-links a i { margin-right: 2px; }
  .navbar-ver-tabs .ver-tab { font-size: 0.68rem; padding: 1px 6px; }
}
@media (max-width: 768px) {
  section { padding: 40px 0; }
  .section-title { font-size: 1.3rem; }
  .hero-section h1 { font-size: 1.5rem; }
  .hero-stats { gap: 16px; }
  .hero-stats .stat .num { font-size: 1.2rem; }
  .icon-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
  .icon-grid .icon-item i { font-size: 1.3rem; }
  .page-header { padding: 60px 0 30px; }
  .page-header .page-title { font-size: 1.5rem; }
  .navbar-main .navbar-brand { font-size: 0.95rem; }
  .version-tabs { padding: 4px 8px; gap: 2px; }
  .version-tabs .v-tab { padding: 4px 10px; font-size: 0.78rem; }
  .cat-tabs .cat-tab { font-size: 0.7rem; padding: 3px 10px; }
}
@media (max-width: 576px) {
  .icon-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .icon-grid .icon-item { padding: 10px 4px 8px; min-height: 64px; }
  .icon-grid .icon-item i { font-size: 1.1rem; }
  .icon-grid .icon-item .icon-name { font-size: 0.6rem; }
  .hero-section h1 { font-size: 1.2rem; }
  .navbar-res-links { gap: 0; flex-wrap: wrap; justify-content: center; }
  .navbar-res-links a { font-size: 0.65rem; padding: 3px 4px; }
  .navbar-res-links .divider { margin: 0 3px; }
  .navbar-res-links .ver-prefix { font-size: 0.65rem; }
  .filter-btns { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .filter-btns .btn-filter { font-size: 0.72rem; padding: 4px 10px; }
  .search-box input { font-size: 0.82rem; }
  .icon-toolbar { flex-direction: column; gap: 8px; }
  .search-box { width: 100%; }
  .icon-count { font-size: 0.72rem; }
  .dark-mode-btn { padding: 2px 6px; font-size: 0.78rem; }
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--fa-gradient); color: #fff; border: none;
  font-size: 1rem; cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ===== Code block enhanced ===== */
.code-block {
  position: relative;
}
.code-block .code-lang {
  position: absolute; top: 4px; left: 12px;
  font-size: 0.6rem; color: rgba(255,255,255,0.25);
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.5px; text-transform: uppercase;
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
  --fa-dark: #0f0f1a;
  --fa-darker: #06060e;
  --fa-light: #1a1a2e;
  --fa-border: #2d2d44;
  --fa-text: #e9ecef;
  --fa-text-secondary: #868e96;
}
[data-theme="dark"] body { background: #0f0f1a; color: #e9ecef; }
[data-theme="dark"] .navbar-main { background: rgba(15,15,26,0.98) !important; border-bottom-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .navbar-main .nav-link { color: #adb5bd !important; }
[data-theme="dark"] .icon-grid .icon-item { background: #1a1a2e; border-color: #2d2d44; }
[data-theme="dark"] .icon-grid .icon-item i { color: #e9ecef; }
[data-theme="dark"] .breadcrumb-bar { background: #1a1a2e; border-bottom-color: #2d2d44; }
[data-theme="dark"] .breadcrumb-item a { color: #868e96; }
[data-theme="dark"] .section-light { background: #1a1a2e; }
[data-theme="dark"] .card-default, [data-theme="dark"] .card-feature, [data-theme="dark"] .compare-card, [data-theme="dark"] .card-version { background: #1a1a2e; border-color: #2d2d44; }
[data-theme="dark"] .version-tabs { background: #0f0f1a; }
[data-theme="dark"] .version-tabs .v-tab.active { background: #2d2d44; color: #e9ecef; }
[data-theme="dark"] .btn-filter { background: #1a1a2e; border-color: #2d2d44; color: #adb5bd; }
[data-theme="dark"] .search-box input { background: #1a1a2e; border-color: #2d2d44; color: #e9ecef; }
[data-theme="dark"] .cat-tabs .cat-tab { background: #1a1a2e; border-color: #2d2d44; color: #adb5bd; }
[data-theme="dark"] .tutorial-step { background: #1a1a2e; border-color: #2d2d44; }
[data-theme="dark"] .icon-modal-card { background: #1a1a2e; }
[data-theme="dark"] .icon-modal-cls code { background: #0f0f1a; color: #e9ecef; }
[data-theme="dark"] .page-header { background: linear-gradient(135deg, #06060e, #0f0f1a); }
[data-theme="dark"] .site-footer { background: #06060e; }
[data-theme="dark"] .back-to-top { background: #2d2d44; color: #e9ecef; }
[data-theme="dark"] .back-to-top:hover { background: #3d3d54; }
[data-theme="dark"] .hero-section { background: linear-gradient(135deg, #06060e 0%, #0f0f1a 50%, #1a1a2e 100%); }
[data-theme="dark"] .hero-section .hero-subtitle { color: #868e96; }
[data-theme="dark"] .about-card { background: #1a1a2e; border-color: #2d2d44; }
[data-theme="dark"] .faq-item { background: #1a1a2e; border-color: #2d2d44; }
[data-theme="dark"] .compare-card-alt { background: #1a1a2e; border-color: #2d2d44; }
[data-theme="dark"] .code-block { background: #06060e; }
[data-theme="dark"] .code-block code { color: #e9ecef; }
[data-theme="dark"] .alert { background: #1a1a2e; border-color: #2d2d44; color: #e9ecef; }
[data-theme="dark"] .list-group-item { background: #1a1a2e; border-color: #2d2d44; color: #e9ecef; }
[data-theme="dark"] .table { color: #e9ecef; }
[data-theme="dark"] .table td, [data-theme="dark"] .table th { border-color: #2d2d44; }
[data-theme="dark"] .version-hero h1 { color: #e9ecef; }
[data-theme="dark"] .version-hero p { color: #868e96; }

.dark-mode-btn {
  background: none; border: none; color: #868e96; cursor: pointer;
  padding: 4px 8px; border-radius: 6px; font-size: 0.9rem;
  transition: all 0.2s; line-height: 1;
}
.dark-mode-btn:hover { color: var(--fa-primary); background: rgba(34,139,230,0.08); }
[data-theme="dark"] .dark-mode-btn { color: #adb5bd; }
[data-theme="dark"] .dark-mode-btn:hover { color: #ffd43b; background: rgba(255,212,59,0.08); }

@media print {
  .navbar-main, .site-footer, .toast-msg, .breadcrumb-bar { display: none !important; }
  body { padding-top: 0; }
  .hero-section { padding: 30px 0 !important; }
}
