/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

:root {
  --primary: #1a5f9e;
  --secondary: #2c8ce0;
  --accent: #ff6b00;
  --light: #f8f9fa;
  --dark: #343a40;
  --gray: #6c757d;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-accent {
  background-color: var(--accent);
}

.btn-accent:hover {
  background-color: #ff8c3a;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent);
  margin: 15px auto 0;
}

/* 导航栏样式 - 美化版 */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  color: white;
}

.logo-icon {
  font-size: 1.8rem;
  margin-right: 10px;
  color: white;
}

.logo h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.logo h1.short {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links > li {
  position: relative;
  margin-left: 20px;
}

.nav-links > li > a {
  font-weight: 600;
  color: white;
  position: relative;
  padding: 10px 0;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.mobile-menu:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 首页横幅样式 - 响应式 */
.hero {
  background: linear-gradient(rgba(26, 95, 158, 0.75), rgba(26, 95, 158, 0.8)),
    url('../img/banner.avif');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 150px 0 100px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* 公司简介样式 - 优化版 */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text {
  width: 100%;
}

.about-text h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--gray);
  line-height: 1.8;
}

/* 组织结构样式 - 紧凑架构图 */
.org-chart {
  background-color: var(--light);
}

.org-structure {
  width: 100%;
  padding: 15px 0;
  overflow-x: auto;
}

.org-level {
  display: flex;
  justify-content: center;
}

.org-level-horizon {
  position: absolute;
  left: 100%;
  top: 0;
  display: flex;
  align-items: center;
}

.org-node {
  background-color: white;
  padding: 10px 12px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-width: 120px;
  position: relative;
  transition: all 0.3s ease;
}

.org-node:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.org-node.primary {
  background-color: var(--primary);
  color: white;
}

.org-node.secondary {
  background-color: var(--secondary);
  color: white;
}

.org-node.accent {
  background-color: var(--accent);
  color: white;
}

.org-node h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.org-node p {
  font-size: 0.75rem;
  opacity: 0.9;
}

.line-vertical {
  display: block;
  width: 2px;
  height: 20px;
  margin: 15px auto;
  background-color: var(--gray);
}

.line-horizon {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 15px;
  background-color: var(--gray);
}

/* 第四层样式 */
.org-group {
  display: flex;
  justify-content: center;
}

.org-group ul {
  display: flex;
  flex-shrink: 0;
  gap: 20px;
}

.org-group li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 140px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  writing-mode: vertical-lr;
  letter-spacing: 3px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.org-group li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* 团队风采样式 - 照片墙 */
.team {
  background-color: var(--light);
}

.team-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--gray);
  line-height: 1.8;
}

.team-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.team-photo {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.team-photo:hover {
  transform: translateY(-10px);
}

.team-photo img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-photo:hover img {
  transform: scale(1.1);
}

.team-photo-large {
  grid-column: span 2;
}

.team-photo-large img {
  height: 300px;
}

/* 服务宗旨样式 */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 50px;
  width: 100%;
}

.value-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  background-color: var(--light);
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.value-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.value-item h4 {
  margin: 20px 0 10px;
  color: var(--primary);
  font-size: 1.2rem;
}

/* 经营理念样式 */
.philosophy {
  background-color: var(--light);
}

.philosophy-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.philosophy-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  background-color: white;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.philosophy-item:hover {
  transform: translateY(-10px);
}

.philosophy-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.philosophy-item h4 {
  margin: 20px 0 10px;
  color: var(--dark);
  font-size: 1.2rem;
}

/* 企业资质样式 */
.certificates {
  background-color: var(--light);
}

.certificates-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.certificates-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--gray);
  line-height: 1.8;
}

.certificates-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.certificate-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.certificate-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 主营业务样式 - 响应式 */
.services {
  background-color: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  margin-bottom: 15px;
  color: var(--dark);
  font-size: 1.3rem;
}

.service-content p {
  color: var(--gray);
  line-height: 1.7;
}

/* 联系我们样式 - 优化版 */
.contact {
  background-color: var(--light);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 5px;
  width: 30px;
  flex-shrink: 0;
}

.contact-text h4 {
  margin-bottom: 5px;
  color: var(--dark);
}

.map-container {
  width: 100%;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 页脚样式 - 响应式 */
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: var(--accent);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  font-size: 0.9rem;
}

/* 平板设备样式 */
@media (min-width: 768px) {
  .section-title h2 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 160px 0 110px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .about-content {
    flex-direction: row;
    gap: 50px;
  }

  .values {
    grid-template-columns: repeat(3, 1fr);
  }

  .philosophy-items {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-photo-large {
    grid-column: span 1;
  }

  .certificates-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    flex-direction: row;
    gap: 50px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 桌面设备样式 */
@media (min-width: 992px) {
  .nav-links > li {
    margin-left: 25px;
  }

  .nav-links > li > a {
    font-size: 0.95rem;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  .logo-icon {
    font-size: 2rem;
  }

  .values {
    grid-template-columns: repeat(4, 1fr);
  }

  .philosophy-items {
    grid-template-columns: repeat(5, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-gallery {
    grid-template-columns: repeat(5, 1fr);
  }

  .team-photo-large {
    grid-column: span 1;
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 移动端导航菜单 */
@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--primary);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow-y: auto;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links > li {
    width: 100%;
    margin: 10px 0;
    text-align: center;
  }

  .nav-links > li > a {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 0;
  }

  .mobile-menu {
    display: block;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 60px 0;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .philosophy-items {
    grid-template-columns: 1fr;
  }
}
