/* 全局基础样式 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #111827;
  background-color: #ffffff;
}

/* 颜色与布局 */
:root {
  --color-primary: #2563eb;
  --color-primary-light: #eff6ff;
  --color-border: #e5e7eb;
  --color-text-muted: #6b7280;
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* 头部与导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #111827;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.9rem;
}

.logo-text {
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: #374151;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

/* 区块通用 */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: #f9fafb;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.section-text {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* 首页 Hero */
.hero {
  padding-top: 4.5rem;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.hero-slogan {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--color-primary);
}

.hero-text {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 42rem;
}

/* 服务卡片 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.section-alt .service-card {
  background-color: #ffffff;
}

.service-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.service-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* 联系方式 */
.contact-email {
  margin-top: 1rem;
  font-size: 1rem;
}

.contact-email a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: #ffffff;
}

.footer-inner {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.footer-text {
  margin: 0.1rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* 响应式适配 */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 0.75rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-nav {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}