/* ============================================
   西安智靓软件科技有限公司 - 企业官网样式
   参考设计：白底蓝主色 · 简洁商务风
   ============================================ */

:root {
  --primary: #1E60FF;
  --primary-dark: #1850d9;
  --primary-light: #eef3ff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --text-light: #999999;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --border: #e8e8e8;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --radius-lg: 12px;
  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- 导航 ---- */
.navbar {
  height: var(--nav-height);
  padding: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0;
  color: var(--text);
}

.brand-icon {
  display: flex;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .brand-name {
    font-size: 0.8125rem;
    max-width: 180px;
    white-space: normal;
    line-height: 1.3;
  }
}

.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.9375rem;
  padding: 0.5rem 1.125rem !important;
  position: relative;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link.active {
  color: var(--primary) !important;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.navbar-toggler {
  border-color: var(--border);
  padding: 0.375rem 0.5rem;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
  }

  .nav-link.active::after {
    display: none;
  }
}

/* ---- 按钮 ---- */
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
  border-radius: var(--radius);
  font-weight: 500;
  padding: 0.625rem 1.75rem;
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-light);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-hover-color: var(--primary);
  --bs-btn-active-bg: var(--primary-light);
  --bs-btn-active-border-color: var(--primary);
  --bs-btn-active-color: var(--primary);
  border-radius: var(--radius);
  font-weight: 500;
  padding: 0.625rem 1.75rem;
}

.text-primary {
  color: var(--primary) !important;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1920&q=80");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.88) 35%,
    rgba(238, 243, 255, 0.75) 60%,
    rgba(255, 255, 255, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + 4rem) 0 5rem;
  max-width: 560px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 575.98px) {
  .hero {
    min-height: 460px;
  }

  .hero-content {
    padding-bottom: 3.5rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

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

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.625rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ---- 服务卡片 ---- */
.section-services {
  background: var(--bg);
}

.service-card {
  height: 100%;
  padding: 2rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: var(--radius);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-icon-ai span {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.875rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 1.25rem;
}

.service-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
}

.service-link:hover {
  color: var(--primary-dark);
}

/* ---- 关于我们 ---- */
.section-about {
  background: var(--bg-alt);
}

.about-intro {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-icon svg {
  width: 36px;
  height: 36px;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.375rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 991.98px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }
}

/* ---- 联系我们 ---- */
.section-contact {
  background: var(--bg);
  padding-bottom: 4rem;
}

.contact-intro {
  max-width: 520px;
  margin: 0.75rem auto 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- 页脚 ---- */
.site-footer {
  padding: 3rem 0 2rem;
  background: #0a1628;
  color: rgba(255, 255, 255, 0.85);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  flex: 1;
}

.footer-company {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem;
}

.footer-slogan {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0.25rem 0 0;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 1.5rem;
}

.footer-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 0.5rem;
}

.footer-bar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
}

.footer-email,
.footer-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-email {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.65);
}

.footer-email a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-email a:hover {
  color: #fff;
}

.footer-bar-split {
  width: 100%;
  max-width: 320px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.footer-address {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.footer-bar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;
  text-align: right;
  flex-shrink: 0;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.footer-icp,
.footer-psb {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  line-height: 1.5;
}

.footer-icp a,
.footer-psb a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.footer-icp a:hover,
.footer-psb a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.psb-icon {
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-bar-right {
    align-items: flex-start;
    text-align: left;
  }

  .footer-bar-split {
    max-width: 100%;
  }
}

/* ---- 返回顶部 ---- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.back-to-top[hidden] {
  display: none;
}

/* ---- 入场动画 ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  .fade-in {
    animation: none !important;
    transition: none !important;
  }
}
