/* 通用样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 头部导航样式 */
.header {
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: relative;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 80px;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
}

.mobile-menu-btn .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: 0.4s;
}

.nav ul {
  list-style: none;
  display: flex;
}

.nav li {
  margin: 0 15px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-size: 19px;
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: #c0392b;
}

/* banner 样式 */
.banner {
  background: url("../images/banner.jpg") no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 380px 0;
  text-align: center;
}

.banner h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.banner p {
  font-size: 16px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #c0392b;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #a52c20;
}

/* 通用 section 标题样式 */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.section-title p {
  font-size: 16px;
  color: #777;
}

/* 道医核心特点/理念 样式 */
.core-feature {
  padding: 60px 0;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.feature-item {
  width: 32%;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  transition: box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.feature-item:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.feature-item img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* 道医服务 样式 */
.service {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.service-item {
  width: 48%;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease;
}

.service-item:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* 经典案例 样式 */
.case {
  padding: 60px 0;
}

.case-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.case-item {
  width: 48%;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.case-item img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
}

.case-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* 关于我们 样式 */
.about {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 20px;
  text-align: justify;
}

/* 登录 样式 */
.login {
  padding: 60px 0;
  text-align: center;
}

.login-form {
  max-width: 400px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.login-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

/* 底部 footer 样式 */
.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 30px 0;
}

.footer p {
  margin-bottom: 10px;
}

/* 移动端响应式样式 */
@media screen and (max-width: 768px) {
  .container {
    max-width: 100%;
  }

  .logo img {
    height: 60px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 15px 0;
  }

  .nav li {
    margin: 10px 15px;
  }

  .banner {
    padding: 120px 0;
  }

  .banner h1 {
    font-size: 28px;
  }

  .feature-item,
  .service-item,
  .case-item {
    width: 100%;
  }

  .section-title h2 {
    font-size: 24px;
  }
}