/* 有明中医网站样式表 - 基于用户设计要求重构 */

/* CSS变量定义 */
:root {
  --primary-red: #c0392b;
  --primary-red-dark: #a93226;
  --primary-green: #27ae60;
  --primary-green-dark: #1e8449;
  --white: #ffffff;
  --black: #333333;
  --gray-light: #f5f5f5;
  --gray: #999999;
  --gray-dark: #666666;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* 通用容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部黑色条 */
.top-bar {
  background: #2b2c31;
  height: 36px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
}

.welcome-text {
  color: #82868e;
  font-size: 13px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.share-link {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.share-link img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.share-link:hover img {
  opacity: 1;
}

/* 顶部导航 */
.header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 16px;
  color: var(--black);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-red);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--primary-red);
}

/* Banner区域 */
.banner {
  padding-top: 106px;
  position: relative;
  overflow: hidden;
}

.banner-bg {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
}

.banner-image {
  position: relative;
  width: 100%;
  z-index: 1;
  display: block;
  line-height: 0;
}

.doctor-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Banner内容层 */
.banner-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 60px;
}

.banner-title {
  font-size: 72px;
  font-weight: bold;
  color: var(--primary-red);
  margin-bottom: 20px;
  letter-spacing: 5px;
}

.banner-title .divider {
  color: var(--black);
  font-weight: normal;
  margin: 0 5px;
}

.banner-subtitle {
  font-size: 28px;
  color: var(--black);
  margin-bottom: 20px;
}

/* 预约咨询浮动按钮 - 右下角 */
.btn-consult-float {
  position: absolute;
  bottom: 30px;
  right: 60px;
  display: inline-block;
  background: var(--primary-red);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 500;
  transition: var(--transition);
  z-index: 20;
}

.btn-consult-float:hover {
  background: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* 滚动公告栏 */
.scroll-notice {
  background: var(--white);
  height: 70px;
  border-bottom: 1px solid #eee;
}

.scroll-notice-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.notice-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.notice-scroll {
  flex: 1;
  overflow: hidden;
  height: 30px;
}

.notice-list {
  list-style: none;
  animation: scrollNotice 9s linear infinite;
}

.notice-list li {
  height: 30px;
  line-height: 30px;
}

.notice-list li a {
  color: var(--black);
  font-size: 15px;
  transition: var(--transition);
}

.notice-list li a:hover {
  color: var(--primary-red);
}

@keyframes scrollNotice {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-180px);
  }
}

.notice-more {
  flex-shrink: 0;
  color: var(--primary-green);
  font-size: 14px;
}

.notice-more:hover {
  color: var(--primary-green-dark);
}.btn-consult {
  display: inline-block;
  background: var(--primary-red);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-consult:hover {
  background: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.banner-right {
  text-align: right;
}

.voice-notice {
  background: var(--white);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-icon {
  font-size: 20px;
}

.voice-text {
  font-size: 14px;
  color: var(--black);
}

.view-more {
  color: var(--primary-green);
  font-size: 14px;
}

.view-more:hover {
  color: var(--primary-green-dark);
}

/* 通用板块样式 */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 36px;
  color: var(--primary-red);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--gray);
}

.section-decor {
  display: block;
  font-size: 16px;
  color: var(--gray);
  letter-spacing: 4px;
  margin-bottom: 8px;
  font-style: italic;
}

.section-more {
  text-align: center;
  margin-top: 40px;
}

.view-more-link {
  color: var(--primary-green);
  font-size: 14px;
}

.view-more-link:hover {
  color: var(--primary-green-dark);
}

.view-more-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  border-radius: 4px;
  font-size: 14px;
  transition: var(--transition);
}

.view-more-btn:hover {
  background: var(--primary-green);
  color: var(--white);
}

/* 栏目列表页样式 */
.page-header {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  padding: 16px 0;
  text-align: left;
  margin-top: 106px; /* 避开固定导航栏: top(36px) + height(70px) */
}

.page-title {
  font-size: 36px;
  color: var(--primary-red);
  margin-bottom: 10px;
}

.page-breadcrumb {
  font-size: 14px;
  color: #fff;
  opacity: 0.9;
}

.page-breadcrumb a {
  color: var(--gray);
}

.page-breadcrumb a:hover {
  color: var(--primary-red);
}

.category-section {
  padding: 60px 0;
}

.category-article-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.category-article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  background: var(--gray-light);
  border-radius: 8px;
  transition: var(--transition);
  gap: 12px;
}

