:root {
  --primary-color: #a60000; /* 中原工学院官方红 (深红) */
  --primary-color-hover: #800000; /* 按钮悬停深红色 */
  --secondary-color: #d4a762; /* 辅助色/金色 (保留作为点缀) */
  --text-color: #333333;
  --bg-color: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏样式 */
nav {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 80px;
}

.nav-logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  height: 50px; /* 适当增加高度以显示清晰 */
  width: auto;
  margin-right: 15px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 40px;
  height: 100%;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  height: 100%;
  display: flex;
  align-items: center;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: white;
}

.nav-links a.active::after {
  width: 100%;
}

/* 汉堡菜单按钮 */
.menu-button {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  padding: 0;
  background-color: var(--primary-color);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
  max-height: 300px;
  padding: 10px 0;
}

.mobile-menu a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* 主要内容样式 */
main {
  min-height: calc(100vh - 300px);
}

main:not(.home-main) {
  padding: 40px 0;
}

/* 工具类 */
.text-center {
  text-align: center;
}

.bg-gray {
  background-color: #f8fafc;
}

.mt-4 {
  margin-top: 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(166, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(166, 0, 0, 0.3);
  color: white;
}

/* 首页全新样式 - Hero Banner */
.hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(100, 0, 0, 0.9) 0%, rgba(166, 0, 0, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 900px;
  padding-top: 50px;
}

.hero-badge {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-transform: uppercase;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-title span {
  font-size: 32px;
  font-weight: 600;
  color: #e0e7ff;
  display: block;
  margin-top: 10px;
}

.hero-orgs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.2);
  padding: 15px 25px;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  backdrop-filter: blur(5px);
}

.hero-orgs .dot {
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
}

/* 亮点卡片区 */
.highlights-section {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  margin-bottom: 60px;
}

.highlight-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.highlight-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.highlight-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--secondary-color);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-icon {
  margin-bottom: 20px;
  line-height: 1;
  display: flex;
  justify-content: center;
  color: var(--primary-color);
}

.card-icon i {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
}

.highlight-card h3 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 15px;
}

.highlight-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

/* 通用区块头部 */
.section-header {
  margin-bottom: 50px;
}

.section-title {
  font-size: 32px;
  color: var(--primary-color);
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.title-line {
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* 项目背景与简介区 */
.about-section {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lead-text {
  font-size: 20px;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 20px;
  border-left: 4px solid var(--secondary-color);
  padding-left: 15px;
}

.about-text p {
  margin-bottom: 15px;
  color: #444;
  font-size: 16px;
  text-align: justify;
}

.about-text strong {
  color: var(--primary-color);
}

.image-grid {
  position: relative;
  height: 400px;
}

.image-grid img {
  position: absolute;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: cover;
  transition: var(--transition);
}

.image-grid .img-1 {
  width: 65%;
  height: 280px;
  top: 0;
  left: 0;
  z-index: 1;
}

.image-grid .img-2 {
  width: 55%;
  height: 240px;
  bottom: 0;
  right: 0;
  z-index: 2;
  border: 8px solid white;
}

.image-grid:hover .img-1 {
  transform: scale(1.02) translate(-5px, -5px);
}

.image-grid:hover .img-2 {
  transform: scale(1.05) translate(5px, 5px);
}

.img-badge {
  position: absolute;
  top: 40px;
  right: 10px;
  background: var(--secondary-color);
  color: white;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3;
  box-shadow: 0 10px 20px rgba(201, 160, 99, 0.4);
  border: 4px solid white;
}

.img-badge .number {
  font-size: 36px;
  font-weight: bold;
  line-height: 1;
}

.img-badge .text {
  font-size: 14px;
  margin-top: 5px;
}

/* 时间轴区块 */
.timeline-section {
  padding: 80px 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50px;
  width: 2px;
  background-color: #e2e8f0;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 100px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 36px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(166, 0, 0, 0.2);
}

.timeline-year::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--secondary-color);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
  background: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
  border: 1px solid #f0f0f0;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 15px;
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent white transparent transparent;
}

.timeline-content:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-color: #e2e8f0;
}

.timeline-content h3 {
  color: var(--primary-color);
  font-size: 20px;
  margin-bottom: 10px;
}

.timeline-content p {
  color: #666;
  line-height: 1.6;
}

/* 旧首页样式已移除 */

