/* ==========================================================================
   广联禾智能科技 · 简洁版全站样式
   ========================================================================== */

:root {
  --green: #1f7a3f;
  --text: #1f2937;
  --muted: #7a838d;
  --line: rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--muted);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Hiragino Sans GB",
    "Source Han Sans SC",
    "Noto Sans SC",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
}

p {
  margin: 0;
}

.wrap,
.container {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===== 顶部导航 ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand__logo {
  display: block;
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav a {
  color: #5a6470;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--green);
}

.nav a[aria-current="page"] {
  color: var(--green);
  font-weight: 600;
}

.header__cta {
  color: var(--green);
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}

/* ===== 横幅 ===== */
.banner {
  line-height: 0;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 内容区块 ===== */
.intro {
  padding: 34px 0 6px;
}

.intro h1 {
  margin-bottom: 10px;
  font-size: 22px;
}

.intro p {
  line-height: 1.9;
}

.section {
  margin-top: 26px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.section p {
  line-height: 1.9;
}

.section ul {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.9;
}

.section li {
  margin-bottom: 3px;
}

/* ===== APP 下载 ===== */
.app {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin-top: 14px;
}

.app__text {
  flex: 1 1 420px;
}

.app__qr {
  flex: 0 0 auto;
  text-align: center;
}

.app__qr img {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.app__qr span {
  font-size: 12px;
}

.legal-note {
  margin-top: 14px;
  color: #9aa1a9;
  font-size: 12.5px;
}

.legal-note a {
  color: var(--green);
  text-decoration: none;
}

.legal-note a:hover {
  text-decoration: underline;
}

/* ===== 联系方式 ===== */
.contact dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  margin: 14px 0 0;
  font-size: 14px;
}

.contact dt {
  color: #9aa1a9;
}

.contact dd {
  margin: 0;
  color: #4b5563;
}

.contact a {
  color: var(--green);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* ===== 页脚 ===== */
.site-footer {
  margin-top: 40px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12.5px;
}

.footer-links {
  margin-bottom: 6px;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green);
  text-decoration: underline;
}

.site-footer .sep {
  margin: 0 8px;
  color: rgba(0, 0, 0, 0.18);
}

.site-footer p + p {
  margin-top: 5px;
}

/* ===== 协议 / 政策页 ===== */
.page-head {
  padding: 32px 0 0;
}

.page-head h1 {
  font-size: 24px;
}

.page-head p {
  margin-top: 6px;
  color: #9aa1a9;
  font-size: 13px;
}

.legal {
  padding: 24px 0 10px;
}

.legal h2 {
  margin: 26px 0 8px;
  font-size: 16px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  color: #5a6470;
  font-size: 14px;
  line-height: 1.9;
}

.legal p + p {
  margin-top: 8px;
}

.legal ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 3px;
}

.legal .note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f8;
  font-size: 13px;
}

.legal__meta {
  margin: 6px 0 20px;
  color: #9aa1a9;
  font-size: 12.5px;
}

.contact-line {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  line-height: 1.9;
}

/* ===== 响应式 ===== */
@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .header__cta {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .wrap,
  .container {
    width: calc(100% - 32px);
  }

  .intro {
    padding-top: 26px;
  }

  .app {
    gap: 20px;
  }

  .app__qr {
    width: 100%;
  }

  .contact dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact dt {
    margin-top: 10px;
  }

  .contact dd {
    margin-top: 2px;
  }

  .site-footer .sep {
    margin: 0 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
