/* 咸宁恒生泌尿专科门诊部网站样式 */
:root {
  --primary-color: #1976d2;
  --secondary-color: #0d47a1;
  --accent-color: #42a5f5;
  --light-color: #e3f2fd;
  --dark-color: #002171;
  --text-color: #333;
  --light-text: #fff;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

/* 头部导航 */
.navbar {
  box-shadow: var(--box-shadow);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: bold;
  color: var(--light-text) !important;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 0 5px;
  transition: var(--transition);
  border-radius: var(--border-radius);
  padding: 8px 15px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--light-text) !important;
  background-color: rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-item {
  margin-left: 5px;
}

.navbar-nav .nav-link {
  font-size: 1.2rem;
}

/* 主要标题区域 */
.hero-section {
  background: linear-gradient(rgba(25, 118, 210, 0.85), rgba(13, 71, 161, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%231976d2"/><path d="M20,20 Q50,5 80,20 T80,80 Q50,95 20,80 T20,20 Z" fill="none" stroke="white" stroke-width="0.5"/></svg>');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn-primary-custom {
  background-color: var(--accent-color);
  border: none;
  padding: 10px 25px;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary-custom:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* 版块样式 */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--secondary-color);
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 10px auto;
  border-radius: 2px;
}

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-bottom: 2rem;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  font-weight: bold;
  border: none;
}

.icon-box {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--light-color);
  height: 100%;
}

.icon-box i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* 新闻板块 */
.news-card {
  border-left: 4px solid var(--accent-color);
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.news-date {
  color: var(--accent-color);
  font-weight: bold;
}

/* 联系方式 */
.contact-card {
  background: linear-gradient(135deg, var(--light-color), #bbdefb);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.email-list li {
  margin-bottom: 10px;
  padding: 8px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 页脚 */
.footer {
  background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
  color: white;
  padding: 2rem 0;
  text-align: center;
}

/* 页面标题 */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  text-align: center;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
}

/* 内容区块 */
.content-block {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: #fff;
  box-shadow: var(--box-shadow);
}

/* FAQ样式 */
.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.faq-question {
  background: linear-gradient(to right, var(--light-color), #bbdefb);
  padding: 1rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

.faq-question:after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 20px;
  transition: var(--transition);
}

.faq-question.collapsed:after {
  content: '\f077';
}

.faq-answer {
  padding: 1.5rem;
  background: #f8f9fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 2rem 0;
  }

  .card {
    margin-bottom: 1.5rem;
  }

  .navbar-nav {
    text-align: center;
  }
}