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

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主要内容区域 */
main {
    padding: 2rem 0;
}

/* 成果网格布局 */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 成果卡片样式 */
.achievement-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* 成果卡片头部 */
.achievement-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.achievement-header h2 {
    font-size: 1.5rem;
    margin: 0;
    flex: 1;
}

/* 二维码样式 */
.qr-code {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 8px;
    padding: 8px;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code canvas {
    max-width: 100%;
    max-height: 100%;
}

/* 成果内容区域 */
.achievement-content {
    padding: 2rem;
}

.achievement-content > div {
    margin-bottom: 1.5rem;
}

.achievement-content > div:last-child {
    margin-bottom: 0;
}

/* 团队信息样式 */
.team-leader, .institution, .research-field, .main-direction {
    padding: 0.8rem;
    background: #f8f9fa;
    border-left: 4px solid #4facfe;
    border-radius: 4px;
}

/* 创新成果区域 */
.innovation-results h3 {
    color: #4facfe;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #4facfe;
    padding-bottom: 0.5rem;
}

/* 成果图片展示 */
.results-images {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.result-img {
    max-width: 100%;
    height: auto;
    min-height: 120px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

.result-img:hover {
    transform: scale(1.05);
}

/* 特殊处理横向图片 */
.result-img[src*="perovskite-materials"] {
    max-width: 300px;
    width: auto;
}

/* 响应式图片容器 */
.results-images .result-img {
    flex: 0 0 auto;
}

/* 工艺流程图 */
.innovation-diagram {
    text-align: center;
    margin-bottom: 1rem;
}

.process-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 描述文字 */
.description {
    text-align: justify;
    line-height: 1.8;
    color: #555;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

/* 合作形式标签 */
.cooperation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cooperation-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.tag:hover {
    transform: scale(1.05);
}

/* 联系信息 */
.contact-info {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #bbdefb;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.contact-row:last-child {
    margin-bottom: 0;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    padding: 2rem 0;
}

.load-more button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.load-more button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

/* 页脚样式 */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .achievement-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .achievement-header h2 {
        margin-bottom: 1rem;
    }
    
    .qr-code {
        margin-left: 0;
    }
    
    .results-images {
        justify-content: center;
    }
    
    .result-img {
        max-width: 100%;
        height: auto;
        min-height: 100px;
        max-height: 150px;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cooperation {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .achievement-content {
        padding: 1rem;
    }
    
    .results-images {
        flex-direction: column;
        align-items: center;
    }
    
    .result-img {
        width: 100%;
        max-width: 300px;
        height: 200px;
    }
}

/* 加载动画 */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b4e8a 100%);
} 