/* ============================================================
   UI-3 · 模式层：资金条、里程碑、流程、弹层、工作台框架
   ============================================================ */

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; color: var(--text); background: var(--hero-soft); padding: 96px 0 88px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .4) 56%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .4) 56%, transparent 90%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 82, 217, .18) 40%, rgba(0, 164, 255, .22) 70%, transparent);
}
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; align-items: start; }
.hero__in > * { min-width: 0; }
.hero__main { max-width: 660px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px;
  border-radius: var(--r-pill); background: #fff;
  border: 1px solid var(--brand-100); font-size: var(--fs-12); color: var(--brand-700);
  letter-spacing: .2px; box-shadow: var(--shadow-1);
}
.hero__kicker .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-600); animation: pulse 2.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(11, 107, 255, .5); }
  70% { box-shadow: 0 0 0 7px rgba(11, 107, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 107, 255, 0); }
}
.hero h1 { font-size: clamp(40px, 3.9vw, 56px); line-height: 1.22; margin: 22px 0 18px; letter-spacing: -1.2px; font-weight: 700; color: var(--text); }
.hero h1 em { font-style: normal; color: var(--brand-700); }
.hero__sub { font-size: var(--fs-15); color: var(--text-2); max-width: 520px; line-height: 1.95; margin-bottom: 30px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-6); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.hero__stats > div { position: relative; padding-left: 12px; }
.hero__stats > div::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 5px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--brand-700), rgba(0, 82, 217, 0)); }
.hero__stats b { display: block; font-family: var(--font-num); font-size: var(--fs-22); color: var(--brand-900); line-height: 1.3; letter-spacing: -.3px; }
.hero__stats span { font-size: var(--fs-12); color: var(--text-3); }
.hero__side { display: grid; gap: var(--sp-3); padding-top: 6px; grid-auto-rows: 1fr; }
.hero-card {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 18px 20px 18px 22px; border-radius: var(--r-3);
  background: #fff; border: 1px solid var(--card-border); color: var(--text);
  box-shadow: var(--card-shadow);
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.hero-card:hover { border-color: var(--brand-500); box-shadow: var(--card-shadow-hover); color: var(--text); transform: translateY(-2px); }

.hero-card b { display: flex; align-items: center; gap: 6px; font-size: var(--fs-15); }
.hero-card b .icon { color: var(--brand-700); }
.hero-card p { font-size: var(--fs-12); color: var(--text-3); margin-top: 4px; line-height: 1.6; }
.hero-card .arrow { float: right; opacity: .55; }

/* ---------- 首屏实时动态条 ---------- */
.ticker {
  display: flex; align-items: center; gap: 14px; margin-top: var(--sp-5); padding: 10px 14px;
  border-radius: var(--r-2); background: #fff;
  border: 1px solid var(--line); font-size: var(--fs-12); color: var(--text-2);
  box-shadow: var(--shadow-1);
  overflow: hidden; position: relative; z-index: 1;
}
.ticker__tag { display: inline-flex; align-items: center; gap: 6px; flex: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.4px; color: var(--brand-700); }
.ticker__tag .dot { background: var(--brand-600); animation: blink 2s infinite; }
.ticker__track {
  flex: 1; min-width: 0; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
}
.ticker__run { display: flex; width: max-content; animation: slide 34s linear infinite; will-change: transform; }
.ticker__group { display: inline-flex; gap: 40px; padding-right: 40px; }
.ticker__run i { font-style: normal; color: var(--text-3); margin-right: 8px; font-family: var(--font-mono); font-size: 11px; }
.ticker__run b { color: var(--brand-700); font-family: var(--font-num); }
.ticker:hover .ticker__run { animation-play-state: paused; }
.ticker__more { flex: none; padding-left: 14px; border-left: 1px solid var(--line); color: var(--brand-700); }
.ticker__more:hover { color: var(--brand-600); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__run { animation: none; }
  .hero__kicker .pulse { animation: none; }
}

/* ---------- 类目宫格 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.cat {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto;
  column-gap: 14px; row-gap: 2px; align-content: center;
  padding: 20px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-3); color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.cat:hover { border-color: var(--brand-500); background: var(--brand-050); color: var(--brand-900); transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.cat .ico { grid-row: 1 / 3; align-self: center; width: 40px; height: 40px; border-radius: var(--r-3); background: var(--brand-050); color: var(--brand-700); display: grid; place-items: center; }
.cat .ico svg { width: 20px; height: 20px; }
.cat:hover .ico { background: #fff; }
.cat b { font-size: var(--fs-15); font-weight: 600; }
.cat span { font-size: var(--fs-12); color: var(--text-3); }
.cat--info .ico { background: var(--info-050); color: var(--info-600); }
.cat--trust .ico { background: var(--trust-050); color: var(--trust-500); }
.cat--deal .ico { background: var(--deal-050); color: var(--deal-600); }

/* ---------- 流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-3); }
.flow__step { position: relative; padding: var(--sp-4); background: #fff; border: 1px solid var(--line); border-radius: var(--r-3); }
.flow__step::after {
  content: ""; position: absolute; top: 34px; right: -13px; width: 13px; height: 1px; background: var(--line-strong);
}
.flow__step:last-child::after { display: none; }
.flow__no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand-050); color: var(--brand-700); border: 1px solid rgba(0, 82, 217, .14); }
.flow__no svg { width: 15px; height: 15px; }
.flow__step b { display: block; margin: 10px 0 4px; font-size: var(--fs-14); }
.flow__step p { font-size: var(--fs-12); color: var(--text-3); line-height: 1.6; }

/* ---------- 资金条 ---------- */
.feebar { display: flex; align-items: stretch; gap: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
.feebar__cell { flex: 1; padding: 12px 14px; position: relative; }
.feebar__cell + .feebar__cell { border-left: 1px dashed var(--line-strong); }
.feebar__cell span { display: block; font-size: var(--fs-11); color: var(--text-3); margin-bottom: 2px; }
.feebar__cell b { font-family: var(--font-num); font-size: var(--fs-18); color: var(--text); }
.feebar__cell--deal b { color: var(--deal-600); }
.feebar__cell--brand b { color: var(--brand-700); }
.feebar__cell--ok b { color: var(--ok-700); }
.feebar__cell i { display: block; font-size: var(--fs-11); color: var(--text-3); font-style: normal; margin-top: 2px; }

/* ---------- 里程碑时间轴 ---------- */
.mtl { display: grid; gap: 0; }
.mtl__row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.mtl__rail { position: relative; display: flex; justify-content: center; }
.mtl__rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--line); }
.mtl__row:first-child .mtl__rail::before { top: 14px; }
.mtl__row:last-child .mtl__rail::before { bottom: calc(100% - 14px); }
.mtl__dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); }
.mtl__row.is-done .mtl__dot { background: var(--ok-500); border-color: var(--ok-500); }
.mtl__row.is-now .mtl__dot { background: var(--deal-500); border-color: var(--deal-500); box-shadow: 0 0 0 4px var(--deal-100); }
.mtl__body { padding: 8px 0 18px; }
.mtl__head { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.mtl__head b { font-size: var(--fs-14); }
.mtl__head .amt { margin-left: auto; font-family: var(--font-num); font-weight: 700; font-size: var(--fs-15); }
.mtl__desc { font-size: var(--fs-12); color: var(--text-2); margin-top: 4px; }
.mtl__files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mtl__file { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: var(--r-1); background: #fff; font-size: var(--fs-12); color: var(--text-2); }

/* ---------- 弹层 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: var(--z-modal); display: none; place-items: center; padding: var(--sp-5); background: rgba(16, 24, 40, .42); backdrop-filter: blur(1px); }
.modal-mask.is-open { display: grid; }
.modal { width: 100%; max-width: 520px; max-height: 86vh; overflow: auto; background: #fff; border-radius: var(--r-4); box-shadow: var(--shadow-3); }
.modal--wide { max-width: 720px; }
.modal__head { display: flex; align-items: center; gap: var(--sp-3); padding: 16px var(--sp-5); border-bottom: 1px solid var(--line); }
.modal__head h3 { font-size: var(--fs-16); }
.modal__x { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: var(--r-1); background: none; color: var(--text-3); cursor: pointer; }
.modal__x:hover { background: var(--surface-3); color: var(--text); }
.modal__body { padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.modal__foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); padding: 14px var(--sp-5); border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-4) var(--r-4); }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 392px; z-index: var(--z-modal); background: #fff; box-shadow: var(--shadow-3); transform: translateX(100%); transition: transform var(--dur-base) var(--ease); display: flex; flex-direction: column; }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; padding: 16px var(--sp-5); border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow: auto; padding: var(--sp-4) var(--sp-5); }

.toast { position: fixed; left: 50%; bottom: 40px; z-index: var(--z-toast); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-2); background: rgba(26, 31, 46, .95); color: #fff; font-size: var(--fs-13); box-shadow: var(--shadow-3); transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 统计卡 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.stat { padding: var(--sp-4); background: #fff; border: 1px solid var(--line); border-radius: var(--r-3); }
.stat__lbl { display: flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-3); }
.stat__val { font-family: var(--font-num); font-size: var(--fs-28); font-weight: 700; line-height: 1.2; margin-top: 6px; letter-spacing: -.5px; }
.stat__val small { font-family: var(--font); font-size: var(--fs-12); color: var(--text-3); font-weight: 400; margin-left: 3px; }
.stat__sub { font-size: var(--fs-12); color: var(--text-3); margin-top: 4px; }
.stat__sub .up { color: var(--ok-700); font-family: var(--font-num); }
.stat--deal .stat__val { color: var(--deal-600); }
.stat--brand .stat__val { color: var(--brand-700); }
.stat--info .stat__val { color: var(--info-700); }
.stat--risk .stat__val { color: var(--risk-700); }

/* ---------- 工作台框架 ---------- */
.ws { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; background: var(--paper); }
.ws__side { background: #fff; border-right: 1px solid var(--line); color: var(--text-2); padding: 0 0 var(--sp-5); position: sticky; top: 0; height: 100vh; overflow: auto; }
.ws__brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; border-bottom: 1px solid var(--line); color: var(--brand-900); }
.ws__brand svg, .ws__brand img { width: 30px; height: 30px; flex: none; }
.ws__brand b { font-size: 16px; display: block; line-height: 1.3; color: var(--brand-900); letter-spacing: .3px; }
.ws__brand span { font-size: 11px; color: var(--text-3); letter-spacing: .8px; }
.ws__group { padding: 14px 12px 0; }
.ws__group h5 { font-size: 11px; color: var(--text-3); letter-spacing: 1px; padding: 0 8px 8px; font-weight: 600; }
.ws__link { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: var(--r-2); color: var(--text-2); font-size: var(--fs-13); }
.ws__link:hover { background: var(--surface-3); color: var(--brand-700); }
.ws__link.is-on { background: var(--brand-050); color: var(--brand-700); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand-700); }
.ws__link .icon { color: var(--text-3); }
.ws__link:hover .icon, .ws__link.is-on .icon { color: var(--brand-700); }
.ws__link .badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--deal-500); color: #fff; font: 700 11px/18px var(--font-num); text-align: center; }
.ws__main { min-width: 0; }
.ws__top { display: flex; align-items: center; gap: var(--sp-4); height: 58px; padding: 0 var(--sp-6); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: var(--z-sticky); }
.ws__top h1 { font-size: var(--fs-18); font-weight: 700; }
.ws__top .crumb { padding: 0; }
.ws__top-right { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); }
.ws__body { padding: var(--sp-5) var(--sp-6) var(--sp-7); display: grid; gap: var(--sp-4); }
/* 侧栏锚点跳转时避开吸顶标题栏 */
.ws__body [id] { scroll-margin-top: 74px; }
.ws__id { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; font-size: var(--fs-12); }
.ws__id i { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-700); color: #fff; display: grid; place-items: center; font: 700 11px/1 var(--font-num); font-style: normal; }
.ws__bell { position: relative; width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--r-2); color: var(--text-2); }
.ws__bell:hover { background: var(--surface-3); color: var(--brand-700); }
.ws__bell .icon { width: 17px; height: 17px; }
.ws__dot { position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--deal-500); border: 1.5px solid #fff; }

