/* 主容器样式 */
.stage-art-container {
    width: 100%;
    padding: 30px;
}

/* 通用部分样式 */
section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

/* 知识部分样式 */
.knowledge-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
}

/* 知识内容布局 */
.knowledge-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* 左右两栏样式 */
.knowledge-column {
    flex: 1;
}

/* 知识部分的文字样式 */
.knowledge-section h3 {
    color: #D4AF37;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.knowledge-section h4 {
    font-size: 1.2em;
    margin: 15px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.knowledge-section p {
    color: #eee;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.knowledge-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.knowledge-section li {
    color: #eee;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 15px;
    position: relative;
}

.knowledge-section li::before {
    content: "•";
    color: #D4AF37;
    position: absolute;
    left: 0;
}

/* 脸谱艺术主容器 */
.facial-art-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* 脸谱生成和创作布局 */
.mask-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* AI脸谱生成部分 */
.mask-designer {
    background: #f9f6f1;
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 标题和说明容器 */
.ai-mask-header {
    margin-bottom: 30px;
}

/* AI脸谱生成标题样式 */
.ai-mask-title {
    color: #8b4513;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

/* AI脸谱生成说明样式 */
.ai-instructions {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.ai-instructions p {
    color: #8b4513;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.ai-instructions ul {
    list-style: none;
    padding: 0;
    color: #5c4033;
}

.ai-instructions li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.ai-instructions li::before {
    content: "•";
    color: #8b4513;
    position: absolute;
    left: 0;
}

.ai-instructions strong {
    color: #8b4513;
    font-weight: 600;
}

/* 生成器主体部分 */
.mask-generator {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* 左侧控制面板 */
.design-controls {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.color-group label {
    display: block;
    color: #8b4513;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.color-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.color-group select:hover {
    border-color: rgba(212, 175, 55, 0.6);
}

.color-group select:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* 色彩搭配部分 */
.color-scheme {
    margin-bottom: 25px;
}

.color-scheme h3 {
    color: #8b4513;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* 主色调选择器 */
.color-select {
    background: #fdfbf8;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e8d5c4;
}

.color-group {
    margin-bottom: 15px;
}

.color-group label {
    color: #8b4513;
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
}

.color-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e8d5c4;
    border-radius: 6px;
    background: #fff;
    color: #5c4033;
    font-size: 1rem;
}

/* 颜色提示 */
.color-tips {
    margin-top: 12px;
    color: #8b4513;
    font-size: 0.9rem;
}

.color-tips p {
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
}

/* 需求输入区域 */
.mask-requirements {
    margin-bottom: 25px;
}

.mask-requirements h3 {
    color: #8b4513;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.mask-requirements textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #e8d5c4;
    border-radius: 6px;
    background: #fdfbf8;
    color: #5c4033;
    font-size: 1rem;
    resize: vertical;
}

/* 按钮样式 */
.generate-btn, .save-btn {
    width: 100%;
    padding: 12px;
    background: #8b4513;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.generate-btn:hover, .save-btn:hover {
    background: #a0522d;
}

.generate-btn:active, .save-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.save-btn:disabled {
    background: #d3c3b9;
    cursor: not-allowed;
}

/* 右侧预览区域 */
.mask-preview {
    flex: 1;
}

.preview-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    border: 1px solid #e8d5c4;
}

#maskPreview {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 加载动画 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 251, 248, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e8d5c4;
    border-top: 4px solid #8b4513;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 服装展示样式 */
.costume-viewer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* 服装系统布局 */
.costume-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* 左侧内容 */
.costume-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 右侧内容 */
.costume-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 标题样式 */
.costume-title {
    color: #D4AF37;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 500;
}

/* 内容块样式 */
.costume-block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.costume-block p {
    color: #eee;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .preview-container {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 992px) {
    .mask-generator {
        grid-template-columns: 1fr;
    }
    
    .facial-art-container {
        padding: 15px;
    }
    
    .preview-container {
        width: 100%;
        height: 100vw;
        max-width: 500px;
        max-height: 500px;
    }
    
    .costume-content {
        grid-template-columns: 1fr;
    }
}

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

/* 服装试穿系统 */
.costume-try-on {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

/* 步骤说明 */
.try-on-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.step-item {
    text-align: center;
}

.step-title {
    color: #D4AF37;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.step-title .download-icon {
    color: #D4AF37;
    font-size: 1rem;
}

/* 上传区域 */
.upload-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.upload-box {
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #D4AF37;
}

.upload-label {
    color: #D4AF37;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.upload-hint {
    color: #888;
    font-size: 0.85rem;
    text-align: center;
}

/* 示例图片网格 */
.example-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.example-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 运行按钮 */
.run-button {
    background: #D4AF37;
    color: #000;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.run-button:hover {
    background: #ffd700;
    transform: translateY(-1px);
}

/* 道具运用布局 */
.prop-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    align-items: start;
}

/* 左侧图片样式 */
.prop-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prop-showcase-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* 右侧文字样式 */
.prop-text h3 {
    color: #D4AF37;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.prop-text p {
    color: #eee;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .prop-content {
        grid-template-columns: 1fr;
    }
    
    .prop-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* 舞台布景部分样式 */
.stage-setting {
    margin-top: 40px;
}

.stage-setting .prop-text p:last-child {
    margin-top: 20px;
    font-style: italic;
    color: #bbb;
}

.stage-setting .prop-showcase-image {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 舞台布景视频样式 */
.stage-video {
    width: 80%;
    max-width: 800px;
    position: relative;
    padding-bottom: 45%;
    margin: 30px auto;
}

.stage-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 文字内容样式 */
.prop-text {
    margin-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .stage-video {
        margin-bottom: 20px;
    }
} 