/* 易众堂医药馆 - 自定义样式 */

/* 颜色变量定义 - 传统中医古香古色风格 */
:root {
  --primary-green: #2D5A27;        /* 深绿色 - 中药草本色 */
  --primary-gold: #D4AF37;         /* 金色 - 传统贵重色 */
  --light-green: #E8F5E8;          /* 浅绿色 - 清新自然 */
  --cream-white: #F9F7F4;          /* 米白色 - 古朴典雅 */
  --text-dark: #333333;            /* 深灰色 - 文字主色 */
  --text-light: #666666;           /* 浅灰色 - 辅助文字 */
  --traditional-red: #B8860B;      /* 传统金棕色 */
  --sage-green: #9CAF88;           /* 鼠尾草绿 */
  --warm-beige: #F5F5DC;           /* 温暖米色 */
}

/* 全局样式 */
body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--cream-white);
  line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
  background-color: var(--primary-green) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(45, 90, 39, 0.1);
}

.navbar-brand {
  color: white !important;
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-gold) !important;
}

.navbar-toggler {
  border-color: var(--primary-gold);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28212, 175, 55, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 主要按钮样式 */
.btn-primary {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
  color: var(--primary-green);
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #B8941F;
  border-color: #B8941F;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-primary {
  color: var(--primary-green);
  border-color: var(--primary-green);
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 500;
}

.btn-outline-primary:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

/* 英雄区域样式 */
.hero-section {
  background: linear-gradient(135deg, var(--primary-green) 0%, #3A7233 100%);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--primary-gold);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* 卡片样式 */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-header {
  background-color: var(--light-green);
  border-bottom: 2px solid var(--primary-gold);
  font-weight: bold;
  color: var(--primary-green);
}

.service-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.service-title {
  color: var(--primary-green);
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* 时间表样式 */
.schedule-table {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.schedule-table th {
  background-color: var(--primary-green);
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  border: none;
}

.schedule-table td {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.doctor-name {
  font-weight: bold;
  color: var(--primary-green);
  font-size: 1.1rem;
}

.doctor-specialty {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.doctor-time {
  color: var(--primary-gold);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* 联系信息样式 */
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 1.2rem;
}

.contact-info h5 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.contact-info p {
  margin: 0;
  color: var(--text-light);
}

/* 二维码样式 */
.qr-code-section {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.qr-code-section img {
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 页脚样式 */
.footer {
  background-color: var(--primary-green);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer h5 {
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.footer p, .footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary-gold);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .schedule-table {
    font-size: 0.9rem;
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 预约按钮特殊样式 */
.appointment-btn {
  background: linear-gradient(45deg, var(--primary-gold), #E6C547);
  border: none;
  color: var(--primary-green);
  font-weight: bold;
  font-size: 1.1rem;
  padding: 15px 40px;
  border-radius: 30px;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.appointment-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  background: linear-gradient(45deg, #E6C547, var(--primary-gold));
}

/* 页面标题样式 */
.page-title {
  color: var(--primary-green);
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-green));
  border-radius: 2px;
}

/* 传统中医风格装饰元素 */
.traditional-border {
  border: 2px solid var(--primary-gold);
  border-radius: 8px;
  position: relative;
}

.traditional-border::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid var(--sage-green);
  border-radius: 10px;
  z-index: -1;
}

/* 中医元素装饰 */
.herb-decoration::before {
  content: '🌿';
  font-size: 1.2rem;
  margin-right: 0.5rem;
  opacity: 0.7;
}

.medicine-decoration::before {
  content: '⚕️';
  font-size: 1.2rem;
  margin-right: 0.5rem;
  opacity: 0.7;
}

/* 古典纹理背景 */
.classical-bg {
  background: linear-gradient(135deg, var(--warm-beige) 0%, var(--cream-white) 100%);
  position: relative;
}

.classical-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(45, 90, 39, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* 传统阴影效果 */
.traditional-shadow {
  box-shadow: 
    0 4px 8px rgba(45, 90, 39, 0.1),
    0 2px 4px rgba(212, 175, 55, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 古典按钮样式增强 */
.btn-traditional {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--traditional-red) 100%);
  border: none;
  color: white;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 25px;
  box-shadow: 
    0 4px 15px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-traditional::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-traditional:hover::before {
  left: 100%;
}

.btn-traditional:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(212, 175, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}