/* ============================================================
   項目詳情頁（project.html?id=…）
   「左側深讀、右側速決」：頭部 Hero → 左 760 內容主區（錨點式 Tab 平鋪）＋ 右 400 決策面板（吸頂）→ 推薦。
   沿用 projects.css 的狀態膠囊、徽章、項目卡；assets-sub.css 的按鈕與彈窗。
   ============================================================ */

:root { --pd-warn: #E59A5C; --pd-red: #D98C7A; --pd-nav: 73px; --pd-tabs: 48px; --pd-gap: 12px; } /* --pd-nav＝導航實際高度 */
@media (max-width: 860px) { :root { --pd-nav: 62px; } }

.pd-wrap { max-width: 1200px; margin: 0 auto; padding: calc(var(--pd-nav) + 22px) var(--pad) var(--pad-lg); display: flex; flex-direction: column; gap: 22px; }
.pd-crumbs { margin: 0; font-size: 11.5px; text-transform: none; letter-spacing: .03em; align-items: center; flex-wrap: wrap; }
.pd-crumbs a:hover { color: var(--c-accent); }
.pd section, .pd-hero, .pd-recs, .pd-sec { padding: 0; }

/* ---------- 頁首橫幅 ---------- */
.pd-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 11px 16px; border-radius: 6px; font-size: 13px; line-height: 1.7; }
.pd-banner span { flex: 1 1 260px; }
.pd-banner b { font-weight: 500; }
.pd-banner--preview { border: 1px dashed rgba(210, 160, 110, .6); background: rgba(210, 160, 110, .08); }
.pd-banner--preview b { color: var(--c-accent); }
.pd-banner--held { border: 1px solid rgba(169, 196, 151, .45); background: rgba(169, 196, 151, .08); }
.pd-banner--held b { color: var(--up); font-family: var(--mono); }
.pd-banner--closing { border: 1px solid rgba(229, 154, 92, .55); background: rgba(229, 154, 92, .1); }
.pd-banner--closing b { color: var(--pd-warn); font-family: var(--mono); }
.pd-banner a, .pd-banner button { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--c-accent); white-space: nowrap; }
.pd-banner + .pd-banner { margin-top: -12px; }

