/* public/v2/modules/article/article.css —— 文章模块样式  v1.0.0
 * 类名一律带 art- / a- 前缀，不与主系统 .wx-* / .cp-* 撞名。
 * 取值向主系统靠：金色 #D8B478、正文 #333、标题 #1a1a1a、细分隔 #F0F0F0、圆角 12px。
 */

/* ================= 引用 ================= */
.art-quote {
  position: relative;
  margin: 26px 0 26px;
  padding: 22px 20px 18px 22px;
  background: linear-gradient(180deg, #FDFAF4, #FBF7EF);
  border: 1px solid #F0E4CC;
  border-radius: 12px;
  overflow: hidden;
}
.art-quote::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #E7C88E, #D8B478);
}
.art-quote-m {
  font-family: Georgia, "Times New Roman", serif; font-size: 46px; line-height: .7;
  color: #E4CB9B; height: 26px; margin-bottom: 6px;
}
.art-quote blockquote {
  margin: 0; font-size: 17px; line-height: 1.85; color: #4A3B24;
  letter-spacing: .3px; font-weight: 500;
}
.art-quote figcaption {
  margin-top: 12px; font-size: 12.5px; color: #A08A63; text-align: right; letter-spacing: .3px;
}

/* ================= 图集 ================= */
.art-gal { margin: 24px 0; }
.art-gal-g { display: grid; gap: 6px; }
.art-gal-1 .art-gal-g { grid-template-columns: 1fr; }
.art-gal-2 .art-gal-g { grid-template-columns: 1fr 1fr; }
.art-gal-3 .art-gal-g { grid-template-columns: 1fr 1fr; }
.art-gal-3 .art-gal-g i:first-child { grid-column: span 2; }
.art-gal-g i { display: block; overflow: hidden; border-radius: 8px; background: #F2F3F5; }
.art-gal-g img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.art-gal-3 .art-gal-g i:first-child img { aspect-ratio: 16 / 9; }
.art-gal figcaption {
  font-size: 12.5px; color: #a8a8a8; text-align: center; margin-top: 10px; line-height: 1.6;
}

/* ================= 音频 ================= */
.art-audio {
  margin: 22px 0; padding: 14px 16px 12px; border-radius: 12px;
  background: #F8F9FB; border: 1px solid #EDEFF3;
}
.art-audio-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.art-audio-ic {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #D8B478, #B98F45);
}
.art-audio-ic svg { width: 18px; height: 18px; }
.art-audio-tx { display: flex; flex-direction: column; min-width: 0; }
.art-audio-tx b { font-size: 14.5px; color: #1a1a1a; font-weight: 600; letter-spacing: .2px; }
.art-audio-tx em { font-style: normal; font-size: 12px; color: #9A9A9A; margin-top: 2px; }
.art-audio audio { width: 100%; height: 36px; display: block; }
.art-audio-cap { font-size: 12.5px; color: #A8A8A8; margin-top: 8px; line-height: 1.6; }

/* ================= 位置 ================= */
.art-map {
  display: flex; align-items: center; gap: 10px; margin: 22px 0; padding: 14px 14px 14px 12px;
  border: 1px solid #EDEFF3; border-radius: 12px; background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(24, 32, 48, .05);
}
.art-map-bd { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.art-map-ic {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center;
  background: #FDF6E9; color: #B98F45;
}
.art-map-ic svg { width: 19px; height: 19px; }
.art-map-tx { min-width: 0; }
.art-map-tx b { display: block; font-size: 14.5px; color: #1a1a1a; letter-spacing: .2px; }
.art-map-tx span {
  display: block; font-size: 12.5px; color: #8C8C8C; margin-top: 3px; line-height: 1.5;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.art-map-go {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px;
  font-size: 12.5px; color: #8A6A2F; text-decoration: none;
  border: 1px solid #EFE1C6; background: #FDF9F1; border-radius: 999px; padding: 6px 10px 6px 12px;
}
.art-map-go svg { width: 14px; height: 14px; }

/* ================= 联系方式 ================= */
.art-contact {
  margin: 24px 0; padding: 16px; border-radius: 12px;
  background: linear-gradient(180deg, #FBFCFE, #F6F8FB); border: 1px solid #E9EDF4;
}
.art-contact-hd { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.art-contact-qr { width: 54px; height: 54px; border-radius: 8px; background: #fff; object-fit: cover; }
.art-contact-tx b { display: block; font-size: 16px; color: #1a1a1a; letter-spacing: .3px; }
.art-contact-tx span { display: block; font-size: 12.5px; color: #8C8C8C; margin-top: 3px; }
.art-contact-row {
  display: flex; align-items: center; gap: 9px; padding: 9px 0;
  font-size: 14.5px; color: #33404F; text-decoration: none;
  border-top: 1px solid #EDF0F5;
}
.art-contact-row i { width: 18px; height: 18px; color: #7C8DA6; display: grid; place-items: center; }
.art-contact-row i svg { width: 16px; height: 16px; }
.art-contact-row em {
  font-style: normal; margin-left: auto; font-size: 11.5px; color: #8A6A2F;
  border: 1px solid #EFE1C6; background: #FDF9F1; border-radius: 999px; padding: 2px 9px;
}

/* ================= 商品卡 ================= */
.art-goods {
  display: flex; align-items: center; gap: 12px; margin: 24px 0; padding: 12px;
  border: 1px solid #EEEFF2; border-radius: 14px; background: #fff;
  box-shadow: 0 8px 22px rgba(20, 26, 40, .06);
}
.art-goods-img {
  width: 84px; height: 84px; flex: 0 0 84px; border-radius: 10px; object-fit: cover; background: #F4F5F7;
}
.art-goods-tx { flex: 1; min-width: 0; }
.art-goods-tx b {
  display: block; font-size: 15px; color: #1a1a1a; line-height: 1.5; letter-spacing: .2px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.art-goods-tx span { display: block; font-size: 12.5px; color: #8C8C8C; margin-top: 4px; line-height: 1.5; }
.art-goods-pr { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.art-goods-pr em { font-style: normal; font-size: 18px; font-weight: 700; color: #C0392B; letter-spacing: -.2px; }
.art-goods-pr s { font-size: 12px; color: #B9B9B9; }
.art-goods-go {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; text-decoration: none;
  font-size: 13px; color: #2A2110; background: linear-gradient(135deg, #EBD3A4, #D8B478);
  border-radius: 999px; padding: 8px 10px 8px 14px; font-weight: 600; letter-spacing: .3px;
}
.art-goods-go svg { width: 14px; height: 14px; }

/* ================= 链接卡 ================= */
.art-link {
  display: flex; align-items: center; gap: 10px; margin: 20px 0; padding: 13px 14px;
  border: 1px solid #EDEFF3; border-radius: 12px; background: #FAFBFC;
  text-decoration: none; color: #56606E;
}
.art-link svg { width: 16px; height: 16px; flex: 0 0 16px; color: #A9B3C1; }
.art-link-ic { color: #B98F45; display: grid; place-items: center; }
.art-link-tx { flex: 1; min-width: 0; }
.art-link-tx b {
  display: block; font-size: 14px; color: #1a1a1a; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art-link-tx span {
  display: block; font-size: 12px; color: #9A9A9A; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ================= 分割线 ================= */
.art-div { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
.art-div i { flex: 1; height: 1px; background: #F0F0F0; }
.art-div em { font-style: normal; font-size: 11px; color: #C4C4C4; letter-spacing: 2px; white-space: nowrap; }
.art-div-gold i { background: linear-gradient(90deg, #F3E7CF, #D8B478); }
.art-div-dots i { height: 4px; background: none; border-top: 2px dotted #E4D6BC; }

/* ================= 编辑器（块内输入区） ================= */
.art-e { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 4px; }
.art-e-row { display: block; }
.art-e-row > span {
  display: block; font-size: 11.5px; color: #8C8C8C; margin-bottom: 4px; letter-spacing: .3px;
}
.art-e-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.art-e-in {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; color: #1a1a1a;
  background: #F7F8FA; border: 1px solid #E8EBF0; border-radius: 9px; padding: 9px 11px;
  outline: none; -webkit-appearance: none; appearance: none;
}
.art-e-in:focus { background: #fff; border-color: #D8B478; box-shadow: 0 0 0 3px rgba(216, 180, 120, .16); }
.art-e-area { resize: vertical; min-height: 56px; line-height: 1.6; }
select.art-e-in { padding-right: 26px; }

/* ================= 演示页外壳（仅 _demo.html 用） ================= */
.demo-wrap {
  max-width: 1080px; margin: 0 auto; padding: 18px 16px 60px;
  display: grid; grid-template-columns: 390px 1fr; gap: 26px; align-items: start;
}
.demo-phone {
  width: 390px; background: #fff; border-radius: 26px; overflow: hidden;
  border: 1px solid #E6E8EC; box-shadow: 0 18px 50px rgba(18, 26, 42, .10);
}
.demo-phone-bar {
  height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  border-bottom: 1px solid #F2F3F5; font-size: 13px; color: #9AA3AE; background: #FCFCFD;
}
.demo-phone-bar b { color: #1a1a1a; font-weight: 600; font-size: 13.5px; }
.demo-body { padding: 0 0 26px; max-height: 720px; overflow-y: auto; }
.demo-body::-webkit-scrollbar { width: 0; }
.demo-art { padding: 18px 20px 4px; }
.demo-title { font-size: 21px; line-height: 1.5; font-weight: 700; color: #191919; margin: 2px 0 6px; letter-spacing: .2px; }
.demo-meta { font-size: 12px; color: #B2B2B2; letter-spacing: .4px; padding-bottom: 14px; border-bottom: 1px solid #F4F4F4; margin-bottom: 16px; }

.demo-panel {
  background: #fff; border: 1px solid #E6E8EC; border-radius: 18px; padding: 18px;
  box-shadow: 0 10px 30px rgba(18, 26, 42, .06);
}
.demo-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.demo-h b { font-size: 15px; color: #1a1a1a; letter-spacing: .3px; }
.demo-h em { font-style: normal; font-size: 11.5px; color: #A6A6A6; }
.demo-paste {
  width: 100%; box-sizing: border-box; min-height: 92px; font: inherit; font-size: 13.5px; line-height: 1.7;
  color: #333; background: #FAFBFC; border: 1px dashed #D9DEE6; border-radius: 12px; padding: 12px; outline: none;
}
.demo-paste:focus { border-color: #D8B478; background: #fff; }
.demo-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.demo-btn {
  font: inherit; font-size: 13px; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid #E2E6EC; background: #fff; color: #3A4553; letter-spacing: .2px;
}
.demo-btn:hover { border-color: #D8B478; color: #8A6A2F; }
.demo-btn.primary { background: linear-gradient(135deg, #EBD3A4, #D8B478); border-color: transparent; color: #2A2110; font-weight: 600; }
.demo-ins { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.demo-ins button {
  font: inherit; font-size: 12.5px; padding: 7px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid #EDEFF3; background: #FAFBFC; color: #55606E;
}
.demo-ins button:hover { background: #FDF9F1; border-color: #EBD9B6; color: #8A6A2F; }
.demo-ins button i { font-style: normal; margin-right: 5px; color: #C0A874; }
.demo-sep { height: 1px; background: #F0F2F5; margin: 16px 0; }
.demo-tip { font-size: 12px; color: #9AA3AE; line-height: 1.7; }
.demo-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.demo-badges span { font-size: 11px; color: #7C8794; background: #F4F6F9; border-radius: 6px; padding: 3px 7px; }

/* 演示页里的块操作条 */
.blkbox { position: relative; }
.blkbox .bops {
  position: absolute; right: 0; top: -12px; display: flex; gap: 4px;
  padding: 3px 4px; background: #fff; border: 1px solid #EDE7DA; border-radius: 9px;
  box-shadow: 0 6px 18px rgba(20, 26, 40, .10);
  opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 40;
}
.blkbox:hover .bops, .blkbox.is-cur .bops { opacity: 1; pointer-events: auto; }
.blkbox[onclick] { cursor: text; }
.blkbox[onclick]:hover { background: linear-gradient(0deg, rgba(216, 180, 120, .05), rgba(216, 180, 120, .05)); border-radius: 8px; }
.blkbox .bops button {
  width: 24px; height: 24px; border-radius: 7px; border: 1px solid #E6E8EC; background: #fff;
  color: #6A7480; font-size: 13px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(20, 26, 40, .08);
}
.blkbox .bops button:hover { color: #8A6A2F; border-color: #D8B478; }
.blkbox .bops button.x:hover { color: #C0392B; border-color: #E8B4AE; }
.blkbox.is-cur { background: #FCFAF5; border-radius: 10px; box-shadow: 0 0 0 1px #F0E4CC inset; }
/* 正在编辑的块上方留出工具条位置，避免盖住正文 */
.demo-canvas .blkbox.is-cur, .demo-phone .blkbox.is-cur { padding-top: 34px; }
.demo-canvas .blkbox.is-cur .bops, .demo-phone .blkbox.is-cur .bops { top: 2px; }
.demo-art [contenteditable]:focus { outline: none; background: #FFFDF8; box-shadow: 0 0 0 2px rgba(216, 180, 120, .25); border-radius: 6px; }

@media (max-width: 900px) {
  .demo-wrap { grid-template-columns: 1fr; padding: 12px 10px 40px; gap: 16px; }
  .demo-phone { width: 100%; border-radius: 18px; }
  .demo-body { max-height: none; }
}
/* ================= 演示页页面底色 ================= */
.demo-page {
  margin: 0; min-height: 100vh; background: #F5F6F8;
  color: #1a1a1a; -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.6;
}
.demo-page * { box-sizing: border-box; }

/* ================= 演示页兜底：系统内置 6 种块的基础排版 =================
   只在 .demo-page 下生效，生产环境仍由 5-article.css 负责，互不覆盖。 */
.demo-page .wx-p { font-size: 17px; line-height: 1.9; color: #333; margin: 0 0 22px; letter-spacing: .3px; text-align: justify; }
.demo-page .wx-h { font-size: 17px; font-weight: 700; color: #1a1a1a; line-height: 1.7; margin: 30px 0 14px; padding-left: 10px; border-left: 3px solid #E0BE84; }
.demo-page .wx-fig { margin: 24px 0; }
.demo-page .wx-fig img, .demo-page .wx-fig video { width: 100%; display: block; border-radius: 6px; }
.demo-page .wx-fig figcaption { font-size: 12.5px; color: #a8a8a8; text-align: center; margin-top: 10px; line-height: 1.6; }
.demo-page .wx-sec { margin: 40px 0 6px; }
.demo-page .wx-sec .sn { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: 1px; color: #D9B87A; }
.demo-page .wx-sec .st { font-size: 18px; font-weight: 700; color: #1a1a1a; line-height: 1.55; margin: 8px 0 0; }
.demo-page .wx-sec .si { display: block; width: 92px; height: 92px; object-fit: contain; margin: 18px auto 4px; }
.demo-page .wx-li { font-size: 16.5px; line-height: 1.9; color: #333; margin: 0 0 15px; letter-spacing: .3px; text-align: justify; }
.demo-page .wx-li b { font-weight: 700; color: #1a1a1a; }
.demo-page .wx-li .sc { color: #8f8f8f; }

/* ================= v1.1.0 · 电脑版布局（宽屏白纸 + 右侧手机预览） ================= */
.demo-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 10px 18px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid #ECEEF2;
}
.demo-top-l b { font-size: 15px; letter-spacing: .4px; }
.demo-top-l em { font-style: normal; font-size: 11.5px; color: #A6A6A6; margin-left: 8px; }
.demo-top-r { display: flex; align-items: center; gap: 10px; }
.demo-switch { display: flex; background: #F2F4F7; border-radius: 999px; padding: 3px; }
.demo-switch button {
  font: inherit; font-size: 12.5px; padding: 6px 14px; border: 0; background: none;
  color: #6A7480; border-radius: 999px; cursor: pointer; transition: .18s;
}
.demo-switch button.on { background: #fff; color: #1a1a1a; font-weight: 600; box-shadow: 0 2px 6px rgba(20,26,40,.08); }

.demo-wrap { max-width: 1180px; grid-template-columns: 390px 1fr; }
.demo-wrap.desktop { grid-template-columns: minmax(0,1fr) 400px; }
.demo-wrap:not(.desktop) { max-width: 520px; grid-template-columns: 1fr; }

.demo-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.demo-wrap.desktop .demo-side { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 84px); overflow: auto; padding-bottom: 8px; }
.demo-wrap.desktop .demo-phone { width: 390px; margin: 0 auto; }
.demo-wrap.desktop .demo-body { max-height: 560px; overflow-y: auto; }

.demo-canvas {
  display: none; background: #fff; border: 1px solid #E6E8EC; border-radius: 18px;
  padding: 42px 52px 24px; box-shadow: 0 16px 44px rgba(18,26,42,.07); min-height: 70vh;
}
.demo-wrap.desktop .demo-canvas { display: block; }
.dc-title {
  font-size: 29px; line-height: 1.5; font-weight: 700; margin: 0 0 10px;
  letter-spacing: .3px; outline: none; color: #191919;
}
.dc-meta {
  font-size: 12.5px; color: #B2B2B2; padding-bottom: 14px;
  border-bottom: 1px solid #F4F4F4; margin-bottom: 20px;
}
.dc-meta span { float: right; color: #C0C4CC; }
.demo-canvas .wx-p { font-size: 16.5px; line-height: 1.95; color: #333; margin: 0 0 20px; letter-spacing: .2px; }
.demo-canvas .wx-h { font-size: 18px; }
.demo-canvas [contenteditable]:focus { outline: none; background: #FFFDF8; box-shadow: 0 0 0 2px rgba(216,180,120,.25); border-radius: 6px; }
.dc-add {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px; border-top: 1px dashed #EDEFF3;
}
.dc-add button {
  font: inherit; font-size: 13px; padding: 8px 14px; border-radius: 999px;
  border: 1px dashed #D9DEE6; background: #fff; color: #6A7480; cursor: pointer;
}
.dc-add button:hover { color: #8A6A2F; border-color: #D8B478; }
.dc-add span { font-size: 11.5px; color: #B0B6BF; }

@media (max-width: 899px) {
  /* 窄窗口：默认手机版隐藏白纸；用户手动点「电脑版」时白纸改为整宽单栏显示 */
  .demo-wrap:not(.desktop) .demo-canvas { display: none !important; }
  .demo-wrap, .demo-wrap.desktop { grid-template-columns: 1fr !important; max-width: 100%; }
  .demo-wrap.desktop .demo-canvas { display: block !important; padding: 26px 20px 20px; min-height: 0; }
  .demo-wrap.desktop .dc-title { font-size: 23px; }
  .demo-wrap.desktop .demo-phone { width: 100%; max-width: 390px; }
}

/* ---------- v1.1.2 块间「+」：任意位置插入 ---------- */
.insbar {
  height: 16px; margin: -8px 0; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 20;
}
.insbar.phone { height: 26px; margin: -6px 0; }
.insbtn {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid #E8DECA; background: #fff;
  color: #B08A46; font-size: 15px; line-height: 1; cursor: pointer; padding: 0;
  box-shadow: 0 2px 8px rgba(20, 26, 40, .07); opacity: .5; transition: opacity .15s, transform .15s;
}
.insbar.phone .insbtn { width: 28px; height: 28px; font-size: 17px; opacity: .55; }
.insbar:hover .insbtn, .insbtn:hover { opacity: 1; transform: scale(1.08); border-color: #D8B478; }
.insend { text-align: center; font-size: 11.5px; color: #C2C7CF; padding: 6px 0 2px; }

.insmenu {
  position: fixed; z-index: 999; width: 300px; padding: 10px 10px 12px;
  background: #fff; border: 1px solid #EDE7DA; border-radius: 14px;
  box-shadow: 0 14px 40px rgba(20, 26, 40, .16);
}
.insmenu-h { font-size: 11.5px; color: #97A0AB; padding: 2px 4px 8px; }
.insmenu-g { display: flex; flex-wrap: wrap; gap: 6px; }
.insmenu-g button {
  display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12.5px;
  padding: 7px 10px; border-radius: 9px; border: 1px solid #EDEFF3; background: #FBFBFD;
  color: #4A5361; cursor: pointer;
}
.insmenu-g button:hover { border-color: #D8B478; color: #8A6A2F; background: #FFFDF8; }
.insmenu-g button i { font-style: normal; color: #B08A46; font-size: 12px; }

/* v1.1.2 顶栏在 390 宽不折行 */
@media (max-width: 430px) {
  .demo-top { padding: 8px 10px; gap: 8px; }
  .demo-top-l em { display: none; }
  .demo-top-r { gap: 6px; }
  .demo-switch button { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
  .demo-btn.primary { padding: 7px 12px; font-size: 12.5px; }
  .insmenu { width: calc(100vw - 24px); left: 12px !important; }
}

/* =========================================================
   v1.2.0 · 线上文章页 1:1 复刻（数据源：/v2/ui/5-article.css）
   只作用于 .art-read（手机预览）与 .demo-canvas（电脑白纸），
   数值与线上完全一致：正文 17px/1.9、小标题左边框 3px #E0BE84、
   分节序号 30px #D9B87A、条目 17px/1.95、图注 12.5px #a8a8a8。
   ========================================================= */
.art-read, .demo-canvas {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.art-read { background: #fff; color: #333; }

/* 标题 + 元信息 */
.art-read .wx-body { padding: 4px 20px 0; }
.art-read .wx-title {
  font-size: 22px; line-height: 1.42; font-weight: 700; color: #1a1a1a;
  letter-spacing: .2px; margin: 6px 0 14px;
}
.art-read .wx-meta { padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.art-read .wx-meta .r1 { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; font-size: 13px; overflow: hidden; }
.art-read .wx-meta .orig { font-size: 10.5px; color: #b2b2b2; border: 1px solid #e2e2e2; border-radius: 3px; padding: 1px 4px; line-height: 1.5; flex: 0 0 auto; }
.art-read .wx-meta .who { color: #576b95; text-decoration: none; font-size: 13.5px; flex: 0 0 auto; white-space: nowrap; }
.art-read .wx-meta .pub { color: #8a8a8a; text-decoration: none; font-size: 13.5px; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-read .wx-meta .dt { font-style: normal; color: #b2b2b2; font-size: 12px; flex: 0 0 auto; margin-left: auto; }
.art-read .wx-meta .r2 { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #b2b2b2; margin-top: 7px; }
.art-read .wx-meta .r2 .rd { color: #999; }

/* 正文 */
.art-read .wx-art { padding: 18px 0 4px; }
.art-read .wx-p {
  font-size: 17px; line-height: 1.9; color: #333; margin: 0 0 22px; letter-spacing: .3px; text-align: justify;
}
.art-read .wx-h {
  font-size: 17px; font-weight: 700; color: #1a1a1a; line-height: 1.7;
  margin: 30px 0 14px; padding-left: 10px; border-left: 3px solid #E0BE84;
}
.art-read .wx-fig { margin: 24px 0; }
.art-read .wx-fig img, .art-read .wx-fig video { width: 100%; display: block; border-radius: 4px; }
.art-read .wx-fig figcaption { font-size: 12.5px; color: #a8a8a8; text-align: center; margin-top: 10px; line-height: 1.6; }

/* 分节（01/02…）与条目 */
.art-read .wx-sec { margin: 46px 0 6px; }
.art-read .wx-sec .sn { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: 1px; color: #D9B87A; font-family: "DIN Alternate", -apple-system, sans-serif; }
.art-read .wx-sec .st { font-size: 19px; font-weight: 700; color: #1a1a1a; line-height: 1.55; margin: 9px 0 0; letter-spacing: .2px; }
.art-read .wx-sec .si { display: block; width: 92px; height: 92px; object-fit: contain; margin: 20px auto 4px; }
.art-read .wx-li { font-size: 17px; line-height: 1.95; color: #333; margin: 0 0 15px; letter-spacing: .3px; text-align: justify; }
.art-read .wx-li b { font-weight: 700; color: #1a1a1a; }
.art-read .wx-li .sc { color: #8f8f8f; }

/* 结尾分线 */
.art-read .wx-endline { display: flex; align-items: center; gap: 12px; padding: 18px 0 30px; }
.art-read .wx-endline i { flex: 1; height: 1px; background: #f0f0f0; }
.art-read .wx-endline span { font-size: 11px; color: #c4c4c4; letter-spacing: 1px; white-space: nowrap; }

/* 手机框顶栏：对齐线上 .wx-top（46px、居中作者名） */
.demo-phone .demo-phone-bar {
  height: 46px; padding: 0 8px; border-bottom: 1px solid #f0f0f0;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(14px);
}
.demo-phone .demo-phone-bar b { font-size: 13px; font-weight: 400; color: #8a8a8a; }

/* 电脑白纸也用线上的字号比例，所见即所得 */
.demo-canvas .wx-p { font-size: 17px; line-height: 1.9; letter-spacing: .3px; }
.demo-canvas .wx-h { font-size: 17px; line-height: 1.7; }
.demo-canvas .wx-li { font-size: 17px; line-height: 1.95; }
.demo-canvas .wx-sec .st { font-size: 19px; }

/* 手机框顶栏细节（对齐线上 .wx-top 的左右按钮） */
.demo-phone .demo-phone-bar { justify-content: space-between; background: #fff; }
.demo-phone .demo-phone-bar .pb-bk,
.demo-phone .demo-phone-bar .pb-more {
  width: 34px; height: 40px; display: grid; place-items: center;
  color: #181818; font-size: 22px; line-height: 1;
}
.demo-phone .demo-phone-bar .pb-more { font-size: 17px; letter-spacing: 1px; }
.demo-phone .demo-phone-bar b { flex: 1; text-align: center; }
/* 手机预览里去掉多余内边距，交给 .wx-body 控制（与线上一致） */
.demo-phone .demo-body { padding-bottom: 0; }

/* 手机框右下角：阅读态 / 编辑态切换 */
.phone-chip {
  position: absolute; right: 12px; bottom: 12px; z-index: 30;
  height: 30px; padding: 0 13px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 12px; color: #2A1E08; letter-spacing: .3px;
  background: linear-gradient(135deg, #EBCE96, #B0863F); box-shadow: 0 6px 16px rgba(176,134,63,.28);
}
.demo-phone { position: relative; }

/* v1.2.0 · 手机版全宽：让正文宽度和线上完全一致（390 - 20*2 = 350px） */
@media (max-width: 899px) {
  .demo-wrap { padding: 0 !important; }
  .demo-wrap .demo-phone {
    width: 100%; max-width: 390px; margin: 0 auto;
    border: 0; border-radius: 0; box-shadow: none;
  }
  .demo-panel { margin: 10px 12px 18px; }
  .phone-chip { position: fixed; right: 12px; bottom: 14px; }
}

/* 编辑态下工具条不要盖住演示页顶栏 */
.demo-top { z-index: 70; }

/* 内联编辑时去掉浏览器默认黑框，用金色细环 */
.art-read [contenteditable]:focus,
.demo-phone [contenteditable]:focus,
.demo-canvas [contenteditable]:focus { outline: none; box-shadow: 0 0 0 2px rgba(216,180,120,.45) inset; background: #FFFDF8; border-radius: 4px; }

/* 右栏是 flex 容器时，手机框不要被压缩 */
.demo-side .demo-phone { flex: 0 0 auto; }
