body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* 页头 */
.header-container {
    position: relative;
    height: 280px; /* 固定标题高度 */
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50, #3498db); /* 备用背景 */
}


.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/header-bg.jpg');
    background-size: cover;
    background-position: center 65%;
    opacity: 0.9;
    z-index: 1;
    animation: pan-image 40s linear infinite;
}

@keyframes pan-image {
    0% { background-position: 50% 65%; }
    50% { background-position: 55% 70%; }
    100% { background-position: 50% 65%; }
}

.header-container header {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* 增强文字阴影 */
}

/* 移动端优化 */
@media (max-width: 768px) {
    .header-container {
        height: 200px;
        background-size: 120% auto;
    }
    
    .header-image {
        animation: none; /* 禁用移动端动画 */
    }
}

.header-image {
    transition: background-image 0.5s ease;
    filter: brightness(0.8) contrast(1.1);
}

.header-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(44, 62, 80, 0.4) 0%,
        rgba(52, 152, 219, 0.3) 100%);
}

.header-container header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 1200px;
    padding: 20px;
}

.header-container h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 0 15px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3);
    line-height: 1.1;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.header-container p {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

/* 添加动态光效 */
@keyframes title-glow {
    0% { text-shadow: 
        2px 2px 4px rgba(0,0,0,0.5),
        0 0 30px rgba(255,255,255,0.3); }
    50% { text-shadow: 
        3px 3px 6px rgba(0,0,0,0.6),
        0 0 40px rgba(255,255,255,0.5); }
    100% { text-shadow: 
        2px 2px 4px rgba(0,0,0,0.5),
        0 0 30px rgba(255,255,255,0.3); }
}

.header-container h1 {
    animation: title-glow 3s ease-in-out infinite;
}



/* 添加字体声明 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=swap');

/* 在现有的标题样式中添加 */
.header-container header {
    white-space: nowrap;  /* 禁止换行 */
    overflow: visible;    /* 保持内容可见 */
}


.header-container header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 主标题 */


/* 移动端优化 */
@media (max-width: 768px) {
    .header-container h1 {
        font-size: 2.8rem; /* 调大移动端主标题字号 */
    }
    .header-container p {
        font-size: 1.2rem;
        white-space: normal; /* 允许小屏换行 */
        max-width: 90%;
        text-align: center;
    }
}

.intro p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #2c3e50;
    margin: 1.5em 0;
}

