/* Enclave 產品頁 v3：痛點開場；幻覺有解、多元輸入、照格式產出、分層客製 */

/* 1. 首屏：滿版照片 */
.e-hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--navy-deep); }
.e-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.e-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,22,61,.92) 0%, rgba(0,22,61,.75) 40%, rgba(0,22,61,.15) 75%); }
.e-hero-inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.e-hero .kicker { display: flex; gap: 10px; align-items: center; }
.e-hero .kicker b { font-size: 14px; letter-spacing: .1em; }
.e-hero .kicker span { font-size: 13px; font-weight: 700; color: #FFB59F; }
.e-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.25; margin-top: 18px; max-width: 13em; }
.e-hero .sub { font-size: 18px; font-weight: 300; color: #D6E0F0; margin-top: 20px; max-width: 30em; }
.e-hero .acts { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn-ghost-w { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost-w:hover { background: #fff; color: var(--navy); }
.e-cap { position: absolute; z-index: 2; right: 16px; bottom: 16px; font-size: 11px; color: #fff; background: rgba(0,20,50,.55); padding: 2px 8px; border-radius: 6px; }

/* 2. 一天裡的四個時刻 */
.day { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.moment { padding: 24px 22px 8px 0; }
.moment + .moment { padding-left: 22px; border-left: 1px solid var(--line); }
.moment .t { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--navy-2); }
.moment h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--navy); margin-top: 8px; }
.moment p { font-size: 15px; color: var(--ink-2); margin-top: 8px; line-height: 1.75; }
.moment.hot .t, .moment.hot h3 { color: var(--orange); }

/* 3. 幻覺有解 */
.hal { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.fix4 { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: fx; }
.fix4 li { counter-increment: fx; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); }
.fix4 li::before { content: counter(fx); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.fix4 b { display: block; font-size: 17px; color: var(--navy); }
.fix4 span { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.7; }
.screen { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(14,26,48,.14); background: #fff; }
.screen .bar { height: 28px; background: #F1F2F4; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.screen .bar i { width: 9px; height: 9px; border-radius: 50%; background: #D6D8DD; }
.screen img { width: 100%; display: block; }
.screen figcaption { position: absolute; right: 10px; bottom: 10px; font-size: 11px; color: #fff; background: rgba(0,20,50,.55); padding: 2px 8px; border-radius: 6px; }

/* 4. 多元輸入：深色匯流圖 */
.p-section.dark { background: radial-gradient(ellipse at 50% 60%, #0B2F6E 0%, var(--navy-deep) 65%); color: #fff; }
.p-section.dark .p-eyebrow { color: #FF9A80; }
.p-section.dark .p-title { color: #fff; }
.p-section.dark .p-lead { color: #C3D1EA; }
.hub { display: grid; grid-template-columns: 1fr 120px 280px 120px 1fr; grid-template-rows: auto 400px; column-gap: 0; row-gap: 14px; margin-top: 8px; }
.hub-tag { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: #8FB0E6; }
.hub-tag.l { grid-column: 1; grid-row: 1; }
.hub-tag.r { grid-column: 5; grid-row: 1; text-align: right; }
.hub-col { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(4, 88px); row-gap: 16px; grid-row: 2; }
.hub-col.l { grid-column: 1; }
.hub-col.r { grid-column: 5; }
.hub-col li { display: flex; align-items: center; gap: 14px; padding: 0 18px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(143,176,230,.28); }
.hub-col .hi { flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(232,63,23,.14); display: grid; place-items: center; }
.hub-col .hi svg { width: 24px; height: 24px; fill: none; stroke: #FF9A80; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub-col b { display: block; font-size: 16.5px; font-weight: 700; color: #fff; }
.hub-col small { display: block; font-size: 13px; color: #A9BBDA; margin-top: 2px; }
.hub-lines { grid-row: 2; width: 100%; height: 400px; overflow: visible; }
.hub-lines.l { grid-column: 2; }
.hub-lines.r { grid-column: 4; }
.hub-lines path { fill: none; vector-effect: non-scaling-stroke; }
.hub-lines .base path { stroke: rgba(143,176,230,.35); stroke-width: 1.5; }
.hub-lines .flow path { stroke: #FF7A57; stroke-width: 2; stroke-dasharray: 6 14; animation: flow 1.6s linear infinite; }
.hub-lines.r .flow path { animation-direction: normal; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) { .hub-lines .flow path { animation: none; } }
.hub-core { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.core-ring { width: 236px; height: 236px; border-radius: 50%; padding: 14px; background: radial-gradient(circle, rgba(232,63,23,.0) 55%, rgba(232,63,23,.18) 100%); border: 1px solid rgba(255,154,128,.45); box-shadow: 0 0 60px rgba(232,63,23,.25); }
.core { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(160deg, #1A4B9A, #002B69 70%); border: 1px solid rgba(255,255,255,.25); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.core b { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: .02em; }
.core span { font-size: 13.5px; color: #FFB59F; margin-top: 6px; letter-spacing: .08em; }
.core-sub { font-size: 12.5px; color: #A9BBDA; text-align: center; margin-top: 16px; line-height: 1.7; }
.hub-out { margin: 40px auto 0; max-width: max-content; padding: 12px 24px; border-radius: 999px; border: 1px solid rgba(255,154,128,.5); font-size: 16px; color: #D6E0F0; text-align: center; }
.hub-out b { color: #fff; }

/* 5. 照公司格式產出 */
.make { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; display: grid; place-items: center; }
.make-visual { position: relative; padding: 24px 0 0 40px; }
.make-visual::before { content: ""; position: absolute; inset: 60px -24px -24px 0; border-radius: 24px; background: var(--tint); z-index: 0; }
.ask-bubble { position: relative; z-index: 2; max-width: 360px; margin-left: -40px; padding: 14px 18px; border-radius: 16px 16px 16px 4px; background: var(--navy); color: #fff; font-size: 15px; line-height: 1.6; box-shadow: 0 14px 30px rgba(0,43,105,.25); }
.ask-bubble .who { display: block; font-size: 12px; color: #A9C1EA; margin-bottom: 4px; }
.doc { position: relative; z-index: 1; margin-top: -10px; background: #fff; border-radius: 6px; padding: 26px 28px 22px; box-shadow: 0 30px 70px rgba(14,26,48,.18); border: 1px solid #E3E6EB; font-size: 13px; color: #2B2F36; }
.doc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid #2B2F36; }
.doc-logo { width: 44px; height: 44px; border-radius: 6px; background: #5A6472; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.doc-head b { display: block; font-size: 15px; }
.doc-head div span { font-family: var(--serif); font-size: 19px; letter-spacing: .2em; }
.doc-no { margin-left: auto; font-size: 11.5px; color: #6B7280; align-self: flex-start; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.doc th, .doc td { border: 1px solid #CDD2DA; padding: 6px 8px; text-align: left; }
.doc th { background: #F3F4F6; font-weight: 700; white-space: nowrap; }
.doc-items td:nth-child(n+2) { white-space: nowrap; }
.doc td.hl { background: #FDEDE8; box-shadow: inset 0 0 0 1.5px var(--orange); }
.doc-total { text-align: right; font-weight: 700; margin-top: 8px; }
.doc-src { list-style: none; padding: 10px 12px; margin: 12px 0 0; background: #FFF7F4; border-radius: 6px; }
.doc-src li { font-size: 12px; color: #4B5563; line-height: 1.9; }
.doc-src i { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 10px; margin-right: 6px; }
.doc-sign { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border: 1px solid #CDD2DA; }
.doc-sign div { padding: 6px 10px; text-align: center; }
.doc-sign div + div { border-left: 1px solid #CDD2DA; }
.doc-sign span { display: block; font-size: 11px; color: #6B7280; }
.doc-sign b { font-size: 13px; }
.doc-sign b.wait { color: #9CA3AF; font-weight: 400; }
.stamp { position: absolute; right: 26px; top: 74px; transform: rotate(-8deg); border: 2px solid var(--orange); color: var(--orange); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 6px; letter-spacing: .1em; background: rgba(255,255,255,.85); }
.doc-cap { position: relative; z-index: 1; text-align: right; font-size: 11px; color: var(--ink-3); margin-top: 10px; }

/* 6. 分層與客製 */
.layers-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.consult { margin-top: 28px; padding: 20px 22px; border-left: 4px solid var(--orange); background: #fff; border-radius: 0 12px 12px 0; }
.consult b { font-size: 17px; color: var(--navy); }
.consult p { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.consult a { display: inline-block; margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--orange); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.lv { border-radius: 12px; padding: 16px 22px; display: flex; align-items: baseline; gap: 16px; color: #fff; }
.lv b { font-family: var(--serif); font-weight: 400; font-size: 20px; min-width: 6.5em; }
.lv span { font-size: 14px; opacity: .85; }
.lv.l1 { background: var(--navy-deep); }
.lv.l2 { background: var(--navy); }
.lv.l3 { background: var(--navy-1); }
.lv.l4 { background: var(--navy-2); }
.lv.top { display: block; background: #fff; color: var(--ink); border: 2px dashed var(--orange); padding: 18px 22px 20px; box-shadow: 0 18px 40px rgba(232,63,23,.12); }
.lv-h { display: flex; align-items: center; justify-content: space-between; }
.lv.top b { color: var(--orange); font-size: 22px; }
.lv-h em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--orange); padding: 3px 10px; border-radius: 999px; }
.lv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lv-chips span { font-size: 13.5px; padding: 5px 12px; border-radius: 8px; background: var(--orange-tint); color: #A42A0C; opacity: 1; }
.lv-chips span.add { background: transparent; border: 1px dashed var(--orange); color: var(--orange); font-weight: 700; }
.stack-note { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.hal .p-title, .make .p-title { font-size: clamp(30px, 2.9vw, 42px); }

/* 7. 開始 */
.steps5 span:not(.n) { display: block; margin-top: 6px; line-height: 1.65; }

@media (max-width: 1100px) {
  .hub { grid-template-columns: 1fr 1fr; grid-template-rows: auto; row-gap: 16px; column-gap: 16px; }
  .hub-tag.l, .hub-tag.r { grid-row: auto; grid-column: auto; text-align: left; }
  .hub-tag.l { order: 1; } .hub-col.l { order: 2; } .hub-tag.r { order: 3; } .hub-col.r { order: 4; } .hub-core { order: 5; }
  .hub-col.l, .hub-col.r, .hub-core { grid-column: 1 / -1; grid-row: auto; }
  .hub-col { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hub-col li { min-height: 80px; }
  .hub-lines { display: none; }
  .hub-core { margin-top: 12px; }
}
@media (max-width: 1000px) {
  .day { grid-template-columns: 1fr 1fr; }
  .moment:nth-child(3) { border-left: 0; padding-left: 0; }
  .hal, .make, .layers-wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps5 { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
}
@media (max-width: 600px) {
  .day { grid-template-columns: 1fr; }
  .moment { border-left: 0 !important; padding-left: 0 !important; }
  .hub-col { grid-template-columns: 1fr; }
  .make-visual { padding-left: 0; }
  .ask-bubble { margin-left: 0; }
  .make-visual::before { right: 0; }
  .doc { padding: 18px 14px; font-size: 12px; overflow-x: auto; }
  .stamp { top: 64px; right: 12px; }
  .lv { flex-direction: column; gap: 2px; }
  .steps5 { grid-template-columns: 1fr 1fr; }
}

/* 手機檢視修正：ForgeBase 的 .stack 固定高度規則撞名，造成分層圖蓋到下一區塊 */
.layers-wrap .stack { height: auto; }
