/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
  background-color: #1a3c6c;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
}

.navbar-nav {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 首页轮播图样式 */
.carousel {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 20%;
  left: 10%;
  right: 10%;
  color: white;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 8px;
}

.carousel-caption h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* 主要内容区域 */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* 关于我们部分 */
.about-section {
  background-color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a3c6c;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background-color: #1a3c6c;
  margin: 0.5rem auto;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 业务领域样式 */
.services-section {
  background-color: #f0f5ff;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-icon {
  font-size: 2.5rem;
  color: #1a3c6c;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1a3c6c;
}

/* 团队成员样式 */
.team-section {
  background-color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid #1a3c6c;
}

.member-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1a3c6c;
}

.member-position {
  color: #666;
  margin-bottom: 1rem;
  font-weight: 500;
}

.member-bio {
  font-size: 0.9rem;
  color: #555;
}

/* 新闻资讯样式 */
.news-section {
  background-color: #f8f9fa;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.news-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1a3c6c;
}

.news-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.news-excerpt {
  color: #555;
  margin-bottom: 1rem;
}

.news-link {
  color: #1a3c6c;
  text-decoration: none;
  font-weight: 500;
}

.news-link:hover {
  text-decoration: underline;
}

/* 新闻列表项样式 */
.news-item {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.news-image-large {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.news-content-wrapper {
  padding: 1.5rem;
}

.news-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.news-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1a3c6c;
}

.news-title a {
  color: inherit;
  text-decoration: none;
}

.news-title a:hover {
  text-decoration: underline;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.news-body {
  margin: 1rem 0;
}

.news-excerpt {
  color: #555;
  line-height: 1.6;
}

.news-actions {
  text-align: right;
  margin-top: 1rem;
}

.news-divider {
  border: none;
  height: 1px;
  background-color: #eee;
  margin: 2rem 0;
}

.no-news-message {
  text-align: center;
  padding: 3rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 联系我们样式 */
.contact-section {
  background-color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info, .contact-form {
  padding: 2rem;
}

.contact-info h3, .contact-form h3 {
  color: #1a3c6c;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-icon {
  font-size: 1.25rem;
  color: #1a3c6c;
  margin-right: 1rem;
  min-width: 24px;
}

.contact-text {
  color: #555;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: #1a3c6c;
  box-shadow: 0 0 0 2px rgba(26, 60, 108, 0.2);
}

.btn {
  background-color: #1a3c6c;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #0d2a4a;
}

/* 页脚样式 */
.footer {
  background-color: #1a3c6c;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  color: white;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  
  .navbar-nav {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .carousel {
    height: 300px;
  }
  
  .carousel-caption h2 {
    font-size: 1.5rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

/* 后台管理页面样式 */
.admin-sidebar {
  min-height: 100vh;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
  width: 250px;
  position: fixed;
  top: 0;
  left: 0;
  padding: 70px 15px 15px;
}

.admin-sidebar h4 {
  color: #1a3c6c;
  text-align: center;
  margin-bottom: 2rem;
}

.admin-sidebar ul {
  list-style: none;
  padding: 0;
}

.admin-sidebar li {
  margin-bottom: 0.5rem;
}

.admin-sidebar a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background-color: #1a3c6c;
  color: white;
}

.admin-content {
  margin-left: 250px;
  padding: 2rem 0;
}

.admin-content .container {
  padding: 0 15px;
}

.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  background-color: white;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #1a3c6c;
  box-shadow: 0 0 0 2px rgba(26, 60, 108, 0.2);
}

.btn-admin {
  background-color: #1a3c6c;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.btn-admin:hover {
  background-color: #0d2a4a;
  color: white;
}

.btn-outline-secondary {
  background-color: transparent;
  border: 1px solid #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: white;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background-color: white;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.table tr:hover {
  background-color: #f8f9fa;
}

.card {
  background-color: white;
  border: 1px solid rgba(0,0,0,0.125);
  border-radius: 0.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.card-body {
  padding: 1.5rem 1.5rem;
}

.card-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card-text {
  margin-bottom: 1rem;
}

.navbar-admin {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 0 15px;
  display: flex;
  align-items: center;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mb-3 {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    height: auto;
    min-height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
  }

  .admin-content {
    margin-left: 0;
    padding-top: 0;
  }

  .admin-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .admin-sidebar li {
    margin: 0.25rem;
  }

  .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* 德善荣誉样式 */
.honors-section {
  background-color: #f0f5ff;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.honors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.honor-item {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.honor-item:hover {
  transform: translateY(-5px);
}

.honor-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.honor-image {
  width: 200;
  height: 180px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 1rem;
}

.honor-description {
  color: #555;
  margin-bottom: 0.5rem;
}

.honor-date {
  color: #999;
  font-size: 0.8rem;
}

.no-data {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-style: italic;
}

/* 德善客户样式 */
.clients-section {
  background-color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.client-item {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.client-item:hover {
  transform: translateY(-5px);
}

.client-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.client-image {
  width: 120px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 1rem;
}

.client-industry {
  color: #666;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.client-description {
  color: #555;
}
