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

/* ---------------- 首页 Hero（对齐 shangye：深蓝图 + 遮罩 + 白药丸搜索） ---------------- */
.hero { position: relative; min-height: 420px; display: flex; align-items: center; padding: 92px 0 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: url("../assets/hero-bg.jpg") center/cover no-repeat; transform: scale(1.03); }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(10,24,48,.92) 0%, rgba(13,31,60,.78) 48%, rgba(16,70,96,.55) 100%); }
.hero-inner { position: relative; z-index: 2; color: #fff; width: 100%; }
.hero-title { font-size: 42px; font-weight: 800; letter-spacing: 1px; margin: 0; line-height: 1.2; }
.hero-title span { color: var(--accent); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,.82); margin: 16px 0 28px; }

.hero-search { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 860px; background: #fff; padding: 9px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.hero-search .search-field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; min-width: 0; }
.hero-search .search-ico { color: var(--text-3); font-size: 20px; flex: none; }
.hero-search input { flex: 1; border: none; outline: none; font-size: 16px; padding: 11px 2px; color: var(--text); background: transparent; min-width: 0; }
.hero-search .btn { padding: 12px 30px; font-size: 16px; flex: none; }

.hero-tags { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.7); }
.hero-tags a { color: rgba(255,255,255,.92); }
.hero-tags a:hover { color: var(--accent); }

/* 居中布局 + 查询 Tab */
.hero-center { text-align: center; }
.hero-center .hero-title { font-size: 46px; }
.hero-center .hero-sub { margin: 16px auto 24px; }
.hero-center .hero-search { margin: 0 auto; }
.hero-center .hero-tags { justify-content: center; }
.hero-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.htab { color: rgba(255,255,255,.85); background: rgba(255,255,255,.12); padding: 8px 22px; border-radius: 22px; font-size: 15px; font-weight: 600; transition: .15s; }
.htab.active { background: #fff; color: var(--brand); }
.hero-search.big { padding: 10px; }
.hero-search.big input { font-size: 17px; padding: 13px 2px; }
.hero-search.big .btn { padding: 14px 36px; font-size: 16px; border-radius: 12px; }

/* 吸顶搜索条 */
.sticky-search { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); transform: translateY(-100%); transition: transform .25s; }
.sticky-search.show { transform: translateY(0); }
.sticky-inner { display: flex; align-items: center; gap: 16px; height: 58px; }
.sticky-inner .logo.sm .logo-img { height: 30px; }
.sticky-inner .mini-search { flex: 1; max-width: 560px; height: 40px; }

/* 区域查询 */
.region-section { margin-top: 28px; }
.region-section .sec-head { display: flex; align-items: baseline; gap: 10px; border: none; margin-bottom: 14px; }
.region-section .sec-head h3 { font-size: 20px; margin: 0; }
.region-card { padding: 6px 20px; }
.region-scroll { max-height: 340px; overflow-y: auto; }
.region-scroll::-webkit-scrollbar { width: 6px; }
.region-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.region-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.region-row:last-child { border-bottom: none; }
.region-prov { width: 56px; flex: none; font-weight: 700; color: var(--text); }
.region-cities { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.region-cities a { color: var(--text-2); }
.region-cities a:hover { color: var(--brand); }

/* 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; }

/* 热门应用卡片（图标左 + 文字右，对齐 qcc 热门应用） */
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 20px; }
.app-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: .15s; }
.app-item:hover { box-shadow: var(--shadow); border-color: var(--brand-100); transform: translateY(-2px); }
.app-ic { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.app-ic .ggc-svg { width: 22px; height: 22px; }
.app-tx { display: flex; flex-direction: column; min-width: 0; }
.app-tx b { font-size: 15px; }
.app-tx small { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }

/* 首页两栏 */
.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; transition: color .15s; }
.sec-tabs span:hover { color: var(--brand); }
.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: 48px 0 32px; min-height: auto; text-align: center; }
  .hero-title, .hero-center .hero-title { font-size: 24px; line-height: 1.35; }
  .hero-sub { font-size: 13px; margin: 12px 0 18px; }
  .hero-search { max-width: 100%; }
  .hero-search.big input { font-size: 15px; padding: 11px 2px; }
  .hero-search.big .btn, .hero-search .btn { padding: 11px 18px; font-size: 15px; }
  .hero-tabs { flex-wrap: wrap; gap: 8px; }
  .htab { padding: 6px 16px; font-size: 14px; }
  .hero-tags { justify-content: center; gap: 10px 14px; }
  .sticky-search { display: none; }   /* 移动端不用吸顶条，有底部tab */
  .region-cities { gap: 8px 12px; }
  .region-prov { width: 44px; }
  .ai-banner { flex-wrap: wrap; }
  .ai-banner .btn { margin-left: 0; }
  .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; }
}
