/* AI 生意經〈墨山〉：黑金水墨 hero ＋ 典籍卷目錄
   （張森 2026-08-12 拍板：方案二 hero × 方案一目錄；兩行字＝古人把生意寫成經／我們把經，寫進 AI） */

.jing-hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: #06080d; }
.jing-ink { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jing-hero-inner { position: relative; z-index: 2; width: 100%; text-align: center; padding: 120px 0 140px; }
.jing-kicker { margin: 0 0 30px; font-size: 12px; letter-spacing: .58em; text-indent: .58em; color: #9c8a6e; font-weight: 600; }
.jing-lines { margin: 0; font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 2; letter-spacing: .12em; color: #e9ddc4; text-wrap: balance; }
.jing-lines .ch { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: opacity 1.1s ease, transform 1.1s ease, filter 1.1s ease; }
.jing-lines.on .ch { opacity: 1; transform: none; filter: none; }
.jing-sub { margin: 34px auto 0; max-width: 34em; font-size: clamp(.9rem, 1.4vw, 1rem); line-height: 2.2; letter-spacing: .08em; color: rgba(233, 221, 196, .62); }
.jing-seal { position: absolute; right: clamp(16px, 6vw, 90px); bottom: clamp(28px, 6vw, 70px); z-index: 2; writing-mode: vertical-rl; font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 700; font-size: 15px; letter-spacing: .3em; line-height: 1; color: #f3e9d6; background: #9e2b25; padding: 12px 8px 14px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px rgba(243, 233, 214, .55), 0 2px 14px rgba(0, 0, 0, .45); }
.jing-scroll { display: inline-block; margin-top: clamp(2.6rem, 6vw, 4rem); color: rgba(233, 221, 196, .75); font-size: 13px; letter-spacing: .3em; text-indent: .3em; border-bottom: 1px solid rgba(233, 221, 196, .3); padding-bottom: 6px; }
.jing-scroll:hover { color: #e9ddc4; border-color: rgba(233, 221, 196, .7); }

/* 卷目錄 */
.jing-toc-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.jing-toc-note { margin-top: 16px; color: #6f6a62; line-height: 2.1; font-size: .95rem; }
.jing-toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line, #e4ded2); }
.jing-toc li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: clamp(1rem, 3vw, 2.4rem); align-items: baseline; padding: clamp(1.4rem, 3vw, 2rem) 4px; border-bottom: 1px solid var(--line, #e4ded2); }
.jing-vol { font-family: "Noto Serif TC", "Songti TC", serif; font-size: 1.05rem; font-weight: 600; letter-spacing: .2em; color: #9e2b25; }
.jing-toc h3 { margin: 0 0 6px; font-family: "Noto Serif TC", "Songti TC", serif; font-size: 1.05rem; font-weight: 600; letter-spacing: .06em; }
.jing-toc li p { margin: 0; font-size: .88rem; color: #6f6a62; line-height: 1.95; }
.jing-date { font-size: 12px; letter-spacing: .12em; color: #9a948a; white-space: nowrap; }

@media (max-width: 640px) {
  .jing-hero { min-height: 80vh; }
  .jing-lines { letter-spacing: .06em; }
  .jing-seal { right: 14px; bottom: 18px; font-size: 13px; }
  .jing-toc li { grid-template-columns: 56px minmax(0, 1fr); }
  .jing-date { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .jing-lines .ch { opacity: 1; transform: none; filter: none; transition: none; }
}

/* 壓過 site-2026 的 h1 黑體與字級規則 */
.site-2026 .jing-lines { font-family: "Noto Serif TC", "Songti TC", serif; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 2; font-weight: 600; letter-spacing: .12em; }
.site-2026 .jing-seal, .site-2026 .jing-vol, .site-2026 .jing-toc h3 { font-family: "Noto Serif TC", "Songti TC", serif; }

/* ── 生意經文章頁 ── */
.jing-article { max-width: 720px; margin: 0 auto; padding: 130px 20px 40px; }
.jing-crumb { font-size: 12px; letter-spacing: .08em; color: #9a948a; margin: 0 0 30px; }
.jing-crumb a { color: #9a948a; text-decoration: none; }
.jing-crumb a:hover { color: #6f6a62; text-decoration: underline; }
.site-2026 .jing-article h1 { font-family: "Noto Serif TC", "Songti TC", serif; font-size: clamp(1.55rem, 3.4vw, 2.2rem); font-weight: 600; line-height: 1.75; letter-spacing: .04em; }
.jing-ameta { margin: 18px 0 0; font-size: 12.5px; letter-spacing: .16em; color: #9c8a6e; font-weight: 600; }
.jing-toc-box { margin: 36px 0 44px; border: 1px solid #e4ded2; background: #fff; padding: 20px 24px; border-radius: 4px; }
.jing-toc-box p { margin: 0 0 8px; font-size: 11px; letter-spacing: .24em; color: #9c8a6e; font-weight: 600; }
.jing-toc-box a { display: block; padding: 5px 0; font-size: .92rem; color: #3c3830; text-decoration: none; }
.jing-toc-box a:hover { color: #9e2b25; }
.site-2026 .jing-article h2 { font-family: "Noto Serif TC", "Songti TC", serif; font-size: 1.32rem; font-weight: 600; letter-spacing: .05em; line-height: 1.7; margin: 60px 0 20px; }
.site-2026 .jing-article h2::before { content: ""; display: block; width: 30px; height: 2px; background: #9e2b25; margin-bottom: 16px; }
.site-2026 .jing-article h3 { font-family: "Noto Serif TC", "Songti TC", serif; font-size: 1.08rem; font-weight: 600; letter-spacing: .04em; margin: 40px 0 14px; }
.site-2026 .jing-body h3 { font-family: "Noto Serif TC", "Songti TC", serif; font-size: 1.05rem; font-weight: 600; letter-spacing: .04em; margin: 30px 0 10px; }
.jing-article p { margin: 0 0 1.3em; font-size: 1rem; line-height: 2.05; color: #3c3830; }
.jing-article ul, .jing-article ol { margin: 0 0 1.3em; padding-left: 1.4em; line-height: 2.05; color: #3c3830; font-size: 1rem; }
.jing-article strong { font-weight: 700; color: #17130f; }
.jing-open { border-left: 3px solid #9e2b25; padding-left: 18px; margin-bottom: 2.2em; }
.jing-cta { margin-top: 40px; background: #0b0e14; color: #e9ddc4; padding: 26px 28px; border-radius: 4px; }
.jing-cta p { color: rgba(233, 221, 196, .8); margin: 0 0 6px; }
.jing-cta .q { font-family: "Noto Serif TC", "Songti TC", serif; font-size: 1.2rem; color: #e9ddc4; letter-spacing: .06em; margin-bottom: 18px; }
.jing-cta a { display: inline-block; margin-top: 8px; background: #d4a55c; color: #17130f; font-weight: 700; padding: 13px 26px; border-radius: 3px; text-decoration: none; letter-spacing: .06em; }
.jing-cta a:hover { background: #e0b671; }
.jing-back { display: inline-block; margin-top: 34px; font-size: 13px; letter-spacing: .12em; color: #9c8a6e; text-decoration: none; }
.jing-back:hover { color: #9e2b25; }
.jing-toc h3 a { color: inherit; text-decoration: none; }
.jing-toc h3 a:hover { color: #9e2b25; }

/* ══ 章回體文章 v2（2026-08-14 方案B升級版）══ */
/* 閱讀進度條 */
.jing-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, #9e2b25, #d4a55c); z-index: 200; transition: width .15s linear; }

/* 卷首（文章自己的墨色首屏帶） */
.jing-cover { background: radial-gradient(ellipse 120% 90% at 50% -10%, #1a2130 0%, #0b0e14 55%, #06080d 100%); color: #e9ddc4; padding: 128px 0 48px; position: relative; overflow: hidden; }
.jing-cover .shell2 { max-width: 720px; margin: 0 auto; padding: 0 20px; position: relative; }
.jing-cover .jing-crumb, .jing-cover .jing-crumb a { color: rgba(233,221,196,.45); }
.jing-cover .jing-crumb a:hover { color: rgba(233,221,196,.8); }
.site-2026 .jing-cover h1 { font-family: "Noto Serif TC", "Songti TC", serif; font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 600; line-height: 1.8; letter-spacing: .05em; color: #f0e6cf; }
.jing-cover .jing-ameta { color: #9c8a6e; }
.jing-duan { margin: 24px 0 0; border-top: 1px solid rgba(233,221,196,.18); padding-top: 18px; }
.jing-duan .src { font-size: 12px; letter-spacing: .3em; color: #9c8a6e; margin: 0 0 12px; font-weight: 600; }
.jing-duan .txt { font-family: "Noto Serif TC", "Songti TC", serif; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 2; letter-spacing: .08em; color: #d4a55c; margin: 0; font-weight: 600; }
.jing-cover .jing-seal { position: absolute; right: 20px; bottom: 0; }

/* 內文閱讀面 */
.jing-body { max-width: 720px; margin: 0 auto; padding: 10px 20px 40px; }
.jing-body > p { margin: 0 0 1.05em; font-size: 1.01rem; line-height: 1.95; color: #3c3830; }

/* 回目卡（章回分隔） */
.jing-hui { margin: 52px -20px 28px; background: linear-gradient(135deg, #10141d 0%, #0b0e14 60%, #131926 100%); border-radius: 4px; padding: 20px 24px 18px; position: relative; overflow: hidden; }
.jing-hui::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(163,129,63,.28), transparent 70%); filter: blur(8px); }
.jing-hui-num { display: inline-block; font-family: "Noto Serif TC", "Songti TC", serif; font-size: 11.5px; letter-spacing: .38em; text-indent: .38em; color: #d4a55c; border: 1px solid rgba(212,165,92,.45); padding: 4px 9px 4px 11px; border-radius: 2px; margin-bottom: 10px; font-weight: 600; }
.site-2026 .jing-hui h2 { font-family: "Noto Serif TC", "Songti TC", serif; font-size: clamp(1.15rem, 2.2vw, 1.35rem); font-weight: 600; letter-spacing: .06em; line-height: 1.75; color: #f0e6cf; margin: 0; }
.site-2026 .jing-hui h2::before { display: none; }
.jing-hui-sub { margin: 6px 0 0; font-size: .84rem; letter-spacing: .12em; color: rgba(233,221,196,.55); }

/* 金句卡（一屏一張的浮雕重點） */
.jing-quote { margin: 28px 0; padding: 20px 26px; background: linear-gradient(180deg, #faf6ec, #f4ecd9); border: 1px solid #e6dcc3; border-radius: 4px; position: relative; }
.jing-quote::before { content: "「"; position: absolute; left: 12px; top: 2px; font-family: "Noto Serif TC", serif; font-size: 1.7rem; color: rgba(158,43,37,.35); }
.jing-quote p { margin: 0; font-family: "Noto Serif TC", "Songti TC", serif; font-size: clamp(1.05rem, 2.1vw, 1.22rem); font-weight: 600; line-height: 1.85; letter-spacing: .06em; color: #17130f; text-align: center; }

/* 摺子（點入展開：四問與 FAQ 共用） */
.jing-fold { border: 1px solid #e4ded2; border-radius: 4px; background: #fff; margin: 0 0 12px; overflow: hidden; }
.jing-fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 13px; padding: 13px 15px; }
.jing-fold summary::-webkit-details-marker { display: none; }
.jing-fold summary:hover { background: #faf8f3; }
.jing-fold-num { flex: 0 0 auto; width: 33px; height: 33px; display: grid; place-items: center; background: #9e2b25; color: #f3e9d6; font-family: "Noto Serif TC", serif; font-weight: 700; font-size: 1.05rem; border-radius: 2px; }
.jing-fold-q { flex: 1; font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 600; font-size: .98rem; letter-spacing: .03em; line-height: 1.7; color: #17130f; }
.jing-fold-ico { flex: 0 0 auto; width: 22px; height: 22px; position: relative; opacity: .45; }
.jing-fold-ico::before, .jing-fold-ico::after { content: ""; position: absolute; background: #17130f; left: 50%; top: 50%; transition: transform .25s ease; }
.jing-fold-ico::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.jing-fold-ico::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.jing-fold[open] .jing-fold-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.jing-fold-body { padding: 2px 20px 16px 61px; border-top: 1px dashed #eee7d8; }
.jing-fold-body p { margin: 11px 0 0; font-size: .96rem; line-height: 1.9; color: #3c3830; }
@media (max-width: 560px) { .jing-fold-body { padding-left: 22px; } }

/* 案例名帖 */
.jing-case { border-left: 2px solid #e0d6bf; padding: 2px 0 2px 22px; margin: 0 0 18px; position: relative; }
.jing-case::before { content: attr(data-n); position: absolute; left: -14px; top: 2px; background: #f5f1e8; color: #9e2b25; font-family: "Noto Serif TC", serif; font-weight: 700; font-size: .82rem; padding: 2px 4px; writing-mode: vertical-rl; letter-spacing: .2em; }
.jing-case h4 { margin: 0 0 8px; font-family: "Noto Serif TC", "Songti TC", serif; font-size: 1.02rem; font-weight: 600; letter-spacing: .04em; }
.jing-case p { margin: 0; font-size: .96rem; line-height: 2.02; color: #3c3830; }

/* 卷尾 */
.jing-end { margin: 60px 0 0; text-align: center; font-family: "Noto Serif TC", serif; font-size: .9rem; letter-spacing: .5em; text-indent: .5em; color: #9c8a6e; }
.jing-end::before, .jing-end::after { content: "───"; letter-spacing: 0; text-indent: 0; margin: 0 14px; color: #d9cfb6; }

/* 朱印章回導航 */
.jing-nav-btn { position: fixed; right: 18px; bottom: 22px; z-index: 150; width: 52px; height: 52px; background: #9e2b25; color: #f3e9d6; border: 0; border-radius: 4px; font-family: "Noto Serif TC", serif; font-size: 1.15rem; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(243,233,214,.5), 0 6px 20px rgba(0,0,0,.28); }
.jing-nav-btn:hover { background: #b23830; }
.jing-nav { position: fixed; right: 18px; bottom: 84px; z-index: 150; width: min(300px, calc(100vw - 36px)); background: #0d1119; border: 1px solid rgba(212,165,92,.3); border-radius: 6px; padding: 14px 6px; box-shadow: 0 18px 50px rgba(0,0,0,.45); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .25s ease; }
.jing-nav.open { opacity: 1; transform: none; pointer-events: auto; }
.jing-nav a { display: flex; gap: 12px; align-items: baseline; padding: 10px 16px; color: #cfc5aa; text-decoration: none; font-size: .92rem; border-radius: 4px; }
.jing-nav a:hover, .jing-nav a.now { background: rgba(212,165,92,.12); color: #f0e6cf; }
.jing-nav a b { font-family: "Noto Serif TC", serif; font-weight: 600; font-size: .8rem; color: #d4a55c; letter-spacing: .18em; flex: 0 0 52px; }

/* ══ AI 生意經 IG 九宮格目錄 ══ */
.jing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: clamp(1.6rem, 4vw, 2.4rem); }
.jing-grid a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #0b0e14; }
.jing-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.jing-grid a:hover img { transform: scale(1.04); }

/* ══ 開卷目錄頁（毛選式版式）＋面向篩選 ══ */
.jing-mulu { max-width: 560px; margin: 0 auto; text-align: center; }
.jing-mulu-rule { height: 6px; border-top: 2.5px solid #2c2620; border-bottom: 1px solid #2c2620; }
.jing-mulu-rule.flip { border-top-width: 1px; border-bottom-width: 2.5px; }
.site-2026 .jing-mulu h2 { font-family: "Noto Serif TC", "Songti TC", serif; font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 600; letter-spacing: .9em; text-indent: .9em; margin: 26px 0 10px; color: #17130f; }
.jing-mulu-note { margin: 0 0 24px; font-size: .82rem; letter-spacing: .18em; color: #9a948a; }
.jing-filter { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 26px 0 0; }
.jing-filter label { font-family: "Noto Serif TC", "Songti TC", serif; font-size: .88rem; letter-spacing: .2em; color: #6f6a62; font-weight: 600; }
.jing-filter select { appearance: none; -webkit-appearance: none; font-family: "Noto Serif TC", "Songti TC", serif; font-size: .92rem; letter-spacing: .1em; color: #17130f; background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239e2b25'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid #cfc5ae; border-radius: 3px; padding: 9px 38px 9px 16px; cursor: pointer; }
.jing-filter select:focus { outline: none; border-color: #9e2b25; }
.jing-grid a.hide { display: none; }
.jing-grid-empty { grid-column: 1 / -1; text-align: center; padding: 46px 0; font-family: "Noto Serif TC", serif; letter-spacing: .2em; color: #9a948a; font-size: .9rem; display: none; }

/* 對號入座導流卡（整卡可點） */
a.jing-route { display: flex; gap: 13px; align-items: flex-start; border: 1px solid #e4ded2; border-radius: 4px; background: #fff; margin: 0 0 12px; padding: 14px 16px; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
a.jing-route:hover { border-color: #9e2b25; background: #faf8f3; }
.jing-route-q { display: block; font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 600; font-size: .98rem; letter-spacing: .03em; line-height: 1.7; color: #17130f; }
.jing-route-to { display: block; margin-top: 6px; font-size: .86rem; letter-spacing: .04em; color: #9e2b25; font-weight: 600; }
