/* Minecraft Skins Download Tool 样式 */









/* 工具容器样式 */
.tool-container {
    background-color: var(--minecraft-panel);
    color: #E0E0E0;
    border: 4px solid var(--minecraft-secondary);
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    image-rendering: pixelated;
    background-image: 
        linear-gradient(0deg, rgba(59, 133, 38, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 133, 38, 0.05) 1px, transparent 1px);
    background-size: 16px 16px;
    background-position: center center;
}

.tool-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px dashed var(--minecraft-green);
    border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABQSURBVDiNY2AYbOA/EHMyEFA0m4GB4T8OORaomhMM+BUzMuBWhJULwg2gCmDEY8BsJgYGBlYcCtiZGBj+45Bkgqr5j0PuP0F/DPhQGH5gIAEAABswE3YSqdPTAAAAAElFTkSuQmCC") 4 repeat;
    pointer-events: none;
    opacity: 0.8;
    z-index: 1;
    animation: border-glow 4s infinite alternate;
}

@keyframes border-glow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.minecraft-border {
    background-color: var(--minecraft-panel);
    border: 4px solid var(--minecraft-secondary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.tool-container > * {
    position: relative;
    z-index: 5;
}

/* 搜索部分样式 */
.search-section {
    margin-bottom: 30px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 2px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-secondary);
    position: relative;
    z-index: 5;
}

.search-section h2 {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: var(--minecraft-green);
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--minecraft-secondary);
    padding-bottom: 0.5rem;
}

.search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    width: 100%;
    max-width: 500px;
}

.form-group input {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.2);
    color: #E0E0E0;
    font-family: 'Noto Sans Mono', monospace;
}

.form-group input:focus {
    outline: none;
    border-color: var(--minecraft-green);
    box-shadow: 0 0 5px var(--minecraft-green);
}

.form-group button {
    padding: 12px 20px;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    background-color: var(--minecraft-green);
    color: white;
    border: none;
    transition: all 0.3s ease;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.form-group button:hover {
    background-color: var(--minecraft-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.search-tip {
    font-size: 14px;
    color: #aaa;
    margin-top: 10px;
}

.search-tip a {
    color: var(--minecraft-green);
    text-decoration: none;
}

.search-tip a:hover {
    text-decoration: underline;
}

/* 皮肤部分样式 */
.skins-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: var(--minecraft-green);
    margin: 0;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--minecraft-secondary);
    padding-bottom: 0.5rem;
}

.result-count {
    font-size: 16px;
    color: #aaa;
    margin: 0;
}

.skins-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.skin-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.skin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    border-color: var(--minecraft-green);
}

/* 皮肤预览容器样式调整 */
.skin-preview {
    height: 180px;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* 皮肤模型图片样式 */
.skin-model-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.3s ease;
}

.skin-card:hover .skin-model-image {
    transform: scale(1.05);
}

/* 皮肤纹理背景图样式 */
.skin-texture-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.2;
    z-index: 0;
    image-rendering: pixelated;
}

