
/* ================================================================== */
/* 融资页                                                              */
/* ================================================================== */

.invest-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 26px;
  padding: 0 10px;
  margin-left: 2px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #b26a00;
  background: linear-gradient(135deg, #fff4e0, #ffe6b8);
  border: 1px solid #ffd58a;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  animation: investGlow 2.4s ease-in-out infinite;
}

/* 让融资入口紧贴 logo，而不是被推到右侧 */
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: none;
}
.topbar-brand .title { flex: none; min-width: 0; }
.topbar-spacer { flex: 1 1 auto; min-width: 0; }
@keyframes investGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 190, 80, .45); }
  50% { box-shadow: 0 0 0 5px rgba(255, 190, 80, 0); }
}

/* 主视觉 */
.inv-hero {
  background: linear-gradient(135deg, #0b74ff 0%, #00a9c2 100%);
  border-radius: 18px;
  padding: 24px 20px 20px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(11, 116, 255, .24);
}
.inv-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: 3px 10px;
}
.inv-hero-title { font-size: 23px; font-weight: 800; margin-top: 10px; letter-spacing: .3px; }
.inv-hero-sub { font-size: 13px; opacity: .92; margin-top: 6px; }
.inv-hero-nums {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.inv-hero-nums > div {
  flex: 1;
  background: rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.inv-hero-nums b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.inv-hero-nums b i { font-size: 12px; font-style: normal; margin-left: 1px; font-weight: 600; }
.inv-hero-nums span { font-size: 11px; opacity: .85; }

/* 小节标题 */
.inv-sec-t {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  line-height: 1.1;
}

/* 认购规则 */
.inv-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv-kv > div {
  background: #f7fafd;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.inv-kv span { font-size: 11.5px; color: var(--muted); }
.inv-kv b { font-size: 15px; color: var(--text); }

.inv-formula {
  margin-top: 12px;
  padding: 11px 14px;
  background: #eef4ff;
  border-radius: 10px;
  font-size: 13px;
  color: #0a4fa8;
  text-align: center;
}
.inv-formula b { font-size: 15px; }
.inv-tip { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* 权利 */
.inv-rights { display: flex; flex-direction: column; gap: 10px; }
.inv-right {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.inv-right.inv-yes { background: #f2fbf6; border-color: #b9e8cf; }
.inv-right.inv-no { background: #fafbfc; }
.inv-right-ico { font-size: 18px; line-height: 1.2; }
.inv-right-t { font-size: 14px; font-weight: 700; }
.inv-right-d { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

.inv-warn {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff7e6;
  border: 1px solid #ffe0a3;
  border-radius: 10px;
  font-size: 12.5px;
  color: #8a5a00;
  line-height: 1.6;
}

/* 资金用途 */
.inv-use-row {
  display: grid;
  grid-template-columns: 84px 1fr 60px;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.inv-use-row:last-child { border-bottom: none; }
.inv-use-name { font-size: 13px; font-weight: 700; }
.inv-use-bar {
  height: 8px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}
.inv-use-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b74ff, #00a9c2);
}
.inv-use-amt { font-size: 13px; font-weight: 700; color: var(--brand); text-align: right; }
.inv-use-note {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: -2px;
}

/* 亮点 */
.inv-points { display: flex; flex-direction: column; gap: 12px; }
.inv-points > div { display: flex; flex-direction: column; gap: 3px; }
.inv-points b { font-size: 13.5px; }
.inv-points span { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* 完成态 */
.inv-done { text-align: center; padding: 14px 0 6px; }
.inv-done-ico { font-size: 34px; }
.inv-done-t { font-size: 15px; font-weight: 700; margin-top: 8px; }
.inv-done-d { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.inv-done-n {
  font-size: 12px;
  color: var(--brand);
  margin-top: 10px;
  background: #eef4ff;
  border-radius: 10px;
  padding: 9px;
}

/* 风险提示 */
.inv-risk {
  margin-top: 14px;
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.inv-risk-t { font-size: 13px; font-weight: 800; color: #b45309; }
.inv-risk-b {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 8px;
}
.inv-risk-b p { margin: 0 0 4px; }
.inv-risk-b b { color: var(--text); }

/* ================================================================== */
/* 投资流程                                                            */
/* ================================================================== */

.inv-hero-sm {
  background: linear-gradient(135deg, #0b74ff 0%, #00a9c2 100%);
  border-radius: 16px;
  padding: 18px 20px;
  color: #fff;
  box-shadow: 0 10px 26px rgba(11,116,255,.22);
}
.inv-hero-sm-t { font-size: 24px; font-weight: 800; }
.inv-hero-sm-s { font-size: 12.5px; opacity: .9; margin-top: 5px; }
.inv-hero-sm-n { font-size: 12px; opacity: .85; margin-top: 3px; }

/* 步骤条 */
.inv-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 8px;
  position: relative;
}
.inv-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.inv-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #eef2f7; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; z-index: 1;
}
.inv-step.done .inv-step-dot { background: var(--brand); color: #fff; }
.inv-step.cur .inv-step-dot { box-shadow: 0 0 0 4px rgba(11,116,255,.18); }
.inv-step-t { font-size: 11px; color: var(--muted); text-align: center; }
.inv-step.done .inv-step-t { color: var(--text); font-weight: 600; }

/* 确认框 */
.inv-confirm-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.inv-confirm-box > div {
  background: #f7fafd; border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.inv-confirm-box span { font-size: 11.5px; color: var(--muted); }
.inv-confirm-box b { font-size: 15px; }

/* 收款账户 */
.inv-bank {
  background: #f7fafd; border-radius: 12px; padding: 4px 14px;
  border: 1px solid var(--line);
}
.inv-bank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.inv-bank-row:last-child { border-bottom: none; }
.inv-bank-row span { font-size: 12px; color: var(--muted); flex: 0 0 68px; }
.inv-bank-row b { font-size: 14px; flex: 1; word-break: break-all; }
.inv-bank-row b.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; }

/* 凭证 */
.inv-proof { background: #f7fafd; border-radius: 12px; padding: 14px; }
.inv-proof-meta { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.inv-proof-meta > div { display: flex; gap: 12px; font-size: 12.5px; }
.inv-proof-meta span { color: var(--muted); flex: 0 0 68px; }
.inv-proof-img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* 我的投资列表 */
.inv-list-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; margin-bottom: 10px; text-decoration: none; color: inherit;
}
.inv-list-row:hover { border-color: #b9d3f5; }
.inv-list-main { flex: 1; min-width: 0; }
.inv-list-t { font-size: 15px; font-weight: 700; }
.inv-list-m { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 4px; }
.inv-badge {
  font-size: 11px; font-weight: 700; border-radius: 8px; padding: 4px 9px; flex: 0 0 auto;
  background: #eef2f7; color: var(--muted);
}
.inv-badge-pending { background: #fff4e0; color: #a3660a; }
.inv-badge-confirmed { background: #e8f1ff; color: #0a52b8; }
.inv-badge-proof_uploaded { background: #ece8ff; color: #5b3fbf; }
.inv-badge-verified { background: #e6f7ef; color: #0e8f5f; }
.inv-badge-rejected { background: #ffecec; color: #c02a2a; }

/* ================================================================== */
/* 文档（协议 / 股权证）                                                */
/* ================================================================== */

.doc-page { max-width: 860px; }
.doc-toolbar { display: flex; gap: 10px; margin-bottom: 12px; }

.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 44px 52px;
  box-shadow: 0 2px 16px rgba(15,30,60,.05);
}
.doc-title {
  text-align: center; font-size: 22px; font-weight: 800;
  letter-spacing: 2px; margin-bottom: 6px;
}
.doc-sub { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.doc-party { margin-bottom: 16px; font-size: 13.5px; line-height: 1.9; }
.doc-party b { font-size: 14px; }
.doc-h { font-size: 14px; font-weight: 800; margin: 22px 0 8px; }
.doc-p { font-size: 13.5px; line-height: 1.95; margin: 0 0 8px; text-indent: 2em; text-align: justify; }
.doc-sign { display: flex; gap: 40px; margin-top: 42px; }
.doc-sign-col { flex: 1; }
.doc-sign-t { font-size: 13px; font-weight: 700; margin-bottom: 26px; }
.doc-sign-line { font-size: 14px; border-bottom: 1px solid #999; padding-bottom: 4px; }
.doc-sign-d { font-size: 12px; color: var(--muted); margin-top: 8px; }
.doc-foot { margin-top: 34px; text-align: center; font-size: 11px; color: var(--muted); }

/* 股权证 */
.cert {
  background: #fffefb;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 24px rgba(15,30,60,.08);
}
.cert-border {
  border: 3px double #c9a227;
  border-radius: 6px;
  padding: 34px 40px 26px;
  background:
    radial-gradient(circle at 12% 8%, rgba(201,162,39,.07), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(201,162,39,.07), transparent 42%),
    #fffefb;
}
.cert-head { text-align: center; }
.cert-brand { font-size: 15px; font-weight: 800; color: #8a6a12; letter-spacing: 1px; }
.cert-title { font-size: 30px; font-weight: 800; letter-spacing: 8px; color: #2a2118; margin: 12px 0 4px; }
.cert-en { font-size: 10px; letter-spacing: 3px; color: #b09a5a; }
.cert-no { text-align: right; font-size: 12px; color: #8a7a55; margin-top: 14px; }
.cert-body { text-align: center; margin: 22px 0 20px; }
.cert-body p { font-size: 13.5px; color: #4a4237; line-height: 1.9; margin: 0; }
.cert-name {
  font-size: 26px; font-weight: 800; color: #1a1208;
  letter-spacing: 4px; margin: 12px 0;
  border-bottom: 1px solid #d9c88a; display: inline-block; padding: 0 28px 8px;
}
.cert-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
  background: #e8dcc0; border: 1px solid #e8dcc0; border-radius: 6px; overflow: hidden;
}
.cert-grid > div { background: #fffdf7; padding: 12px 10px; text-align: center; }
.cert-grid span { display: block; font-size: 10.5px; color: #998a63; margin-bottom: 4px; }
.cert-grid b { font-size: 14px; color: #2a2118; }
.cert-rights {
  margin-top: 18px; text-align: center; font-size: 12.5px; color: #8a5a00;
  background: #fff7e2; border: 1px solid #f0dca8; border-radius: 6px; padding: 10px;
}
.cert-rights b { color: #a3660a; }
.cert-sign { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }
.cert-seal {
  width: 96px; height: 96px; border-radius: 50%;
  border: 3px solid #c0392b; color: #c0392b;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-14deg); opacity: .88;
}
.cert-seal-inner { text-align: center; font-size: 12px; font-weight: 800; line-height: 1.3; }
.cert-seal-inner span { font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.cert-sign-meta { text-align: right; font-size: 12px; color: #6a5f47; line-height: 1.9; }
.cert-verify { color: #b09a5a; }
.cert-foot {
  margin-top: 20px; padding-top: 12px; border-top: 1px dashed #e0d4b0;
  text-align: center; font-size: 10.5px; color: #a0947a;
}

/* 打印 */
@media print {
  .topbar, .tabbar, .doc-toolbar, .fab { display: none !important; }
  .page { padding: 0 !important; max-width: none !important; }
  .doc, .cert { border: none; box-shadow: none; }
  .cert { padding: 0; }
  body { background: #fff !important; }
}

/* ================================================================== */
/* 投资管理后台                                                        */
/* ================================================================== */

.ai-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 8px;
}
.ai-stats > div { text-align: center; }
.ai-stats b { display: block; font-size: 17px; font-weight: 800; color: var(--brand); }
.ai-stats span { font-size: 11px; color: var(--muted); }

.ai-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.ai-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ai-name { font-size: 15px; font-weight: 700; }
.ai-phone { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.ai-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 4px; }

.ai-amount {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 12px;
}
.ai-amount > div {
  background: #f7fafd; border-radius: 10px; padding: 9px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.ai-amount span { font-size: 11px; color: var(--muted); }
.ai-amount b { font-size: 14px; }

.ai-note {
  margin-top: 10px; font-size: 12px; color: var(--muted);
  background: #fbfbfc; border-radius: 8px; padding: 8px 10px;
}
.ai-reject {
  margin-top: 10px; font-size: 12px; color: #c02a2a;
  background: #fff0f0; border-radius: 8px; padding: 8px 10px;
}

.ai-proof {
  display: flex; gap: 12px; margin-top: 12px;
  background: #f7fafd; border-radius: 12px; padding: 12px;
}
.ai-proof-l { flex: 0 0 132px; }
.ai-proof-l img {
  width: 132px; height: 132px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
  cursor: zoom-in; display: block;
}
.ai-proof-r { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ai-proof-r > div { display: flex; gap: 10px; font-size: 12px; }
.ai-proof-r span { color: var(--muted); flex: 0 0 60px; }
.ai-proof-r b { word-break: break-all; }

.ai-actions { display: flex; gap: 10px; margin-top: 12px; }
.ai-actions .btn { flex: 1; }

@media (max-width: 520px) {
  .ai-stats { grid-template-columns: repeat(2, 1fr); }
  .ai-amount { grid-template-columns: 1fr; }
  .ai-proof { flex-direction: column; }
  .ai-proof-l { flex: none; }
}

/* 协议书中的收款账户块 */
.doc-bank {
  margin: 10px 0 12px;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  overflow: hidden;
  background: #fafcfe;
}
.doc-bank-t {
  background: #eef4ff;
  color: #0a4fa8;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  letter-spacing: 1px;
}
.doc-bank > div:not(.doc-bank-t) {
  display: flex;
  gap: 14px;
  padding: 9px 14px;
  border-top: 1px dashed #e2ebf4;
  font-size: 13px;
}
.doc-bank > div:not(.doc-bank-t) span {
  flex: 0 0 78px;
  color: #7a8a9a;
  letter-spacing: 1px;
}
.doc-bank > div:not(.doc-bank-t) b { color: #1a2b3c; word-break: break-all; }
.doc-bank-card {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 1.5px;
  font-size: 14px !important;
}

/* 募集进度 */
.inv-quota-tag {
  font-size: 11px; font-weight: 700; border-radius: 8px; padding: 3px 9px;
  background: #e6f7ef; color: #0e8f5f;
}
.inv-quota-tag.closed { background: #ffecec; color: #c02a2a; }

.inv-quota-bar {
  height: 10px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin: 4px 0 12px;
}
.inv-quota-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #0b74ff, #00a9c2);
  transition: width .4s ease;
}
.inv-quota-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.inv-quota-nums > div { text-align: center; }
.inv-quota-nums b { display: block; font-size: 15px; font-weight: 800; }
.inv-quota-nums span { font-size: 11px; color: var(--muted); }

/* 募满状态 */
.inv-closed { text-align: center; padding: 18px 0 6px; }
.inv-closed-ico { font-size: 38px; }
.inv-closed-t { font-size: 17px; font-weight: 800; margin-top: 10px; }
.inv-closed-d { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-top: 8px; }

@media (max-width: 520px) {
  .inv-quota-nums { grid-template-columns: repeat(2, 1fr); }
}