.category-article-item:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.category-article-title {
  font-size: 15px;
  color: var(--black);
  flex: 1;
  line-height: 1.5;
  text-decoration: none;
  transition: var(--transition);
}

.category-article-title:hover {
  color: var(--primary-green);
}

/* 按钮组 */
.article-btn-group {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.article-btn {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-local {
  background: var(--primary-green);
  color: #fff;
  border: 1px solid var(--primary-green);
}

.btn-local:hover {
  background: var(--primary-green-dark);
  border-color: var(--primary-green-dark);
}

.btn-weixin {
  background: #fff;
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
}

.btn-weixin:hover {
  background: var(--primary-green);
  color: #fff;
}

/* 就诊指南板块 */
.guide-section {
  background: var(--gray-light);
}

.tag-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  position: relative;
  z-index: 100;
}

.tag-btn {
  padding: 10px 30px;
  background: var(--white);
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-dark);
}

.tag-btn:hover {
  background: var(--primary-green);
  color: var(--white);
}

.tag-btn.active {
  background: var(--primary-green);
  color: var(--white);
}

.guide-content {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: fadeIn 0.3s ease;
  position: relative;
  z-index: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-left {
  flex: 1;
}

.guide-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  margin-bottom: 15px;
  background: var(--white);
  border-radius: 8px;
  transition: var(--transition);
}

.guide-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.guide-icon {
  font-size: 24px;
}

.guide-text {
  font-size: 16px;
  color: var(--black);
}

.guide-right {
  flex: 1;
  text-align: center;
  position: relative;
}

.guide-right .view-more-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  z-index: 2;
}

.guide-img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* 专家团队板块 */
.team-section {
  background: var(--white);
  padding-top: 60px;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.expert-card {
  display: block;
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  color: inherit;
  text-decoration: none;
}

.expert-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.expert-avatar {
  width: 216px;
  height: 216px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-green);
}

.expert-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-name {
  font-size: 22px;
  color: var(--black);
  margin-bottom: 8px;
}

.expert-title {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 15px;
}

.expert-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  padding: 0 15px;
}

.expert-title {
  font-size: 14px;
  color: var(--gray);
}

/* 活动公告板块 */
.activity-section {
  background: var(--white);
  padding: 10px 0;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.activity-title {
  font-size: 24px;
  color: var(--black);
}

.activity-banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.activity-img {
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  display: block;
}

.activity-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
}

.activity-name {
  font-size: 32px;
  margin-bottom: 10px;
}

.activity-desc {
  font-size: 18px;
  margin-bottom: 5px;
}

.activity-sub {
  font-size: 14px;
  opacity: 0.8;
}

/* 非遗传奇板块 */
.heritage-section {
  background: var(--white);
}

/* 非遗传奇板块 - 三列布局 */
.heritage-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.heritage-articles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 350px;
}

.heritage-article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: var(--gray-light);
  border-radius: 6px;
  transition: var(--transition);
}

.heritage-article-item:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.heritage-article-title {
  font-size: 14px;
  color: var(--black);
  flex: 1;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  max-width: 100%;
}

.heritage-article-arrow {
  color: var(--primary-green);
  font-weight: bold;
  margin-left: 10px;
  flex-shrink: 0;
}

.heritage-photo {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.heritage-img {
  width: 280px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* 患者见证板块 */
.testimonials-section {
  background: var(--gray-light);
}

.patients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.patient-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: block;
}

.patient-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.patient-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.patient-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.patient-info {
  padding: 15px;
  text-align: center;
}

.patient-info h4 {
  font-size: 16px;
  color: var(--primary-red);
  margin-bottom: 8px;
}

.patient-info p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}
  background: var(--primary-green);
  color: var(--white);
}

.testimonial-icon {
  font-size: 36px;
}

.testimonial-text {
  font-size: 14px;
}

/* 骨科知识板块 */
.knowledge-section {
  background: var(--white);
}

/* 左右分栏布局 */
.knowledge-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.knowledge-column-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-green-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-green);
}

.knowledge-column-simple {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.knowledge-column-text {
  flex: 1;
}

.knowledge-column-more {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

/* 骨科知识按钮容器 */
.knowledge-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

/* 旧的两列网格样式（保留兼容） */
.knowledge-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 30px;
}

.knowledge-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--gray-light);
  border-radius: 8px;
  transition: var(--transition);
}

.knowledge-item:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.knowledge-text {
  color: var(--gray-dark);
  font-size: 15px;
}

.knowledge-link {
  color: var(--primary-green);
  font-size: 14px;
}

