/* 公司百科 - 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --brand: #3666d6; --brand-dark: #2a4fb0; --bg: #f0f2f5; --card: #fff;
  --text: #1a1a2e; --muted: #888; --line: #e8ecf1;
}
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 头部 */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { font-size: 22px; font-weight: 800; color: var(--brand); white-space: nowrap; }
.searchbar { flex: 1; display: flex; max-width: 560px; }
.searchbar input { flex: 1; height: 40px; padding: 0 14px; border: 2px solid var(--line); border-right: none; border-radius: 8px 0 0 8px; font-size: 15px; outline: none; }
.searchbar input:focus { border-color: var(--brand); }
.searchbar button { height: 40px; padding: 0 22px; border: none; background: var(--brand); color: #fff; font-size: 15px; border-radius: 0 8px 8px 0; cursor: pointer; }
.searchbar button:hover { background: var(--brand-dark); }
.main-nav { display: flex; gap: 16px; margin-left: auto; }
.main-nav a { color: var(--text); font-size: 15px; }
.main-nav a:hover { color: var(--brand); }

.site-main { padding: 24px 0 40px; min-height: 60vh; }

/* 卡片 */
.card { background: var(--card); border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 24px; }
.card + .card { margin-top: 20px; }
.section-title { font-size: 20px; font-weight: 700; border-left: 4px solid var(--brand); padding-left: 12px; margin-bottom: 16px; }

/* 首页 */
.hero { background: linear-gradient(135deg, #3666d6, #5a8bff); color: #fff; border-radius: 16px; padding: 40px 28px; margin-bottom: 24px; }
.hero h1 { font-size: 28px; margin-bottom: 10px; }
.hero p { opacity: .92; font-size: 15px; }
.stat-row { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.stat { font-size: 14px; opacity: .9; }
.stat b { font-size: 22px; display: block; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #eef3fa; color: var(--brand); padding: 6px 14px; border-radius: 30px; font-size: 14px; }
.chip:hover { background: var(--brand); color: #fff; text-decoration: none; }

.comp-list { list-style: none; }
.comp-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comp-item:last-child { border-bottom: none; }
.comp-rank { width: 30px; text-align: center; font-weight: 800; color: var(--muted); }
.comp-rank.top { color: #f59e0b; }
.comp-info { flex: 1; min-width: 0; }
.comp-name { font-size: 16px; font-weight: 600; color: var(--text); }
.comp-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.comp-view { font-size: 12px; color: #bbb; white-space: nowrap; }

/* 列表页 */
.list-head { margin-bottom: 18px; }
.list-head h1 { font-size: 22px; }
.list-head .count { color: var(--muted); font-size: 14px; margin-top: 4px; }
.result-card { background: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.result-card h2 { font-size: 18px; }
.result-card h2 a { color: var(--text); }
.result-card h2 a:hover { color: var(--brand); }
.result-tags { margin: 8px 0; display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.tag-pill { background: #eef3fa; color: var(--brand); padding: 2px 10px; border-radius: 20px; }
.result-desc { font-size: 14px; color: #555; }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pg { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.pg:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pg-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pg-dot { align-self: center; color: var(--muted); }

/* 详情页 */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--brand); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.content-main { background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.content-main h1 { font-size: 26px; margin-bottom: 12px; }
.detail-sub { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.status-open { color: #0abf53; font-weight: 600; }
.detail-section { margin-bottom: 28px; }
.detail-section h2 { font-size: 20px; border-left: 4px solid var(--brand); padding-left: 12px; margin-bottom: 14px; }
.detail-section p { font-size: 15px; color: #333; line-height: 1.9; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.info-table td:first-child { width: 120px; font-weight: 600; color: #555; background: #f8f9fa; }
.timeline { list-style: none; }
.timeline li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.timeline .date { font-weight: 600; color: var(--brand); min-width: 90px; }
.faq-item { margin-bottom: 14px; }
.faq-item h3 { font-size: 15px; margin-bottom: 4px; }
.faq-item p { font-size: 14px; color: #555; }

/* 核心业务 */
.kb-item { margin-bottom: 16px; }
.kb-item h3 { font-size: 16px; margin-bottom: 4px; }
.kb-item p { font-size: 14px; color: #555; line-height: 1.8; }

/* 荣誉与排名 */
.honor-list { list-style: none; }
.honor-list li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.honor-list li:last-child { border-bottom: none; }
.honor-year { font-weight: 600; color: var(--brand); min-width: 70px; }

/* 核心团队 */
.team-item { margin-bottom: 14px; }
.team-item h3 { font-size: 15px; margin-bottom: 2px; }
.team-title { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 8px; }
.team-item p { font-size: 13px; color: #666; }

/* 来源引用 */
.ref { font-size: 11px; color: var(--brand); }
.ref a { color: var(--brand); text-decoration: none; }
.ref a:hover { text-decoration: underline; }
.refs-wrap { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.refs h3 { font-size: 15px; margin-bottom: 10px; }
.refs ol { padding-left: 20px; font-size: 13px; color: #666; }
.refs li { margin-bottom: 4px; word-break: break-all; }
.refs a { color: var(--brand); }

/* 侧栏 */
.sidebar { position: sticky; top: 80px; }
.side-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 20px; }
.side-card h3 { font-size: 16px; margin-bottom: 12px; }
.side-logo { width: 76px; height: 76px; border-radius: 50%; background: #eef3fa; display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--brand); margin: 0 auto 12px; }
.side-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; padding: 10px; background: #fff; }
.side-logo-fallback { width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 34px; color: var(--brand); }
.side-name { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 14px; }
.side-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.side-row span:first-child { color: var(--muted); }
.side-row span:last-child { font-weight: 500; text-align: right; }
.rel-list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; }
.rel-list a:hover { color: var(--brand); }
.rel-list span { display: block; font-size: 12px; color: var(--muted); }

/* 404 */
.error-box { text-align: center; padding: 80px 20px; }
.error-box h1 { font-size: 80px; color: var(--brand); }
.error-box p { color: var(--muted); margin: 10px 0 24px; }

/* 页脚 */
.site-footer { background: #1f2430; color: #9aa3b2; font-size: 13px; padding: 28px 0; text-align: center; }
.site-footer a { color: #cdd6e4; }
.site-footer p { margin-bottom: 6px; }

/* 响应式 */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px; }
  .searchbar { order: 3; max-width: 100%; width: 100%; }
  .main-nav { margin-left: 0; }
  .hero h1 { font-size: 22px; }
}
@media (max-width: 520px) {
  .content-main { padding: 20px; }
  .container { padding: 0 12px; }
}