/* ============================================================
   九轩阁门户 — 全局共享样式
   设计规范: design-spec.md
   ============================================================ */

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

:root {
  --gold: #C9A96E;
  --gold-light: #E0D3B8;
  --gold-dark: #A68B4C;
  --red: #8B2D3B;
  --red-dark: #6B1D2B;
  --ink: #1A1A1A;
  --ink-light: #3A3A3A;
  --cream: #FAF7F2;
  --cream-dark: #F0EBE0;
  --paper: #FDFCF8;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] {
  --gold: #D4AF6A;
  --gold-light: #5A4A30;
  --gold-dark: #C9A96E;
  --red: #C44D5E;
  --red-dark: #E07080;
  --ink: #E8E6E3;
  --ink-light: #B0ADAA;
  --cream: #1E1E24;
  --cream-dark: #252530;
  --paper: #16161C;
  --white: #1E1E24;
  --shadow: 0 4px 24px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.4);
}
/* Theme toggle button */
.theme-toggle {
  background: none; border: 1px solid rgba(201,169,110,0.3); border-radius: 100px;
  cursor: pointer; font-size: 0.9rem; padding: 3px 8px; transition: var(--transition);
  color: var(--ink-light); display: inline-flex; align-items: center;
}
.theme-toggle:hover { border-color: var(--gold); }

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

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

body {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 900; line-height: 1.2; letter-spacing: 0.02em; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h3 { font-size: clamp(1rem, 1.5vw, 1.2rem); }

.serif { font-family: "Noto Serif SC", "SimSong", "STSong", "Source Han Serif SC", serif; font-weight: 900; }

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

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
  padding: 0 2rem;
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.06); }

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 56px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; position: absolute; left: 0; z-index: 2; }
.nav-logo { width: 34px; height: 40px; object-fit: contain; border-radius: 4px; }
.nav-title { font-size: 1.1rem; font-weight: 700; color: var(--red-dark); letter-spacing: 2px; }

.nav-links { display: flex; gap: 1.1rem; list-style: none; align-items: center; justify-content: center; }
.nav-links .nav-right-group { position: absolute; right: 0; display: flex; align-items: center; gap: 0.5rem; z-index: 2; }
.nav-links a {
  text-decoration: none; color: var(--ink-light); font-size: 0.82rem;
  font-weight: 500; letter-spacing: 1px;
  position: relative; padding: 4px 0;
  transition: var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 0.8rem 0; min-width: 160px; z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 0.5rem 1.5rem;
  font-size: 0.85rem; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--cream); }

