/* 企业门户样式。与 admin/style.css 共用字体与色板，但布局独立。 */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #1a1a1a;
  background: #fff;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 页头 ─────────────────────────────── */
.site-header {
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
}

.site-header nav a:hover {
  color: #1a1a1a;
}

/* 管理入口：视觉上与导航区分，但不刻意强调 */
.admin-entry {
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #666 !important;
}

.admin-entry:hover {
  border-color: #1a1a1a;
  color: #1a1a1a !important;
}

/* ── 首屏 ─────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  background: #f5f6f8;
  border-bottom: 1px solid #eee;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 600;
}

.lead {
  margin: 0;
  max-width: 620px;
  font-size: 16px;
  color: #555;
}

/* ── 区块 ─────────────────────────────── */
.section {
  padding: 64px 0;
}

.section.alt {
  background: #fafbfc;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.section h2 {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 600;
}

.section-lead {
  max-width: 720px;
  margin: 0 0 24px;
  color: #444;
}

/* ── 业务卡片 ─────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  padding: 24px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* ── 服务说明 ─────────────────────────── */
.feature-list {
  max-width: 720px;
  margin: 0 0 24px;
  padding-left: 20px;
  color: #444;
}

.feature-list li {
  margin-bottom: 8px;
}

.note {
  max-width: 720px;
  margin: 0;
  padding: 14px 16px;
  background: #f5f6f8;
  border-left: 3px solid #ddd;
  border-radius: 4px;
  color: #666;
  font-size: 14px;
}

/* ── 联系方式 ─────────────────────────── */
.contact {
  max-width: 600px;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 24px;
}

.contact dt {
  color: #888;
  font-size: 14px;
}

.contact dd {
  margin: 0;
  color: #1a1a1a;
}

/* ── 页脚 ─────────────────────────────── */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid #eee;
  background: #fafbfc;
  color: #888;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer p {
  margin: 0;
}

/* 备案号必须可点击跳转工信部，这是备案要求 */
.site-footer a {
  color: #888;
  text-decoration: none;
}

.site-footer a:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

/* ── 窄屏 ─────────────────────────────── */
@media (max-width: 640px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .site-header nav {
    gap: 16px;
    font-size: 13px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .section {
    padding: 44px 0;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact dd {
    margin-bottom: 12px;
  }
}

/* 备案标识：ICP 与公安备案号并排，窄屏时自动换行 */
.beian {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.beian-police {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 公安备案图标由公安部下发，放在 public/ 下后启用 */
.beian-police img {
  width: 14px;
  height: 14px;
}
