:root {
  --primary: #1a6fc4;
  --primary-dark: #145a9e;
  --accent: #e94e3d;
  --text: #333;
  --text-light: #666;
  --bg: #f8fafc;
  --card-bg: #fff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 36px 24px 32px;
  text-align: center;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 50%;
  padding: 10px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}

header p {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 640px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.05rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(26, 111, 196, 0.08);
}

.nav-links a.active {
  color: #fff;
  background: var(--primary);
}

.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  margin-bottom: 48px;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(20, 90, 158, 0.86) 0%, rgba(26, 111, 196, 0.72) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 24px;
}

.page-hero h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.95;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

section {
  margin-bottom: 48px;
}

section:last-child {
  margin-bottom: 0;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: inline-block;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.page-hero h2::after {
  display: none;
}

.intro p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 16px;
}

.intro p:last-child {
  margin-bottom: 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-item {
  background: var(--bg);
  border-radius: 10px;
  padding: 24px;
  border-left: 4px solid var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  background: #fff;
}

.service-item h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.service-item p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-item .label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.info-item .value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.img-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card-bg);
}

.img-card img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.lead-text {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

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

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  header h1 {
    font-size: 1.45rem;
  }

  .page-hero h2 {
    font-size: 1.6rem;
  }

  .card {
    padding: 24px;
  }

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

  .nav-inner {
    gap: 8px;
    padding: 0 12px;
    overflow-x: auto;
  }

  .nav-brand {
    display: none;
  }

  .nav-links {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}