/* Mobile menu */
.menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; background: var(--paper); padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gold-light); gap: 1rem; box-shadow: var(--shadow-lg);
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: flex; }
  .nav-dropdown-menu { position: static; transform: none; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

/* ===== Page Header ===== */
.page-header {
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 5rem 1.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(175deg, var(--paper) 0%, var(--cream-dark) 40%, var(--cream) 100%);
}

/* ===== Module Hero (modules static pages) ===== */
.module-hero {
  position: sticky; top: 0; z-index: 1000;
  text-align: center; padding: 2.6rem 1.5rem 1.8rem; color: #fff;
}
.module-hero h1 { color: #fff; letter-spacing: 4px; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.4rem; }
.module-hero p { color: rgba(255,255,255,0.92); max-width: 640px; margin: 0 auto; font-size: 0.95rem; line-height: 1.7; }
.page-header h1 { color: var(--red-dark); letter-spacing: 3px; margin-bottom: 0.3rem; }
.page-header .subtitle { color: var(--ink-light); letter-spacing: 1px; font-size: 0.95rem; }

/* ===== Section Common ===== */
.section { padding: 2.5rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 1.5rem; }
.section-tag {
  display: inline-block; padding: 3px 12px;
  background: rgba(201,169,110,0.1); color: var(--gold-dark);
  border-radius: 100px; font-size: 0.75rem; letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.section-header h2 { color: var(--red-dark); letter-spacing: 2px; margin-bottom: 0.3rem; }
.section-header p { color: #777; max-width: 600px; margin: 0 auto; font-size: 0.9rem; }

.divider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0.4rem 0;
}
.divider::before, .divider::after { content: ''; width: 30px; height: 1px; background: var(--gold); }
.divider span { color: var(--gold-dark); font-size: 1rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 22px; border-radius: 100px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 1px;
  text-decoration: none; cursor: pointer;
  transition: var(--transition); border: none;
}
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; box-shadow: 0 4px 16px rgba(139,45,59,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,45,59,0.4); color: #fff; }
.btn-outline { background: transparent; color: var(--red-dark); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; box-shadow: 0 4px 16px rgba(168,139,76,0.3); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(168,139,76,0.4); color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* ===== Cards (generic) ===== */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.2rem; transition: var(--transition);
  border: 1px solid rgba(0,0,0,.05);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ===== Pills / Tags ===== */
.pill {
  display: inline-block; padding: 2px 10px;
  border-radius: 100px; font-size: 0.73rem;
  font-weight: 600; letter-spacing: 0.5px;
}
.pill-gold { background: rgba(201,169,110,0.12); color: var(--gold-dark); }
.pill-red { background: rgba(139,45,59,0.1); color: var(--red); }
.pill-green { background: rgba(91,122,110,0.1); color: #5B7A6E; }

/* ===== Announcement Bar ===== */
.announce-bar {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; padding: 12px 2rem; text-align: center;
  font-size: 0.9rem; letter-spacing: 1px; position: relative;
  margin-top: 56px;
}
.announce-bar a { color: var(--gold-light); text-decoration: underline; }
.announce-bar .announce-close {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; cursor: pointer; font-size: 1.2rem;
}

/* ===== Fade In ===== */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; border: none;
  font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(139,45,59,0.3);
  opacity: 0; transform: translateY(20px);
  transition: var(--transition); pointer-events: none;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* ===== Footer ===== */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  text-align: center; padding: 1.5rem; letter-spacing: 1px;
}
.footer .footer-logo { width: 40px; height: auto; margin-bottom: 0.5rem; opacity: 0.8; }
.footer h4 { color: var(--gold-light); letter-spacing: 2px; margin-bottom: 0.3rem; font-size: 0.95rem; }
.footer p { font-size: 0.78rem; margin-bottom: 0.2rem; }

/* ===== Admin Panel Styles ===== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 72px); margin-top: 72px; }
.admin-sidebar { background: var(--ink); color: #fff; padding: 2rem 1rem; }
.admin-sidebar h3 { color: var(--gold-light); letter-spacing: 2px; margin-bottom: 1.5rem; font-size: 1rem; }
.admin-sidebar a { display: block; color: rgba(255,255,255,0.7); padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.9rem; letter-spacing: 1px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { padding: 2rem; background: var(--cream); }
.admin-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.admin-card h3 { margin-bottom: 1rem; letter-spacing: 1px; }

/* Form controls */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; letter-spacing: 1px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Toast */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 24px;
  border-radius: 100px; font-size: 0.9rem; letter-spacing: 1px;
  z-index: 9999; animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }

/* ===== Table ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.data-table th { background: var(--cream); font-weight: 700; letter-spacing: 1px; color: var(--ink); }
.data-table tr:hover td { background: var(--cream); }

/* ===== Wiki Styles ===== */
.wiki-content { max-width: 800px; margin: 0 auto; line-height: 2; }
.wiki-content h1, .wiki-content h2, .wiki-content h3 { color: var(--red-dark); margin: 1.5rem 0 0.8rem; }
.wiki-content p { margin-bottom: 1rem; color: #333; }
.wiki-content ul, .wiki-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.wiki-content code { background: var(--cream-dark); padding: 2px 8px; border-radius: 4px; font-size: 0.9em; }
.wiki-content pre { background: var(--ink); color: #eee; padding: 1rem; border-radius: var(--radius); overflow-x: auto; margin: 1rem 0; }
.wiki-content blockquote { border-left: 4px solid var(--gold); padding: 0.5rem 1rem; margin: 1rem 0; background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; }
.wiki-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.wiki-content th, .wiki-content td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
.wiki-content th { background: var(--cream); }

/* ===== Module Page Common ===== */
.module-hero {
  min-height: 22vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4.5rem 1.5rem 1.5rem;
  color: #fff; position: relative; overflow: hidden;
}
.module-hero::before {
  content: ''; position: absolute; top: -30%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.module-hero-content { position: relative; z-index: 1; }
.module-hero h1 { color: #fff; letter-spacing: 3px; margin-bottom: 0.25rem; }
.module-hero .mod-subtitle { color: rgba(255,255,255,0.8); letter-spacing: 1px; font-size: 0.9rem; }
.module-hero .mod-coin-badge {
  display: inline-block; margin-top: 0.5rem; padding: 4px 16px;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px; font-size: 0.8rem; letter-spacing: 1px;
}

.module-detail-section { padding: 2rem 1.5rem; }
.module-detail-section:nth-child(even) { background: var(--cream); }
.module-detail-section:nth-child(odd) { background: var(--white); }

/* ===== Coach Table ===== */
.coach-table-wrap { overflow-x: auto; }
.coach-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.coach-table th { background: var(--red); color: #fff; padding: 14px 16px; font-size: 0.9rem; letter-spacing: 1px; text-align: left; }
.coach-table th:first-child { border-radius: var(--radius) 0 0 0; }
.coach-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.coach-table td { padding: 12px 16px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.coach-table tr:hover td { background: var(--cream); }
.coach-table .coach-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-light); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gold-dark); }

/* Responsive */
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; padding: 1rem; gap: 0.5rem; }
  .admin-sidebar h3 { display: none; }
  .section { padding: 3rem 1rem; }
}

/* Logo background blending */
.nav-logo, .hero-logo { mix-blend-mode: multiply; }
.footer .footer-logo { mix-blend-mode: normal; filter: grayscale(100%) brightness(1.5); }

/* ============================================================
   动态页面（page.html）样式
   ============================================================ */

/* 页面包裹器 */
/* 导航固定在顶部，整页下推一个导航高度，避免首个区块被压在导航下面 */
.dyn-page { min-height: 100vh; display: flex; flex-direction: column; padding-top: var(--nav-h, 56px); }
.dyn-page .navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

/* 面包屑 — 全宽通栏 */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.6rem 2rem;
  font-size: 0.8rem; color: #999; letter-spacing: 1px;
  background: var(--cream); border-bottom: 1px solid rgba(0,0,0,.04);
}
.breadcrumb a { color: var(--gold-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: #ccc; }

/* 动态 Hero */
.dyn-hero {
  min-height: 26vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1.5rem 2rem;
  color: #fff; position: relative; overflow: hidden;
}
.dyn-hero::before {
  content: ''; position: absolute; top: -30%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.dyn-hero-content { position: relative; z-index: 1; }
.dyn-hero h1 { color: inherit; letter-spacing: 3px; margin-bottom: 0.3rem; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.dyn-hero .dyn-hero-sub { color: inherit; opacity: 0.85; letter-spacing: 1px; font-size: 0.92rem; }
.dyn-hero .dyn-hero-badge {
  display: inline-block; margin-bottom: 0.6rem; padding: 3px 14px;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px; font-size: 0.73rem; letter-spacing: 2px;
}

/* 页面内容布局：侧边栏 + 正文 */
.dyn-layout {
  display: flex; gap: 0; max-width: 1200px; margin: 0 auto;
  align-items: flex-start; flex: 1;
}
.dyn-sidebar {
  width: 200px; flex-shrink: 0;
  position: sticky; top: 56px;
  max-height: calc(100vh - 56px); overflow-y: auto;
  padding: 1.5rem 0 1.5rem 1.5rem;
}
.dyn-sidebar-title {
  font-weight: 700; color: var(--red-dark); letter-spacing: 2px;
  font-size: 0.82rem; margin-bottom: 0.6rem; padding-left: 0.8rem;
}
.dyn-sidenav { list-style: none; padding: 0; margin: 0; }
.dyn-sidenav-link {
  display: block; padding: 0.5rem 0.8rem; font-size: 0.82rem;
  letter-spacing: 1px; color: var(--ink-light); text-decoration: none;
  border-left: 3px solid transparent; transition: var(--transition);
  border-radius: 0 6px 6px 0;
}
.dyn-sidenav-link:hover { color: var(--red); background: rgba(139,45,59,0.04); }
.dyn-sidenav-link.active {
  color: var(--red-dark); font-weight: 600;
  border-left-color: var(--gold); background: rgba(201,169,110,0.08);
}
.dyn-main {
  flex: 1; min-width: 0;
  padding: 1.5rem 1.5rem 3rem;
}
.dyn-content {
  max-width: 860px; margin: 0 auto; line-height: 1.9;
}
/* ============================================================
   内容舞台（Content Stage）
   ------------------------------------------------------------
   所有上传的 HTML 都装进同一个「舞台」里呈现，宿主只负责外框
   （导航 / 面包屑 / 标题 / 工具条），不干预内容自身的排版与交互。
   舞台有两种模式，由归一化引擎探测出的版式决定：
     · flow  — 竖版长文：iframe 自动撑高，随宿主页面一起滚动
     · stage — 左右翻页 / 整屏分页 / 满屏单页：iframe 锁定为一屏
               高度，翻页与滚动都发生在内容内部，不被宿主拉伸
   ============================================================ */
.dyn-html-frame {
  width: 100%; border: none; display: block; background: #fff;
  min-height: 300px;
}

.dyn-stage {
  position: relative; width: 100%;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(201,169,110,0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dyn-stage > .stage-body { flex: 1; min-height: 0; display: flex; }
.dyn-stage > .stage-body > .dyn-html-frame { flex: 1; }
/* PDF 在有固定高度的舞台里同样填满 */
.dyn-stage.stage-screen > .stage-body > .pdf-viewer,
.dyn-stage.stage-boxed > .stage-body > .pdf-viewer {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  border-radius: 0; box-shadow: none;
}
.dyn-stage.stage-screen > .stage-body > .pdf-viewer .pdf-canvas-wrap,
.dyn-stage.stage-boxed > .stage-body > .pdf-viewer .pdf-canvas-wrap { flex: 1; min-height: 0; }

/* ── 三种显示窗口 ── */
/* auto：容器高度跟随内容，随页面一起滚 */
.dyn-stage.stage-flow > .stage-body { display: block; }
/* screen：锁一屏高，内容自己滚 */
.dyn-stage.stage-screen {
  height: calc(100vh - var(--stage-offset, 190px));
  min-height: 380px;
}
/* ratio / fixed：高度由 JS 按比例或像素写在行内 */
.dyn-stage.stage-boxed { min-height: 240px; }
.dyn-stage.stage-screen .dyn-html-frame,
.dyn-stage.stage-boxed .dyn-html-frame { height: 100%; min-height: 0; }

/* ============================================================
   页面标题条（精简版，不再有面包屑）
   ============================================================ */
.dyn-hero.slim {
  min-height: 0; padding: 0.7rem 1.6rem 0.75rem;
  text-align: left; justify-content: flex-start;
}
.dyn-hero.slim::before { display: none; }
.dyn-hero.slim .dyn-hero-content {
  display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap;
  max-width: 1400px; width: 100%; margin: 0 auto;
}
.dyn-hero.slim h1 {
  font-size: clamp(1rem, 1.8vw, 1.3rem); letter-spacing: 2px; margin: 0;
}
.dyn-hero.slim .dyn-hero-sub {
  font-size: 0.76rem; opacity: 0.78; letter-spacing: 0.5px; margin: 0;
}
.dyn-hero.slim .dyn-hero-badge {
  margin: 0; padding: 1px 9px; font-size: 0.66rem; letter-spacing: 1px;
}

/* 外部应用内嵌（embed 类型）：iframe 填满 Hero 以下的视口 */
.dyn-embed-wrap {
  width: 100%;
  height: calc(100vh - 150px);   /* 渲染后 JS 按实际 Hero 高度重写 */
  min-height: 380px;
  background: var(--white);
  border: 1px solid rgba(201,169,110,0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dyn-embed-frame {
  width: 100%; height: 100%; border: 0; display: block; background: #fff;
}

/* ============================================================
   左侧文件目录（一个页面挂多个 HTML / PDF 时出现）
   ============================================================ */
.file-nav {
  width: var(--file-nav-w, 236px); flex-shrink: 0;
  position: sticky; top: calc(var(--nav-h, 56px) + 8px);
  max-height: calc(100vh - var(--nav-h, 56px) - 16px);
  display: flex; flex-direction: column;
  padding: 1rem 0 1rem 1.1rem;
}
/* 滚动只发生在内容区，抽屉头（手机端）保持吸顶 */
.file-nav-body { min-height: 0; overflow-y: auto; padding-right: 0.7rem; }

/* ── 宽度拖拽手柄（右缘；sticky 元素本身即定位包含块）── */
.file-nav-resizer {
  position: absolute; top: 0; right: -3px; width: 9px; height: 100%;
  cursor: col-resize; z-index: 6; touch-action: none;
  display: flex; align-items: center; justify-content: center;
}
.file-nav-resizer::after {
  content: ''; width: 2px; height: 32px; border-radius: 2px;
  background: rgba(201,169,110,.28); transition: background .2s ease, height .2s ease;
}
.file-nav-resizer:hover::after,
.file-nav-resizer.dragging::after { background: var(--gold); height: 62px; }
.file-nav-title {
  font-weight: 700; color: var(--red-dark); letter-spacing: 2px;
  font-size: 0.78rem; margin-bottom: 0.6rem; padding-left: 0.3rem;
  display: flex; align-items: center; gap: 5px;
}
.file-nav-title .fnt-count {
  font-size: 0.66rem; background: rgba(201,169,110,.2); color: var(--gold-dark);
  border-radius: 100px; padding: 0 7px; letter-spacing: 0;
}
.file-nav-title .fnt-badge { display: inline-flex; align-items: center; gap: 5px; }
/* 抽屉头扩展元素（当前文件名 / 箭头）：仅手机端媒体查询中显示 */
.file-nav-title .fnt-current,
.file-nav-title .fnt-arrow { display: none; }
/* ── 分组（后台自定义，可排序；分组区位于文件目录之上） ── */
.file-group { margin-bottom: 9px; }
.file-group:last-child { margin-bottom: 0; }
.file-group-head {
  width: 100%; display: flex; align-items: center; gap: 5px;
  padding: 3px 6px; margin-bottom: 2px;
  background: none; border: none; font-family: inherit; cursor: pointer;
  border-radius: 6px; text-align: left;
}
.file-group-head:hover { background: rgba(201,169,110,.1); }
.file-group-head .fg-name {
  flex: 1; min-width: 0; font-size: 0.72rem; font-weight: 700;
  color: var(--gold-dark); letter-spacing: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-group-head .fg-count {
  flex-shrink: 0; font-size: 0.6rem; color: var(--gold-dark);
  background: rgba(201,169,110,.18); border-radius: 100px; padding: 0 6px;
}
.file-group-head .fg-arrow {
  flex-shrink: 0; font-size: 0.58rem; color: var(--gold-dark);
  transition: transform 0.22s ease;
}
.file-group.collapsed .fg-arrow { transform: rotate(-90deg); }
.file-group.collapsed .file-list { display: none; }
.file-group.is-ungrouped .fg-name { color: #9c9c9c; }
.file-group.is-ungrouped .fg-count { color: #9c9c9c; background: rgba(0,0,0,.05); }

.file-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.file-item {
  width: 100%; display: flex; align-items: flex-start; gap: 6px;
  padding: 5px 7px; border-radius: 7px; cursor: pointer; text-align: left;
  background: none; border: 1px solid transparent; font-family: inherit;
  transition: var(--transition);
}
.file-item:hover { background: rgba(201,169,110,.08); border-color: rgba(201,169,110,.25); }
.file-item.active {
  background: rgba(139,45,59,.05); border-color: rgba(139,45,59,.2);
  box-shadow: inset 3px 0 0 var(--red);
}
.file-item .fi-icon { flex-shrink: 0; font-size: 0.86rem; line-height: 1.36; }
.file-item .fi-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.file-item .fi-title {
  font-size: 0.775rem; color: var(--ink); line-height: 1.34;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-item.active .fi-title { color: var(--red-dark); font-weight: 600; }
/* 第二行：贡献人 —— 独占一行，完整显示（不再省略截断） */
.file-item .fi-contrib-line {
  display: block; width: 100%;
  font-size: 0.66rem; color: #8a8a8a; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-item.active .fi-contrib-line { color: #8a6f54; }
/* 第三行：上传时间 · 点击/下载数 —— 单行排布 */
.file-item .fi-meta {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.68rem; color: #9b9b9b; line-height: 1.3; min-width: 0;
  margin-top: 1px;
}
.file-item .fi-flex { flex: 1; min-width: 2px; }
.file-item .fi-stat { flex-shrink: 0; white-space: nowrap; }
.file-item .fi-stat.clk { color: #9b9b9b; }
.file-item .fi-stat.dl { color: #86937f; }
.file-item .fi-meta:empty { display: none; }
.file-item .fi-meta[hidden] { display: none; }

.dyn-layout.with-file-nav { max-width: 1400px; }
.dyn-layout.has-stage .dyn-main { padding: 1rem 1.5rem 2.5rem; }
.dyn-layout.has-stage .dyn-content { max-width: none; }
body.stage-fixed-mode .footer,
body.stage-fixed-mode .back-to-top { display: none; }

.stage-tag.subtle { background: rgba(0,0,0,.045); color: #8a8a8a; }
a.stage-btn { text-decoration: none; display: inline-flex; align-items: center; }

@media (max-width: 768px) {
  /* ── 手机端：文件目录收为可折叠抽屉 ── */
  .file-nav {
    position: static; width: 100%; max-height: none;
    padding: 0.7rem 1rem 0.9rem;
    background: var(--cream);
    border-bottom: 2px solid rgba(201,169,110,0.35);
    display: block;
  }
  .file-nav-resizer { display: none; }   /* 手机端为抽屉，无拖宽概念 */
  .file-nav-title {
    cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
    background: var(--white);
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(201,169,110,0.18);
  }
  .file-nav-title .fnt-badge { flex-shrink: 0; font-size: 0.78rem; }
  .file-nav-title .fnt-current {
    display: block; flex: 1; min-width: 0;
    font-size: 0.875rem; font-weight: 600; color: var(--red-dark);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .file-nav-title .fnt-arrow {
    display: inline-block; flex-shrink: 0;
    font-size: 0.8rem; color: var(--gold-dark);
    transition: transform 0.25s ease;
  }
  .file-nav.open .fnt-arrow { transform: rotate(180deg); }
  .file-nav-body {
    display: none;
    margin-top: 0.5rem;
    padding: 0.3rem;
    background: var(--white);
    border: 1px solid rgba(201,169,110,0.28);
    border-radius: 10px;
    overflow: visible;
  }
  .file-nav.open .file-nav-body { display: block; }
  .file-group { margin-bottom: 8px; }
  .file-group-head { padding: 6px 8px; }
  .file-group-head .fg-name { font-size: 0.8rem; }
  .file-group-head .fg-count { font-size: 0.68rem; }
  .file-item { padding: 9px 11px; border-radius: 8px; }
  .file-item .fi-icon { font-size: 0.95rem; }
  .file-item .fi-title { font-size: 0.875rem; white-space: normal; }
  .file-item .fi-meta { font-size: 0.74rem; }
  .file-item .fi-contrib-line { white-space: normal; }
  .dyn-hero.slim { padding: 0.6rem 1rem; }
}

/* 舞台工具条 */
.stage-bar {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.5rem 0.9rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  border-bottom: 1px solid rgba(201,169,110,0.2);
}
.stage-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(201,169,110,0.14); color: var(--gold-dark);
  font-size: 0.72rem; letter-spacing: 1px; white-space: nowrap;
}
.stage-tag.tone-ok { background: rgba(91,122,110,0.12); color: #4C6A5E; }
.stage-bar-spacer { flex: 1; }
.stage-btn {
  background: var(--white); color: var(--ink-light);
  border: 1px solid rgba(0,0,0,.1); border-radius: 8px;
  padding: 4px 12px; font-size: 0.76rem; letter-spacing: 1px;
  cursor: pointer; transition: var(--transition); font-family: inherit;
  white-space: nowrap;
}
.stage-btn:hover { border-color: var(--gold); color: var(--red); background: var(--cream); }
.stage-btn.on { background: var(--red); border-color: var(--red); color: #fff; }

/* 全屏专注：舞台铺满视口 */
.dyn-stage:fullscreen { border-radius: 0; border: none; height: 100vh; }
.dyn-stage:fullscreen .dyn-html-frame { height: calc(100vh - 41px); }
.dyn-stage:-webkit-full-screen { border-radius: 0; border: none; height: 100vh; }

/* 舞台模式下：正文区放宽，页脚让位 */
.dyn-layout.has-stage .dyn-content { max-width: 1180px; }
.dyn-layout.has-stage.stage-fixed-layout .dyn-content { max-width: none; }
body.stage-fixed-mode .footer { display: none; }
body.stage-fixed-mode .back-to-top { display: none; }

/* 附件浮层（舞台内容为 HTML 且带附件时） */
.html-att-pop {
  position: fixed; right: 14px; bottom: 56px; z-index: 2000;
  width: 260px; max-height: 60vh; overflow-y: auto;
  background: var(--white); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.18);
  padding: 0.8rem; display: flex; flex-direction: column; gap: 6px;
}
.html-att-pop[hidden] { display: none; }
.html-att-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 8px; cursor: pointer; border: 1px solid rgba(0,0,0,.06);
  transition: all 0.2s ease;
}
.html-att-item:hover { border-color: var(--gold); background: var(--cream); }
.html-att-item .ic { flex-shrink: 0; }
.html-att-item .t {
  flex: 1; min-width: 0; font-size: 0.8rem; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.html-att-item .dl {
  flex-shrink: 0; text-decoration: none; color: #5B7A6E;
  font-size: 0.8rem; font-weight: 700; padding: 2px 6px;
}
.html-att-item .dl:hover { color: var(--red); }

@media (max-width: 768px) {
  .dyn-stage.stage-fixed { height: calc(100vh - var(--stage-offset-mobile, 150px)); }
  .stage-bar { padding: 0.45rem 0.6rem; gap: 0.4rem; }
  .stage-btn { padding: 4px 9px; font-size: 0.72rem; }
}
.dyn-content h1, .dyn-content h2, .dyn-content h3 { color: var(--red-dark); margin: 1.5rem 0 0.8rem; }
.dyn-content p { margin-bottom: 1rem; color: #333; }
.dyn-content ul, .dyn-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.dyn-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.dyn-content th, .dyn-content td { border: 1px solid #ddd; padding: 8px 12px; text-align: left; }
.dyn-content th { background: var(--cream); }
.dyn-content blockquote {
  border-left: 4px solid var(--gold); padding: 0.5rem 1rem;
  margin: 1rem 0; background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0;
}
.dyn-content pre { background: var(--ink); color: #eee; padding: 1rem; border-radius: var(--radius); overflow-x: auto; }
.dyn-content code { background: var(--cream-dark); padding: 2px 8px; border-radius: 4px; font-size: 0.9em; }

/* 空内容提示 */
.dyn-empty {
  text-align: center; padding: 3rem 1rem; color: #999; letter-spacing: 1px;
}
.dyn-empty .dyn-empty-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }

/* 页面未发布提示 */
.dyn-unpublished {
  text-align: center; padding: 4rem 2rem;
  background: var(--cream); border-radius: var(--radius-lg);
  max-width: 500px; margin: 2rem auto;
}
.dyn-unpublished h2 { color: var(--ink-light); margin-bottom: 0.5rem; }

/* ============================================================
   管理后台 — 菜单树管理
   ============================================================ */

/* 树形控件 */
.tree-view { padding: 0; }
.tree-node { margin-bottom: 2px; }
.tree-node-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.8rem; border-radius: 8px;
  cursor: pointer; transition: var(--transition);
  background: var(--white); border: 1px solid rgba(0,0,0,.06);
}
.tree-node-header:hover { background: var(--cream); }
.tree-node-header .tree-toggle {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: #999; transition: transform 0.2s;
}
.tree-node-header .tree-toggle.open { transform: rotate(90deg); }
.tree-node-header .tree-icon { font-size: 1rem; }
.tree-node-header .tree-label {
  flex: 1; font-weight: 600; font-size: 0.9rem; letter-spacing: 1px;
  color: var(--ink);
}
.tree-node-header .tree-meta {
  font-size: 0.72rem; color: #999; letter-spacing: 0.5px;
}
.tree-node-header .tree-actions {
  display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s;
}
.tree-node-header:hover .tree-actions { opacity: 1; }
.tree-actions button {
  background: none; border: 1px solid #ddd; border-radius: 6px;
  padding: 3px 8px; font-size: 0.7rem; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.tree-actions button:hover { background: var(--cream); border-color: var(--gold); }
.tree-actions .btn-tree-del { color: var(--red); border-color: rgba(139,45,59,0.2); }
.tree-actions .btn-tree-del:hover { background: rgba(139,45,59,0.08); }

.tree-children {
  margin-left: 1.5rem; padding-left: 0.8rem;
  border-left: 2px solid rgba(201,169,110,0.2);
  overflow: hidden; transition: max-height 0.3s ease;
}
.tree-children.collapsed { max-height: 0 !important; }

/* 页面子节点 */
.tree-page-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.7rem; margin-bottom: 1px;
  border-radius: 6px; cursor: pointer; transition: var(--transition);
  border: 1px solid transparent;
}
.tree-page-item:hover { background: var(--cream); border-color: rgba(0,0,0,.04); }
.tree-page-item .page-icon { font-size: 0.85rem; }
.tree-page-item .page-label {
  flex: 1; font-size: 0.82rem; color: var(--ink-light); letter-spacing: 0.5px;
}
.tree-page-item .page-path {
  font-size: 0.7rem; color: #aaa; font-family: monospace;
}
.tree-page-item .page-status {
  display: inline-block; padding: 2px 8px; border-radius: 100px;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.5px;
}
.page-status.published { background: rgba(91,122,110,0.1); color: #5B7A6E; }
.page-status.draft { background: rgba(139,45,59,0.08); color: var(--red); }
.tree-page-item .page-actions { display: flex; gap: 3px; opacity: 0; transition: opacity 0.2s; }
.tree-page-item:hover .page-actions { opacity: 1; }
.page-actions button {
  background: none; border: 1px solid #ddd; border-radius: 4px;
  padding: 2px 6px; font-size: 0.65rem; cursor: pointer; transition: var(--transition);
}
.page-actions button:hover { background: var(--cream); border-color: var(--gold); }

/* 编辑对话框 */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
}
.modal-overlay .modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.5rem 2rem; max-width: 640px; width: 90%;
  max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-box .modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.modal-box .modal-header h3 { letter-spacing: 1px; font-size: 1.1rem; color: var(--red-dark); }
.modal-box .modal-close {
  background: none; border: none; font-size: 1.3rem; cursor: pointer;
  color: #999; padding: 4px 8px; border-radius: 6px;
}
.modal-box .modal-close:hover { background: var(--cream); color: var(--ink); }
.modal-box .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) {
  .modal-box .form-row { grid-template-columns: 1fr; }
}

/* 拖拽排序 */
.sort-handle { cursor: grab; color: #ccc; font-size: 0.8rem; padding: 0 4px; user-select: none; }
.sort-handle:active { cursor: grabbing; }
.tree-page-item.drag-over { border-top: 2px solid var(--gold); }

/* 面包屑在管理后台 */
.admin-breadcrumb {
  display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap;
  font-size: 0.78rem; color: #999; margin-bottom: 1rem;
}
.admin-breadcrumb a { color: var(--gold-dark); text-decoration: none; }
.admin-breadcrumb .sep { color: #ccc; }

/* 在动态页面 768px 以下侧边栏隐藏 */
@media (max-width: 768px) {
  /* 竖排后主轴变成纵向，继承来的 align-items:flex-start 会让子元素按内容
     宽度收缩 —— iframe 默认宽 300px，舞台就会缩成一条。必须显式拉伸。 */
  .dyn-layout { flex-direction: column; align-items: stretch; }
  .dyn-sidebar {
    position: static; width: 100%; max-height: none;
    padding: 0.5rem 1rem; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center;
  }
  .dyn-sidebar-title { display: none; }
  .dyn-sidenav { display: flex; flex-wrap: wrap; gap: 4px; }
  .dyn-sidenav-link { border-left: none; border-bottom: 2px solid transparent; padding: 0.35rem 0.6rem; border-radius: 6px; font-size: 0.75rem; }
  .dyn-sidenav-link.active { border-left-color: transparent; border-bottom-color: var(--gold); }
  .dyn-main { padding: 1rem; }
  .breadcrumb { padding: 0.5rem 1rem; }
}

/* ============================================================
   页面二维码（永久链接）
   ------------------------------------------------------------
   每个页面右上角常驻一个小二维码，内容＝该页面的正式访问地址，
   扫码即达，链接不随版本变化。点击展开大图，可复制链接 / 打开 /
   下载 PNG。二维码一律白底黑块（暗色主题下也不反色，保证扫码率）。
   ============================================================ */
.jx-qr-fab {
  position: fixed; z-index: 900;
  top: calc(var(--nav-h, 56px) + 10px); right: 14px;
  width: 80px; padding: 5px 5px 4px;
  background: #FFFFFF; border: 1px solid rgba(201,169,110,.45);
  border-radius: 9px; box-shadow: 0 4px 16px rgba(0,0,0,.14);
  cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: var(--transition);
}
.jx-qr-fab:hover {
  transform: translateY(-2px); border-color: var(--gold);
  box-shadow: 0 8px 26px rgba(0,0,0,.2);
}
.jx-qr-fab svg { display: block; width: 100%; height: auto; }
.jx-qr-fab .jx-qr-cap {
  font-size: 0.6rem; color: #A68B4C; letter-spacing: 0.5px; line-height: 1;
}
body.stage-fixed-mode .jx-qr-fab { top: calc(var(--nav-h, 56px) + 10px); }

.jx-qr-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 3000;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.jx-qr-card {
  position: relative; background: #FFFFFF; color: #1A1A1A;
  border-radius: var(--radius-lg); padding: 1.1rem 1.3rem 1.2rem;
  width: 300px; max-width: 100%; box-shadow: var(--shadow-lg); text-align: center;
}
.jx-qr-card h4 { font-size: 0.92rem; color: #6B1D2B; letter-spacing: 1px; margin-bottom: 0.15rem; }
.jx-qr-card .jx-qr-sub { font-size: 0.7rem; color: #999; margin-bottom: 0.75rem; }
.jx-qr-big { display: flex; justify-content: center; margin-bottom: 0.7rem; }
.jx-qr-big svg { width: 214px; height: 214px; cursor: pointer; border-radius: 6px; }
.jx-qr-big svg:hover { outline: 2px solid rgba(201,169,110,.6); outline-offset: 3px; }
.jx-qr-url {
  font-size: 0.68rem; color: #666; word-break: break-all; line-height: 1.5;
  background: #FAF7F2; border-radius: 6px; padding: 6px 8px;
  max-height: 3.6em; overflow: auto; text-align: left; margin-bottom: 0.7rem;
}
.jx-qr-acts { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.jx-qr-acts button {
  padding: 6px 10px; font-size: 0.75rem; font-family: inherit;
  border-radius: 8px; border: 1px solid rgba(0,0,0,.12);
  background: #FFFFFF; color: #3A3A3A; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.jx-qr-acts button:hover { border-color: var(--gold); color: #8B2D3B; background: #FAF7F2; }
.jx-qr-acts button.primary {
  background: linear-gradient(135deg, #8B2D3B, #6B1D2B); color: #fff; border-color: transparent;
}
.jx-qr-close {
  position: absolute; top: 6px; right: 8px;
  background: none; border: none; font-size: 1.1rem; line-height: 1;
  color: #bbb; cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.jx-qr-close:hover { background: #FAF7F2; color: #333; }
.jx-qr-tip { font-size: 0.66rem; color: #aaa; margin-top: 0.6rem; }

@media (max-width: 768px) {
  .jx-qr-fab { width: 44px; padding: 4px; top: calc(var(--nav-h, 56px) + 8px); right: 10px; }
  .jx-qr-fab .jx-qr-cap { display: none; }
  .jx-qr-card { width: 288px; }
  .jx-qr-big svg { width: 200px; height: 200px; }
}
