body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
    text-align: center;
    color: #333;
}
.project-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    background-color: #f9f9f9;
}
.project-header {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}
.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.detail-item {
    display: flex;
    flex-direction: column;
}
.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}
.detail-value {
    font-size: 14px;
    color: #333;
}
.back-link {
    margin-top: 20px;
    text-align: center;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.flash-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}
.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 项目详情页样式 */
.top-right-link {
    position: absolute;
    top: 10px;
    right: 10px;
}

.top-right-link a + a {
    margin-left: 10px;
}
.section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.section h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section h2:after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s;
}
.section.collapsed h2:after {
    transform: rotate(-90deg);
}
.section-content {
    margin-top: 10px;
}
.section.collapsed .section-content {
    display: none;
}
.form-group input {
    width: 300px;
    padding: 5px;
}
.form-group select {
    width: 310px;
}
.update-button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.update-button:hover {
    background-color: #45a049;
}
.monomer-count {
    margin: 10px 0;
    font-weight: bold;
}
.key-info {
    margin-bottom: 20px;
}

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

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-header {
    margin-bottom: 15px;
    font-weight: bold;
}

.modal-body {
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-footer {
    text-align: right;
}

.modal-button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.no-projects {
    text-align: center;
    color: #666;
}

/* 按钮容器样式 */
.button-container {
    display: flex;
    gap: 10px;
}

/* 消息按钮容器样式 */
.message-button-container {
    margin-top: 10px;
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
label {
    font-weight: bold;
    color: #555;
}
input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
button:hover {
    background-color: #45a049;
}
.links {
    margin-top: 20px;
    text-align: center;
}

/* 辅助补全按钮样式 */
.complement-container {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.complement-button {
    background-color: #2196F3;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px;
}

.complement-button:hover {
    background-color: #0b7dda;
}

.complement-value {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* 进度条样式 */
.progress-container {
    margin-top: 15px;
    height: 20px;
    background-color: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}
