/* 全局样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimHei", "黑体", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #006633;
    margin-bottom: 20px;
}

h2 {
    color: #006633;
    margin-bottom: 15px;
}

h3 {
    color: #008844;
    margin-bottom: 10px;
}

h4 {
    color: #00994c;
    margin-bottom: 8px;
}

/* 学习目标样式 */
.learning-objectives {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.learning-objectives h3 {
    color: #1890ff;
    margin-bottom: 10px;
}

.learning-objectives ul {
    margin: 0;
    padding-left: 20px;
}

.learning-objectives li {
    margin: 5px 0;
    color: #595959;
}

/* 理论学习内容样式 */
.theory-content {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.theory-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    border-left: 4px solid #006633;
}

.theory-section h3 {
    color: #006633;
    margin-bottom: 10px;
    font-size: 18px;
}

.theory-section p {
    line-height: 1.8;
    margin-bottom: 10px;
}

.theory-section ul {
    padding-left: 20px;
}

.theory-section li {
    margin: 8px 0;
    line-height: 1.6;
}

/* 知识要点提示样式 */
.knowledge-tip {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.knowledge-tip h4 {
    color: #856404;
    margin-bottom: 8px;
    font-size: 16px;
}

.knowledge-tip p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

/* 进度条样式 */
#progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
}

#progress-bar::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    z-index: 1;
}

.step {
    position: relative;
    background-color: #f5f5f5;
    padding: 5px 15px;
    border-radius: 15px;
    border: 2px solid #ccc;
    z-index: 2;
    font-size: 14px;
    cursor: default;
    transition: all 0.3s;
}

.step.active {
    background-color: #006633;
    color: white;
    border-color: #006633;
}

.step.completed {
    background-color: #00994c;
    color: white;
    border-color: #00994c;
}

/* 主要内容区域样式 */
#simulation-area {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    position: relative;
}