/* ---------- 细滚动条（工作台侧栏 / 审核队列 / 抽屉 / 弹层） ---------- */
.ws__side, .audit__list, .drawer__body, .modal { scrollbar-gutter: stable; }
@supports not selector(::-webkit-scrollbar) {
  .ws__side, .audit__list, .drawer__body, .modal {
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 28, 51, .22) transparent;
  }
}
.ws__side::-webkit-scrollbar, .audit__list::-webkit-scrollbar,
.drawer__body::-webkit-scrollbar, .modal::-webkit-scrollbar { width: 8px; height: 8px; }
.ws__side::-webkit-scrollbar-track, .audit__list::-webkit-scrollbar-track,
.drawer__body::-webkit-scrollbar-track, .modal::-webkit-scrollbar-track { background: transparent; }
.ws__side::-webkit-scrollbar-thumb, .audit__list::-webkit-scrollbar-thumb,
.drawer__body::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb {
  border: 2px solid transparent; border-radius: var(--r-pill);
  background: rgba(17, 28, 51, .10); background-clip: padding-box;
}
.ws__side:hover::-webkit-scrollbar-thumb, .audit__list:hover::-webkit-scrollbar-thumb,
.drawer__body:hover::-webkit-scrollbar-thumb, .modal:hover::-webkit-scrollbar-thumb,
.ws__side::-webkit-scrollbar-thumb:active, .audit__list::-webkit-scrollbar-thumb:active,
.drawer__body::-webkit-scrollbar-thumb:active, .modal::-webkit-scrollbar-thumb:active {
  background: rgba(17, 28, 51, .30); background-clip: padding-box;
}