/* 页脚样式 */
footer {
  background-color: #333;
  color: #ddd;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-info h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-info p {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-links h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #888;
}

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

/* 子页面通用样式 */
.page-main {
  background-color: #f5f7fa;
  min-height: calc(100vh - 300px);
}

.page-header {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: -40px;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(166, 0, 0, 0.9) 0%, rgba(100, 0, 0, 0.7) 100%);
}

.page-header .container {
  position: relative;
  z-index: 2;
  color: white;
}

.page-title-hero {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.breadcrumb {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.breadcrumb span {
  margin: 0 8px;
}

.breadcrumb .current {
  color: var(--secondary-color);
}

.content-wrapper {
  position: relative;
  z-index: 10;
  margin-bottom: 60px;
}

.content-box {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 30px;
  border-top: 4px solid var(--primary-color);
}

/* 申报书页面特有样式 */
.pdf-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pdf-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.pdf-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-title .icon i {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
}

.pdf-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.4;
}

#pdf-render-container {
  width: 100%;
  max-height: 800px;
  overflow-y: auto;
  background-color: #525659;
  padding: 20px;
  border-radius: 4px;
  display: none;
  flex-direction: column;
  align-items: center;
}

#pdf-render-container canvas {
  max-width: 100%;
  height: auto !important;
}

.pdf-viewer-wrapper {
  flex: 1;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e5e7eb;
}

.pdf-iframe {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: 4px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 支撑材料页面特有样式 */
.supporting-materials {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
}

.sidebar-header {
  padding: 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-header i {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

.sidebar-header h2 {
  font-size: 18px;
  color: var(--primary-color);
  margin: 0;
}

.sidebar ul {
  list-style: none;
  padding: 15px 0;
}

.sidebar li {
  margin: 0;
}

.sidebar button {
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #444;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  border-left: 4px solid transparent;
  line-height: 1.5;
}

.sidebar button:hover {
  background-color: #f0f4f8;
  color: var(--primary-color);
  border-left-color: #d1d5db;
}

.sidebar button.active {
  background-color: #f0f4f8;
  color: var(--primary-color);
  font-weight: bold;
  border-left-color: var(--secondary-color);
}

.main-content {
  flex: 1;
  min-width: 0; /* 防止flex子项溢出 */
}

/* 成果视频页面特有样式 */
.video-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.video-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.video-header i {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
}

.video-header h2 {
  font-size: 22px;
  color: var(--text-color);
  line-height: 1.4;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 比例 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  background-color: #000;
}

.video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background-color: #000;
}

.video-description {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.video-description h3 {
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 10px;
}

.video-description p {
  color: #555;
  line-height: 1.7;
  font-size: 15px;
  text-align: justify;
}

/* 移除旧的子页面样式 */

/* 响应式设计 */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .image-grid {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 15px 10px;
  }
  
  .nav-logo {
    margin-bottom: 15px;
    justify-content: center;
  }
  
  .nav-links {
    display: flex;
    gap: 15px;
    height: auto;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav-links a {
    font-size: 14px;
    height: 30px;
  }
  
  .menu-button, .mobile-menu {
    display: none !important;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-title span {
    font-size: 24px;
  }
  
  .hero-section {
    height: 500px;
  }
  
  .highlight-cards {
    grid-template-columns: 1fr;
  }
  
  .highlights-section {
    margin-top: 40px;
  }
  
  .supporting-materials {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
  }
  
  .pdf-iframe {
    height: 600px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-year {
    width: 60px;
    height: 30px;
    font-size: 14px;
  }
  
  .page-header {
    height: 180px;
  }
  
  .page-title-hero {
    font-size: 28px;
  }
  
  .pdf-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .video-header h2 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }
  
  .hero-title span {
    font-size: 18px;
  }
  
  .hero-orgs {
    font-size: 14px;
    padding: 10px 15px;
  }
  
  .image-grid {
    height: 300px;
  }
  
  .image-grid .img-1 {
    height: 200px;
  }
  
  .image-grid .img-2 {
    height: 180px;
  }
  
  .img-badge {
    width: 90px;
    height: 90px;
    top: 20px;
  }
  
  .img-badge .number {
    font-size: 24px;
  }
  
  .content-box {
    padding: 20px 15px;
  }
  
  .pdf-title h2 {
    font-size: 16px;
  }
  
  .page-header {
    height: 150px;
  }
}