.knowledge-link:hover {
  color: var(--primary-green-dark);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .knowledge-split-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .knowledge-column {
    padding: 20px;
  }
  
  .knowledge-column-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
}

.loading-text {
  text-align: center;
  color: var(--gray);
  padding: 40px;
}

/* 媒体报道板块 */
.media-section {
  background: var(--gray-light);
}

/* 上方文字链接区块 */
.media-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.media-links-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.media-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--white);
  border-radius: 8px;
  transition: var(--transition);
}

.media-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--white);
  border-radius: 8px;
  transition: var(--transition);
  gap: 15px;
}

.media-link-item:hover {
  background: var(--primary-green);
}

.media-link-title {
  font-size: 15px;
  color: var(--black);
  flex: 1;
  line-height: 1.5;
  transition: var(--transition);
}

.media-link-item:hover .media-link-title {
  color: var(--white);
}

/* 媒体报道区块也复用 article-btn-group 样式 */
.media-link-item .article-btn-group {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* hover 时按钮保持自身颜色不变 */
.media-link-item:hover .article-btn {
  background: var(--white) !important;
  color: var(--primary-green) !important;
  border-color: var(--white) !important;
}

.media-link-arrow {
  color: var(--primary-green);
  font-weight: bold;
}

.media-link-item:hover .media-link-arrow {
  color: var(--white);
}

/* 媒体LOGO网格 - 井字格 */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-top: 1px solid #e0e0e0;
  border-left: 1px solid #e0e0e0;
}

.media-item {
  background: transparent;
  text-align: center;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  overflow: hidden;
}

.media-item:hover {
  background: #fafafa;
}

.media-logo-img {
  width: 249px;
  height: 109px;
  object-fit: contain;
  transition: all 0.3s ease;
  backface-visibility: visible;
}

/* 鼠标悬浮特效 - flipInY 翻转 */
.media-item:hover .media-logo-img {
  animation: flipInY 0.8s ease-in forwards;
}

/* 点击特效 */
.media-item:active .media-logo-img {
  animation: flipInY 0.4s ease-in;
}

