/* 供应商专区（登录 / 激活 / 登录后后台）
   复用站点设计变量与栅格，保证与营销页面风格一致 */

.portal-auth { padding: 70px 0 96px; }
.portal-auth-card { max-width: 540px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; padding: 44px 46px 40px; background: var(--paper); }
.portal-auth-card h1 { font-size: 38px; line-height: 1.12; margin: 16px 0 0; }
.portal-lede { font-size: 14px; line-height: 1.75; color: var(--muted); margin-top: 16px; }

.portal-form { margin-top: 26px; }
.portal-form label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.portal-form input, .portal-form select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; }
.portal-form input:focus, .portal-form select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.portal-form input:disabled, .portal-form input[readonly] { background: var(--soft); color: var(--muted); }
.portal-form input[readonly] { cursor: default; }
.portal-form .portal-hint { margin-top: 6px; }
.portal-submit { margin-top: 24px; width: 100%; justify-content: center; }

.portal-error, .portal-notice { margin-top: 22px; padding: 12px 14px; border-radius: 4px; font-size: 13px; line-height: 1.65; }
.portal-error { background: #fff2ee; border: 1px solid #f6c8b6; color: #a63d12; }
.portal-notice { background: #eef7ef; border: 1px solid #c3e2c7; color: #22683a; }

.portal-help { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--muted); }
.portal-help a { color: var(--teal); text-decoration: underline; }

/* 登录后的头图 */
.portal-hero { background: var(--ink); color: #fff; padding: 58px 0 46px; }
.portal-hero .eyebrow { color: #9fc2b8; margin: 0; }
.portal-hero h1 { font-size: 42px; line-height: 1.1; margin: 14px 0 0; }
.portal-hero-meta { margin-top: 16px; font-size: 13px; color: #b8c7c3; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.portal-chip { border: 1px solid #3d5b56; border-radius: 999px; padding: 3px 12px; font-size: 12px; }
.portal-chip.ok { border-color: #3f7a52; color: #9fe0b1; }
.portal-chip.wait { border-color: #8a6a2f; color: #f0cf95; }

/* 功能入口切换（沿用 insights 的分栏样式） */
.portal-tabs { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.portal-signout { background: none; border: 0; padding: 17px 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.portal-signout:hover { color: var(--accent); }

.portal-body { padding: 48px 0 96px; }
.portal-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.portal-card { border: 1px solid var(--line); border-radius: 8px; padding: 30px 32px 34px; }
.portal-card + .portal-card { margin-top: 26px; }
.portal-card h2 { font-size: 24px; }
.portal-card > p { font-size: 13px; line-height: 1.75; color: var(--muted); margin-top: 12px; }
.portal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.portal-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.portal-actions .button { margin-top: 0; min-width: 0; }
.portal-note { font-size: 12px; line-height: 1.7; color: var(--muted); }

.portal-facts { display: grid; gap: 14px; margin-top: 22px; }
.portal-fact { display: flex; justify-content: space-between; gap: 18px; font-size: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.portal-fact span:first-child { color: var(--muted); }
.portal-fact span:last-child { text-align: right; word-break: break-all; }

/* 暂未开放的功能页 */
.portal-placeholder { border: 1px dashed var(--line); border-radius: 8px; padding: 64px 40px; text-align: center; background: var(--soft); }
.portal-placeholder h2 { font-size: 26px; }
.portal-placeholder p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 14px auto 0; max-width: 620px; }

/* 概览：欢迎 + 服务 + 占位内容 */
.portal-hello { border: 1px solid var(--line); border-radius: 8px; padding: 34px 36px 32px; background: var(--soft); }
.portal-hello h2 { font-size: 30px; }
.portal-hello > p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 14px; max-width: 780px; }
.portal-hello-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.portal-hello-meta strong { color: var(--ink); font-weight: 600; }
.portal-hello-meta strong a { color: var(--teal); }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; align-items: stretch; }
.dash-card { border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px 28px; }
.dash-card h2 { font-size: 20px; }
.dash-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.dash-lede { font-size: 13px; line-height: 1.75; color: var(--muted); margin-top: 12px; }
.dash-demo { font-size: 11px; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.dash-chip { display: inline-block; font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.dash-chip.ok { background: #eef7ef; color: #22683a; }
.dash-list { list-style: none; padding: 0; margin: 18px 0 0; }
.dash-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dash-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-list strong { font-weight: 600; }
.dash-sub { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 5px; }
.dash-date { display: block; color: var(--teal); font-size: 12px; margin-bottom: 3px; }
.dash-trend { margin-left: 6px; }
.dash-trend-up { color: #2f9e44; }
.dash-trend-down { color: #c0392b; }
.dash-modules { list-style: none; padding: 0; margin: 18px 0 0; }
.dash-modules li { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dash-modules li:last-child { border-bottom: 0; }
.dash-modules span { color: var(--muted); font-size: 12px; }
.dash-rank { list-style: none; padding: 0; margin: 18px 0 0; }
.dash-rank li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dash-rank li:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-rank .idx { color: var(--muted); font-size: 12px; }
.dash-rank .dash-sub { margin-top: 3px; }
.dash-meter { display: block; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.dash-meter span { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.dash-heat { color: var(--muted); font-size: 12px; white-space: nowrap; }

@media (max-width: 900px) {
  .portal-grid { grid-template-columns: 1fr; gap: 0; }
  .portal-row { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; gap: 20px; }
  .dash-modules li { grid-template-columns: 1fr; gap: 3px; }
  .portal-auth-card { padding: 34px 26px 30px; }
  .portal-hello { padding: 26px 22px 24px; }
  .portal-hello h2 { font-size: 24px; }
  .portal-hero { padding: 42px 0 34px; }
  .portal-hero h1 { font-size: 30px; }
  .portal-body { padding: 34px 0 72px; }
}
