/* 皮肤工具容器 */
.skin-tool {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 搜索区域 */
.search-section {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--minecraft-green);
}

.search-box button {
    background: var(--minecraft-green);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.search-box button:hover {
    background: #3aa831;
}

.error-message {
    color: #e74c3c;
    margin-top: 0.5rem;
    text-align: center;
    min-height: 20px;
}

.info-message {
    color: #3498db;
    margin-top: 0.5rem;
    text-align: center;
    min-height: 20px;
    font-style: italic;
}

/* 结果区域 */
.results-section {
    max-width: 800px;
    margin: 0 auto;
}

/* 标签页 */
.result-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--minecraft-gray);
    font-size: 1rem;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: var(--minecraft-dark);
}

.tab-btn.active {
    background: var(--minecraft-green);
    color: white;
}

/* 标签页内容 */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 皮肤预览 */
.skin-preview {
    text-align: center;
}

.skin-preview img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border: 2px solid #eee;
    border-radius: 4px;
}

/* 头像预览 */
.head-preview {
    text-align: center;
}

.head-size-options {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.size-btn {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover {
    background: #eee;
}

.size-btn.active {
    background: var(--minecraft-green);
    color: white;
    border-color: var(--minecraft-green);
}

.head-preview img {
    margin: 2rem auto;
    display: block;
    border: 2px solid #eee;
    border-radius: 4px;
}

/* 3D 模型预览 */
.model-preview {
    text-align: center;
}

.model-container {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Loading indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    font-size: 1.2rem;
    color: var(--minecraft-dark);
    flex-direction: row;
    text-align: center;
    padding: 1rem;
    border-radius: 4px;
    pointer-events: none; /* Allow clicking through the loader */
}

.loading-indicator::after {
    content: "";
    width: 25px;
    height: 25px;
    margin-left: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--minecraft-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    color: var(--minecraft-gray);
    font-size: 1rem;
}

.error-message {
    color: #e74c3c;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.refresh-button {
    background-color: var(--minecraft-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin: 1rem auto;
    display: block;
}

.refresh-button:hover {
    background-color: #3aa831;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.model-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.control-btn {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
}

.control-btn:hover {
    background: #eee;
}

/* 下载选项 */
.download-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.download-btn {
    background: var(--minecraft-green);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background: #3aa831;
}

.copy-btn {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #eee;
}

/* 使用说明 */
.usage-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.usage-content {
    max-width: 800px;
    margin: 0 auto;
}

.usage-content ul {
    list-style-type: none;
    padding: 0;
}

.usage-content li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.note-box {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 0 4px 4px 0;
}

.note-box h3 {
    color: var(--minecraft-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.note-box p {
    margin-bottom: 0.75rem;
    color: var(--minecraft-gray);
}

.note-box ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.note-box li {
    margin: 0.5rem 0;
    color: var(--minecraft-gray);
}

.usage-content li::before {
    content: "•";
    color: var(--minecraft-green);
    position: absolute;
    left: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .skin-tool {
        padding: 1rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .result-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    .model-container {
        height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
} 