/* 3D模型容器样式 */
.skin-3d-model {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.skin-3d-model:active {
    cursor: grabbing;
}

/* 模型容器样式 */
.model-container {
    height: 400px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.model-container.large {
    height: 500px;
}

.model-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* 错误消息样式 */
.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    max-width: 80%;
}

.skin-info {
    padding: 15px;
    text-align: center;
}

.skin-info h3 {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: #E0E0E0;
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.skin-actions {
    display: flex;
    justify-content: space-between;
}

.skin-actions button {
    flex: 1;
    margin: 0 5px;
    padding: 6px 10px;
    font-size: 12px;
    background-color: var(--minecraft-green);
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.skin-actions button:hover {
    background-color: var(--minecraft-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 20px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    border: 2px solid var(--minecraft-secondary);
    position: relative;
    z-index: 5;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    background: url('/images/empty-chest.png') center/cover;
    image-rendering: pixelated;
}

.empty-state h3 {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: #E0E0E0;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.empty-state p {
    color: #aaa;
    max-width: 400px;
    margin: 0 auto;
}

.empty-state a {
    color: var(--minecraft-green);
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 15px;
    background-color: var(--minecraft-green);
    color: white;
    border-radius: 0;
    text-decoration: none;
    font-family: 'VT323', monospace;
    margin: 0 5px;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.page-btn:hover {
    background-color: var(--minecraft-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.page-info {
    margin: 0 15px;
    color: #aaa;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: var(--minecraft-panel);
    margin: 50px auto;
    padding: 30px;
    border: 4px solid var(--minecraft-secondary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    border-radius: 0;
    animation: slideIn 0.4s;
    color: #E0E0E0;
    image-rendering: pixelated;
    background-image: 
        linear-gradient(0deg, rgba(59, 133, 38, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 133, 38, 0.05) 1px, transparent 1px);
    background-size: 16px 16px;
    background-position: center center;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: white;
}

.modal-content h2 {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: var(--minecraft-green);
    margin-top: 0;
    padding-right: 40px;
    text-align: center;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--minecraft-secondary);
    padding-bottom: 0.5rem;
}

.modal-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-tab {
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #aaa;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-tab.active {
    color: var(--minecraft-green);
}

.modal-tab.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--minecraft-green);
}

.modal-pane {
    display: none;
}

.modal-pane.active {
    display: block;
    animation: fadeIn 0.3s;
}

.skin-texture {
    text-align: center;
    padding: 20px;
}

.skin-texture img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 4px;
}

.modal-actions {
    text-align: center;
    margin-top: 20px;
}

/* 使用说明样式 */
.how-to-use {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed rgba(255, 255, 255, 0.1);
}

.how-to-use h2 {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: var(--minecraft-green);
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--minecraft-secondary);
    padding-bottom: 0.5rem;
}

.how-to-use h3 {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: var(--minecraft-green);
    margin: 30px 0 15px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.instruction-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instruction-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--minecraft-green);
    color: white;
    border-radius: 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--minecraft-secondary);
    font-family: 'VT323', monospace;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.feature-list li {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.model-feature {
    background: url('/images/features/3d-model.png') center/cover;
}

.collection-feature {
    background: url('/images/features/collection.png') center/cover;
}

.search-feature {
    background: url('/images/features/search.png') center/cover;
}

.detail-feature {
    background: url('/images/features/detail.png') center/cover;
}

.download-feature {
    background: url('/images/features/download.png') center/cover;
}

.integration-feature {
    background: url('/images/features/integration.png') center/cover;
}

.minecraft-note {
    background-color: rgba(255, 223, 0, 0.1);
    border-left: 4px solid var(--minecraft-green);
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
}

.minecraft-note h4 {
    margin-top: 0;
    color: var(--minecraft-green);
    font-size: 18px;
    font-family: 'VT323', monospace;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.minecraft-note p {
    color: #bbb;
    margin-bottom: 0;
}

/* 相关工具样式 */
.related-tools-section {
    margin: 40px 0;
    padding: 30px 20px;
    background-color: var(--minecraft-panel-light);
    border-radius: 8px;
    position: relative;
    border: 2px solid #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.related-tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to right, var(--minecraft-green), var(--minecraft-dark-green));
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.related-tools-section h2 {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    text-align: center;
    color: var(--minecraft-green);
    margin-top: 10px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--minecraft-secondary);
    padding-bottom: 0.5rem;
}

.related-tools-subtitle {
    text-align: center;
    color: #aaa;
    margin-top: 0;
    margin-bottom: 30px;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.related-tool-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    padding: 20px;
    text-decoration: none;
    color: #E0E0E0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    height: 100%;
    overflow: hidden;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--minecraft-green);
}

.related-tool-card .tool-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.related-tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.related-tool-card h3 {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: #E0E0E0;
}

.related-tool-card p {
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    color: #aaa;
    flex-grow: 1;
}

.relation-tag {
    background-color: var(--minecraft-green);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-top: auto;
}

/* 响应式样式 */

@media (max-width: 1200px) {
    .skins-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .skins-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .instructions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skins-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .minecraft-title {
        font-size: 2rem;
    }
    
    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .skins-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .form-group button {
        border-radius: 4px;
        width: 100%;
    }
    
    .minecraft-title {
        font-size: 1.8rem;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
} 

/* Minecraft按钮样式 */
.minecraft-btn {
    background-color: var(--minecraft-green);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0;
    font-family: 'VT323', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    display: inline-block;
    text-align: center;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.minecraft-btn:hover {
    background-color: var(--minecraft-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.minecraft-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3);
} 