/* ============ 區域 A：Hero ============ */
.pd-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  grid-template-areas: "info media" "stats stats";
  gap: 22px 36px;
  padding: clamp(22px, 2.6vw, 32px) !important;
  border: 1px dashed var(--line-on-dark);
  border-radius: 12px;
  background: radial-gradient(70% 120% at 0% 0%, rgba(210, 160, 110, .1), transparent 60%), var(--c-surface);
}
.pd-hero__info { grid-area: info; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-hero__media { grid-area: media; position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #120E0E; border: 1px solid rgba(247, 247, 247, .08); cursor: zoom-in; }
.pd-hero__media video, .pd-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-hero__media span { position: absolute; left: 12px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(20, 16, 16, .75); font-family: var(--mono); font-size: 10.5px; }
.pd-hero__stats { grid-area: stats; }
@media (max-width: 960px) {
  .pd-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "info" "stats"; }
}
.pd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.pd-tags a.tag:hover { filter: brightness(1.2); }
.status--closing { color: var(--pd-warn); border-color: rgba(229, 154, 92, .55); }
.status--closing i { background: var(--pd-warn); animation: pdPulse 1.6s infinite; }
.status--delisted { color: var(--pd-red); border-color: rgba(217, 140, 122, .5); }
@keyframes pdPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 154, 92, .6); } 50% { box-shadow: 0 0 0 5px rgba(229, 154, 92, 0); } }
.pd-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pd-title h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 300; line-height: 1.2; }
.pd-verify { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(169, 196, 151, .5); color: var(--up); font-size: 11.5px; white-space: nowrap; }
.pd-oneliner { font-size: clamp(15px, 1.4vw, 17px); opacity: .8; line-height: 1.7; max-width: 560px; }
.pd-trust { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; opacity: .8; }
.pd-trust span { display: inline-flex; align-items: center; gap: 6px; }
.pd-trust i { width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; background: rgba(169, 196, 151, .2); color: var(--up); font-style: normal; font-size: 9px; }
.pd-risk { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.pd-risk b { font-family: var(--mono); padding: 2px 8px; border-radius: 3px; background: rgba(247, 247, 247, .08); }
.pd-risk em { font-style: normal; padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.pd-risk em.is-ok { background: rgba(169, 196, 151, .16); color: var(--up); }
.pd-risk em.is-warn { background: rgba(230, 194, 122, .16); color: #E6C27A; }
.pd-meta { font-size: 12px; opacity: .5; }

.pd-band { grid-area: stats; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px dashed var(--line-on-dark); }
.pd-band > div { display: flex; flex-direction: column; gap: 5px; padding: 16px 16px 0 20px; border-right: 1px dashed var(--line-on-dark); min-width: 0; }
.pd-band > div:first-child { padding-left: 0; }
.pd-band > div:last-child { border-right: none; }
.pd-band dt { font-size: 11.5px; opacity: .5; }
.pd-band dd { font-family: var(--mono); font-size: clamp(16px, 1.6vw, 21px); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-band dd small { display: block; font-size: 11px; font-weight: 500; opacity: .55; margin-top: 3px; white-space: normal; }
.pd-band dd.is-gold { color: var(--c-accent); }
@media (max-width: 760px) {
  .pd-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-band > div { padding: 14px 12px 0 0 !important; border-right: none; }
  .pd-band > div:nth-child(n+3) { border-top: 1px dashed var(--line-on-dark); margin-top: 12px; }
  .pd-band > div:last-child { grid-column: 1 / -1; }
}

/* 融資完成總結卡 */
.pd-done { grid-area: stats; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 8px; border: 1px solid rgba(157, 185, 140, .45); background: rgba(157, 185, 140, .07); }
.pd-done div { display: flex; flex-direction: column; gap: 4px; }
.pd-done dt { font-size: 11.5px; opacity: .55; }
.pd-done dd { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--tr-rwa); }
@media (max-width: 760px) { .pd-done { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 手機：認購進度前置 */
.pd-mprog { display: none; }
@media (max-width: 1020px) { .pd-mprog:not(:empty) { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px dashed rgba(210, 160, 110, .4); border-radius: 8px; } }

/* ============ 雙欄 ============ */
.pd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
@media (max-width: 1020px) { .pd-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.pd-main { min-width: 0; }

/* 吸頂 Tab 栏（Glass-2） */
.pd-tabs {
  position: sticky; top: calc(var(--pd-nav) + var(--pd-gap));
  z-index: 20;
  display: flex; gap: 2px;
  margin-bottom: 8px;
  padding: 0 6px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 8px;
  background: rgba(20, 16, 16, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 5px; height: var(--pd-tabs); padding: 0 12px; font-size: 13.5px; color: rgba(247, 247, 247, .58); transition: color .25s; }
.pd-tab:hover { color: var(--c-text); }
.pd-tab::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--c-accent); transform: scaleX(0); transition: transform .3s var(--ease-power4); }
.pd-tab.is-on { color: var(--c-accent); }
.pd-tab.is-on::after { transform: scaleX(1); }
.pd-tab__lock { width: 11px; height: 11px; opacity: .7; }

/* ============ 區域 B：內容區塊 ============ */
.pd-sec { scroll-margin-top: calc(var(--pd-nav) + var(--pd-gap) + var(--pd-tabs) + 24px); padding: 34px 0 6px !important; border-bottom: 1px dashed var(--line-on-dark); }
.pd-sec:last-child { border-bottom: none; }
.pd-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 14px; margin-bottom: 18px; }
.pd-sec__head h2 { font-size: clamp(20px, 2vw, 24px); font-weight: 400; }
.pd-sec__head h2 span { font-family: var(--mono); font-size: 11px; color: var(--c-accent); margin-right: 10px; vertical-align: 3px; }
.pd-sec__body { display: flex; flex-direction: column; gap: 22px; max-width: 680px; }
.pd-sec__body.is-wide { max-width: none; }
.pd-h3 { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.pd-p { font-size: 15px; line-height: 1.85; opacity: .82; }
.pd-sec__more { display: none; }
@media (max-width: 760px) {
  .pd-sec.is-folded .pd-sec__body { max-height: 320px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .pd-sec__more { display: inline-flex; margin-top: 10px; font-size: 12.5px; color: var(--c-accent); }
}

.hl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .hl { grid-template-columns: 1fr; } }
.hl li { display: flex; gap: 12px; padding: 14px; border: 1px dashed var(--line-on-dark); border-radius: 8px; }
.hl li > i { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 6px; background: rgba(210, 160, 110, .12); color: var(--c-accent); font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.hl b { display: block; font-size: 14px; font-weight: 500; }
.hl span { display: block; margin-top: 3px; font-size: 12.5px; opacity: .6; line-height: 1.6; }
.hl__src { font-size: 11px; opacity: .45; }
.psm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 680px) { .psm { grid-template-columns: 1fr; } }
.psm div { padding: 16px; border-top: 2px solid rgba(247, 247, 247, .14); background: rgba(247, 247, 247, .02); }
.psm b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--c-accent); }
.psm p { margin-top: 8px; font-size: 13.5px; line-height: 1.75; opacity: .8; }
.bmodel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
@media (max-width: 680px) { .bmodel { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } }
.bmodel div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; text-align: center; }
.bmodel div b { width: 100%; padding: 12px 8px; border: 1px solid rgba(210, 160, 110, .45); border-radius: 8px; font-size: 13px; font-weight: 500; background: rgba(210, 160, 110, .06); }
.bmodel div:nth-child(2) b { background: var(--c-accent); color: #16120F; border-color: var(--c-accent); }
.bmodel div span { font-size: 11.5px; opacity: .6; }
.bmodel div:not(:last-child)::after { content: '→'; position: absolute; right: -7px; top: 24px; color: var(--c-accent); opacity: .7; font-size: 13px; }
.mtl { display: flex; flex-direction: column; }
.mtl li { position: relative; display: grid; grid-template-columns: 80px 14px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; font-size: 13.5px; }
.mtl li::before { content: ''; position: absolute; left: 98px; top: 12px; bottom: -2px; width: 1px; background: var(--line-on-dark); }
.mtl li:last-child::before { display: none; }
.mtl time { font-family: var(--mono); font-size: 11px; opacity: .5; padding-top: 2px; }
.mtl i { width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; border: 1.5px solid var(--c-accent); position: relative; z-index: 1; background: var(--c-bg); }
.mtl li.is-done i { background: var(--c-accent); }
.mtl li:not(.is-done) span { opacity: .6; }
.review { padding: 18px 20px; border-left: 3px solid var(--c-accent); background: rgba(210, 160, 110, .06); border-radius: 0 8px 8px 0; }
.review__k { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--c-accent); }
.review p { margin-top: 8px; font-size: 14px; line-height: 1.85; }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }
.tm { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px dashed var(--line-on-dark); border-radius: 8px; }
.tm__av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, rgba(210, 160, 110, .3), rgba(210, 160, 110, .06)); font-size: 17px; }
.tm b { font-size: 14.5px; font-weight: 500; }
.tm em { display: block; font-style: normal; font-size: 12px; color: var(--c-accent); margin-top: 2px; }
.tm p { margin-top: 6px; font-size: 12.5px; opacity: .65; line-height: 1.6; }
.tm a { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; opacity: .6; }
.tm a:hover { opacity: 1; color: var(--c-accent); }
.logos { display: flex; flex-wrap: wrap; gap: 8px; }
.logos span { padding: 10px 16px; border: 1px solid rgba(247, 247, 247, .1); border-radius: 6px; font-size: 13px; background: rgba(247, 247, 247, .03); }
.team2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 680px) { .team2 { grid-template-columns: 1fr; } }
.radar svg, .cappie svg { width: 100%; max-width: 240px; display: block; margin: 0 auto; }
.cappie { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.cappie svg { transform: rotate(-90deg); width: 150px; }
.cappie .legend__item { cursor: default; padding: 5px 0; }

/* BP 閱讀器 */
.bp { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; }
@media (max-width: 760px) { .bp { grid-template-columns: 1fr; } }
.bp__viewer { position: relative; display: flex; flex-direction: column; border: 1px dashed var(--line-on-dark); border-radius: 8px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.bp__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px dashed var(--line-on-dark); font-family: var(--mono); font-size: 11px; }
.bp__bar div { display: flex; align-items: center; gap: 4px; }
.bp__bar button, .bp__bar input { height: 26px; border-radius: 4px; border: 1px dashed var(--line-on-dark); color: rgba(247, 247, 247, .75); font-family: var(--mono); font-size: 11px; }
.bp__bar button { min-width: 26px; padding: 0 6px; }
.bp__bar button:hover:not(:disabled) { border-color: rgba(210, 160, 110, .6); color: var(--c-accent); }
.bp__bar button:disabled { opacity: .3; }
.bp__bar input { width: 40px; text-align: center; background: transparent; }
.bp__stage { position: relative; display: grid; place-items: center; padding: 18px; background: #120E0E; min-height: 360px; }
.bp__page { position: relative; width: min(100%, 420px); aspect-ratio: 16 / 10; border-radius: 4px; background: #F4F1EC; color: #1B1514; padding: 22px 24px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.bp__page h4 { font-size: 15px; font-weight: 500; }
.bp__page p { font-family: var(--mono); font-size: 9px; color: #A9764A; letter-spacing: .08em; }
.bp__page i { display: block; height: 6px; border-radius: 2px; background: rgba(27, 21, 20, .12); }
.bp__page i.s { width: 60%; } .bp__page i.m { width: 85%; }
.bp__page .blk { flex: 1; min-height: 40px; border-radius: 3px; background: linear-gradient(135deg, rgba(169, 118, 74, .25), rgba(169, 118, 74, .05)); }
.bp__wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transform: rotate(-24deg); font-family: var(--mono); font-size: 11px; color: rgba(27, 21, 20, .14); white-space: nowrap; }
.bp__page.is-blur > *:not(.bp__wm) { filter: blur(6px); }
.bp__gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; background: rgba(18, 14, 14, .45); }
.bp__gate b { font-size: 15px; font-weight: 500; }
.bp__gate span { font-size: 12.5px; opacity: .7; }
.bp__sum { display: flex; flex-direction: column; gap: 10px; }
.bp__sum li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.7; opacity: .82; }
.bp__sum li::before { content: ''; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; border-radius: 1px; background: var(--c-accent); }
.bp__resume { font-size: 11.5px; opacity: .55; }
.bp.is-full .bp__stage { position: fixed; inset: 0; z-index: 150; background: rgba(12, 9, 9, .96); }
.bp.is-full .bp__page { width: min(92vw, 1100px); }

/* 財務與估值（鎖定態：真實渲染後模糊 12px） */
.fin { position: relative; }
.fin.is-locked .fin__body { filter: blur(12px); pointer-events: none; user-select: none; }
.fin__lock { position: absolute; left: 50%; top: 140px; transform: translateX(-50%); z-index: 2; width: min(380px, calc(100% - 24px)); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 22px 20px; text-align: center; border: 1px dashed rgba(210, 160, 110, .6); border-radius: 10px; background: rgba(27, 21, 20, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; }
.fin__lock svg { width: 26px; height: 26px; color: var(--c-accent); }
.fin__lock b { font-size: 15px; font-weight: 500; }
.fin__lock span { font-size: 12.5px; opacity: .65; line-height: 1.7; }
.fin__body { display: flex; flex-direction: column; gap: 24px; }
.ftable { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--c-surface); border-radius: 8px; overflow: hidden; }
.ftable th, .ftable td { padding: 11px 14px; border-bottom: 1px solid rgba(247, 247, 247, .07); text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ftable th:first-child, .ftable td:first-child { text-align: left; font-family: var(--sans); }
.ftable thead th { font-size: 10.5px; opacity: .55; font-weight: 700; }
.fchart svg { width: 100%; height: 200px; display: block; overflow: visible; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(247, 247, 247, .08); font-size: 13px; }
.kv dt { opacity: .55; }
.kv dd { text-align: right; }
.dd-report { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line-on-dark); border-radius: 8px; font-size: 13px; }

/* 風險披露 */
.risks { display: flex; flex-direction: column; border: 1px solid rgba(247, 247, 247, .08); border-radius: 8px; overflow: hidden; }
.risks li { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 13px 16px; border-bottom: 1px solid rgba(247, 247, 247, .06); font-size: 13px; line-height: 1.7; }
.risks li:last-child { border-bottom: none; }
.risks li.is-head { font-family: var(--mono); font-size: 10.5px; opacity: .55; background: rgba(247, 247, 247, .03); }
.risks b { font-weight: 500; color: var(--pd-red); }
@media (max-width: 620px) { .risks li { grid-template-columns: 1fr; gap: 4px; } .risks li.is-head { display: none; } }
.rlevels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.rlevels span { padding: 8px 4px; border-radius: 4px; text-align: center; font-size: 11px; background: rgba(247, 247, 247, .04); opacity: .5; }
.rlevels span b { display: block; font-family: var(--mono); font-size: 13px; }
.rlevels span.is-cur { opacity: 1; background: rgba(217, 140, 122, .16); color: #F0B3A3; outline: 1px solid rgba(217, 140, 122, .5); }
.readcheck { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px; background: rgba(247, 247, 247, .04); font-size: 12.5px; }
.readcheck .progress__bar { flex: 1; height: 3px; }
.readcheck.is-done { color: var(--up); }

/* 更新動態 */
.ufeed { display: flex; flex-direction: column; }
.ufeed li { display: grid; grid-template-columns: 90px 12px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; position: relative; }
.ufeed li::before { content: ''; position: absolute; left: 107px; top: 14px; bottom: 0; width: 1px; background: var(--line-on-dark); }
.ufeed li:last-child::before { display: none; }
.ufeed time { font-family: var(--mono); font-size: 11px; opacity: .5; padding-top: 2px; }
.ufeed i { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--c-accent); position: relative; z-index: 1; }
.ufeed li.is-system i { background: var(--tr-web3); }
.ufeed li.is-holder i { background: var(--up); }
.ufeed b { font-size: 14px; font-weight: 500; }
.ufeed em { font-style: normal; margin-left: 8px; font-size: 10.5px; padding: 1px 6px; border-radius: 3px; background: rgba(247, 247, 247, .07); opacity: .7; }
.ufeed p { margin-top: 4px; font-size: 13px; opacity: .65; line-height: 1.7; }
.holder-lock { padding: 14px 16px; border: 1px dashed var(--line-on-dark); border-radius: 8px; font-size: 13px; opacity: .7; }

/* 問答 */
.qa-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.askbox { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px dashed var(--line-on-dark); border-radius: 8px; }
.askbox .textarea { min-height: 80px; font-size: 13.5px; }
.askbox__ai { font-size: 12.5px; padding: 10px 12px; border-radius: 6px; background: rgba(210, 160, 110, .07); border-left: 2px solid var(--c-accent); line-height: 1.7; }
.askbox__ai button { color: var(--c-accent); margin-left: 4px; }
.faq { display: flex; flex-direction: column; gap: 6px; }
.faq details { padding: 12px 14px; border: 1px solid rgba(210, 160, 110, .3); border-radius: 6px; background: rgba(210, 160, 110, .04); font-size: 13.5px; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq summary::marker { color: var(--c-accent); }
.faq p { margin-top: 8px; opacity: .75; line-height: 1.75; font-size: 13px; }
.qitem { padding: 16px 0; border-bottom: 1px dashed var(--line-on-dark); }
.qitem:last-child { border-bottom: none; }
.qitem__m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; }
.qitem__m b { font-size: 13px; font-weight: 500; }
.qitem__m time, .qitem__m .t-mono { font-size: 10.5px; opacity: .5; }
.qitem__q { margin-top: 6px; font-size: 14.5px; line-height: 1.7; }
.qitem__a { margin-top: 10px; padding: 11px 14px; border-left: 1px dashed rgba(210, 160, 110, .55); background: rgba(247, 247, 247, .03); font-size: 13.5px; line-height: 1.75; }
.qbadge { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 3px; font-size: 10.5px; font-weight: 500; vertical-align: 1px; }
.qbadge--founder { background: rgba(140, 169, 191, .18); color: var(--tr-web3); }
.qbadge--platform { background: var(--c-accent); color: #16120F; }
.qitem__ops { margin-top: 8px; display: flex; gap: 14px; font-size: 12px; }
.qitem__ops button { opacity: .6; }
.qitem__ops button:hover, .qitem__ops button.is-on { opacity: 1; color: var(--c-accent); }
.qitem.is-new { animation: pdNew 2.4s ease-out; }
@keyframes pdNew { from { background: rgba(210, 160, 110, .18); } to { background: transparent; } }

/* ============ 區域 C：決策面板 ============ */
.pd-panel {
  position: sticky; top: calc(var(--pd-nav) + 16px);
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  display: flex; flex-direction: column;
  border: 1px solid rgba(210, 160, 110, .32);
  border-radius: 12px;
  background: linear-gradient(170deg, #1E1817, #171211);
}
@media (max-width: 1020px) { .pd-panel { position: static; max-height: none; } }
.pp { padding: 18px 20px; border-bottom: 1px dashed var(--line-on-dark); display: flex; flex-direction: column; gap: 12px; }
.pp:last-child { border-bottom: none; }
.pp__k { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; opacity: .5; }
.pp-cd { margin: -1px -1px 0; padding: 10px 20px; border-radius: 12px 12px 0 0; background: rgba(229, 154, 92, .16); color: var(--pd-warn); font-size: 12.5px; display: flex; justify-content: space-between; gap: 8px; }
.pp-cd b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pp-prog__pct { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pp-prog__pct b { font-family: var(--mono); font-size: 38px; font-weight: 500; color: var(--c-accent); line-height: 1; }
.pp-prog__pct span { font-size: 12px; opacity: .6; text-align: right; }
.pp .progress__bar { height: 7px; }
.pp-prog.is-filled .progress__bar i { background: linear-gradient(90deg, rgba(210, 160, 110, .7), var(--c-accent)); }
.pp-prog__row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.pp-prog__row b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pp-prog__hot { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: rgba(229, 154, 92, .14); color: var(--pd-warn); font-size: 11px; }
.pp-params { display: flex; flex-direction: column; }
.pp-params div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed rgba(247, 247, 247, .06); }
.pp-params div:last-child { border-bottom: none; }
.pp-params dt { display: inline-flex; align-items: center; gap: 6px; opacity: .6; }
.pp-params dd { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.tip { position: relative; width: 15px; height: 15px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgba(247, 247, 247, .3); font-size: 9px; cursor: help; opacity: .8; }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-30%); width: 220px; padding: 9px 11px; border: 1px dashed rgba(210, 160, 110, .5); border-radius: 6px; background: rgba(20, 16, 16, .98); font-size: 11.5px; line-height: 1.6; text-align: left; white-space: normal; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 5; }
.tip:hover::after, .tip:focus-visible::after { opacity: 1; }
.pp-quota { padding: 10px 12px; border-radius: 6px; background: rgba(247, 247, 247, .04); font-size: 12.5px; line-height: 1.7; }
.pp-quota b { font-family: var(--mono); }
.pp-quota a { color: var(--c-accent); margin-left: 4px; }
.pp-quota.is-short { background: rgba(230, 194, 122, .08); border: 1px dashed rgba(230, 194, 122, .45); }
.pp-check { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.6; }
.pp-check input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--c-accent); flex: none; }
.pp-check input:disabled + span { opacity: .55; }
.pp-check a { color: var(--c-accent); }
.cta {
  width: 100%; height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px;
  background: var(--c-accent);
  color: #16120F;
  font-size: 15px; font-weight: 500;
  transition: background-color .25s, box-shadow .25s, opacity .25s;
}
.cta:hover { background: #E0B384; }
.cta:disabled, .cta[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.cta--quiet { background: transparent; color: var(--c-accent); border: 1px solid rgba(210, 160, 110, .6); }
.cta--quiet:hover { background: rgba(210, 160, 110, .1); }
.cta--warn { background: transparent; color: #E6C27A; border: 1px solid rgba(230, 194, 122, .6); }
.cta.is-glow { animation: pdGlow 1.8s infinite; }
@keyframes pdGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(210, 160, 110, .55); } 50% { box-shadow: 0 0 0 8px rgba(210, 160, 110, 0); } }
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-early { font-size: 12px; color: var(--c-accent); text-align: center; }
.pp-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pp-acts button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 4px; border: 1px dashed var(--line-on-dark); border-radius: 6px; font-size: 11.5px; color: rgba(247, 247, 247, .75); transition: border-color .25s, color .25s, transform .25s; }
.pp-acts button:hover { border-color: rgba(210, 160, 110, .55); color: var(--c-accent); }
.pp-acts svg { width: 16px; height: 16px; }
.pp-acts button.is-on { color: var(--c-accent); border-color: rgba(210, 160, 110, .55); }
.pp-acts button.is-on svg { fill: var(--c-accent); }
.pp-acts button.is-pop { transform: scale(1.08); }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.trust button { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 5px; font-size: 11.5px; text-align: left; background: rgba(169, 196, 151, .06); }
.trust button:hover { background: rgba(169, 196, 151, .12); }
.trust i { width: 15px; height: 15px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(169, 196, 151, .22); color: var(--up); font-style: normal; font-size: 9px; }
.trust__more { grid-column: 1 / -1; padding: 10px 12px; border-radius: 6px; background: rgba(247, 247, 247, .03); font-size: 12px; line-height: 1.7; opacity: .8; }
.issuer { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.issuer .plogo { width: 42px; height: 42px; }
.issuer b { font-size: 13.5px; font-weight: 500; display: block; }
.issuer span { font-size: 11.5px; opacity: .55; }
.ai-entry { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(210, 160, 110, .45); background: radial-gradient(120% 140% at 0% 0%, rgba(210, 160, 110, .16), transparent 70%); text-align: left; width: 100%; }
.ai-entry:hover { border-color: var(--c-accent); }
.ai-entry i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(210, 160, 110, .22); color: var(--c-accent); flex: none; font-style: normal; }
.ai-entry i svg { width: 15px; height: 15px; }
.ai-entry b { display: block; font-size: 13px; font-weight: 500; color: var(--c-accent); }
.ai-entry span { font-size: 11.5px; opacity: .6; }
.owner-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.owner-stats div { padding: 12px; border: 1px dashed var(--line-on-dark); border-radius: 6px; font-size: 11.5px; }
.owner-stats b { display: block; font-family: var(--mono); font-size: 18px; margin-top: 4px; }
.owner-stats b.is-alert { color: var(--pd-red); }
.owner-acts { display: flex; flex-direction: column; gap: 8px; }