/* ---------- 详情页两栏 ---------- */
.detail { display: grid; grid-template-columns: 1fr 348px; gap: var(--sp-5); align-items: start; }
.detail__side { position: sticky; top: calc(var(--header-h) + 12px); display: grid; gap: var(--sp-3); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-3); }
.panel__head { padding: 14px var(--sp-4); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.panel__head h3 { font-size: var(--fs-15); font-weight: 700; }
.panel__body { padding: var(--sp-4); }
.panel__body--tight { padding: 12px var(--sp-4); }
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 8px var(--sp-3); font-size: var(--fs-13); }
.kv dt { color: var(--text-3); }
.kv dd { color: var(--text); }

/* ---------- 步骤条 ---------- */
.steps { display: flex; align-items: center; gap: 0; }
.steps__item { display: flex; align-items: center; gap: 8px; flex: 1; font-size: var(--fs-13); color: var(--text-3); }
.steps__item::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); margin: 0 10px; }
.steps__item:last-child { flex: none; }
.steps__item:last-child::after { display: none; }
.steps__no { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 700 12px/1 var(--font-num); background: #fff; color: var(--text-3); flex: none; }
.steps__item.is-done { color: var(--ok-700); }
.steps__item.is-done .steps__no { background: var(--ok-500); border-color: var(--ok-500); color: #fff; }
.steps__item.is-now { color: var(--brand-800); font-weight: 600; }
.steps__item.is-now .steps__no { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.steps__item.is-done::after { background: var(--ok-500); }

/* ---------- 其他 ---------- */
.note { display: flex; gap: 8px; padding: 10px 12px; border-radius: var(--r-2); background: var(--info-050); border: 1px solid var(--info-100); color: var(--info-700); font-size: var(--fs-12); line-height: 1.65; }
.note--warn { background: var(--deal-050); border-color: var(--deal-100); color: var(--deal-700); }
.note--soft { background: var(--surface-2); border-color: var(--line); color: var(--text-2); }
.note b { font-weight: 700; }
.sticky-buy { position: sticky; bottom: 0; }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.gap-2 { gap: var(--sp-2); }

/* ---------- 折叠问答 ---------- */
.faq { display: grid; gap: 8px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-2); background: #fff; overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; padding: 11px 14px; font-size: var(--fs-13); font-weight: 600; position: relative; padding-right: 34px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-family: var(--font-num); font-size: var(--fs-16); }
.faq__item[open] summary { background: var(--brand-050); color: var(--brand-800); }
.faq__item[open] summary::after { content: "−"; color: var(--brand-700); }
.faq__item p { padding: 10px 14px 13px; font-size: var(--fs-13); color: var(--text-2); line-height: 1.8; border-top: 1px dashed var(--line); }

.feebar--stack { flex-direction: column; }
.feebar--stack .feebar__cell + .feebar__cell { border-left: 0; border-top: 1px dashed var(--line-strong); }
