/* Base style reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header style */
header {
    background: linear-gradient(90deg, #1a3a6c 0%, #2c5e92 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.yun-logo {
    width: 100px;
    height: 100px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.yun-logo img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.title-container h1 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.title-container p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

.dna-animation {
    text-align: center;
    margin: 2rem 0;
    font-size: 2rem;
    color: #eeeff1;
}

/* 选项卡导航 */
.tabs-container {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 12px 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
}

.tab-btn {
    background: #e4edf5;
    color: #1a3a6c;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #d1dbe5;
}

.tab-btn.active {
    background: linear-gradient(90deg, #2c5e92 0%, #3a7bb8 100%);
    color: white;
}

/* 选项卡内容 */
.tab-content {
    display: none;
    padding: 2rem 0;
}

.tab-content.active {
    display: block;
}

/* Main content area */
main {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    width: 100%;
}
/* 修复 ASO Mechanism 图片容器样式 */
.aso-diagram-m {
    width: 100%;
    position: relative;
    background: #f8fbff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    height: 300px; /* 固定高度，移除 padding-bottom */
}

.aso-diagram {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem; /* 添加内边距 */
}

.aso-diagram svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* 确保图片在 SVG 中正确显示 */
.aso-diagram image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 同时修复大图的容器样式 */
.aso-diagram-container {
    width: 100%;
    background: #f8fbff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    height: 400px; /* 固定高度代替 padding-bottom */
    display: flex;
    align-items: center;
    justify-content: center;
}

.aso-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Form styles */
.form-section, .mechanism-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.form-section:hover, .mechanism-section:hover {
    transform: translateY(-5px);
}

.form-section h2, .mechanism-section h2, .intro-section h2 {
    color: #2c5e92;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e4edf5;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a3a6c;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d1dbe5;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #2c5e92;
    box-shadow: 0 0 0 3px rgba(44, 94, 146, 0.1);
}

.btn-submit {
    background: linear-gradient(90deg, #2c5e92 0%, #3a7bb8 100%);
    color: white;
    border: none;
    padding: 0.9rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: linear-gradient(90deg, #1a3a6c 0%, #2c5e92 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 108, 0.2);
}

/* Introduction section */
.intro-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.intro-content {
    display: grid;
    gap: 1.5rem;
}
.aso-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持图片比例，适应容器 */
}

.feature-card {
    background: #f8fbff;
    border-left: 4px solid #2c5e92;
    padding: 1.2rem;
    border-radius: 0 8px 8px 0;
}

.feature-card h3 {
    color: #1a3a6c;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-card h3::before {
    content: "✓";
    color: #3a7bb8;
    font-weight: bold;
}

/* SVG Diagram Styling */
.aso-diagram-container {
    width: 100%;
    position: relative;
    padding-bottom: 100%; /* Creates 1:1 aspect ratio */
    background: #f8fbff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    height: 700px;
}
.aso-diagram-m {
    width: 100%;
    position: relative;
    padding-bottom: 100%; /* Creates 1:1 aspect ratio */
    background: #f8fbff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    height: 200px;
}
.aso-diagram {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aso-diagram svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mechanism illustration styles */
.mechanism-content {
    display: grid;
    gap: 1.5rem;
}

.mechanism-desc {
    background: #f8fbff;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px dashed #3a7bb8;
    font-size: 1rem;
    line-height: 1.7;
    color: #1a3a6c;
}

.mechanism-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mechanism-step {
    background: #e6f0ff;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-icon {
    width: 24px;
    height: 24px;
    background: #2c5e92;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .mechanism-steps {
        grid-template-columns: 1fr;
    }
}

/* Footer styles */
footer {
    background: linear-gradient(90deg, #1a3a6c 0%, #2c5e92 100%);
    color: white;
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.partner-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.partner-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Response message */
.response-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* 新添加的脱靶效应分析表单样式 */
.off-target-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.off-target-form h2 {
    color: #2c5e92;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e4edf5;
    font-size: 1.8rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-col {
    flex: 1;
}
.supporting-institutions {
    margin: 10px 0;
    text-align: center;
}

.supporting-institutions h3 {
    margin-bottom: 15px;
    color: #e4edf5;
    font-weight: normal;
}

.institution-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.institution-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
}

.institution-link:hover {
    transform: translateY(-5px);
}

.institution-link img {
    width: 160px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.institution-link span {
    font-size: 14px;
    text-align: center;
    max-width: 150px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

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

.supporting-institutions h3 {
    margin-bottom: 10px;
}

.institution-logos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
/* 通用logo样式 */
.institution-link img {
    height: auto;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* 第一个logo: SicaGene */
.institution-link:first-child img {
    width: 150px; /* SicaGene logo宽度 */
}

/* 第二个logo: Yunnan University */
.institution-link:last-child img {
    width: 220px; /* YNU logo宽度 */
}

/* 如果你想更精确地控制，可以使用nth-child选择器 */
.institution-link:nth-child(1) img {
    width: 150px;
    /* 可以添加特定的位置调整 */
    margin-top: 5px;
}

.institution-link:nth-child(2) img {
    width: 120px;
    /* 可以添加特定的位置调整 */
    margin-top: 0px;
}

/* 调整文字位置（如果需要） */
.institution-link:first-child span {
    display: block;
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
}
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .partner-links {
        flex-direction: column;
    }
} 
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}