@keyframes flipInY {
  0% {
    transform: perspective(400px) rotateY(90deg);
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotateY(-20deg);
  }
  60% {
    transform: perspective(400px) rotateY(10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotateY(-5deg);
  }
  100% {
    transform: perspective(400px) rotateY(0);
  }
}

/* 页脚 */
.footer {
  background: var(--primary-red);
  color: var(--white);
  padding: 30px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-icon,
.qr-icon {
  font-size: 20px;
}

.phone-number,
.qr-text {
  font-size: 14px;
}

.copyright {
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
  }

  .menu-toggle {
    display: flex;
  }

  .banner-title {
    font-size: 48px;
  }

  .experts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 通知公告板块响应式 */
  .activity-img {
    aspect-ratio: 16 / 9;
  }

  .activity-info {
    padding: 20px;
  }

  .activity-name {
    font-size: 24px;
  }

  .activity-desc {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .header {
    top: 0;
  }

  .banner {
    padding-top: 70px;
    min-height: auto;
  }

  .banner-bg {
    /* 高度随图片自适应 */
  }

  .banner-image {
    position: relative;
    width: 100%;
    height: auto;
  }

  .doctor-img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .banner-content {
    flex-direction: column;
    padding: 30px 20px;
    min-height: auto;
  }

  .banner-title {
    font-size: 36px;
  }

  .banner-subtitle {
    font-size: 18px;
  }

  .btn-consult-float {
    bottom: 20px;
    right: 20px;
    padding: 12px 30px;
    font-size: 16px;
  }

  .guide-content {
    flex-direction: column;
  }

  .section-title {
    font-size: 28px;
  }

  .experts-grid {
    grid-template-columns: 1fr;
  }

  /* 非遗传奇移动端 - 纵向排列 */
  .heritage-content {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .heritage-photo {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .heritage-img {
    width: 220px;
    max-width: 70%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .heritage-articles {
    width: 100%;
  }

  /* 移动端隐藏部分文章标题 */
  .heritage-left .heritage-article-item:nth-child(6),
  .heritage-right .heritage-article-item:nth-child(6) {
    display: none;
  }

  /* 患者见证移动端优化 */
  .patients-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .patient-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  .patient-photo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    aspect-ratio: auto;
  }

  .patient-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .patient-info {
    flex: 1;
    text-align: left;
    padding: 12px 15px;
  }

  .patient-info h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--primary-red);
  }

  .patient-info p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 通知公告板块移动端适配 */
  .activity-img {
    aspect-ratio: 4 / 3;
  }

  .activity-info {
    padding: 15px;
  }

  .activity-name {
    font-size: 20px;
  }

  .activity-desc {
    font-size: 14px;
  }

  .activity-sub {
    font-size: 12px;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tag-tabs {
    flex-wrap: wrap;
  }

  .tag-btn {
    padding: 8px 20px;
    font-size: 12px;
  }

  .banner-title {
    font-size: 28px;
  }

  .heritage-img {
    width: 160px;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-item {
    height: 100px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .media-item:last-child {
    border-bottom: none;
  }

  .media-logo-img {
    width: 200px;
    height: 88px;
  }

  /* 通知公告板块超小屏幕适配 */
  .activity-img {
    aspect-ratio: 16 / 10;
  }

  .activity-info {
    padding: 12px;
  }

  .activity-name {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .activity-desc {
    font-size: 13px;
  }

   .activity-sub {
    font-size: 11px;
  }

  /* 移动端文章按钮组 */
  .category-article-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .category-article-title {
    flex-basis: 100%;
  }

  .article-btn-group {
    width: 100%;
    justify-content: flex-end;
  }

  .article-btn {
    font-size: 12px;
    padding: 3px 10px;
  }
 }

/* ============================================
   首页背景美化样式 - 2026-03-23
   三合一方案：渐变光影 + 几何点缀 + 分区差异化
   ============================================ */

/* 就诊指南板块 - 温暖渐变 + 圆形装饰 */
.guide-section {
  background: linear-gradient(180deg, #f8f8f8 0%, #fdf6f0 50%, #f5f5f5 100%);
  position: relative;
  overflow: hidden;
}

.guide-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.guide-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

/* 专家团队板块 - 清新渐变 + 浮动方块 */
.team-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8faf8 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.team-section::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 5%;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
  opacity: 0.08;
  transform: rotate(15deg);
}

.team-section::after {
  content: '';
  position: absolute;
  bottom: 40px;
  right: 8%;
  width: 60px;
  height: 60px;
  border: 2px solid var(--primary-red);
  opacity: 0.1;
  transform: rotate(45deg);
}

/* 活动公告板块 - 活力渐变 */
.activity-section {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f5 100%);
  position: relative;
}

.activity-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 57, 43, 0.1), transparent);
}

/* 非遗传奇板块 - 古典渐变 + 竖线装饰 */
.heritage-section {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f5 50%, #f5f0eb 100%);
  position: relative;
  overflow: hidden;
}

.heritage-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-red), var(--primary-red-dark), transparent);
  opacity: 0.3;
}

.heritage-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--primary-red), var(--primary-red-dark));
  opacity: 0.3;
}

/* 患者见证板块 - 柔和渐变 + 圆形光斑 */
.testimonials-section {
  background: linear-gradient(180deg, #f5f5f5 0%, #f0f7f5 30%, #f8f8f8 70%, #f5f5f5 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(39, 174, 96, 0.05) 0%, transparent 70%);
}

/* 骨科知识板块 - 清新渐变 */
.knowledge-section {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8f5 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.knowledge-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39, 174, 96, 0.15), transparent);
}

/* 媒体报道板块 - 专业渐变 + 方块点缀 */
.media-section {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 30%, #fafafa 100%);
  position: relative;
  overflow: hidden;
}

.media-section::before {
  content: '';
  position: absolute;
  top: 15px;
  right: 10%;
  width: 8px;
  height: 8px;
  background: var(--primary-red);
  opacity: 0.2;
  box-shadow: 20px 0 0 var(--primary-red), 40px 0 0 var(--primary-red);
  opacity: 0.15;
}

.media-section::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 5%;
  width: 6px;
  height: 6px;
  background: var(--primary-green);
  opacity: 0.2;
  box-shadow: 15px 0 0 var(--primary-green), 30px 0 0 var(--primary-green);
}

/* 滚动公告栏 - 添加微妙渐变 */
.scroll-notice {
  background: linear-gradient(180deg, #ffffff 0%, #fefefe 100%);
  height: 70px;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* Banner区域 - 增强渐变 */
.banner-bg {
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 30%, #fcf8f5 70%, #f5f5f5 100%);
}

/* 通用板块标题样式增强 */
.section-header {
  position: relative;
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::before,
.section-title::after {
  display: none;
}

/* 卡片悬浮效果增强 */
.patient-card,
.expert-card,
.heritage-article-item,
.knowledge-item {
  transition: all 0.3s ease;
}

.patient-card:hover,
.expert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
