/* 全局样式 */
:root {
  --primary-color: #0056b3;
  --secondary-color: #6c757d;
  --accent-color: #ffc107;
  --text-color: #333;
  --light-bg: #f8f9fa;
}

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.custom-navbar {
  background-color: #ffffff !important;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.custom-navbar .navbar-brand {
  font-weight: 600;
  color: #2c3e50 !important;
  font-size: 1.6rem;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.custom-navbar .navbar-nav .nav-link {
  color: #2c3e50 !important;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.25rem !important;
  margin: 0 0.25rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

.custom-navbar .navbar-nav .nav-link:hover {
  color: #0056b3 !important;
  background-color: #f8f9fa;
  transform: translateY(-1px);
}

.custom-navbar .navbar-nav .nav-link.active {
  color: #0056b3 !important;
  background-color: #e3f2fd;
  font-weight: 600;
}

.custom-navbar .navbar-toggler {
  border-color: #dee2e6;
  color: #2c3e50;
}

.custom-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.custom-navbar .btn-outline-primary {
  border-color: #0056b3;
  color: #0056b3;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.custom-navbar .btn-outline-primary:hover {
  background-color: #0056b3;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 86, 179, 0.3);
}

/* 响应式导航栏调整 */
@media (max-width: 991.98px) {
  .custom-navbar {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  .custom-navbar .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .custom-navbar .navbar-brand {
    font-size: 1.47rem;
  }
}

/* 页面标题栏样式 */
.page-header {
  background-color: #ffffff !important;
  color: #2c3e50 !important;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
  color: #2c3e50;
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header .lead {
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0;
}

/* 轮播图样式 */
.carousel-item {
  height: 800px;
}

.carousel-item img {
  object-fit: contain;
  height: 100%;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 20px;
}

/* 标题样式 */
.section-title {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* 卡片样式 */
.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

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

/* 按钮样式 */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #004494;
  border-color: #004494;
}

/* 页脚样式 */
footer {
  background-color: #343a40;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-item {
    height: 300px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .page-header {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
}

/* Index页面Rodin背景样式 */
body.index-page {
  background-color: #ffffff;
  position: relative;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 150px,
      rgba(128, 128, 128, 0.02) 150px,
      rgba(128, 128, 128, 0.02) 300px
    );
  background-size: 300px 300px;
}

/* 添加Rodin文字水印层 */
body.index-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 200px,
      rgba(128, 128, 128, 0.015) 200px,
      rgba(128, 128, 128, 0.015) 400px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 200px,
      rgba(128, 128, 128, 0.015) 200px,
      rgba(128, 128, 128, 0.015) 400px
    );
  background-size: 400px 400px;
  pointer-events: none;
  z-index: -1;
}

/* 添加RODIN文字背景 */
body.index-page::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Ctext x='50%25' y='50%25' text-anchor='middle' dominant-baseline='middle' font-family='Arial, sans-serif' font-size='120' font-weight='bold' fill='rgba(128, 128, 128, 0.08)' transform='rotate(45 200 200)'%3ERODIN%3C/text%3E%3C/svg%3E");
  background-size: 400px 400px;
  pointer-events: none;
  z-index: -2;
}

/* 确保内容在背景之上 */
body.index-page .container,
body.index-page .navbar,
body.index-page .carousel {
  position: relative;
  z-index: 1;
}

/* 为卡片和section添加半透明背景 */
body.index-page .card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

body.index-page section {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

body.index-page .bg-light {
  background-color: rgba(248, 249, 250, 0.95) !important;
  backdrop-filter: blur(5px);
} 