/* ============================================================
   商业CC查企业 · 页面专用样式（首页 / 搜索 / 详情）
   ============================================================ */

/* ---------------- 首页 Hero ---------------- */
.hero { background: var(--hero-grad); color: #fff; padding: 46px 0 40px; text-align: center; }
.hero-title { font-size: 34px; font-weight: 800; margin: 0 0 8px; letter-spacing: 1px; }
.hero-sub { font-size: 15px; opacity: .92; margin: 0 0 24px; }
.hero-sub b { background: rgba(255,255,255,.22); padding: 1px 8px; border-radius: 6px; }

.search-tabs { display: flex; justify-content: center; gap: 6px; max-width: 760px; margin: 0 auto; }
.stab { color: #fff; background: rgba(255,255,255,.14); padding: 8px 20px; border-radius: 8px 8px 0 0; font-size: 15px; font-weight: 600; }
.stab.active { background: var(--surface); color: var(--brand); }

.big-search { display: flex; max-width: 760px; margin: 0 auto; height: 54px; background: var(--surface); padding: 6px; border-radius: 0 10px 10px 10px; box-shadow: var(--shadow); }
.big-search input { flex: 1; border: none; outline: none; padding: 0 16px; font-size: 16px; background: transparent; color: var(--text); }
.big-search .btn { height: 100%; padding: 0 28px; font-size: 16px; border-radius: 8px; }

.hot-words { max-width: 760px; margin: 14px auto 0; text-align: left; font-size: 13px; opacity: .9; }
.hot-words a { margin-right: 14px; opacity: .95; }
.hot-words a:hover { text-decoration: underline; }

/* AI 横幅 */
.ai-banner { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 16px 20px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-lg); }
.ai-banner .ai-ic { font-size: 30px; }
.ai-banner .ai-txt { display: flex; flex-direction: column; }
.ai-banner .ai-txt b { color: var(--brand); font-size: 15px; }
.ai-banner .ai-txt span { color: var(--text-2); font-size: 13px; }
.ai-banner .btn { margin-left: auto; }

/* 快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-top: 20px; }
.quick-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 8px; text-align: center; transition: .15s; }
.quick-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-100); }
.quick-item .qic { font-size: 26px; display: block; margin-bottom: 6px; }
.quick-item b { display: block; font-size: 14px; }
.quick-item small { color: var(--text-3); font-size: 12px; }

/* 首页两栏 */
.home-cols { display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin-top: 20px; }
.sec-head { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 6px; }
.sec-head h3 { margin: 0; font-size: 17px; }
.sec-tabs { margin-left: auto; display: flex; gap: 16px; font-size: 13px; }
.sec-tabs span { color: var(--text-3); cursor: pointer; }
.sec-tabs span.active { color: var(--brand); font-weight: 600; }
.news-list li { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.news-top { display: flex; align-items: center; gap: 8px; }
.news-ent { font-weight: 600; color: var(--text); }
.news-ent:hover { color: var(--brand); }
.news-date { margin-left: auto; color: var(--text-3); font-size: 12px; }
.news-body { margin: 6px 0 0; color: var(--text-2); font-size: 13px; }

.home-side .card { margin-bottom: 20px; }
.home-side h3 { margin: 0 0 14px; font-size: 16px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-grid b { font-size: 24px; color: var(--brand); }
.stat-grid small { font-size: 13px; font-weight: 600; }
.stat-grid span { display: block; color: var(--text-3); font-size: 12px; }
.side-links li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.side-links li:last-child { border: none; }
.side-links a:hover { color: var(--brand); }

@media (max-width: 900px) {
  .hero { padding: 24px 0 26px; }
  .hero-title { font-size: 23px; }
  .hero-sub { font-size: 13px; margin-bottom: 18px; }
  .search-tabs { flex-wrap: wrap; gap: 4px; }
  .stab { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
  .big-search { height: 48px; border-radius: 10px; }
  .big-search .btn { padding: 0 16px; font-size: 14px; }
  .big-search input { font-size: 14px; }
  .ai-banner { flex-wrap: wrap; }
  .ai-banner .btn { margin-left: 0; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .home-cols { grid-template-columns: 1fr; }
}

/* ---------------- 搜索页 ---------------- */
.filter-card { margin-top: 16px; }
.filter-row { display: flex; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.filter-row:last-child { border: none; }
.filter-row .flabel { width: 72px; color: var(--text-3); flex: none; }
.filter-row .fopts { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.filter-row .fopts a { color: var(--text-2); }
.filter-row .fopts a.on, .filter-row .fopts a:hover { color: var(--brand); }

.result-bar { display: flex; align-items: center; margin: 18px 0 10px; font-size: 13px; color: var(--text-2); }
.result-bar .sort { margin-left: auto; display: flex; gap: 16px; }
.result-bar .sort span { cursor: pointer; }
.result-bar .sort span.on { color: var(--brand); font-weight: 600; }

/* 搜索结果大卡片 */
.ent-card { display: flex; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); }
.ent-card:hover { background: var(--surface-2); }
.ent-main { flex: 1; min-width: 0; }
.ent-name { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.ent-name a:hover { color: var(--brand); }
.ent-name em { color: var(--brand); font-style: normal; }
.ent-tags { margin-bottom: 10px; }
.ent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 24px; font-size: 13px; color: var(--text-2); }
.ent-grid b { color: var(--text); font-weight: 600; }
.ent-grid .more { color: var(--brand); cursor: pointer; font-size: 12px; }
.ent-addr { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.ent-ops { display: flex; flex-direction: column; gap: 8px; width: 92px; flex: none; }

.pager { display: flex; justify-content: center; gap: 6px; margin: 24px 0; }
.pager a { min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text-2); font-size: 13px; }
.pager a.on { background: var(--brand); color: #fff; border-color: var(--brand); }

@media (max-width: 900px) {
  .filter-card .filter-row { flex-wrap: wrap; }
  .ent-card { flex-direction: column; gap: 10px; padding: 14px; }
  .ent-grid { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .ent-ops { flex-direction: row; width: auto; }
  .ent-ops .btn { flex: 1; }
  .ent-logo { width: 48px; height: 48px; font-size: 15px; }
}

/* ---------------- 详情页 ---------------- */
.detail-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 20px 0 0; }
.dh-top { display: flex; gap: 18px; }
.dh-main { flex: 1; min-width: 0; }
.dh-name { font-size: 24px; font-weight: 800; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dh-ops { display: flex; gap: 10px; flex: none; }
.dh-info { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px 30px; margin: 14px 0; font-size: 13px; color: var(--text-2); }
.dh-info a { color: var(--brand); }
.dh-intro { font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }

/* 风险概览条 */
.risk-strip { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.risk-pill { display: flex; flex-direction: column; align-items: center; padding: 6px 18px; border-radius: 10px; background: var(--surface-2); }
.risk-pill b { font-size: 20px; }
.risk-pill span { font-size: 12px; color: var(--text-3); }

/* Tab 吸顶导航 */
.detail-tabs { background: var(--surface); position: sticky; top: 60px; z-index: 40; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.detail-tabs .wrap { display: flex; gap: 4px; overflow-x: auto; }
.dtab { padding: 14px 18px; font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; border-bottom: 3px solid transparent; }
.dtab.active { color: var(--brand); border-bottom-color: var(--brand); }
.dtab .cnt { color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 2px; }

/* 详情主体两栏 */
.detail-cols { display: grid; grid-template-columns: 180px 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.anchor-nav { position: sticky; top: 130px; font-size: 13px; }
.anchor-nav a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text-2); }
.anchor-nav a.on, .anchor-nav a:hover { background: var(--brand-50); color: var(--brand); }

.block { scroll-margin-top: 140px; margin-bottom: 18px; }
.block-head { display: flex; align-items: center; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--line); }
.block-head h3 { margin: 0; font-size: 17px; }
.block-head h3::before { content: ""; display: inline-block; width: 4px; height: 15px; background: var(--brand); border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.block-head .ops { margin-left: auto; display: flex; gap: 10px; font-size: 13px; }

/* 工商信息表 */
.info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.info-table td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.info-table .k { background: var(--surface-2); color: var(--text-3); width: 120px; white-space: nowrap; }
.info-table .v { color: var(--text); }
.info-table .full { width: auto; }

/* 通用数据表 */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { background: var(--surface-2); color: var(--text-2); text-align: left; padding: 10px 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table tr:hover td { background: var(--surface-2); }

/* 会员锁遮罩 */
.lock-box { position: relative; min-height: 120px; display: grid; place-items: center; text-align: center; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 24px; }
.lock-box .lk-ic { font-size: 28px; }
.lock-box p { margin: 8px 0 12px; color: var(--text-2); font-size: 13px; }

@media (max-width: 900px) {
  .dh-top { flex-direction: column; gap: 12px; }
  .dh-name { font-size: 19px; }
  .dh-ops { flex-wrap: wrap; }
  .dh-info { grid-template-columns: 1fr; gap: 4px; }
  .detail-tabs { top: 52px; }
  .detail-cols { grid-template-columns: 1fr; }
  .anchor-nav { display: none; }
  .info-table .k { width: 96px; }
  .risk-strip { flex-wrap: wrap; }
}