.lab-link {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lab-link:hover {
    color: #3498db;
    border-bottom-color: transparent;
}


/* 导航 */
.sticky-nav {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sticky-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.sticky-nav li {
    margin: 0 15px;
}

.sticky-nav a {
    color: #333;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.sticky-nav a.active {
    background: #3498db !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.sticky-nav a:hover {
    background: #3498db;
    color: white;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* 挑战横幅 */
.challenge-banner {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.challenge-banner h2 {
    color: #1976d2;
    margin: 0 0 15px;
}

.cta-button {
    display: inline-block;
    background: #2196f3;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* 器官网格布局 */
.organ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.organ-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.organ-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.organ-card h3 {
    color: #2c3e50;
    margin-top: 0;
}

.sub-list {
    list-style: circle;
    padding-left: 20px;
    margin: 10px 0;
}

.organ-img {
    width: 100%;
    border-radius: 4px;
    margin-top: 15px;
}

/* 表格样式 */
.spec-table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #ddd;  /* 添加表格外边框 */
}

/* 表头样式 */
.spec-table th {
    text-align: left; /* 强制左对齐 */
    padding: 15px 20px; /* 调整内边距 */
    background: #3498db; /* 保持原蓝色背景 */
    color: white;
    vertical-align: middle; /* 垂直居中 */
}



.spec-table tr:nth-child(even) td {
    background: #f8f9fa;
}
/* 数据单元格对齐优化 */
.spec-table td {
    text-align: left;
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
}
/* 
首列特殊处理 */
.spec-table td:first-child {
    font-weight: 500;
    color: #2c3e50;
}

#special-cell {
    font-weight: 500;
    color: #2c3e50;
  }




/* .tab-btn {
    background: #e0e0e0;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #3498db;
    color: white;
} */

/* 标签内容区默认隐藏 */
/* .tab-pane {
    display: none;
}

/* 激活的内容区显示 */
/* .tab-pane.active {
    display: block;
}

/* 按钮激活状态样式 */
/* .tab-btn.active {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
} */ */ */

.key-visual {
    text-align: center;
    margin: 40px 0;
}

.key-visual img {
    display: block;
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    /* 移除以下两个属性 */
    /* border-radius: 8px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    /* 可选添加以下属性保证无边框 */
    border: 0;
    outline: none;
}

figcaption {
    margin: 20px auto 0;
    font-family: 'Montserrat', sans-serif; /* 使用现代无衬线字体 */
    font-weight: 500; /* 中等字重 */
    font-size: 1.1em;
    color: #2c3e50; /* 使用主标题的深蓝色 */
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    position: relative;
    padding-top: 15px;
}
/* 响应式优化 */
@media (max-width: 768px) {
    .key-visual img {
        max-width: 95%;
    }
    
    figcaption {
        font-size: 0.85em;
        padding: 0 15px;
    }
}

/* 页脚主样式 */


/* 链接区块 */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.link-group h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.1em;
    text-transform: uppercase;
}

.link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-group li {
    margin-bottom: 8px;
}

.link-group a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-group a:hover {
    color: #3498db;
}

/* 底部栏 */
.footer-bottom {
    border-top: 1px solid #4a5f78;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #bdc3c7;
    font-size: 1.4em;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
    transform: translateY(-3px);
}

/* 图标字体 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .link-group {
        text-align: center;
    }
    
    .link-group a {
        justify-content: center;
    }
}

#activity {
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
  }
  
  .competition-card {
    display: flex;
    gap: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .competition-card:hover {
    transform: translateY(-5px);
  }
  
  .competition-content {
    flex: 1;
  }
  
  .en-title {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 8px;
  }
  
  .competition-description {
    color: #495057;
    line-height: 1.8;
    margin: 20px 0;
  }
  
  .competition-link {
    display: inline-block;
    padding: 12px 25px;
    background: #2185d5;
    color: white !important;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
  }
  
  .competition-link:hover {
    background: #1a6ca8;
  }
  
  .competition-visual {
    flex: 0 0 40%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
  }
  
  .competition-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  /* 响应式设计 */
  @media (max-width: 768px) {
    .competition-card {
      flex-direction: column;
      padding: 20px;
    }
    
    .competition-visual {
      flex: none;
      height: 200px;
    }
  }

/* Base Styles */
.resource-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    margin-top: 30px;
}

/* 流程竖线修正 */
.process-flow {
    position: relative;
    padding-left: 40px;
}

/* 贯穿竖线 */
.process-flow::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0.5em;
    bottom: 0.5em;
    width: 2px;
    background: #2185d5;
    z-index: 0;
}

.flow-step {
    position: relative;
    padding: 20px 0;
    margin-left: 10px;
}

.step-icon {
    position: absolute;
    left: -40px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: #2185d5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 1; /* 确保图标在竖线上方 */
}

/* 移除旧版边框 */
.flow-step {
    border-left: none !important;
}

.process-flow {
    list-style: none; /* 禁用默认序号 */
    padding-left: 0;
    counter-reset: step-counter; /* 创建自定义计数器 */
}

