/* Minecraft Logo Generator 样式文件 */

/* Minecraft 字体定义 */
@font-face {
    font-family: 'MinecrafterAlt';
    src: url('/fonts/Minecrafter.Alt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MinecrafterReg';
    src: url('/fonts/Minecrafter.Reg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



/* 主容器样式 */
.tool-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #4CAF50;
    position: relative;
    overflow: hidden;
}

.tool-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(76, 175, 80, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

/* 装饰元素 */
.grass-block-decoration,
.diamond-ore-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    background-size: contain;
    opacity: 0.6;
}

.grass-block-decoration {
    top: 20px;
    right: 20px;
    background: url('/images/blocks/grass.png') no-repeat;
}

.diamond-ore-decoration {
    bottom: 20px;
    left: 20px;
    background: url('/images/blocks/diamond_ore.png') no-repeat;
}

/* Logo生成器容器 */
.logo-generator-container {
    background: rgba(30, 30, 30, 0.9);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #4CAF50;
}

.logo-generator-container h2 {
    color: #4CAF50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.section-subtitle {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 控制器样式 */
.generator-controls {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.control-group input,
.control-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.9);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: #66BB6A;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    transform: translateY(-1px);
}

.control-group input[type="color"] {
    width: 80px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
}

.control-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* 效果控制器 */
.effect-controls {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: #4CAF50;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 25px;
    height: 25px;
    background-color: rgba(40, 40, 40, 0.9);
    border: 2px solid #4CAF50;
    border-radius: 6px;
    margin-right: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #4CAF50;
    transform: scale(1.1);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 按钮样式 */
.control-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.minecraft-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.minecraft-btn.primary {
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.minecraft-btn.primary:hover {
    background: linear-gradient(45deg, #66BB6A, #81C784);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.minecraft-btn.secondary {
    background: linear-gradient(45deg, #757575, #9E9E9E);
    color: white;
    box-shadow: 0 4px 15px rgba(117, 117, 117, 0.4);
}

.minecraft-btn.secondary:hover {
    background: linear-gradient(45deg, #9E9E9E, #BDBDBD);
    transform: translateY(-2px);
}

.minecraft-btn:disabled {
    background: #555555;
    color: #888888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Logo预览区域 */
.logo-preview {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.logo-preview h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#logo-canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 10px;
    border: 2px dashed #4CAF50;
    overflow: hidden;
}

#logo-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.preview-placeholder {
    text-align: center;
    color: #888888;
}

.preview-placeholder span {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.preview-placeholder small {
    font-size: 0.9rem;
    color: #666666;
}



/* 使用技巧区域 - 新设计 */
.usage-tips {
    background: rgba(40, 40, 40, 0.6);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.usage-tips h4 {
    color: #4CAF50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.tips-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tips-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tip-card {
    background: rgba(30, 30, 30, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.tip-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.tip-icon {
    font-size: 1.8rem;
    margin-right: 0.8rem;
}

.tip-header h5 {
    color: #4CAF50;
    font-size: 1.1rem;
    margin: 0;
    font-weight: bold;
}

.tip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tip-list li {
    color: #cccccc;
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tip-list li:before {
    content: '•';
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* 官方Logo区域 */
.official-logos-container {
    background: rgba(30, 30, 30, 0.9);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #4CAF50;
    margin: 0 auto; /* 居中显示 */
}

.official-logos-container h2 {
    color: #4CAF50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
    text-align: center; /* 居中标题 */
}

.official-logos-container .section-subtitle {
    text-align: center; /* 居中描述文本 */
    margin-bottom: 2rem;
}

/* Logo网格 - 3x3布局 */
.logos-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem auto; /* 将margin修改为auto以实现居中 */
}

/* 旧的网格保留以防兼容性问题 */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.logo-card {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
}

.logo-card:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.2);
}

.logos-grid-3x3 .logo-card {
    min-height: 200px;
}

.logo-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image-container {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image-container img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border-radius: 4px;
}

.logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-card:hover .logo-overlay {
    opacity: 1;
}

.preview-btn,
.download-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.preview-btn {
    background: #2196F3;
}

.preview-btn:hover {
    background: #1976D2;
    transform: scale(1.05);
}

.download-btn {
    background: #4CAF50;
}

.download-btn:hover {
    background: #388E3C;
    transform: scale(1.05);
}

.logo-info h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.logo-details {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.format-badge {
    background: #4CAF50;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.size-info {
    color: #cccccc;
    font-size: 0.9rem;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 2px solid #4CAF50;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
    color: #cccccc;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #4CAF50;
}

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

#modal-logo-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: white;
    padding: 1rem;
}

#modal-logo-title {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 使用指南样式 - 重新设计 */
.download-guide {
    background: rgba(40, 40, 40, 0.6);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.download-guide h3 {
    color: #4CAF50;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    text-align: center;
}

.guidelines-container {
    max-width: 1200px;
    margin: 0 auto;
}

.guidelines-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.guideline-category {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(76, 175, 80, 0.1);
    transition: all 0.3s ease;
}

.guideline-category:hover {
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.1);
}

.guideline-category h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guideline-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.guideline-bullet {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.guideline-row span:last-child {
    color: #cccccc;
    flex: 1;
}

.guideline-row strong {
    color: #4CAF50;
}

/* 旧的样式保留兼容 */
.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.guideline-item {
    display: flex;
    align-items: flex-start;
    background: rgba(30, 30, 30, 0.7);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.guideline-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.guideline-item strong {
    color: #4CAF50;
}

.no-logos-message {
    text-align: center;
    padding: 3rem;
    color: #cccccc;
    font-size: 1.1rem;
}

/* 分页样式 */
.pagination-container {
    margin: 2rem auto; /* 改为auto实现自适应居中 */
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.6rem 1rem;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    background: rgba(30, 30, 30, 0.8);
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.pagination-btn.current {
    background: #4CAF50;
    color: white;
    cursor: default;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.pagination-btn.prev,
.pagination-btn.next {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.pagination-info {
    color: #cccccc;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.pagination-info span {
    background: rgba(40, 40, 40, 0.6);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.tool-container {
    animation: slideInUp 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .logos-grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
        margin-left: auto; /* 添加自适应居中 */
        margin-right: auto; /* 添加自适应居中 */
    }
    
    .tips-row,
    .guidelines-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    

}

@media (max-width: 768px) {
    .tool-container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .control-row {
        grid-template-columns: 1fr;
    }
    
    .effect-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .control-buttons {
        flex-direction: column;
    }
    
    .minecraft-btn {
        width: 100%;
    }
    
    .logos-grid,
    .logos-grid-3x3 {
        grid-template-columns: 1fr;
        margin-left: auto; /* 添加自适应居中 */
        margin-right: auto; /* 添加自适应居中 */
    }
    
    .tips-grid,
    .guidelines-grid,
    .tips-row,
    .guidelines-section {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1rem;
    }
    
    .pagination {
        gap: 0.3rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
        min-width: 35px;
    }
    
    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    

}