/* ============================================================
   赢标通标讯 · 门户样式（PC + H5 自适应）
   设计基调：蓝白科技风（参照联合标讯类门户，免费开放，无付费模块）
   ============================================================ */
:root {
  --blue: #0b5bd7;
  --blue-2: #0a4fb5;
  --blue-deep: #083a86;
  --blue-light: #eaf1fd;
  --blue-bg: #f2f6fd;
  --orange: #ff8a00;
  --red: #e5484d;
  --green: #17a34a;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e9f2;
  --bg: #f5f7fb;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(15, 45, 110, .08);
  --shadow-lg: 0 6px 24px rgba(15, 45, 110, .12);
  --topbar-h: 34px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body.portal {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }
button { font-family: inherit; cursor: pointer; }
.p-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部信息条 ---------- */
.p-topbar { background: linear-gradient(90deg, var(--blue-deep), var(--blue)); color: #fff; font-size: 13px; }
.p-topbar-in { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); white-space: nowrap; overflow: hidden; }
.p-topbar-slogan { opacity: .92; }
.p-topbar-info { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; }
.p-topbar-live { opacity: .92; white-space: nowrap; }
.p-topbar-live b { font-weight: 700; }
.p-topbar-info a { color: #fff; }
.p-topbar-info a:hover { text-decoration: underline; }
.p-sep { opacity: .4; font-style: normal; }
.p-signin-btn { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 6px; padding: 1px 10px; font-size: 12px; }
.p-signin-btn:hover { background: rgba(255,255,255,.28); }
.p-logout-form { display: inline; }
.p-link-btn { background: none; border: none; color: #fff; font-size: 13px; }
.p-link-btn:hover { text-decoration: underline; }

/* ---------- 主头部 ---------- */
.p-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; box-shadow: 0 1px 6px rgba(15,45,110,.05); }
.p-header-in { display: flex; align-items: center; height: 72px; gap: 18px; }
.p-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.p-brand-logo {
  width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; box-shadow: 0 2px 8px rgba(11,91,215,.35); flex-shrink: 0;
}
.p-brand-text { display: flex; flex-direction: row; align-items: baseline; gap: 8px; line-height: 1.1; }
.p-brand-text strong { font-size: 19px; color: var(--blue-deep); letter-spacing: .5px; }
.p-brand-text em { font-size: 11px; color: var(--muted); font-style: normal; }
.p-header .p-brand-text em { display: none; }
.p-nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 40px; font-size: 18px; color: var(--text); margin-left: auto; }
.p-nav { display: flex; gap: 4px; }
.p-nav-item { padding: 8px 13px; border-radius: 8px; color: var(--text); font-size: 15px; font-weight: 500; }
.p-nav-item:hover { color: var(--blue); background: var(--blue-light); }
.p-nav-item.active { color: var(--blue); background: var(--blue-light); font-weight: 700; }
.p-search { display: flex; margin-left: auto; flex-shrink: 0; border: 1px solid var(--blue); border-radius: 10px; overflow: hidden; background: #fff; }
.p-search-select { border: none; outline: none; background: var(--blue-light); color: var(--blue-deep); font-size: 13px; padding: 0 10px; max-width: 118px; }
.p-search-input { border: none; outline: none; width: 240px; padding: 9px 12px; font-size: 14px; }
.p-search-btn { border: none; background: var(--blue); color: #fff; padding: 0 20px; font-size: 14px; }
.p-search-btn:hover { background: var(--blue-2); }

/* ---------- 主区域 ---------- */
.p-main { min-height: 420px; }

/* ---------- 页脚 ---------- */
.p-footer { background: #101b33; color: #c3cde0; margin-top: 48px; }
.p-footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 40px 16px 28px; }
.p-f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.p-f-logo strong { color: #fff; font-size: 18px; }
.p-f-brand p { font-size: 13px; color: #93a1bd; margin-bottom: 10px; }
.p-f-muted { opacity: .75; }
.p-f-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.p-f-col a { display: block; color: #93a1bd; font-size: 13px; padding: 4px 0; }
.p-f-col a:hover { color: #fff; }
.p-copy { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); padding: 16px 16px 22px; font-size: 12px; color: #7c8aa5; }

/* ---------- 通用按钮 / 徽章 ---------- */
.p-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); color: var(--text); border-radius: 9px; padding: 9px 18px; font-size: 14px; font-weight: 600; transition: all .15s; }
.p-btn:hover { border-color: var(--blue); color: var(--blue); }
.p-btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.p-btn-primary:hover { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.p-btn-ghost { background: transparent; border-color: rgba(11,91,215,.4); color: var(--blue); }
.p-btn-ghost:hover { background: var(--blue-light); }
.p-btn-on { background: #e8f6ee; border-color: var(--green); color: var(--green); }
.p-btn-block { display: flex; width: 100%; justify-content: center; margin-top: 8px; }
.p-badge { display: inline-flex; align-items: center; font-size: 12px; padding: 2px 9px; border-radius: 6px; background: #eef1f7; color: #4b5563; white-space: nowrap; }
.p-badge-type { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.p-badge-new { background: #fff3e6; color: var(--orange); font-weight: 700; }
.p-badge-budget { background: #fff8f0; color: #c2410c; }
.p-badge-region { background: #eef6ff; color: #1d4ed8; }
.p-badge-deadline { background: #eef1f7; color: #4b5563; }
.p-badge-urgent { background: #fdecec; color: var(--red); font-weight: 700; }
.p-badge-expired { background: #f0f0f3; color: #9ca3af; text-decoration: line-through; }

/* ---------- Hero ---------- */
.p-hero { background: linear-gradient(120deg, #083a86 0%, #0b5bd7 55%, #2f7cf0 100%); color: #fff; overflow: hidden; position: relative; }
.p-hero::after { content: ''; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 60%); }
.p-hero-grid { display: flex; align-items: center; justify-content: space-between; padding: 52px 0 58px; position: relative; z-index: 1; }
.p-hero-left { max-width: 660px; }
.p-hero-title { font-size: 38px; font-weight: 800; line-height: 1.35; }
.p-hero-accent { font-size: 22px; font-weight: 600; color: #dcebff; }
.p-hero-sub { margin: 14px 0 22px; color: #c9dcf8; font-size: 15px; }
.p-hero-search { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); max-width: 620px; }
.p-hero-search .p-search-select { background: #f1f5fb; max-width: 130px; }
.p-hero-search .p-search-input { flex: 1; width: auto; padding: 14px 14px; }
.p-hero-search .p-search-btn { padding: 0 28px; font-size: 15px; font-weight: 600; }
.p-hero-quick { margin-top: 16px; display: flex; gap: 20px; }
.p-hero-quick a { color: #cfe0fb; font-size: 14px; }
.p-hero-quick a:hover { color: #fff; }
.p-hero-right { display: flex; }
.p-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.p-hs-item { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 20px 26px; text-align: center; backdrop-filter: blur(4px); }
.p-hs-item b { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.p-hs-item span { font-size: 13px; color: #cfe0fb; }

/* ---------- 免费功能入口 ---------- */
.p-features { margin-top: -28px; position: relative; z-index: 2; }
.p-feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.p-feature { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px; text-align: center; transition: all .18s; }
.p-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.p-feature-icon { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-light); color: var(--blue); align-items: center; justify-content: center; font-size: 22px; margin-bottom: 10px; }
.p-feature h3 { font-size: 16px; margin-bottom: 6px; }
.p-feature p { font-size: 12px; color: var(--muted); min-height: 56px; }
.p-feature b { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--blue); }

/* ---------- 区块 ---------- */
.p-section { padding: 44px 0 8px; }
.p-section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.p-section-head h2 { font-size: 22px; color: var(--blue-deep); }
.p-section-sub { color: var(--muted); font-size: 13px; }
.p-more { margin-left: auto; color: var(--blue); font-size: 14px; font-weight: 600; }
.p-tabs { display: flex; gap: 4px; }
.p-tab { padding: 5px 14px; border-radius: 20px; background: #eef1f7; color: var(--muted); font-size: 13px; }
.p-tab.on { background: var(--blue); color: #fff; font-weight: 600; }

/* ---------- 标讯卡片 ---------- */
.p-card-list { display: flex; flex-direction: column; gap: 12px; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; transition: all .15s; }
.p-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.p-card-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.p-card-title { font-size: 16px; font-weight: 600; line-height: 1.45; }
.p-card-link { color: var(--text); }
.p-card-link:hover { color: var(--blue); }
.p-card-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 8px 0; }
.p-card-meta b { color: var(--text); font-weight: 500; }
.p-card-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }
.p-card-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.p-card-time { font-size: 12px; color: var(--muted); }
.p-card-actions { margin-left: auto; display: flex; gap: 8px; }
.p-action { background: none; border: 1px solid var(--line); border-radius: 7px; padding: 3px 10px; font-size: 12px; color: var(--muted); }
.p-action:hover { border-color: var(--blue); color: var(--blue); }
.p-action.on { border-color: var(--green); color: var(--green); background: #f0faf4; }

/* ---------- 主题场景 ---------- */
.p-scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.p-scene { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: all .18s; position: relative; overflow: hidden; }
.p-scene::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue), #5ea0ff); opacity: 0; transition: all .2s; }
.p-scene:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.p-scene:hover::before { opacity: 1; }
.p-scene-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.p-scene-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-light); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.p-scene-group { font-size: 12px; color: var(--muted); background: #f1f5fb; padding: 2px 8px; border-radius: 6px; }
.p-scene h3 { font-size: 16px; margin-bottom: 6px; color: var(--text); }
.p-scene-desc { font-size: 12px; color: var(--muted); min-height: 36px; }
.p-scene-nums { display: flex; gap: 16px; margin: 10px 0; font-size: 12px; color: var(--muted); }
.p-scene-nums b { color: var(--blue); font-size: 15px; }
.p-scene-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.p-scene-tags span, .p-scene-tags a { font-size: 12px; color: var(--blue); background: var(--blue-light); padding: 2px 8px; border-radius: 6px; }
.p-scene-tags a:hover { background: var(--blue); color: #fff; }

/* ---------- 热词 ---------- */
.p-hot { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.p-hot-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.p-hot-item:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.p-hot-kw { font-weight: 700; color: var(--text); font-size: 15px; }
.p-hot-cat { font-size: 12px; color: var(--blue); background: var(--blue-light); padding: 1px 8px; border-radius: 6px; }
.p-hot-count { margin-left: auto; font-size: 12px; color: var(--orange); font-weight: 600; }

/* ---------- 行业分类 ---------- */
.p-ind-top { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.p-ind-top-card { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; border-radius: var(--radius); padding: 24px; }
.p-ind-rank { font-size: 13px; background: rgba(255,255,255,.2); padding: 2px 10px; border-radius: 20px; }
.p-ind-top-card h3 { font-size: 22px; margin: 12px 0; }
.p-ind-top-nums { display: flex; gap: 22px; margin-bottom: 18px; font-size: 13px; color: #cfe0fb; }
.p-ind-top-nums b { display: block; font-size: 20px; color: #fff; }
.p-ind-top-card .p-btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; }
.p-ind-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.p-ind-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.p-ind-table th { background: #f8fafd; color: var(--muted); text-align: left; padding: 10px 14px; font-weight: 600; }
.p-ind-table td { padding: 10px 14px; border-top: 1px solid var(--line); }
.p-ind-table tr:hover td { background: #f8fbff; }
.p-mini-link { color: var(--blue); }
.p-mini-link:hover { text-decoration: underline; }

/* ---------- 列表页（筛选） ---------- */
.p-page-head { background: linear-gradient(120deg, #eaf1fd, #f6f9fe); border-bottom: 1px solid var(--line); }
.p-page-head-plain { padding: 22px 0 26px; }
.p-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.p-breadcrumb a:hover { color: var(--blue); }
.p-page-head h1 { font-size: 26px; color: var(--blue-deep); }
.p-page-sub { color: var(--muted); margin-top: 4px; }
.p-filter { background: #fff; border-bottom: 1px solid var(--line); }
.p-filter-form { padding: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.p-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-filter-label { font-size: 13px; color: var(--muted); flex-shrink: 0; }
.p-filter-label-2 { margin-left: 8px; }
.p-filter-dash { color: var(--muted); }
.p-input { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font-size: 14px; outline: none; background: #fff; }
.p-input:focus { border-color: var(--blue); }
.p-input-select { max-width: 200px; }
.p-input-date { max-width: 150px; }
.p-budget-chips, .p-type-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.p-chip { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
.p-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.p-chip:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 列表 ---------- */
.p-list { padding: 20px 0; }
.p-list-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.p-list-count { font-size: 14px; color: var(--muted); }
.p-list-count b { color: var(--blue); font-size: 18px; }
.p-sort { display: flex; gap: 4px; }
.p-sort a { padding: 5px 14px; border-radius: 18px; font-size: 13px; color: var(--muted); background: #eef1f7; }
.p-sort a.on { background: var(--blue); color: #fff; font-weight: 600; }
.p-list-ops { margin-left: auto; }
.p-export { font-size: 13px; color: var(--blue); border: 1px solid rgba(11,91,215,.35); padding: 5px 12px; border-radius: 8px; }
.p-export:hover { background: var(--blue-light); }
.p-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.p-pager { display: flex; gap: 6px; justify-content: center; margin: 24px 0 10px; }
.p-pager a { padding: 6px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--muted); background: #fff; }
.p-pager a.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.p-pager a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 详情页 ---------- */
.p-detail-head { background: linear-gradient(120deg, #eaf1fd, #f7faff); border-bottom: 1px solid var(--line); padding: 24px 0 26px; }
.p-detail-chips { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.p-detail-title { font-size: 24px; line-height: 1.5; color: var(--text); margin-bottom: 10px; }
.p-detail-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.p-detail-meta b { color: var(--text); font-weight: 600; }
.p-detail-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.p-detail-body { padding: 20px 0; }
.p-detail-grid { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.p-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.p-panel-title { font-size: 17px; color: var(--blue-deep); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.p-panel-badge { font-size: 11px; background: var(--blue); color: #fff; padding: 1px 8px; border-radius: 6px; font-weight: 600; }
.p-panel-sub { font-size: 14px; color: var(--text); margin: 14px 0 8px; }
.p-info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-info-table tr { border-bottom: 1px dashed var(--line); }
.p-info-table tr:last-child { border-bottom: none; }
.p-info-table td { padding: 9px 8px; vertical-align: top; }
.p-info-label { width: 130px; color: var(--muted); font-size: 13px; flex-shrink: 0; }
.p-content { font-size: 14px; line-height: 1.9; color: #333; word-break: break-all; }
.p-content-sm { max-height: 220px; overflow: auto; }
.p-org-links { display: flex; flex-direction: column; gap: 8px; }
.p-org { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; font-size: 14px; color: var(--text); }
.p-org:hover { border-color: var(--blue); }
.p-org-tag { background: var(--blue-light); color: var(--blue); font-size: 12px; padding: 1px 8px; border-radius: 6px; flex-shrink: 0; }
.p-org b { margin-left: auto; font-size: 12px; color: var(--blue); }
.p-ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.p-ai-item { background: var(--blue-bg); border-radius: 10px; padding: 12px 14px; }
.p-ai-item span { display: block; font-size: 12px; color: var(--muted); }
.p-ai-item b { font-size: 17px; color: var(--blue-deep); }
.p-ai-summary { margin-top: 12px; font-size: 13px; color: #374151; background: #f8fafd; border-left: 3px solid var(--blue); padding: 10px 12px; border-radius: 0 8px 8px 0; }
.p-ai-risks { margin-top: 12px; }
.p-ai-risks h4 { font-size: 13px; color: var(--red); margin-bottom: 6px; }
.p-ai-risks p { font-size: 13px; color: #555; }
.p-related { display: flex; flex-direction: column; gap: 8px; }
.p-related-item { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.p-related-item:hover { border-color: var(--blue); }
.p-related-item p { font-size: 13px; color: var(--text); line-height: 1.5; }
.p-related-item span { font-size: 12px; color: var(--muted); }
.p-tip p { font-size: 13px; color: #4b5563; margin-bottom: 6px; }
.p-tip-muted { color: var(--muted) !important; }

/* ---------- 场景详情 ---------- */
.p-scene-head { background: linear-gradient(120deg, #eaf1fd, #f7faff); border-bottom: 1px solid var(--line); padding: 24px 0; }
.p-scene-head-grid { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.p-scene-head h1 { font-size: 26px; color: var(--blue-deep); margin: 6px 0; }
.p-scene-tags-lg { margin-top: 12px; }
.p-scene-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.p-scene-stat-nums { display: flex; gap: 24px; margin-bottom: 12px; }
.p-scene-stat-nums span { text-align: center; }
.p-scene-stat-nums b { display: block; font-size: 22px; color: var(--blue); }
.p-scene-stat-nums em { font-size: 12px; color: var(--muted); font-style: normal; }
.p-scene-list { padding: 20px 0; }

/* ---------- 企业画像 ---------- */
.p-portrait-head { background: linear-gradient(120deg, #eaf1fd, #f7faff); border-bottom: 1px solid var(--line); padding: 24px 0; }
.p-portrait-head h1 { font-size: 26px; color: var(--blue-deep); }
.p-portrait-search { display: flex; gap: 10px; margin-top: 14px; max-width: 640px; }
.p-portrait-search .p-search-input { flex: 1; border: 1px solid var(--blue); border-radius: 10px 0 0 10px; padding: 10px 12px; }
.p-portrait-search .p-input-select { max-width: 150px; border-radius: 0; border-right: none; }
.p-portrait-search .p-search-btn { border-radius: 0 10px 10px 0; }
.p-portrait-list { padding: 20px 0; }
.p-enterprise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.p-enterprise { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: all .18s; }
.p-enterprise:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-lg); }
.p-ent-top { display: flex; gap: 12px; align-items: center; }
.p-ent-logo { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; flex-shrink: 0; }
.p-ent-logo-lg { width: 58px; height: 58px; font-size: 26px; }
.p-ent-name h3 { font-size: 15px; line-height: 1.4; }
.p-ent-name p { font-size: 12px; color: var(--muted); }
.p-ent-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.p-ent-tags span { font-size: 12px; background: var(--blue-light); color: var(--blue); padding: 1px 8px; border-radius: 6px; }
.p-tag-red { background: #fdecec; color: var(--red); }
.p-ent-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; background: var(--blue-bg); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.p-ent-stats span { font-size: 12px; color: var(--muted); }
.p-ent-stats b { color: var(--blue-deep); font-size: 14px; }
.p-ent-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.p-ent-foot b { color: var(--blue); font-size: 13px; }
.p-ent-foot em { color: var(--muted); font-style: normal; }
.p-ent-detail-head { background: linear-gradient(120deg, #eaf1fd, #f7faff); border-bottom: 1px solid var(--line); padding: 26px 0; }
.p-ent-detail-top { display: flex; gap: 18px; align-items: flex-start; }
.p-ent-detail-info h1 { font-size: 26px; color: var(--blue-deep); margin-bottom: 10px; }
.p-ent-detail-stats { display: flex; gap: 34px; margin: 16px 0; }
.p-ent-detail-stats span { text-align: left; }
.p-ent-detail-stats b { display: block; font-size: 22px; color: var(--blue); }
.p-ent-detail-stats em { font-size: 12px; color: var(--muted); font-style: normal; }
.p-ent-detail-actions { display: flex; gap: 10px; }
.p-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.p-table th { background: #f8fafd; color: var(--muted); text-align: left; padding: 9px 12px; font-weight: 600; white-space: nowrap; }
.p-table td { padding: 9px 12px; border-top: 1px solid var(--line); }
.p-table tbody tr:hover td { background: #f8fbff; }
.p-table tfoot td { background: #f8fafd; font-weight: 600; }

/* ---------- AI 助手 ---------- */
.p-ai-head { background: linear-gradient(120deg, #eaf1fd, #f7faff); border-bottom: 1px solid var(--line); padding: 24px 0; }
.p-ai-head h1 { font-size: 26px; color: var(--blue-deep); }
.p-ai-page { padding: 24px 0; }
.p-ai-container { max-width: 860px; }
.p-ai-form { display: flex; gap: 10px; }
.p-ai-input { flex: 1; border: 2px solid var(--blue); border-radius: 12px; padding: 13px 16px; font-size: 15px; outline: none; }
.p-ai-input:focus { box-shadow: 0 0 0 3px rgba(11,91,215,.15); }
.p-ai-examples { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; align-items: center; font-size: 13px; color: var(--muted); }
.p-ai-examples a { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; color: var(--blue); }
.p-ai-examples a:hover { border-color: var(--blue); }
.p-ai-result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 8px; }
.p-ai-result h2 { font-size: 17px; color: var(--blue-deep); margin-bottom: 12px; }
.p-ai-big { font-size: 40px; font-weight: 800; color: var(--blue); text-align: center; padding: 18px 0; }
.p-ai-big span { font-size: 18px; color: var(--muted); }
.p-ai-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.p-ai-err { color: var(--red); }
.p-ai-result-err { background: #fff8f8; }
.p-ai-scope { margin-top: 18px; font-size: 13px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px; }
.p-ai-scope h3 { font-size: 14px; color: var(--text); margin-bottom: 6px; }

/* ---------- 市场洞察 ---------- */
.p-insight { padding: 22px 0; }
.p-insight-stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.p-insight-stats .p-hs-item { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.p-insight-stats .p-hs-item b { color: var(--blue); }
.p-insight-stats .p-hs-item span { color: var(--muted); }
.p-bar-chart { display: flex; gap: 6px; align-items: flex-end; height: 220px; padding-top: 20px; }
.p-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 4px; }
.p-bar-val { font-size: 11px; color: var(--muted); }
.p-bar-track { width: 70%; max-width: 40px; height: 100%; background: #eef1f7; border-radius: 6px; position: relative; }
.p-bar { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, #5ea0ff, var(--blue)); border-radius: 6px; min-height: 2px; }
.p-bar-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.p-insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.p-insight-note { font-size: 12px; color: var(--muted); margin: 10px 0; }

/* ---------- 关于 ---------- */
.p-about { padding: 22px 0; }
.p-about-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.p-about .p-content h4 { margin: 14px 0 6px; color: var(--blue-deep); }
.p-about .p-content ul { padding-left: 20px; }
.p-about .p-content li { margin-bottom: 6px; }
.p-404 { font-size: 72px; color: var(--blue); text-align: center; margin: 40px 0 6px; }
.p-page-head .p-btn { margin-top: 14px; }

/* ---------- Toast / Flash ---------- */
.p-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #1f2937; color: #fff; padding: 10px 22px; border-radius: 10px; font-size: 14px; z-index: 200; box-shadow: var(--shadow-lg); opacity: 0; transition: all .25s; pointer-events: none; }
.p-toast.show { opacity: 1; top: 30px; }
.p-toast.ok { background: var(--green); }
.p-toast.err { background: var(--red); }
.p-flash { background: #e8f6ee; color: #166534; border: 1px solid #bbf0cf; border-radius: 10px; padding: 10px 16px; margin: 14px 0; font-size: 14px; }
.p-mask { position: fixed; inset: 0; background: rgba(10,20,40,.5); z-index: 90; display: none; }

/* ============================================================
   响应式（H5）
   ============================================================ */
@media (max-width: 1080px) {
  .p-topbar-slogan { display: none; }
  .p-topbar-live { display: none; }
  .p-scene-grid { grid-template-columns: repeat(3, 1fr); }
  .p-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .p-enterprise-grid { grid-template-columns: repeat(2, 1fr); }
  .p-ind-top { grid-template-columns: 280px 1fr; }
  .p-search-input { width: 170px; }
  .p-search-select { max-width: 100px; }
}
@media (max-width: 900px) {
  .p-header-in { height: 60px; flex-wrap: wrap; }
  .p-nav-toggle { display: block; }
  .p-nav { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 240px; background: #fff; flex-direction: column; padding: 24px 16px; gap: 2px; box-shadow: -6px 0 20px rgba(0,0,0,.12); z-index: 100; }
  .p-nav.open { display: flex; }
  .p-nav-item { font-size: 16px; padding: 12px 14px; }
  .p-mask.open { display: block; }
  .p-search { margin-left: 0; order: 3; width: 100%; border-radius: 10px; }
  .p-search-select { max-width: 120px; }
  .p-search-input { flex: 1; width: auto; }
  .p-header-in { gap: 10px; }
  .p-brand-text em { display: none; }
  .p-hero-grid { flex-direction: column; gap: 28px; padding: 34px 0 44px; }
  .p-hero-title { font-size: 28px; }
  .p-hero-accent { font-size: 17px; }
  .p-hero-stats { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .p-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .p-feature p { min-height: auto; }
  .p-scene-grid { grid-template-columns: repeat(2, 1fr); }
  .p-hot { grid-template-columns: 1fr; }
  .p-ind-top { grid-template-columns: 1fr; }
  .p-detail-grid { grid-template-columns: 1fr; }
  .p-about-grid { grid-template-columns: 1fr; }
  .p-insight-grid { grid-template-columns: 1fr; }
  .p-enterprise-grid { grid-template-columns: 1fr; }
  .p-footer-in { grid-template-columns: 1fr 1fr; }
  .p-ai-grid { grid-template-columns: repeat(2, 1fr); }
  .p-copy { flex-direction: column; gap: 4px; }
}
@media (max-width: 560px) {
  .p-topbar-in { flex-wrap: wrap; justify-content: center; height: auto; min-height: var(--topbar-h); gap: 2px 10px; padding: 4px 0; }
  .p-topbar-slogan { font-size: 12px; }
  .p-scene-grid { grid-template-columns: 1fr; }
  .p-feature-grid { grid-template-columns: 1fr 1fr; }
  .p-section-head { gap: 8px; }
  .p-more { margin-left: auto; }
  .p-scene-head-grid { flex-direction: column; align-items: flex-start; }
  .p-ent-detail-top { flex-direction: column; }
  .p-ent-detail-stats { gap: 18px; flex-wrap: wrap; }
  .p-portrait-search { flex-direction: column; }
  .p-portrait-search .p-search-input, .p-portrait-search .p-input-select, .p-portrait-search .p-search-btn { border-radius: 10px; max-width: none; width: 100%; }
  .p-hero-search { flex-direction: column; }
  .p-hero-search .p-search-select { max-width: none; border-bottom: 1px solid var(--line); }
  .p-hero-search .p-search-btn { padding: 12px; }
  .p-ai-form { flex-direction: column; }
  .p-bar-chart { gap: 3px; }
  .p-card-foot { flex-wrap: wrap; }
  .p-card-actions { margin-left: 0; }
  .p-table { font-size: 12px; }
  .p-table th, .p-table td { padding: 7px 8px; }
}

/* ============================================================
   登录 / 注册（门户风格）
   ============================================================ */
.p-auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px; background: linear-gradient(160deg, #083a86 0%, #0b5bd7 45%, #4d94f5 100%); position: relative; overflow: hidden; }
.p-auth::before, .p-auth::after { content: ''; position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 60%); }
.p-auth::before { width: 460px; height: 460px; left: -140px; top: -120px; }
.p-auth::after { width: 380px; height: 380px; right: -100px; bottom: -120px; }
.p-auth-inner { width: 100%; max-width: 430px; position: relative; z-index: 1; }
.p-auth-brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 22px; }
.p-auth-brand .p-brand-text strong { color: #fff; font-size: 22px; }
.p-auth-brand .p-brand-text em { color: #cfe0fb; }
.p-auth-card { background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(6,25,60,.35); padding: 28px 26px; }
.p-auth-card h2 { font-size: 22px; color: var(--blue-deep); text-align: center; }
.p-auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 18px; }
.p-auth-card-narrow { max-width: 400px; margin: 0 auto; }
.p-auth-card .tabs { display: flex; gap: 4px; background: #eef1f7; border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.p-auth-card .tab { flex: 1; border: none; background: transparent; padding: 8px 0; border-radius: 8px; font-size: 14px; color: var(--muted); }
.p-auth-card .tab.active { background: #fff; color: var(--blue); font-weight: 700; box-shadow: 0 1px 4px rgba(15,45,110,.12); }
.p-auth-card .tab-panel { display: none; }
.p-auth-card .tab-panel.active { display: block; }
.p-auth-card .field { display: block; margin-bottom: 12px; }
.p-auth-card .field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.p-auth-card .input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; font-size: 14px; outline: none; background: #fff; }
.p-auth-card .input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,91,215,.12); }
.p-auth-card .code-row { display: flex; gap: 8px; }
.p-auth-card .code-row .input { flex: 1; }
.p-auth-card .btn-block { width: 100%; justify-content: center; margin-top: 4px; }
.p-auth-card .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 9px; padding: 11px; font-size: 15px; font-weight: 700; }
.p-auth-card .agree { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--muted); margin: 10px 0; }
.p-auth-card .auth-links { text-align: center; margin-top: 12px; font-size: 13px; }
.p-auth-foot { color: #cfe0fb; font-size: 12px; text-align: center; margin-top: 18px; }

/* ============ 首页实时标讯 · 紧凑列表行 ============ */
.p-live-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 6px rgba(20, 60, 120, .04); }
.p-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.p-row:last-child { border-bottom: none; }
.p-row:hover { background: var(--blue-light); }
.p-row-type { flex-shrink: 0; }
.p-row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 15px; font-weight: 600; }
.p-row-title:hover { color: var(--blue); }
.p-row-meta { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.p-row-m { color: var(--muted); font-size: 13px; white-space: nowrap; }
.p-row-actions { display: inline-flex; gap: 2px; }
.p-row-actions .p-action { padding: 2px 5px; border-radius: 6px; font-size: 14px; }

/* ============ 详情页登录墙 ============ */
.p-login-gate { background: linear-gradient(120deg, #f0f6ff, #e8f1ff); border: 1px dashed var(--blue); }
.p-gate-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.p-gate-text { flex: 1; min-width: 220px; }
.p-gate-text .p-panel-title { margin-bottom: 4px; }
.p-gate-text p { color: var(--muted); font-size: 14px; margin: 0; }
.p-content-locked { color: var(--muted); }

@media (max-width: 900px) {
  .p-row { padding: 11px 12px; gap: 8px; }
  .p-row-region, .p-row-time { display: none; }
  .p-row-title { font-size: 14px; }
  .p-gate-inner { flex-direction: column; align-items: flex-start; }
}

/* ============ 详情页 AI 研判结果框 ============ */
.p-ai-result { display: none; margin-top: 14px; }
.p-ai-result:not(:empty) { display: block; }
.p-ai-result-head { font-size: 15px; font-weight: 700; color: var(--blue-deep); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.p-ai-badge { font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-light); border-radius: 20px; padding: 2px 9px; }
.p-ai-result-body { background: #f7faff; border: 1px solid #dce8fb; border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.75; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.p-ai-result-foot { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 12px; }
.p-ai-model { color: var(--blue); }
.p-ai-err { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.p-ai-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 14px; background: #f7faff; border: 1px solid #dce8fb; border-radius: 10px; }
.p-ai-loading i { width: 16px; height: 16px; border: 2px solid #d0dff4; border-top-color: var(--blue); border-radius: 50%; animation: pSpin .8s linear infinite; }
@keyframes pSpin { to { transform: rotate(360deg); } }