/* ============ 區域 D：推薦 ============ */
.pd-recs:not(:empty) { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
#pdRecsTop:not([hidden]) { margin-top: 0; }
.pd-recs h2 { font-size: 18px; font-weight: 400; }
.pd-recs h2 small { font-size: 12px; opacity: .5; margin-left: 10px; }
.pd-recs .pgrid { margin: 0; }
.pd-recs .pcard { list-style: none; }
.pd-recs .pcard__cta { margin-top: auto; }

/* 已下架 */
.pd-gone { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 70px 20px; text-align: center; border: 1px dashed var(--line-on-dark); border-radius: 12px; }
.pd-gone b { font-size: 20px; font-weight: 400; }
.pd-gone p { font-size: 13.5px; opacity: .6; max-width: 440px; line-height: 1.8; }

/* ============ 手機吸底欄 ============ */
.pd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: none; gap: 10px; align-items: center; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 16, 16, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px dashed var(--line-on-dark); }
.pd-bar .cta { height: 44px; flex: 1; }
.pd-bar__fav { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px dashed var(--line-on-dark); border-radius: 8px; color: rgba(247, 247, 247, .8); }
.pd-bar__fav svg { width: 18px; height: 18px; }
.pd-bar__fav.is-on { color: var(--c-accent); border-color: rgba(210, 160, 110, .55); }
.pd-bar__fav.is-on svg { fill: var(--c-accent); }
@media (max-width: 1020px) {
  .pd-bar:not([hidden]) { display: flex; }
  .page-detail .footer { padding-bottom: 90px; }
  .ai-fab { bottom: 84px !important; }
}

