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

/* 全局变量 */
:root {
  --primary-color: #86006a;
  --primary-hover: #6a0055;
  --background-color: #ffffff;
  --light-gray: #f9f9f9;
  --text-color: #333;
  --border-color: #eaeaea;
  --shadow: 0 0 10px rgba(0,0,0,0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* 头部样式 */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .header-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

header .header-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
}

header .logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-right: auto;
  padding-bottom: 10px;
  border-radius: 8px;
  background-color: white;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

header nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

header nav a:hover {
  opacity: 0.8;
}

/* 主体内容样式 */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--background-color);
}

/* 区块样式 */
.section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

/* 高亮文本 */
.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* 功能网格 */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.feature-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-item ul {
  list-style-type: none;
  padding-left: 0;
}

.feature-item li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-item li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* 团队成员列表样式 */
.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.member-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  position: relative;
}

/* 负责人卡片特殊样式 */
.leader-card {
  border: 2px solid var(--primary-color);
  background-color: rgba(134, 0, 106, 0.05);
}

.leader-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  transform: rotate(5deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.member-card img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--primary-color);
}

.member-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.member-role {
    display: inline-block;
    padding: 3px 10px;
    background-color: #3498db;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.member-card .member-bio {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.member-card .member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.member-card .tag {
  padding: 3px 8px;
  background-color: #f0f0f0;
  color: #555;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid #ddd;
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--light-gray);
  color: #666;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* 链接样式 */
a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* 按钮样式 */
button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--primary-hover);
}

/* 响应式设计 */
@media (max-width: 768px) {
  header {
    padding: 1.2rem;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  main {
    padding: 1.5rem 1rem;
  }
  
  .section h2 {
    font-size: 1.5rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .member-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .member-card img {
    width: 80px;
    height: 80px;
  }
}

/* 覆盖GitHub Markdown样式中的一些元素，使其符合我们的主题 */
.markdown-body h1, 
.markdown-body h2, 
.markdown-body h3, 
.markdown-body h4, 
.markdown-body h5, 
.markdown-body h6 {
  color: var(--primary-color);
}

.markdown-body a {
  color: var(--primary-color);
}

.markdown-body blockquote {
  border-left: 4px solid var(--primary-color);
}

/* 关于我们部分样式 */
.about-us {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-link.github {
    background-color: #333;
}

.social-link.douyin {
    background-color: #000;
}

.social-link.bilibili {
    background-color: #fb7299;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-details {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    margin: 0rem 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-item.email::before {
    content: "📧";
}

.contact-item.wechat::before {
    content: "💬";
}

.contact-item.phone::before {
    content: "📱";
}

/* 响应式设计 */
@media (max-width: 768px) {
    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 12px;
    }
}