/*  copy自../code/css  */


/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #8C5240; /* 棕红色 - 代表福建传统服饰的主色调 */
  --secondary-color: #D2B48C; /* 棕黄色 - 辅助色 */
  --accent-color: #5D4037; /* 深棕色 - 强调色 */
  --light-color: #F5F5DC; /* 米黄色 - 浅色背景 */
  --dark-color: #3E2723; /* 深褐色 - 深色文本 */
  --white-color: #FFFFFF; /* 白色 */
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--accent-color);
  max-width: 700px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 5px;
  transition: var(--transition);
  cursor: pointer;
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.primary-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.secondary-btn {
  background-color: var(--white-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}




/* 头部样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-right {
  display: flex;
  align-items: center;
}

.team-logo {
  float: left;
  width: 50px; /* 根据Logo大小调整 */
  height: auto;
  margin-right: 10px; /* 与标题的间距 */
}

.team-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.3;
}

.team-name div:first-child {
  font-weight: 500;
  font-size:1rem;
}

.team-name div:last-child {
  font-weight: 600;
  font-size:1.1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* 增加Logo和标题之间的间距 */
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  padding-left: 15px;
  white-space: nowrap;
}

.logo-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 80%;
  background-color: var(--secondary-color);
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 1.1rem;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 5px;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  color: var(--primary-color);
  font-size: 1.5rem;
}




/* 二维码弹窗样式 */
.qrcode-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.qrcode-content {
  background-color: var(--white-color);
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: fadeIn 0.3s ease-out;
  text-align: center;
}

.close-qrcode {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

.close-qrcode:hover {
  color: var(--accent-color);
  transform: scale(1.2);
}

.qrcode-header {
  margin-bottom: 20px;
}

.qrcode-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.qrcode-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qrcode-image {
  margin-bottom: 20px;
  width: 250px;
  height: 250px;
  background-color: var(--light-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-image img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

.qrcode-desc {
  font-size: 1rem;
  color: var(--accent-color);
}




/* 页脚样式 */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 80px 0 40px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 10px; /* 确保容器内元素间无间隙 */
}

.footer-logo-text {
  display: flex;
  align-items: center;
  margin: 0;
}

.footer-team-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-team-name-top {
  font-weight: 210;
  font-size:0.6rem;
}

.footer-team-name-bottom {
  font-weight: 260;
  font-size: 0.8rem;
}

.footer-logo-link {
  display: inline-block;
  margin-right: 0; /* 确保无右外边距 */
  padding: 0; /* 确保无内边距 */
}

.footer-logo h3 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 1rem;
  color: var(--light-color);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links ul li:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  width: 30px;
  color: var(--secondary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(210, 180, 140, 0.2);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
}





/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: var(--white-color);
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 1000px;
  position: relative;
  animation: fadeIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  min-height: 60vh;
  max-height: 85vh; /* 限制模态框最大高度 */
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--accent-color);
  transform: scale(1.2);
}

.modal-header {
  margin-bottom: 20px;
  flex-shrink: 0; /* 防止头部被压缩 */
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
}

.modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: center; /* 居中排列按钮 */
  padding: 20px;
}

.modal-image {
  flex: 1;                  /* 使图片区域在可用空间中占据一份 */
  max-width: 40%;           /* 限制图片区域最大宽度为模态框宽度的40% */
  border-radius: 10px;      /* 圆角边框，美化图片区域 */
  overflow: hidden;         /* 确保图片不会超出容器边界 */
  box-shadow: var(--shadow); /* 添加阴影，增强立体感 */
  display: flex;            /* 使用flex布局，便于图片居中 */
  align-items: center;      /* 垂直居中图片 */
  justify-content: center;  /* 水平居中图片 */
  background-color: #f5f5f5; /* 背景色，提升视觉效果 */
  background: transparent;  /* 背景透明，覆盖上面的背景色设置 */
}

.modal-image img {
  width: auto;              /* 宽度自适应，保持原始宽高比 */
  height: auto;             /* 高度自适应，保持原始宽高比 */
  max-width: 100%;          /* 最大宽度不超过容器 */
  max-height: 100%;         /* 最大高度不超过容器 */
  display: block;           /* 将图片转换为块级元素 */
  object-fit: contain;      /* 确保图片完整显示在容器内 */
}

.modal-info {
  flex: 1;
  max-width: 60%; /* 限制信息区域宽度比例 */
  overflow-y: auto; /* 超出高度显示滚动条 */
  padding-right: 10px;
  scrollbar-width: thin; /* 窄滚动条 */
  /*scrollbar-color: var(--primary-color) transparent; 滚轮条与主题同色 */
}

/* 图片模态框样式 */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* 禁用滚动条 */
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  display: none;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  padding: 35px; /* 添加内边距，避免图片紧贴边缘 */
}

.image-modal .modal-content {
  margin: auto;
  display: block;
  max-width: 90vw; /* 最大宽度为视窗宽度的90% */
  max-height: 90vh; /* 最大高度为视窗高度的90% */
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease; /* 添加平滑过渡效果 */
}

/* 图片放大效果 */
.image-modal .modal-content:hover {
  transform: scale(1.02); /* 悬停时轻微放大 */
}

/* 自定义滚动条样式 */
.modal-info::-webkit-scrollbar {
  width: 6px;
}

.modal-info::-webkit-scrollbar-track {
  background: transparent;
}

.modal-info::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 20px;
}

.modal-info h4 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  margin-top: 20px;
}

.modal-info h4:first-child {
  margin-top: 0;
}

.modal-info h4[style*="display: none"] + p {
  margin-top: 0;
}

.modal-desc {
  white-space: pre-line;
}

.modal-desc,
.modal-culture,
.modal-usage {
  font-size: 1rem;
  color: var(--accent-color);
  line-height: 1.6; /* 增加行高，提升可读性 */
  white-space: pre-line;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee; /* 添加分隔线 */
  flex-shrink: 0; /* 防止底部被压缩 */
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}  




/* 响应式设计 */
@media (max-width: 576px) {

  .team-name {
    font-size: 0.8rem;
  }
  
  .team-name div:first-child {
    font-size: 0.75rem;
  }
  
  .logo-text {
    font-size: 1rem;
  }

  .contact-card {
    padding: 30px 20px;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
  }
  
  .qrcode-content {
    margin: 20% auto;
    padding: 20px;
  }
  
  .qrcode-image {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 992px) {
  
  .header .container {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  
  .header-left,
  .header-right {
    order: 1;
    width: 50%;
  }
  
  .header-right {
    justify-content: flex-end;
  }

  .logo {
    margin-bottom: 10px; /* 在小屏幕上，Logo和导航菜单之间的间距 */
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .nav {
    order: 3;
    width: 100%;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    padding: 20px 0;
  }

  .nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .team-name {
    margin-bottom: 20px; /* 在小屏幕上，队伍名称和导航菜单之间的间距 */
    justify-content: center;
  }

  .mobile-menu-btn {
    display: block;
    order: 2;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-desc {
    font-size: 1.2rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .modal-body {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .team-name {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