/* ============ AI 天使 ============ */
.ai-fab { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: #1F1917; border: 1px solid rgba(210, 160, 110, .6); color: var(--c-accent); font-size: 13px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transition: transform .3s var(--ease-power4); }
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab svg { width: 16px; height: 16px; }
.ai-panel { position: fixed; right: 20px; bottom: 84px; z-index: 95; padding: 0; width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 140px)); display: flex; flex-direction: column; border: 1px dashed rgba(210, 160, 110, .6); border-radius: 0; background: linear-gradient(170deg, rgba(36, 28, 26, .98), rgba(22, 18, 16, .99)); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); overflow: hidden; }
.ai-panel[hidden] { display: none; }
@media (max-width: 1020px) { .ai-panel { bottom: 144px; right: 12px; } }
.ai-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px dashed var(--line-on-dark); }
.ai-panel__head b { font-size: 14px; font-weight: 500; color: var(--c-accent); }
.ai-panel__head span { display: block; font-size: 11px; opacity: .55; margin-top: 2px; }
.ai-panel__head button { width: 28px; height: 28px; border-radius: 50%; font-size: 18px; opacity: .6; }
.ai-panel__body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { max-width: 92%; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.75; background: rgba(247, 247, 247, .05); }
.ai-msg.is-me { align-self: flex-end; background: rgba(210, 160, 110, .14); }
.ai-msg.is-typing::after { content: '▍'; color: var(--c-accent); animation: aiBlink 1s steps(2) infinite; }
.ai-qs { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-qs button { padding: 5px 10px; border: 1px dashed var(--line-on-dark); border-radius: 999px; font-size: 11.5px; color: rgba(247, 247, 247, .75); }
.ai-qs button:hover { border-color: rgba(210, 160, 110, .6); color: var(--c-accent); }
.ai-panel form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px dashed var(--line-on-dark); }
.ai-panel form .input { flex: 1; padding: 8px 12px; font-size: 13px; }
.ai-panel__note { padding: 0 16px 10px; font-size: 10.5px; opacity: .4; }

