* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #FFF9C4;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#app {
    width: 100%;
    max-width: 1200px;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.experiment-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.experiment-info p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

.experiment-info ol {
    margin-left: 30px;
    line-height: 2;
}

.experiment-info li {
    margin-bottom: 10px;
    color: #555;
}

.developer-info {
    text-align: center;
    margin-bottom: 20px;
}

.developer-info p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.9em;
    color: #999;
}

.special-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.special-note p {
    color: #856404;
    line-height: 1.6;
    font-size: 0.95em;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: block;
    margin: 0 auto;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: #6c757d;
    color: white;
    margin-top: 15px;
}

.secondary-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.tools-panel {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tool-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 20px 30px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.tool-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(240, 147, 251, 0.4);
}

.tool-btn.selected {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.6);
    border: 3px solid #fff;
}

.tool-icon {
    font-size: 2.5em;
}

.tool-name {
    font-size: 1em;
    font-weight: bold;
}

.petri-dishes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    justify-items: center;
}

.petri-dish {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #9E9E9E;
    border: 8px solid #757575;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.petri-dish:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.petri-dish.has-filter-paper {
    background: #ffffff;
}

.petri-dish .dish-number {
    position: absolute;
    bottom: -30px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.petri-dish.has-light-water {
    background: linear-gradient(135deg, #a8d8ea 0%, #87ceeb 100%);
}

.petri-dish.has-heavy-water {
    background: linear-gradient(135deg, #4a90d9 0%, #0056b3 100%);
}

.petri-dish .beans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.petri-dish .bean {
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    border: 2px solid #388e3c;
}

.petri-dish .water-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.5em;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.environment-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.environment {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
}

.environment.drag-over {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.environment-icon {
    font-size: 4em;
    margin-bottom: 15px;
}

.environment-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.drop-zone {
    min-height: 100px;
    background: rgba(255, 255, 255, 0.5);
    border: 3px dashed #999;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.drop-zone.drag-over {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.dishes-for-drag {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mini-dish {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #9E9E9E;
    border: 4px solid #757575;
    cursor: move;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.mini-dish:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mini-dish.dragging {
    opacity: 0.5;
}

.mini-dish.placed {
    opacity: 0.3;
    cursor: not-allowed;
}

.result-dishes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    justify-items: center;
}

.result-dish {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #9E9E9E;
    border: 8px solid #757575;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-dish:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.result-dish.success {
    border-color: #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.result-dish.failure {
    border-color: #f44336;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
}

.result-dish .dish-number {
    position: absolute;
    bottom: -30px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.result-dish .status-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.result-dish .status-text {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 0 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-body {
    text-align: center;
}

.modal-body h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.modal-body p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.modal-body .result-success {
    color: #4caf50;
    font-size: 1.2em;
    font-weight: bold;
}

.modal-body .result-failure {
    color: #f44336;
    font-size: 1.2em;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    .petri-dishes-container {
        grid-template-columns: 1fr;
    }

    .petri-dish {
        width: 150px;
        height: 150px;
    }

    .result-dishes {
        grid-template-columns: 1fr;
    }

    .result-dish {
        width: 150px;
        height: 150px;
    }

    .environment-container {
        gap: 20px;
    }

    .environment {
        min-width: 150px;
        padding: 20px;
    }

    .tools-panel {
        gap: 10px;
    }

    .tool-btn {
        min-width: 100px;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1em;
    }

    .petri-dish {
        width: 120px;
        height: 120px;
    }

    .result-dish {
        width: 120px;
        height: 120px;
    }

    .mini-dish {
        width: 60px;
        height: 60px;
    }
}