.step-content {
    display: none;
    animation: fadeIn 0.5s;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.instruction {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f0f9f0;
    border-left: 4px solid #006633;
    border-radius: 0 5px 5px 0;
}

/* 按钮样式 */
.button-group {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    background-color: #006633;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.btn:hover {
    background-color: #004d26;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.prev-btn {
    background-color: #666;
}

.prev-btn:hover {
    background-color: #444;
}

.action-btn {
    background-color: #e67300;
}

.action-btn:hover {
    background-color: #cc6600;
}

.hint-btn {
    background-color: #17a2b8;
}

.hint-btn:hover {
    background-color: #138496;
}

.reset-btn {
    background-color: #dc3545;
}

.reset-btn:hover {
    background-color: #c82333;
}

.skip-btn {
    background-color: #6c757d;
    border: 1px solid #5a6268;
}

.skip-btn:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* 按钮布局优化 */
.button-group {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    justify-content: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.button-group .btn {
    min-width: 120px;
    white-space: nowrap;
}

/* 第一环节：器具选择样式 */
/* 实验室环境样式 */
.lab-environment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #dee2e6;
}

.equipment-cabinet {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cabinet-shelves {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shelf {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background: #fafafa;
}

.shelf h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 14px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.equipment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.equipment-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.equipment-item.selected {
    border-color: #28a745;
    background: #d4edda;
}

.equipment-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.equipment-name {
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
}

.workbench {
    background: #343a40;
    border-radius: 8px;
    padding: 15px;
    color: white;
}

.bench-surface {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    min-height: 200px;
}

.drop-zone {
    border: 2px dashed #6c757d;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
}

.drop-zone.drag-over {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.zone-label {
    font-size: 12px;
    color: #adb5bd;
    margin-bottom: 10px;
}

.equipment-inspection {
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.inspection-list {
    min-height: 100px;
    background: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.inspection-prompt {
    color: #6c757d;
    font-style: italic;
}

.inspection-entry {
    margin: 5px 0;
    padding: 5px;
    background: white;
    border-left: 3px solid #007bff;
    border-radius: 3px;
}

.operation-controls {
    margin: 15px 0;
}

.inspection-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.inspect-btn {
    background-color: #17a2b8;
}

.clean-btn {
    background-color: #28a745;
}

.arrange-btn {
    background-color: #ffc107;
    color: #212529;
}

/* 第二环节：称量操作样式 */
.weighing-lab {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.environment-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.env-parameters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.parameter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: white;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.param-value {
    font-weight: bold;
    color: #007bff;
}

.param-status {
    color: #28a745;
    font-weight: bold;
}

.weighing-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.materials-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.material-group {
    padding: 15px;
    background-color: #f0f9f0;
    border-radius: 5px;
}

.materials-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.material-item {
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.material-item:hover {
    border-color: #006633;
}

.material-item.selected {
    border-color: #006633;
    background-color: #e6f2e6;
}

.material-image {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.material-name {
    font-size: 14px;
    font-weight: bold;
}

.scale-operation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #f0f9f0;
    border-radius: 5px;
}

.scale {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.scale-display {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#scale-screen {
    width: 100%;
    background-color: #333;
    color: #00ff00;
    padding: 10px;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    border-radius: 3px;
}

.scale-controls {
    display: flex;
    justify-content: space-between;
}

.scale-btn {
    padding: 8px 15px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.scale-btn:hover {
    background-color: #555;
}

.scale-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.scale-plate {
    width: 200px;
    height: 150px;
    background-color: #eee;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 80px;
    min-width: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    align-items: flex-start;
}

.scale-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fffbe6;
    border: 2px solid #ccc;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 22px;
    margin-right: 4px;
    margin-bottom: 4px;
    position: relative;
}

.remove-scale-item {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e57373;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.remove-scale-item:hover {
    background: #c62828;
}

.scale-actions {
    margin-top: 10px;
    text-align: center;
}

.weighing-tools {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#weighing-tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.weighing-tool {
    padding: 5px 10px;
    background-color: #eee;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #ccc;
}

.weighing-tool.selected {
    background-color: #006633;
    color: white;
    border-color: #006633;
}

.weighing-result {
    width: 100%;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.result-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.result-item label {
    font-weight: bold;
    color: #495057;
}

.result-item span {
    color: #007bff;
    font-family: monospace;
}

/* 炒制过程控制样式 */
.frying-control-room {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin: 20px 0;
}

.heating-control-panel {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 10px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.control-interface {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.temperature-control {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
}

.temp-display-large {
    text-align: center;
    margin-bottom: 15px;
}

.temp-value {
    font-size: 48px;
    font-weight: bold;
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.temp-unit {
    font-size: 24px;
    color: #bdc3c7;
}

.temp-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.temp-slider {
    flex: 1;
    height: 6px;
    background: #34495e;
    outline: none;
    border-radius: 3px;
}

.temp-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

.heating-power {
    display: flex;
    align-items: center;
    gap: 10px;
}

.power-level {
    flex: 1;
    height: 20px;
    background: #34495e;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.power-bar {
    height: 100%;
    background: linear-gradient(90deg, #f1c40f 0%, #e67e22 50%, #e74c3c 100%);
    border-radius: 10px;
    transition: width 0.5s;
}

.safety-controls {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 15px;
}

.safety-indicators {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.indicator-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #27ae60;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.5);
}

.indicator[data-status="warning"] .indicator-light {
    background: #f39c12;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.5);
}

.indicator[data-status="danger"] .indicator-light {
    background: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.emergency-btn {
    width: 100%;
    padding: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.emergency-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.wok-simulation {
    background: #ecf0f1;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #bdc3c7;
}

.wok-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wok-view {
    width: 300px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    border-radius: 50% 50% 50% 50% / 100% 100% 20% 20%;
    background: linear-gradient(145deg, #34495e, #2c3e50);
    border: 3px solid #1a252f;
    overflow: hidden;
}

.wok-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30%;
    background: radial-gradient(ellipse at center, #2c3e50, #34495e);
    border-radius: 50%;
}

.wok-contents {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 20%;
    border-radius: 50%;
    transition: all 0.5s;
}

.steam-effect {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: linear-gradient(to top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s;
}

.steam-effect.active {
    opacity: 1;
    animation: steam 2s infinite;
}

@keyframes steam {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.smoke-effect {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: rgba(100,100,100,0.3);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s;
}

.smoke-effect.active {
    opacity: 1;
    animation: smoke 3s infinite;
}

@keyframes smoke {
    0% { transform: translateX(-50%) translateY(0px) scale(1); opacity: 0.3; }
    50% { transform: translateX(-50%) translateY(-20px) scale(1.2); opacity: 0.6; }
    100% { transform: translateX(-50%) translateY(-40px) scale(1.5); opacity: 0; }
}

.wok-parameters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.parameter-row {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border-radius: 5px;
    border: 1px solid #bdc3c7;
    font-size: 14px;
}

.param-display {
    font-weight: bold;
    color: #2c3e50;
}

.operation-tool-panel {
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #dee2e6;
}

.tool-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stirring-control,
.material-addition {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.stir-interface {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.stir-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
}

.stir-btn:hover {
    background: #007bff;
    color: white;
}

.stir-btn.active {
    background: #007bff;
    color: white;
    animation: stir-animation 0.5s infinite;
}

@keyframes stir-animation {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.stir-status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
}

.addition-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.material-btn {
    padding: 10px;
    border: 1px solid #28a745;
    background: white;
    color: #28a745;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.material-btn:hover:not(:disabled) {
    background: #28a745;
    color: white;
}

.material-btn:disabled {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.addition-status {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #495057;
}

.process-monitoring {
    grid-column: 1 / -1;
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #007bff;
}

.monitoring-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-container {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.chart {
    margin-top: 10px;
}

.color-timeline {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-stage {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
}

.color-stage[data-stage="initial"] {
    background: #ffffff;
    border: 2px solid #dee2e6;
    color: #495057;
}

.color-stage[data-stage="heating"] {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.color-stage[data-stage="optimal"] {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.color-stage[data-stage="over"] {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.color-stage.current {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 第四环节：出锅处理样式 */
.finishing-area {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.wok-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#final-wok {
    position: relative;
    transform: none;
    left: auto;
    top: auto;
}

.color-indicator {
    width: 100%;
    padding: 15px;
    background-color: #f0f9f0;
    border-radius: 5px;
    text-align: center;
}

.color-samples {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.color-sample {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ccc;
}

.color-sample.white {
    background-color: #ffffff;
}

.color-sample.light-yellow {
    background-color: #fff0b3;
}

.color-sample.yellow {
    background-color: #ffcc00;
}

.color-sample.dark-yellow {
    background-color: #cc9900;
}

.finishing-options {
    flex: 1;
    padding: 20px;
    background-color: #f0f9f0;
    border-radius: 5px;
}

.container-options {
    margin-bottom: 20px;
}

.options-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.option-item {
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.option-item:hover {
    border-color: #006633;
}

.option-item.selected {
    border-color: #006633;
    background-color: #e6f2e6;
}

.option-image {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.option-name {
    font-size: 14px;
    font-weight: bold;
}

.sieving-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

.hidden {
    display: none;
}

/* 第五环节：成品展示样式 */
.result-display {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.final-product {
    flex: 1;
    padding: 20px;
    background-color: #f0f9f0;
    border-radius: 5px;
    text-align: center;
}

.product-image {
    width: 100%;
    height: 300px;
    background-color: #fff;
    border-radius: 5px;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.evaluation {
    flex: 1;
    padding: 20px;
    background-color: #f0f9f0;
    border-radius: 5px;
}

#score-display {
    margin-top: 15px;
}

.score-item {
    padding: 10px;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 5px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-item.total {
    font-weight: bold;
    background-color: #e6f2e6;
    font-size: 18px;
}

/* 详细反馈样式 */
.detailed-feedback {
    background-color: #fafafa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.detailed-feedback h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.step-feedback {
    margin: 15px 0;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
}

.learning-stats {
    margin-top: 15px;
    padding: 15px;
    background-color: #e6f7ff;
    border-radius: 5px;
}

.learning-stats ul {
    margin: 10px 0;
    padding-left: 20px;
}

.learning-stats li {
    margin: 5px 0;
}

/* 质量标准模态框样式 */
.standards-content {
    text-align: left;
}

.standards-content h4 {
    color: #006633;
    margin: 15px 0 10px 0;
    border-bottom: 2px solid #006633;
    padding-bottom: 5px;
}

.standards-content ul {
    margin: 10px 0;
    padding-left: 25px;
}

.standards-content li {
    margin: 8px 0;
    line-height: 1.6;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.tutorial-modal .modal-content {
    max-width: 800px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .materials-selection,
    .frying-area,
    .finishing-area,
    .result-display {
        flex-direction: column;
    }
    
    .step {
        font-size: 12px;
        padding: 5px 10px;
    }
}

.pieces-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.piece-item {
    width: 40px;
    height: 40px;
    background-color: #fffbe6;
    border: 2px solid #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: grab;
    transition: box-shadow 0.2s;
}
.piece-item.dragging {
    opacity: 0.5;
    box-shadow: 0 0 8px #006633;
}