/* 認購流程（彈窗內） */
.sub-amt { display: flex; flex-direction: column; gap: 8px; }
.sub-calc { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; opacity: .75; }
.sub-calc b { font-family: var(--mono); color: var(--c-text); opacity: 1; }
.contract { max-height: 220px; overflow-y: auto; padding: 14px; border: 1px dashed var(--line-on-dark); border-radius: 6px; font-size: 12.5px; line-height: 1.8; opacity: .8; }
.contract h4 { font-size: 13px; font-weight: 500; margin: 10px 0 4px; }
.share-card { width: 100%; max-width: 320px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(210, 160, 110, .45); background: #1B1514; }
.share-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.share-card div { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.share-card b { font-size: 15px; font-weight: 500; }
.share-card span { font-size: 12px; opacity: .65; }
.share-card em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--c-accent); }
.lightbox video { width: 100%; border-radius: 8px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .status--closing i, .cta.is-glow, .qitem.is-new, .ai-msg.is-typing::after { animation: none; }
  .pd-tab::after, .pp-acts button, .ai-fab { transition: none; }
}

/* 其他頁面樣式表中的小元件（本頁未載入 myproject.css / me.css） */
.mp-privacy { font-size: 11.5px; opacity: .45; }
.qa__faq { font-family: var(--mono); font-size: 10px; color: var(--up); padding: 1px 6px; border-radius: 3px; background: rgba(169, 196, 151, .14); }
.btable td, .btable th { text-align: center; font-size: 12.5px; }
.btable td:first-child, .btable th:first-child { text-align: left; }
.btable tbody tr { cursor: default; }
.pp-prog__pct span b { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--c-text); line-height: 1.5; font-variant-numeric: tabular-nums; }
