/* ==========================================================================
   睿图地信官网样式（公开页唯一入口）
   结构：页头文字导航 + 首页（公司介绍 + 双入口）+ 技术分享占位 + 单行页脚
   口径：docs/UI-REDESIGN.md（顶部导航、全站无 logo、首页一屏、整体减轻）
   注意：本文件只服务 site/*.html 公开页。
        内部页各自独立：account→login.css、workbench→workbench.css、
        legal→legal.css。改本文件不得影响内部页面。
   ========================================================================== */

/* ---------- 基础 ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

/* 主内容撑开剩余高度，页脚贴在视口底部（避免页面下方留大片空白） */
body > main { flex: 1 0 auto; }

h1, h2, h3 { line-height: 1.25; }
p { margin: 0; }
a { color: var(--brand-blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--brand-blue-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--brand-blue-deep);
  color: #fff;
  z-index: 10;
}
.skip-link:focus { left: 12px; top: 12px; text-decoration: none; }

/* 仅供辅助技术读取（视觉隐藏） */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 页头（文字导航，无 logo 图片） ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header__inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--ink);
  white-space: nowrap;
}
.site-name:hover { text-decoration: none; color: var(--brand-blue-deep); }
.site-name__mark {
  display: block;
  width: auto;
  height: 36px;
  flex: 0 0 auto;
}
.site-name__full { display: none; }

.site-nav { margin-left: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
}
.site-nav__list a:hover { background: var(--surface-tint); text-decoration: none; }
.site-nav__list a[aria-current="page"] { color: var(--brand-blue-deep); font-weight: 700; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand-blue); color: #fff; }
.btn--primary:hover { background: var(--brand-blue-deep); }

/* ---------- 首页：左公司介绍 + 右双入口 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(820px 340px at 88% -12%, rgba(33, 135, 226, .10), transparent 62%),
    var(--surface-tint);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  padding-top: 52px;
  padding-bottom: 56px;
}

@media (min-width: 900px) {
  .hero__inner {
    /* 填满页脚以上的可用高度（页脚约 48px），内容纵向居中 */
    min-height: min(64vh, calc(100vh - 60px - 48px));
    display: flex;
    align-items: center;
  }
}

.hero__grid {
  width: 100%;
  display: grid;
  gap: 36px;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 48px;
    align-items: center;
  }
}

/* 进入动画：默认可见，仅在 JS 标记后才做淡入（无 JS 也不空白） */
.js .hero__text,
.js .entry-stack { animation: rise .45s ease-out both; }
.js .entry-stack { animation-delay: .08s; }
@media (prefers-reduced-motion: reduce) {
  .js .hero__text, .js .entry-stack { animation: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hero__kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  color: var(--brand-blue-deep);
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 700;
  letter-spacing: -.3px;
  max-width: 20em;
}

.hero__desc {
  margin: 0 0 14px;
  max-width: 34em;
  font-size: 16px;
  color: var(--ink-muted);
}
.hero__desc:last-of-type { margin-bottom: 0; }
.hero__desc strong { color: var(--ink); font-weight: 600; }

/* 入口卡（只有两个：OA / 技术分享） */

.entry-stack {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .entry-stack { align-content: center; }
}

.entry-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.entry-card:hover {
  text-decoration: none;
  border-color: var(--brand-blue-light);
  box-shadow: var(--shadow-md);
}

.entry-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(14, 104, 186, .1);
  color: var(--brand-blue-deep);
}
.entry-card--green .entry-card__icon {
  background: rgba(49, 158, 29, .1);
  color: var(--brand-green);
}

.entry-card__body { display: grid; gap: 3px; min-width: 0; }
.entry-card__title { font-size: 17px; font-weight: 700; }
.entry-card__desc { font-size: 14px; color: var(--ink-muted); }

.entry-card__go {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--ink-muted);
}
.entry-card:hover .entry-card__go { color: var(--brand-blue-deep); }

/* ---------- 子页（技术分享等） ---------- */

.page-head {
  padding: 46px 0 30px;
  background:
    radial-gradient(760px 260px at 88% -20%, rgba(33, 135, 226, .10), transparent 62%),
    var(--surface-tint);
  border-bottom: 1px solid var(--line);
}
.page-head__crumb {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-muted);
}
.page-head__crumb span { margin: 0 6px; }
.page-head__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.8vw, 32px);
}
.page-head__desc { margin: 0; font-size: 15px; color: var(--ink-muted); }

.section { padding: 40px 0 56px; }

.empty-state {
  padding: 36px 28px;
  background: var(--surface-tint);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.empty-state__title { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.empty-state__text { margin: 0 auto; max-width: 40em; font-size: 15px; color: var(--ink-muted); }

/* ---------- 文字排版块（业务范围等长文页） ---------- */

.prose { max-width: 46em; }
.prose h2 {
  margin: 34px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 19px;
}
.prose p { margin: 0 0 14px; }
.prose .note { font-size: 14px; color: var(--ink-muted); }

.scope-list { margin: 0; }
.scope-list dt {
  margin: 22px 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.scope-list dt:first-child { margin-top: 0; }
.scope-list dd {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--line);
  color: var(--ink-muted);
  font-size: 15px;
}

/* ---------- 联系页（业务联系 / 技术支持） ---------- */

.contact-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 820px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.contact-card {
  padding: 26px 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-card__title {
  margin: 0 0 8px;
  font-size: 18px;
}
.contact-card__desc {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--ink-muted);
}

.contact-card__list { margin: 0; }
.contact-card__list dt {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--ink-muted);
}
.contact-card__list dd {
  margin: 0 0 16px;
  font-size: 16px;
}
.contact-card__list dd:last-child { margin-bottom: 0; }
.contact-card__list a { font-weight: 600; }

.contact-card__note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---------- 页脚（单行紧凑：版权 + 备案公示） ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__row {
  min-height: 44px;
  padding-top: 13px;
  padding-bottom: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink-muted);
}
.site-footer__row p { margin: 0; }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.site-footer__links a { color: var(--ink-muted); }
.site-footer__links a:hover { color: var(--brand-blue-deep); }

.site-footer__beian { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__beian img { display: block; }

/* ---------- 小屏收敛（移动端允许下拉） ---------- */

@media (max-width: 719px) {
  .wrap { padding: 0 16px; }
  /* 移动端页头排成两行：第一行 logo + 站名 + 员工登录，第二行文字导航。
     比挤成一行更清楚，也保住左上角 logo。 */
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand cta" "nav nav";
    align-items: center;
    gap: 6px 10px;
    min-height: 50px;
    padding-top: 6px;
    padding-bottom: 4px;
  }
  .site-name { grid-area: brand; display: inline-flex; gap: 7px; font-size: 15px; }
  .site-name__mark { height: 26px; }
  .site-name__full { display: none; }
  .site-name__short { display: inline; }
  .site-nav { grid-area: nav; margin-left: 0; }
  .site-nav__list { gap: 0; justify-content: flex-start; }
  .site-nav__list a { padding: 6px 9px; font-size: 14px; }
  .site-header__cta { grid-area: cta; padding: 7px 11px; font-size: 14px; }
  .hero__inner { padding-top: 30px; padding-bottom: 34px; }
  .hero__grid { gap: 26px; }
  .entry-card { min-height: 0; padding: 16px 18px; }
  .contact-card { padding: 20px 18px 18px; }
  .contact-card__desc { margin-bottom: 16px; }
  .contact-card__list dd { margin-bottom: 14px; font-size: 15px; }
}

@media (max-width: 1000px) {
  .site-name__short { display: none; }
  .site-name__full { display: inline; font-size: 15px; }
}