.flow-step::before {
    content: counter(step-counter); /* 使用伪元素显示序号 */
    counter-increment: step-counter;
    position: absolute;
    left: -46px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: #2185d5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* 移除旧的step-icon */
.step-icon {
    display: none !important;
}

/* 调整步骤内容位置 */
.step-content {
    margin-left: 45px; /* 保持与序号对齐 */
}

.step-icon {
    position: absolute;
    left: -46px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: #2185d5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-content {
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sub-flow {
    padding: 10px 0;
}

.sub-step {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #495057;
}

.dot {
    width: 8px;
    height: 8px;
    background: #2185d5;
    border-radius: 50%;
    margin-right: 12px;
}

.file-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arrow {
    fill: #2185d5;
    opacity: 0.8;
}

/* Requirements Section */
.spec-chart {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 15px;
}

.spec-icon {
    font-size: 1.4em;
}

.highlight {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
}

.timeline-flow {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.timeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.node {
    width: 36px;
    height: 36px;
    background: #2185d5;
    color: white;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
}

/* 桌面端水平连接线 */
.timeline-flow::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    width: calc(100% - 72px);
    height: 2px;
    background: #dee2e6;
    transform: translateX(-50%);
    z-index: 0;
}
/* Responsive Design */
@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-flow {
        padding-left: 30px;
    }
    
    .timeline-flow {
        grid-template-columns: 1fr;
    }
    
    .node:after {
        width: 2px;
        height: 15px;
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
    }
} 

.site-footer {
    background: #f8f9fa;
    padding: 30px 20px;
    margin-top: 60px;
    border-top: 1px solid #e9ecef;
}

.citation-footer {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

blockquote {
    font-style: normal;
    color: #495057;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    padding: 0 15px;
}

blockquote::before,
blockquote::after {
    content: none; /* 移除默认的引号 */
}

/* 移动端优化 */
@media (max-width: 768px) {
    .site-footer {
        padding: 25px 15px;
    }
    
    blockquote {
        font-size: 1em;
        line-height: 1.5;
    }
}
#resources.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box; /* 关键修复点1 */
    overflow: hidden; /* 关键修复点2 */
}
/* 紧凑布局样式 */
.guide-flow {
    display: grid;
    gap: 1.5rem;
}

.guide-step {
    /* border: 1px solid #e0e0e0; */
    border-radius: 6px;
    padding: 18px;
    margin: 12px 0;
    box-sizing: border-box;
    width: 95%; /* 精确补偿 */
    position: relative;
}


.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.download-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.download-btn {
    /* 基础样式 */
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    
    /* 渐变背景 */
    background: #FFD21F;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
    
    /* 文字样式 */
    color: black;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* 悬停效果 */
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3),
                0 4px 6px -2px rgba(59, 130, 246, 0.1);
}

/* 点击动画 */
.download-btn:active {
    transform: scale(0.98);
}

/* 图标动画 */
.download-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.download-btn:hover .download-icon {
    transform: translateY(2px);
}
.code-snippet {
    background: #2d3748;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-family: monospace;
}


.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.spec-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.spec-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.config-panel {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 2rem;
    margin: 1.5rem 0;
}

.config-item {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

/* 输入控件 */
.organ-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.path-selector {
    display: flex;
    gap: 0.5rem;
}
.browse-btn {
    background: #2185d5;
    color: white;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 6px;
}


label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

/* Unified Input Styles */



.path-selector {
    display: flex;
    gap: 8px;
}

.browse-btn {
    background: #2185d5;
    color: white;
    padding: 0 16px;
    border: none;
    border-radius: 4px;
    flex-shrink: 0;
}

/* 三列等宽布局 */
.trio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    margin-right:2rem ;
}

.param-item {
    width: 100%;
    min-height: 80px; /* 统一高度 */
}

/* 统一输入控件 */
select, input[type="number"], .path-input {
    width:260px;
    padding: 10px 12px;
    border: 1px solid #2185d5;
    border-radius: 4px;
    background: #f8faff;
}

/* 路径输入特殊处理 */
.path-input {
    display: flex;
    gap: 8px;
}
.browse-btn {
    background: #2185d5;
    color: white;
    padding: 0 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .trio-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .param-item {
        min-height: auto;
    }
}

/* BibTeX 引用区块样式 */
.bibtex-section {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 2rem 0;
    margin-top: 3rem;
}

.bibtex-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bibtex-code {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.5rem;
    overflow-x: auto;
    counter-reset: line;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 1.2em;
    line-height: 1.6;
}

.bibtex-code code {
    display: block;
    white-space: pre;
    color: #2c3e50;
}

/* 代码块关键词高亮 */
.bibtex-code code .key { color: #d73a49; }       /* 字段名 */
.bibtex-code code .value { color: #005cc5; }    /* 字段值 */
.bibtex-code code .punctuation { color: #6a737d; } /* 标点符号 */
